diff --git a/frontend/src/gen/api.ts b/frontend/src/gen/api.ts index da4ef0bd..033eb57f 100644 --- a/frontend/src/gen/api.ts +++ b/frontend/src/gen/api.ts @@ -1432,6 +1432,12 @@ export interface components { /** Part Size */ part_size?: number | null; }; + /** CreateKClipResponse */ + CreateKClipResponse: { + /** Kclip Id */ + kclip_id: string; + upload_details: components["schemas"]["MultipartUploadDetails"]; + }; /** CreateRefundsRequest */ CreateRefundsRequest: { /** Payment Intent Id */ @@ -1769,12 +1775,6 @@ export interface components { bio: string | null; stripe_connect: components["schemas"]["UserStripeConnect"] | null; }; - /** NewKClipResponse */ - NewKClipResponse: { - /** Kclip Id */ - kclip_id: string; - upload_details: components["schemas"]["MultipartUploadDetails"]; - }; /** NewKeyRequest */ NewKeyRequest: { /** @@ -4486,7 +4486,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["NewKClipResponse"]; + "application/json": components["schemas"]["CreateKClipResponse"]; }; }; /** @description Validation Error */ diff --git a/store/app/routers/kclips.py b/store/app/routers/kclips.py index 9a6417dc..ebf62228 100644 --- a/store/app/routers/kclips.py +++ b/store/app/routers/kclips.py @@ -22,7 +22,7 @@ class CreateKClipRequest(BaseModel): part_size: int | None = None -class NewKClipResponse(BaseModel): +class CreateKClipResponse(BaseModel): kclip_id: str upload_details: MultipartUploadDetails @@ -32,7 +32,7 @@ async def create_kclip( user: Annotated[User, Depends(get_session_user_with_write_permission)], kclip_data: CreateKClipRequest, crud: Annotated[Crud, Depends(Crud.get)], -) -> NewKClipResponse: +) -> CreateKClipResponse: kclip, upload_details = await crud.create_kclip( user_id=user.id, robot_id=kclip_data.robot_id, @@ -42,7 +42,7 @@ async def create_kclip( part_size=kclip_data.part_size, ) - return NewKClipResponse(kclip_id=kclip.id, upload_details=upload_details) + return CreateKClipResponse(kclip_id=kclip.id, upload_details=upload_details) class CompletedKClipUploadRequest(BaseModel):