{"openapi":"3.1.0","info":{"title":"Joke API","description":"FastAPI service with Firebase authentication for joke management","version":"1.0.0"},"paths":{"/api/":{"get":{"tags":["api"],"summary":"Api Root","operationId":"api_root_api__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/all-jokes":{"get":{"tags":["api"],"summary":"Get All Jokes","description":"Get all jokes (requires authentication)","operationId":"get_all_jokes_api_all_jokes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/favorites":{"get":{"tags":["api"],"summary":"Get Favorite Jokes","description":"Get all favorite jokes for the authenticated user (requires authentication)","operationId":"get_favorite_jokes_api_users_favorites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api"],"summary":"Add To Favorite Jokes","description":"Add joke to the authenticated user's favorites (requires authentication)","operationId":"add_to_favorite_jokes_api_users_favorites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/created-jokes":{"get":{"tags":["api"],"summary":"Get User Created Jokes","description":"Get all jokes created by the authenticated user (requires authentication)","operationId":"get_user_created_jokes_api_users_created_jokes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api"],"summary":"Add Joke","description":"Add a new joke (requires authentication)","operationId":"add_joke_api_users_created_jokes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/liked-jokes":{"get":{"tags":["api"],"summary":"Get Liked Jokes","description":"Get all liked jokes for the authenticated user (requires authentication)","operationId":"get_liked_jokes_api_users_liked_jokes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/disliked-jokes":{"get":{"tags":["api"],"summary":"Get Disliked Jokes","description":"Get all disliked jokes for the authenticated user (requires authentication)","operationId":"get_disliked_jokes_api_users_disliked_jokes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/jokes/guest":{"post":{"tags":["api"],"summary":"Get Jokes For Guest","description":"Get jokes for guests (non-logged-in users).\nAccepts age_range, scenario, num_jokes, liked_jokes, and disliked_jokes.\nReturns random jokes filtered by preferences.","operationId":"get_jokes_for_guest_api_jokes_guest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestJokesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jokes/generate":{"get":{"tags":["api"],"summary":"Generate Jokes With Gemini","description":"Generate 10 jokes using Gemini AI based on age range and scenario.\nIf authenticated, personalizes jokes based on user's liked/disliked history.\nWorks without authentication for generic joke generation.\n\nQuery parameters:\n- age_range: e.g., \"5-8\", \"8-12\", \"all\"\n- scenario: e.g., \"school\", \"family\", \"animals\"","operationId":"generate_jokes_with_gemini_api_jokes_generate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"age_range","in":"query","required":true,"schema":{"type":"string","title":"Age Range"}},{"name":"scenario","in":"query","required":true,"schema":{"type":"string","title":"Scenario"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiJokeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jokes":{"get":{"tags":["api"],"summary":"Get Jokes","description":"Get jokes for the authenticated user based on age range and scenario.\nFilters out liked, disliked, and favorited jokes.\nIf not enough jokes remain, generates new ones from Gemini.\n\nQuery parameters:\n- age_range: e.g., \"5-10\", \"10-15\", \"adult\"\n- scenario: e.g., \"school\", \"family\", \"animals\"\n- num_jokes: Optional, default is 5","operationId":"get_jokes_api_jokes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"age_range","in":"query","required":true,"schema":{"type":"string","title":"Age Range"}},{"name":"scenario","in":"query","required":true,"schema":{"type":"string","title":"Scenario"}},{"name":"num_jokes","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":5,"title":"Num Jokes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jokes/{joke_id}/audio":{"get":{"tags":["api"],"summary":"Get Audio For Joke","description":"Get the audio URL for a joke.\nFirst tries to get the default audio URL from the joke.\nIf not found, generates audio using ElevenLabs with two voices:\n- Charon for the setup\n- Jester for the punchline\nReturns the audio URL and saves it asynchronously to the joke document.","operationId":"get_audio_for_joke_api_jokes__joke_id__audio_get","parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jokes/{joke_id}/audio/{voice_id}":{"get":{"tags":["api"],"summary":"Get Audio For Joke With Voice","description":"Get the audio URL for a joke with a specific voice.\nFirst checks if audio already exists in joke_audios collection.\nIf not found, generates audio using ElevenLabs with the specified voice.\nReturns the audio URL and saves it asynchronously to the database.","operationId":"get_audio_for_joke_with_voice_api_jokes__joke_id__audio__voice_id__get","parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}},{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/voices":{"get":{"tags":["api"],"summary":"Get Voices","description":"Get all voices for the authenticated user.\nReturns voice_id, voice_name, and voice_url for each voice.\nRequires authentication.","operationId":"get_voices_api_users_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api"],"summary":"Add Voice","description":"Create a new voice and save it to the voices collection.\nAlso updates the user's voices array.\nRequires authentication.","operationId":"add_voice_api_users_voices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/default-voices":{"get":{"tags":["api"],"summary":"Get Default Voices","description":"Get all default voices available to all users.\nReturns voice_id, voice_name, voice_url, and voice_description for each voice.\nNo authentication required.","operationId":"get_default_voices_api_default_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceListResponse"}}}}}}},"/api/users/voices/{voice_id}":{"delete":{"tags":["api"],"summary":"Delete Voice","description":"Delete a voice for the authenticated user.\nRemoves the voice from the user's voices array and deletes the voice document.\nRequires authentication and the voice must belong to the user.","operationId":"delete_voice_api_users_voices__voice_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/login":{"post":{"tags":["api"],"summary":"Login","description":"Verify Firebase ID token and return user information\nThis endpoint expects a Firebase ID token in the request body\nCreates or updates user information in the database","operationId":"login_api_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jokes/polish":{"post":{"tags":["api"],"summary":"Polish Joke","description":"Polish a joke to make it funnier and more kid-friendly using AI.\n\nThis endpoint takes a joke (setup + punchline) and returns a polished version\nwith improved clarity, humor, and kid-friendliness.\n\nNo authentication required - available to all users.","operationId":"polish_joke_api_jokes_polish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolishJokeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiJokeItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jokes/generate-with-context":{"post":{"tags":["api"],"summary":"Generate Joke With Context","description":"Generate a single joke based on free-form context (optional age_range).\nDoes not save to database; returns the generated joke.","operationId":"generate_joke_with_context_api_jokes_generate_with_context_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextJokeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiJokeItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/like-history/{joke_id}":{"post":{"tags":["api"],"summary":"Add To User Liked History","description":"Add joke to the authenticated user's like_history and remove from dislike_history (requires authentication)","operationId":"add_to_user_liked_history_api_users_like_history__joke_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LikeDislikeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["api"],"summary":"Delete From User Like History","description":"Remove joke from the authenticated user's like_history (requires authentication)","operationId":"delete_from_user_like_history_api_users_like_history__joke_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LikeDislikeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/dislike-history/{joke_id}":{"post":{"tags":["api"],"summary":"Add To User Dislike History","description":"Add joke to the authenticated user's dislike_history and remove from like_history (requires authentication)","operationId":"add_to_user_dislike_history_api_users_dislike_history__joke_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LikeDislikeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["api"],"summary":"Delete From User Dislike History","description":"Remove joke from the authenticated user's dislike_history (requires authentication)","operationId":"delete_from_user_dislike_history_api_users_dislike_history__joke_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LikeDislikeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/history":{"post":{"tags":["api"],"summary":"Add To Viewed History","description":"Add a joke to the user's viewed_history.\nRequires authentication.","operationId":"add_to_viewed_history_api_users_history_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeJarRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JokeJarResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/created-jokes/{joke_id}":{"delete":{"tags":["api"],"summary":"Delete User Created Joke","description":"Delete a joke from the authenticated user's created jokes (requires authentication)","operationId":"delete_user_created_joke_api_users_created_jokes__joke_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteJokeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/favorites/{joke_id}":{"delete":{"tags":["api"],"summary":"Delete Favorite Jokes","description":"Delete a joke from the authenticated user's favorites (requires authentication)","operationId":"delete_favorite_jokes_api_users_favorites__joke_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"joke_id","in":"path","required":true,"schema":{"type":"string","title":"Joke Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/_ah/warmup":{"get":{"summary":"Warmup","description":"Cloud Run warmup endpoint.\nCalled by Cloud Run during instance startup when min-instances > 0.\nPre-loads heavy dependencies to reduce first-request latency.","operationId":"warmup__ah_warmup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{path_name}":{"post":{"summary":"Catch All","operationId":"catch_all__path_name__post","parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Catch All","operationId":"catch_all__path_name__post","parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ContextJokeRequest":{"properties":{"context":{"type":"string","title":"Context"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range"}},"type":"object","required":["context"],"title":"ContextJokeRequest"},"DeleteJokeResponse":{"properties":{"message":{"type":"string","title":"Message"},"success":{"type":"boolean","title":"Success"},"joke_id":{"type":"string","title":"Joke Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["message","success","joke_id","user_id"],"title":"DeleteJokeResponse"},"FavoriteRequest":{"properties":{"joke_id":{"type":"string","title":"Joke Id"}},"type":"object","required":["joke_id"],"title":"FavoriteRequest"},"FavoriteResponse":{"properties":{"message":{"type":"string","title":"Message"},"success":{"type":"boolean","title":"Success"},"joke_id":{"type":"string","title":"Joke Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["message","success","joke_id","user_id"],"title":"FavoriteResponse"},"GeminiJokeItem":{"properties":{"joke_setup":{"type":"string","title":"Joke Setup"},"joke_punchline":{"type":"string","title":"Joke Punchline"},"joke_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Joke Content","default":""},"emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emoji","default":""}},"type":"object","required":["joke_setup","joke_punchline"],"title":"GeminiJokeItem"},"GeminiJokeResponse":{"properties":{"jokes":{"items":{"$ref":"#/components/schemas/GeminiJokeItem"},"type":"array","title":"Jokes"}},"type":"object","required":["jokes"],"title":"GeminiJokeResponse"},"GuestJokesRequest":{"properties":{"age_range":{"type":"string","title":"Age Range"},"scenario":{"type":"string","title":"Scenario"},"num_jokes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Jokes","default":5},"liked_jokes":{"anyOf":[{"items":{"$ref":"#/components/schemas/JokePair"},"type":"array"},{"type":"null"}],"title":"Liked Jokes","default":[]},"disliked_jokes":{"anyOf":[{"items":{"$ref":"#/components/schemas/JokePair"},"type":"array"},{"type":"null"}],"title":"Disliked Jokes","default":[]}},"type":"object","required":["age_range","scenario"],"title":"GuestJokesRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JokeCreate":{"properties":{"joke_setup":{"type":"string","title":"Joke Setup"},"joke_punchline":{"type":"string","title":"Joke Punchline"},"joke_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Joke Content","default":""},"default_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Audio Url","default":""},"audio_urls":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Audio Urls","default":[]},"scenarios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scenarios","default":[]},"age_range":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Age Range","default":[]}},"type":"object","required":["joke_setup","joke_punchline"],"title":"JokeCreate"},"JokeJarRequest":{"properties":{"creator_id":{"type":"string","title":"Creator Id"},"joke_id":{"type":"string","title":"Joke Id"}},"type":"object","required":["creator_id","joke_id"],"title":"JokeJarRequest"},"JokeJarResponse":{"properties":{"message":{"type":"string","title":"Message"},"success":{"type":"boolean","title":"Success"},"creator_id":{"type":"string","title":"Creator Id"},"joke_id":{"type":"string","title":"Joke Id"}},"type":"object","required":["message","success","creator_id","joke_id"],"title":"JokeJarResponse"},"JokeListResponse":{"properties":{"jokes":{"items":{"$ref":"#/components/schemas/JokeResponse"},"type":"array","title":"Jokes"}},"type":"object","required":["jokes"],"title":"JokeListResponse"},"JokePair":{"properties":{"setup":{"type":"string","title":"Setup"},"punchline":{"type":"string","title":"Punchline"}},"type":"object","required":["setup","punchline"],"title":"JokePair"},"JokeResponse":{"properties":{"joke_id":{"type":"string","title":"Joke Id"},"joke_setup":{"type":"string","title":"Joke Setup"},"joke_punchline":{"type":"string","title":"Joke Punchline"},"joke_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Joke Content","default":""},"default_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Audio Url","default":""},"audio_urls":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Audio Urls","default":[]},"scenarios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scenarios","default":[]},"age_range":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Age Range","default":[]},"emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emoji","default":""},"created_by_customer":{"type":"boolean","title":"Created By Customer"},"creator_id":{"type":"string","title":"Creator Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"random_val":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Random Val"}},"type":"object","required":["joke_id","joke_setup","joke_punchline","created_by_customer","creator_id"],"title":"JokeResponse"},"LikeDislikeResponse":{"properties":{"message":{"type":"string","title":"Message"},"success":{"type":"boolean","title":"Success"},"joke_id":{"type":"string","title":"Joke Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["message","success","joke_id","user_id"],"title":"LikeDislikeResponse"},"LoginRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"LoginRequest"},"LoginResponse":{"properties":{"message":{"type":"string","title":"Message"},"user_id":{"type":"string","title":"User Id"},"user_email":{"type":"string","title":"User Email"}},"type":"object","required":["message","user_id","user_email"],"title":"LoginResponse"},"PolishJokeRequest":{"properties":{"setup":{"type":"string","title":"Setup"},"punchline":{"type":"string","title":"Punchline"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range","default":"5-12"}},"type":"object","required":["setup","punchline"],"title":"PolishJokeRequest"},"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"},"VoiceCreate":{"properties":{"voice_id":{"type":"string","title":"Voice Id"},"creator_id":{"type":"string","title":"Creator Id"},"voice_name":{"type":"string","title":"Voice Name"},"voice_url":{"type":"string","title":"Voice Url"}},"type":"object","required":["voice_id","creator_id","voice_name","voice_url"],"title":"VoiceCreate"},"VoiceItem":{"properties":{"voice_id":{"type":"string","title":"Voice Id"},"voice_name":{"type":"string","title":"Voice Name"},"voice_url":{"type":"string","title":"Voice Url"},"voice_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Description","default":""}},"type":"object","required":["voice_id","voice_name","voice_url"],"title":"VoiceItem"},"VoiceListResponse":{"properties":{"voices":{"items":{"$ref":"#/components/schemas/VoiceItem"},"type":"array","title":"Voices"}},"type":"object","required":["voices"],"title":"VoiceListResponse"},"VoiceResponse":{"properties":{"voice_id":{"type":"string","title":"Voice Id"},"creator_id":{"type":"string","title":"Creator Id"},"voice_name":{"type":"string","title":"Voice Name"},"voice_url":{"type":"string","title":"Voice Url"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["voice_id","creator_id","voice_name","voice_url"],"title":"VoiceResponse"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}