{"openapi":"3.1.0","info":{"title":"Warblize","description":"Convert ebooks to audiobooks using Google Cloud TTS Chirp 3 HD voices","version":"0.1.0"},"paths":{"/auth/login":{"get":{"tags":["auth"],"summary":"Login","description":"Redirect to Google OAuth login page.","operationId":"login_auth_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/email/request":{"post":{"tags":["auth"],"summary":"Request Email Login","operationId":"request_email_login_auth_email_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/callback":{"get":{"tags":["auth"],"summary":"Auth Callback","description":"Handle OAuth callback from Google.\nCreates or updates user in database and stores session.","operationId":"auth_callback_auth_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/email/callback":{"get":{"tags":["auth"],"summary":"Email Magic Link Callback","operationId":"email_magic_link_callback_auth_email_callback_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"get":{"tags":["auth"],"summary":"Logout","description":"Logout user and clear session.","operationId":"logout_auth_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/user":{"get":{"tags":["auth"],"summary":"Get User","description":"Get current user info from session.","operationId":"get_user_auth_user_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/announcement-seen":{"post":{"tags":["auth"],"summary":"Announcement Seen","description":"The \"new feature\" dialog was shown; don't show it to this user again.","operationId":"announcement_seen_auth_announcement_seen_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnouncementSeen"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pricing":{"get":{"tags":["subscriptions"],"summary":"Pricing Page","description":"Display pricing page (marketing layout, shared with the landing page).","operationId":"pricing_page_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing":{"get":{"tags":["subscriptions"],"summary":"Billing Page","description":"Display billing and subscription management page.","operationId":"billing_page_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/checkout":{"get":{"tags":["subscriptions"],"summary":"Create Checkout","description":"Create Lemon Squeezy checkout session.","operationId":"create_checkout_checkout_get","parameters":[{"name":"plan","in":"query","required":true,"schema":{"type":"string","title":"Plan"}},{"name":"billing","in":"query","required":false,"schema":{"type":"string","default":"monthly","title":"Billing"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/checkout/credits":{"get":{"tags":["subscriptions"],"summary":"Retired Credit Pack Checkout","description":"Credit packs are no longer sold; old links land on the plans.","operationId":"retired_credit_pack_checkout_checkout_credits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/test":{"get":{"tags":["subscriptions"],"summary":"Test Webhook Endpoint","description":"Test endpoint to verify webhook URL is accessible.","operationId":"test_webhook_endpoint_webhooks_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/lemonsqueezy":{"post":{"tags":["subscriptions"],"summary":"Lemonsqueezy Webhook","description":"Handle Lemon Squeezy webhooks for subscription events.","operationId":"lemonsqueezy_webhook_webhooks_lemonsqueezy_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/subscription/portal":{"get":{"tags":["subscriptions"],"summary":"Subscription Portal","description":"Redirect to Lemon Squeezy customer portal.","operationId":"subscription_portal_subscription_portal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/subscription/switch":{"post":{"tags":["subscriptions"],"summary":"Switch Plan","description":"Schedule a downgrade for the next renewal. Upgrades go through /checkout.","operationId":"switch_plan_subscription_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanSwitch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscription/switch/cancel":{"post":{"tags":["subscriptions"],"summary":"Cancel Scheduled Switch","description":"Keep the current plan instead of the scheduled downgrade.","operationId":"cancel_scheduled_switch_subscription_switch_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/subscription/cancel":{"post":{"tags":["subscriptions"],"summary":"Cancel Subscription","description":"Cancel user's subscription.","operationId":"cancel_subscription_subscription_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/upload":{"post":{"tags":["upload"],"summary":"Upload Ebook","description":"Upload an ebook file and extract chapters for preview\n\n- **file**: Ebook file (PDF, EPUB, or TXT)\n- **title**: Optional book title (auto-detected if not provided)\n- **author**: Optional author name\n- **generation_mode**: `full` for full audiobook, `short` for 15-minute summary audiobook\n- **language_code**: Voice language code (e.g., en-US, hi-IN)\n- **voice_name**: Full Chirp 3 HD voice name","operationId":"upload_ebook_api_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_ebook_api_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/upload/public":{"post":{"tags":["upload"],"summary":"Upload Ebook Public","description":"Public upload endpoint - does not require authentication. User may be None.","operationId":"upload_ebook_public_api_upload_public_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_ebook_public_api_upload_public_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/upload/detect-language":{"post":{"tags":["upload"],"summary":"Detect Upload Language","description":"Best-effort source-language detection from a small text sample, without\npersisting anything. Used by the studio to default the narration\nlanguage dropdown as soon as a file is chosen.","operationId":"detect_upload_language_api_upload_detect_language_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_detect_upload_language_api_upload_detect_language_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectLanguageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}":{"get":{"tags":["audiobooks"],"summary":"Get Audiobook","description":"Get full audiobook details including all chapters\n\n- **audiobook_id**: ID of the audiobook","operationId":"get_audiobook_api_audiobooks__audiobook_id__get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookWithChapters"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["audiobooks"],"summary":"Rename Audiobook","operationId":"rename_audiobook_api_audiobooks__audiobook_id__patch","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameAudiobookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["audiobooks"],"summary":"Delete Audiobook","operationId":"delete_audiobook_api_audiobooks__audiobook_id__delete","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/full-audio":{"get":{"tags":["audiobooks"],"summary":"Get Full Audio","description":"Serve the final full audiobook file through the API for authenticated owners.","operationId":"get_full_audio_api_audiobooks__audiobook_id__full_audio_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/thumbnail":{"get":{"tags":["audiobooks"],"summary":"Get Audiobook Thumbnail","description":"Serve the saved cover for the owner, or for an unclaimed public draft.","operationId":"get_audiobook_thumbnail_api_audiobooks__audiobook_id__thumbnail_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"square","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1024,"minimum":64},{"type":"null"}],"title":"Square"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["audiobooks"],"summary":"Replace Thumbnail","description":"Set the book's cover art from an uploaded image.","operationId":"replace_thumbnail_api_audiobooks__audiobook_id__thumbnail_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_replace_thumbnail_api_audiobooks__audiobook_id__thumbnail_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["audiobooks"],"summary":"Remove Thumbnail","operationId":"remove_thumbnail_api_audiobooks__audiobook_id__thumbnail_delete","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters/{chapter_number}/audio":{"get":{"tags":["audiobooks"],"summary":"Get Chapter Audio","description":"Serve private chapter audio through the API for authenticated owners.","operationId":"get_chapter_audio_api_audiobooks__audiobook_id__chapters__chapter_number__audio_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_number","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters/{chapter_number}/download":{"get":{"tags":["audiobooks"],"summary":"Download Chapter Audio","description":"Download a generated chapter as MP3 or raw WAV.","operationId":"download_chapter_audio_api_audiobooks__audiobook_id__chapters__chapter_number__download_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_number","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Number"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"mp3","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters/{chapter_id}":{"patch":{"tags":["audiobooks"],"summary":"Update Chapter Text","description":"Update a chapter title/text before generation.","operationId":"update_chapter_text_api_audiobooks__audiobook_id__chapters__chapter_id__patch","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateChapterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["audiobooks"],"summary":"Delete Chapter","description":"Drop a chapter from the book (the wizard's unchecked chapters).","operationId":"delete_chapter_api_audiobooks__audiobook_id__chapters__chapter_id__delete","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/generate":{"post":{"tags":["audiobooks"],"summary":"Generate Audiobook","description":"Start generation for the selected chapter or the full audiobook.","operationId":"generate_audiobook_api_audiobooks__audiobook_id__generate_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAudiobookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/generate/cancel":{"post":{"tags":["audiobooks"],"summary":"Cancel Generation","description":"Request cancellation of in-progress generation. The background task checks\nthis flag between sentences and stops cleanly, keeping any audio already\ngenerated.","operationId":"cancel_generation_api_audiobooks__audiobook_id__generate_cancel_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/language":{"post":{"tags":["audiobooks"],"summary":"Set Narration Language","description":"Change the narration language of a book nothing has been translated or\nnarrated for yet (the create wizard's last step). Every voice moves to the\nnew language, and the chapters are flagged for translation when it\ndiffers from the book's detected language.","operationId":"set_narration_language_api_audiobooks__audiobook_id__language_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLanguageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/book-details":{"get":{"tags":["audiobooks"],"summary":"Get Book Details","description":"The details written into an M4B export (title, author, narrator, series…).","operationId":"get_book_details_api_audiobooks__audiobook_id__book_details_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["audiobooks"],"summary":"Update Book Details","description":"Save the book details for M4B export. Only the title is required.","operationId":"update_book_details_api_audiobooks__audiobook_id__book_details_patch","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookDetailsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/status":{"get":{"tags":["audiobooks"],"summary":"Get Audiobook Status","description":"Get lightweight audiobook status for polling\n\n- **audiobook_id**: ID of the audiobook","operationId":"get_audiobook_status_api_audiobooks__audiobook_id__status_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/claim":{"post":{"tags":["audiobooks"],"summary":"Claim Audiobook","description":"Assign a guest (user_id=None) draft audiobook to the authenticated user.","operationId":"claim_audiobook_api_audiobooks__audiobook_id__claim_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/":{"get":{"tags":["audiobooks"],"summary":"List Audiobooks","description":"List all audiobooks for the current user, with the summary the library\ncards show: generated running time and how much of the book has audio.","operationId":"list_audiobooks_api_audiobooks__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AudiobookResponse"},"type":"array","title":"Response List Audiobooks Api Audiobooks  Get"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters":{"post":{"tags":["audiobooks"],"summary":"Create Chapter","description":"Add an empty chapter at the end of the book (the editor's +); its sentences are typed in.","operationId":"create_chapter_api_audiobooks__audiobook_id__chapters_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChapterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters/order":{"post":{"tags":["audiobooks"],"summary":"Reorder Chapters","description":"Renumber chapters to match the order they were dragged into.","operationId":"reorder_chapters_api_audiobooks__audiobook_id__chapters_order_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderChaptersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChapterResponse"},"title":"Response Reorder Chapters Api Audiobooks  Audiobook Id  Chapters Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/duplicate":{"post":{"tags":["audiobooks"],"summary":"Duplicate Audiobook","description":"Copy a book as a fresh draft: same text, chapters, cast and cover, no\ngenerated audio. Lets a reader re-narrate a book with a different voice\nwithout re-uploading it.","operationId":"duplicate_audiobook_api_audiobooks__audiobook_id__duplicate_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters/{chapter_id}/segments":{"get":{"tags":["segments"],"summary":"List Chapter Segments","description":"List a chapter's segments, splitting the chapter into sentences on first\naccess. A chapter that still needs translating into the narration\nlanguage is translated now, in the background, and a 202 is returned\nuntil it is done - the user reviews chapters one at a time, so the book\nis translated as it is read rather than all at once on upload.","operationId":"list_chapter_segments_api_audiobooks__audiobook_id__chapters__chapter_id__segments_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response List Chapter Segments Api Audiobooks  Audiobook Id  Chapters  Chapter Id  Segments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["segments"],"summary":"Append Segments","description":"Add sentences at the end of a chapter - the first ones typed into a new, empty chapter.","operationId":"append_segments_api_audiobooks__audiobook_id__chapters__chapter_id__segments_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendSegmentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response Append Segments Api Audiobooks  Audiobook Id  Chapters  Chapter Id  Segments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters/{chapter_id}/translate":{"post":{"tags":["segments"],"summary":"Translate Chapter Now","description":"(Re)start translation of one chapter - used to retry a failed one.","operationId":"translate_chapter_now_api_audiobooks__audiobook_id__chapters__chapter_id__translate_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/segments/{segment_id}":{"patch":{"tags":["segments"],"summary":"Update Segment","description":"Update one sentence's text. The stored audio is kept, so the editor can\nshow the sentence as 'edited since generated' until it is regenerated.\nEmpty text deletes the sentence; text containing several sentences is\nre-split in place.","operationId":"update_segment_api_audiobooks__audiobook_id__segments__segment_id__patch","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSegmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response Update Segment Api Audiobooks  Audiobook Id  Segments  Segment Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["segments"],"summary":"Delete Segment","description":"Remove a segment (sentence or sound effect) from the chapter.","operationId":"delete_segment_api_audiobooks__audiobook_id__segments__segment_id__delete","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response Delete Segment Api Audiobooks  Audiobook Id  Segments  Segment Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/segments/{segment_id}/insert":{"post":{"tags":["segments"],"summary":"Insert Segment","description":"Add sentences next to a sentence - Enter in the editor. In the middle of\na sentence, keep_text is what it keeps (before the caret) and text, the\nrest, becomes the next sentence with the same narrator and style; at\neither end, text was typed into a new empty block before or after it.\nText holding several sentences is split as in update_segment.","operationId":"insert_segment_api_audiobooks__audiobook_id__segments__segment_id__insert_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertSegmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response Insert Segment Api Audiobooks  Audiobook Id  Segments  Segment Id  Insert Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/segments/{segment_id}/character":{"patch":{"tags":["segments"],"summary":"Update Segment Character","description":"Assign (or clear) which character narrates this sentence. Changing the\ncharacter marks the sentence stale so it can be regenerated in the new\nvoice. Allowed regardless of the chapter's generation status - it's a\nmetadata-only change (unlike text edits, which restructure segments), so\nit can't conflict with an in-flight generation; if that sentence happens\nto be mid-synthesis when this lands, it simply comes back stale.","operationId":"update_segment_character_api_audiobooks__audiobook_id__segments__segment_id__character_patch","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSegmentCharacterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response Update Segment Character Api Audiobooks  Audiobook Id  Segments  Segment Id  Character Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/segments/{segment_id}/style":{"patch":{"tags":["segments"],"summary":"Update Segment Style","description":"Set (or clear, with an empty style) how this sentence is delivered by\nGemini TTS, e.g. \"whispered\". Like the character, metadata only: the\nsentence turns stale until it is regenerated.","operationId":"update_segment_style_api_audiobooks__audiobook_id__segments__segment_id__style_patch","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSegmentStyleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response Update Segment Style Api Audiobooks  Audiobook Id  Segments  Segment Id  Style Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/chapters/{chapter_id}/clear-styles":{"post":{"tags":["segments"],"summary":"Clear Styles","description":"Back to the narrator's default delivery: remove the style of the given\nsentences, or of every sentence in the chapter when segment_ids is omitted. Styled\nsentences turn stale; tags in the text stay.","operationId":"clear_styles_api_audiobooks__audiobook_id__chapters__chapter_id__clear_styles_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearStylesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentResponse"},"title":"Response Clear Styles Api Audiobooks  Audiobook Id  Chapters  Chapter Id  Clear Styles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/segments/{segment_id}/audio":{"get":{"tags":["segments"],"summary":"Get Segment Audio","description":"Serve a single sentence's audio for in-editor preview.","operationId":"get_segment_audio_api_audiobooks__audiobook_id__segments__segment_id__audio_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/timeline":{"get":{"tags":["segments"],"summary":"Get Timeline","description":"Whole-audiobook duration model: each chapter's offset (`start`) and length\n(`duration`) on a shared time axis, plus `pending_seconds` (audio not yet\ngenerated). Used for the header transport's time display and the export\npanel's credit estimate.\n\nDurations fall back to a word-count estimate for sentences whose audio has\nnot been generated yet, keeping the estimate stable before generation.","operationId":"get_timeline_api_audiobooks__audiobook_id__timeline_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voices":{"get":{"tags":["library"],"summary":"Get Voices","description":"Every Chirp 3 HD voice for a language, narration-curated voices first.\n\n`preview_url` points straight at the bundled static file when we shipped a\npre-generated sample for this language, so playing one costs a static file\nread rather than a trip through the app.","operationId":"get_voices_api_voices_get","parameters":[{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en-US","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voices/{base_name}/preview":{"get":{"tags":["library"],"summary":"Get Voice Preview","description":"Short narration sample for a voice - its own sentence, not a shared one.\nBuilt once for a given voice/language pair and cached from then on; see\napp/services/voice_preview.py.","operationId":"get_voice_preview_api_voices__base_name__preview_get","parameters":[{"name":"base_name","in":"path","required":true,"schema":{"type":"string","title":"Base Name"}},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en-US","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-library":{"get":{"tags":["library"],"summary":"Get Voice Library","description":"Narrator voices for a language, each tagged with the genres it suits.\nStandard voices speak any language; library voices one. Previews are fetched per voice and genre from `preview_url`.","operationId":"get_voice_library_api_voice_library_get","parameters":[{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en-US","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-library/{voice_id}/preview":{"get":{"tags":["library"],"summary":"Get Voice Library Preview","description":"~20 s sample of a voice reading a passage written for the genre. Built on\nthe first play, then served from cache.","operationId":"get_voice_library_preview_api_voice_library__voice_id__preview_get","parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}},{"name":"genre","in":"query","required":true,"schema":{"type":"string","title":"Genre"}},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en-US","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/custom-voices":{"get":{"tags":["library"],"summary":"Get Custom Voices","description":"Warblize's designed narrator and character voices for a language, in the\nsame shape as /voice-library. English only for now.","operationId":"get_custom_voices_api_custom_voices_get","parameters":[{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en-US","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/custom-voices/{voice_id}/preview":{"get":{"tags":["library"],"summary":"Get Custom Voice Preview","description":"A designed voice reading a genre passage (narrators) or its own line (characters).","operationId":"get_custom_voice_preview_api_custom_voices__voice_id__preview_get","parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}},{"name":"genre","in":"query","required":true,"schema":{"type":"string","title":"Genre"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/characters":{"get":{"tags":["characters"],"summary":"List Characters","operationId":"list_characters_api_audiobooks__audiobook_id__characters_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CharacterResponse"},"title":"Response List Characters Api Audiobooks  Audiobook Id  Characters Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["characters"],"summary":"Create Character","operationId":"create_character_api_audiobooks__audiobook_id__characters_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CharacterResponse"},"title":"Response Create Character Api Audiobooks  Audiobook Id  Characters Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/characters/{character_id}":{"patch":{"tags":["characters"],"summary":"Update Character","operationId":"update_character_api_audiobooks__audiobook_id__characters__character_id__patch","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"integer","title":"Character Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CharacterResponse"},"title":"Response Update Character Api Audiobooks  Audiobook Id  Characters  Character Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["characters"],"summary":"Delete Character","operationId":"delete_character_api_audiobooks__audiobook_id__characters__character_id__delete","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"integer","title":"Character Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CharacterResponse"},"title":"Response Delete Character Api Audiobooks  Audiobook Id  Characters  Character Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/characters/{character_id}/preview":{"post":{"tags":["characters"],"summary":"Preview Character Voice","description":"A short sample of the character's voice with its settings. One TTS\nrequest per new combination of voice and settings (signed-in users,\nPREVIEWS_PER_HOUR each); repeats are cached for the process.","operationId":"preview_character_voice_api_audiobooks__audiobook_id__characters__character_id__preview_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"integer","title":"Character Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoicePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/characters/samples":{"get":{"tags":["characters"],"summary":"Character Samples","description":"{character id: one line of theirs}, for the cast list.","operationId":"character_samples_api_audiobooks__audiobook_id__characters_samples_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/find-characters":{"get":{"tags":["characters"],"summary":"Find Characters Status","operationId":"find_characters_status_api_audiobooks__audiobook_id__find_characters_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["characters"],"summary":"Find Characters","description":"Start finding the book's speakers in the background. Each run is a few\nGemini requests, so it needs a signed-in owner, and one run at a time per\nbook.","operationId":"find_characters_api_audiobooks__audiobook_id__find_characters_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FindCharactersRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/find-characters/mode":{"post":{"tags":["characters"],"summary":"Change Casting Depth","description":"A3: recast at another depth from the attribution already found (no AI).","operationId":"change_casting_depth_api_audiobooks__audiobook_id__find_characters_mode_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindCharactersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/find-characters/review":{"get":{"tags":["characters"],"summary":"Casting Review","description":"G1: the lines Find characters wasn't sure about.","operationId":"casting_review_api_audiobooks__audiobook_id__find_characters_review_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/find-characters/review/{segment_id}":{"post":{"tags":["characters"],"summary":"Confirm Casting","description":"The line is right as cast: off the review queue, and locked.","operationId":"confirm_casting_api_audiobooks__audiobook_id__find_characters_review__segment_id__post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/player/{audiobook_id}":{"get":{"tags":["player"],"summary":"Player Page","description":"Serve the audiobook player page\n\n- **audiobook_id**: ID of the audiobook to play","operationId":"player_page_player__audiobook_id__get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/processing/{audiobook_id}":{"get":{"tags":["player"],"summary":"Processing Page","description":"Serve the processing status page\n\n- **audiobook_id**: ID of the audiobook being processed","operationId":"processing_page_processing__audiobook_id__get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/exports":{"post":{"tags":["download"],"summary":"Start Export","description":"Start building an export (see app/services/export_service.py) and return\nthe job to poll. Asking again for the same chapter audio and options\nreturns the job already building it, or its finished file.","operationId":"start_export_api_audiobooks__audiobook_id__exports_post","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/exports/{job_id}":{"get":{"tags":["download"],"summary":"Export Status","operationId":"export_status_api_audiobooks__audiobook_id__exports__job_id__get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audiobooks/{audiobook_id}/exports/{job_id}/file":{"get":{"tags":["download"],"summary":"Download Export","description":"Stream a finished export from GCS. Bytes flow from the first moment, so\neven a multi-gigabyte book never hits a proxy timeout.\n\n`dl` is a token from the studio: it comes back as a cookie on the file\nresponse, which is how the page knows the browser's download has started.","operationId":"download_export_api_audiobooks__audiobook_id__exports__job_id__file_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"dl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support":{"post":{"tags":["support"],"summary":"Submit Support Request","description":"Handle support form submission.\nSends an email to the support team with user details.","operationId":"submit_support_request_api_support_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/survey":{"post":{"tags":["support"],"summary":"Submit Survey","description":"Handle survey submission. Emails the answers to the team, the same way a\nsupport request is delivered.","operationId":"submit_survey_api_survey_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyResponse"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/book-formatter/analyze":{"post":{"tags":["tools"],"summary":"Analyze","operationId":"analyze_tools_book_formatter_analyze_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_analyze_tools_book_formatter_analyze_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/book-formatter/preview":{"post":{"tags":["tools"],"summary":"Preview","operationId":"preview_tools_book_formatter_preview_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_preview_tools_book_formatter_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/book-formatter/build":{"post":{"tags":["tools"],"summary":"Build","operationId":"build_tools_book_formatter_build_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_build_tools_book_formatter_build_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sounds":{"get":{"tags":["editor"],"summary":"List Sounds","description":"The library and the user's own sounds, plus what's left of today's AI allowance.","operationId":"list_sounds_api_sounds_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sounds/{asset_id}/audio":{"get":{"tags":["editor"],"summary":"Sound Audio","operationId":"sound_audio_api_sounds__asset_id__audio_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sounds/upload":{"post":{"tags":["editor"],"summary":"Upload Sound","description":"Add the user's own sound file (any common audio format, up to 25 MB / 20 min).","operationId":"upload_sound_api_sounds_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_sound_api_sounds_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sounds/generate":{"post":{"tags":["editor"],"summary":"Generate Sound","description":"Generate music or an effect from a description (one Lyria request). The\nuser's credits pay for it like narration: by the seconds of audio made\n(User.add_audio_seconds), so it needs credits to start.","operationId":"generate_sound_api_sounds_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sounds/{asset_id}":{"patch":{"tags":["editor"],"summary":"Rename Sound","operationId":"rename_sound_api_sounds__asset_id__patch","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["editor"],"summary":"Delete Sound","description":"Delete one of the user's sounds. Clips using it drop out of their mixes.","operationId":"delete_sound_api_sounds__asset_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/editor/books/{audiobook_id}":{"get":{"tags":["editor"],"summary":"Editor Book","operationId":"editor_book_api_editor_books__audiobook_id__get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/editor/books/{audiobook_id}/chapters/{chapter_id}/mix":{"put":{"tags":["editor"],"summary":"Save Mix","description":"Save a chapter's sound layer (the whole layer; the Editor autosaves).","operationId":"save_mix_api_editor_books__audiobook_id__chapters__chapter_id__mix_put","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/editor/books/{audiobook_id}/chapters/{chapter_id}/peaks":{"get":{"tags":["editor"],"summary":"Chapter Peaks","operationId":"chapter_peaks_api_editor_books__audiobook_id__chapters__chapter_id__peaks_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/editor/books/{audiobook_id}/chapters/{chapter_id}/draft-audio":{"get":{"tags":["editor"],"summary":"Chapter Draft Audio","description":"The narrated sentences of a partly narrated chapter, as one MP3 (see Drafts).","operationId":"chapter_draft_audio_api_editor_books__audiobook_id__chapters__chapter_id__draft_audio_get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sitemap.xml":{"get":{"summary":"Sitemap","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/overview":{"get":{"summary":"Overview Page","description":"The dashboard home: welcome, quick composer and feature shortcuts.","operationId":"overview_page_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/upload":{"get":{"summary":"Upload Page","operationId":"upload_page_upload_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/studio":{"get":{"summary":"Studio Redirect","operationId":"studio_redirect_studio_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/editor":{"get":{"summary":"Editor Page","operationId":"editor_page_editor_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/library":{"get":{"summary":"Library Page","operationId":"library_page_library_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/voices":{"get":{"summary":"Voices Page","operationId":"voices_page_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/examples":{"get":{"summary":"Examples Page","operationId":"examples_page_examples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/examples/{slug}":{"get":{"summary":"Example Page","operationId":"example_page_examples__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiovisual":{"get":{"summary":"Audiovisual Page","operationId":"audiovisual_page_audiovisual_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/audiovisual/{audiobook_id}":{"get":{"summary":"Audiovisual Watch Page","description":"The watch page; every byte of the film comes from the API, which checks ownership.","operationId":"audiovisual_watch_page_audiovisual__audiobook_id__get","parameters":[{"name":"audiobook_id","in":"path","required":true,"schema":{"type":"integer","title":"Audiobook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support":{"get":{"summary":"Support Page","operationId":"support_page_support_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/survey":{"get":{"summary":"Survey Page","operationId":"survey_page_survey_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/about":{"get":{"summary":"About","operationId":"about_about_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/terms":{"get":{"summary":"About","operationId":"about_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"summary":"About","operationId":"about_privacy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pdf-to-audiobook":{"get":{"summary":"Pdf To Audiobook","operationId":"pdf_to_audiobook_pdf_to_audiobook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/epub-to-audiobook":{"get":{"summary":"Epub To Audiobook","operationId":"epub_to_audiobook_epub_to_audiobook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/epub-to-m4b":{"get":{"summary":"Epub To M4B","operationId":"epub_to_m4b_epub_to_m4b_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/text-to-audiobook":{"get":{"summary":"Text To Audiobook","operationId":"text_to_audiobook_text_to_audiobook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/visual-books":{"get":{"summary":"Visual Books Landing","operationId":"visual_books_landing_visual_books_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/blog":{"get":{"summary":"Blog Index","operationId":"blog_index_blog_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/{slug}":{"get":{"summary":"Blog Post","operationId":"blog_post_blog__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guides":{"get":{"summary":"Guides Index","operationId":"guides_index_guides_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/{slug}":{"get":{"summary":"Guide Page","operationId":"guide_page_guides__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/about/facts":{"get":{"summary":"Facts Page","operationId":"facts_page_about_facts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/genres":{"get":{"summary":"Genres Index","operationId":"genres_index_genres_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/genres/{slug}":{"get":{"summary":"Genre Page","operationId":"genre_page_genres__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compare/{slug}":{"get":{"summary":"Compare Page","operationId":"compare_page_compare__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-voices":{"get":{"summary":"Ai Voices Redirect","operationId":"ai_voices_redirect_ai_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools":{"get":{"summary":"Tools Page","operationId":"tools_page_tools_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/audiobook-length-calculator":{"get":{"summary":"Length Calculator Page","operationId":"length_calculator_page_tools_audiobook_length_calculator_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/book-formatter":{"get":{"summary":"Book Formatter Page","operationId":"book_formatter_page_tools_book_formatter_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/book-formatter/app":{"get":{"summary":"Book Formatter App","operationId":"book_formatter_app_tools_book_formatter_app_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/book-cover-generator":{"get":{"summary":"Cover Generator Page","operationId":"cover_generator_page_tools_book_cover_generator_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/book-cover-generator/app":{"get":{"summary":"Cover Generator App","operationId":"cover_generator_app_tools_book_cover_generator_app_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/book-cover-generator/draw":{"get":{"summary":"Cover Generator Draw","operationId":"cover_generator_draw_tools_book_cover_generator_draw_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/languages":{"get":{"summary":"Languages Index","operationId":"languages_index_languages_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/{conversion_slug}":{"get":{"summary":"Tool Subpage","operationId":"tool_subpage__conversion_slug__get","parameters":[{"name":"conversion_slug","in":"path","required":true,"schema":{"type":"string","title":"Conversion Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnnouncementSeen":{"properties":{"key":{"type":"string","title":"Key"}},"type":"object","required":["key"],"title":"AnnouncementSeen"},"AppendSegmentsRequest":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"AppendSegmentsRequest"},"AudiobookResponse":{"properties":{"title":{"type":"string","title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"id":{"type":"integer","title":"Id"},"generation_mode":{"type":"string","title":"Generation Mode","default":"full"},"voice_gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Gender"},"voice_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Category"},"original_filename":{"type":"string","title":"Original Filename"},"file_format":{"type":"string","title":"File Format"},"upload_date":{"type":"string","format":"date-time","title":"Upload Date"},"total_chapters":{"type":"integer","title":"Total Chapters"},"status":{"type":"string","title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"merged_audio_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merged Audio Status"},"merged_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merged Audio Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"autoformat_enabled":{"type":"boolean","title":"Autoformat Enabled","default":true},"source_language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Language Code"},"translation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Status"},"translation_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Error"},"can_resume":{"type":"boolean","title":"Can Resume","default":false},"job_chapter_ids":{"items":{"type":"integer"},"type":"array","title":"Job Chapter Ids","default":[]},"auto_retry_attempt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Retry Attempt"},"auto_retry_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Retry Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress"},"chapter_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Count"}},"type":"object","required":["title","id","original_filename","file_format","upload_date","total_chapters","status","created_at","updated_at"],"title":"AudiobookResponse"},"AudiobookStatusResponse":{"properties":{"audiobook_id":{"type":"integer","title":"Audiobook Id"},"generation_mode":{"type":"string","title":"Generation Mode","default":"full"},"status":{"type":"string","title":"Status"},"completed_chapters":{"type":"integer","title":"Completed Chapters"},"total_chapters":{"type":"integer","title":"Total Chapters"},"progress_percentage":{"type":"number","title":"Progress Percentage"}},"type":"object","required":["audiobook_id","status","completed_chapters","total_chapters","progress_percentage"],"title":"AudiobookStatusResponse"},"AudiobookWithChapters":{"properties":{"title":{"type":"string","title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"id":{"type":"integer","title":"Id"},"generation_mode":{"type":"string","title":"Generation Mode","default":"full"},"voice_gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Gender"},"voice_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Category"},"original_filename":{"type":"string","title":"Original Filename"},"file_format":{"type":"string","title":"File Format"},"upload_date":{"type":"string","format":"date-time","title":"Upload Date"},"total_chapters":{"type":"integer","title":"Total Chapters"},"status":{"type":"string","title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"merged_audio_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merged Audio Status"},"merged_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merged Audio Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"autoformat_enabled":{"type":"boolean","title":"Autoformat Enabled","default":true},"source_language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Language Code"},"translation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Status"},"translation_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Error"},"can_resume":{"type":"boolean","title":"Can Resume","default":false},"job_chapter_ids":{"items":{"type":"integer"},"type":"array","title":"Job Chapter Ids","default":[]},"auto_retry_attempt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Retry Attempt"},"auto_retry_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Retry Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress"},"chapter_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Count"},"chapters":{"items":{"$ref":"#/components/schemas/ChapterResponse"},"type":"array","title":"Chapters","default":[]}},"type":"object","required":["title","id","original_filename","file_format","upload_date","total_chapters","status","created_at","updated_at"],"title":"AudiobookWithChapters"},"Body_analyze_tools_book_formatter_analyze_post":{"properties":{"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File"},"sample":{"type":"string","title":"Sample","default":""}},"type":"object","title":"Body_analyze_tools_book_formatter_analyze_post"},"Body_build_tools_book_formatter_build_post":{"properties":{"token":{"type":"string","title":"Token"},"options":{"type":"string","title":"Options","default":"{}"},"sections":{"type":"string","title":"Sections","default":"[]"},"cover":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Cover"}},"type":"object","required":["token"],"title":"Body_build_tools_book_formatter_build_post"},"Body_detect_upload_language_api_upload_detect_language_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_detect_upload_language_api_upload_detect_language_post"},"Body_preview_tools_book_formatter_preview_post":{"properties":{"token":{"type":"string","title":"Token"},"options":{"type":"string","title":"Options","default":"{}"},"sections":{"type":"string","title":"Sections","default":"[]"},"section":{"type":"integer","title":"Section","default":-1}},"type":"object","required":["token"],"title":"Body_preview_tools_book_formatter_preview_post"},"Body_replace_thumbnail_api_audiobooks__audiobook_id__thumbnail_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_replace_thumbnail_api_audiobooks__audiobook_id__thumbnail_post"},"Body_upload_ebook_api_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"generation_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Mode","default":"full"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code","default":"en-US"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"voice_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Type"}},"type":"object","required":["file"],"title":"Body_upload_ebook_api_upload_post"},"Body_upload_ebook_public_api_upload_public_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"generation_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Mode","default":"full"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code","default":"en-US"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"voice_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Type"}},"type":"object","required":["file"],"title":"Body_upload_ebook_public_api_upload_public_post"},"Body_upload_sound_api_sounds_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"kind":{"type":"string","title":"Kind","default":"sfx"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["file"],"title":"Body_upload_sound_api_sounds_upload_post"},"BookDetailsRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"narrator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narrator"},"series":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series"},"series_part":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Part"},"publisher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher"},"publish_year":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publish Year"},"genre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"album":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Album"},"album_artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Album Artist"}},"type":"object","title":"BookDetailsRequest"},"ChapterResponse":{"properties":{"chapter_number":{"type":"integer","title":"Chapter Number"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"text_content":{"type":"string","title":"Text Content"},"original_text_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Text Content"},"word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count"},"id":{"type":"integer","title":"Id"},"audiobook_id":{"type":"integer","title":"Audiobook Id"},"audio_gcs_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Gcs Url"},"audio_duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Audio Duration Seconds"},"status":{"type":"string","title":"Status"},"source":{"type":"string","title":"Source","default":"formatted"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"translation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Status"},"translation_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["chapter_number","text_content","id","audiobook_id","status","created_at","updated_at"],"title":"ChapterResponse"},"CharacterCreate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"voice_gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Gender"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"}},"type":"object","title":"CharacterCreate"},"CharacterResponse":{"properties":{"name":{"type":"string","title":"Name"},"voice_gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Gender"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"},"id":{"type":"integer","title":"Id"},"audiobook_id":{"type":"integer","title":"Audiobook Id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"voice_settings":{"additionalProperties":true,"type":"object","title":"Voice Settings","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","audiobook_id","created_at","updated_at"],"title":"CharacterResponse"},"CharacterUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"voice_gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Gender"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"voice_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Voice Settings"}},"type":"object","title":"CharacterUpdate"},"ClearStylesRequest":{"properties":{"segment_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Segment Ids"}},"type":"object","title":"ClearStylesRequest"},"CreateChapterRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"CreateChapterRequest"},"DetectLanguageResponse":{"properties":{"detected_language_code":{"type":"string","title":"Detected Language Code"}},"type":"object","required":["detected_language_code"],"title":"DetectLanguageResponse"},"EmailLoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"redirect":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect"}},"type":"object","required":["email"],"title":"EmailLoginRequest"},"ExportRequest":{"properties":{"scope":{"type":"string","title":"Scope","default":"full"},"package":{"type":"string","title":"Package","default":"single"},"format":{"type":"string","title":"Format","default":"mp3"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"previous":{"type":"boolean","title":"Previous","default":false}},"type":"object","title":"ExportRequest"},"FindCharactersRequest":{"properties":{"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}},"type":"object","title":"FindCharactersRequest"},"GenerateAudiobookRequest":{"properties":{"scope":{"type":"string","title":"Scope","default":"full"},"chapter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Id"},"segment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Segment Id"}},"type":"object","title":"GenerateAudiobookRequest"},"GenerateRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"kind":{"type":"string","title":"Kind","default":"music"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"}},"type":"object","required":["prompt"],"title":"GenerateRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InsertSegmentRequest":{"properties":{"text":{"type":"string","title":"Text"},"where":{"type":"string","title":"Where","default":"after"},"keep_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keep Text"}},"type":"object","required":["text"],"title":"InsertSegmentRequest"},"MixRequest":{"properties":{"mix":{"additionalProperties":true,"type":"object","title":"Mix"}},"type":"object","required":["mix"],"title":"MixRequest"},"PlanSwitch":{"properties":{"plan":{"type":"string","title":"Plan"},"billing":{"type":"string","title":"Billing","default":"monthly"}},"type":"object","required":["plan"],"title":"PlanSwitch"},"RenameAudiobookRequest":{"properties":{"title":{"type":"string","title":"Title"}},"type":"object","required":["title"],"title":"RenameAudiobookRequest"},"RenameRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"RenameRequest"},"ReorderChaptersRequest":{"properties":{"chapter_ids":{"items":{"type":"integer"},"type":"array","title":"Chapter Ids"}},"type":"object","required":["chapter_ids"],"title":"ReorderChaptersRequest"},"SegmentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"chapter_id":{"type":"integer","title":"Chapter Id"},"position":{"type":"integer","title":"Position"},"kind":{"type":"string","title":"Kind","default":"sentence"},"paragraph_break":{"type":"boolean","title":"Paragraph Break","default":false},"text_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Content"},"character_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Character Id"},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"},"audio_duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Audio Duration Seconds"},"status":{"type":"string","title":"Status"},"is_stale":{"type":"boolean","title":"Is Stale","default":false},"has_audio":{"type":"boolean","title":"Has Audio","default":false},"playable":{"type":"boolean","title":"Playable","default":false},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["id","chapter_id","position","status"],"title":"SegmentResponse"},"SetLanguageRequest":{"properties":{"language_code":{"type":"string","title":"Language Code"}},"type":"object","required":["language_code"],"title":"SetLanguageRequest"},"SupportRequest":{"properties":{"subject":{"type":"string","title":"Subject"},"message":{"type":"string","title":"Message"}},"type":"object","required":["subject","message"],"title":"SupportRequest"},"SurveyResponse":{"properties":{"use_case":{"type":"string","title":"Use Case","default":""},"narration_quality":{"type":"string","title":"Narration Quality","default":""},"ease_of_use":{"type":"string","title":"Ease Of Use","default":""},"improve":{"items":{"type":"string"},"type":"array","title":"Improve","default":[]},"recommend":{"type":"string","title":"Recommend","default":""},"comments":{"type":"string","title":"Comments","default":""}},"type":"object","title":"SurveyResponse"},"UpdateChapterRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"text_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Content"}},"type":"object","title":"UpdateChapterRequest"},"UpdateSegmentCharacterRequest":{"properties":{"character_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Character Id"}},"type":"object","title":"UpdateSegmentCharacterRequest"},"UpdateSegmentRequest":{"properties":{"text_content":{"type":"string","title":"Text Content"}},"type":"object","required":["text_content"],"title":"UpdateSegmentRequest"},"UpdateSegmentStyleRequest":{"properties":{"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"}},"type":"object","title":"UpdateSegmentStyleRequest"},"UploadResponse":{"properties":{"audiobook_id":{"type":"integer","title":"Audiobook Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"total_chapters":{"type":"integer","title":"Total Chapters"},"message":{"type":"string","title":"Message"},"detected_language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Language Code"},"translation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Status"}},"type":"object","required":["audiobook_id","title","status","total_chapters","message"],"title":"UploadResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VoicePreviewRequest":{"properties":{"voice_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Voice Settings"}},"type":"object","title":"VoicePreviewRequest"}}}}