{"openapi":"3.1.0","info":{"title":"RealtyDecode API","version":"1.0.0"},"paths":{"/api/v1/auth/register":{"post":{"tags":["auth","auth"],"summary":"Register","description":"Register new user. Sets HttpOnly cookie with verification code session.","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-email":{"post":{"tags":["auth","auth"],"summary":"Verify Email Endpoint","description":"Verify email with code.","operationId":"verify_email_endpoint_api_v1_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth","auth"],"summary":"Login","description":"Login. Sets HttpOnly cookies for access and refresh tokens.","operationId":"login_api_v1_auth_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/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google":{"post":{"tags":["auth","auth"],"summary":"Google Auth","description":"Authenticate with Google ID token. Creates user on first sign-in.","operationId":"google_auth_api_v1_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["auth","auth"],"summary":"Refresh","description":"Read refresh cookie, return new access token cookie.","operationId":"refresh_api_v1_auth_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth","auth"],"summary":"Logout","description":"Clear auth cookies (match attributes used when setting them).","operationId":"logout_api_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/change-password":{"post":{"tags":["auth","auth"],"summary":"Change Password","description":"Change password for the authenticated user.","operationId":"change_password_api_v1_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"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/forgot-password":{"post":{"tags":["auth","auth"],"summary":"Forgot Password","description":"Request a password reset. Always responds the same to avoid email enumeration.","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"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/reset-password":{"post":{"tags":["auth","auth"],"summary":"Reset Password","description":"Reset password using token `email:code` and onboarding_data.reset_code.","operationId":"reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"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/me":{"get":{"tags":["auth","auth"],"summary":"Get Me","description":"Return current authenticated user (with assigned-client count for agents).","operationId":"get_me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}}}},"/api/v1/users":{"get":{"tags":["users","users"],"summary":"List Users","description":"List all users (admin only).","operationId":"list_users_api_v1_users_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}":{"get":{"tags":["users","users"],"summary":"Get User","description":"Get user by ID (admin only).","operationId":"get_user_api_v1_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["users","users"],"summary":"Update User","description":"Update user profile. User can update own, admin can update any.","operationId":"update_user_api_v1_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/approve":{"post":{"tags":["users","users"],"summary":"Approve User Endpoint","description":"Approve user (admin only).","operationId":"approve_user_endpoint_api_v1_users__user_id__approve_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/onboarding":{"post":{"tags":["users","users"],"summary":"Save Onboarding","description":"Save onboarding data for user.","operationId":"save_onboarding_api_v1_users__user_id__onboarding_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingData"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties":{"post":{"tags":["properties","properties"],"summary":"Create Property","description":"Create a property.\n\nDefaults to the current user; admins and assigned agents may set ``user_id``\nto create the property on behalf of a client.","operationId":"create_property_api_v1_properties_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["properties","properties"],"summary":"List Properties","description":"List properties the current user may see.\n\nClients see their own; agents see their own plus assigned clients'\n(optionally narrowed with ``client_id``); admins see all.","operationId":"list_properties_api_v1_properties_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}":{"get":{"tags":["properties","properties"],"summary":"Get Property","description":"Get property by ID.","operationId":"get_property_api_v1_properties__property_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["properties","properties"],"summary":"Update Property","description":"Update property.","operationId":"update_property_api_v1_properties__property_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["properties","properties"],"summary":"Delete Property","description":"Delete property.","operationId":"delete_property_api_v1_properties__property_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/transactions":{"post":{"tags":["transactions","transactions"],"summary":"Create Transaction","description":"Create transaction for current user.","operationId":"create_transaction_api_v1_transactions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["transactions","transactions"],"summary":"List Transactions","description":"List transactions for current user.","operationId":"list_transactions_api_v1_transactions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/transactions/{transaction_id}":{"get":{"tags":["transactions","transactions"],"summary":"Get Transaction","description":"Get transaction by ID.","operationId":"get_transaction_api_v1_transactions__transaction_id__get","parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transaction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["transactions","transactions"],"summary":"Update Transaction","description":"Update transaction with status transitions.","operationId":"update_transaction_api_v1_transactions__transaction_id__patch","parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transaction Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["transactions","transactions"],"summary":"Delete Transaction","description":"Delete transaction.","operationId":"delete_transaction_api_v1_transactions__transaction_id__delete","parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transaction Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/upload-url":{"post":{"tags":["documents","documents"],"summary":"Get Upload Url","description":"Generate presigned URL for upload.","operationId":"get_upload_url_api_v1_documents_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents":{"post":{"tags":["documents","documents"],"summary":"Create Document","description":"Create document metadata after upload.","operationId":"create_document_api_v1_documents_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["documents","documents"],"summary":"List Documents","description":"List documents the current user may see.\n\nClients see their own; agents see their own plus assigned clients'\n(optionally narrowed with ``client_id``); admins see all.","operationId":"list_documents_api_v1_documents_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},{"name":"transaction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_id}":{"get":{"tags":["documents","documents"],"summary":"Get Document","description":"Get document with download URL.","operationId":"get_document_api_v1_documents__document_id__get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["documents","documents"],"summary":"Update Document","description":"Update document metadata.","operationId":"update_document_api_v1_documents__document_id__patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["documents","documents"],"summary":"Delete Document","description":"Soft delete (archive) document. Admin only.","operationId":"delete_document_api_v1_documents__document_id__delete","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis-reports":{"post":{"tags":["analysis","analysis"],"summary":"Create Report","description":"Create analysis report. CMA requests are generated asynchronously.\n\nCMA execution is admin-only: the comp engine is run from the admin side on\nbehalf of a client. Only admins may also set ``user_id`` to assign a report\nto another user.","operationId":"create_report_api_v1_analysis_reports_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["analysis","analysis"],"summary":"List Reports","description":"List reports the current user may see.\n\nClients see only their own reports; agents see their own plus their\nassigned clients' reports (optionally narrowed with ``client_id``); admins\nsee all reports.","operationId":"list_reports_api_v1_analysis_reports_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}},{"name":"report_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis-reports/{report_id}/pdf":{"get":{"tags":["analysis","analysis"],"summary":"Get Report Pdf","description":"Return report as PDF, using S3/MinIO cache when configured.","operationId":"get_report_pdf_api_v1_analysis_reports__report_id__pdf_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis-reports/{report_id}":{"get":{"tags":["analysis","analysis"],"summary":"Get Report","description":"Get full report with HTML content.","operationId":"get_report_api_v1_analysis_reports__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["analysis","analysis"],"summary":"Update Report","description":"Update report (admin only).","operationId":"update_report_api_v1_analysis_reports__report_id__patch","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis-reports/{report_id}/publish":{"post":{"tags":["analysis","analysis"],"summary":"Publish Report","description":"Publish report (admin only).","operationId":"publish_report_api_v1_analysis_reports__report_id__publish_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations":{"post":{"tags":["messages","messages"],"summary":"Create Conversation","description":"Create conversation.\n\nThe creator is always a participant. An agent/admin may also pass\n``client_id`` to open the thread directly with an assigned client.","operationId":"create_conversation_api_v1_conversations_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["messages","messages"],"summary":"List Conversations","description":"List conversations for current user.","operationId":"list_conversations_api_v1_conversations_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}}],"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}/participants":{"post":{"tags":["messages","messages"],"summary":"Add Participant","description":"Add a participant to a conversation.\n\nThe requester must already be a participant (or admin), and must be allowed\nto act for the user being added (admin, or agent assigned to that client).","operationId":"add_participant_api_v1_conversations__conversation_id__participants_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/messages":{"post":{"tags":["messages","messages"],"summary":"Send Message","description":"Send message in conversation.","operationId":"send_message_api_v1_conversations__conversation_id__messages_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["messages","messages"],"summary":"List Messages","description":"List messages in conversation, paginated.","operationId":"list_messages_api_v1_conversations__conversation_id__messages_get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/offers":{"post":{"tags":["offers","offers"],"summary":"Create Offer","description":"Create offer.","operationId":"create_offer_api_v1_offers_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["offers","offers"],"summary":"List Offers","description":"List offers for current user.","operationId":"list_offers_api_v1_offers_get","parameters":[{"name":"transaction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OfferResponse"},"title":"Response List Offers Api V1 Offers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/offers/{offer_id}":{"get":{"tags":["offers","offers"],"summary":"Get Offer","description":"Get offer by ID.","operationId":"get_offer_api_v1_offers__offer_id__get","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["offers","offers"],"summary":"Update Offer","description":"Update offer with status management.","operationId":"update_offer_api_v1_offers__offer_id__patch","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["offers","offers"],"summary":"Delete Offer","description":"Delete offer.","operationId":"delete_offer_api_v1_offers__offer_id__delete","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/appointments":{"post":{"tags":["appointments","appointments"],"summary":"Create Appointment","description":"Create appointment.","operationId":"create_appointment_api_v1_appointments_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["appointments","appointments"],"summary":"List Appointments","description":"List appointments for current user.","operationId":"list_appointments_api_v1_appointments_get","parameters":[{"name":"transaction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentResponse"},"title":"Response List Appointments Api V1 Appointments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/appointments/{appointment_id}":{"get":{"tags":["appointments","appointments"],"summary":"Get Appointment","description":"Get appointment by ID.","operationId":"get_appointment_api_v1_appointments__appointment_id__get","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["appointments","appointments"],"summary":"Update Appointment","description":"Update appointment with status management.","operationId":"update_appointment_api_v1_appointments__appointment_id__patch","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["appointments","appointments"],"summary":"Delete Appointment","description":"Delete appointment.","operationId":"delete_appointment_api_v1_appointments__appointment_id__delete","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notifications","notifications"],"summary":"List Notifications","description":"List notifications for current user, paginated.","operationId":"list_notifications_api_v1_notifications_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/unread-count":{"get":{"tags":["notifications","notifications"],"summary":"Get Unread Count Endpoint","description":"Get unread notification count.","operationId":"get_unread_count_endpoint_api_v1_notifications_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/notifications/{notification_id}/read":{"post":{"tags":["notifications","notifications"],"summary":"Mark Notification Read","description":"Mark notification as read.","operationId":"mark_notification_read_api_v1_notifications__notification_id__read_post","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/stats":{"get":{"tags":["admin","admin"],"summary":"Get Admin Stats","description":"Dashboard stats: active clients, transactions by stage, docs uploaded.","operationId":"get_admin_stats_api_v1_admin_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/agent/clients":{"get":{"tags":["agent","agent"],"summary":"List My Clients","description":"List the agent's actively assigned clients with rollup counts.\n\nAdmins see every client (there is no assignment requirement for admins).","operationId":"list_my_clients_api_v1_agent_clients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentClientListResponse"}}}}}}},"/api/v1/agent/clients/{client_id}/cma":{"post":{"tags":["agent","agent"],"summary":"Run Client Cma","description":"Geocode (if needed) and enqueue CMA reports for an assigned client.\n\nMirrors the admin \"Generate CMA\" action: one report per requested mode\n(tax-protest + rental by default), owned by the client, run by the worker.","operationId":"run_client_cma_api_v1_agent_clients__client_id__cma_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunClientCmaRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunClientCmaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/snapshot-request":{"post":{"tags":["leads","leads"],"summary":"Create Snapshot Request","description":"Submit a free market-snapshot request (public, rate-limited).","operationId":"create_snapshot_request_api_v1_leads_snapshot_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/market/quick-lookup":{"get":{"tags":["market","market"],"summary":"Quick Lookup","description":"Return a neighbourhood snapshot for a known Houston area.","operationId":"quick_lookup_api_v1_market_quick_lookup_get","parameters":[{"name":"area","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Area"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/market/teaser":{"get":{"tags":["market","market"],"summary":"Teaser","description":"Lightweight teaser after onboarding: compares budget to area median.","operationId":"teaser_api_v1_market_teaser_get","parameters":[{"name":"area","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Area"}},{"name":"budget","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Budget"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health","description":"Health check endpoint.","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AgentClientListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentClientSummary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AgentClientListResponse","description":"Paginated list of an agent's assigned clients."},"AgentClientSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"client_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Type"},"status":{"type":"string","title":"Status"},"property_count":{"type":"integer","title":"Property Count","default":0},"report_count":{"type":"integer","title":"Report Count","default":0},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"}},"type":"object","required":["id","email","first_name","last_name","status"],"title":"AgentClientSummary","description":"An assigned client plus rollup counts for the agent's client list."},"AnalysisReportCreate":{"properties":{"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"report_type":{"anyOf":[{"type":"string","pattern":"^(cma|strategy_brief|offer_letter|market_study|pricing_analysis|competitive_inventory|net_proceeds|communication_guide)$"},{"type":"null"}],"title":"Report Type"},"title":{"type":"string","maxLength":500,"title":"Title"},"html_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Content"},"ai_generated":{"type":"boolean","title":"Ai Generated","default":false},"status":{"anyOf":[{"type":"string","pattern":"^(draft|requested|processing|complete|failed|published|archived)$"},{"type":"null"}],"title":"Status"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"cma_mode":{"anyOf":[{"type":"string","pattern":"^(tax_protest|rental)$"},{"type":"null"}],"title":"Cma Mode"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["title"],"title":"AnalysisReportCreate","description":"Analysis report creation schema."},"AnalysisReportListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AnalysisReportResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"AnalysisReportListResponse","description":"Paginated analysis report list."},"AnalysisReportResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"report_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Type"},"title":{"type":"string","title":"Title"},"html_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Content"},"pdf_file_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf File Key"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"ai_generated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Generated"},"reviewed_by_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reviewed By Admin"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"pdf_download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Download Url"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","transaction_id","property_id","user_id","report_type","title","html_content","pdf_file_key","status","ai_generated","reviewed_by_admin","published_at","created_at","updated_at"],"title":"AnalysisReportResponse","description":"Analysis report response schema."},"AnalysisReportUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Title"},"html_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Content"},"status":{"anyOf":[{"type":"string","pattern":"^(draft|requested|processing|complete|failed|published|archived)$"},{"type":"null"}],"title":"Status"},"reviewed_by_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reviewed By Admin"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"AnalysisReportUpdate","description":"Analysis report update schema."},"AppointmentCreate":{"properties":{"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"appointment_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Appointment Type"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"duration_minutes":{"type":"integer","title":"Duration Minutes","default":60},"location":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Location"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["scheduled_at"],"title":"AppointmentCreate","description":"Appointment creation schema."},"AppointmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"appointment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Type"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","transaction_id","property_id","user_id","appointment_type","scheduled_at","duration_minutes","status","location","notes","created_at","updated_at"],"title":"AppointmentResponse","description":"Appointment response schema."},"AppointmentUpdate":{"properties":{"appointment_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Appointment Type"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"location":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Location"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"AppointmentUpdate","description":"Appointment update schema."},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest","description":"Change password (authenticated)."},"ConversationCreate":{"properties":{"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"client_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Id"}},"type":"object","title":"ConversationCreate","description":"Create conversation schema."},"ConversationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","transaction_id","property_id","title","created_at","updated_at"],"title":"ConversationResponse","description":"Conversation response schema."},"DocumentCreate":{"properties":{"file_name":{"type":"string","maxLength":500,"title":"File Name"},"file_key":{"type":"string","maxLength":500,"title":"File Key"},"file_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"File Type"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"document_category":{"anyOf":[{"type":"string","pattern":"^(client_upload|transaction|mortgage|analysis|communication|other)$"},{"type":"null"}],"title":"Document Category"},"document_type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Document Type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"uploaded_by":{"anyOf":[{"type":"string","pattern":"^(client|admin)$"},{"type":"null"}],"title":"Uploaded By"}},"type":"object","required":["file_name","file_key"],"title":"DocumentCreate","description":"Document metadata after upload."},"DocumentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DocumentResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"DocumentListResponse","description":"Paginated document list."},"DocumentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"uploaded_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By"},"file_name":{"type":"string","title":"File Name"},"file_key":{"type":"string","title":"File Key"},"file_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Type"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"document_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Category"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"ai_extracted_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ai Extracted Data"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","transaction_id","property_id","user_id","uploaded_by","file_name","file_key","file_type","file_size","document_category","document_type","status","ai_summary","ai_extracted_data","notes","version","created_at"],"title":"DocumentResponse","description":"Document response with optional download URL."},"DocumentUpdate":{"properties":{"document_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Category"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"DocumentUpdate","description":"Document metadata update."},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest","description":"Forgot password request."},"GoogleAuthRequest":{"properties":{"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleAuthRequest","description":"Google sign-in request: frontend sends the Google ID token."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest","description":"Login request body."},"MessageCreate":{"properties":{"content":{"type":"string","minLength":1,"title":"Content"},"attachments":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Attachments"}},"type":"object","required":["content"],"title":"MessageCreate","description":"Create message schema."},"MessageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"sender_id":{"type":"string","format":"uuid","title":"Sender Id"},"content":{"type":"string","title":"Content"},"attachments":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Attachments"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","conversation_id","sender_id","content","attachments","read_at","created_at"],"title":"MessageResponse","description":"Message response schema."},"NotificationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"NotificationListResponse","description":"Paginated notification list."},"NotificationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"title":{"type":"string","title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"read":{"type":"boolean","title":"Read"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","user_id","type","title","body","link","read","created_at"],"title":"NotificationResponse","description":"Notification response schema."},"OfferCreate":{"properties":{"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"offer_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Offer Amount"},"terms":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Terms"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"OfferCreate","description":"Offer creation schema."},"OfferResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"offer_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Offer Amount"},"terms":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Terms"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"counter_history":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Counter History"},"linked_report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked Report Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","transaction_id","property_id","user_id","offer_amount","terms","status","counter_history","linked_report_id","notes","submitted_at","responded_at","created_at","updated_at"],"title":"OfferResponse","description":"Offer response schema."},"OfferUpdate":{"properties":{"offer_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Offer Amount"},"terms":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Terms"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"OfferUpdate","description":"Offer update schema."},"OnboardingData":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","title":"OnboardingData","description":"Onboarding data payload."},"ParticipantAdd":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Role","default":"participant"}},"type":"object","required":["user_id"],"title":"ParticipantAdd","description":"Add a participant to an existing conversation."},"PropertyCreate":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"address":{"type":"string","maxLength":500,"title":"Address"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"State"},"zip":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Zip"},"lat":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Lng"},"sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sqft"},"beds":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Beds"},"baths":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Baths"},"stories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stories"},"garage":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Garage"},"lot_sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lot Sqft"},"builder":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Builder"},"community":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Community"},"floor_plan":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Floor Plan"},"list_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"List Price"},"mls_number":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Mls Number"},"property_type":{"anyOf":[{"type":"string","pattern":"^(new_construction|resale|lot)$"},{"type":"null"}],"title":"Property Type"},"status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Status","default":"active"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["address"],"title":"PropertyCreate","description":"Property creation schema."},"PropertyListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PropertyResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"PropertyListResponse","description":"Paginated property list."},"PropertyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"address":{"type":"string","title":"Address"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"},"lat":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Lng"},"sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sqft"},"beds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Beds"},"baths":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Baths"},"stories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stories"},"garage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Garage"},"lot_sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lot Sqft"},"builder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Builder"},"community":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Community"},"floor_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor Plan"},"list_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"List Price"},"mls_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mls Number"},"property_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","user_id","address","city","state","zip","lat","lng","sqft","beds","baths","stories","garage","lot_sqft","builder","community","floor_plan","list_price","mls_number","property_type","status","notes","created_at","updated_at"],"title":"PropertyResponse","description":"Property response schema."},"PropertyUpdate":{"properties":{"address":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Address"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"State"},"zip":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Zip"},"lat":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Lng"},"sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sqft"},"beds":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Beds"},"baths":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Baths"},"stories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stories"},"garage":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Garage"},"lot_sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lot Sqft"},"builder":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Builder"},"community":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Community"},"floor_plan":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Floor Plan"},"list_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"List Price"},"mls_number":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Mls Number"},"property_type":{"anyOf":[{"type":"string","pattern":"^(new_construction|resale|lot)$"},{"type":"null"}],"title":"Property Type"},"status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"PropertyUpdate","description":"Property update schema."},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"},"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"client_type":{"anyOf":[{"type":"string","pattern":"^(buyer|seller|both|investor)$"},{"type":"null"}],"title":"Client Type"},"requested_role":{"anyOf":[{"type":"string","pattern":"^(client|agent)$"},{"type":"null"}],"title":"Requested Role"},"brokerage":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Brokerage"},"license_number":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"License Number"},"market_area":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Market Area"}},"type":"object","required":["email","password","first_name","last_name"],"title":"RegisterRequest","description":"Registration request body."},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest","description":"Reset password request."},"RunClientCmaRequest":{"properties":{"property_id":{"type":"string","format":"uuid","title":"Property Id"},"modes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modes"}},"type":"object","required":["property_id"],"title":"RunClientCmaRequest","description":"Kick off CMA generation for an assigned client's property."},"RunClientCmaResponse":{"properties":{"report_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Report Ids"},"enqueued":{"type":"integer","title":"Enqueued"},"geocoded":{"type":"boolean","title":"Geocoded"}},"type":"object","required":["report_ids","enqueued","geocoded"],"title":"RunClientCmaResponse","description":"Result of enqueuing CMA reports for a client."},"SnapshotRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"address_or_area":{"type":"string","maxLength":500,"minLength":1,"title":"Address Or Area"},"buyer_or_seller":{"type":"string","pattern":"^(buyer|seller)$","title":"Buyer Or Seller"}},"type":"object","required":["name","email","address_or_area","buyer_or_seller"],"title":"SnapshotRequest","description":"Public snapshot request — no account required."},"SnapshotResponse":{"properties":{"message":{"type":"string","title":"Message"},"lead_id":{"type":"string","format":"uuid","title":"Lead Id"}},"type":"object","required":["message","lead_id"],"title":"SnapshotResponse","description":"Response after submitting a snapshot request."},"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","description":"Token response (for refresh endpoint)."},"TransactionCreate":{"properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"deal_type":{"anyOf":[{"type":"string","pattern":"^(buy|sell|invest)$"},{"type":"null"}],"title":"Deal Type"},"status":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Status","default":"prospect"},"contract_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Contract Price"},"closing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Closing Date"},"option_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Option Period End"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"TransactionCreate","description":"Transaction creation schema."},"TransactionListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"TransactionListResponse","description":"Paginated transaction list."},"TransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"contract_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Contract Price"},"closing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Closing Date"},"option_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Option Period End"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","user_id","property_id","deal_type","status","contract_price","closing_date","option_period_end","notes","created_at","updated_at"],"title":"TransactionResponse","description":"Transaction response schema."},"TransactionUpdate":{"properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"deal_type":{"anyOf":[{"type":"string","pattern":"^(buy|sell|invest)$"},{"type":"null"}],"title":"Deal Type"},"status":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Status"},"contract_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Contract Price"},"closing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Closing Date"},"option_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Option Period End"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"TransactionUpdate","description":"Transaction update schema."},"UploadUrlRequest":{"properties":{"file_name":{"type":"string","maxLength":500,"title":"File Name"},"content_type":{"type":"string","maxLength":100,"title":"Content Type"},"transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transaction Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},"type":"object","required":["file_name","content_type"],"title":"UploadUrlRequest","description":"Request for presigned upload URL."},"UploadUrlResponse":{"properties":{"presigned_url":{"type":"string","title":"Presigned Url"},"file_key":{"type":"string","title":"File Key"}},"type":"object","required":["presigned_url","file_key"],"title":"UploadUrlResponse","description":"Presigned upload URL response."},"UserListResponse":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"UserListResponse","description":"Paginated user list response."},"UserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"client_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Type"},"status":{"type":"string","title":"Status"},"email_verified":{"type":"boolean","title":"Email Verified"},"auth_provider":{"type":"string","title":"Auth Provider"},"role":{"type":"string","title":"Role","default":"client"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_staff":{"type":"boolean","title":"Is Staff"},"onboarding_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Onboarding Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"assigned_client_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assigned Client Count"}},"type":"object","required":["id","email","first_name","last_name","phone","client_type","status","email_verified","auth_provider","is_admin","is_staff","created_at"],"title":"UserResponse","description":"User response (public profile)."},"UserUpdate":{"properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"client_type":{"anyOf":[{"type":"string","pattern":"^(buyer|seller|both|investor)$"},{"type":"null"}],"title":"Client Type"}},"type":"object","title":"UserUpdate","description":"User profile update."},"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"},"VerifyEmailRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","maxLength":6,"minLength":6,"title":"Code"}},"type":"object","required":["email","code"],"title":"VerifyEmailRequest","description":"Email verification request."}}}}