@ -1076,7 +1076,7 @@ def getRefs(schema: dict) -> [str]:
|
||||
|
||||
else:
|
||||
# Generate the type.
|
||||
if not 'type' in schema:
|
||||
if 'type' not in schema:
|
||||
if 'allOf' in schema:
|
||||
for sub_schema in schema['allOf']:
|
||||
refs.extend(getRefs(sub_schema))
|
||||
|
@ -6,6 +6,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiCallQueryGroup")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiCallQueryGroup:
|
||||
""" """
|
||||
@ -35,10 +36,9 @@ class ApiCallQueryGroup:
|
||||
|
||||
query = d.pop("query", UNSET)
|
||||
|
||||
|
||||
api_call_query_group = cls(
|
||||
count= count,
|
||||
query= query,
|
||||
count=count,
|
||||
query=query,
|
||||
)
|
||||
|
||||
api_call_query_group.additional_properties = d
|
||||
|
@ -1,5 +1,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class ApiCallQueryGroupBy(str, Enum):
|
||||
EMAIL = 'email'
|
||||
METHOD = 'method'
|
||||
|
@ -11,6 +11,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiCallWithPrice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiCallWithPrice:
|
||||
""" """
|
||||
@ -210,29 +211,28 @@ class ApiCallWithPrice:
|
||||
|
||||
user_id = d.pop("user_id", UNSET)
|
||||
|
||||
|
||||
api_call_with_price = cls(
|
||||
completed_at= completed_at,
|
||||
created_at= created_at,
|
||||
duration= duration,
|
||||
email= email,
|
||||
endpoint= endpoint,
|
||||
id= id,
|
||||
ip_address= ip_address,
|
||||
method= method,
|
||||
minutes= minutes,
|
||||
origin= origin,
|
||||
price= price,
|
||||
request_body= request_body,
|
||||
request_query_params= request_query_params,
|
||||
response_body= response_body,
|
||||
started_at= started_at,
|
||||
status_code= status_code,
|
||||
stripe_invoice_item_id= stripe_invoice_item_id,
|
||||
token= token,
|
||||
updated_at= updated_at,
|
||||
user_agent= user_agent,
|
||||
user_id= user_id,
|
||||
completed_at=completed_at,
|
||||
created_at=created_at,
|
||||
duration=duration,
|
||||
email=email,
|
||||
endpoint=endpoint,
|
||||
id=id,
|
||||
ip_address=ip_address,
|
||||
method=method,
|
||||
minutes=minutes,
|
||||
origin=origin,
|
||||
price=price,
|
||||
request_body=request_body,
|
||||
request_query_params=request_query_params,
|
||||
response_body=response_body,
|
||||
started_at=started_at,
|
||||
status_code=status_code,
|
||||
stripe_invoice_item_id=stripe_invoice_item_id,
|
||||
token=token,
|
||||
updated_at=updated_at,
|
||||
user_agent=user_agent,
|
||||
user_id=user_id,
|
||||
)
|
||||
|
||||
api_call_with_price.additional_properties = d
|
||||
|
@ -9,6 +9,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiToken")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiToken:
|
||||
""" """
|
||||
@ -83,14 +84,13 @@ class ApiToken:
|
||||
|
||||
user_id = d.pop("user_id", UNSET)
|
||||
|
||||
|
||||
api_token = cls(
|
||||
created_at= created_at,
|
||||
id= id,
|
||||
is_valid= is_valid,
|
||||
token= token,
|
||||
updated_at= updated_at,
|
||||
user_id= user_id,
|
||||
created_at=created_at,
|
||||
id=id,
|
||||
is_valid=is_valid,
|
||||
token=token,
|
||||
updated_at=updated_at,
|
||||
user_id=user_id,
|
||||
)
|
||||
|
||||
api_token.additional_properties = d
|
||||
|
@ -1,8 +1,9 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class CreatedAtSortMode(str, Enum):
|
||||
CREATED-AT-ASCENDING = 'created-at-ascending'
|
||||
CREATED-AT-DESCENDING = 'created-at-descending'
|
||||
CREATED - AT - ASCENDING = 'created-at-ascending'
|
||||
CREATED - AT - DESCENDING = 'created-at-descending'
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -6,6 +6,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Error")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Error:
|
||||
""" """
|
||||
@ -41,11 +42,10 @@ class Error:
|
||||
|
||||
request_id = d.pop("request_id", UNSET)
|
||||
|
||||
|
||||
error = cls(
|
||||
error_code= error_code,
|
||||
message= message,
|
||||
request_id= request_id,
|
||||
error_code=error_code,
|
||||
message=message,
|
||||
request_id=request_id,
|
||||
)
|
||||
|
||||
error.additional_properties = d
|
||||
|
@ -8,6 +8,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ExtendedUser")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ExtendedUser:
|
||||
""" """
|
||||
@ -142,24 +143,23 @@ class ExtendedUser:
|
||||
|
||||
zendesk_id = d.pop("zendesk_id", UNSET)
|
||||
|
||||
|
||||
extended_user = cls(
|
||||
company= company,
|
||||
created_at= created_at,
|
||||
discord= discord,
|
||||
email= email,
|
||||
email_verified= email_verified,
|
||||
first_name= first_name,
|
||||
github= github,
|
||||
id= id,
|
||||
image= image,
|
||||
last_name= last_name,
|
||||
mailchimp_id= mailchimp_id,
|
||||
name= name,
|
||||
phone= phone,
|
||||
stripe_id= stripe_id,
|
||||
updated_at= updated_at,
|
||||
zendesk_id= zendesk_id,
|
||||
company=company,
|
||||
created_at=created_at,
|
||||
discord=discord,
|
||||
email=email,
|
||||
email_verified=email_verified,
|
||||
first_name=first_name,
|
||||
github=github,
|
||||
id=id,
|
||||
image=image,
|
||||
last_name=last_name,
|
||||
mailchimp_id=mailchimp_id,
|
||||
name=name,
|
||||
phone=phone,
|
||||
stripe_id=stripe_id,
|
||||
updated_at=updated_at,
|
||||
zendesk_id=zendesk_id,
|
||||
)
|
||||
|
||||
extended_user.additional_properties = d
|
||||
|
@ -12,6 +12,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileConversion:
|
||||
""" """
|
||||
@ -157,20 +158,19 @@ class FileConversion:
|
||||
|
||||
worker = d.pop("worker", UNSET)
|
||||
|
||||
|
||||
file_conversion = cls(
|
||||
completed_at= completed_at,
|
||||
created_at= created_at,
|
||||
id= id,
|
||||
output_file_link= output_file_link,
|
||||
output_format= output_format,
|
||||
src_file_link= src_file_link,
|
||||
src_format= src_format,
|
||||
started_at= started_at,
|
||||
status= status,
|
||||
updated_at= updated_at,
|
||||
user_id= user_id,
|
||||
worker= worker,
|
||||
completed_at=completed_at,
|
||||
created_at=created_at,
|
||||
id=id,
|
||||
output_file_link=output_file_link,
|
||||
output_format=output_format,
|
||||
src_file_link=src_file_link,
|
||||
src_format=src_format,
|
||||
started_at=started_at,
|
||||
status=status,
|
||||
updated_at=updated_at,
|
||||
user_id=user_id,
|
||||
worker=worker,
|
||||
)
|
||||
|
||||
file_conversion.additional_properties = d
|
||||
|
@ -1,5 +1,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class FileConversionOutputFormat(str, Enum):
|
||||
STL = 'stl'
|
||||
OBJ = 'obj'
|
||||
|
@ -1,5 +1,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class FileConversionSourceFormat(str, Enum):
|
||||
STL = 'stl'
|
||||
OBJ = 'obj'
|
||||
|
@ -1,5 +1,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class FileConversionStatus(str, Enum):
|
||||
QUEUED = 'Queued'
|
||||
UPLOADED = 'Uploaded'
|
||||
|
@ -12,6 +12,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileConversionWithOutput")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileConversionWithOutput:
|
||||
""" """
|
||||
@ -132,17 +133,16 @@ class FileConversionWithOutput:
|
||||
|
||||
user_id = d.pop("user_id", UNSET)
|
||||
|
||||
|
||||
file_conversion_with_output = cls(
|
||||
completed_at= completed_at,
|
||||
created_at= created_at,
|
||||
id= id,
|
||||
output= output,
|
||||
output_format= output_format,
|
||||
src_format= src_format,
|
||||
started_at= started_at,
|
||||
status= status,
|
||||
user_id= user_id,
|
||||
completed_at=completed_at,
|
||||
created_at=created_at,
|
||||
id=id,
|
||||
output=output,
|
||||
output_format=output_format,
|
||||
src_format=src_format,
|
||||
started_at=started_at,
|
||||
status=status,
|
||||
user_id=user_id,
|
||||
)
|
||||
|
||||
file_conversion_with_output.additional_properties = d
|
||||
|
@ -1,5 +1,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class Method(str, Enum):
|
||||
OPTIONS = 'OPTIONS'
|
||||
GET = 'GET'
|
||||
|
@ -6,6 +6,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Pong")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Pong:
|
||||
""" """
|
||||
@ -29,9 +30,8 @@ class Pong:
|
||||
d = src_dict.copy()
|
||||
message = d.pop("message", UNSET)
|
||||
|
||||
|
||||
pong = cls(
|
||||
message= message,
|
||||
message=message,
|
||||
)
|
||||
|
||||
pong.additional_properties = d
|
||||
|
@ -8,6 +8,7 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="User")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class User:
|
||||
""" """
|
||||
@ -124,21 +125,20 @@ class User:
|
||||
else:
|
||||
updated_at = isoparse(_updated_at)
|
||||
|
||||
|
||||
user = cls(
|
||||
company= company,
|
||||
created_at= created_at,
|
||||
discord= discord,
|
||||
email= email,
|
||||
email_verified= email_verified,
|
||||
first_name= first_name,
|
||||
github= github,
|
||||
id= id,
|
||||
image= image,
|
||||
last_name= last_name,
|
||||
name= name,
|
||||
phone= phone,
|
||||
updated_at= updated_at,
|
||||
company=company,
|
||||
created_at=created_at,
|
||||
discord=discord,
|
||||
email=email,
|
||||
email_verified=email_verified,
|
||||
first_name=first_name,
|
||||
github=github,
|
||||
id=id,
|
||||
image=image,
|
||||
last_name=last_name,
|
||||
name=name,
|
||||
phone=phone,
|
||||
updated_at=updated_at,
|
||||
)
|
||||
|
||||
user.additional_properties = d
|
||||
|
Reference in New Issue
Block a user