pydantic cleanup

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-01-06 18:32:21 -08:00
parent b233f94a24
commit 8d476bbec6
140 changed files with 1122 additions and 540 deletions

View File

@ -2,7 +2,7 @@ import datetime
from typing import List, Optional, Dict, Union, Any, Literal from typing import List, Optional, Dict, Union, Any, Literal
from uuid import UUID from uuid import UUID
from pydantic import BaseModel, Base64Bytes, AnyUrl from pydantic import BaseModel, Base64Bytes, AnyUrl, ConfigDict
from pydantic_extra_types.phone_numbers import PhoneNumber from pydantic_extra_types.phone_numbers import PhoneNumber
from .base64data import Base64Data from .base64data import Base64Data
@ -19,3 +19,7 @@ class {{ name }}(BaseModel):
{{ field.name }}: {{ field.type }} {{ field.name }}: {{ field.type }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
model_config = ConfigDict(
protected_namespaces=()
)

View File

@ -1,90 +1,106 @@
[ [
{ {
"op": "add", "op": "add",
"path": "/paths/~1user~1payment~1intent/post/x-python", "path": "/paths/~1async~1operations/get/x-python",
"value": { "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", "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.payments.create_payment_intent_for_user.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1file~1surface-area/post/x-python", "path": "/paths/~1_meta~1info/get/x-python",
"value": { "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", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_metadata\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Metadata\nfrom kittycad.types import Response\n\n\ndef example_get_metadata():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Metadata, Error]] = get_metadata.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Metadata = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_surface_area.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1users~1{id}~1api-calls/get/x-python", "path": "/paths/~1unit~1conversion~1mass~1{input_unit}~1{output_unit}/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import 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", "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.api_calls.list_api_calls_for_user.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_mass_unit_conversion.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1async~1operations~1{id}/get/x-python", "path": "/paths/~1/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_async_operation\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n Error,\n FileCenterOfMass,\n FileConversion,\n FileDensity,\n FileMass,\n FileSurfaceArea,\n FileVolume,\n TextToCad,\n)\nfrom kittycad.types import Response\n\n\ndef example_get_async_operation():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n Error,\n ]\n ] = get_async_operation.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n ] = result\n print(body)\n", "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.api_calls.get_async_operation.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1file~1density/post/x-python", "path": "/paths/~1apps~1github~1consent/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_density.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1ai-prompts/get/x-python", "path": "/paths/~1user/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_ai_prompts\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPromptResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_ai_prompts():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPromptResultsPage, Error]] = list_ai_prompts.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPromptResultsPage = result\n print(body)\n", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user_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: User = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_ai_prompts.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1unit~1conversion~1area~1{input_unit}~1{output_unit}/get/x-python", "path": "/paths/~1user/put/x-python",
"value": { "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", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import update_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.models.update_user import UpdateUser\nfrom kittycad.types import Response\n\n\ndef example_update_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = update_user_self.sync(\n client=client,\n body=UpdateUser(\n company=\"<string>\",\n discord=\"<string>\",\n first_name=\"<string>\",\n github=\"<string>\",\n last_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: User = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_area_unit_conversion.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.update_user_self.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1unit~1conversion~1force~1{input_unit}~1{output_unit}/get/x-python", "path": "/paths/~1user/delete/x-python",
"value": { "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", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import delete_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_user_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: Error = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_force_unit_conversion.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.delete_user_self.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1logout/post/x-python", "path": "/paths/~1file~1center-of-mass/post/x-python",
"value": { "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", "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.hidden.logout.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_center_of_mass.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python", "path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_method_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_method_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_method_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_length_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitLengthConversion\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_get_length_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitLengthConversion, Error]\n ] = get_length_unit_conversion.sync(\n client=client,\n input_unit=UnitLength.CM,\n output_unit=UnitLength.CM,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitLengthConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_method_for_user.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_length_unit_conversion.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1auth~1email~1callback/get/x-python", "path": "/paths/~1auth~1email/post/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_auth_email_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = auth_email_callback.sync(\n client=client,\n email=\"<string>\",\n token=\"<string>\",\n callback_url=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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_callback.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1session~1{token}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_session_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Session\nfrom kittycad.types import Response\n\n\ndef example_get_session_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Session, Error]] = get_session_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Session = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_session_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_power_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPowerConversion\nfrom kittycad.models.unit_power import UnitPower\nfrom kittycad.types import Response\n\n\ndef example_get_power_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPowerConversion, Error]\n ] = get_power_unit_conversion.sync(\n client=client,\n input_unit=UnitPower.BTU_PER_MINUTE,\n output_unit=UnitPower.BTU_PER_MINUTE,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPowerConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_power_unit_conversion.html"
} }
}, },
{ {
@ -97,42 +113,18 @@
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1file~1execute~1{lang}/post/x-python", "path": "/paths/~1ai~1text-to-cad~1{output_format}/post/x-python",
"value": { "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", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.text_to_cad_create_body import TextToCadCreateBody\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[TextToCad, Error]] = create_text_to_cad.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n body=TextToCadCreateBody(\n prompt=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_file_execution.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python", "path": "/paths/~1api-call-metrics/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_current_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitCurrentConversion\nfrom kittycad.models.unit_current import UnitCurrent\nfrom kittycad.types import Response\n\n\ndef example_get_current_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitCurrentConversion, Error]\n ] = get_current_unit_conversion.sync(\n client=client,\n input_unit=UnitCurrent.AMPERES,\n output_unit=UnitCurrent.AMPERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitCurrentConversion = result\n print(body)\n", "example": "from 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.unit.get_current_unit_conversion.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_metrics.html"
}
},
{
"op": "add",
"path": "/paths/~1unit~1conversion~1temperature~1{input_unit}~1{output_unit}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1text-to-cad~1{id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_text_to_cad_model_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.types import Response\n\n\ndef example_get_text_to_cad_model_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCad, Error]\n ] = get_text_to_cad_model_for_user.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_text_to_cad_model_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1text-to-cad~1{id}/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad_model_feedback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.models.ai_feedback import AiFeedback\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad_model_feedback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = create_text_to_cad_model_feedback.sync(\n client=client,\n id=\"<uuid>\",\n feedback=AiFeedback.THUMBS_UP,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad_model_feedback.html"
} }
}, },
{ {
@ -153,178 +145,10 @@
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1api-calls/get/x-python", "path": "/paths/~1unit~1conversion~1area~1{input_unit}~1{output_unit}/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import 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", "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.api_calls.list_api_calls.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_area_unit_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~1api-call-metrics/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_metrics\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallQueryGroup, Error\nfrom kittycad.models.api_call_query_group_by import ApiCallQueryGroupBy\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_metrics():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[ApiCallQueryGroup], Error]\n ] = get_api_call_metrics.sync(\n client=client,\n group_by=ApiCallQueryGroupBy.EMAIL,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[ApiCallQueryGroup] = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_metrics.html"
}
},
{
"op": "add",
"path": "/paths/~1apps~1github~1webhook/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_webhook\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_webhook():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_webhook.sync(\n client=client,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_webhook.html"
}
},
{
"op": "add",
"path": "/paths/~1users~1{id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user.html"
}
},
{
"op": "add",
"path": "/paths/~1_meta~1info/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_metadata\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Metadata\nfrom kittycad.types import Response\n\n\ndef example_get_metadata():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Metadata, Error]] = get_metadata.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Metadata = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1onboarding/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_onboarding_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Onboarding\nfrom kittycad.types import Response\n\n\ndef example_get_user_onboarding_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Onboarding, Error]] = get_user_onboarding_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Onboarding = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
}
},
{
"op": "add",
"path": "/paths/~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/~1ws~1modeling~1commands/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, WebSocketRequest, WebSocketResponse\nfrom kittycad.models.rtc_sdp_type import RtcSdpType\nfrom kittycad.models.rtc_session_description import RtcSessionDescription\nfrom kittycad.models.web_socket_request import sdp_offer\nfrom kittycad.types import Response\n\n\ndef example_modeling_commands_ws():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n with modeling_commands_ws.WebSocket(\n client=client,\n fps=10,\n unlocked_framerate=False,\n video_res_height=10,\n video_res_width=10,\n webrtc=False,\n ) as websocket:\n # Send a message.\n websocket.send(\n WebSocketRequest(\n sdp_offer(\n offer=RtcSessionDescription(\n sdp=\"<string>\",\n type=RtcSdpType.UNSPECIFIED,\n ),\n )\n )\n )\n\n # Get a message.\n message = websocket.recv()\n print(message)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.modeling_commands_ws.html"
}
},
{
"op": "add",
"path": "/paths/~1apps~1github~1consent/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.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/~1user~1api-tokens/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import list_api_tokens_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiTokenResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_tokens_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiTokenResultsPage, Error]\n ] = list_api_tokens_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiTokenResultsPage = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1api-tokens/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import create_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_create_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = create_api_token_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.create_api_token_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1file~1center-of-mass/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_center_of_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileCenterOfMass\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_create_file_center_of_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileCenterOfMass, Error]\n ] = create_file_center_of_mass.sync(\n client=client,\n output_unit=UnitLength.CM,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileCenterOfMass = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_center_of_mass.html"
}
},
{
"op": "add",
"path": "/paths/~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/~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-prompts~1{id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_ai_prompt\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPrompt, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_prompt():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPrompt, Error]] = get_ai_prompt.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPrompt = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_ai_prompt.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=\"<uuid>\",\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/~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/~1user~1extended/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_self_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_self_extended.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self_extended.html"
}
},
{
"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 with create_executor_term.sync(\n client=client,\n ) as websocket:\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/~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~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"
} }
}, },
{ {
@ -335,46 +159,6 @@
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.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/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_angle_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAngleConversion\nfrom kittycad.models.unit_angle import UnitAngle\nfrom kittycad.types import Response\n\n\ndef example_get_angle_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAngleConversion, Error]\n ] = get_angle_unit_conversion.sync(\n client=client,\n input_unit=UnitAngle.DEGREES,\n output_unit=UnitAngle.DEGREES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAngleConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_angle_unit_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~1unit~1conversion~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/~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/~1async~1operations/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_async_operations\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AsyncApiCallResultsPage, Error\nfrom kittycad.models.api_call_status import ApiCallStatus\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_async_operations():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AsyncApiCallResultsPage, Error]\n ] = list_async_operations.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n status=ApiCallStatus.QUEUED,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AsyncApiCallResultsPage = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
}
},
{ {
"op": "add", "op": "add",
"path": "/paths/~1unit~1conversion~1volume~1{input_unit}~1{output_unit}/get/x-python", "path": "/paths/~1unit~1conversion~1volume~1{input_unit}~1{output_unit}/get/x-python",
@ -385,114 +169,10 @@
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1unit~1conversion~1energy~1{input_unit}~1{output_unit}/get/x-python", "path": "/paths/~1file~1volume/post/x-python",
"value": { "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", "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.unit.get_energy_unit_conversion.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_volume.html"
}
},
{
"op": "add",
"path": "/paths/~1ping/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import ping\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Pong\nfrom kittycad.types import Response\n\n\ndef example_ping():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Pong, Error]] = ping.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Pong = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.ping.html"
}
},
{
"op": "add",
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_length_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitLengthConversion\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_get_length_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitLengthConversion, Error]\n ] = get_length_unit_conversion.sync(\n client=client,\n input_unit=UnitLength.CM,\n output_unit=UnitLength.CM,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitLengthConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_length_unit_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~1file~1conversion~1{src_format}~1{output_format}/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileConversion\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_file_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileConversion, Error]] = create_file_conversion.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~1user~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/~1ai~1text-to-cad~1{output_format}/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.text_to_cad_create_body import TextToCadCreateBody\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[TextToCad, Error]] = create_text_to_cad.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n body=TextToCadCreateBody(\n prompt=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad.html"
}
},
{
"op": "add",
"path": "/paths/~1user/put/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import update_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.models.update_user import UpdateUser\nfrom kittycad.types import Response\n\n\ndef example_update_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = update_user_self.sync(\n client=client,\n body=UpdateUser(\n company=\"<string>\",\n discord=\"<string>\",\n first_name=\"<string>\",\n github=\"<string>\",\n last_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: User = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.update_user_self.html"
}
},
{
"op": "add",
"path": "/paths/~1user/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user_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: User = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self.html"
}
},
{
"op": "add",
"path": "/paths/~1user/delete/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import delete_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_user_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: Error = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.delete_user_self.html"
}
},
{
"op": "add",
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_power_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPowerConversion\nfrom kittycad.models.unit_power import UnitPower\nfrom kittycad.types import Response\n\n\ndef example_get_power_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPowerConversion, Error]\n ] = get_power_unit_conversion.sync(\n client=client,\n input_unit=UnitPower.BTU_PER_MINUTE,\n output_unit=UnitPower.BTU_PER_MINUTE,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPowerConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_power_unit_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~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/~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/~1internal~1discord~1api-token~1{discord_id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import internal_get_api_token_for_discord_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_internal_get_api_token_for_discord_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiToken, Error]\n ] = internal_get_api_token_for_discord_user.sync(\n client=client,\n discord_id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.internal_get_api_token_for_discord_user.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1payment/put/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import update_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.models.billing_info import BillingInfo\nfrom kittycad.types import Response\n\n\ndef example_update_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = update_payment_information_for_user.sync(\n client=client,\n body=BillingInfo(\n name=\"<string>\",\n phone=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.update_payment_information_for_user.html"
} }
}, },
{ {
@ -503,14 +183,6 @@
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_information_for_user.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_information_for_user.html"
} }
}, },
{
"op": "add",
"path": "/paths/~1user~1payment/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = get_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
}
},
{ {
"op": "add", "op": "add",
"path": "/paths/~1user~1payment/post/x-python", "path": "/paths/~1user~1payment/post/x-python",
@ -521,34 +193,74 @@
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1users-extended/get/x-python", "path": "/paths/~1user~1payment/put/x-python",
"value": { "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", "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.users.list_users_extended.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.update_payment_information_for_user.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1user~1api-calls~1{id}/get/x-python", "path": "/paths/~1user~1payment/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call_for_user.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = get_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_for_user.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1user~1session~1{token}/get/x-python", "path": "/paths/~1unit~1conversion~1torque~1{input_unit}~1{output_unit}/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_session_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Session\nfrom kittycad.types import Response\n\n\ndef example_get_session_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Session, Error]] = get_session_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Session = result\n print(body)\n", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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.users.get_session_for_user.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_torque_unit_conversion.html"
} }
}, },
{ {
"op": "add", "op": "add",
"path": "/paths/~1user~1api-calls/get/x-python", "path": "/paths/~1ws~1modeling~1commands/get/x-python",
"value": { "value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import user_list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_user_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = user_list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n", "example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, WebSocketRequest, WebSocketResponse\nfrom kittycad.models.rtc_sdp_type import RtcSdpType\nfrom kittycad.models.rtc_session_description import RtcSessionDescription\nfrom kittycad.models.web_socket_request import sdp_offer\nfrom kittycad.types import Response\n\n\ndef example_modeling_commands_ws():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n with modeling_commands_ws.WebSocket(\n client=client,\n fps=10,\n unlocked_framerate=False,\n video_res_height=10,\n video_res_width=10,\n webrtc=False,\n ) as websocket:\n # Send a message.\n websocket.send(\n WebSocketRequest(\n sdp_offer(\n offer=RtcSessionDescription(\n sdp=\"<string>\",\n type=RtcSdpType.UNSPECIFIED,\n ),\n )\n )\n )\n\n # Get a message.\n message = websocket.recv()\n print(message)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.user_list_api_calls.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.modeling_commands_ws.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/~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=\"<uuid>\",\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/~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/~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/~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"
} }
}, },
{ {
@ -559,6 +271,294 @@
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.html" "libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.html"
} }
}, },
{
"op": "add",
"path": "/paths/~1internal~1discord~1api-token~1{discord_id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import internal_get_api_token_for_discord_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_internal_get_api_token_for_discord_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiToken, Error]\n ] = internal_get_api_token_for_discord_user.sync(\n client=client,\n discord_id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.internal_get_api_token_for_discord_user.html"
}
},
{
"op": "add",
"path": "/paths/~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/~1user~1api-tokens/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import create_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_create_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = create_api_token_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.create_api_token_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1api-tokens/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import list_api_tokens_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiTokenResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_tokens_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiTokenResultsPage, Error]\n ] = list_api_tokens_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiTokenResultsPage = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1payment~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/~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-prompts/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_ai_prompts\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPromptResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_ai_prompts():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPromptResultsPage, Error]] = list_ai_prompts.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPromptResultsPage = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_ai_prompts.html"
}
},
{
"op": "add",
"path": "/paths/~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/~1users~1{id}~1api-calls/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls_for_user.sync(\n client=client,\n id=\"<string>\",\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~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~1execute~1{lang}/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.executor import create_file_execution\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CodeOutput, Error\nfrom kittycad.models.code_language import CodeLanguage\nfrom kittycad.types import Response\n\n\ndef example_create_file_execution():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[CodeOutput, Error]] = create_file_execution.sync(\n client=client,\n lang=CodeLanguage.GO,\n output=None, # Optional[str]\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: CodeOutput = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_file_execution.html"
}
},
{
"op": "add",
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_current_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitCurrentConversion\nfrom kittycad.models.unit_current import UnitCurrent\nfrom kittycad.types import Response\n\n\ndef example_get_current_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitCurrentConversion, Error]\n ] = get_current_unit_conversion.sync(\n client=client,\n input_unit=UnitCurrent.AMPERES,\n output_unit=UnitCurrent.AMPERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitCurrentConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_current_unit_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~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 with create_executor_term.sync(\n client=client,\n ) as websocket:\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/~1user~1text-to-cad~1{id}/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad_model_feedback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.models.ai_feedback import AiFeedback\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad_model_feedback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = create_text_to_cad_model_feedback.sync(\n client=client,\n id=\"<uuid>\",\n feedback=AiFeedback.THUMBS_UP,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad_model_feedback.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1text-to-cad~1{id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_text_to_cad_model_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.types import Response\n\n\ndef example_get_text_to_cad_model_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCad, Error]\n ] = get_text_to_cad_model_for_user.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_text_to_cad_model_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1ai-prompts~1{id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_ai_prompt\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPrompt, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_prompt():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPrompt, Error]] = get_ai_prompt.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPrompt = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_ai_prompt.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/~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~1onboarding/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_onboarding_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Onboarding\nfrom kittycad.types import Response\n\n\ndef example_get_user_onboarding_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Onboarding, Error]] = get_user_onboarding_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Onboarding = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
}
},
{
"op": "add",
"path": "/paths/~1async~1operations~1{id}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_async_operation\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n Error,\n FileCenterOfMass,\n FileConversion,\n FileDensity,\n FileMass,\n FileSurfaceArea,\n FileVolume,\n TextToCad,\n)\nfrom kittycad.types import Response\n\n\ndef example_get_async_operation():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n Error,\n ]\n ] = get_async_operation.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n ] = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_async_operation.html"
}
},
{
"op": "add",
"path": "/paths/~1unit~1conversion~1temperature~1{input_unit}~1{output_unit}/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
}
},
{
"op": "add",
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_method_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_method_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_method_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_method_for_user.html"
}
},
{
"op": "add",
"path": "/paths/~1user~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=\"<uuid>\",\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/~1api-calls/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls.html"
}
},
{
"op": "add",
"path": "/paths/~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/~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/~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/~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/~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/~1file~1surface-area/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_surface_area\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileSurfaceArea\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_create_file_surface_area():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileSurfaceArea, Error]\n ] = create_file_surface_area.sync(\n client=client,\n output_unit=UnitArea.CM2,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileSurfaceArea = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_surface_area.html"
}
},
{
"op": "add",
"path": "/paths/~1user~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/~1user~1extended/get/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_self_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_self_extended.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self_extended.html"
}
},
{
"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/~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~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/~1file~1conversion~1{src_format}~1{output_format}/post/x-python",
"value": {
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileConversion\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_file_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileConversion, Error]] = create_file_conversion.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileConversion = result\n print(body)\n",
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_conversion.html"
}
},
{ {
"op": "add", "op": "add",
"path": "/info/x-python", "path": "/info/x-python",

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Any, Optional from typing import Any, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.ai_feedback import AiFeedback from ..models.ai_feedback import AiFeedback
from ..models.ai_prompt_type import AiPromptType from ..models.ai_prompt_type import AiPromptType
@ -39,3 +39,5 @@ class AiPrompt(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.ai_prompt import AiPrompt from ..models.ai_prompt import AiPrompt
@ -11,3 +11,5 @@ class AiPromptResultsPage(BaseModel):
items: List[AiPrompt] items: List[AiPrompt]
next_page: Optional[str] = None next_page: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.unit_angle import UnitAngle from ..models.unit_angle import UnitAngle
@ -10,3 +10,5 @@ class Angle(BaseModel):
unit: UnitAngle unit: UnitAngle
value: float value: float
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.annotation_line_end import AnnotationLineEnd from ..models.annotation_line_end import AnnotationLineEnd
@ -10,3 +10,5 @@ class AnnotationLineEndOptions(BaseModel):
end: AnnotationLineEnd end: AnnotationLineEnd
start: AnnotationLineEnd start: AnnotationLineEnd
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.annotation_line_end_options import AnnotationLineEndOptions from ..models.annotation_line_end_options import AnnotationLineEndOptions
from ..models.annotation_text_options import AnnotationTextOptions from ..models.annotation_text_options import AnnotationTextOptions
@ -20,3 +20,5 @@ class AnnotationOptions(BaseModel):
position: Optional[Point3d] = None position: Optional[Point3d] = None
text: Optional[AnnotationTextOptions] = None text: Optional[AnnotationTextOptions] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.annotation_text_alignment_x import AnnotationTextAlignmentX from ..models.annotation_text_alignment_x import AnnotationTextAlignmentX
from ..models.annotation_text_alignment_y import AnnotationTextAlignmentY from ..models.annotation_text_alignment_y import AnnotationTextAlignmentY
@ -15,3 +15,5 @@ class AnnotationTextOptions(BaseModel):
x: AnnotationTextAlignmentX x: AnnotationTextAlignmentX
y: AnnotationTextAlignmentY y: AnnotationTextAlignmentY
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -9,3 +9,5 @@ class ApiCallQueryGroup(BaseModel):
count: int count: int
query: str query: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.method import Method from ..models.method import Method
from ..models.uuid import Uuid from ..models.uuid import Uuid
@ -55,3 +55,5 @@ class ApiCallWithPrice(BaseModel):
user_agent: str user_agent: str
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_with_price import ApiCallWithPrice from ..models.api_call_with_price import ApiCallWithPrice
@ -11,3 +11,5 @@ class ApiCallWithPriceResultsPage(BaseModel):
items: List[ApiCallWithPrice] items: List[ApiCallWithPrice]
next_page: Optional[str] = None next_page: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.error_code import ErrorCode from ..models.error_code import ErrorCode
@ -10,3 +10,5 @@ class ApiError(BaseModel):
error_code: ErrorCode error_code: ErrorCode
message: str message: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
import datetime import datetime
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.uuid import Uuid from ..models.uuid import Uuid
@ -21,3 +21,5 @@ class ApiToken(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_token import ApiToken from ..models.api_token import ApiToken
@ -11,3 +11,5 @@ class ApiTokenResultsPage(BaseModel):
items: List[ApiToken] items: List[ApiToken]
next_page: Optional[str] = None next_page: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -8,3 +8,5 @@ class AppClientInfo(BaseModel):
"""Information about a third party app client.""" """Information about a third party app client."""
url: Optional[str] = None url: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Any, Optional from typing import Any, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_status import ApiCallStatus from ..models.api_call_status import ApiCallStatus
from ..models.async_api_call_type import AsyncApiCallType from ..models.async_api_call_type import AsyncApiCallType
@ -34,3 +34,5 @@ class AsyncApiCall(BaseModel):
user_id: Uuid user_id: Uuid
worker: Optional[str] = None worker: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Dict, Literal, Optional, Union from typing import Dict, Literal, Optional, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.ai_feedback import AiFeedback from ..models.ai_feedback import AiFeedback
@ -51,6 +51,8 @@ class file_conversion(BaseModel):
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())
class file_center_of_mass(BaseModel): class file_center_of_mass(BaseModel):
"""File center of mass.""" """File center of mass."""
@ -79,6 +81,8 @@ class file_center_of_mass(BaseModel):
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())
class file_mass(BaseModel): class file_mass(BaseModel):
"""A file mass.""" """A file mass."""
@ -111,6 +115,8 @@ class file_mass(BaseModel):
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())
class file_volume(BaseModel): class file_volume(BaseModel):
"""A file volume.""" """A file volume."""
@ -139,6 +145,8 @@ class file_volume(BaseModel):
volume: Optional[float] = None volume: Optional[float] = None
model_config = ConfigDict(protected_namespaces=())
class file_density(BaseModel): class file_density(BaseModel):
"""A file density.""" """A file density."""
@ -171,6 +179,8 @@ class file_density(BaseModel):
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())
class file_surface_area(BaseModel): class file_surface_area(BaseModel):
"""A file surface area.""" """A file surface area."""
@ -199,6 +209,8 @@ class file_surface_area(BaseModel):
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())
class text_to_cad(BaseModel): class text_to_cad(BaseModel):
"""Text to CAD.""" """Text to CAD."""
@ -231,6 +243,8 @@ class text_to_cad(BaseModel):
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())
AsyncApiCallOutput = RootModel[ AsyncApiCallOutput = RootModel[
Annotated[ Annotated[

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.async_api_call import AsyncApiCall from ..models.async_api_call import AsyncApiCall
@ -11,3 +11,5 @@ class AsyncApiCallResultsPage(BaseModel):
items: List[AsyncApiCall] items: List[AsyncApiCall]
next_page: Optional[str] = None next_page: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.axis import Axis from ..models.axis import Axis
from ..models.direction import Direction from ..models.direction import Direction
@ -11,3 +11,5 @@ class AxisDirectionPair(BaseModel):
axis: Axis axis: Axis
direction: Direction direction: Direction
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.new_address import NewAddress from ..models.new_address import NewAddress
@ -13,3 +13,5 @@ class BillingInfo(BaseModel):
name: Optional[str] = None name: Optional[str] = None
phone: Optional[str] = None phone: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -9,3 +9,5 @@ class CacheMetadata(BaseModel):
This is mostly used for internal purposes and debugging.""" This is mostly used for internal purposes and debugging."""
ok: bool ok: bool
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.payment_method_card_checks import PaymentMethodCardChecks from ..models.payment_method_card_checks import PaymentMethodCardChecks
@ -23,3 +23,5 @@ class CardDetails(BaseModel):
funding: Optional[str] = None funding: Optional[str] = None
last4: Optional[str] = None last4: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.point3d import Point3d from ..models.point3d import Point3d
from ..models.unit_length import UnitLength from ..models.unit_length import UnitLength
@ -11,3 +11,5 @@ class CenterOfMass(BaseModel):
center_of_mass: Point3d center_of_mass: Point3d
output_unit: UnitLength output_unit: UnitLength
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -21,3 +21,5 @@ class ClientMetrics(BaseModel):
rtc_keyframes_decoded: int rtc_keyframes_decoded: int
rtc_total_freezes_duration_sec: float rtc_total_freezes_duration_sec: float
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -18,3 +18,5 @@ class Cluster(BaseModel):
tls_timeout: Optional[int] = None tls_timeout: Optional[int] = None
urls: Optional[List[str]] = None urls: Optional[List[str]] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.output_file import OutputFile from ..models.output_file import OutputFile
@ -13,3 +13,5 @@ class CodeOutput(BaseModel):
stderr: Optional[str] = None stderr: Optional[str] = None
stdout: Optional[str] = None stdout: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -13,3 +13,5 @@ class Color(BaseModel):
g: float g: float
r: float r: float
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Dict, Optional from typing import Dict, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.cluster import Cluster from ..models.cluster import Cluster
from ..models.gateway import Gateway from ..models.gateway import Gateway
@ -105,3 +105,5 @@ class Connection(BaseModel):
version: Optional[str] = None version: Optional[str] = None
write_deadline: Optional[int] = None write_deadline: Optional[int] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Dict, Optional from typing import Dict, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -18,3 +18,5 @@ class Coupon(BaseModel):
name: Optional[str] = None name: Optional[str] = None
percent_off: Optional[float] = None percent_off: Optional[float] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.point3d import Point3d from ..models.point3d import Point3d
@ -9,3 +9,5 @@ class CurveGetControlPoints(BaseModel):
"""The response from the `CurveGetControlPoints` command.""" """The response from the `CurveGetControlPoints` command."""
control_points: List[Point3d] control_points: List[Point3d]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.point3d import Point3d from ..models.point3d import Point3d
@ -10,3 +10,5 @@ class CurveGetEndPoints(BaseModel):
end: Point3d end: Point3d
start: Point3d start: Point3d
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.curve_type import CurveType from ..models.curve_type import CurveType
@ -8,3 +8,5 @@ class CurveGetType(BaseModel):
"""The response from the `CurveGetType` command.""" """The response from the `CurveGetType` command."""
curve_type: CurveType curve_type: CurveType
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Dict, Optional from typing import Dict, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.currency import Currency from ..models.currency import Currency
from ..models.new_address import NewAddress from ..models.new_address import NewAddress
@ -29,3 +29,5 @@ class Customer(BaseModel):
name: Optional[str] = None name: Optional[str] = None
phone: Optional[str] = None phone: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
import datetime import datetime
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.uuid import Uuid from ..models.uuid import Uuid
@ -25,3 +25,5 @@ class CustomerBalance(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.unit_density import UnitDensity from ..models.unit_density import UnitDensity
@ -10,3 +10,5 @@ class Density(BaseModel):
density: float density: float
output_unit: UnitDensity output_unit: UnitDensity
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.o_auth2_grant_type import OAuth2GrantType from ..models.o_auth2_grant_type import OAuth2GrantType
@ -12,3 +12,5 @@ class DeviceAccessTokenRequestForm(BaseModel):
device_code: str device_code: str
grant_type: OAuth2GrantType grant_type: OAuth2GrantType
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -7,3 +7,5 @@ class DeviceAuthRequestForm(BaseModel):
"""The request parameters for the OAuth 2.0 Device Authorization Grant flow.""" """The request parameters for the OAuth 2.0 Device Authorization Grant flow."""
client_id: str client_id: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -7,3 +7,5 @@ class DeviceAuthVerifyParams(BaseModel):
"""The request parameters to verify the `user_code` for the OAuth 2.0 Device Authorization Grant.""" """The request parameters to verify the `user_code` for the OAuth 2.0 Device Authorization Grant."""
user_code: str user_code: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.coupon import Coupon from ..models.coupon import Coupon
@ -8,3 +8,5 @@ class Discount(BaseModel):
"""The resource representing a Discount.""" """The resource representing a Discount."""
coupon: Coupon coupon: Coupon
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Literal, Union from typing import Literal, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.global_axis import GlobalAxis from ..models.global_axis import GlobalAxis
@ -11,6 +11,8 @@ class euclidean(BaseModel):
type: Literal["euclidean"] = "euclidean" type: Literal["euclidean"] = "euclidean"
model_config = ConfigDict(protected_namespaces=())
class on_axis(BaseModel): class on_axis(BaseModel):
"""The distance between objects along the specified axis""" """The distance between objects along the specified axis"""
@ -19,6 +21,8 @@ class on_axis(BaseModel):
type: Literal["on_axis"] = "on_axis" type: Literal["on_axis"] = "on_axis"
model_config = ConfigDict(protected_namespaces=())
DistanceType = RootModel[ DistanceType = RootModel[
Annotated[ Annotated[

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -10,3 +10,5 @@ class EmailAuthenticationForm(BaseModel):
callback_url: Optional[str] = None callback_url: Optional[str] = None
email: str email: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -8,3 +8,5 @@ class EntityGetAllChildUuids(BaseModel):
"""The response from the `EntityGetAllChildUuids` command.""" """The response from the `EntityGetAllChildUuids` command."""
entity_ids: List[str] entity_ids: List[str]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -7,3 +7,5 @@ class EntityGetChildUuid(BaseModel):
"""The response from the `EntityGetChildUuid` command.""" """The response from the `EntityGetChildUuid` command."""
entity_id: str entity_id: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -9,3 +9,5 @@ class EntityGetDistance(BaseModel):
max_distance: float max_distance: float
min_distance: float min_distance: float
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -7,3 +7,5 @@ class EntityGetNumChildren(BaseModel):
"""The response from the `EntityGetNumChildren` command.""" """The response from the `EntityGetNumChildren` command."""
num: int num: int
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -7,3 +7,5 @@ class EntityGetParentId(BaseModel):
"""The response from the `EntityGetParentId` command.""" """The response from the `EntityGetParentId` command."""
entity_id: str entity_id: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -8,3 +8,5 @@ class EntityLinearPattern(BaseModel):
"""The response from the `EntityLinearPattern` command.""" """The response from the `EntityLinearPattern` command."""
entity_ids: List[str] entity_ids: List[str]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -12,3 +12,5 @@ class Error(BaseModel):
message: str message: str
request_id: str request_id: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.export_file import ExportFile from ..models.export_file import ExportFile
@ -9,3 +9,5 @@ class Export(BaseModel):
"""The response from the `Export` endpoint.""" """The response from the `Export` endpoint."""
files: List[ExportFile] files: List[ExportFile]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from .base64data import Base64Data from .base64data import Base64Data
@ -10,3 +10,5 @@ class ExportFile(BaseModel):
contents: Base64Data contents: Base64Data
name: str name: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.block_reason import BlockReason from ..models.block_reason import BlockReason
from ..models.uuid import Uuid from ..models.uuid import Uuid
@ -46,3 +46,5 @@ class ExtendedUser(BaseModel):
stripe_id: Optional[str] = None stripe_id: Optional[str] = None
updated_at: datetime.datetime updated_at: datetime.datetime
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.extended_user import ExtendedUser from ..models.extended_user import ExtendedUser
@ -11,3 +11,5 @@ class ExtendedUserResultsPage(BaseModel):
items: List[ExtendedUser] items: List[ExtendedUser]
next_page: Optional[str] = None next_page: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_error import ApiError from ..models.api_error import ApiError
@ -13,3 +13,5 @@ class FailureWebSocketResponse(BaseModel):
request_id: Optional[str] = None request_id: Optional[str] = None
success: bool success: bool
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_status import ApiCallStatus from ..models.api_call_status import ApiCallStatus
from ..models.file_import_format import FileImportFormat from ..models.file_import_format import FileImportFormat
@ -34,3 +34,5 @@ class FileCenterOfMass(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Dict, Optional from typing import Dict, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_status import ApiCallStatus from ..models.api_call_status import ApiCallStatus
from ..models.file_export_format import FileExportFormat from ..models.file_export_format import FileExportFormat
@ -40,3 +40,5 @@ class FileConversion(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_status import ApiCallStatus from ..models.api_call_status import ApiCallStatus
from ..models.file_import_format import FileImportFormat from ..models.file_import_format import FileImportFormat
@ -38,3 +38,5 @@ class FileDensity(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_status import ApiCallStatus from ..models.api_call_status import ApiCallStatus
from ..models.file_import_format import FileImportFormat from ..models.file_import_format import FileImportFormat
@ -38,3 +38,5 @@ class FileMass(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_status import ApiCallStatus from ..models.api_call_status import ApiCallStatus
from ..models.file_import_format import FileImportFormat from ..models.file_import_format import FileImportFormat
@ -33,3 +33,5 @@ class FileSurfaceArea(BaseModel):
updated_at: datetime.datetime updated_at: datetime.datetime
user_id: Uuid user_id: Uuid
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -9,3 +9,5 @@ class FileSystemMetadata(BaseModel):
This is mostly used for internal purposes and debugging.""" This is mostly used for internal purposes and debugging."""
ok: bool ok: bool
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.api_call_status import ApiCallStatus from ..models.api_call_status import ApiCallStatus
from ..models.file_import_format import FileImportFormat from ..models.file_import_format import FileImportFormat
@ -33,3 +33,5 @@ class FileVolume(BaseModel):
user_id: Uuid user_id: Uuid
volume: Optional[float] = None volume: Optional[float] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -16,3 +16,5 @@ class Gateway(BaseModel):
port: Optional[int] = None port: Optional[int] = None
tls_timeout: Optional[int] = None tls_timeout: Optional[int] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.entity_type import EntityType from ..models.entity_type import EntityType
@ -8,3 +8,5 @@ class GetEntityType(BaseModel):
"""The response from the `GetEntityType` command.""" """The response from the `GetEntityType` command."""
entity_type: EntityType entity_type: EntityType
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.point3d import Point3d from ..models.point3d import Point3d
@ -12,3 +12,5 @@ class GetSketchModePlane(BaseModel):
y_axis: Point3d y_axis: Point3d
z_axis: Point3d z_axis: Point3d
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -10,3 +10,5 @@ class HighlightSetEntity(BaseModel):
entity_id: Optional[str] = None entity_id: Optional[str] = None
sequence: Optional[int] = None sequence: Optional[int] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Optional from typing import List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -12,3 +12,5 @@ class IceServer(BaseModel):
urls: List[str] urls: List[str]
username: Optional[str] = None username: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -9,3 +9,5 @@ class ImportFile(BaseModel):
data: bytes data: bytes
path: str path: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -7,3 +7,5 @@ class ImportFiles(BaseModel):
"""Data from importing the files""" """Data from importing the files"""
object_id: str object_id: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Literal, Union from typing import Literal, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.system import System from ..models.system import System
@ -12,12 +12,16 @@ class fbx(BaseModel):
type: Literal["fbx"] = "fbx" type: Literal["fbx"] = "fbx"
model_config = ConfigDict(protected_namespaces=())
class gltf(BaseModel): class gltf(BaseModel):
"""Binary glTF 2.0. We refer to this as glTF since that is how our customers refer to it, but this can also import binary glTF (glb).""" """Binary glTF 2.0. We refer to this as glTF since that is how our customers refer to it, but this can also import binary glTF (glb)."""
type: Literal["gltf"] = "gltf" type: Literal["gltf"] = "gltf"
model_config = ConfigDict(protected_namespaces=())
class obj(BaseModel): class obj(BaseModel):
"""Wavefront OBJ format.""" """Wavefront OBJ format."""
@ -28,6 +32,8 @@ class obj(BaseModel):
units: UnitLength units: UnitLength
model_config = ConfigDict(protected_namespaces=())
class ply(BaseModel): class ply(BaseModel):
"""The PLY Polygon File Format.""" """The PLY Polygon File Format."""
@ -38,18 +44,24 @@ class ply(BaseModel):
units: UnitLength units: UnitLength
model_config = ConfigDict(protected_namespaces=())
class sldprt(BaseModel): class sldprt(BaseModel):
"""SolidWorks part (SLDPRT) format.""" """SolidWorks part (SLDPRT) format."""
type: Literal["sldprt"] = "sldprt" type: Literal["sldprt"] = "sldprt"
model_config = ConfigDict(protected_namespaces=())
class step(BaseModel): class step(BaseModel):
"""ISO 10303-21 (STEP) format.""" """ISO 10303-21 (STEP) format."""
type: Literal["step"] = "step" type: Literal["step"] = "step"
model_config = ConfigDict(protected_namespaces=())
class stl(BaseModel): class stl(BaseModel):
"""*ST**ereo**L**ithography format.""" """*ST**ereo**L**ithography format."""
@ -60,6 +72,8 @@ class stl(BaseModel):
units: UnitLength units: UnitLength
model_config = ConfigDict(protected_namespaces=())
InputFormat = RootModel[ InputFormat = RootModel[
Annotated[ Annotated[

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Dict, List, Optional from typing import Dict, List, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.currency import Currency from ..models.currency import Currency
from ..models.discount import Discount from ..models.discount import Discount
@ -61,3 +61,5 @@ class Invoice(BaseModel):
total: Optional[float] = None total: Optional[float] = None
url: Optional[str] = None url: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Dict, Optional from typing import Dict, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.currency import Currency from ..models.currency import Currency
@ -19,3 +19,5 @@ class InvoiceLineItem(BaseModel):
invoice_item: Optional[str] = None invoice_item: Optional[str] = None
metadata: Optional[Dict[str, str]] = None metadata: Optional[Dict[str, str]] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.jetstream_config import JetstreamConfig from ..models.jetstream_config import JetstreamConfig
from ..models.jetstream_stats import JetstreamStats from ..models.jetstream_stats import JetstreamStats
@ -15,3 +15,5 @@ class Jetstream(BaseModel):
meta: Optional[MetaClusterInfo] = None meta: Optional[MetaClusterInfo] = None
stats: Optional[JetstreamStats] = None stats: Optional[JetstreamStats] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -12,3 +12,5 @@ class JetstreamApiStats(BaseModel):
inflight: Optional[int] = None inflight: Optional[int] = None
total: Optional[int] = None total: Optional[int] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -14,3 +14,5 @@ class JetstreamConfig(BaseModel):
max_storage: Optional[int] = None max_storage: Optional[int] = None
store_dir: Optional[str] = None store_dir: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.jetstream_api_stats import JetstreamApiStats from ..models.jetstream_api_stats import JetstreamApiStats
@ -21,3 +21,5 @@ class JetstreamStats(BaseModel):
reserved_store: Optional[int] = None reserved_store: Optional[int] = None
store: Optional[int] = None store: Optional[int] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -14,3 +14,5 @@ class LeafNode(BaseModel):
port: Optional[int] = None port: Optional[int] = None
tls_timeout: Optional[int] = None tls_timeout: Optional[int] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.unit_mass import UnitMass from ..models.unit_mass import UnitMass
@ -10,3 +10,5 @@ class Mass(BaseModel):
mass: float mass: float
output_unit: UnitMass output_unit: UnitMass
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -12,3 +12,5 @@ class MetaClusterInfo(BaseModel):
leader: Optional[str] = None leader: Optional[str] = None
name: Optional[str] = None name: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.cache_metadata import CacheMetadata from ..models.cache_metadata import CacheMetadata
from ..models.connection import Connection from ..models.connection import Connection
@ -21,3 +21,5 @@ class Metadata(BaseModel):
git_hash: str git_hash: str
pubsub: Connection pubsub: Connection
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List, Literal, Optional, Union from typing import List, Literal, Optional, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.annotation_options import AnnotationOptions from ..models.annotation_options import AnnotationOptions
@ -34,6 +34,8 @@ class start_path(BaseModel):
type: Literal["start_path"] = "start_path" type: Literal["start_path"] = "start_path"
model_config = ConfigDict(protected_namespaces=())
class move_path_pen(BaseModel): class move_path_pen(BaseModel):
"""Move the path's "pen".""" """Move the path's "pen"."""
@ -44,6 +46,8 @@ class move_path_pen(BaseModel):
type: Literal["move_path_pen"] = "move_path_pen" type: Literal["move_path_pen"] = "move_path_pen"
model_config = ConfigDict(protected_namespaces=())
class extend_path(BaseModel): class extend_path(BaseModel):
"""Extend a path by adding a new segment which starts at the path's "pen". If no "pen" location has been set before (via `MovePen`), then the pen is at the origin.""" """Extend a path by adding a new segment which starts at the path's "pen". If no "pen" location has been set before (via `MovePen`), then the pen is at the origin."""
@ -54,6 +58,8 @@ class extend_path(BaseModel):
type: Literal["extend_path"] = "extend_path" type: Literal["extend_path"] = "extend_path"
model_config = ConfigDict(protected_namespaces=())
class extrude(BaseModel): class extrude(BaseModel):
"""Extrude a 2D solid.""" """Extrude a 2D solid."""
@ -66,6 +72,8 @@ class extrude(BaseModel):
type: Literal["extrude"] = "extrude" type: Literal["extrude"] = "extrude"
model_config = ConfigDict(protected_namespaces=())
class close_path(BaseModel): class close_path(BaseModel):
"""Closes a path, converting it to a 2D solid.""" """Closes a path, converting it to a 2D solid."""
@ -74,6 +82,8 @@ class close_path(BaseModel):
type: Literal["close_path"] = "close_path" type: Literal["close_path"] = "close_path"
model_config = ConfigDict(protected_namespaces=())
class camera_drag_start(BaseModel): class camera_drag_start(BaseModel):
"""Camera drag started.""" """Camera drag started."""
@ -84,6 +94,8 @@ class camera_drag_start(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class camera_drag_move(BaseModel): class camera_drag_move(BaseModel):
"""Camera drag continued.""" """Camera drag continued."""
@ -96,6 +108,8 @@ class camera_drag_move(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class camera_drag_end(BaseModel): class camera_drag_end(BaseModel):
"""Camera drag ended.""" """Camera drag ended."""
@ -106,6 +120,8 @@ class camera_drag_end(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class default_camera_look_at(BaseModel): class default_camera_look_at(BaseModel):
"""Change what the default camera is looking at.""" """Change what the default camera is looking at."""
@ -118,6 +134,8 @@ class default_camera_look_at(BaseModel):
vantage: Point3d vantage: Point3d
model_config = ConfigDict(protected_namespaces=())
class default_camera_zoom(BaseModel): class default_camera_zoom(BaseModel):
"""Adjust zoom of the default camera.""" """Adjust zoom of the default camera."""
@ -126,6 +144,8 @@ class default_camera_zoom(BaseModel):
type: Literal["default_camera_zoom"] = "default_camera_zoom" type: Literal["default_camera_zoom"] = "default_camera_zoom"
model_config = ConfigDict(protected_namespaces=())
class default_camera_enable_sketch_mode(BaseModel): class default_camera_enable_sketch_mode(BaseModel):
"""Enable sketch mode, where users can sketch 2D geometry. Users choose a plane to sketch on.""" """Enable sketch mode, where users can sketch 2D geometry. Users choose a plane to sketch on."""
@ -146,6 +166,8 @@ class default_camera_enable_sketch_mode(BaseModel):
y_axis: Point3d y_axis: Point3d
model_config = ConfigDict(protected_namespaces=())
class default_camera_disable_sketch_mode(BaseModel): class default_camera_disable_sketch_mode(BaseModel):
"""Disable sketch mode, from the default camera.""" """Disable sketch mode, from the default camera."""
@ -154,6 +176,8 @@ class default_camera_disable_sketch_mode(BaseModel):
"default_camera_disable_sketch_mode" "default_camera_disable_sketch_mode"
] = "default_camera_disable_sketch_mode" ] = "default_camera_disable_sketch_mode"
model_config = ConfigDict(protected_namespaces=())
class default_camera_focus_on(BaseModel): class default_camera_focus_on(BaseModel):
"""Focus default camera on object.""" """Focus default camera on object."""
@ -162,6 +186,8 @@ class default_camera_focus_on(BaseModel):
uuid: str uuid: str
model_config = ConfigDict(protected_namespaces=())
class export(BaseModel): class export(BaseModel):
"""Export the scene to a file.""" """Export the scene to a file."""
@ -174,6 +200,8 @@ class export(BaseModel):
type: Literal["export"] = "export" type: Literal["export"] = "export"
model_config = ConfigDict(protected_namespaces=())
class entity_get_parent_id(BaseModel): class entity_get_parent_id(BaseModel):
"""What is this entity's parent?""" """What is this entity's parent?"""
@ -182,6 +210,8 @@ class entity_get_parent_id(BaseModel):
type: Literal["entity_get_parent_id"] = "entity_get_parent_id" type: Literal["entity_get_parent_id"] = "entity_get_parent_id"
model_config = ConfigDict(protected_namespaces=())
class entity_get_num_children(BaseModel): class entity_get_num_children(BaseModel):
"""How many children does the entity have?""" """How many children does the entity have?"""
@ -190,6 +220,8 @@ class entity_get_num_children(BaseModel):
type: Literal["entity_get_num_children"] = "entity_get_num_children" type: Literal["entity_get_num_children"] = "entity_get_num_children"
model_config = ConfigDict(protected_namespaces=())
class entity_get_child_uuid(BaseModel): class entity_get_child_uuid(BaseModel):
"""What is the UUID of this entity's n-th child?""" """What is the UUID of this entity's n-th child?"""
@ -200,6 +232,8 @@ class entity_get_child_uuid(BaseModel):
type: Literal["entity_get_child_uuid"] = "entity_get_child_uuid" type: Literal["entity_get_child_uuid"] = "entity_get_child_uuid"
model_config = ConfigDict(protected_namespaces=())
class entity_get_all_child_uuids(BaseModel): class entity_get_all_child_uuids(BaseModel):
"""What are all UUIDs of this entity's children?""" """What are all UUIDs of this entity's children?"""
@ -208,6 +242,8 @@ class entity_get_all_child_uuids(BaseModel):
type: Literal["entity_get_all_child_uuids"] = "entity_get_all_child_uuids" type: Literal["entity_get_all_child_uuids"] = "entity_get_all_child_uuids"
model_config = ConfigDict(protected_namespaces=())
class edit_mode_enter(BaseModel): class edit_mode_enter(BaseModel):
"""Enter edit mode""" """Enter edit mode"""
@ -216,12 +252,16 @@ class edit_mode_enter(BaseModel):
type: Literal["edit_mode_enter"] = "edit_mode_enter" type: Literal["edit_mode_enter"] = "edit_mode_enter"
model_config = ConfigDict(protected_namespaces=())
class edit_mode_exit(BaseModel): class edit_mode_exit(BaseModel):
"""Exit edit mode""" """Exit edit mode"""
type: Literal["edit_mode_exit"] = "edit_mode_exit" type: Literal["edit_mode_exit"] = "edit_mode_exit"
model_config = ConfigDict(protected_namespaces=())
class select_with_point(BaseModel): class select_with_point(BaseModel):
"""Modifies the selection by simulating a "mouse click" at the given x,y window coordinate Returns ID of whatever was selected.""" """Modifies the selection by simulating a "mouse click" at the given x,y window coordinate Returns ID of whatever was selected."""
@ -232,12 +272,16 @@ class select_with_point(BaseModel):
type: Literal["select_with_point"] = "select_with_point" type: Literal["select_with_point"] = "select_with_point"
model_config = ConfigDict(protected_namespaces=())
class select_clear(BaseModel): class select_clear(BaseModel):
"""Clear the selection""" """Clear the selection"""
type: Literal["select_clear"] = "select_clear" type: Literal["select_clear"] = "select_clear"
model_config = ConfigDict(protected_namespaces=())
class select_add(BaseModel): class select_add(BaseModel):
"""Adds one or more entities (by UUID) to the selection.""" """Adds one or more entities (by UUID) to the selection."""
@ -246,6 +290,8 @@ class select_add(BaseModel):
type: Literal["select_add"] = "select_add" type: Literal["select_add"] = "select_add"
model_config = ConfigDict(protected_namespaces=())
class select_remove(BaseModel): class select_remove(BaseModel):
"""Removes one or more entities (by UUID) from the selection.""" """Removes one or more entities (by UUID) from the selection."""
@ -254,6 +300,8 @@ class select_remove(BaseModel):
type: Literal["select_remove"] = "select_remove" type: Literal["select_remove"] = "select_remove"
model_config = ConfigDict(protected_namespaces=())
class select_replace(BaseModel): class select_replace(BaseModel):
"""Replaces the current selection with these new entities (by UUID). Equivalent to doing SelectClear then SelectAdd.""" """Replaces the current selection with these new entities (by UUID). Equivalent to doing SelectClear then SelectAdd."""
@ -262,12 +310,16 @@ class select_replace(BaseModel):
type: Literal["select_replace"] = "select_replace" type: Literal["select_replace"] = "select_replace"
model_config = ConfigDict(protected_namespaces=())
class select_get(BaseModel): class select_get(BaseModel):
"""Find all IDs of selected entities""" """Find all IDs of selected entities"""
type: Literal["select_get"] = "select_get" type: Literal["select_get"] = "select_get"
model_config = ConfigDict(protected_namespaces=())
class highlight_set_entity(BaseModel): class highlight_set_entity(BaseModel):
"""Changes the current highlighted entity to whichever one is at the given window coordinate. If there's no entity at this location, clears the highlight.""" """Changes the current highlighted entity to whichever one is at the given window coordinate. If there's no entity at this location, clears the highlight."""
@ -278,6 +330,8 @@ class highlight_set_entity(BaseModel):
type: Literal["highlight_set_entity"] = "highlight_set_entity" type: Literal["highlight_set_entity"] = "highlight_set_entity"
model_config = ConfigDict(protected_namespaces=())
class highlight_set_entities(BaseModel): class highlight_set_entities(BaseModel):
"""Changes the current highlighted entity to these entities.""" """Changes the current highlighted entity to these entities."""
@ -286,6 +340,8 @@ class highlight_set_entities(BaseModel):
type: Literal["highlight_set_entities"] = "highlight_set_entities" type: Literal["highlight_set_entities"] = "highlight_set_entities"
model_config = ConfigDict(protected_namespaces=())
class new_annotation(BaseModel): class new_annotation(BaseModel):
"""Create a new annotation""" """Create a new annotation"""
@ -298,6 +354,8 @@ class new_annotation(BaseModel):
type: Literal["new_annotation"] = "new_annotation" type: Literal["new_annotation"] = "new_annotation"
model_config = ConfigDict(protected_namespaces=())
class update_annotation(BaseModel): class update_annotation(BaseModel):
"""Update an annotation""" """Update an annotation"""
@ -308,6 +366,8 @@ class update_annotation(BaseModel):
type: Literal["update_annotation"] = "update_annotation" type: Literal["update_annotation"] = "update_annotation"
model_config = ConfigDict(protected_namespaces=())
class object_visible(BaseModel): class object_visible(BaseModel):
"""Hide or show an object""" """Hide or show an object"""
@ -318,6 +378,8 @@ class object_visible(BaseModel):
type: Literal["object_visible"] = "object_visible" type: Literal["object_visible"] = "object_visible"
model_config = ConfigDict(protected_namespaces=())
class object_bring_to_front(BaseModel): class object_bring_to_front(BaseModel):
"""Bring an object to the front of the scene""" """Bring an object to the front of the scene"""
@ -326,6 +388,8 @@ class object_bring_to_front(BaseModel):
type: Literal["object_bring_to_front"] = "object_bring_to_front" type: Literal["object_bring_to_front"] = "object_bring_to_front"
model_config = ConfigDict(protected_namespaces=())
class get_entity_type(BaseModel): class get_entity_type(BaseModel):
"""What type of entity is this?""" """What type of entity is this?"""
@ -334,6 +398,8 @@ class get_entity_type(BaseModel):
type: Literal["get_entity_type"] = "get_entity_type" type: Literal["get_entity_type"] = "get_entity_type"
model_config = ConfigDict(protected_namespaces=())
class solid2d_add_hole(BaseModel): class solid2d_add_hole(BaseModel):
"""Add a hole to a Solid2d object before extruding it.""" """Add a hole to a Solid2d object before extruding it."""
@ -344,6 +410,8 @@ class solid2d_add_hole(BaseModel):
type: Literal["solid2d_add_hole"] = "solid2d_add_hole" type: Literal["solid2d_add_hole"] = "solid2d_add_hole"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_all_edge_faces(BaseModel): class solid3d_get_all_edge_faces(BaseModel):
"""Gets all faces which use the given edge.""" """Gets all faces which use the given edge."""
@ -354,6 +422,8 @@ class solid3d_get_all_edge_faces(BaseModel):
type: Literal["solid3d_get_all_edge_faces"] = "solid3d_get_all_edge_faces" type: Literal["solid3d_get_all_edge_faces"] = "solid3d_get_all_edge_faces"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_all_opposite_edges(BaseModel): class solid3d_get_all_opposite_edges(BaseModel):
"""Gets all edges which are opposite the given edge, across all possible faces.""" """Gets all edges which are opposite the given edge, across all possible faces."""
@ -366,6 +436,8 @@ class solid3d_get_all_opposite_edges(BaseModel):
type: Literal["solid3d_get_all_opposite_edges"] = "solid3d_get_all_opposite_edges" type: Literal["solid3d_get_all_opposite_edges"] = "solid3d_get_all_opposite_edges"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_opposite_edge(BaseModel): class solid3d_get_opposite_edge(BaseModel):
"""Gets the edge opposite the given edge, along the given face.""" """Gets the edge opposite the given edge, along the given face."""
@ -378,6 +450,8 @@ class solid3d_get_opposite_edge(BaseModel):
type: Literal["solid3d_get_opposite_edge"] = "solid3d_get_opposite_edge" type: Literal["solid3d_get_opposite_edge"] = "solid3d_get_opposite_edge"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_next_adjacent_edge(BaseModel): class solid3d_get_next_adjacent_edge(BaseModel):
"""Gets the next adjacent edge for the given edge, along the given face.""" """Gets the next adjacent edge for the given edge, along the given face."""
@ -390,6 +464,8 @@ class solid3d_get_next_adjacent_edge(BaseModel):
type: Literal["solid3d_get_next_adjacent_edge"] = "solid3d_get_next_adjacent_edge" type: Literal["solid3d_get_next_adjacent_edge"] = "solid3d_get_next_adjacent_edge"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_prev_adjacent_edge(BaseModel): class solid3d_get_prev_adjacent_edge(BaseModel):
"""Gets the previous adjacent edge for the given edge, along the given face.""" """Gets the previous adjacent edge for the given edge, along the given face."""
@ -402,6 +478,8 @@ class solid3d_get_prev_adjacent_edge(BaseModel):
type: Literal["solid3d_get_prev_adjacent_edge"] = "solid3d_get_prev_adjacent_edge" type: Literal["solid3d_get_prev_adjacent_edge"] = "solid3d_get_prev_adjacent_edge"
model_config = ConfigDict(protected_namespaces=())
class send_object(BaseModel): class send_object(BaseModel):
"""Sends object to front or back.""" """Sends object to front or back."""
@ -412,6 +490,8 @@ class send_object(BaseModel):
type: Literal["send_object"] = "send_object" type: Literal["send_object"] = "send_object"
model_config = ConfigDict(protected_namespaces=())
class entity_set_opacity(BaseModel): class entity_set_opacity(BaseModel):
"""Set opacity of the entity.""" """Set opacity of the entity."""
@ -422,6 +502,8 @@ class entity_set_opacity(BaseModel):
type: Literal["entity_set_opacity"] = "entity_set_opacity" type: Literal["entity_set_opacity"] = "entity_set_opacity"
model_config = ConfigDict(protected_namespaces=())
class entity_fade(BaseModel): class entity_fade(BaseModel):
"""Fade the entity in or out.""" """Fade the entity in or out."""
@ -434,6 +516,8 @@ class entity_fade(BaseModel):
type: Literal["entity_fade"] = "entity_fade" type: Literal["entity_fade"] = "entity_fade"
model_config = ConfigDict(protected_namespaces=())
class make_plane(BaseModel): class make_plane(BaseModel):
"""Make a plane.""" """Make a plane."""
@ -452,6 +536,8 @@ class make_plane(BaseModel):
y_axis: Point3d y_axis: Point3d
model_config = ConfigDict(protected_namespaces=())
class plane_set_color(BaseModel): class plane_set_color(BaseModel):
"""Set the plane's color.""" """Set the plane's color."""
@ -462,6 +548,8 @@ class plane_set_color(BaseModel):
type: Literal["plane_set_color"] = "plane_set_color" type: Literal["plane_set_color"] = "plane_set_color"
model_config = ConfigDict(protected_namespaces=())
class set_tool(BaseModel): class set_tool(BaseModel):
"""Set the active tool.""" """Set the active tool."""
@ -470,6 +558,8 @@ class set_tool(BaseModel):
type: Literal["set_tool"] = "set_tool" type: Literal["set_tool"] = "set_tool"
model_config = ConfigDict(protected_namespaces=())
class mouse_move(BaseModel): class mouse_move(BaseModel):
"""Send a mouse move event.""" """Send a mouse move event."""
@ -480,6 +570,8 @@ class mouse_move(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class mouse_click(BaseModel): class mouse_click(BaseModel):
"""Send a mouse click event. Updates modified/selected entities.""" """Send a mouse click event. Updates modified/selected entities."""
@ -488,6 +580,8 @@ class mouse_click(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class sketch_mode_enable(BaseModel): class sketch_mode_enable(BaseModel):
"""Enable sketch mode on the given plane.""" """Enable sketch mode on the given plane."""
@ -502,12 +596,16 @@ class sketch_mode_enable(BaseModel):
type: Literal["sketch_mode_enable"] = "sketch_mode_enable" type: Literal["sketch_mode_enable"] = "sketch_mode_enable"
model_config = ConfigDict(protected_namespaces=())
class sketch_mode_disable(BaseModel): class sketch_mode_disable(BaseModel):
"""Disable sketch mode.""" """Disable sketch mode."""
type: Literal["sketch_mode_disable"] = "sketch_mode_disable" type: Literal["sketch_mode_disable"] = "sketch_mode_disable"
model_config = ConfigDict(protected_namespaces=())
class curve_get_type(BaseModel): class curve_get_type(BaseModel):
"""Get type of a given curve.""" """Get type of a given curve."""
@ -516,6 +614,8 @@ class curve_get_type(BaseModel):
type: Literal["curve_get_type"] = "curve_get_type" type: Literal["curve_get_type"] = "curve_get_type"
model_config = ConfigDict(protected_namespaces=())
class curve_get_control_points(BaseModel): class curve_get_control_points(BaseModel):
"""Get control points of a given curve.""" """Get control points of a given curve."""
@ -524,6 +624,8 @@ class curve_get_control_points(BaseModel):
type: Literal["curve_get_control_points"] = "curve_get_control_points" type: Literal["curve_get_control_points"] = "curve_get_control_points"
model_config = ConfigDict(protected_namespaces=())
class take_snapshot(BaseModel): class take_snapshot(BaseModel):
"""Take a snapshot.""" """Take a snapshot."""
@ -532,6 +634,8 @@ class take_snapshot(BaseModel):
type: Literal["take_snapshot"] = "take_snapshot" type: Literal["take_snapshot"] = "take_snapshot"
model_config = ConfigDict(protected_namespaces=())
class make_axes_gizmo(BaseModel): class make_axes_gizmo(BaseModel):
"""Add a gizmo showing the axes.""" """Add a gizmo showing the axes."""
@ -542,6 +646,8 @@ class make_axes_gizmo(BaseModel):
type: Literal["make_axes_gizmo"] = "make_axes_gizmo" type: Literal["make_axes_gizmo"] = "make_axes_gizmo"
model_config = ConfigDict(protected_namespaces=())
class path_get_info(BaseModel): class path_get_info(BaseModel):
"""Query the given path""" """Query the given path"""
@ -550,6 +656,8 @@ class path_get_info(BaseModel):
type: Literal["path_get_info"] = "path_get_info" type: Literal["path_get_info"] = "path_get_info"
model_config = ConfigDict(protected_namespaces=())
class path_get_curve_uuids_for_vertices(BaseModel): class path_get_curve_uuids_for_vertices(BaseModel):
"""Get curves for vertices within a path""" """Get curves for vertices within a path"""
@ -562,6 +670,8 @@ class path_get_curve_uuids_for_vertices(BaseModel):
vertex_ids: List[str] vertex_ids: List[str]
model_config = ConfigDict(protected_namespaces=())
class path_get_vertex_uuids(BaseModel): class path_get_vertex_uuids(BaseModel):
"""Get vertices within a path""" """Get vertices within a path"""
@ -570,6 +680,8 @@ class path_get_vertex_uuids(BaseModel):
type: Literal["path_get_vertex_uuids"] = "path_get_vertex_uuids" type: Literal["path_get_vertex_uuids"] = "path_get_vertex_uuids"
model_config = ConfigDict(protected_namespaces=())
class handle_mouse_drag_start(BaseModel): class handle_mouse_drag_start(BaseModel):
"""Start dragging mouse.""" """Start dragging mouse."""
@ -578,6 +690,8 @@ class handle_mouse_drag_start(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class handle_mouse_drag_move(BaseModel): class handle_mouse_drag_move(BaseModel):
"""Continue dragging mouse.""" """Continue dragging mouse."""
@ -588,6 +702,8 @@ class handle_mouse_drag_move(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class handle_mouse_drag_end(BaseModel): class handle_mouse_drag_end(BaseModel):
"""Stop dragging mouse.""" """Stop dragging mouse."""
@ -596,6 +712,8 @@ class handle_mouse_drag_end(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class remove_scene_objects(BaseModel): class remove_scene_objects(BaseModel):
"""Remove scene objects.""" """Remove scene objects."""
@ -604,6 +722,8 @@ class remove_scene_objects(BaseModel):
type: Literal["remove_scene_objects"] = "remove_scene_objects" type: Literal["remove_scene_objects"] = "remove_scene_objects"
model_config = ConfigDict(protected_namespaces=())
class plane_intersect_and_project(BaseModel): class plane_intersect_and_project(BaseModel):
"""Utility method. Performs both a ray cast and projection to plane-local coordinates. Returns the plane coordinates for the given window coordinates.""" """Utility method. Performs both a ray cast and projection to plane-local coordinates. Returns the plane coordinates for the given window coordinates."""
@ -614,6 +734,8 @@ class plane_intersect_and_project(BaseModel):
window: Point2d window: Point2d
model_config = ConfigDict(protected_namespaces=())
class curve_get_end_points(BaseModel): class curve_get_end_points(BaseModel):
"""Find the start and end of a curve.""" """Find the start and end of a curve."""
@ -622,6 +744,8 @@ class curve_get_end_points(BaseModel):
type: Literal["curve_get_end_points"] = "curve_get_end_points" type: Literal["curve_get_end_points"] = "curve_get_end_points"
model_config = ConfigDict(protected_namespaces=())
class reconfigure_stream(BaseModel): class reconfigure_stream(BaseModel):
"""Reconfigure the stream.""" """Reconfigure the stream."""
@ -634,6 +758,8 @@ class reconfigure_stream(BaseModel):
width: int width: int
model_config = ConfigDict(protected_namespaces=())
class import_files(BaseModel): class import_files(BaseModel):
"""Import files to the current model.""" """Import files to the current model."""
@ -644,6 +770,8 @@ class import_files(BaseModel):
type: Literal["import_files"] = "import_files" type: Literal["import_files"] = "import_files"
model_config = ConfigDict(protected_namespaces=())
class mass(BaseModel): class mass(BaseModel):
"""Get the mass of entities in the scene or the default scene.""" """Get the mass of entities in the scene or the default scene."""
@ -660,6 +788,8 @@ class mass(BaseModel):
type: Literal["mass"] = "mass" type: Literal["mass"] = "mass"
model_config = ConfigDict(protected_namespaces=())
class density(BaseModel): class density(BaseModel):
"""Get the density of entities in the scene or the default scene.""" """Get the density of entities in the scene or the default scene."""
@ -676,6 +806,8 @@ class density(BaseModel):
type: Literal["density"] = "density" type: Literal["density"] = "density"
model_config = ConfigDict(protected_namespaces=())
class volume(BaseModel): class volume(BaseModel):
"""Get the volume of entities in the scene or the default scene.""" """Get the volume of entities in the scene or the default scene."""
@ -688,6 +820,8 @@ class volume(BaseModel):
type: Literal["volume"] = "volume" type: Literal["volume"] = "volume"
model_config = ConfigDict(protected_namespaces=())
class center_of_mass(BaseModel): class center_of_mass(BaseModel):
"""Get the center of mass of entities in the scene or the default scene.""" """Get the center of mass of entities in the scene or the default scene."""
@ -700,6 +834,8 @@ class center_of_mass(BaseModel):
type: Literal["center_of_mass"] = "center_of_mass" type: Literal["center_of_mass"] = "center_of_mass"
model_config = ConfigDict(protected_namespaces=())
class surface_area(BaseModel): class surface_area(BaseModel):
"""Get the surface area of entities in the scene or the default scene.""" """Get the surface area of entities in the scene or the default scene."""
@ -712,12 +848,16 @@ class surface_area(BaseModel):
type: Literal["surface_area"] = "surface_area" type: Literal["surface_area"] = "surface_area"
model_config = ConfigDict(protected_namespaces=())
class get_sketch_mode_plane(BaseModel): class get_sketch_mode_plane(BaseModel):
"""Get the plane of the sketch mode. This is useful for getting the normal of the plane after a user selects a plane.""" """Get the plane of the sketch mode. This is useful for getting the normal of the plane after a user selects a plane."""
type: Literal["get_sketch_mode_plane"] = "get_sketch_mode_plane" type: Literal["get_sketch_mode_plane"] = "get_sketch_mode_plane"
model_config = ConfigDict(protected_namespaces=())
class curve_set_constraint(BaseModel): class curve_set_constraint(BaseModel):
"""Constrain a curve.""" """Constrain a curve."""
@ -730,6 +870,8 @@ class curve_set_constraint(BaseModel):
type: Literal["curve_set_constraint"] = "curve_set_constraint" type: Literal["curve_set_constraint"] = "curve_set_constraint"
model_config = ConfigDict(protected_namespaces=())
class enable_sketch_mode(BaseModel): class enable_sketch_mode(BaseModel):
"""Sketch on some entity (e.g. a plane, a face)""" """Sketch on some entity (e.g. a plane, a face)"""
@ -742,6 +884,8 @@ class enable_sketch_mode(BaseModel):
type: Literal["enable_sketch_mode"] = "enable_sketch_mode" type: Literal["enable_sketch_mode"] = "enable_sketch_mode"
model_config = ConfigDict(protected_namespaces=())
class object_set_material_params_pbr(BaseModel): class object_set_material_params_pbr(BaseModel):
"""Set the material properties of an object""" """Set the material properties of an object"""
@ -758,6 +902,8 @@ class object_set_material_params_pbr(BaseModel):
type: Literal["object_set_material_params_pbr"] = "object_set_material_params_pbr" type: Literal["object_set_material_params_pbr"] = "object_set_material_params_pbr"
model_config = ConfigDict(protected_namespaces=())
class entity_get_distance(BaseModel): class entity_get_distance(BaseModel):
"""What is the distance between these two entities?""" """What is the distance between these two entities?"""
@ -770,6 +916,8 @@ class entity_get_distance(BaseModel):
type: Literal["entity_get_distance"] = "entity_get_distance" type: Literal["entity_get_distance"] = "entity_get_distance"
model_config = ConfigDict(protected_namespaces=())
class entity_linear_pattern(BaseModel): class entity_linear_pattern(BaseModel):
"""Duplicate the given entity, evenly spaced along the chosen axis.""" """Duplicate the given entity, evenly spaced along the chosen axis."""
@ -784,6 +932,8 @@ class entity_linear_pattern(BaseModel):
type: Literal["entity_linear_pattern"] = "entity_linear_pattern" type: Literal["entity_linear_pattern"] = "entity_linear_pattern"
model_config = ConfigDict(protected_namespaces=())
class set_selection_type(BaseModel): class set_selection_type(BaseModel):
"""When you select some entity with the current tool, what should happen to the entity?""" """When you select some entity with the current tool, what should happen to the entity?"""
@ -792,6 +942,8 @@ class set_selection_type(BaseModel):
type: Literal["set_selection_type"] = "set_selection_type" type: Literal["set_selection_type"] = "set_selection_type"
model_config = ConfigDict(protected_namespaces=())
class set_selection_filter(BaseModel): class set_selection_filter(BaseModel):
"""What kind of entities can be selected?""" """What kind of entities can be selected?"""
@ -800,12 +952,16 @@ class set_selection_filter(BaseModel):
type: Literal["set_selection_filter"] = "set_selection_filter" type: Literal["set_selection_filter"] = "set_selection_filter"
model_config = ConfigDict(protected_namespaces=())
class default_camera_set_orthographic(BaseModel): class default_camera_set_orthographic(BaseModel):
"""Use orthographic projection.""" """Use orthographic projection."""
type: Literal["default_camera_set_orthographic"] = "default_camera_set_orthographic" type: Literal["default_camera_set_orthographic"] = "default_camera_set_orthographic"
model_config = ConfigDict(protected_namespaces=())
class default_camera_set_perspective(BaseModel): class default_camera_set_perspective(BaseModel):
"""Use perspective projection.""" """Use perspective projection."""
@ -814,6 +970,8 @@ class default_camera_set_perspective(BaseModel):
type: Literal["default_camera_set_perspective"] = "default_camera_set_perspective" type: Literal["default_camera_set_perspective"] = "default_camera_set_perspective"
model_config = ConfigDict(protected_namespaces=())
ModelingCmd = RootModel[ ModelingCmd = RootModel[
Annotated[ Annotated[

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.modeling_cmd import ModelingCmd from ..models.modeling_cmd import ModelingCmd
from ..models.modeling_cmd_id import ModelingCmdId from ..models.modeling_cmd_id import ModelingCmdId
@ -11,3 +11,5 @@ class ModelingCmdReq(BaseModel):
cmd: ModelingCmd cmd: ModelingCmd
cmd_id: ModelingCmdId cmd_id: ModelingCmdId
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -10,3 +10,5 @@ class MouseClick(BaseModel):
entities_modified: List[str] entities_modified: List[str]
entities_selected: List[str] entities_selected: List[str]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.country_code import CountryCode from ..models.country_code import CountryCode
from ..models.uuid import Uuid from ..models.uuid import Uuid
@ -22,3 +22,5 @@ class NewAddress(BaseModel):
user_id: Uuid user_id: Uuid
zip: Optional[str] = None zip: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -12,3 +12,5 @@ class OAuth2ClientInfo(BaseModel):
pkce_code_verifier: Optional[str] = None pkce_code_verifier: Optional[str] = None
url: Optional[str] = None url: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Literal, Union from typing import Literal, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.center_of_mass import CenterOfMass from ..models.center_of_mass import CenterOfMass
@ -42,6 +42,8 @@ class empty(BaseModel):
type: Literal["empty"] = "empty" type: Literal["empty"] = "empty"
model_config = ConfigDict(protected_namespaces=())
class export(BaseModel): class export(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -50,6 +52,8 @@ class export(BaseModel):
type: Literal["export"] = "export" type: Literal["export"] = "export"
model_config = ConfigDict(protected_namespaces=())
class select_with_point(BaseModel): class select_with_point(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -58,6 +62,8 @@ class select_with_point(BaseModel):
type: Literal["select_with_point"] = "select_with_point" type: Literal["select_with_point"] = "select_with_point"
model_config = ConfigDict(protected_namespaces=())
class highlight_set_entity(BaseModel): class highlight_set_entity(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -66,6 +72,8 @@ class highlight_set_entity(BaseModel):
type: Literal["highlight_set_entity"] = "highlight_set_entity" type: Literal["highlight_set_entity"] = "highlight_set_entity"
model_config = ConfigDict(protected_namespaces=())
class entity_get_child_uuid(BaseModel): class entity_get_child_uuid(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -74,6 +82,8 @@ class entity_get_child_uuid(BaseModel):
type: Literal["entity_get_child_uuid"] = "entity_get_child_uuid" type: Literal["entity_get_child_uuid"] = "entity_get_child_uuid"
model_config = ConfigDict(protected_namespaces=())
class entity_get_num_children(BaseModel): class entity_get_num_children(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -82,6 +92,8 @@ class entity_get_num_children(BaseModel):
type: Literal["entity_get_num_children"] = "entity_get_num_children" type: Literal["entity_get_num_children"] = "entity_get_num_children"
model_config = ConfigDict(protected_namespaces=())
class entity_get_parent_id(BaseModel): class entity_get_parent_id(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -90,6 +102,8 @@ class entity_get_parent_id(BaseModel):
type: Literal["entity_get_parent_id"] = "entity_get_parent_id" type: Literal["entity_get_parent_id"] = "entity_get_parent_id"
model_config = ConfigDict(protected_namespaces=())
class entity_get_all_child_uuids(BaseModel): class entity_get_all_child_uuids(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -98,6 +112,8 @@ class entity_get_all_child_uuids(BaseModel):
type: Literal["entity_get_all_child_uuids"] = "entity_get_all_child_uuids" type: Literal["entity_get_all_child_uuids"] = "entity_get_all_child_uuids"
model_config = ConfigDict(protected_namespaces=())
class select_get(BaseModel): class select_get(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -106,6 +122,8 @@ class select_get(BaseModel):
type: Literal["select_get"] = "select_get" type: Literal["select_get"] = "select_get"
model_config = ConfigDict(protected_namespaces=())
class get_entity_type(BaseModel): class get_entity_type(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -114,6 +132,8 @@ class get_entity_type(BaseModel):
type: Literal["get_entity_type"] = "get_entity_type" type: Literal["get_entity_type"] = "get_entity_type"
model_config = ConfigDict(protected_namespaces=())
class entity_get_distance(BaseModel): class entity_get_distance(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -122,6 +142,8 @@ class entity_get_distance(BaseModel):
type: Literal["entity_get_distance"] = "entity_get_distance" type: Literal["entity_get_distance"] = "entity_get_distance"
model_config = ConfigDict(protected_namespaces=())
class entity_linear_pattern(BaseModel): class entity_linear_pattern(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -130,6 +152,8 @@ class entity_linear_pattern(BaseModel):
type: Literal["entity_linear_pattern"] = "entity_linear_pattern" type: Literal["entity_linear_pattern"] = "entity_linear_pattern"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_all_edge_faces(BaseModel): class solid3d_get_all_edge_faces(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -138,6 +162,8 @@ class solid3d_get_all_edge_faces(BaseModel):
type: Literal["solid3d_get_all_edge_faces"] = "solid3d_get_all_edge_faces" type: Literal["solid3d_get_all_edge_faces"] = "solid3d_get_all_edge_faces"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_all_opposite_edges(BaseModel): class solid3d_get_all_opposite_edges(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -146,6 +172,8 @@ class solid3d_get_all_opposite_edges(BaseModel):
type: Literal["solid3d_get_all_opposite_edges"] = "solid3d_get_all_opposite_edges" type: Literal["solid3d_get_all_opposite_edges"] = "solid3d_get_all_opposite_edges"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_opposite_edge(BaseModel): class solid3d_get_opposite_edge(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -154,6 +182,8 @@ class solid3d_get_opposite_edge(BaseModel):
type: Literal["solid3d_get_opposite_edge"] = "solid3d_get_opposite_edge" type: Literal["solid3d_get_opposite_edge"] = "solid3d_get_opposite_edge"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_prev_adjacent_edge(BaseModel): class solid3d_get_prev_adjacent_edge(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -162,6 +192,8 @@ class solid3d_get_prev_adjacent_edge(BaseModel):
type: Literal["solid3d_get_prev_adjacent_edge"] = "solid3d_get_prev_adjacent_edge" type: Literal["solid3d_get_prev_adjacent_edge"] = "solid3d_get_prev_adjacent_edge"
model_config = ConfigDict(protected_namespaces=())
class solid3d_get_next_adjacent_edge(BaseModel): class solid3d_get_next_adjacent_edge(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -170,6 +202,8 @@ class solid3d_get_next_adjacent_edge(BaseModel):
type: Literal["solid3d_get_next_adjacent_edge"] = "solid3d_get_next_adjacent_edge" type: Literal["solid3d_get_next_adjacent_edge"] = "solid3d_get_next_adjacent_edge"
model_config = ConfigDict(protected_namespaces=())
class mouse_click(BaseModel): class mouse_click(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -178,6 +212,8 @@ class mouse_click(BaseModel):
type: Literal["mouse_click"] = "mouse_click" type: Literal["mouse_click"] = "mouse_click"
model_config = ConfigDict(protected_namespaces=())
class curve_get_type(BaseModel): class curve_get_type(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -186,6 +222,8 @@ class curve_get_type(BaseModel):
type: Literal["curve_get_type"] = "curve_get_type" type: Literal["curve_get_type"] = "curve_get_type"
model_config = ConfigDict(protected_namespaces=())
class curve_get_control_points(BaseModel): class curve_get_control_points(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -194,6 +232,8 @@ class curve_get_control_points(BaseModel):
type: Literal["curve_get_control_points"] = "curve_get_control_points" type: Literal["curve_get_control_points"] = "curve_get_control_points"
model_config = ConfigDict(protected_namespaces=())
class take_snapshot(BaseModel): class take_snapshot(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -202,6 +242,8 @@ class take_snapshot(BaseModel):
type: Literal["take_snapshot"] = "take_snapshot" type: Literal["take_snapshot"] = "take_snapshot"
model_config = ConfigDict(protected_namespaces=())
class path_get_info(BaseModel): class path_get_info(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -210,6 +252,8 @@ class path_get_info(BaseModel):
type: Literal["path_get_info"] = "path_get_info" type: Literal["path_get_info"] = "path_get_info"
model_config = ConfigDict(protected_namespaces=())
class path_get_curve_uuids_for_vertices(BaseModel): class path_get_curve_uuids_for_vertices(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -220,6 +264,8 @@ class path_get_curve_uuids_for_vertices(BaseModel):
"path_get_curve_uuids_for_vertices" "path_get_curve_uuids_for_vertices"
] = "path_get_curve_uuids_for_vertices" ] = "path_get_curve_uuids_for_vertices"
model_config = ConfigDict(protected_namespaces=())
class path_get_vertex_uuids(BaseModel): class path_get_vertex_uuids(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -228,6 +274,8 @@ class path_get_vertex_uuids(BaseModel):
type: Literal["path_get_vertex_uuids"] = "path_get_vertex_uuids" type: Literal["path_get_vertex_uuids"] = "path_get_vertex_uuids"
model_config = ConfigDict(protected_namespaces=())
class plane_intersect_and_project(BaseModel): class plane_intersect_and_project(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -236,6 +284,8 @@ class plane_intersect_and_project(BaseModel):
type: Literal["plane_intersect_and_project"] = "plane_intersect_and_project" type: Literal["plane_intersect_and_project"] = "plane_intersect_and_project"
model_config = ConfigDict(protected_namespaces=())
class curve_get_end_points(BaseModel): class curve_get_end_points(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -244,6 +294,8 @@ class curve_get_end_points(BaseModel):
type: Literal["curve_get_end_points"] = "curve_get_end_points" type: Literal["curve_get_end_points"] = "curve_get_end_points"
model_config = ConfigDict(protected_namespaces=())
class import_files(BaseModel): class import_files(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -252,6 +304,8 @@ class import_files(BaseModel):
type: Literal["import_files"] = "import_files" type: Literal["import_files"] = "import_files"
model_config = ConfigDict(protected_namespaces=())
class mass(BaseModel): class mass(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -260,6 +314,8 @@ class mass(BaseModel):
type: Literal["mass"] = "mass" type: Literal["mass"] = "mass"
model_config = ConfigDict(protected_namespaces=())
class volume(BaseModel): class volume(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -268,6 +324,8 @@ class volume(BaseModel):
type: Literal["volume"] = "volume" type: Literal["volume"] = "volume"
model_config = ConfigDict(protected_namespaces=())
class density(BaseModel): class density(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -276,6 +334,8 @@ class density(BaseModel):
type: Literal["density"] = "density" type: Literal["density"] = "density"
model_config = ConfigDict(protected_namespaces=())
class surface_area(BaseModel): class surface_area(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -284,6 +344,8 @@ class surface_area(BaseModel):
type: Literal["surface_area"] = "surface_area" type: Literal["surface_area"] = "surface_area"
model_config = ConfigDict(protected_namespaces=())
class center_of_mass(BaseModel): class center_of_mass(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -292,6 +354,8 @@ class center_of_mass(BaseModel):
type: Literal["center_of_mass"] = "center_of_mass" type: Literal["center_of_mass"] = "center_of_mass"
model_config = ConfigDict(protected_namespaces=())
class get_sketch_mode_plane(BaseModel): class get_sketch_mode_plane(BaseModel):
"""The response from the ` ` command.""" """The response from the ` ` command."""
@ -300,6 +364,8 @@ class get_sketch_mode_plane(BaseModel):
type: Literal["get_sketch_mode_plane"] = "get_sketch_mode_plane" type: Literal["get_sketch_mode_plane"] = "get_sketch_mode_plane"
model_config = ConfigDict(protected_namespaces=())
OkModelingCmdResponse = RootModel[ OkModelingCmdResponse = RootModel[
Annotated[ Annotated[

View File

@ -1,6 +1,6 @@
from typing import List, Literal, Union from typing import List, Literal, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.ice_server import IceServer from ..models.ice_server import IceServer
@ -15,6 +15,8 @@ class IceServerInfoData(BaseModel):
ice_servers: List[IceServer] ice_servers: List[IceServer]
model_config = ConfigDict(protected_namespaces=())
class ice_server_info(BaseModel): class ice_server_info(BaseModel):
"""Information about the ICE servers.""" """Information about the ICE servers."""
@ -23,12 +25,16 @@ class ice_server_info(BaseModel):
type: Literal["ice_server_info"] = "ice_server_info" type: Literal["ice_server_info"] = "ice_server_info"
model_config = ConfigDict(protected_namespaces=())
class TrickleIceData(BaseModel): class TrickleIceData(BaseModel):
"""""" """"""
candidate: RtcIceCandidateInit candidate: RtcIceCandidateInit
model_config = ConfigDict(protected_namespaces=())
class trickle_ice(BaseModel): class trickle_ice(BaseModel):
"""The trickle ICE candidate response.""" """The trickle ICE candidate response."""
@ -37,12 +43,16 @@ class trickle_ice(BaseModel):
type: Literal["trickle_ice"] = "trickle_ice" type: Literal["trickle_ice"] = "trickle_ice"
model_config = ConfigDict(protected_namespaces=())
class SdpAnswerData(BaseModel): class SdpAnswerData(BaseModel):
"""""" """"""
answer: RtcSessionDescription answer: RtcSessionDescription
model_config = ConfigDict(protected_namespaces=())
class sdp_answer(BaseModel): class sdp_answer(BaseModel):
"""The SDP answer response.""" """The SDP answer response."""
@ -51,12 +61,16 @@ class sdp_answer(BaseModel):
type: Literal["sdp_answer"] = "sdp_answer" type: Literal["sdp_answer"] = "sdp_answer"
model_config = ConfigDict(protected_namespaces=())
class ModelingData(BaseModel): class ModelingData(BaseModel):
"""""" """"""
modeling_response: OkModelingCmdResponse modeling_response: OkModelingCmdResponse
model_config = ConfigDict(protected_namespaces=())
class modeling(BaseModel): class modeling(BaseModel):
"""The modeling command response.""" """The modeling command response."""
@ -65,12 +79,16 @@ class modeling(BaseModel):
type: Literal["modeling"] = "modeling" type: Literal["modeling"] = "modeling"
model_config = ConfigDict(protected_namespaces=())
class ExportData(BaseModel): class ExportData(BaseModel):
"""""" """"""
files: List[RawFile] files: List[RawFile]
model_config = ConfigDict(protected_namespaces=())
class export(BaseModel): class export(BaseModel):
"""The exported files.""" """The exported files."""
@ -79,10 +97,14 @@ class export(BaseModel):
type: Literal["export"] = "export" type: Literal["export"] = "export"
model_config = ConfigDict(protected_namespaces=())
class MetricsRequestData(BaseModel): class MetricsRequestData(BaseModel):
"""""" """"""
model_config = ConfigDict(protected_namespaces=())
class metrics_request(BaseModel): class metrics_request(BaseModel):
"""Request a collection of metrics, to include WebRTC.""" """Request a collection of metrics, to include WebRTC."""
@ -91,6 +113,8 @@ class metrics_request(BaseModel):
type: Literal["metrics_request"] = "metrics_request" type: Literal["metrics_request"] = "metrics_request"
model_config = ConfigDict(protected_namespaces=())
OkWebSocketResponseData = RootModel[ OkWebSocketResponseData = RootModel[
Annotated[ Annotated[

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -13,3 +13,5 @@ class Onboarding(BaseModel):
first_call_from_text_to_cad_date: Optional[datetime.datetime] = None first_call_from_text_to_cad_date: Optional[datetime.datetime] = None
first_token_date: Optional[datetime.datetime] = None first_token_date: Optional[datetime.datetime] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -10,3 +10,5 @@ class OutputFile(BaseModel):
contents: Optional[str] = None contents: Optional[str] = None
name: Optional[str] = None name: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Literal, Union from typing import Literal, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.fbx_storage import FbxStorage from ..models.fbx_storage import FbxStorage
@ -20,6 +20,8 @@ class fbx(BaseModel):
type: Literal["fbx"] = "fbx" type: Literal["fbx"] = "fbx"
model_config = ConfigDict(protected_namespaces=())
class gltf(BaseModel): class gltf(BaseModel):
"""glTF 2.0. We refer to this as glTF since that is how our customers refer to it, although by default it will be in binary format and thus technically (glb). If you prefer ASCII output, you can set that option for the export.""" """glTF 2.0. We refer to this as glTF since that is how our customers refer to it, although by default it will be in binary format and thus technically (glb). If you prefer ASCII output, you can set that option for the export."""
@ -30,6 +32,8 @@ class gltf(BaseModel):
type: Literal["gltf"] = "gltf" type: Literal["gltf"] = "gltf"
model_config = ConfigDict(protected_namespaces=())
class obj(BaseModel): class obj(BaseModel):
"""Wavefront OBJ format.""" """Wavefront OBJ format."""
@ -40,6 +44,8 @@ class obj(BaseModel):
units: UnitLength units: UnitLength
model_config = ConfigDict(protected_namespaces=())
class ply(BaseModel): class ply(BaseModel):
"""The PLY Polygon File Format.""" """The PLY Polygon File Format."""
@ -54,6 +60,8 @@ class ply(BaseModel):
units: UnitLength units: UnitLength
model_config = ConfigDict(protected_namespaces=())
class step(BaseModel): class step(BaseModel):
"""ISO 10303-21 (STEP) format.""" """ISO 10303-21 (STEP) format."""
@ -62,6 +70,8 @@ class step(BaseModel):
type: Literal["step"] = "step" type: Literal["step"] = "step"
model_config = ConfigDict(protected_namespaces=())
class stl(BaseModel): class stl(BaseModel):
"""*ST**ereo**L**ithography format.""" """*ST**ereo**L**ithography format."""
@ -76,6 +86,8 @@ class stl(BaseModel):
units: UnitLength units: UnitLength
model_config = ConfigDict(protected_namespaces=())
OutputFormat = RootModel[ OutputFormat = RootModel[
Annotated[ Annotated[

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -8,3 +8,5 @@ class PathGetCurveUuidsForVertices(BaseModel):
"""The response from the `PathGetCurveUuidsForVertices` command.""" """The response from the `PathGetCurveUuidsForVertices` command."""
curve_ids: List[str] curve_ids: List[str]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.path_segment_info import PathSegmentInfo from ..models.path_segment_info import PathSegmentInfo
@ -9,3 +9,5 @@ class PathGetInfo(BaseModel):
"""The response from the `PathGetInfo` command.""" """The response from the `PathGetInfo` command."""
segments: List[PathSegmentInfo] segments: List[PathSegmentInfo]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -8,3 +8,5 @@ class PathGetVertexUuids(BaseModel):
"""The response from the `PathGetVertexUuids` command.""" """The response from the `PathGetVertexUuids` command."""
vertex_ids: List[str] vertex_ids: List[str]
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Literal, Optional, Union from typing import Literal, Optional, Union
from pydantic import BaseModel, Field, RootModel from pydantic import BaseModel, ConfigDict, Field, RootModel
from typing_extensions import Annotated from typing_extensions import Annotated
from ..models.angle import Angle from ..models.angle import Angle
@ -17,6 +17,8 @@ class line(BaseModel):
type: Literal["line"] = "line" type: Literal["line"] = "line"
model_config = ConfigDict(protected_namespaces=())
class arc(BaseModel): class arc(BaseModel):
"""A circular arc segment.""" """A circular arc segment."""
@ -33,6 +35,8 @@ class arc(BaseModel):
type: Literal["arc"] = "arc" type: Literal["arc"] = "arc"
model_config = ConfigDict(protected_namespaces=())
class bezier(BaseModel): class bezier(BaseModel):
"""A cubic bezier curve segment. Start at the end of the current line, go through control point 1 and 2, then end at a given point.""" """A cubic bezier curve segment. Start at the end of the current line, go through control point 1 and 2, then end at a given point."""
@ -47,6 +51,8 @@ class bezier(BaseModel):
type: Literal["bezier"] = "bezier" type: Literal["bezier"] = "bezier"
model_config = ConfigDict(protected_namespaces=())
class tangential_arc(BaseModel): class tangential_arc(BaseModel):
"""Adds a tangent arc from current pen position with the given radius and angle.""" """Adds a tangent arc from current pen position with the given radius and angle."""
@ -57,6 +63,8 @@ class tangential_arc(BaseModel):
type: Literal["tangential_arc"] = "tangential_arc" type: Literal["tangential_arc"] = "tangential_arc"
model_config = ConfigDict(protected_namespaces=())
class tangential_arc_to(BaseModel): class tangential_arc_to(BaseModel):
"""Adds a tangent arc from current pen position to the new position.""" """Adds a tangent arc from current pen position to the new position."""
@ -67,6 +75,8 @@ class tangential_arc_to(BaseModel):
type: Literal["tangential_arc_to"] = "tangential_arc_to" type: Literal["tangential_arc_to"] = "tangential_arc_to"
model_config = ConfigDict(protected_namespaces=())
PathSegment = RootModel[ PathSegment = RootModel[
Annotated[ Annotated[

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.modeling_cmd_id import ModelingCmdId from ..models.modeling_cmd_id import ModelingCmdId
from ..models.path_command import PathCommand from ..models.path_command import PathCommand
@ -14,3 +14,5 @@ class PathSegmentInfo(BaseModel):
command_id: Optional[ModelingCmdId] = None command_id: Optional[ModelingCmdId] = None
relative: bool relative: bool
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -7,3 +7,5 @@ class PaymentIntent(BaseModel):
"""A payment intent response.""" """A payment intent response."""
client_secret: str client_secret: str
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,7 +1,7 @@
import datetime import datetime
from typing import Dict, Optional from typing import Dict, Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.billing_info import BillingInfo from ..models.billing_info import BillingInfo
from ..models.card_details import CardDetails from ..models.card_details import CardDetails
@ -22,3 +22,5 @@ class PaymentMethod(BaseModel):
metadata: Optional[Dict[str, str]] = None metadata: Optional[Dict[str, str]] = None
type: PaymentMethodType type: PaymentMethodType
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -12,3 +12,5 @@ class PaymentMethodCardChecks(BaseModel):
address_postal_code_check: Optional[str] = None address_postal_code_check: Optional[str] = None
cvc_check: Optional[str] = None cvc_check: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -11,3 +11,5 @@ class PerspectiveCameraParameters(BaseModel):
z_far: float z_far: float
z_near: float z_near: float
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,6 +1,6 @@
from typing import Optional from typing import Optional
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
from ..models.point2d import Point2d from ..models.point2d import Point2d
@ -9,3 +9,5 @@ class PlaneIntersectAndProject(BaseModel):
"""Corresponding coordinates of given window coordinates, intersected on given plane.""" """Corresponding coordinates of given window coordinates, intersected on given plane."""
plane_coordinates: Optional[Point2d] = None plane_coordinates: Optional[Point2d] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -9,3 +9,5 @@ class Point2d(BaseModel):
x: float x: float
y: float y: float
model_config = ConfigDict(protected_namespaces=())

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel from pydantic import BaseModel, ConfigDict
@ -11,3 +11,5 @@ class Point3d(BaseModel):
y: float y: float
z: float z: float
model_config = ConfigDict(protected_namespaces=())

Some files were not shown because too many files have changed in this diff Show More