fix for regular spec
Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
@ -309,8 +309,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
# We want to parse each of the possible types.
|
# We want to parse each of the possible types.
|
||||||
f.write("\t\tdata = response.json()\n")
|
f.write("\t\tdata = response.json()\n")
|
||||||
for index, one_of in enumerate(schema['oneOf']):
|
for index, one_of in enumerate(schema['oneOf']):
|
||||||
ref = one_of['$ref'].replace(
|
ref = getOneOfRefType(one_of)
|
||||||
'#/components/schemas/', '')
|
|
||||||
f.write("\t\ttry:\n")
|
f.write("\t\ttry:\n")
|
||||||
f.write(
|
f.write(
|
||||||
"\t\t\tif not isinstance(data, dict):\n")
|
"\t\t\tif not isinstance(data, dict):\n")
|
||||||
@ -660,25 +659,14 @@ def generateType(path: str, name: str, schema: dict, data: dict):
|
|||||||
# Skip it since we will already have generated it.
|
# Skip it since we will already have generated it.
|
||||||
return
|
return
|
||||||
elif 'oneOf' in schema:
|
elif 'oneOf' in schema:
|
||||||
generateOneOfType(file_path, name, schema, data)
|
# Skip it since we will already have generated it.
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
print(" schema: ", [schema])
|
print(" schema: ", [schema])
|
||||||
print(" unsupported type: ", name)
|
print(" unsupported type: ", name)
|
||||||
raise Exception(" unsupported type: ", name)
|
raise Exception(" unsupported type: ", name)
|
||||||
|
|
||||||
|
|
||||||
def generateOneOfType(path: str, name: str, schema: dict, data):
|
|
||||||
for t in schema['oneOf']:
|
|
||||||
# Get the name for the reference.
|
|
||||||
if '$ref' in t:
|
|
||||||
name = t['$ref'].replace('#/components/schemas/', '')
|
|
||||||
generateType(path, name, t, data)
|
|
||||||
else:
|
|
||||||
print(" schema: ", [t])
|
|
||||||
print(" oneOf must be a ref: ", name)
|
|
||||||
raise Exception(" oneOf must be a ref ", name)
|
|
||||||
|
|
||||||
|
|
||||||
def generateStringType(path: str, name: str, schema: dict, type_name: str):
|
def generateStringType(path: str, name: str, schema: dict, type_name: str):
|
||||||
print("generating type: ", name, " at: ", path)
|
print("generating type: ", name, " at: ", path)
|
||||||
print(" schema: ", [schema])
|
print(" schema: ", [schema])
|
||||||
@ -1370,8 +1358,7 @@ def getEndpointRefs(endpoint: dict, data: dict) -> [str]:
|
|||||||
schema = data['components']['schemas'][ref]
|
schema = data['components']['schemas'][ref]
|
||||||
if 'oneOf' in schema:
|
if 'oneOf' in schema:
|
||||||
for t in schema['oneOf']:
|
for t in schema['oneOf']:
|
||||||
ref = t['$ref'].replace(
|
ref = getOneOfRefType(t)
|
||||||
'#/components/schemas/', '')
|
|
||||||
if ref not in refs:
|
if ref not in refs:
|
||||||
refs.append(ref)
|
refs.append(ref)
|
||||||
else:
|
else:
|
||||||
@ -1509,6 +1496,14 @@ def get_function_parameters(endpoint: dict, request_body_type: bool) -> [str]:
|
|||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
|
def getOneOfRefType(schema: dict) -> str:
|
||||||
|
if 'type' in schema['properties']:
|
||||||
|
t = schema['properties']['type']['enum'][0]
|
||||||
|
return t
|
||||||
|
|
||||||
|
raise Exception("Cannot get oneOf ref type for schema: ", schema)
|
||||||
|
|
||||||
|
|
||||||
if (__name__ == '__main__'):
|
if (__name__ == '__main__'):
|
||||||
exit_code = main()
|
exit_code = main()
|
||||||
exit(exit_code)
|
exit(exit_code)
|
||||||
|
@ -5,8 +5,8 @@ import httpx
|
|||||||
from ...client import Client
|
from ...client import Client
|
||||||
from ...models.file_conversion import FileConversion
|
from ...models.file_conversion import FileConversion
|
||||||
from ...models.file_mass import FileMass
|
from ...models.file_mass import FileMass
|
||||||
from ...models.file_density import FileDensity
|
|
||||||
from ...models.file_volume import FileVolume
|
from ...models.file_volume import FileVolume
|
||||||
|
from ...models.file_density import FileDensity
|
||||||
from ...models.error import Error
|
from ...models.error import Error
|
||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ def _get_kwargs(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
data = response.json()
|
data = response.json()
|
||||||
try:
|
try:
|
||||||
@ -48,14 +48,14 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
try:
|
try:
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
raise TypeError()
|
raise TypeError()
|
||||||
option = FileDensity.from_dict(data)
|
option = FileVolume.from_dict(data)
|
||||||
return option
|
return option
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
raise TypeError()
|
raise TypeError()
|
||||||
option = FileVolume.from_dict(data)
|
option = FileDensity.from_dict(data)
|
||||||
return option
|
return option
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
@ -68,7 +68,7 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
return Response(
|
return Response(
|
||||||
status_code=response.status_code,
|
status_code=response.status_code,
|
||||||
content=response.content,
|
content=response.content,
|
||||||
@ -81,7 +81,7 @@ def sync_detailed(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
id=id,
|
id=id,
|
||||||
client=client,
|
client=client,
|
||||||
@ -99,7 +99,7 @@ def sync(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
""" 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 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.
|
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||||
@ -115,7 +115,7 @@ async def asyncio_detailed(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
id=id,
|
id=id,
|
||||||
client=client,
|
client=client,
|
||||||
@ -131,7 +131,7 @@ async def asyncio(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
""" 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 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.
|
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||||
|
@ -5,8 +5,8 @@ import httpx
|
|||||||
from ...client import Client
|
from ...client import Client
|
||||||
from ...models.file_conversion import FileConversion
|
from ...models.file_conversion import FileConversion
|
||||||
from ...models.file_mass import FileMass
|
from ...models.file_mass import FileMass
|
||||||
from ...models.file_density import FileDensity
|
|
||||||
from ...models.file_volume import FileVolume
|
from ...models.file_volume import FileVolume
|
||||||
|
from ...models.file_density import FileDensity
|
||||||
from ...models.error import Error
|
from ...models.error import Error
|
||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ def _get_kwargs(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
data = response.json()
|
data = response.json()
|
||||||
try:
|
try:
|
||||||
@ -48,14 +48,14 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
try:
|
try:
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
raise TypeError()
|
raise TypeError()
|
||||||
option = FileDensity.from_dict(data)
|
option = FileVolume.from_dict(data)
|
||||||
return option
|
return option
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
raise TypeError()
|
raise TypeError()
|
||||||
option = FileVolume.from_dict(data)
|
option = FileDensity.from_dict(data)
|
||||||
return option
|
return option
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
@ -68,7 +68,7 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
return Response(
|
return Response(
|
||||||
status_code=response.status_code,
|
status_code=response.status_code,
|
||||||
content=response.content,
|
content=response.content,
|
||||||
@ -81,7 +81,7 @@ def sync_detailed(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
id=id,
|
id=id,
|
||||||
client=client,
|
client=client,
|
||||||
@ -99,7 +99,7 @@ def sync(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
""" Get the status and output of an async file conversion.
|
""" 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.
|
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.
|
If the user is not authenticated to view the specified file conversion, then it is not returned.
|
||||||
@ -115,7 +115,7 @@ async def asyncio_detailed(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
id=id,
|
id=id,
|
||||||
client=client,
|
client=client,
|
||||||
@ -131,7 +131,7 @@ async def asyncio(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
""" Get the status and output of an async file conversion.
|
""" 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.
|
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.
|
If the user is not authenticated to view the specified file conversion, then it is not returned.
|
||||||
|
@ -5,8 +5,8 @@ import httpx
|
|||||||
from ...client import Client
|
from ...client import Client
|
||||||
from ...models.file_conversion import FileConversion
|
from ...models.file_conversion import FileConversion
|
||||||
from ...models.file_mass import FileMass
|
from ...models.file_mass import FileMass
|
||||||
from ...models.file_density import FileDensity
|
|
||||||
from ...models.file_volume import FileVolume
|
from ...models.file_volume import FileVolume
|
||||||
|
from ...models.file_density import FileDensity
|
||||||
from ...models.error import Error
|
from ...models.error import Error
|
||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ def _get_kwargs(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
data = response.json()
|
data = response.json()
|
||||||
try:
|
try:
|
||||||
@ -48,14 +48,14 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
try:
|
try:
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
raise TypeError()
|
raise TypeError()
|
||||||
option = FileDensity.from_dict(data)
|
option = FileVolume.from_dict(data)
|
||||||
return option
|
return option
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
raise TypeError()
|
raise TypeError()
|
||||||
option = FileVolume.from_dict(data)
|
option = FileDensity.from_dict(data)
|
||||||
return option
|
return option
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
@ -68,7 +68,7 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
def _build_response(*, response: httpx.Response) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
return Response(
|
return Response(
|
||||||
status_code=response.status_code,
|
status_code=response.status_code,
|
||||||
content=response.content,
|
content=response.content,
|
||||||
@ -81,7 +81,7 @@ def sync_detailed(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
id=id,
|
id=id,
|
||||||
client=client,
|
client=client,
|
||||||
@ -99,7 +99,7 @@ def sync(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, 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.
|
""" 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. """
|
This endpoint requires authentication by any KittyCAD user. It returns details of the requested file conversion for the user. """
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ async def asyncio_detailed(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Response[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Response[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, Error]]:
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
id=id,
|
id=id,
|
||||||
client=client,
|
client=client,
|
||||||
@ -129,7 +129,7 @@ async def asyncio(
|
|||||||
id: str,
|
id: str,
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Any, FileConversion, FileMass, FileDensity, FileVolume, Error]]:
|
) -> Optional[Union[Any, FileConversion, FileMass, FileVolume, FileDensity, 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.
|
""" 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. """
|
This endpoint requires authentication by any KittyCAD user. It returns details of the requested file conversion for the user. """
|
||||||
|
|
||||||
|
430
spec.json
430
spec.json
@ -473,32 +473,400 @@
|
|||||||
"description": "The output from the async API call.",
|
"description": "The output from the async API call.",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FileConversion",
|
"description": "A file conversion.",
|
||||||
"x-scope": [
|
"properties": {
|
||||||
"",
|
"completed_at": {
|
||||||
"#/components/schemas/AsyncApiCallOutput"
|
"description": "The time and date the file conversion was completed.",
|
||||||
]
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"description": "The time and date the file conversion was created.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"description": "The error the function returned, if any.",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Uuid",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The unique identifier of the file conversion.\n\nThis is the same as the API call ID."
|
||||||
|
},
|
||||||
|
"output": {
|
||||||
|
"description": "The converted file, if completed, base64 encoded.",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"output_format": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/FileOutputFormat",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The output format of the file conversion."
|
||||||
|
},
|
||||||
|
"src_format": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The source format of the file conversion."
|
||||||
|
},
|
||||||
|
"started_at": {
|
||||||
|
"description": "The time and date the file conversion was started.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The status of the file conversion."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"enum": [
|
||||||
|
"FileConversion"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"description": "The time and date the file conversion was last updated.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user_id": {
|
||||||
|
"description": "The user ID of the user who created the file conversion.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"created_at",
|
||||||
|
"id",
|
||||||
|
"output_format",
|
||||||
|
"src_format",
|
||||||
|
"status",
|
||||||
|
"type",
|
||||||
|
"updated_at"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FileMass",
|
"description": "A file mass.",
|
||||||
"x-scope": [
|
"properties": {
|
||||||
"",
|
"completed_at": {
|
||||||
"#/components/schemas/AsyncApiCallOutput"
|
"description": "The time and date the mass was completed.",
|
||||||
]
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"description": "The time and date the mass was created.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"description": "The error the function returned, if any.",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Uuid",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The unique identifier of the mass request.\n\nThis is the same as the API call ID."
|
||||||
|
},
|
||||||
|
"mass": {
|
||||||
|
"description": "The resulting mass.",
|
||||||
|
"format": "double",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"material_density": {
|
||||||
|
"default": 0,
|
||||||
|
"description": "The material density as denoted by the user.",
|
||||||
|
"format": "float",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"src_format": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The source format of the file."
|
||||||
|
},
|
||||||
|
"started_at": {
|
||||||
|
"description": "The time and date the mass was started.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The status of the mass."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"enum": [
|
||||||
|
"FileMass"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"description": "The time and date the mass was last updated.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user_id": {
|
||||||
|
"description": "The user ID of the user who created the mass.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"created_at",
|
||||||
|
"id",
|
||||||
|
"src_format",
|
||||||
|
"status",
|
||||||
|
"type",
|
||||||
|
"updated_at"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FileDensity",
|
"description": "A file volume.",
|
||||||
"x-scope": [
|
"properties": {
|
||||||
"",
|
"completed_at": {
|
||||||
"#/components/schemas/AsyncApiCallOutput"
|
"description": "The time and date the volume was completed.",
|
||||||
]
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"description": "The time and date the volume was created.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"description": "The error the function returned, if any.",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Uuid",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The unique identifier of the volume request.\n\nThis is the same as the API call ID."
|
||||||
|
},
|
||||||
|
"src_format": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The source format of the file."
|
||||||
|
},
|
||||||
|
"started_at": {
|
||||||
|
"description": "The time and date the volume was started.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The status of the volume."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"enum": [
|
||||||
|
"FileVolume"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"description": "The time and date the volume was last updated.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user_id": {
|
||||||
|
"description": "The user ID of the user who created the volume.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"volume": {
|
||||||
|
"description": "The resulting volume.",
|
||||||
|
"format": "double",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"created_at",
|
||||||
|
"id",
|
||||||
|
"src_format",
|
||||||
|
"status",
|
||||||
|
"type",
|
||||||
|
"updated_at"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FileVolume",
|
"description": "A file density.",
|
||||||
"x-scope": [
|
"properties": {
|
||||||
"",
|
"completed_at": {
|
||||||
"#/components/schemas/AsyncApiCallOutput"
|
"description": "The time and date the density was completed.",
|
||||||
]
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"description": "The time and date the density was created.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"density": {
|
||||||
|
"description": "The resulting density.",
|
||||||
|
"format": "double",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"description": "The error the function returned, if any.",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Uuid",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The unique identifier of the density request.\n\nThis is the same as the API call ID."
|
||||||
|
},
|
||||||
|
"material_mass": {
|
||||||
|
"default": 0,
|
||||||
|
"description": "The material mass as denoted by the user.",
|
||||||
|
"format": "float",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"src_format": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The source format of the file."
|
||||||
|
},
|
||||||
|
"started_at": {
|
||||||
|
"description": "The time and date the density was started.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
|
"x-scope": [
|
||||||
|
"",
|
||||||
|
"#/components/schemas/AsyncApiCallOutput"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The status of the density."
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"enum": [
|
||||||
|
"FileDensity"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"description": "The time and date the density was last updated.",
|
||||||
|
"format": "partial-date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user_id": {
|
||||||
|
"description": "The user ID of the user who created the density.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"created_at",
|
||||||
|
"id",
|
||||||
|
"src_format",
|
||||||
|
"status",
|
||||||
|
"type",
|
||||||
|
"updated_at"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -727,7 +1095,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection"
|
"#/components/schemas/Connection"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -769,7 +1136,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection"
|
"#/components/schemas/Connection"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -861,7 +1227,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection"
|
"#/components/schemas/Connection"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -901,7 +1266,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection"
|
"#/components/schemas/Connection"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1010,7 +1374,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection"
|
"#/components/schemas/Connection"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1574,7 +1937,6 @@
|
|||||||
"$ref": "#/components/schemas/Uuid",
|
"$ref": "#/components/schemas/Uuid",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileConversion"
|
"#/components/schemas/FileConversion"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1592,7 +1954,6 @@
|
|||||||
"$ref": "#/components/schemas/FileOutputFormat",
|
"$ref": "#/components/schemas/FileOutputFormat",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileConversion"
|
"#/components/schemas/FileConversion"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1605,7 +1966,6 @@
|
|||||||
"$ref": "#/components/schemas/FileSourceFormat",
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileConversion"
|
"#/components/schemas/FileConversion"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1624,7 +1984,6 @@
|
|||||||
"$ref": "#/components/schemas/APICallStatus",
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileConversion"
|
"#/components/schemas/FileConversion"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1682,7 +2041,6 @@
|
|||||||
"$ref": "#/components/schemas/Uuid",
|
"$ref": "#/components/schemas/Uuid",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileDensity"
|
"#/components/schemas/FileDensity"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1701,7 +2059,6 @@
|
|||||||
"$ref": "#/components/schemas/FileSourceFormat",
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileDensity"
|
"#/components/schemas/FileDensity"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1720,7 +2077,6 @@
|
|||||||
"$ref": "#/components/schemas/APICallStatus",
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileDensity"
|
"#/components/schemas/FileDensity"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1771,7 +2127,6 @@
|
|||||||
"$ref": "#/components/schemas/Uuid",
|
"$ref": "#/components/schemas/Uuid",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileMass"
|
"#/components/schemas/FileMass"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1796,7 +2151,6 @@
|
|||||||
"$ref": "#/components/schemas/FileSourceFormat",
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileMass"
|
"#/components/schemas/FileMass"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1815,7 +2169,6 @@
|
|||||||
"$ref": "#/components/schemas/APICallStatus",
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileMass"
|
"#/components/schemas/FileMass"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1902,7 +2255,6 @@
|
|||||||
"$ref": "#/components/schemas/Uuid",
|
"$ref": "#/components/schemas/Uuid",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileVolume"
|
"#/components/schemas/FileVolume"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1915,7 +2267,6 @@
|
|||||||
"$ref": "#/components/schemas/FileSourceFormat",
|
"$ref": "#/components/schemas/FileSourceFormat",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileVolume"
|
"#/components/schemas/FileVolume"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1934,7 +2285,6 @@
|
|||||||
"$ref": "#/components/schemas/APICallStatus",
|
"$ref": "#/components/schemas/APICallStatus",
|
||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/AsyncApiCallOutput",
|
|
||||||
"#/components/schemas/FileVolume"
|
"#/components/schemas/FileVolume"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -2210,7 +2560,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection",
|
"#/components/schemas/Connection",
|
||||||
"#/components/schemas/Jetstream"
|
"#/components/schemas/Jetstream"
|
||||||
]
|
]
|
||||||
@ -2231,7 +2580,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection",
|
"#/components/schemas/Connection",
|
||||||
"#/components/schemas/Jetstream"
|
"#/components/schemas/Jetstream"
|
||||||
]
|
]
|
||||||
@ -2251,7 +2599,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection",
|
"#/components/schemas/Connection",
|
||||||
"#/components/schemas/Jetstream"
|
"#/components/schemas/Jetstream"
|
||||||
]
|
]
|
||||||
@ -2343,7 +2690,6 @@
|
|||||||
"x-scope": [
|
"x-scope": [
|
||||||
"",
|
"",
|
||||||
"#/components/schemas/Metadata",
|
"#/components/schemas/Metadata",
|
||||||
"#/components/schemas/EngineMetadata",
|
|
||||||
"#/components/schemas/Connection",
|
"#/components/schemas/Connection",
|
||||||
"#/components/schemas/Jetstream",
|
"#/components/schemas/Jetstream",
|
||||||
"#/components/schemas/JetstreamStats"
|
"#/components/schemas/JetstreamStats"
|
||||||
|
Reference in New Issue
Block a user