Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
137b1600a8 | |||
6ef6e60467 | |||
374a57746e | |||
20a61d19d1 | |||
782dc863d4 | |||
daab399185 | |||
e4370b6108 |
File diff suppressed because one or more lines are too long
@ -7,7 +7,6 @@ from ...models.file_conversion import FileConversion
|
||||
from ...models.file2_d_vector_conversion import File2DVectorConversion
|
||||
from ...models.file3_d_conversion import File3DConversion
|
||||
from ...models.file_center_of_mass import FileCenterOfMass
|
||||
from ...models.file_center_of_mass_with_uniform_density import FileCenterOfMassWithUniformDensity
|
||||
from ...models.file_mass import FileMass
|
||||
from ...models.file_volume import FileVolume
|
||||
from ...models.file_density import FileDensity
|
||||
@ -33,7 +32,7 @@ def _get_kwargs(
|
||||
}
|
||||
|
||||
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
if response.status_code == 200:
|
||||
data = response.json()
|
||||
try:
|
||||
@ -64,13 +63,6 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
||||
return option
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if not isinstance(data, dict):
|
||||
raise TypeError()
|
||||
option = FileCenterOfMassWithUniformDensity.from_dict(data)
|
||||
return option
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if not isinstance(data, dict):
|
||||
raise TypeError()
|
||||
@ -108,7 +100,7 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
||||
return None
|
||||
|
||||
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
return Response(
|
||||
status_code=response.status_code,
|
||||
content=response.content,
|
||||
@ -121,7 +113,7 @@ def sync_detailed(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
id=id,
|
||||
client=client,
|
||||
@ -139,7 +131,7 @@ def sync(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
""" 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.
|
||||
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||
@ -155,7 +147,7 @@ async def asyncio_detailed(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
id=id,
|
||||
client=client,
|
||||
@ -171,7 +163,7 @@ async def asyncio(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
""" 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.
|
||||
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||
|
@ -9,13 +9,12 @@ from ...models.file3_d_import_format import File3DImportFormat
|
||||
from ...types import Response
|
||||
|
||||
def _get_kwargs(
|
||||
material_density: float,
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Dict[str, Any]:
|
||||
url = "{}/file/center-of-mass?material_density={material_density}&src_format={src_format}".format(client.base_url, material_density=material_density, src_format=src_format)
|
||||
url = "{}/file/center-of-mass?src_format={src_format}".format(client.base_url, src_format=src_format)
|
||||
|
||||
headers: Dict[str, Any] = client.get_headers()
|
||||
cookies: Dict[str, Any] = client.get_cookies()
|
||||
@ -52,14 +51,12 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileCent
|
||||
|
||||
|
||||
def sync_detailed(
|
||||
material_density: float,
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileCenterOfMass, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
material_density=material_density,
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
@ -74,18 +71,15 @@ def sync_detailed(
|
||||
|
||||
|
||||
def sync(
|
||||
material_density: float,
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileCenterOfMass, Error]]:
|
||||
""" Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||
Does the same as the `center_of_mass_with_uniform_density` endpoint; except, this has a redundant `material_density value`. Kept for legacy in this version.
|
||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint. """
|
||||
|
||||
return sync_detailed(
|
||||
material_density=material_density,
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
@ -93,14 +87,12 @@ If the operation is performed asynchronously, the `id` of the operation will be
|
||||
|
||||
|
||||
async def asyncio_detailed(
|
||||
material_density: float,
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileCenterOfMass, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
material_density=material_density,
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
@ -113,19 +105,16 @@ async def asyncio_detailed(
|
||||
|
||||
|
||||
async def asyncio(
|
||||
material_density: float,
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileCenterOfMass, Error]]:
|
||||
""" Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||
Does the same as the `center_of_mass_with_uniform_density` endpoint; except, this has a redundant `material_density value`. Kept for legacy in this version.
|
||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint. """
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
material_density=material_density,
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
|
@ -1,122 +0,0 @@
|
||||
from typing import Any, Dict, Optional, Union, cast
|
||||
|
||||
import httpx
|
||||
|
||||
from ...client import Client
|
||||
from ...models.file_center_of_mass_with_uniform_density import FileCenterOfMassWithUniformDensity
|
||||
from ...models.error import Error
|
||||
from ...models.file3_d_import_format import File3DImportFormat
|
||||
from ...types import Response
|
||||
|
||||
def _get_kwargs(
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Dict[str, Any]:
|
||||
url = "{}/file/center-of-mass-with-uniform-density?src_format={src_format}".format(client.base_url, src_format=src_format)
|
||||
|
||||
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(),
|
||||
"content": body,
|
||||
}
|
||||
|
||||
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileCenterOfMassWithUniformDensity, Error]]:
|
||||
if response.status_code == 201:
|
||||
response_201 = FileCenterOfMassWithUniformDensity.from_dict(response.json())
|
||||
return response_201
|
||||
if response.status_code == 400:
|
||||
response_4XX = Error.from_dict(response.json())
|
||||
return response_4XX
|
||||
if response.status_code == 500:
|
||||
response_5XX = Error.from_dict(response.json())
|
||||
return response_5XX
|
||||
return None
|
||||
|
||||
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileCenterOfMassWithUniformDensity, Error]]:
|
||||
return Response(
|
||||
status_code=response.status_code,
|
||||
content=response.content,
|
||||
headers=response.headers,
|
||||
parsed=_parse_response(response=response),
|
||||
)
|
||||
|
||||
|
||||
def sync_detailed(
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileCenterOfMassWithUniformDensity, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
)
|
||||
|
||||
response = httpx.post(
|
||||
verify=client.verify_ssl,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
return _build_response(response=response)
|
||||
|
||||
|
||||
def sync(
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileCenterOfMassWithUniformDensity, Error]]:
|
||||
""" Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint. """
|
||||
|
||||
return sync_detailed(
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
).parsed
|
||||
|
||||
|
||||
async def asyncio_detailed(
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileCenterOfMassWithUniformDensity, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
)
|
||||
|
||||
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
|
||||
response = await _client.post(**kwargs)
|
||||
|
||||
return _build_response(response=response)
|
||||
|
||||
|
||||
async def asyncio(
|
||||
src_format: File3DImportFormat,
|
||||
body: bytes,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileCenterOfMassWithUniformDensity, Error]]:
|
||||
""" Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint. """
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
src_format=src_format,
|
||||
body=body,
|
||||
client=client,
|
||||
)
|
||||
).parsed
|
@ -7,7 +7,6 @@ from ...models.file_conversion import FileConversion
|
||||
from ...models.file2_d_vector_conversion import File2DVectorConversion
|
||||
from ...models.file3_d_conversion import File3DConversion
|
||||
from ...models.file_center_of_mass import FileCenterOfMass
|
||||
from ...models.file_center_of_mass_with_uniform_density import FileCenterOfMassWithUniformDensity
|
||||
from ...models.file_mass import FileMass
|
||||
from ...models.file_volume import FileVolume
|
||||
from ...models.file_density import FileDensity
|
||||
@ -33,7 +32,7 @@ def _get_kwargs(
|
||||
}
|
||||
|
||||
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
if response.status_code == 200:
|
||||
data = response.json()
|
||||
try:
|
||||
@ -64,13 +63,6 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
||||
return option
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if not isinstance(data, dict):
|
||||
raise TypeError()
|
||||
option = FileCenterOfMassWithUniformDensity.from_dict(data)
|
||||
return option
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if not isinstance(data, dict):
|
||||
raise TypeError()
|
||||
@ -108,7 +100,7 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
||||
return None
|
||||
|
||||
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
return Response(
|
||||
status_code=response.status_code,
|
||||
content=response.content,
|
||||
@ -121,7 +113,7 @@ def sync_detailed(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
id=id,
|
||||
client=client,
|
||||
@ -139,7 +131,7 @@ def sync(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
""" Get the status and output of an async file conversion.
|
||||
This endpoint requires authentication by any KittyCAD user. It returns details of the requested file conversion for the user.
|
||||
If the user is not authenticated to view the specified file conversion, then it is not returned.
|
||||
@ -155,7 +147,7 @@ async def asyncio_detailed(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
id=id,
|
||||
client=client,
|
||||
@ -171,7 +163,7 @@ async def asyncio(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
""" Get the status and output of an async file conversion.
|
||||
This endpoint requires authentication by any KittyCAD user. It returns details of the requested file conversion for the user.
|
||||
If the user is not authenticated to view the specified file conversion, then it is not returned.
|
||||
|
@ -7,7 +7,6 @@ from ...models.file_conversion import FileConversion
|
||||
from ...models.file2_d_vector_conversion import File2DVectorConversion
|
||||
from ...models.file3_d_conversion import File3DConversion
|
||||
from ...models.file_center_of_mass import FileCenterOfMass
|
||||
from ...models.file_center_of_mass_with_uniform_density import FileCenterOfMassWithUniformDensity
|
||||
from ...models.file_mass import FileMass
|
||||
from ...models.file_volume import FileVolume
|
||||
from ...models.file_density import FileDensity
|
||||
@ -33,7 +32,7 @@ def _get_kwargs(
|
||||
}
|
||||
|
||||
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
if response.status_code == 200:
|
||||
data = response.json()
|
||||
try:
|
||||
@ -64,13 +63,6 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
||||
return option
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if not isinstance(data, dict):
|
||||
raise TypeError()
|
||||
option = FileCenterOfMassWithUniformDensity.from_dict(data)
|
||||
return option
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if not isinstance(data, dict):
|
||||
raise TypeError()
|
||||
@ -108,7 +100,7 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
||||
return None
|
||||
|
||||
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
return Response(
|
||||
status_code=response.status_code,
|
||||
content=response.content,
|
||||
@ -121,7 +113,7 @@ def sync_detailed(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
id=id,
|
||||
client=client,
|
||||
@ -139,7 +131,7 @@ def sync(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
""" Get the status and output of an async file conversion. If completed, the contents of the converted file (`output`) will be returned as a base64 encoded string.
|
||||
This endpoint requires authentication by any KittyCAD user. It returns details of the requested file conversion for the user. """
|
||||
|
||||
@ -153,7 +145,7 @@ async def asyncio_detailed(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Response[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
kwargs = _get_kwargs(
|
||||
id=id,
|
||||
client=client,
|
||||
@ -169,7 +161,7 @@ async def asyncio(
|
||||
id: str,
|
||||
*,
|
||||
client: Client,
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileCenterOfMassWithUniformDensity, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
) -> Optional[Union[Any, FileConversion, File2DVectorConversion, File3DConversion, FileCenterOfMass, FileMass, FileVolume, FileDensity, FileSurfaceArea, Error]]:
|
||||
""" Get the status and output of an async file conversion. If completed, the contents of the converted file (`output`) will be returned as a base64 encoded string.
|
||||
This endpoint requires authentication by any KittyCAD user. It returns details of the requested file conversion for the user. """
|
||||
|
||||
|
98
kittycad/api/meta/get_ai_plugin_manifest.py
Normal file
98
kittycad/api/meta/get_ai_plugin_manifest.py
Normal file
@ -0,0 +1,98 @@
|
||||
from typing import Any, Dict, Optional, Union, cast
|
||||
|
||||
import httpx
|
||||
|
||||
from ...client import Client
|
||||
from ...models.ai_plugin_manifest import AiPluginManifest
|
||||
from ...models.error import Error
|
||||
from ...types import Response
|
||||
|
||||
def _get_kwargs(
|
||||
*,
|
||||
client: Client,
|
||||
) -> Dict[str, Any]:
|
||||
url = "{}/.well-known/ai-plugin.json".format(client.base_url)
|
||||
|
||||
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[Any, AiPluginManifest, Error]]:
|
||||
if response.status_code == 200:
|
||||
response_200 = AiPluginManifest.from_dict(response.json())
|
||||
return response_200
|
||||
if response.status_code == 400:
|
||||
response_4XX = Error.from_dict(response.json())
|
||||
return response_4XX
|
||||
if response.status_code == 500:
|
||||
response_5XX = Error.from_dict(response.json())
|
||||
return response_5XX
|
||||
return None
|
||||
|
||||
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, AiPluginManifest, 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[Union[Any, AiPluginManifest, 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[Any, AiPluginManifest, Error]]:
|
||||
|
||||
return sync_detailed(
|
||||
client=client,
|
||||
).parsed
|
||||
|
||||
|
||||
async def asyncio_detailed(
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, AiPluginManifest, 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[Any, AiPluginManifest, Error]]:
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
client=client,
|
||||
)
|
||||
).parsed
|
@ -0,0 +1,99 @@
|
||||
from typing import Any, Dict, Optional, Union, cast
|
||||
|
||||
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/payment/tax".format(client.base_url)
|
||||
|
||||
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[Any, Error]]:
|
||||
if response.status_code == 204:
|
||||
response_204 = None
|
||||
return response_204
|
||||
if response.status_code == 400:
|
||||
response_4XX = Error.from_dict(response.json())
|
||||
return response_4XX
|
||||
if response.status_code == 500:
|
||||
response_5XX = Error.from_dict(response.json())
|
||||
return response_5XX
|
||||
return None
|
||||
|
||||
|
||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, 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[Union[Any, 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[Any, 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. """
|
||||
|
||||
return sync_detailed(
|
||||
client=client,
|
||||
).parsed
|
||||
|
||||
|
||||
async def asyncio_detailed(
|
||||
*,
|
||||
client: Client,
|
||||
) -> Response[Union[Any, 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[Any, 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. """
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
client=client,
|
||||
)
|
||||
).parsed
|
@ -1,6 +1,12 @@
|
||||
""" Contains all the data models used in inputs/outputs """
|
||||
|
||||
from .account_provider import AccountProvider
|
||||
from .ai_plugin_api import AiPluginApi
|
||||
from .ai_plugin_api_type import AiPluginApiType
|
||||
from .ai_plugin_auth import AiPluginAuth
|
||||
from .ai_plugin_auth_type import AiPluginAuthType
|
||||
from .ai_plugin_http_auth_type import AiPluginHttpAuthType
|
||||
from .ai_plugin_manifest import AiPluginManifest
|
||||
from .api_call_query_group import ApiCallQueryGroup
|
||||
from .api_call_query_group_by import ApiCallQueryGroupBy
|
||||
from .api_call_status import ApiCallStatus
|
||||
@ -20,6 +26,7 @@ from .code_language import CodeLanguage
|
||||
from .code_output import CodeOutput
|
||||
from .commit import Commit
|
||||
from .connection import Connection
|
||||
from .country_code import CountryCode
|
||||
from .created_at_sort_mode import CreatedAtSortMode
|
||||
from .currency import Currency
|
||||
from .customer import Customer
|
||||
@ -42,7 +49,6 @@ from .file3_d_conversion import File3DConversion
|
||||
from .file3_d_export_format import File3DExportFormat
|
||||
from .file3_d_import_format import File3DImportFormat
|
||||
from .file_center_of_mass import FileCenterOfMass
|
||||
from .file_center_of_mass_with_uniform_density import FileCenterOfMassWithUniformDensity
|
||||
from .file_conversion import FileConversion
|
||||
from .file_density import FileDensity
|
||||
from .file_export_format import FileExportFormat
|
||||
|
76
kittycad/models/ai_plugin_api.py
Normal file
76
kittycad/models/ai_plugin_api.py
Normal file
@ -0,0 +1,76 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.ai_plugin_api_type import AiPluginApiType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AiPluginApi")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AiPluginApi:
|
||||
""" """
|
||||
is_user_authenticated: Union[Unset, bool] = False
|
||||
type: Union[Unset, AiPluginApiType] = UNSET
|
||||
url: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
is_user_authenticated = self.is_user_authenticated
|
||||
type: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.type, Unset):
|
||||
type = self.type.value
|
||||
url = self.url
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if is_user_authenticated is not UNSET:
|
||||
field_dict['is_user_authenticated'] = is_user_authenticated
|
||||
if type is not UNSET:
|
||||
field_dict['type'] = type
|
||||
if url is not UNSET:
|
||||
field_dict['url'] = url
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
is_user_authenticated = d.pop("is_user_authenticated", UNSET)
|
||||
|
||||
_type = d.pop("type", UNSET)
|
||||
type: Union[Unset, AiPluginApiType]
|
||||
if isinstance(_type, Unset):
|
||||
type = UNSET
|
||||
else:
|
||||
type = AiPluginApiType(_type)
|
||||
|
||||
url = d.pop("url", UNSET)
|
||||
|
||||
ai_plugin_api = cls(
|
||||
is_user_authenticated=is_user_authenticated,
|
||||
type=type,
|
||||
url=url,
|
||||
)
|
||||
|
||||
ai_plugin_api.additional_properties = d
|
||||
return ai_plugin_api
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
8
kittycad/models/ai_plugin_api_type.py
Normal file
8
kittycad/models/ai_plugin_api_type.py
Normal file
@ -0,0 +1,8 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class AiPluginApiType(str, Enum):
|
||||
OPENAPI = 'openapi'
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
77
kittycad/models/ai_plugin_auth.py
Normal file
77
kittycad/models/ai_plugin_auth.py
Normal file
@ -0,0 +1,77 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.ai_plugin_http_auth_type import AiPluginHttpAuthType
|
||||
from ..models.ai_plugin_auth_type import AiPluginAuthType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AiPluginAuth")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AiPluginAuth:
|
||||
""" """
|
||||
authorization_type: Union[Unset, AiPluginHttpAuthType] = UNSET
|
||||
type: Union[Unset, AiPluginAuthType] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
authorization_type: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.authorization_type, Unset):
|
||||
authorization_type = self.authorization_type.value
|
||||
type: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.type, Unset):
|
||||
type = self.type.value
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if authorization_type is not UNSET:
|
||||
field_dict['authorization_type'] = authorization_type
|
||||
if type is not UNSET:
|
||||
field_dict['type'] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
_authorization_type = d.pop("authorization_type", UNSET)
|
||||
authorization_type: Union[Unset, AiPluginHttpAuthType]
|
||||
if isinstance(_authorization_type, Unset):
|
||||
authorization_type = UNSET
|
||||
else:
|
||||
authorization_type = AiPluginHttpAuthType(_authorization_type)
|
||||
|
||||
_type = d.pop("type", UNSET)
|
||||
type: Union[Unset, AiPluginAuthType]
|
||||
if isinstance(_type, Unset):
|
||||
type = UNSET
|
||||
else:
|
||||
type = AiPluginAuthType(_type)
|
||||
|
||||
ai_plugin_auth = cls(
|
||||
authorization_type=authorization_type,
|
||||
type=type,
|
||||
)
|
||||
|
||||
ai_plugin_auth.additional_properties = d
|
||||
return ai_plugin_auth
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
11
kittycad/models/ai_plugin_auth_type.py
Normal file
11
kittycad/models/ai_plugin_auth_type.py
Normal file
@ -0,0 +1,11 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class AiPluginAuthType(str, Enum):
|
||||
NONE = 'none'
|
||||
USER_HTTP = 'user_http'
|
||||
SERVICE_HTTP = 'service_http'
|
||||
OAUTH = 'oauth'
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
9
kittycad/models/ai_plugin_http_auth_type.py
Normal file
9
kittycad/models/ai_plugin_http_auth_type.py
Normal file
@ -0,0 +1,9 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class AiPluginHttpAuthType(str, Enum):
|
||||
BASIC = 'basic'
|
||||
BEARER = 'bearer'
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
133
kittycad/models/ai_plugin_manifest.py
Normal file
133
kittycad/models/ai_plugin_manifest.py
Normal file
@ -0,0 +1,133 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.ai_plugin_api import AiPluginApi
|
||||
from ..models.ai_plugin_auth import AiPluginAuth
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AiPluginManifest")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AiPluginManifest:
|
||||
""" """
|
||||
api: Union[Unset, AiPluginApi] = UNSET
|
||||
auth: Union[Unset, AiPluginAuth] = UNSET
|
||||
contact_email: Union[Unset, str] = UNSET
|
||||
description_for_human: Union[Unset, str] = UNSET
|
||||
description_for_model: Union[Unset, str] = UNSET
|
||||
legal_info_url: Union[Unset, str] = UNSET
|
||||
logo_url: Union[Unset, str] = UNSET
|
||||
name_for_human: Union[Unset, str] = UNSET
|
||||
name_for_model: Union[Unset, str] = UNSET
|
||||
schema_version: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
api: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.api, Unset):
|
||||
api = self.api.value
|
||||
auth: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.auth, Unset):
|
||||
auth = self.auth.value
|
||||
contact_email = self.contact_email
|
||||
description_for_human = self.description_for_human
|
||||
description_for_model = self.description_for_model
|
||||
legal_info_url = self.legal_info_url
|
||||
logo_url = self.logo_url
|
||||
name_for_human = self.name_for_human
|
||||
name_for_model = self.name_for_model
|
||||
schema_version = self.schema_version
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if api is not UNSET:
|
||||
field_dict['api'] = api
|
||||
if auth is not UNSET:
|
||||
field_dict['auth'] = auth
|
||||
if contact_email is not UNSET:
|
||||
field_dict['contact_email'] = contact_email
|
||||
if description_for_human is not UNSET:
|
||||
field_dict['description_for_human'] = description_for_human
|
||||
if description_for_model is not UNSET:
|
||||
field_dict['description_for_model'] = description_for_model
|
||||
if legal_info_url is not UNSET:
|
||||
field_dict['legal_info_url'] = legal_info_url
|
||||
if logo_url is not UNSET:
|
||||
field_dict['logo_url'] = logo_url
|
||||
if name_for_human is not UNSET:
|
||||
field_dict['name_for_human'] = name_for_human
|
||||
if name_for_model is not UNSET:
|
||||
field_dict['name_for_model'] = name_for_model
|
||||
if schema_version is not UNSET:
|
||||
field_dict['schema_version'] = schema_version
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
_api = d.pop("api", UNSET)
|
||||
api: Union[Unset, AiPluginApi]
|
||||
if isinstance(_api, Unset):
|
||||
api = UNSET
|
||||
else:
|
||||
api = AiPluginApi(_api)
|
||||
|
||||
_auth = d.pop("auth", UNSET)
|
||||
auth: Union[Unset, AiPluginAuth]
|
||||
if isinstance(_auth, Unset):
|
||||
auth = UNSET
|
||||
else:
|
||||
auth = AiPluginAuth(_auth)
|
||||
|
||||
contact_email = d.pop("contact_email", UNSET)
|
||||
|
||||
description_for_human = d.pop("description_for_human", UNSET)
|
||||
|
||||
description_for_model = d.pop("description_for_model", UNSET)
|
||||
|
||||
legal_info_url = d.pop("legal_info_url", UNSET)
|
||||
|
||||
logo_url = d.pop("logo_url", UNSET)
|
||||
|
||||
name_for_human = d.pop("name_for_human", UNSET)
|
||||
|
||||
name_for_model = d.pop("name_for_model", UNSET)
|
||||
|
||||
schema_version = d.pop("schema_version", UNSET)
|
||||
|
||||
ai_plugin_manifest = cls(
|
||||
api=api,
|
||||
auth=auth,
|
||||
contact_email=contact_email,
|
||||
description_for_human=description_for_human,
|
||||
description_for_model=description_for_model,
|
||||
legal_info_url=legal_info_url,
|
||||
logo_url=logo_url,
|
||||
name_for_human=name_for_human,
|
||||
name_for_model=name_for_model,
|
||||
schema_version=schema_version,
|
||||
)
|
||||
|
||||
ai_plugin_manifest.additional_properties = d
|
||||
return ai_plugin_manifest
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
@ -7,7 +7,6 @@ class AsyncApiCallType(str, Enum):
|
||||
FILE3_D_CONVERSION = 'File3DConversion'
|
||||
FILE_VOLUME = 'FileVolume'
|
||||
FILE_CENTER_OF_MASS = 'FileCenterOfMass'
|
||||
FILE_CENTER_OF_MASS_WITH_UNIFORM_DENSITY = 'FileCenterOfMassWithUniformDensity'
|
||||
FILE_MASS = 'FileMass'
|
||||
FILE_DENSITY = 'FileDensity'
|
||||
FILE_SURFACE_AREA = 'FileSurfaceArea'
|
||||
|
256
kittycad/models/country_code.py
Normal file
256
kittycad/models/country_code.py
Normal file
@ -0,0 +1,256 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class CountryCode(str, Enum):
|
||||
AF = 'AF'
|
||||
AX = 'AX'
|
||||
AL = 'AL'
|
||||
DZ = 'DZ'
|
||||
AS = 'AS'
|
||||
AD = 'AD'
|
||||
AO = 'AO'
|
||||
AI = 'AI'
|
||||
AQ = 'AQ'
|
||||
AG = 'AG'
|
||||
AR = 'AR'
|
||||
AM = 'AM'
|
||||
AW = 'AW'
|
||||
AU = 'AU'
|
||||
AT = 'AT'
|
||||
AZ = 'AZ'
|
||||
BS = 'BS'
|
||||
BH = 'BH'
|
||||
BD = 'BD'
|
||||
BB = 'BB'
|
||||
BY = 'BY'
|
||||
BE = 'BE'
|
||||
BZ = 'BZ'
|
||||
BJ = 'BJ'
|
||||
BM = 'BM'
|
||||
BT = 'BT'
|
||||
BO = 'BO'
|
||||
BQ = 'BQ'
|
||||
BA = 'BA'
|
||||
BW = 'BW'
|
||||
BV = 'BV'
|
||||
BR = 'BR'
|
||||
IO = 'IO'
|
||||
BN = 'BN'
|
||||
BG = 'BG'
|
||||
BF = 'BF'
|
||||
BI = 'BI'
|
||||
CV = 'CV'
|
||||
KH = 'KH'
|
||||
CM = 'CM'
|
||||
CA = 'CA'
|
||||
KY = 'KY'
|
||||
CF = 'CF'
|
||||
TD = 'TD'
|
||||
CL = 'CL'
|
||||
CN = 'CN'
|
||||
CX = 'CX'
|
||||
CC = 'CC'
|
||||
CO = 'CO'
|
||||
KM = 'KM'
|
||||
CG = 'CG'
|
||||
CD = 'CD'
|
||||
CK = 'CK'
|
||||
CR = 'CR'
|
||||
CI = 'CI'
|
||||
HR = 'HR'
|
||||
CU = 'CU'
|
||||
CW = 'CW'
|
||||
CY = 'CY'
|
||||
CZ = 'CZ'
|
||||
DK = 'DK'
|
||||
DJ = 'DJ'
|
||||
DM = 'DM'
|
||||
DO = 'DO'
|
||||
EC = 'EC'
|
||||
EG = 'EG'
|
||||
SV = 'SV'
|
||||
GQ = 'GQ'
|
||||
ER = 'ER'
|
||||
EE = 'EE'
|
||||
ET = 'ET'
|
||||
FK = 'FK'
|
||||
FO = 'FO'
|
||||
FJ = 'FJ'
|
||||
FI = 'FI'
|
||||
FR = 'FR'
|
||||
GF = 'GF'
|
||||
PF = 'PF'
|
||||
TF = 'TF'
|
||||
GA = 'GA'
|
||||
GM = 'GM'
|
||||
GE = 'GE'
|
||||
DE = 'DE'
|
||||
GH = 'GH'
|
||||
GI = 'GI'
|
||||
GR = 'GR'
|
||||
GL = 'GL'
|
||||
GD = 'GD'
|
||||
GP = 'GP'
|
||||
GU = 'GU'
|
||||
GT = 'GT'
|
||||
GG = 'GG'
|
||||
GN = 'GN'
|
||||
GW = 'GW'
|
||||
GY = 'GY'
|
||||
HT = 'HT'
|
||||
HM = 'HM'
|
||||
VA = 'VA'
|
||||
HN = 'HN'
|
||||
HK = 'HK'
|
||||
HU = 'HU'
|
||||
IS = 'IS'
|
||||
IN = 'IN'
|
||||
ID = 'ID'
|
||||
IR = 'IR'
|
||||
IQ = 'IQ'
|
||||
IE = 'IE'
|
||||
IM = 'IM'
|
||||
IL = 'IL'
|
||||
IT = 'IT'
|
||||
JM = 'JM'
|
||||
JP = 'JP'
|
||||
JE = 'JE'
|
||||
JO = 'JO'
|
||||
KZ = 'KZ'
|
||||
KE = 'KE'
|
||||
KI = 'KI'
|
||||
KP = 'KP'
|
||||
KR = 'KR'
|
||||
KW = 'KW'
|
||||
KG = 'KG'
|
||||
LA = 'LA'
|
||||
LV = 'LV'
|
||||
LB = 'LB'
|
||||
LS = 'LS'
|
||||
LR = 'LR'
|
||||
LY = 'LY'
|
||||
LI = 'LI'
|
||||
LT = 'LT'
|
||||
LU = 'LU'
|
||||
MO = 'MO'
|
||||
MK = 'MK'
|
||||
MG = 'MG'
|
||||
MW = 'MW'
|
||||
MY = 'MY'
|
||||
MV = 'MV'
|
||||
ML = 'ML'
|
||||
MT = 'MT'
|
||||
MH = 'MH'
|
||||
MQ = 'MQ'
|
||||
MR = 'MR'
|
||||
MU = 'MU'
|
||||
YT = 'YT'
|
||||
MX = 'MX'
|
||||
FM = 'FM'
|
||||
MD = 'MD'
|
||||
MC = 'MC'
|
||||
MN = 'MN'
|
||||
ME = 'ME'
|
||||
MS = 'MS'
|
||||
MA = 'MA'
|
||||
MZ = 'MZ'
|
||||
MM = 'MM'
|
||||
NA = 'NA'
|
||||
NR = 'NR'
|
||||
NP = 'NP'
|
||||
NL = 'NL'
|
||||
NC = 'NC'
|
||||
NZ = 'NZ'
|
||||
NI = 'NI'
|
||||
NE = 'NE'
|
||||
NG = 'NG'
|
||||
NU = 'NU'
|
||||
NF = 'NF'
|
||||
MP = 'MP'
|
||||
NO = 'NO'
|
||||
OM = 'OM'
|
||||
PK = 'PK'
|
||||
PW = 'PW'
|
||||
PS = 'PS'
|
||||
PA = 'PA'
|
||||
PG = 'PG'
|
||||
PY = 'PY'
|
||||
PE = 'PE'
|
||||
PH = 'PH'
|
||||
PN = 'PN'
|
||||
PL = 'PL'
|
||||
PT = 'PT'
|
||||
PR = 'PR'
|
||||
QA = 'QA'
|
||||
RE = 'RE'
|
||||
RO = 'RO'
|
||||
RU = 'RU'
|
||||
RW = 'RW'
|
||||
BL = 'BL'
|
||||
SH = 'SH'
|
||||
KN = 'KN'
|
||||
LC = 'LC'
|
||||
MF = 'MF'
|
||||
PM = 'PM'
|
||||
VC = 'VC'
|
||||
WS = 'WS'
|
||||
SM = 'SM'
|
||||
ST = 'ST'
|
||||
SA = 'SA'
|
||||
SN = 'SN'
|
||||
RS = 'RS'
|
||||
SC = 'SC'
|
||||
SL = 'SL'
|
||||
SG = 'SG'
|
||||
SX = 'SX'
|
||||
SK = 'SK'
|
||||
SI = 'SI'
|
||||
SB = 'SB'
|
||||
SO = 'SO'
|
||||
ZA = 'ZA'
|
||||
GS = 'GS'
|
||||
SS = 'SS'
|
||||
ES = 'ES'
|
||||
LK = 'LK'
|
||||
SD = 'SD'
|
||||
SR = 'SR'
|
||||
SJ = 'SJ'
|
||||
SZ = 'SZ'
|
||||
SE = 'SE'
|
||||
CH = 'CH'
|
||||
SY = 'SY'
|
||||
TW = 'TW'
|
||||
TJ = 'TJ'
|
||||
TZ = 'TZ'
|
||||
TH = 'TH'
|
||||
TL = 'TL'
|
||||
TG = 'TG'
|
||||
TK = 'TK'
|
||||
TO = 'TO'
|
||||
TT = 'TT'
|
||||
TN = 'TN'
|
||||
TR = 'TR'
|
||||
TM = 'TM'
|
||||
TC = 'TC'
|
||||
TV = 'TV'
|
||||
UG = 'UG'
|
||||
UA = 'UA'
|
||||
AE = 'AE'
|
||||
GB = 'GB'
|
||||
US = 'US'
|
||||
UM = 'UM'
|
||||
UY = 'UY'
|
||||
UZ = 'UZ'
|
||||
VU = 'VU'
|
||||
VE = 'VE'
|
||||
VN = 'VN'
|
||||
VG = 'VG'
|
||||
VI = 'VI'
|
||||
WF = 'WF'
|
||||
EH = 'EH'
|
||||
YE = 'YE'
|
||||
ZM = 'ZM'
|
||||
ZW = 'ZW'
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
@ -20,7 +20,6 @@ class FileCenterOfMass:
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
material_density: Union[Unset, float] = UNSET
|
||||
src_format: Union[Unset, File3DImportFormat] = UNSET
|
||||
started_at: Union[Unset, datetime.datetime] = UNSET
|
||||
status: Union[Unset, ApiCallStatus] = UNSET
|
||||
@ -41,7 +40,6 @@ class FileCenterOfMass:
|
||||
created_at = self.created_at.isoformat()
|
||||
error = self.error
|
||||
id = self.id
|
||||
material_density = self.material_density
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
@ -69,8 +67,6 @@ class FileCenterOfMass:
|
||||
field_dict['error'] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
if material_density is not UNSET:
|
||||
field_dict['material_density'] = material_density
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
if started_at is not UNSET:
|
||||
@ -107,8 +103,6 @@ class FileCenterOfMass:
|
||||
|
||||
id = d.pop("id", UNSET)
|
||||
|
||||
material_density = d.pop("material_density", UNSET)
|
||||
|
||||
_src_format = d.pop("src_format", UNSET)
|
||||
src_format: Union[Unset, File3DImportFormat]
|
||||
if isinstance(_src_format, Unset):
|
||||
@ -145,7 +139,6 @@ class FileCenterOfMass:
|
||||
created_at=created_at,
|
||||
error=error,
|
||||
id=id,
|
||||
material_density=material_density,
|
||||
src_format=src_format,
|
||||
started_at=started_at,
|
||||
status=status,
|
||||
|
@ -1,166 +0,0 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.file3_d_import_format import File3DImportFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileCenterOfMassWithUniformDensity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileCenterOfMassWithUniformDensity:
|
||||
""" """
|
||||
center_of_mass: Union[Unset, List[float]] = UNSET
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
src_format: Union[Unset, File3DImportFormat] = UNSET
|
||||
started_at: Union[Unset, datetime.datetime] = UNSET
|
||||
status: Union[Unset, ApiCallStatus] = UNSET
|
||||
updated_at: Union[Unset, datetime.datetime] = UNSET
|
||||
user_id: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
center_of_mass: Union[Unset, List[float]] = UNSET
|
||||
if not isinstance(self.center_of_mass, Unset):
|
||||
center_of_mass = self.center_of_mass
|
||||
completed_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.completed_at, Unset):
|
||||
completed_at = self.completed_at.isoformat()
|
||||
created_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.created_at, Unset):
|
||||
created_at = self.created_at.isoformat()
|
||||
error = self.error
|
||||
id = self.id
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
user_id = self.user_id
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if center_of_mass is not UNSET:
|
||||
field_dict['center_of_mass'] = center_of_mass
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
center_of_mass = cast(List[float], d.pop("center_of_mass", UNSET))
|
||||
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
if isinstance(_completed_at, Unset):
|
||||
completed_at = UNSET
|
||||
else:
|
||||
completed_at = isoparse(_completed_at)
|
||||
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
if isinstance(_created_at, Unset):
|
||||
created_at = UNSET
|
||||
else:
|
||||
created_at = isoparse(_created_at)
|
||||
|
||||
error = d.pop("error", UNSET)
|
||||
|
||||
id = d.pop("id", UNSET)
|
||||
|
||||
_src_format = d.pop("src_format", UNSET)
|
||||
src_format: Union[Unset, File3DImportFormat]
|
||||
if isinstance(_src_format, Unset):
|
||||
src_format = UNSET
|
||||
else:
|
||||
src_format = File3DImportFormat(_src_format)
|
||||
|
||||
_started_at = d.pop("started_at", UNSET)
|
||||
started_at: Union[Unset, datetime.datetime]
|
||||
if isinstance(_started_at, Unset):
|
||||
started_at = UNSET
|
||||
else:
|
||||
started_at = isoparse(_started_at)
|
||||
|
||||
_status = d.pop("status", UNSET)
|
||||
status: Union[Unset, ApiCallStatus]
|
||||
if isinstance(_status, Unset):
|
||||
status = UNSET
|
||||
else:
|
||||
status = ApiCallStatus(_status)
|
||||
|
||||
_updated_at = d.pop("updated_at", UNSET)
|
||||
updated_at: Union[Unset, datetime.datetime]
|
||||
if isinstance(_updated_at, Unset):
|
||||
updated_at = UNSET
|
||||
else:
|
||||
updated_at = isoparse(_updated_at)
|
||||
|
||||
user_id = d.pop("user_id", UNSET)
|
||||
|
||||
file_center_of_mass_with_uniform_density = cls(
|
||||
center_of_mass=center_of_mass,
|
||||
completed_at=completed_at,
|
||||
created_at=created_at,
|
||||
error=error,
|
||||
id=id,
|
||||
src_format=src_format,
|
||||
started_at=started_at,
|
||||
status=status,
|
||||
updated_at=updated_at,
|
||||
user_id=user_id,
|
||||
)
|
||||
|
||||
file_center_of_mass_with_uniform_density.additional_properties = d
|
||||
return file_center_of_mass_with_uniform_density
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
@ -2,6 +2,7 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.country_code import CountryCode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="NewAddress")
|
||||
@ -11,7 +12,7 @@ T = TypeVar("T", bound="NewAddress")
|
||||
class NewAddress:
|
||||
""" """
|
||||
city: Union[Unset, str] = UNSET
|
||||
country: Union[Unset, str] = UNSET
|
||||
country: Union[Unset, CountryCode] = UNSET
|
||||
state: Union[Unset, str] = UNSET
|
||||
street1: Union[Unset, str] = UNSET
|
||||
street2: Union[Unset, str] = UNSET
|
||||
@ -22,7 +23,9 @@ class NewAddress:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
city = self.city
|
||||
country = self.country
|
||||
country: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.country, Unset):
|
||||
country = self.country.value
|
||||
state = self.state
|
||||
street1 = self.street1
|
||||
street2 = self.street2
|
||||
@ -54,7 +57,12 @@ class NewAddress:
|
||||
d = src_dict.copy()
|
||||
city = d.pop("city", UNSET)
|
||||
|
||||
country = d.pop("country", UNSET)
|
||||
_country = d.pop("country", UNSET)
|
||||
country: Union[Unset, CountryCode]
|
||||
if isinstance(_country, Unset):
|
||||
country = UNSET
|
||||
else:
|
||||
country = CountryCode(_country)
|
||||
|
||||
state = d.pop("state", UNSET)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "kittycad"
|
||||
version = "0.3.4"
|
||||
version = "0.3.5"
|
||||
description = "A client library for accessing KittyCAD"
|
||||
|
||||
authors = []
|
||||
@ -23,14 +23,14 @@ flake8 = "^5.0.4"
|
||||
pytest = "^7.0.1"
|
||||
sphinx-autodoc-typehints = "^1.12.0"
|
||||
pyenchant = "^3.2.2"
|
||||
sphinxcontrib-spelling = "^7.3.0"
|
||||
sphinxcontrib-spelling = "^8.0.0"
|
||||
toml = "^0.10.2"
|
||||
sphinx-rtd-theme = "^1.0.0"
|
||||
sphinx-automodapi = "^0.14"
|
||||
sphinx-automodapi = "^0.15"
|
||||
pytest-cov = "^4.0.0"
|
||||
pytest-asyncio = "^0.20.3"
|
||||
pytest-asyncio = "^0.21.0"
|
||||
openapi-parser = "^0.2.6"
|
||||
autopep8 = "^1.6.0"
|
||||
autopep8 = "^2.0.0"
|
||||
prance = "^0.22.11"
|
||||
openapi-spec-validator = "^0.4.0"
|
||||
jsonpatch = "^1.32"
|
||||
|
817
spec.json
817
spec.json
@ -21,6 +21,146 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"AiPluginApi": {
|
||||
"description": "AI plugin api information.",
|
||||
"properties": {
|
||||
"is_user_authenticated": {
|
||||
"default": false,
|
||||
"description": "If the API is authenticated.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"type": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/AiPluginApiType"
|
||||
}
|
||||
],
|
||||
"default": "openapi",
|
||||
"description": "The type of API."
|
||||
},
|
||||
"url": {
|
||||
"description": "The url to the API's schema.",
|
||||
"format": "uri",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"url"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AiPluginApiType": {
|
||||
"description": "AI plugin api type.",
|
||||
"enum": [
|
||||
"openapi"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"AiPluginAuth": {
|
||||
"description": "AI plugin auth information.",
|
||||
"properties": {
|
||||
"authorization_type": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/AiPluginHttpAuthType"
|
||||
}
|
||||
],
|
||||
"description": "The type of http authorization.",
|
||||
"nullable": true
|
||||
},
|
||||
"type": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/AiPluginAuthType"
|
||||
}
|
||||
],
|
||||
"default": "none",
|
||||
"description": "The type of authentication."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AiPluginAuthType": {
|
||||
"description": "AI plugin auth type.",
|
||||
"enum": [
|
||||
"none",
|
||||
"user_http",
|
||||
"service_http",
|
||||
"oauth"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"AiPluginHttpAuthType": {
|
||||
"description": "AI plugin http auth type.",
|
||||
"enum": [
|
||||
"basic",
|
||||
"bearer"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"AiPluginManifest": {
|
||||
"description": "AI plugin manifest.\n\nThis is used for OpenAI's ChatGPT plugins. You can read more about them [here](https://platform.openai.com/docs/plugins/getting-started/plugin-manifest).",
|
||||
"properties": {
|
||||
"api": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/AiPluginApi"
|
||||
}
|
||||
],
|
||||
"description": "API specification."
|
||||
},
|
||||
"auth": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/AiPluginAuth"
|
||||
}
|
||||
],
|
||||
"description": "Authentication schema."
|
||||
},
|
||||
"contact_email": {
|
||||
"description": "Email contact for safety/moderation reachout, support, and deactivation.",
|
||||
"format": "email",
|
||||
"type": "string"
|
||||
},
|
||||
"description_for_human": {
|
||||
"description": "Human-readable description of the plugin.",
|
||||
"type": "string"
|
||||
},
|
||||
"description_for_model": {
|
||||
"description": "Description better tailored to the model, such as token context length considerations or keyword usage for improved plugin prompting.",
|
||||
"type": "string"
|
||||
},
|
||||
"legal_info_url": {
|
||||
"description": "Redirect URL for users to view plugin information.",
|
||||
"format": "uri",
|
||||
"type": "string"
|
||||
},
|
||||
"logo_url": {
|
||||
"description": "URL used to fetch the plugin's logo.",
|
||||
"format": "uri",
|
||||
"type": "string"
|
||||
},
|
||||
"name_for_human": {
|
||||
"description": "Human-readable name, such as the full company name.",
|
||||
"type": "string"
|
||||
},
|
||||
"name_for_model": {
|
||||
"description": "Name the model will used to target the plugin.",
|
||||
"type": "string"
|
||||
},
|
||||
"schema_version": {
|
||||
"description": "Manifest schema version.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"api",
|
||||
"auth",
|
||||
"legal_info_url",
|
||||
"logo_url"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ApiCallQueryGroup": {
|
||||
"description": "A response for a query on the API call table that is grouped by something.",
|
||||
"properties": {
|
||||
@ -709,12 +849,6 @@
|
||||
],
|
||||
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
||||
},
|
||||
"material_density": {
|
||||
"default": 0.0,
|
||||
"description": "The material density as denoted by the user.",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
},
|
||||
"src_format": {
|
||||
"allOf": [
|
||||
{
|
||||
@ -765,94 +899,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "File center of mass.",
|
||||
"properties": {
|
||||
"center_of_mass": {
|
||||
"description": "The resulting center of mass.",
|
||||
"items": {
|
||||
"format": "double",
|
||||
"type": "number"
|
||||
},
|
||||
"nullable": true,
|
||||
"type": "array"
|
||||
},
|
||||
"completed_at": {
|
||||
"description": "The time and date the API call was completed.",
|
||||
"format": "date-time",
|
||||
"nullable": true,
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"description": "The time and date the API call was created.",
|
||||
"format": "date-time",
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"description": "The error the function returned, if any.",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Uuid"
|
||||
}
|
||||
],
|
||||
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
||||
},
|
||||
"src_format": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/File3DImportFormat"
|
||||
}
|
||||
],
|
||||
"description": "The source format of the file."
|
||||
},
|
||||
"started_at": {
|
||||
"description": "The time and date the API call was started.",
|
||||
"format": "date-time",
|
||||
"nullable": true,
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ApiCallStatus"
|
||||
}
|
||||
],
|
||||
"description": "The status of the API call."
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"FileCenterOfMassWithUniformDensity"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"description": "The time and date the API call was last updated.",
|
||||
"format": "date-time",
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"description": "The user ID of the user who created the API call.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"created_at",
|
||||
"id",
|
||||
"src_format",
|
||||
"status",
|
||||
"type",
|
||||
"updated_at"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "A file mass.",
|
||||
"properties": {
|
||||
@ -1236,7 +1282,6 @@
|
||||
"File3DConversion",
|
||||
"FileVolume",
|
||||
"FileCenterOfMass",
|
||||
"FileCenterOfMassWithUniformDensity",
|
||||
"FileMass",
|
||||
"FileDensity",
|
||||
"FileSurfaceArea"
|
||||
@ -1747,6 +1792,261 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"CountryCode": {
|
||||
"description": "An enumeration of all ISO-3166 alpha-2 country codes.",
|
||||
"enum": [
|
||||
"AF",
|
||||
"AX",
|
||||
"AL",
|
||||
"DZ",
|
||||
"AS",
|
||||
"AD",
|
||||
"AO",
|
||||
"AI",
|
||||
"AQ",
|
||||
"AG",
|
||||
"AR",
|
||||
"AM",
|
||||
"AW",
|
||||
"AU",
|
||||
"AT",
|
||||
"AZ",
|
||||
"BS",
|
||||
"BH",
|
||||
"BD",
|
||||
"BB",
|
||||
"BY",
|
||||
"BE",
|
||||
"BZ",
|
||||
"BJ",
|
||||
"BM",
|
||||
"BT",
|
||||
"BO",
|
||||
"BQ",
|
||||
"BA",
|
||||
"BW",
|
||||
"BV",
|
||||
"BR",
|
||||
"IO",
|
||||
"BN",
|
||||
"BG",
|
||||
"BF",
|
||||
"BI",
|
||||
"CV",
|
||||
"KH",
|
||||
"CM",
|
||||
"CA",
|
||||
"KY",
|
||||
"CF",
|
||||
"TD",
|
||||
"CL",
|
||||
"CN",
|
||||
"CX",
|
||||
"CC",
|
||||
"CO",
|
||||
"KM",
|
||||
"CG",
|
||||
"CD",
|
||||
"CK",
|
||||
"CR",
|
||||
"CI",
|
||||
"HR",
|
||||
"CU",
|
||||
"CW",
|
||||
"CY",
|
||||
"CZ",
|
||||
"DK",
|
||||
"DJ",
|
||||
"DM",
|
||||
"DO",
|
||||
"EC",
|
||||
"EG",
|
||||
"SV",
|
||||
"GQ",
|
||||
"ER",
|
||||
"EE",
|
||||
"ET",
|
||||
"FK",
|
||||
"FO",
|
||||
"FJ",
|
||||
"FI",
|
||||
"FR",
|
||||
"GF",
|
||||
"PF",
|
||||
"TF",
|
||||
"GA",
|
||||
"GM",
|
||||
"GE",
|
||||
"DE",
|
||||
"GH",
|
||||
"GI",
|
||||
"GR",
|
||||
"GL",
|
||||
"GD",
|
||||
"GP",
|
||||
"GU",
|
||||
"GT",
|
||||
"GG",
|
||||
"GN",
|
||||
"GW",
|
||||
"GY",
|
||||
"HT",
|
||||
"HM",
|
||||
"VA",
|
||||
"HN",
|
||||
"HK",
|
||||
"HU",
|
||||
"IS",
|
||||
"IN",
|
||||
"ID",
|
||||
"IR",
|
||||
"IQ",
|
||||
"IE",
|
||||
"IM",
|
||||
"IL",
|
||||
"IT",
|
||||
"JM",
|
||||
"JP",
|
||||
"JE",
|
||||
"JO",
|
||||
"KZ",
|
||||
"KE",
|
||||
"KI",
|
||||
"KP",
|
||||
"KR",
|
||||
"KW",
|
||||
"KG",
|
||||
"LA",
|
||||
"LV",
|
||||
"LB",
|
||||
"LS",
|
||||
"LR",
|
||||
"LY",
|
||||
"LI",
|
||||
"LT",
|
||||
"LU",
|
||||
"MO",
|
||||
"MK",
|
||||
"MG",
|
||||
"MW",
|
||||
"MY",
|
||||
"MV",
|
||||
"ML",
|
||||
"MT",
|
||||
"MH",
|
||||
"MQ",
|
||||
"MR",
|
||||
"MU",
|
||||
"YT",
|
||||
"MX",
|
||||
"FM",
|
||||
"MD",
|
||||
"MC",
|
||||
"MN",
|
||||
"ME",
|
||||
"MS",
|
||||
"MA",
|
||||
"MZ",
|
||||
"MM",
|
||||
"NA",
|
||||
"NR",
|
||||
"NP",
|
||||
"NL",
|
||||
"NC",
|
||||
"NZ",
|
||||
"NI",
|
||||
"NE",
|
||||
"NG",
|
||||
"NU",
|
||||
"NF",
|
||||
"MP",
|
||||
"NO",
|
||||
"OM",
|
||||
"PK",
|
||||
"PW",
|
||||
"PS",
|
||||
"PA",
|
||||
"PG",
|
||||
"PY",
|
||||
"PE",
|
||||
"PH",
|
||||
"PN",
|
||||
"PL",
|
||||
"PT",
|
||||
"PR",
|
||||
"QA",
|
||||
"RE",
|
||||
"RO",
|
||||
"RU",
|
||||
"RW",
|
||||
"BL",
|
||||
"SH",
|
||||
"KN",
|
||||
"LC",
|
||||
"MF",
|
||||
"PM",
|
||||
"VC",
|
||||
"WS",
|
||||
"SM",
|
||||
"ST",
|
||||
"SA",
|
||||
"SN",
|
||||
"RS",
|
||||
"SC",
|
||||
"SL",
|
||||
"SG",
|
||||
"SX",
|
||||
"SK",
|
||||
"SI",
|
||||
"SB",
|
||||
"SO",
|
||||
"ZA",
|
||||
"GS",
|
||||
"SS",
|
||||
"ES",
|
||||
"LK",
|
||||
"SD",
|
||||
"SR",
|
||||
"SJ",
|
||||
"SZ",
|
||||
"SE",
|
||||
"CH",
|
||||
"SY",
|
||||
"TW",
|
||||
"TJ",
|
||||
"TZ",
|
||||
"TH",
|
||||
"TL",
|
||||
"TG",
|
||||
"TK",
|
||||
"TO",
|
||||
"TT",
|
||||
"TN",
|
||||
"TR",
|
||||
"TM",
|
||||
"TC",
|
||||
"TV",
|
||||
"UG",
|
||||
"UA",
|
||||
"AE",
|
||||
"GB",
|
||||
"US",
|
||||
"UM",
|
||||
"UY",
|
||||
"UZ",
|
||||
"VU",
|
||||
"VE",
|
||||
"VN",
|
||||
"VG",
|
||||
"VI",
|
||||
"WF",
|
||||
"EH",
|
||||
"YE",
|
||||
"ZM",
|
||||
"ZW"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"CreatedAtSortMode": {
|
||||
"description": "Supported set of sort modes for scanning by created_at only.\n\nCurrently, we only support scanning in ascending order.",
|
||||
"enum": [
|
||||
@ -1756,7 +2056,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"Currency": {
|
||||
"description": "Currency is the list of supported currencies.\n\nFor more details see <https://support.stripe.com/questions/which-currencies-does-stripe-support>.",
|
||||
"description": "Currency is the list of supported currencies.\n\nThis comes from the Stripe API docs: For more details see <https://support.stripe.com/questions/which-currencies-does-stripe-support>.",
|
||||
"enum": [
|
||||
"aed",
|
||||
"afn",
|
||||
@ -1930,6 +2230,7 @@
|
||||
"$ref": "#/components/schemas/Currency"
|
||||
}
|
||||
],
|
||||
"default": "usd",
|
||||
"description": "Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes."
|
||||
},
|
||||
"delinquent": {
|
||||
@ -1967,8 +2268,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"created_at",
|
||||
"currency"
|
||||
"created_at"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
@ -2917,93 +3217,6 @@
|
||||
"type": "string"
|
||||
},
|
||||
"FileCenterOfMass": {
|
||||
"description": "A file center of mass result.",
|
||||
"properties": {
|
||||
"center_of_mass": {
|
||||
"description": "The resulting center of mass.",
|
||||
"items": {
|
||||
"format": "double",
|
||||
"type": "number"
|
||||
},
|
||||
"nullable": true,
|
||||
"type": "array"
|
||||
},
|
||||
"completed_at": {
|
||||
"description": "The time and date the API call was completed.",
|
||||
"format": "date-time",
|
||||
"nullable": true,
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"description": "The time and date the API call was created.",
|
||||
"format": "date-time",
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"description": "The error the function returned, if any.",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Uuid"
|
||||
}
|
||||
],
|
||||
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
||||
},
|
||||
"material_density": {
|
||||
"default": 0.0,
|
||||
"description": "The material density as denoted by the user.",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
},
|
||||
"src_format": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/File3DImportFormat"
|
||||
}
|
||||
],
|
||||
"description": "The source format of the file."
|
||||
},
|
||||
"started_at": {
|
||||
"description": "The time and date the API call was started.",
|
||||
"format": "date-time",
|
||||
"nullable": true,
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ApiCallStatus"
|
||||
}
|
||||
],
|
||||
"description": "The status of the API call."
|
||||
},
|
||||
"updated_at": {
|
||||
"description": "The time and date the API call was last updated.",
|
||||
"format": "date-time",
|
||||
"title": "DateTime",
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"description": "The user ID of the user who created the API call.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"created_at",
|
||||
"id",
|
||||
"src_format",
|
||||
"status",
|
||||
"updated_at"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"FileCenterOfMassWithUniformDensity": {
|
||||
"description": "A file center of mass result.",
|
||||
"properties": {
|
||||
"center_of_mass": {
|
||||
@ -3659,6 +3872,7 @@
|
||||
"$ref": "#/components/schemas/Currency"
|
||||
}
|
||||
],
|
||||
"default": "usd",
|
||||
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase."
|
||||
},
|
||||
"customer_email": {
|
||||
@ -3758,8 +3972,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"created_at",
|
||||
"currency"
|
||||
"created_at"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
@ -3779,6 +3992,7 @@
|
||||
"$ref": "#/components/schemas/Currency"
|
||||
}
|
||||
],
|
||||
"default": "usd",
|
||||
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase."
|
||||
},
|
||||
"description": {
|
||||
@ -3802,9 +4016,6 @@
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"currency"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"InvoiceStatus": {
|
||||
@ -4142,8 +4353,12 @@
|
||||
"type": "string"
|
||||
},
|
||||
"country": {
|
||||
"description": "The country component.",
|
||||
"type": "string"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CountryCode"
|
||||
}
|
||||
],
|
||||
"description": "The country component. This is a two-letter ISO country code."
|
||||
},
|
||||
"state": {
|
||||
"description": "The state component.",
|
||||
@ -4166,6 +4381,9 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"country"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"OAuth2ClientInfo": {
|
||||
@ -7928,6 +8146,67 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/.well-known/ai-plugin.json": {
|
||||
"get": {
|
||||
"operationId": "get_ai_plugin_manifest",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AiPluginManifest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "successful operation",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Credentials": {
|
||||
"description": "Access-Control-Allow-Credentials header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Headers": {
|
||||
"description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Methods": {
|
||||
"description": "Access-Control-Allow-Methods header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Origin": {
|
||||
"description": "Access-Control-Allow-Origin header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
}
|
||||
}
|
||||
},
|
||||
"4XX": {
|
||||
"$ref": "#/components/responses/Error"
|
||||
},
|
||||
"5XX": {
|
||||
"$ref": "#/components/responses/Error"
|
||||
}
|
||||
},
|
||||
"summary": "Get AI plugin manifest.",
|
||||
"tags": [
|
||||
"meta"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/_meta/info": {
|
||||
"get": {
|
||||
"description": "This includes information on any of our other distributed systems it is connected to.\nYou must be a KittyCAD employee to perform this request.",
|
||||
@ -9280,20 +9559,9 @@
|
||||
},
|
||||
"/file/center-of-mass": {
|
||||
"post": {
|
||||
"description": "Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.\nDoes the same as the `center_of_mass_with_uniform_density` endpoint; except, this has a redundant `material_density value`. Kept for legacy in this version.\nIf the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.",
|
||||
"description": "Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.\nIf the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.",
|
||||
"operationId": "create_file_center_of_mass",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "The material density.",
|
||||
"in": "query",
|
||||
"name": "material_density",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
},
|
||||
"style": "form"
|
||||
},
|
||||
{
|
||||
"description": "The format of the file.",
|
||||
"in": "query",
|
||||
@ -9375,92 +9643,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/file/center-of-mass-with-uniform-density": {
|
||||
"post": {
|
||||
"description": "Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.\nIf the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.",
|
||||
"operationId": "create_file_center_of_mass_with_uniform_density",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "The format of the file.",
|
||||
"in": "query",
|
||||
"name": "src_format",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/File3DImportFormat"
|
||||
},
|
||||
"style": "form"
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/octet-stream": {
|
||||
"schema": {
|
||||
"format": "binary",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"201": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/FileCenterOfMassWithUniformDensity"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "successful creation",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Credentials": {
|
||||
"description": "Access-Control-Allow-Credentials header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Headers": {
|
||||
"description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Methods": {
|
||||
"description": "Access-Control-Allow-Methods header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Origin": {
|
||||
"description": "Access-Control-Allow-Origin header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
}
|
||||
}
|
||||
},
|
||||
"4XX": {
|
||||
"$ref": "#/components/responses/Error"
|
||||
},
|
||||
"5XX": {
|
||||
"$ref": "#/components/responses/Error"
|
||||
}
|
||||
},
|
||||
"summary": "Get CAD file center of mass.",
|
||||
"tags": [
|
||||
"file",
|
||||
"beta"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/file/conversion/{src_format}/{output_format}": {
|
||||
"post": {
|
||||
"description": "Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously.\nIf the conversion is performed synchronously, the contents of the converted file (`output`) will be returned as a base64 encoded string.\nIf the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.",
|
||||
@ -15155,6 +15337,61 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/payment/tax": {
|
||||
"get": {
|
||||
"description": "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.",
|
||||
"operationId": "validate_customer_tax_information_for_user",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "successful operation, no content",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Credentials": {
|
||||
"description": "Access-Control-Allow-Credentials header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Headers": {
|
||||
"description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Methods": {
|
||||
"description": "Access-Control-Allow-Methods header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
},
|
||||
"Access-Control-Allow-Origin": {
|
||||
"description": "Access-Control-Allow-Origin header.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": "simple"
|
||||
}
|
||||
}
|
||||
},
|
||||
"4XX": {
|
||||
"$ref": "#/components/responses/Error"
|
||||
},
|
||||
"5XX": {
|
||||
"$ref": "#/components/responses/Error"
|
||||
}
|
||||
},
|
||||
"summary": "Validate a customer's information is correct and valid for automatic tax.",
|
||||
"tags": [
|
||||
"payments"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/session/{token}": {
|
||||
"get": {
|
||||
"description": "This endpoint requires authentication by any KittyCAD user. It returns details of the requested API token for the user.",
|
||||
|
Reference in New Issue
Block a user