Update api spec (#444)

* YOYO NEW API SPEC!

* I have generated the latest API!

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
zoo-github-actions-auth[bot]
2025-05-22 12:58:39 -07:00
committed by GitHub
parent 26cc03ef01
commit cf383e2405
22 changed files with 861 additions and 2185 deletions

View File

@ -48,7 +48,6 @@ from kittycad.api.meta import (
create_debug_uploads,
create_event,
get_ipinfo,
get_metadata,
get_pricing_subscriptions,
get_schema,
internal_get_api_token_for_discord_user,
@ -194,7 +193,6 @@ from kittycad.models import (
IpAddrInfo,
KclCodeCompletionResponse,
KclModel,
Metadata,
MlPrompt,
MlPromptResultsPage,
Onboarding,
@ -351,47 +349,6 @@ async def test_get_schema_async():
)
@pytest.mark.skip
def test_get_metadata():
# Create our client.
client = ClientFromEnv()
result: Optional[Union[Metadata, Error]] = get_metadata.sync(
client=client,
)
if isinstance(result, Error) or result is None:
print(result)
raise Exception("Error in response")
body: Metadata = result
print(body)
# OR if you need more info (e.g. status_code)
response: Response[Optional[Union[Metadata, Error]]] = get_metadata.sync_detailed(
client=client,
)
# OR run async
@pytest.mark.asyncio
@pytest.mark.skip
async def test_get_metadata_async():
# Create our client.
client = ClientFromEnv()
result: Optional[Union[Metadata, Error]] = await get_metadata.asyncio(
client=client,
)
# OR run async with more info
response: Response[
Optional[Union[Metadata, Error]]
] = await get_metadata.asyncio_detailed(
client=client,
)
@pytest.mark.skip
def test_get_ipinfo():
# Create our client.