@ -3,17 +3,17 @@ set -e
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Fix for ci.
|
# Fix for ci.
|
||||||
git config --global --add safe.directory /home/user/src
|
git config --global --add safe.directory /home/user/src || true
|
||||||
|
|
||||||
git add kittycad/models/base64data.py
|
git add kittycad/models/base64data.py || true
|
||||||
git add kittycad/models/empty.py
|
git add kittycad/models/empty.py || true
|
||||||
|
|
||||||
|
|
||||||
# Cleanup old stuff.
|
# Cleanup old stuff.
|
||||||
rm -rf kittycad/models
|
rm -rf kittycad/models
|
||||||
rm -rf kittycad/api
|
rm -rf kittycad/api
|
||||||
git checkout kittycad/models/base64data.py
|
git checkout kittycad/models/base64data.py || true
|
||||||
git checkout kittycad/models/empty.py
|
git checkout kittycad/models/empty.py || true
|
||||||
|
|
||||||
# Generate new.
|
# Generate new.
|
||||||
poetry run python generate/generate.py
|
poetry run python generate/generate.py
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -82,7 +82,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. The user must be the owner of the text-to-CAD model, in order to give feedback.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. The user must be the owner of the text-to-CAD model, in order to give feedback.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -115,7 +115,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. The user must be the owner of the text-to-CAD model, in order to give feedback.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. The user must be the owner of the text-to-CAD model, in order to give feedback.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -76,7 +76,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[AiPrompt, Error]]:
|
) -> Optional[Union[AiPrompt, Error]]:
|
||||||
"""This endpoint requires authentication by a KittyCAD employee.""" # noqa: E501
|
"""This endpoint requires authentication by a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -105,7 +105,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[AiPrompt, Error]]:
|
) -> Optional[Union[AiPrompt, Error]]:
|
||||||
"""This endpoint requires authentication by a KittyCAD employee.""" # noqa: E501
|
"""This endpoint requires authentication by a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -76,7 +76,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[TextToCad, Error]]:
|
) -> Optional[Union[TextToCad, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. The user must be the owner of the text-to-CAD model.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. The user must be the owner of the text-to-CAD model.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -105,7 +105,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[TextToCad, Error]]:
|
) -> Optional[Union[TextToCad, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. The user must be the owner of the text-to-CAD model.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. The user must be the owner of the text-to-CAD model.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -105,7 +105,7 @@ def sync(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[AiPromptResultsPage, Error]]:
|
) -> Optional[Union[AiPromptResultsPage, Error]]:
|
||||||
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by a KittyCAD employee.
|
This endpoint requires authentication by a Zoo employee.
|
||||||
The AI prompts are returned in order of creation, with the most recently created AI prompts first.
|
The AI prompts are returned in order of creation, with the most recently created AI prompts first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ async def asyncio(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[AiPromptResultsPage, Error]]:
|
) -> Optional[Union[AiPromptResultsPage, Error]]:
|
||||||
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by a KittyCAD employee.
|
This endpoint requires authentication by a Zoo employee.
|
||||||
The AI prompts are returned in order of creation, with the most recently created AI prompts first.
|
The AI prompts are returned in order of creation, with the most recently created AI prompts first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ def sync(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
||||||
"""This will always return the STEP file contents as well as the format the user originally requested.
|
"""This will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by any KittyCAD user. It returns the text-to-CAD models for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
|
||||||
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.
|
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ async def asyncio(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
||||||
"""This will always return the STEP file contents as well as the format the user originally requested.
|
"""This will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by any KittyCAD user. It returns the text-to-CAD models for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
|
||||||
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.
|
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
|
@ -78,9 +78,9 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API call for the user.
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API call for the user.
|
||||||
If the user is not authenticated to view the specified API call, then it is not returned.
|
If the user is not authenticated to view the specified API call, then it is not returned.
|
||||||
Only KittyCAD employees can view API calls for other users.""" # noqa: E501
|
Only Zoo employees can view API calls for other users.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -109,9 +109,9 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API call for the user.
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API call for the user.
|
||||||
If the user is not authenticated to view the specified API call, then it is not returned.
|
If the user is not authenticated to view the specified API call, then it is not returned.
|
||||||
Only KittyCAD employees can view API calls for other users.""" # noqa: E501
|
Only Zoo employees can view API calls for other users.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -78,7 +78,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API call for the user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API call for the user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -107,7 +107,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
) -> Optional[Union[ApiCallWithPrice, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API call for the user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API call for the user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -84,7 +84,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[ApiCallQueryGroup], Error]]:
|
) -> Optional[Union[List[ApiCallQueryGroup], Error]]:
|
||||||
"""This endpoint requires authentication by a KittyCAD employee. The API calls are grouped by the parameter passed.""" # noqa: E501
|
"""This endpoint requires authentication by a Zoo employee. The API calls are grouped by the parameter passed.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
group_by=group_by,
|
group_by=group_by,
|
||||||
@ -113,7 +113,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[ApiCallQueryGroup], Error]]:
|
) -> Optional[Union[List[ApiCallQueryGroup], Error]]:
|
||||||
"""This endpoint requires authentication by a KittyCAD employee. The API calls are grouped by the parameter passed.""" # noqa: E501
|
"""This endpoint requires authentication by a Zoo employee. The API calls are grouped by the parameter passed.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -195,9 +195,9 @@ def sync(
|
|||||||
]
|
]
|
||||||
]:
|
]:
|
||||||
"""Get the status and output of an async operation.
|
"""Get the status and output of an async operation.
|
||||||
This endpoint requires authentication by any KittyCAD user. It returns details of the requested async operation for the user.
|
This endpoint requires authentication by any Zoo user. It returns details of the requested async operation for the user.
|
||||||
If the user is not authenticated to view the specified async operation, then it is not returned.
|
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||||
Only KittyCAD employees with the proper access can view async operations for other users.
|
Only Zoo employees with the proper access can view async operations for other users.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
@ -252,9 +252,9 @@ async def asyncio(
|
|||||||
]
|
]
|
||||||
]:
|
]:
|
||||||
"""Get the status and output of an async operation.
|
"""Get the status and output of an async operation.
|
||||||
This endpoint requires authentication by any KittyCAD user. It returns details of the requested async operation for the user.
|
This endpoint requires authentication by any Zoo user. It returns details of the requested async operation for the user.
|
||||||
If the user is not authenticated to view the specified async operation, then it is not returned.
|
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||||
Only KittyCAD employees with the proper access can view async operations for other users.
|
Only Zoo employees with the proper access can view async operations for other users.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -104,7 +104,7 @@ def sync(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by a KittyCAD employee. The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
"""This endpoint requires authentication by a Zoo employee. The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -141,7 +141,7 @@ async def asyncio(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by a KittyCAD employee. The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
"""This endpoint requires authentication by a Zoo employee. The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -109,9 +109,9 @@ def sync(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
||||||
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
||||||
If the authenticated user is a KittyCAD employee, then the API calls are returned for the user specified by the user id.
|
If the authenticated user is a Zoo employee, then the API calls are returned for the user specified by the user id.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
@ -154,9 +154,9 @@ async def asyncio(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
||||||
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
||||||
If the authenticated user is a KittyCAD employee, then the API calls are returned for the user specified by the user id.
|
If the authenticated user is a Zoo employee, then the API calls are returned for the user specified by the user id.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ def sync(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[AsyncApiCallResultsPage, Error]]:
|
) -> Optional[Union[AsyncApiCallResultsPage, Error]]:
|
||||||
"""For async file conversion operations, this endpoint does not return the contents of converted files (`output`). To get the contents use the `/async/operations/{id}` endpoint.
|
"""For async file conversion operations, this endpoint does not return the contents of converted files (`output`). To get the contents use the `/async/operations/{id}` endpoint.
|
||||||
This endpoint requires authentication by a KittyCAD employee.""" # noqa: E501
|
This endpoint requires authentication by a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -158,7 +158,7 @@ async def asyncio(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[AsyncApiCallResultsPage, Error]]:
|
) -> Optional[Union[AsyncApiCallResultsPage, Error]]:
|
||||||
"""For async file conversion operations, this endpoint does not return the contents of converted files (`output`). To get the contents use the `/async/operations/{id}` endpoint.
|
"""For async file conversion operations, this endpoint does not return the contents of converted files (`output`). To get the contents use the `/async/operations/{id}` endpoint.
|
||||||
This endpoint requires authentication by a KittyCAD employee.""" # noqa: E501
|
This endpoint requires authentication by a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -104,7 +104,7 @@ def sync(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns the API calls for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ async def asyncio(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns the API calls for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiToken, Error]]:
|
) -> Optional[Union[ApiToken, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It creates a new API token for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It creates a new API token for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -96,7 +96,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiToken, Error]]:
|
) -> Optional[Union[ApiToken, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It creates a new API token for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It creates a new API token for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -71,7 +71,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It deletes the requested API token for the user.
|
"""This endpoint requires authentication by any Zoo user. It deletes the requested API token for the user.
|
||||||
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.
|
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It deletes the requested API token for the user.
|
"""This endpoint requires authentication by any Zoo user. It deletes the requested API token for the user.
|
||||||
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.
|
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiToken, Error]]:
|
) -> Optional[Union[ApiToken, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API token for the user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API token for the user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
token=token,
|
token=token,
|
||||||
@ -105,7 +105,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiToken, Error]]:
|
) -> Optional[Union[ApiToken, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API token for the user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API token for the user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -104,7 +104,7 @@ def sync(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns the API tokens for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API tokens for the authenticated user.
|
||||||
The API tokens are returned in order of creation, with the most recently created API tokens first.
|
The API tokens are returned in order of creation, with the most recently created API tokens first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ async def asyncio(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns the API tokens for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API tokens for the authenticated user.
|
||||||
The API tokens are returned in order of creation, with the most recently created API tokens first.
|
The API tokens are returned in order of creation, with the most recently created API tokens first.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
|
@ -66,8 +66,8 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for KittyCAD to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need KittyCAD OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
@ -93,8 +93,8 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for KittyCAD to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need KittyCAD OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -73,8 +73,8 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[AppClientInfo, Error]]:
|
) -> Optional[Union[AppClientInfo, Error]]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for KittyCAD to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need KittyCAD OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
@ -100,8 +100,8 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[AppClientInfo, Error]]:
|
) -> Optional[Union[AppClientInfo, Error]]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for KittyCAD to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need KittyCAD OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -72,7 +72,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Metadata, Error]]:
|
) -> Optional[Union[Metadata, Error]]:
|
||||||
"""This includes information on any of our other distributed systems it is connected to.
|
"""This includes information on any of our other distributed systems it is connected to.
|
||||||
You must be a KittyCAD employee to perform this request.""" # noqa: E501
|
You must be a Zoo employee to perform this request.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -98,7 +98,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Metadata, Error]]:
|
) -> Optional[Union[Metadata, Error]]:
|
||||||
"""This includes information on any of our other distributed systems it is connected to.
|
"""This includes information on any of our other distributed systems it is connected to.
|
||||||
You must be a KittyCAD employee to perform this request.""" # noqa: E501
|
You must be a Zoo employee to perform this request.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -76,8 +76,8 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiToken, Error]]:
|
) -> Optional[Union[ApiToken, Error]]:
|
||||||
"""This endpoint allows us to run API calls from our discord bot on behalf of a user. The user must have a discord account linked to their KittyCAD Account via oauth2 for this to work.
|
"""This endpoint allows us to run API calls from our discord bot on behalf of a user. The user must have a discord account linked to their Zoo Account via oauth2 for this to work.
|
||||||
You must be a KittyCAD employee to use this endpoint.""" # noqa: E501
|
You must be a Zoo employee to use this endpoint.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
discord_id=discord_id,
|
discord_id=discord_id,
|
||||||
@ -106,8 +106,8 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[ApiToken, Error]]:
|
) -> Optional[Union[ApiToken, Error]]:
|
||||||
"""This endpoint allows us to run API calls from our discord bot on behalf of a user. The user must have a discord account linked to their KittyCAD Account via oauth2 for this to work.
|
"""This endpoint allows us to run API calls from our discord bot on behalf of a user. The user must have a discord account linked to their Zoo Account via oauth2 for this to work.
|
||||||
You must be a KittyCAD employee to use this endpoint.""" # noqa: E501
|
You must be a Zoo employee to use this endpoint.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -78,7 +78,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It creates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It creates the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
@ -109,7 +109,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It creates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It creates the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -73,7 +73,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[PaymentIntent, Error]]:
|
) -> Optional[Union[PaymentIntent, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It creates a new payment intent for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It creates a new payment intent for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -98,7 +98,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[PaymentIntent, Error]]:
|
) -> Optional[Union[PaymentIntent, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It creates a new payment intent for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It creates a new payment intent for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -67,7 +67,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It deletes the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It deletes the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
@ -94,7 +94,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It deletes the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It deletes the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -71,7 +71,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It deletes the specified payment method for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It deletes the specified payment method for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -100,7 +100,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It deletes the specified payment method for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It deletes the specified payment method for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -73,7 +73,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[CustomerBalance, Error]]:
|
) -> Optional[Union[CustomerBalance, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It gets the balance information for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It gets the balance information for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -98,7 +98,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[CustomerBalance, Error]]:
|
) -> Optional[Union[CustomerBalance, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It gets the balance information for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It gets the balance information for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -72,7 +72,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It gets the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It gets the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
@ -99,7 +99,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It gets the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It gets the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -73,7 +73,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[Invoice], Error]]:
|
) -> Optional[Union[List[Invoice], Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It lists invoices for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It lists invoices for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -98,7 +98,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[Invoice], Error]]:
|
) -> Optional[Union[List[Invoice], Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It lists invoices for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It lists invoices for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -73,7 +73,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[PaymentMethod], Error]]:
|
) -> Optional[Union[List[PaymentMethod], Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It lists payment methods for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It lists payment methods for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -98,7 +98,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[PaymentMethod], Error]]:
|
) -> Optional[Union[List[PaymentMethod], Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It lists payment methods for the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It lists payment methods for the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -78,7 +78,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It updates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It updates the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
@ -109,7 +109,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any KittyCAD user. It updates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It updates the payment information for the authenticated user.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -66,7 +66,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It will return an error if the customer's information is not valid for automatic tax. Otherwise, it will return an empty successful response.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It will return an error if the customer's information is not valid for automatic tax. Otherwise, it will return an empty successful response.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -91,7 +91,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It will return an error if the customer's information is not valid for automatic tax. Otherwise, it will return an empty successful response.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It will return an error if the customer's information is not valid for automatic tax. Otherwise, it will return an empty successful response.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -66,7 +66,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It deletes the authenticated user from KittyCAD's database.
|
"""This endpoint requires authentication by any Zoo user. It deletes the authenticated user from Zoo's database.
|
||||||
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.
|
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It deletes the authenticated user from KittyCAD's database.
|
"""This endpoint requires authentication by any Zoo user. It deletes the authenticated user from Zoo's database.
|
||||||
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.
|
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Session, Error]]:
|
) -> Optional[Union[Session, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API token for the user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API token for the user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
token=token,
|
token=token,
|
||||||
@ -105,7 +105,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Session, Error]]:
|
) -> Optional[Union[Session, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It returns details of the requested API token for the user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It returns details of the requested API token for the user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -78,7 +78,7 @@ def sync(
|
|||||||
) -> Optional[Union[User, Error]]:
|
) -> Optional[Union[User, Error]]:
|
||||||
"""To get information about yourself, use `/users/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
"""To get information about yourself, use `/users/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
||||||
Alternatively, to get information about the authenticated user, use `/user` endpoint.
|
Alternatively, to get information about the authenticated user, use `/user` endpoint.
|
||||||
To get information about any KittyCAD user, you must be a KittyCAD employee.""" # noqa: E501
|
To get information about any Zoo user, you must be a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -109,7 +109,7 @@ async def asyncio(
|
|||||||
) -> Optional[Union[User, Error]]:
|
) -> Optional[Union[User, Error]]:
|
||||||
"""To get information about yourself, use `/users/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
"""To get information about yourself, use `/users/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
||||||
Alternatively, to get information about the authenticated user, use `/user` endpoint.
|
Alternatively, to get information about the authenticated user, use `/user` endpoint.
|
||||||
To get information about any KittyCAD user, you must be a KittyCAD employee.""" # noqa: E501
|
To get information about any Zoo user, you must be a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -80,7 +80,7 @@ def sync(
|
|||||||
) -> Optional[Union[ExtendedUser, Error]]:
|
) -> Optional[Union[ExtendedUser, Error]]:
|
||||||
"""To get information about yourself, use `/users-extended/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
"""To get information about yourself, use `/users-extended/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
||||||
Alternatively, to get information about the authenticated user, use `/user/extended` endpoint.
|
Alternatively, to get information about the authenticated user, use `/user/extended` endpoint.
|
||||||
To get information about any KittyCAD user, you must be a KittyCAD employee.""" # noqa: E501
|
To get information about any Zoo user, you must be a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -111,7 +111,7 @@ async def asyncio(
|
|||||||
) -> Optional[Union[ExtendedUser, Error]]:
|
) -> Optional[Union[ExtendedUser, Error]]:
|
||||||
"""To get information about yourself, use `/users-extended/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
"""To get information about yourself, use `/users-extended/me` as the endpoint. By doing so you will get the user information for the authenticated user.
|
||||||
Alternatively, to get information about the authenticated user, use `/user/extended` endpoint.
|
Alternatively, to get information about the authenticated user, use `/user/extended` endpoint.
|
||||||
To get information about any KittyCAD user, you must be a KittyCAD employee.""" # noqa: E501
|
To get information about any Zoo user, you must be a Zoo employee.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -1,104 +0,0 @@
|
|||||||
from typing import Any, Dict, Optional, Union
|
|
||||||
|
|
||||||
import httpx
|
|
||||||
|
|
||||||
from ...client import Client
|
|
||||||
from ...models.error import Error
|
|
||||||
from ...types import Response
|
|
||||||
|
|
||||||
|
|
||||||
def _get_kwargs(
|
|
||||||
*,
|
|
||||||
client: Client,
|
|
||||||
) -> Dict[str, Any]:
|
|
||||||
url = "{}/user/front-hash".format(
|
|
||||||
client.base_url,
|
|
||||||
) # noqa: E501
|
|
||||||
|
|
||||||
headers: Dict[str, Any] = client.get_headers()
|
|
||||||
cookies: Dict[str, Any] = client.get_cookies()
|
|
||||||
|
|
||||||
return {
|
|
||||||
"url": url,
|
|
||||||
"headers": headers,
|
|
||||||
"cookies": cookies,
|
|
||||||
"timeout": client.get_timeout(),
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[str, Error]]:
|
|
||||||
if response.status_code == 200:
|
|
||||||
response_200 = response.text
|
|
||||||
return response_200
|
|
||||||
if response.status_code == 400:
|
|
||||||
response_4XX = Error(**response.json())
|
|
||||||
return response_4XX
|
|
||||||
if response.status_code == 500:
|
|
||||||
response_5XX = Error(**response.json())
|
|
||||||
return response_5XX
|
|
||||||
return Error(**response.json())
|
|
||||||
|
|
||||||
|
|
||||||
def _build_response(
|
|
||||||
*, response: httpx.Response
|
|
||||||
) -> Response[Optional[Union[str, Error]]]:
|
|
||||||
return Response(
|
|
||||||
status_code=response.status_code,
|
|
||||||
content=response.content,
|
|
||||||
headers=response.headers,
|
|
||||||
parsed=_parse_response(response=response),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
|
||||||
*,
|
|
||||||
client: Client,
|
|
||||||
) -> Response[Optional[Union[str, Error]]]:
|
|
||||||
kwargs = _get_kwargs(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
response = httpx.get(
|
|
||||||
verify=client.verify_ssl,
|
|
||||||
**kwargs,
|
|
||||||
)
|
|
||||||
|
|
||||||
return _build_response(response=response)
|
|
||||||
|
|
||||||
|
|
||||||
def sync(
|
|
||||||
*,
|
|
||||||
client: Client,
|
|
||||||
) -> Optional[Union[str, Error]]:
|
|
||||||
"""This info is sent to front when initialing the front chat, it prevents impersonations using js hacks in the browser""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
|
||||||
client=client,
|
|
||||||
).parsed
|
|
||||||
|
|
||||||
|
|
||||||
async def asyncio_detailed(
|
|
||||||
*,
|
|
||||||
client: Client,
|
|
||||||
) -> Response[Optional[Union[str, Error]]]:
|
|
||||||
kwargs = _get_kwargs(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
|
|
||||||
response = await _client.get(**kwargs)
|
|
||||||
|
|
||||||
return _build_response(response=response)
|
|
||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
|
||||||
*,
|
|
||||||
client: Client,
|
|
||||||
) -> Optional[Union[str, Error]]:
|
|
||||||
"""This info is sent to front when initialing the front chat, it prevents impersonations using js hacks in the browser""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
|
||||||
await asyncio_detailed(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
).parsed
|
|
@ -104,7 +104,7 @@ def sync(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[UserResultsPage, Error]]:
|
) -> Optional[Union[UserResultsPage, Error]]:
|
||||||
"""This endpoint required authentication by a KittyCAD employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
"""This endpoint required authentication by a Zoo employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -141,7 +141,7 @@ async def asyncio(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[UserResultsPage, Error]]:
|
) -> Optional[Union[UserResultsPage, Error]]:
|
||||||
"""This endpoint required authentication by a KittyCAD employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
"""This endpoint required authentication by a Zoo employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -104,7 +104,7 @@ def sync(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ExtendedUserResultsPage, Error]]:
|
) -> Optional[Union[ExtendedUserResultsPage, Error]]:
|
||||||
"""This endpoint required authentication by a KittyCAD employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
"""This endpoint required authentication by a Zoo employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -141,7 +141,7 @@ async def asyncio(
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ExtendedUserResultsPage, Error]]:
|
) -> Optional[Union[ExtendedUserResultsPage, Error]]:
|
||||||
"""This endpoint required authentication by a KittyCAD employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
"""This endpoint required authentication by a Zoo employee. The users are returned in order of creation, with the most recently created users first.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -77,7 +77,7 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[User, Error]]:
|
) -> Optional[Union[User, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It updates information about the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It updates information about the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
@ -106,7 +106,7 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[User, Error]]:
|
) -> Optional[Union[User, Error]]:
|
||||||
"""This endpoint requires authentication by any KittyCAD user. It updates information about the authenticated user.""" # noqa: E501
|
"""This endpoint requires authentication by any Zoo user. It updates information about the authenticated user.""" # noqa: E501
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -82,7 +82,6 @@ from kittycad.api.users import (
|
|||||||
get_session_for_user,
|
get_session_for_user,
|
||||||
get_user,
|
get_user,
|
||||||
get_user_extended,
|
get_user_extended,
|
||||||
get_user_front_hash_self,
|
|
||||||
get_user_onboarding_self,
|
get_user_onboarding_self,
|
||||||
get_user_self,
|
get_user_self,
|
||||||
get_user_self_extended,
|
get_user_self_extended,
|
||||||
@ -2822,38 +2821,6 @@ async def test_get_user_self_extended_async():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
|
||||||
def test_get_user_front_hash_self():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
get_user_front_hash_self.sync(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
# OR if you need more info (e.g. status_code)
|
|
||||||
get_user_front_hash_self.sync_detailed(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# OR run async
|
|
||||||
@pytest.mark.asyncio
|
|
||||||
@pytest.mark.skip
|
|
||||||
async def test_get_user_front_hash_self_async():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
await get_user_front_hash_self.asyncio(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
# OR run async with more info
|
|
||||||
await get_user_front_hash_self.asyncio_detailed(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_get_user_onboarding_self():
|
def test_get_user_onboarding_self():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
|
@ -61,12 +61,15 @@ from .device_auth_request_form import DeviceAuthRequestForm
|
|||||||
from .device_auth_verify_params import DeviceAuthVerifyParams
|
from .device_auth_verify_params import DeviceAuthVerifyParams
|
||||||
from .direction import Direction
|
from .direction import Direction
|
||||||
from .discount import Discount
|
from .discount import Discount
|
||||||
|
from .distance_type import DistanceType
|
||||||
from .email_authentication_form import EmailAuthenticationForm
|
from .email_authentication_form import EmailAuthenticationForm
|
||||||
from .empty import Empty
|
from .empty import Empty
|
||||||
from .entity_get_all_child_uuids import EntityGetAllChildUuids
|
from .entity_get_all_child_uuids import EntityGetAllChildUuids
|
||||||
from .entity_get_child_uuid import EntityGetChildUuid
|
from .entity_get_child_uuid import EntityGetChildUuid
|
||||||
|
from .entity_get_distance import EntityGetDistance
|
||||||
from .entity_get_num_children import EntityGetNumChildren
|
from .entity_get_num_children import EntityGetNumChildren
|
||||||
from .entity_get_parent_id import EntityGetParentId
|
from .entity_get_parent_id import EntityGetParentId
|
||||||
|
from .entity_linear_pattern import EntityLinearPattern
|
||||||
from .entity_type import EntityType
|
from .entity_type import EntityType
|
||||||
from .environment import Environment
|
from .environment import Environment
|
||||||
from .error import Error
|
from .error import Error
|
||||||
@ -89,6 +92,7 @@ from .file_volume import FileVolume
|
|||||||
from .gateway import Gateway
|
from .gateway import Gateway
|
||||||
from .get_entity_type import GetEntityType
|
from .get_entity_type import GetEntityType
|
||||||
from .get_sketch_mode_plane import GetSketchModePlane
|
from .get_sketch_mode_plane import GetSketchModePlane
|
||||||
|
from .global_axis import GlobalAxis
|
||||||
from .gltf_presentation import GltfPresentation
|
from .gltf_presentation import GltfPresentation
|
||||||
from .gltf_storage import GltfStorage
|
from .gltf_storage import GltfStorage
|
||||||
from .highlight_set_entity import HighlightSetEntity
|
from .highlight_set_entity import HighlightSetEntity
|
||||||
|
31
kittycad/models/distance_type.py
Normal file
31
kittycad/models/distance_type.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
from typing import Literal, Union
|
||||||
|
|
||||||
|
from pydantic import BaseModel, Field, RootModel
|
||||||
|
from typing_extensions import Annotated
|
||||||
|
|
||||||
|
from ..models.global_axis import GlobalAxis
|
||||||
|
|
||||||
|
|
||||||
|
class euclidean(BaseModel):
|
||||||
|
"""Euclidean Distance."""
|
||||||
|
|
||||||
|
type: Literal["euclidean"] = "euclidean"
|
||||||
|
|
||||||
|
|
||||||
|
class on_axis(BaseModel):
|
||||||
|
"""The distance between objects along the specified axis"""
|
||||||
|
|
||||||
|
axis: GlobalAxis
|
||||||
|
|
||||||
|
type: Literal["on_axis"] = "on_axis"
|
||||||
|
|
||||||
|
|
||||||
|
DistanceType = RootModel[
|
||||||
|
Annotated[
|
||||||
|
Union[
|
||||||
|
euclidean,
|
||||||
|
on_axis,
|
||||||
|
],
|
||||||
|
Field(discriminator="type"),
|
||||||
|
]
|
||||||
|
]
|
11
kittycad/models/entity_get_distance.py
Normal file
11
kittycad/models/entity_get_distance.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class EntityGetDistance(BaseModel):
|
||||||
|
"""The response from the `EntitiesGetDistance` command."""
|
||||||
|
|
||||||
|
max_distance: float
|
||||||
|
|
||||||
|
min_distance: float
|
10
kittycad/models/entity_linear_pattern.py
Normal file
10
kittycad/models/entity_linear_pattern.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from typing import List
|
||||||
|
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class EntityLinearPattern(BaseModel):
|
||||||
|
"""The response from the `EntityLinearPattern` command."""
|
||||||
|
|
||||||
|
entity_ids: List[str]
|
15
kittycad/models/global_axis.py
Normal file
15
kittycad/models/global_axis.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
|
class GlobalAxis(str, Enum):
|
||||||
|
"""An enum that contains the three global axes.""" # noqa: E501
|
||||||
|
|
||||||
|
"""# The X axis """ # noqa: E501
|
||||||
|
X = "x"
|
||||||
|
"""# The Y axis """ # noqa: E501
|
||||||
|
Y = "y"
|
||||||
|
"""# The Z axis """ # noqa: E501
|
||||||
|
Z = "z"
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
return str(self.value)
|
@ -4,7 +4,7 @@ from pydantic import BaseModel
|
|||||||
|
|
||||||
|
|
||||||
class ImportFile(BaseModel):
|
class ImportFile(BaseModel):
|
||||||
"""File to import into the current model"""
|
"""File to import into the current model If you are sending binary data for a file, be sure to send the WebSocketRequest as binary/bson, not text/json."""
|
||||||
|
|
||||||
data: bytes
|
data: bytes
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ from ..models.annotation_options import AnnotationOptions
|
|||||||
from ..models.annotation_type import AnnotationType
|
from ..models.annotation_type import AnnotationType
|
||||||
from ..models.camera_drag_interaction_type import CameraDragInteractionType
|
from ..models.camera_drag_interaction_type import CameraDragInteractionType
|
||||||
from ..models.color import Color
|
from ..models.color import Color
|
||||||
|
from ..models.distance_type import DistanceType
|
||||||
from ..models.image_format import ImageFormat
|
from ..models.image_format import ImageFormat
|
||||||
from ..models.import_file import ImportFile
|
from ..models.import_file import ImportFile
|
||||||
from ..models.input_format import InputFormat
|
from ..models.input_format import InputFormat
|
||||||
@ -728,6 +729,60 @@ class curve_set_constraint(BaseModel):
|
|||||||
type: Literal["curve_set_constraint"] = "curve_set_constraint"
|
type: Literal["curve_set_constraint"] = "curve_set_constraint"
|
||||||
|
|
||||||
|
|
||||||
|
class enable_sketch_mode(BaseModel):
|
||||||
|
"""Sketch on some entity (e.g. a plane, a face)"""
|
||||||
|
|
||||||
|
animated: bool
|
||||||
|
|
||||||
|
entity_id: str
|
||||||
|
|
||||||
|
ortho: bool
|
||||||
|
|
||||||
|
type: Literal["enable_sketch_mode"] = "enable_sketch_mode"
|
||||||
|
|
||||||
|
|
||||||
|
class object_set_material_params_pbr(BaseModel):
|
||||||
|
"""Set the material properties of an object"""
|
||||||
|
|
||||||
|
ambient_occlusion: float
|
||||||
|
|
||||||
|
color: Color
|
||||||
|
|
||||||
|
metalness: float
|
||||||
|
|
||||||
|
object_id: str
|
||||||
|
|
||||||
|
roughness: float
|
||||||
|
|
||||||
|
type: Literal["object_set_material_params_pbr"] = "object_set_material_params_pbr"
|
||||||
|
|
||||||
|
|
||||||
|
class entity_get_distance(BaseModel):
|
||||||
|
"""What is the distance between these two entities?"""
|
||||||
|
|
||||||
|
distance_type: DistanceType
|
||||||
|
|
||||||
|
entity_id1: str
|
||||||
|
|
||||||
|
entity_id2: str
|
||||||
|
|
||||||
|
type: Literal["entity_get_distance"] = "entity_get_distance"
|
||||||
|
|
||||||
|
|
||||||
|
class entity_linear_pattern(BaseModel):
|
||||||
|
"""Duplicate the given entity, evenly spaced along the chosen axis."""
|
||||||
|
|
||||||
|
axis: Point3d
|
||||||
|
|
||||||
|
entity_id: str
|
||||||
|
|
||||||
|
num_repetitions: int
|
||||||
|
|
||||||
|
spacing: float
|
||||||
|
|
||||||
|
type: Literal["entity_linear_pattern"] = "entity_linear_pattern"
|
||||||
|
|
||||||
|
|
||||||
ModelingCmd = RootModel[
|
ModelingCmd = RootModel[
|
||||||
Annotated[
|
Annotated[
|
||||||
Union[
|
Union[
|
||||||
@ -802,6 +857,10 @@ ModelingCmd = RootModel[
|
|||||||
surface_area,
|
surface_area,
|
||||||
get_sketch_mode_plane,
|
get_sketch_mode_plane,
|
||||||
curve_set_constraint,
|
curve_set_constraint,
|
||||||
|
enable_sketch_mode,
|
||||||
|
object_set_material_params_pbr,
|
||||||
|
entity_get_distance,
|
||||||
|
entity_linear_pattern,
|
||||||
],
|
],
|
||||||
Field(discriminator="type"),
|
Field(discriminator="type"),
|
||||||
]
|
]
|
||||||
|
@ -10,8 +10,10 @@ from ..models.curve_get_type import CurveGetType
|
|||||||
from ..models.density import Density
|
from ..models.density import Density
|
||||||
from ..models.entity_get_all_child_uuids import EntityGetAllChildUuids
|
from ..models.entity_get_all_child_uuids import EntityGetAllChildUuids
|
||||||
from ..models.entity_get_child_uuid import EntityGetChildUuid
|
from ..models.entity_get_child_uuid import EntityGetChildUuid
|
||||||
|
from ..models.entity_get_distance import EntityGetDistance
|
||||||
from ..models.entity_get_num_children import EntityGetNumChildren
|
from ..models.entity_get_num_children import EntityGetNumChildren
|
||||||
from ..models.entity_get_parent_id import EntityGetParentId
|
from ..models.entity_get_parent_id import EntityGetParentId
|
||||||
|
from ..models.entity_linear_pattern import EntityLinearPattern
|
||||||
from ..models.export import Export
|
from ..models.export import Export
|
||||||
from ..models.get_entity_type import GetEntityType
|
from ..models.get_entity_type import GetEntityType
|
||||||
from ..models.get_sketch_mode_plane import GetSketchModePlane
|
from ..models.get_sketch_mode_plane import GetSketchModePlane
|
||||||
@ -42,7 +44,7 @@ class empty(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class export(BaseModel):
|
class export(BaseModel):
|
||||||
"""The response from the `Export` command. When this is being performed over a websocket, this is sent as binary not JSON. The binary data can be deserialized as `bincode` into a `Vec<ExportFile>`."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Export
|
data: Export
|
||||||
|
|
||||||
@ -50,7 +52,7 @@ class export(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class select_with_point(BaseModel):
|
class select_with_point(BaseModel):
|
||||||
"""The response from the `SelectWithPoint` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: SelectWithPoint
|
data: SelectWithPoint
|
||||||
|
|
||||||
@ -58,7 +60,7 @@ class select_with_point(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class highlight_set_entity(BaseModel):
|
class highlight_set_entity(BaseModel):
|
||||||
"""The response from the `HighlightSetEntity` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: HighlightSetEntity
|
data: HighlightSetEntity
|
||||||
|
|
||||||
@ -66,7 +68,7 @@ class highlight_set_entity(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class entity_get_child_uuid(BaseModel):
|
class entity_get_child_uuid(BaseModel):
|
||||||
"""The response from the `EntityGetChildUuid` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: EntityGetChildUuid
|
data: EntityGetChildUuid
|
||||||
|
|
||||||
@ -74,7 +76,7 @@ class entity_get_child_uuid(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class entity_get_num_children(BaseModel):
|
class entity_get_num_children(BaseModel):
|
||||||
"""The response from the `EntityGetNumChildren` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: EntityGetNumChildren
|
data: EntityGetNumChildren
|
||||||
|
|
||||||
@ -82,7 +84,7 @@ class entity_get_num_children(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class entity_get_parent_id(BaseModel):
|
class entity_get_parent_id(BaseModel):
|
||||||
"""The response from the `EntityGetParentId` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: EntityGetParentId
|
data: EntityGetParentId
|
||||||
|
|
||||||
@ -90,7 +92,7 @@ class entity_get_parent_id(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class entity_get_all_child_uuids(BaseModel):
|
class entity_get_all_child_uuids(BaseModel):
|
||||||
"""The response from the `EntityGetAllChildUuids` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: EntityGetAllChildUuids
|
data: EntityGetAllChildUuids
|
||||||
|
|
||||||
@ -98,7 +100,7 @@ class entity_get_all_child_uuids(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class select_get(BaseModel):
|
class select_get(BaseModel):
|
||||||
"""The response from the `SelectGet` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: SelectGet
|
data: SelectGet
|
||||||
|
|
||||||
@ -106,15 +108,31 @@ class select_get(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class get_entity_type(BaseModel):
|
class get_entity_type(BaseModel):
|
||||||
"""The response from the `GetEntityType` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: GetEntityType
|
data: GetEntityType
|
||||||
|
|
||||||
type: Literal["get_entity_type"] = "get_entity_type"
|
type: Literal["get_entity_type"] = "get_entity_type"
|
||||||
|
|
||||||
|
|
||||||
|
class entity_get_distance(BaseModel):
|
||||||
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
|
data: EntityGetDistance
|
||||||
|
|
||||||
|
type: Literal["entity_get_distance"] = "entity_get_distance"
|
||||||
|
|
||||||
|
|
||||||
|
class entity_linear_pattern(BaseModel):
|
||||||
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
|
data: EntityLinearPattern
|
||||||
|
|
||||||
|
type: Literal["entity_linear_pattern"] = "entity_linear_pattern"
|
||||||
|
|
||||||
|
|
||||||
class solid3d_get_all_edge_faces(BaseModel):
|
class solid3d_get_all_edge_faces(BaseModel):
|
||||||
"""The response from the `Solid3dGetAllEdgeFaces` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Solid3dGetAllEdgeFaces
|
data: Solid3dGetAllEdgeFaces
|
||||||
|
|
||||||
@ -122,7 +140,7 @@ class solid3d_get_all_edge_faces(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class solid3d_get_all_opposite_edges(BaseModel):
|
class solid3d_get_all_opposite_edges(BaseModel):
|
||||||
"""The response from the `Solid3dGetAllOppositeEdges` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Solid3dGetAllOppositeEdges
|
data: Solid3dGetAllOppositeEdges
|
||||||
|
|
||||||
@ -130,7 +148,7 @@ class solid3d_get_all_opposite_edges(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class solid3d_get_opposite_edge(BaseModel):
|
class solid3d_get_opposite_edge(BaseModel):
|
||||||
"""The response from the `Solid3dGetOppositeEdge` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Solid3dGetOppositeEdge
|
data: Solid3dGetOppositeEdge
|
||||||
|
|
||||||
@ -138,7 +156,7 @@ class solid3d_get_opposite_edge(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class solid3d_get_prev_adjacent_edge(BaseModel):
|
class solid3d_get_prev_adjacent_edge(BaseModel):
|
||||||
"""The response from the `Solid3dGetPrevAdjacentEdge` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Solid3dGetPrevAdjacentEdge
|
data: Solid3dGetPrevAdjacentEdge
|
||||||
|
|
||||||
@ -146,7 +164,7 @@ class solid3d_get_prev_adjacent_edge(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class solid3d_get_next_adjacent_edge(BaseModel):
|
class solid3d_get_next_adjacent_edge(BaseModel):
|
||||||
"""The response from the `Solid3dGetNextAdjacentEdge` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Solid3dGetNextAdjacentEdge
|
data: Solid3dGetNextAdjacentEdge
|
||||||
|
|
||||||
@ -154,7 +172,7 @@ class solid3d_get_next_adjacent_edge(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class mouse_click(BaseModel):
|
class mouse_click(BaseModel):
|
||||||
"""The response from the `MouseClick` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: MouseClick
|
data: MouseClick
|
||||||
|
|
||||||
@ -162,7 +180,7 @@ class mouse_click(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class curve_get_type(BaseModel):
|
class curve_get_type(BaseModel):
|
||||||
"""The response from the `CurveGetType` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: CurveGetType
|
data: CurveGetType
|
||||||
|
|
||||||
@ -170,7 +188,7 @@ class curve_get_type(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class curve_get_control_points(BaseModel):
|
class curve_get_control_points(BaseModel):
|
||||||
"""The response from the `CurveGetControlPoints` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: CurveGetControlPoints
|
data: CurveGetControlPoints
|
||||||
|
|
||||||
@ -178,7 +196,7 @@ class curve_get_control_points(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class take_snapshot(BaseModel):
|
class take_snapshot(BaseModel):
|
||||||
"""The response from the `Take Snapshot` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: TakeSnapshot
|
data: TakeSnapshot
|
||||||
|
|
||||||
@ -186,7 +204,7 @@ class take_snapshot(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class path_get_info(BaseModel):
|
class path_get_info(BaseModel):
|
||||||
"""The response from the `Path Get Info` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: PathGetInfo
|
data: PathGetInfo
|
||||||
|
|
||||||
@ -194,7 +212,7 @@ class path_get_info(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class path_get_curve_uuids_for_vertices(BaseModel):
|
class path_get_curve_uuids_for_vertices(BaseModel):
|
||||||
"""The response from the `Path Get Curve UUIDs for Vertices` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: PathGetCurveUuidsForVertices
|
data: PathGetCurveUuidsForVertices
|
||||||
|
|
||||||
@ -204,7 +222,7 @@ class path_get_curve_uuids_for_vertices(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class path_get_vertex_uuids(BaseModel):
|
class path_get_vertex_uuids(BaseModel):
|
||||||
"""The response from the `Path Get Vertex UUIDs` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: PathGetVertexUuids
|
data: PathGetVertexUuids
|
||||||
|
|
||||||
@ -212,7 +230,7 @@ class path_get_vertex_uuids(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class plane_intersect_and_project(BaseModel):
|
class plane_intersect_and_project(BaseModel):
|
||||||
"""The response from the `PlaneIntersectAndProject` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: PlaneIntersectAndProject
|
data: PlaneIntersectAndProject
|
||||||
|
|
||||||
@ -220,7 +238,7 @@ class plane_intersect_and_project(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class curve_get_end_points(BaseModel):
|
class curve_get_end_points(BaseModel):
|
||||||
"""The response from the `CurveGetEndPoints` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: CurveGetEndPoints
|
data: CurveGetEndPoints
|
||||||
|
|
||||||
@ -228,7 +246,7 @@ class curve_get_end_points(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class import_files(BaseModel):
|
class import_files(BaseModel):
|
||||||
"""The response from the `ImportFiles` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: ImportFiles
|
data: ImportFiles
|
||||||
|
|
||||||
@ -236,7 +254,7 @@ class import_files(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class mass(BaseModel):
|
class mass(BaseModel):
|
||||||
"""The response from the `Mass` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Mass
|
data: Mass
|
||||||
|
|
||||||
@ -244,7 +262,7 @@ class mass(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class volume(BaseModel):
|
class volume(BaseModel):
|
||||||
"""The response from the `Volume` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Volume
|
data: Volume
|
||||||
|
|
||||||
@ -252,7 +270,7 @@ class volume(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class density(BaseModel):
|
class density(BaseModel):
|
||||||
"""The response from the `Density` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: Density
|
data: Density
|
||||||
|
|
||||||
@ -260,7 +278,7 @@ class density(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class surface_area(BaseModel):
|
class surface_area(BaseModel):
|
||||||
"""The response from the `SurfaceArea` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: SurfaceArea
|
data: SurfaceArea
|
||||||
|
|
||||||
@ -268,7 +286,7 @@ class surface_area(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class center_of_mass(BaseModel):
|
class center_of_mass(BaseModel):
|
||||||
"""The response from the `CenterOfMass` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: CenterOfMass
|
data: CenterOfMass
|
||||||
|
|
||||||
@ -276,7 +294,7 @@ class center_of_mass(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class get_sketch_mode_plane(BaseModel):
|
class get_sketch_mode_plane(BaseModel):
|
||||||
"""The response from the `GetSketchModePlane` command."""
|
"""The response from the ` ` command."""
|
||||||
|
|
||||||
data: GetSketchModePlane
|
data: GetSketchModePlane
|
||||||
|
|
||||||
@ -296,6 +314,8 @@ OkModelingCmdResponse = RootModel[
|
|||||||
entity_get_all_child_uuids,
|
entity_get_all_child_uuids,
|
||||||
select_get,
|
select_get,
|
||||||
get_entity_type,
|
get_entity_type,
|
||||||
|
entity_get_distance,
|
||||||
|
entity_linear_pattern,
|
||||||
solid3d_get_all_edge_faces,
|
solid3d_get_all_edge_faces,
|
||||||
solid3d_get_all_opposite_edges,
|
solid3d_get_all_opposite_edges,
|
||||||
solid3d_get_opposite_edge,
|
solid3d_get_opposite_edge,
|
||||||
|
@ -7,6 +7,10 @@ from pydantic import BaseModel
|
|||||||
class Onboarding(BaseModel):
|
class Onboarding(BaseModel):
|
||||||
"""Onboarding details"""
|
"""Onboarding details"""
|
||||||
|
|
||||||
|
first_call_from_modeling_app_date: Optional[str] = None
|
||||||
|
|
||||||
|
first_call_from_text_to_cad_date: Optional[str] = None
|
||||||
|
|
||||||
first_call_from_their_machine_date: Optional[str] = None
|
first_call_from_their_machine_date: Optional[str] = None
|
||||||
|
|
||||||
first_litterbox_execute_date: Optional[str] = None
|
first_litterbox_execute_date: Optional[str] = None
|
||||||
|
@ -22,7 +22,7 @@ class fbx(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
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."""
|
||||||
|
|
||||||
presentation: GltfPresentation
|
presentation: GltfPresentation
|
||||||
|
|
||||||
|
@ -21,19 +21,15 @@ class line(BaseModel):
|
|||||||
class arc(BaseModel):
|
class arc(BaseModel):
|
||||||
"""A circular arc segment."""
|
"""A circular arc segment."""
|
||||||
|
|
||||||
angle_end: float
|
|
||||||
|
|
||||||
angle_start: float
|
|
||||||
|
|
||||||
center: Point2d
|
center: Point2d
|
||||||
|
|
||||||
end: Optional[Angle] = None
|
end: Angle
|
||||||
|
|
||||||
radius: float
|
radius: float
|
||||||
|
|
||||||
relative: bool
|
relative: bool
|
||||||
|
|
||||||
start: Optional[Angle] = None
|
start: Angle
|
||||||
|
|
||||||
type: Literal["arc"] = "arc"
|
type: Literal["arc"] = "arc"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ from pydantic import BaseModel
|
|||||||
|
|
||||||
|
|
||||||
class RawFile(BaseModel):
|
class RawFile(BaseModel):
|
||||||
"""A raw file with unencoded contents to be passed over binary websockets."""
|
"""A raw file with unencoded contents to be passed over binary websockets. When raw files come back for exports it is sent as binary/bson, not text/json."""
|
||||||
|
|
||||||
contents: bytes
|
contents: bytes
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "kittycad"
|
name = "kittycad"
|
||||||
version = "0.5.9"
|
version = "0.6.0"
|
||||||
description = "A client library for accessing KittyCAD"
|
description = "A client library for accessing KittyCAD"
|
||||||
|
|
||||||
authors = []
|
authors = []
|
||||||
|
Reference in New Issue
Block a user