{"openapi":"3.1.0","info":{"title":"꿀보 API","description":"꿀보(꿀보이스) 음성 주고받기 서비스 API prototype","version":"0.1.0"},"paths":{"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google/login":{"get":{"tags":["auth"],"summary":"Google Login","operationId":"google_login_api_v1_auth_google_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/google/callback":{"get":{"tags":["auth"],"summary":"Google Callback","operationId":"google_callback_api_v1_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google/token":{"post":{"tags":["auth"],"summary":"Google Token","description":"Exchange a Google ID token (native Android/iOS Google Sign-In) for a service JWT.\n\nThe app must request the ID token using the WEB client ID as serverClientId,\nso the token audience matches the server-side client ID.","operationId":"google_token_api_v1_auth_google_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleIdTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/apple/token":{"post":{"tags":["auth"],"summary":"Apple Token","description":"Exchange a Sign in with Apple identity token for a service JWT.\n\nWeb, iOS, and Android clients all send the Apple identity token here.\nThe token audience must match one of APPLE_ALLOWED_CLIENT_IDS.","operationId":"apple_token_api_v1_auth_apple_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleIdTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["auth","toss"],"summary":"Delete Me","operationId":"delete_me_api_v1_auth_me_delete","responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}}}}},"/api/v1/auth/me/gender":{"put":{"tags":["auth"],"summary":"Update Gender","operationId":"update_gender_api_v1_auth_me_gender_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenderUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/devices":{"post":{"tags":["auth"],"summary":"Register Device","operationId":"register_device_api_v1_auth_devices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRegister"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/presence":{"post":{"tags":["auth"],"summary":"Heartbeat","operationId":"heartbeat_api_v1_auth_presence_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/toss/token":{"post":{"tags":["auth","toss"],"summary":"Toss Token","operationId":"toss_token_api_v1_auth_toss_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}}}}},"/api/v1/auth/toss/onboarding":{"put":{"tags":["auth","toss"],"summary":"Onboarding","operationId":"onboarding_api_v1_auth_toss_onboarding_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossNicknameRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/toss/notification-agreement":{"put":{"tags":["auth","toss"],"summary":"Agreement","operationId":"agreement_api_v1_auth_toss_notification_agreement_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossAgreementRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/toss/unlink":{"post":{"tags":["auth","toss"],"summary":"Unlink","operationId":"unlink_api_v1_auth_toss_unlink_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TossUnlinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voices":{"post":{"tags":["voices"],"summary":"Upload Voice","operationId":"upload_voice_api_v1_voices_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipient_count","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":3,"title":"Recipient Count"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_voice_api_v1_voices_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voices/{voice_id}/reply":{"post":{"tags":["voices"],"summary":"Reply Voice","operationId":"reply_voice_api_v1_voices__voice_id__reply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"integer","title":"Voice Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_reply_voice_api_v1_voices__voice_id__reply_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voices/{voice_id}/download-url":{"get":{"tags":["voices"],"summary":"Voice Download Url","operationId":"voice_download_url_api_v1_voices__voice_id__download_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"integer","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voices/inbox":{"get":{"tags":["voices"],"summary":"Inbox","operationId":"inbox_api_v1_voices_inbox_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InboxItem"},"type":"array","title":"Response Inbox Api V1 Voices Inbox Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/voices/deliveries/{delivery_id}/download-url":{"get":{"tags":["voices"],"summary":"Download Url","operationId":"download_url_api_v1_voices_deliveries__delivery_id__download_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"integer","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voices/deliveries/{delivery_id}":{"delete":{"tags":["voices"],"summary":"Delete Received Voice","operationId":"delete_received_voice_api_v1_voices_deliveries__delivery_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"integer","title":"Delivery Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voices/{voice_id}/share":{"post":{"tags":["voice-shares"],"summary":"Create Voice Share","operationId":"create_voice_share_api_v1_voices__voice_id__share_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"integer","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/voice-shares/{token}":{"get":{"tags":["voice-shares"],"summary":"Public Voice Share","operationId":"public_voice_share_api_v1_public_voice_shares__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicVoiceShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/voice-shares/{token}/reply":{"post":{"tags":["voice-shares"],"summary":"Reply Public Voice Share","operationId":"reply_public_voice_share_api_v1_public_voice_shares__token__reply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_reply_public_voice_share_api_v1_public_voice_shares__token__reply_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShareReplyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-shares":{"get":{"tags":["voice-shares"],"summary":"List Voice Shares","operationId":"list_voice_shares_api_v1_voice_shares_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceShareListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/voice-shares/{share_id}":{"delete":{"tags":["voice-shares"],"summary":"Revoke Voice Share","operationId":"revoke_voice_share_api_v1_voice_shares__share_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"integer","title":"Share Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations":{"get":{"tags":["conversations"],"summary":"List Conversations","operationId":"list_conversations_api_v1_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationOut"},"title":"Response List Conversations Api V1 Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/messages":{"get":{"tags":["conversations"],"summary":"Conversation Messages","operationId":"conversation_messages_api_v1_conversations__conversation_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"created_at cursor. desc uses older-than, asc uses newer-than","title":"Cursor"},"description":"created_at cursor. desc uses older-than, asc uses newer-than"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/read":{"post":{"tags":["conversations"],"summary":"Mark Conversation Read","operationId":"mark_conversation_read_api_v1_conversations__conversation_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/voices":{"post":{"tags":["conversations"],"summary":"Send Conversation Voice","operationId":"send_conversation_voice_api_v1_conversations__conversation_id__voices_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_send_conversation_voice_api_v1_conversations__conversation_id__voices_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["system"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AppleIdTokenRequest":{"properties":{"id_token":{"type":"string","minLength":1,"title":"Id Token","description":"Apple identity token issued by Sign in with Apple"},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name","description":"Optional full name; Apple only sends it on first consent"}},"type":"object","required":["id_token"],"title":"AppleIdTokenRequest"},"Body_reply_public_voice_share_api_v1_public_voice_shares__token__reply_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"duration_ms":{"type":"integer","title":"Duration Ms"}},"type":"object","required":["file","duration_ms"],"title":"Body_reply_public_voice_share_api_v1_public_voice_shares__token__reply_post"},"Body_reply_voice_api_v1_voices__voice_id__reply_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["file"],"title":"Body_reply_voice_api_v1_voices__voice_id__reply_post"},"Body_send_conversation_voice_api_v1_conversations__conversation_id__voices_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["file"],"title":"Body_send_conversation_voice_api_v1_conversations__conversation_id__voices_post"},"Body_upload_voice_api_v1_voices_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["file"],"title":"Body_upload_voice_api_v1_voices_post"},"ConversationLastVoiceOut":{"properties":{"voice_id":{"type":"integer","title":"Voice Id"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["voice_id","created_at"],"title":"ConversationLastVoiceOut"},"ConversationMessageOut":{"properties":{"message_id":{"type":"integer","title":"Message Id"},"voice_id":{"type":"integer","title":"Voice Id"},"conversation_id":{"type":"integer","title":"Conversation Id"},"sender_id":{"type":"integer","title":"Sender Id"},"sender_nickname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Nickname"},"is_mine":{"type":"boolean","title":"Is Mine"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"download_url_expires_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Download Url Expires In"},"reply_to_voice_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply To Voice Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["message_id","voice_id","conversation_id","sender_id","is_mine","created_at","status"],"title":"ConversationMessageOut"},"ConversationMessagesResponse":{"properties":{"conversation_id":{"type":"integer","title":"Conversation Id"},"order":{"type":"string","enum":["asc","desc"],"title":"Order"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"messages":{"items":{"$ref":"#/components/schemas/ConversationMessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["conversation_id","order","messages"],"title":"ConversationMessagesResponse"},"ConversationOut":{"properties":{"conversation_id":{"type":"integer","title":"Conversation Id"},"other_user":{"$ref":"#/components/schemas/ConversationUserOut"},"last_voice":{"anyOf":[{"$ref":"#/components/schemas/ConversationLastVoiceOut"},{"type":"null"}]},"unread_count":{"type":"integer","title":"Unread Count"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["conversation_id","other_user","unread_count","updated_at"],"title":"ConversationOut"},"ConversationUserOut":{"properties":{"user_id":{"type":"integer","title":"User Id"},"nickname":{"type":"string","title":"Nickname"}},"type":"object","required":["user_id","nickname"],"title":"ConversationUserOut"},"DeliveryOut":{"properties":{"id":{"type":"integer","title":"Id"},"voice_id":{"type":"integer","title":"Voice Id"},"recipient_id":{"type":"integer","title":"Recipient Id"},"conversation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Conversation Id"},"status":{"type":"string","title":"Status"},"push_status":{"type":"string","title":"Push Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"}},"type":"object","required":["id","voice_id","recipient_id","status","push_status","created_at"],"title":"DeliveryOut"},"DeviceOut":{"properties":{"id":{"type":"integer","title":"Id"},"platform":{"type":"string","title":"Platform"},"push_token":{"type":"string","title":"Push Token"}},"type":"object","required":["id","platform","push_token"],"title":"DeviceOut"},"DeviceRegister":{"properties":{"platform":{"type":"string","enum":["android","ios","web"],"title":"Platform","description":"Client platform. Mobile clients must send an FCM Registration Token in push_token."},"push_token":{"type":"string","maxLength":500,"minLength":1,"title":"Push Token","description":"FCM Registration Token. iOS also sends FCM token, not the raw APNs token."}},"type":"object","required":["platform","push_token"],"title":"DeviceRegister"},"DownloadUrlResponse":{"properties":{"delivery_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delivery Id"},"voice_id":{"type":"integer","title":"Voice Id"},"download_url":{"type":"string","title":"Download Url"},"expires_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In"}},"type":"object","required":["voice_id","download_url"],"title":"DownloadUrlResponse"},"GenderUpdate":{"properties":{"gender":{"type":"string","enum":["male","female"],"title":"Gender"}},"type":"object","required":["gender"],"title":"GenderUpdate"},"GoogleIdTokenRequest":{"properties":{"id_token":{"type":"string","minLength":1,"title":"Id Token","description":"Google ID token issued to the app (audience = web client ID)"}},"type":"object","required":["id_token"],"title":"GoogleIdTokenRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InboxItem":{"properties":{"delivery_id":{"type":"integer","title":"Delivery Id"},"voice_id":{"type":"integer","title":"Voice Id"},"sender_id":{"type":"integer","title":"Sender Id"},"sender_nickname":{"type":"string","title":"Sender Nickname"},"status":{"type":"string","title":"Status"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["delivery_id","voice_id","sender_id","sender_nickname","status","content_type","size_bytes","created_at"],"title":"InboxItem"},"PublicShareReplyOut":{"properties":{"conversation_id":{"type":"integer","title":"Conversation Id"},"voice_id":{"type":"integer","title":"Voice Id"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["conversation_id","voice_id"],"title":"PublicShareReplyOut"},"PublicVoiceShareOut":{"properties":{"sender_nickname":{"type":"string","title":"Sender Nickname"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"status":{"type":"string","title":"Status"},"reply_count":{"type":"integer","title":"Reply Count"},"max_replies":{"type":"integer","title":"Max Replies"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"can_reply":{"type":"boolean","title":"Can Reply"}},"type":"object","required":["sender_nickname","status","reply_count","max_replies","expires_at","can_reply"],"title":"PublicVoiceShareOut"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token"],"title":"TokenResponse"},"TossAgreementRequest":{"properties":{"result_type":{"type":"string","enum":["newAgreement","alreadyAgreed","agreementRejected","unsupported","failed"],"title":"Result Type"},"agreement_scope":{"type":"string","const":"voice_activity","title":"Agreement Scope"},"template_code":{"type":"string","title":"Template Code"}},"additionalProperties":false,"type":"object","required":["result_type","agreement_scope","template_code"],"title":"TossAgreementRequest"},"TossErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail"},"code":{"type":"string","title":"Code"}},"type":"object","required":["detail","code"],"title":"TossErrorResponse"},"TossNicknameRequest":{"properties":{"nickname":{"type":"string","title":"Nickname"}},"type":"object","required":["nickname"],"title":"TossNicknameRequest"},"TossTokenRequest":{"properties":{"authorization_code":{"type":"string","minLength":1,"title":"Authorization Code"},"referrer":{"type":"string","enum":["DEFAULT","SANDBOX"],"title":"Referrer"}},"type":"object","required":["authorization_code","referrer"],"title":"TossTokenRequest"},"TossUnlinkRequest":{"properties":{"userKey":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Userkey"},"referrer":{"anyOf":[{"type":"string","enum":["UNLINK","WITHDRAWAL_TERMS","WITHDRAWAL_TOSS"]},{"type":"null"}],"title":"Referrer"}},"type":"object","required":["userKey"],"title":"TossUnlinkRequest"},"UploadResponse":{"properties":{"voice_id":{"type":"integer","title":"Voice Id"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"voice":{"$ref":"#/components/schemas/VoiceOut"},"deliveries":{"items":{"$ref":"#/components/schemas/DeliveryOut"},"type":"array","title":"Deliveries"}},"type":"object","required":["voice_id","voice","deliveries"],"title":"UploadResponse"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":100,"minLength":8,"title":"Password"},"nickname":{"type":"string","title":"Nickname"}},"type":"object","required":["email","password","nickname"],"title":"UserCreate"},"UserLogin":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"UserLogin"},"UserOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"nickname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nickname"},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}],"title":"Gender"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"auth_provider":{"type":"string","title":"Auth Provider","default":"password"},"onboarding_required":{"type":"boolean","title":"Onboarding Required","default":false}},"type":"object","required":["id","created_at"],"title":"UserOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VoiceOut":{"properties":{"id":{"type":"integer","title":"Id"},"sender_id":{"type":"integer","title":"Sender Id"},"reply_to_voice_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply To Voice Id"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","sender_id","content_type","size_bytes","created_at"],"title":"VoiceOut"},"VoiceShareListItem":{"properties":{"share_id":{"type":"integer","title":"Share Id"},"voice_id":{"type":"integer","title":"Voice Id"},"share_url":{"type":"string","title":"Share Url"},"status":{"type":"string","title":"Status"},"reply_count":{"type":"integer","title":"Reply Count"},"max_replies":{"type":"integer","title":"Max Replies"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["share_id","voice_id","share_url","status","reply_count","max_replies","expires_at","created_at"],"title":"VoiceShareListItem"},"VoiceShareListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VoiceShareListItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"VoiceShareListResponse"},"VoiceShareOut":{"properties":{"share_id":{"type":"integer","title":"Share Id"},"share_url":{"type":"string","title":"Share Url"},"status":{"type":"string","title":"Status"},"reply_count":{"type":"integer","title":"Reply Count"},"max_replies":{"type":"integer","title":"Max Replies"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["share_id","share_url","status","reply_count","max_replies","expires_at"],"title":"VoiceShareOut"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}