{"openapi":"3.1.0","info":{"title":"High Ticket AI HQ Backend","description":"Python backend for High Ticket AI HQ platform with LangGraph","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Comprehensive Health Check","description":"Returns detailed application and service health status","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/health/ready":{"get":{"tags":["health"],"summary":"Readiness Check","description":"Returns 200 when service is ready to accept requests","operationId":"readiness_check_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Check Health Ready Get"}}}}}}},"/health/live":{"get":{"tags":["health"],"summary":"Liveness Check","description":"Returns 200 when service is alive","operationId":"liveness_check_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Liveness Check Health Live Get"}}}}}}},"/health/metrics":{"get":{"tags":["health"],"summary":"System Metrics","description":"Returns comprehensive system and application metrics","operationId":"get_metrics_health_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsResponse"}}}}}}},"/health/metrics/prometheus":{"get":{"tags":["health"],"summary":"Prometheus Metrics","description":"Returns metrics in Prometheus format","operationId":"get_prometheus_metrics_health_metrics_prometheus_get","responses":{"200":{"description":"Successful Response"}}}},"/auth/verify":{"post":{"tags":["authentication"],"summary":"Verify JWT Token","description":"Verify Supabase JWT token and return user information","operationId":"verify_jwt_token_auth_verify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/login":{"post":{"tags":["authentication"],"summary":"Login Endpoint Deprecated","description":"Login is handled by Supabase on the frontend. This endpoint is deprecated.","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"410":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Login Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["authentication"],"summary":"Get Current User","description":"Get current authenticated user information","operationId":"get_current_user_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/logout":{"post":{"tags":["authentication"],"summary":"User Logout","description":"Logout user (client-side token removal)","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Logout Auth Logout Post"}}}}}}},"/auth/claims":{"get":{"tags":["authentication"],"summary":"Get JWT Claims","description":"Get structured JWT claims with full Supabase token information","operationId":"get_jwt_claims_auth_claims_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtClaimsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/refresh":{"post":{"tags":["authentication"],"summary":"Refresh Token Endpoint Deprecated","description":"Token refresh is handled by Supabase on the frontend.","operationId":"refresh_token_auth_refresh_post","responses":{"410":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Refresh Token Auth Refresh Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/chat/sessions":{"post":{"tags":["chat"],"summary":"Create Chat Session","description":"Create a new chat session for an AI agent","operationId":"create_session_chat_sessions_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSession"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["chat"],"summary":"Get User Sessions","description":"Get all chat sessions for the current user","operationId":"get_sessions_chat_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_app_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat App Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/sessions/stats":{"get":{"tags":["chat"],"summary":"Get Session Statistics","description":"Get statistics about user's chat sessions","operationId":"get_session_stats_chat_sessions_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Session Stats Chat Sessions Stats Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/chat/sessions/{session_id}":{"get":{"tags":["chat"],"summary":"Get Session with Messages","description":"Get a specific session with its message history","operationId":"get_session_chat_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"include_messages","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Messages"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSessionWithMessages"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["chat"],"summary":"Update Session","description":"Update session title or other metadata","operationId":"update_session_chat_sessions__session_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSession"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Delete Session","description":"Delete a session and all its messages","operationId":"delete_session_chat_sessions__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/":{"post":{"tags":["chat"],"summary":"Chat with AI Agent","description":"Send message to AI agent and receive response","operationId":"chat_chat__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/chat/v4/follow-up":{"post":{"tags":["chat"],"summary":"Follow-up Request for AI Agents","description":"Send follow-up request for existing session (edit/variation)","operationId":"follow_up_request_chat_v4_follow_up_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__vercel__FollowUpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/chat/v4":{"post":{"tags":["chat"],"summary":"Chat with AI Agent (Vercel AI SDK v4 Compatible)","description":"Chat endpoint compatible with Vercel's AI SDK v4 streaming format","operationId":"chat_v4_chat_v4_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VercelChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/agents/product-ideation":{"post":{"tags":["agents"],"summary":"[DEPRECATED] Product Ideation Analysis","description":"DEPRECATED: Use /chat/v4 with agent_type='product-ideation' instead","operationId":"analyze_product_ideation_agents_product_ideation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductIdeationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductIdeationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"deprecated":true}},"/agents/product-ideation/stream":{"post":{"tags":["agents"],"summary":"[DEPRECATED] Streaming Product Ideation Analysis","description":"DEPRECATED: Use /chat/v4 with agent_type='product-ideation' instead","operationId":"analyze_product_ideation_stream_agents_product_ideation_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductIdeationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"deprecated":true}},"/agents/product-ideation/health":{"get":{"tags":["agents"],"summary":"[DEPRECATED] Product Ideation Agent Health","description":"DEPRECATED: Use /chat/v4 with agent_type='product-ideation' instead","operationId":"product_ideation_health_agents_product_ideation_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Product Ideation Health Agents Product Ideation Health Get"}}}}},"deprecated":true}},"/agents/store-name/health":{"get":{"tags":["agents"],"summary":"Store Name Agent Health (Deprecated)","description":"Deprecated: Use /chat/v4 endpoint with agent_type=store-name instead","operationId":"store_name_health_agents_store_name_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Store Name Health Agents Store Name Health Get"}}}}}}},"/agents":{"get":{"tags":["agents"],"summary":"Available Agents","description":"List all available AI agents and their capabilities","operationId":"list_agents_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Agents Agents Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/follow-up/agents/{agent_key}/stream":{"post":{"tags":["follow-up","follow-up"],"summary":"Trigger Follow Up Streaming","description":"Trigger a follow-up request with streaming response for real-time updates.\n\nThis endpoint provides the same functionality as the non-streaming version\nbut returns Server-Sent Events for real-time progress updates.","operationId":"trigger_follow_up_streaming_follow_up_agents__agent_key__stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__follow_up__FollowUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/follow-up/agents/{agent_key}":{"post":{"tags":["follow-up","follow-up"],"summary":"Trigger Follow Up","description":"Trigger a follow-up request for an agent without creating chat messages.\n\nThis endpoint allows for clean UI interactions where users can click buttons\nto get variations, revisions, or more options without cluttering their chat\nhistory with \"generate more\" type messages.\n\nArgs:\n    agent_key: The agent identifier (e.g., \"logo-generator\", \"simplified-store-name\")\n    request: Follow-up request details\n    current_user: Current authenticated user data\n\nReturns:\n    FollowUpResponse with generated data and metadata\n\nRaises:\n    HTTPException: If agent doesn't support follow-up requests or other errors occur","operationId":"trigger_follow_up_follow_up_agents__agent_key__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__follow_up__FollowUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/follow-up/agents/{agent_key}/status":{"get":{"tags":["follow-up","follow-up"],"summary":"Get Follow Up Status","description":"Get follow-up status for a session and agent.\n\nReturns information about whether follow-up requests are available,\nhow many have been made, and what types are supported.","operationId":"get_follow_up_status_follow_up_agents__agent_key__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}},{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Follow Up Status Follow Up Agents  Agent Key  Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store_generator/store-generator/niche":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Select store niche","description":"Create a new store with the specified niche","operationId":"select_niche_store_generator_store_generator_niche_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NicheSelectionDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NicheSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/products":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Select products for store","description":"Map products to a store","operationId":"select_products_store_generator_store_generator_products_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSelectionDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/country":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Select store country","description":"Set the target country for a store","operationId":"select_country_store_generator_store_generator_country_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountrySelectionDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountrySelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/name":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Set store name","description":"Set a custom name for the store","operationId":"enter_store_name_store_generator_store_generator_name_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterStoreNameDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterStoreNameResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/names":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Generate store name suggestions","description":"Generate available store names and domains","operationId":"generate_store_names_store_generator_store_generator_names_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateStoreNameDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateStoreNameResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/colors":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Select store color scheme","description":"Set the color scheme for a store","operationId":"select_color_scheme_store_generator_store_generator_colors_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorSchemeSelectionDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorSchemeSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/logo":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Generate store logo","description":"Create a logo for the store","operationId":"generate_logo_store_generator_store_generator_logo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoGenerationDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/hero-image":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Generate hero image","description":"Create a hero image for the store's landing page","operationId":"generate_hero_image_store_generator_store_generator_hero_image_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeroImageDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeroImageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/store_generator/store-generator/collection-banner":{"post":{"tags":["Store Generator","Store Generator"],"summary":"Generate collection banner","description":"Create a collection banner asset for a store collection","operationId":"generate_collection_banner_store_generator_store_generator_collection_banner_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionBannerDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionBannerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/copy-generation/generate":{"post":{"tags":["Copy Generation","Copy Generation"],"summary":"Generate Copy Content","description":"Generate various types of copy content (hero headings, subheadings, about us) for AI-generated stores.","operationId":"generate_copy_copy_generation_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyGenerationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/copy-generation/session/{session_id}":{"get":{"tags":["Copy Generation","Copy Generation"],"summary":"Get Copy Content by Session","description":"Retrieve all copy content generated within a specific session.","operationId":"get_session_copy_content_copy_generation_session__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"copy_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CopyType"},{"type":"null"}],"title":"Copy Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyContentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/copy-generation/my-content":{"get":{"tags":["Copy Generation","Copy Generation"],"summary":"Get User's Copy Content","description":"Retrieve all copy content generated by the authenticated user.","operationId":"get_user_copy_content_copy_generation_my_content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"copy_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CopyType"},{"type":"null"}],"title":"Copy Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyContentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/copy-generation/types":{"get":{"tags":["Copy Generation","Copy Generation"],"summary":"Get Available Copy Types","description":"Get a list of all available copy types that can be generated.","operationId":"get_copy_types_copy_generation_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Copy Types Copy Generation Types Get"}}}}}}},"/copy-generation/health":{"get":{"tags":["Copy Generation","Copy Generation"],"summary":"Copy Generation Service Health","description":"Check the health status of the copy generation service.","operationId":"copy_generation_health_copy_generation_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Copy Generation Health Copy Generation Health Get"}}}}}}},"/theme_generator/generate-theme":{"post":{"tags":["Theme Generator"],"summary":"Generate Store Custom Theme","description":"Generate a custom theme for a store","operationId":"generate_theme_theme_generator_generate_theme_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Generate Theme Theme Generator Generate Theme Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/policy-generator/generate":{"post":{"tags":["Policy Generator","Policy Generator"],"summary":"Generate all four store policies","description":"Accepts the 4-step form data and streams back generated policies via SSE.","operationId":"generate_policies_policy_generator_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyGenerationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/policy-generator/submissions":{"get":{"tags":["Policy Generator","Policy Generator"],"summary":"List past policy submissions","operationId":"list_submissions_policy_generator_submissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySubmissionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/policy-generator/submissions/{submission_id}":{"get":{"tags":["Policy Generator","Policy Generator"],"summary":"Get a specific submission with generated policies","operationId":"get_submission_policy_generator_submissions__submission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/policy-generator/health":{"get":{"tags":["Policy Generator","Policy Generator"],"summary":"Policy generator health check","operationId":"health_policy_generator_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Policy Generator Health Get"}}}}}}},"/":{"get":{"summary":"Root","description":"Root endpoint returning basic API information.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Root  Get"}}}}}}},"/startup":{"get":{"summary":"Startup Check","description":"Lightweight startup check for Cloud Run - minimal dependencies.","operationId":"startup_check_startup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Startup Check Startup Get"}}}}}}}},"components":{"schemas":{"AdditionalInfo":{"properties":{"cookie_list":{"type":"string","title":"Cookie List","description":"Comma-separated list of cookies used","default":""},"affiliate_program":{"type":"string","title":"Affiliate Program","description":"Affiliate program details","default":""},"payment_gateway":{"type":"string","title":"Payment Gateway","description":"Payment processor used at checkout (e.g. 'Shopify Payments', 'Stripe', 'PayPal')","default":"Shopify Payments"},"governing_law_state":{"type":"string","title":"Governing Law State","description":"State/jurisdiction for governing law"},"order_tracking":{"type":"string","title":"Order Tracking","description":"Order tracking info or URL","default":""},"return_policy_url":{"type":"string","title":"Return Policy Url","description":"URL of the return policy page","default":""},"terms_of_service_url":{"type":"string","title":"Terms Of Service Url","description":"URL of the terms of service page","default":""},"contact_page_url":{"type":"string","title":"Contact Page Url","description":"URL of the contact page","default":""},"shipping_policy_url":{"type":"string","title":"Shipping Policy Url","description":"URL of the shipping policy page","default":""}},"type":"object","required":["governing_law_state"],"title":"AdditionalInfo","description":"Step 4 form data — supplementary settings and URLs."},"ApplicationMetrics":{"properties":{"total_requests":{"type":"integer","title":"Total Requests","default":0},"active_connections":{"type":"integer","title":"Active Connections","default":0},"error_rate_percent":{"type":"number","title":"Error Rate Percent","default":0.0},"avg_response_time_ms":{"type":"number","title":"Avg Response Time Ms","default":0.0}},"type":"object","title":"ApplicationMetrics","description":"Application-specific metrics."},"BusinessInfo":{"properties":{"legal_business_name":{"type":"string","title":"Legal Business Name","description":"Legal name of the business"},"store_website_name":{"type":"string","title":"Store Website Name","description":"Storefront display name"},"primary_website_domain":{"type":"string","title":"Primary Website Domain","description":"Primary website URL/domain"},"country_of_incorporation":{"type":"string","title":"Country Of Incorporation","description":"Country where the business is registered"},"full_street_address":{"type":"string","title":"Full Street Address","description":"Full street address of the business"},"main_contact_email":{"type":"string","format":"email","title":"Main Contact Email","description":"Primary contact email"},"phone_number":{"type":"string","title":"Phone Number","description":"Business phone number"},"customer_service_hours":{"type":"string","title":"Customer Service Hours","description":"Customer service availability hours"},"iso_currency_code":{"type":"string","pattern":"^[A-Z]{3}$","title":"Iso Currency Code","description":"ISO 4217 currency code","default":"USD"}},"type":"object","required":["legal_business_name","store_website_name","primary_website_domain","country_of_incorporation","full_street_address","main_contact_email","phone_number","customer_service_hours"],"title":"BusinessInfo","description":"Step 1 form data — core business details."},"ChatMessage":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Message ID"},"role":{"type":"string","title":"Role","description":"Message role: user, assistant, or system"},"content":{"type":"string","title":"Content","description":"Message content"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Message timestamp"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional message metadata"}},"type":"object","required":["id","role","content","created_at"],"title":"ChatMessage","description":"API model for chat messages"},"ChatRequest":{"properties":{"message":{"type":"string","title":"Message","description":"User message"},"agent_type":{"type":"string","title":"Agent Type","description":"AI agent type to use"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"Session ID for context (creates new session if None)"},"stream":{"type":"boolean","title":"Stream","description":"Enable streaming response","default":true},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"Additional context including follow-up request metadata"}},"type":"object","required":["message","agent_type"],"title":"ChatRequest","description":"Chat request model."},"ChatSession":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Session ID"},"user_id":{"type":"string","format":"uuid","title":"User Id","description":"Owner user ID"},"chat_app_id":{"type":"string","title":"Chat App Id","description":"AI agent type"},"title":{"type":"string","title":"Title","description":"Session title"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"},"message_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Count","description":"Total number of messages in session"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At","description":"Timestamp of most recent message"}},"type":"object","required":["id","user_id","chat_app_id","title","created_at","updated_at"],"title":"ChatSession","description":"API model for chat sessions"},"ChatSessionWithMessages":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Session ID"},"user_id":{"type":"string","format":"uuid","title":"User Id","description":"Owner user ID"},"chat_app_id":{"type":"string","title":"Chat App Id","description":"AI agent type"},"title":{"type":"string","title":"Title","description":"Session title"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"},"message_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Count","description":"Total number of messages in session"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At","description":"Timestamp of most recent message"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Messages","description":"All messages in this session"}},"type":"object","required":["id","user_id","chat_app_id","title","created_at","updated_at"],"title":"ChatSessionWithMessages","description":"Chat session with full message history"},"ClientAttachment":{"properties":{"contentType":{"type":"string","title":"Contenttype"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"}},"type":"object","required":["contentType","name","url"],"title":"ClientAttachment","description":"Client attachment in a message."},"CollectionBannerDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id","description":"ID of the store"},"collection_name":{"type":"string","maxLength":120,"minLength":1,"title":"Collection Name","description":"Collection or category name"},"color_changes":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Color Changes","description":"Optional list of color change instructions with 'element' and 'new_color' keys"},"force_ai":{"type":"boolean","title":"Force Ai","description":"If true, skip Unsplash workflow and generate with AI directly","default":false}},"type":"object","required":["store_id","collection_name"],"title":"CollectionBannerDTO"},"CollectionBannerResponse":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"collection_banner_id":{"type":"string","title":"Collection Banner Id"},"image_url":{"type":"string","title":"Image Url"},"source":{"type":"string","title":"Source"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution"},"prompt_used":{"type":"string","title":"Prompt Used"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["store_id","collection_banner_id","image_url","source","prompt_used","user_id"],"title":"CollectionBannerResponse"},"ColorSchemeSelectionDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id"},"primary_color":{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}){1,2}$","title":"Primary Color"},"secondary_color":{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}){1,2}$","title":"Secondary Color"},"accent_color":{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}){1,2}$","title":"Accent Color"}},"type":"object","required":["store_id","primary_color","secondary_color","accent_color"],"title":"ColorSchemeSelectionDTO"},"ColorSchemeSelectionResponse":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["store_id","user_id"],"title":"ColorSchemeSelectionResponse"},"ComplementaryProduct":{"properties":{"product_name":{"type":"string","title":"Product Name","description":"Name of complementary product"},"price_range":{"type":"string","title":"Price Range","description":"Price range for this product"},"why_fits":{"type":"string","title":"Why Fits","description":"Why this product fits well with the main product"}},"type":"object","required":["product_name","price_range","why_fits"],"title":"ComplementaryProduct","description":"Complementary product that could fit on the same store"},"CopyContentItem":{"properties":{"id":{"type":"string","title":"Id","description":"Content ID"},"session_id":{"type":"string","title":"Session Id","description":"Session ID"},"copy_type":{"type":"string","title":"Copy Type","description":"Type of copy"},"content":{"type":"string","title":"Content","description":"Generated content"},"prompt":{"type":"string","title":"Prompt","description":"Original prompt used"},"provider":{"type":"string","title":"Provider","description":"LLM provider used"},"model":{"type":"string","title":"Model","description":"Model used"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional metadata"},"created_at":{"type":"string","title":"Created At","description":"Creation timestamp"},"updated_at":{"type":"string","title":"Updated At","description":"Last update timestamp"}},"type":"object","required":["id","session_id","copy_type","content","prompt","provider","model","created_at","updated_at"],"title":"CopyContentItem","description":"Model for individual copy content items."},"CopyContentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CopyContentItem"},"type":"array","title":"Items","description":"List of copy content items"},"total":{"type":"integer","title":"Total","description":"Total number of items"},"limit":{"type":"integer","title":"Limit","description":"Items per page limit"},"offset":{"type":"integer","title":"Offset","description":"Pagination offset"}},"type":"object","required":["items","total","limit","offset"],"title":"CopyContentListResponse","description":"Response model for listing copy content."},"CopyGenerationRequest":{"properties":{"copy_type":{"$ref":"#/components/schemas/CopyType","description":"Type of copy to generate"},"prompt":{"type":"string","title":"Prompt","description":"User prompt or context for copy generation"},"session_id":{"type":"string","title":"Session Id","description":"Session ID to associate the generated content with"},"store_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Store Context","description":"Optional store context (niche, products, target audience, etc.)"},"provider_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Override","description":"Optional LLM provider override (anthropic, openai, google, perplexity)"}},"type":"object","required":["copy_type","prompt","session_id"],"title":"CopyGenerationRequest","description":"Request model for copy generation."},"CopyGenerationResponse":{"properties":{"content_id":{"type":"string","title":"Content Id","description":"Unique ID of the generated content"},"content":{"type":"string","title":"Content","description":"The generated copy content"},"copy_type":{"type":"string","title":"Copy Type","description":"Type of copy generated"},"provider":{"type":"string","title":"Provider","description":"LLM provider used"},"model":{"type":"string","title":"Model","description":"Specific model used"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional metadata"},"created_at":{"type":"string","title":"Created At","description":"ISO timestamp of creation"}},"type":"object","required":["content_id","content","copy_type","provider","model","created_at"],"title":"CopyGenerationResponse","description":"Response model for copy generation."},"CopyType":{"type":"string","enum":["hero_heading","hero_subheading","product_description"],"title":"CopyType","description":"Types of copy that can be generated."},"CountrySelectionDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id","description":"Store ID"},"country":{"type":"string","minLength":1,"title":"Country"}},"type":"object","required":["store_id","country"],"title":"CountrySelectionDTO"},"CountrySelectionResponse":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["store_id","user_id"],"title":"CountrySelectionResponse"},"CreateSessionRequest":{"properties":{"chat_app_id":{"type":"string","title":"Chat App Id","description":"AI agent type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Optional session title"},"initial_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Message","description":"Optional first message to start the session"}},"type":"object","required":["chat_app_id"],"title":"CreateSessionRequest","description":"Request model for creating a new chat session"},"DomainSuggestionDTO":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation"}},"type":"object","title":"DomainSuggestionDTO"},"EnterStoreNameDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id","description":"Store ID"},"store_name":{"type":"string","maxLength":120,"minLength":1,"title":"Store Name"}},"type":"object","required":["store_id","store_name"],"title":"EnterStoreNameDTO"},"EnterStoreNameResponse":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["store_id","user_id"],"title":"EnterStoreNameResponse"},"ExampleStore":{"properties":{"name":{"type":"string","title":"Name","description":"Store name"},"url":{"type":"string","title":"Url","description":"Store URL"},"store_type":{"type":"string","enum":["dropshipping","dtc_brand"],"title":"Store Type","description":"Type of store - prefer dropshipping stores","default":"dropshipping"},"revenue_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Estimate","description":"Revenue estimate if known"},"notes":{"type":"string","title":"Notes","description":"What makes this store a good example"}},"type":"object","required":["name","url","notes"],"title":"ExampleStore","description":"Example dropshipping store selling the product"},"FollowUpResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"follow_up_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Follow Up Metadata"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success","data"],"title":"FollowUpResponse","description":"Response model for follow-up generation."},"GenerateStoreNameDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id","description":"Store ID"},"country":{"type":"string","minLength":1,"title":"Country"},"tags":{"anyOf":[{"items":{"type":"string","minLength":1},"type":"array"},{"type":"null"}],"title":"Tags","description":"Optional hint tags"}},"type":"object","required":["store_id","country"],"title":"GenerateStoreNameDTO"},"GenerateStoreNameResponse":{"properties":{"names":{"items":{"type":"string"},"type":"array","title":"Names"},"suggestions":{"items":{"$ref":"#/components/schemas/DomainSuggestionDTO"},"type":"array","title":"Suggestions"},"markdown":{"type":"string","title":"Markdown"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["names","suggestions","markdown","user_id"],"title":"GenerateStoreNameResponse"},"GeneratedPolicy":{"properties":{"id":{"type":"string","title":"Id","description":"Generated policy record ID"},"policy_type":{"type":"string","title":"Policy Type","description":"Policy type key"},"html":{"type":"string","title":"Html","description":"Generated HTML content"},"provider":{"type":"string","title":"Provider","description":"LLM provider used"},"model":{"type":"string","title":"Model","description":"Specific model used"},"created_at":{"type":"string","title":"Created At","description":"ISO timestamp"}},"type":"object","required":["id","policy_type","html","provider","model","created_at"],"title":"GeneratedPolicy","description":"A single generated policy."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"version":{"type":"string","title":"Version"},"environment":{"type":"string","title":"Environment"},"services":{"additionalProperties":{"$ref":"#/components/schemas/ServiceStatus"},"type":"object","title":"Services"},"overall_healthy":{"type":"boolean","title":"Overall Healthy"}},"type":"object","required":["status","timestamp","version","environment","services","overall_healthy"],"title":"HealthResponse","description":"Health check response model."},"HeroImageDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id","description":"ID of the store"},"hero_context":{"type":"string","maxLength":500,"minLength":1,"title":"Hero Context","description":"Context for hero image (niche, products, theme)"}},"type":"object","required":["store_id","hero_context"],"title":"HeroImageDTO"},"HeroImageResponse":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"hero_image_id":{"type":"string","title":"Hero Image Id"},"image_url":{"type":"string","title":"Image Url"},"prompt_used":{"type":"string","title":"Prompt Used"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["store_id","hero_image_id","image_url","prompt_used","user_id"],"title":"HeroImageResponse"},"JwtClaimsResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"session_id":{"type":"string","title":"Session Id"},"is_anonymous":{"type":"boolean","title":"Is Anonymous"},"aal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aal"},"user_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"User Metadata"},"app_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"App Metadata"}},"type":"object","required":["user_id","email","role","session_id","is_anonymous"],"title":"JwtClaimsResponse","description":"Structured JWT claims response model."},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest","description":"User login request model."},"LogoGenerationDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id","description":"Store ID"},"logo_style":{"type":"string","minLength":1,"title":"Logo Style","description":"Style choice A-H or custom"},"font_style":{"type":"string","minLength":1,"title":"Font Style","description":"Font style code (e.g., A/B/C)"},"icon_style":{"type":"string","minLength":1,"title":"Icon Style","description":"Icon complexity code (e.g., A-D)"}},"type":"object","required":["store_id","logo_style","font_style","icon_style"],"title":"LogoGenerationDTO"},"LogoGenerationResponse":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"logo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["store_id","user_id"],"title":"LogoGenerationResponse"},"MetricsResponse":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"system":{"$ref":"#/components/schemas/SystemMetrics"},"application":{"$ref":"#/components/schemas/ApplicationMetrics"},"ai_providers":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Ai Providers"}},"type":"object","required":["timestamp","system","application","ai_providers"],"title":"MetricsResponse","description":"Comprehensive metrics response."},"NicheSelectionDTO":{"properties":{"niche":{"$ref":"#/components/schemas/StoreNiche","description":"Selected store niche enum"}},"type":"object","required":["niche"],"title":"NicheSelectionDTO"},"NicheSelectionResponse":{"properties":{"store_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["user_id"],"title":"NicheSelectionResponse"},"PolicyGenerationRequest":{"properties":{"business_info":{"$ref":"#/components/schemas/BusinessInfo"},"shipping_info":{"$ref":"#/components/schemas/ShippingInfo"},"returns_and_policies":{"$ref":"#/components/schemas/ReturnsAndPolicies"},"additional_info":{"$ref":"#/components/schemas/AdditionalInfo"}},"type":"object","required":["business_info","shipping_info","returns_and_policies","additional_info"],"title":"PolicyGenerationRequest","description":"Full form payload sent to the generate endpoint."},"PolicySubmission":{"properties":{"id":{"type":"string","title":"Id","description":"Submission ID"},"user_id":{"type":"string","title":"User Id","description":"Owner user ID"},"form_data":{"additionalProperties":true,"type":"object","title":"Form Data","description":"Original form data"},"status":{"type":"string","title":"Status","description":"Submission status"},"policies":{"items":{"$ref":"#/components/schemas/GeneratedPolicy"},"type":"array","title":"Policies","description":"Generated policies"},"created_at":{"type":"string","title":"Created At","description":"ISO timestamp"},"updated_at":{"type":"string","title":"Updated At","description":"ISO timestamp"}},"type":"object","required":["id","user_id","form_data","status","created_at","updated_at"],"title":"PolicySubmission","description":"A submission with its generated policies."},"PolicySubmissionListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PolicySubmission"},"type":"array","title":"Items","description":"List of submissions"},"total":{"type":"integer","title":"Total","description":"Total count"},"limit":{"type":"integer","title":"Limit","description":"Page size"},"offset":{"type":"integer","title":"Offset","description":"Page offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PolicySubmissionListResponse","description":"Paginated list of submissions."},"ProductIdeationRequest":{"properties":{"user_id":{"type":"string","title":"User Id","description":"User identifier"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"Chat session identifier"},"user_profile":{"$ref":"#/components/schemas/UserProfile","description":"Complete user profile from questions"}},"type":"object","required":["user_id","user_profile"],"title":"ProductIdeationRequest","description":"Complete request for product ideation analysis"},"ProductIdeationResponse":{"properties":{"personal_interest_products":{"items":{"$ref":"#/components/schemas/ProductRecommendation"},"type":"array","maxItems":3,"minItems":3,"title":"Personal Interest Products","description":"3 products tailored to user's interests"},"hot_products":{"items":{"$ref":"#/components/schemas/ProductRecommendation"},"type":"array","maxItems":3,"minItems":3,"title":"Hot Products","description":"3 products that are hot right now"},"future_opportunity_products":{"items":{"$ref":"#/components/schemas/ProductRecommendation"},"type":"array","maxItems":3,"minItems":3,"title":"Future Opportunity Products","description":"3 products with excellent upside over next 3-10 years"},"user_profile_summary":{"type":"string","title":"User Profile Summary","description":"Summary of user profile considered"},"research_summary":{"$ref":"#/components/schemas/ProductIdeationSummary","description":"Research process summary"},"confidence_message":{"type":"string","title":"Confidence Message","description":"Confidence-building message about the recommendations"},"next_steps":{"items":{"type":"string"},"type":"array","title":"Next Steps","description":"Recommended next steps for the user"},"analysis_timestamp":{"type":"string","title":"Analysis Timestamp","description":"When the analysis was performed"},"processing_time_seconds":{"type":"number","title":"Processing Time Seconds","description":"Time taken for analysis"},"agent_version":{"type":"string","title":"Agent Version","description":"Agent version","default":"1.0.0"}},"type":"object","required":["personal_interest_products","hot_products","future_opportunity_products","user_profile_summary","research_summary","confidence_message","next_steps","analysis_timestamp","processing_time_seconds"],"title":"ProductIdeationResponse","description":"Complete product ideation response with 9 recommendations"},"ProductIdeationSummary":{"properties":{"total_products_analyzed":{"type":"integer","title":"Total Products Analyzed","description":"Total products analyzed from database"},"personal_interest_matches":{"type":"integer","title":"Personal Interest Matches","description":"Products matching user interests"},"hot_products_identified":{"type":"integer","title":"Hot Products Identified","description":"Hot products identified"},"future_opportunities_found":{"type":"integer","title":"Future Opportunities Found","description":"Future opportunities identified"},"database_coverage_percent":{"type":"number","title":"Database Coverage Percent","description":"Percentage of product database utilized"}},"type":"object","required":["total_products_analyzed","personal_interest_matches","hot_products_identified","future_opportunities_found","database_coverage_percent"],"title":"ProductIdeationSummary","description":"Summary of the ideation process"},"ProductRecommendation":{"properties":{"product_name":{"type":"string","title":"Product Name","description":"Name of the recommended product"},"category":{"type":"string","enum":["personal_interest","hot_now","future_opportunity"],"title":"Category","description":"Which of the 3 categories this recommendation falls into"},"price_range":{"type":"string","title":"Price Range","description":"Price range for this product type"},"monthly_search_volume":{"type":"integer","minimum":1000.0,"title":"Monthly Search Volume","description":"US monthly search volume"},"opportunity_brief":{"type":"string","title":"Opportunity Brief","description":"2-3 sentence brief about why this product could crush it this year"},"example_stores":{"items":{"$ref":"#/components/schemas/ExampleStore"},"type":"array","maxItems":3,"minItems":2,"title":"Example Stores","description":"2-3 example high ticket dropshipping stores selling these products"},"suppliers":{"items":{"$ref":"#/components/schemas/ProductSupplier"},"type":"array","maxItems":3,"minItems":2,"title":"Suppliers","description":"2-3 suppliers, brands, or manufacturers"},"complementary_products":{"items":{"$ref":"#/components/schemas/ComplementaryProduct"},"type":"array","maxItems":3,"minItems":2,"title":"Complementary Products","description":"2-3 other products that would fit well on the store"},"store_name_suggestions":{"items":{"$ref":"#/components/schemas/StoreNameSuggestion"},"type":"array","maxItems":5,"minItems":5,"title":"Store Name Suggestions","description":"Exactly 5 store name suggestions"},"why_good_match":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why Good Match","description":"Why this is a good match for the user (for personal_interest category)"},"trend_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trend Data","description":"Why this is hot right now (for hot_now category)"},"future_potential":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Future Potential","description":"Future potential explanation (for future_opportunity category)"}},"type":"object","required":["product_name","category","price_range","monthly_search_volume","opportunity_brief","example_stores","suppliers","complementary_products","store_name_suggestions"],"title":"ProductRecommendation","description":"Individual product recommendation with all required details"},"ProductSelectionDTO":{"properties":{"store_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Store Id","description":"Store ID"},"product_ids":{"items":{"type":"integer"},"type":"array","minItems":1,"title":"Product Ids","description":"List of product IDs to map to store"}},"type":"object","required":["store_id","product_ids"],"title":"ProductSelectionDTO"},"ProductSelectionResponse":{"properties":{"store_id":{"type":"integer","title":"Store Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["store_id","user_id"],"title":"ProductSelectionResponse"},"ProductSupplier":{"properties":{"name":{"type":"string","title":"Name","description":"Supplier or brand name"},"type":{"type":"string","enum":["supplier","brand","manufacturer"],"title":"Type","description":"Type of supplier"},"contact_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Info","description":"Contact information if available"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Additional notes about this supplier"}},"type":"object","required":["name","type"],"title":"ProductSupplier","description":"Supplier/brand/manufacturer information"},"ReturnsAndPolicies":{"properties":{"return_window_days":{"type":"integer","minimum":1.0,"title":"Return Window Days","description":"Number of days customers can return items"},"ship_to_countries":{"items":{"type":"string"},"type":"array","title":"Ship To Countries","description":"Countries the store ships to"},"domestic_carriers":{"items":{"type":"string"},"type":"array","title":"Domestic Carriers","description":"Domestic shipping carriers used"},"international_carriers":{"items":{"type":"string"},"type":"array","title":"International Carriers","description":"International shipping carriers used"},"accepted_payment_methods":{"items":{"type":"string"},"type":"array","title":"Accepted Payment Methods","description":"Payment methods accepted"},"selling_regions":{"items":{"type":"string"},"type":"array","title":"Selling Regions","description":"Regions where the store sells"},"non_returnable_product_categories":{"items":{"type":"string"},"type":"array","title":"Non Returnable Product Categories","description":"Product categories that cannot be returned"}},"type":"object","required":["return_window_days","ship_to_countries","domestic_carriers","international_carriers","accepted_payment_methods","selling_regions"],"title":"ReturnsAndPolicies","description":"Step 3 form data — return and regional policies."},"ServiceStatus":{"properties":{"status":{"type":"string","title":"Status"},"response_time_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Response Time Ms"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["status"],"title":"ServiceStatus","description":"Individual service status."},"SessionListResponse":{"properties":{"sessions":{"items":{"$ref":"#/components/schemas/ChatSession"},"type":"array","title":"Sessions","description":"List of user sessions"},"total_count":{"type":"integer","title":"Total Count","description":"Total number of sessions"},"page":{"type":"integer","title":"Page","description":"Current page number","default":1},"page_size":{"type":"integer","title":"Page Size","description":"Number of sessions per page","default":50}},"type":"object","required":["sessions","total_count"],"title":"SessionListResponse","description":"Response model for listing user sessions"},"ShippingInfo":{"properties":{"domestic_free_shipping_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domestic Free Shipping Threshold","description":"Order amount for free domestic shipping (e.g. '$100')"},"domestic_flat_rate_shipping_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domestic Flat Rate Shipping Fee","description":"Flat rate domestic shipping fee"},"international_flat_rate_shipping_fee":{"type":"string","title":"International Flat Rate Shipping Fee","description":"Flat rate international shipping fee"},"order_processing_time":{"type":"string","title":"Order Processing Time","description":"Time to process orders (e.g. '1-2 business days')"},"daily_order_cutoff":{"type":"string","title":"Daily Order Cutoff","description":"Daily cutoff time for same-day processing"},"standard_domestic_delivery_estimate":{"type":"string","title":"Standard Domestic Delivery Estimate","description":"Standard domestic delivery timeframe (e.g. '3-7 business days')"},"expedited_domestic_delivery_estimate":{"type":"string","title":"Expedited Domestic Delivery Estimate","description":"Expedited domestic delivery timeframe"},"international_delivery_estimate":{"type":"string","title":"International Delivery Estimate","description":"International delivery timeframe"}},"type":"object","required":["international_flat_rate_shipping_fee","order_processing_time","daily_order_cutoff","standard_domestic_delivery_estimate","expedited_domestic_delivery_estimate","international_delivery_estimate"],"title":"ShippingInfo","description":"Step 2 form data — shipping configuration."},"StoreNameSuggestion":{"properties":{"name":{"type":"string","title":"Name","description":"Suggested store name"},"domain_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Domain Available","description":"Whether domain might be available"},"style":{"type":"string","enum":["descriptive","brandable","keyword_rich","premium"],"title":"Style","description":"Style of the store name"},"rationale":{"type":"string","title":"Rationale","description":"Why this name works for the niche"}},"type":"object","required":["name","style","rationale"],"title":"StoreNameSuggestion","description":"Store name suggestion for the product niche"},"StoreNiche":{"type":"string","enum":["Cooking","Entertainment Room","Garage","Heat/Fire","Outdoor Adventure","Patio","Smart Products/Tech","Wellness","Yard/Landscaping"],"title":"StoreNiche"},"SystemMetrics":{"properties":{"cpu_percent":{"type":"number","title":"Cpu Percent"},"memory_percent":{"type":"number","title":"Memory Percent"},"memory_available_mb":{"type":"number","title":"Memory Available Mb"},"disk_usage_percent":{"type":"number","title":"Disk Usage Percent"},"uptime_seconds":{"type":"number","title":"Uptime Seconds"}},"type":"object","required":["cpu_percent","memory_percent","memory_available_mb","disk_usage_percent","uptime_seconds"],"title":"SystemMetrics","description":"System performance metrics."},"ToolInvocation":{"properties":{"toolCallId":{"type":"string","title":"Toolcallid"},"toolName":{"type":"string","title":"Toolname"},"args":{"additionalProperties":true,"type":"object","title":"Args"},"state":{"type":"string","enum":["call","result"],"title":"State","default":"call"},"result":{"title":"Result"}},"type":"object","required":["toolCallId","toolName","args"],"title":"ToolInvocation","description":"Tool invocation in a message."},"UpdateSessionRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"New session title"}},"type":"object","title":"UpdateSessionRequest","description":"Request model for updating an existing session"},"UserProfile":{"properties":{"age":{"type":"integer","maximum":100.0,"minimum":16.0,"title":"Age","description":"Client age"},"location":{"type":"string","title":"Location","description":"Client current location or where they are from"},"occupation":{"type":"string","title":"Occupation","description":"Client occupation and professional background"},"spare_time_activities":{"items":{"type":"string"},"type":"array","title":"Spare Time Activities","description":"What they like to do in their spare time"},"interests_hobbies":{"items":{"type":"string"},"type":"array","title":"Interests Hobbies","description":"Client interests and hobbies"},"content_consumption":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Content Consumption","description":"What type of content regularly consumes (youtube, tv shows, movies) - REMOVED from questions","examples":[["YouTube tech reviews","Netflix documentaries","Business podcasts"]]},"passions":{"items":{"type":"string"},"type":"array","title":"Passions","description":"Other noteworthy passions"},"prior_experience":{"type":"boolean","title":"Prior Experience","description":"Whether or not they have prior e-commerce experience"},"experience_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Details","description":"Details about their prior experience if any"}},"type":"object","required":["age","location","occupation","spare_time_activities","interests_hobbies","passions","prior_experience"],"title":"UserProfile","description":"Complete user profile from 7 question flow (content consumption question removed)"},"UserResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","created_at"],"title":"UserResponse","description":"User information response model."},"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"},"VercelChatRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/VercelMessage"},"type":"array","title":"Messages","description":"Conversation messages"},"agent_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Type","description":"Optional agent type hint"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"Optional session ID for conversation continuity"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Optional model override"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"Optional temperature setting"},"maxTokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxtokens","description":"Optional max tokens"},"topP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Topp","description":"Optional top-p sampling"},"frequencyPenalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequencypenalty","description":"Optional frequency penalty"},"presencePenalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presencepenalty","description":"Optional presence penalty"},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"Additional context including follow-up request metadata"}},"type":"object","required":["messages"],"title":"VercelChatRequest","description":"Chat request format from Vercel AI SDK."},"VercelMessage":{"properties":{"role":{"type":"string","enum":["user","assistant","system","tool"],"title":"Role"},"content":{"type":"string","title":"Content"},"toolInvocations":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolInvocation"},"type":"array"},{"type":"null"}],"title":"Toolinvocations"},"experimental_attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClientAttachment"},"type":"array"},{"type":"null"}],"title":"Experimental Attachments"}},"type":"object","required":["role","content"],"title":"VercelMessage","description":"Message format expected by Vercel AI SDK."},"VerifyResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["user_id","email","role"],"title":"VerifyResponse","description":"Token verification response model."},"app__models__vercel__FollowUpRequest":{"properties":{"session_id":{"type":"string","title":"Session Id","description":"Session ID to continue"},"agent_type":{"type":"string","title":"Agent Type","description":"Agent type (logo-generator, niche-selection, etc.)"},"follow_up_type":{"type":"string","title":"Follow Up Type","description":"Type: 'edit' or 'variation'"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"Optional specific instructions"},"triggered_by":{"type":"string","title":"Triggered By","description":"How the request was triggered","default":"ui_button"}},"type":"object","required":["session_id","agent_type","follow_up_type"],"title":"FollowUpRequest","description":"Simple follow-up request format for dedicated endpoint."},"app__routers__follow_up__FollowUpRequest":{"properties":{"session_id":{"type":"string","title":"Session Id","description":"Chat session ID"},"follow_up_type":{"type":"string","title":"Follow Up Type","description":"Type of follow-up: 'variations' (generic), 'logo_revision' (logo changes), 'store_names' (more name options)","default":"variations"},"edit_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edit Instructions","description":"Specific edit instructions for logo modifications (e.g., 'make it blue', 'more minimalist'). If provided, uses OpenAI's image edit endpoint. If null, generates a completely new logo variation."},"custom_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Prompt","description":"Optional custom prompt for non-logo agents or additional style guidance (e.g., for store names: 'tech-focused names', 'luxury brand names')."}},"type":"object","required":["session_id"],"title":"FollowUpRequest","description":"Request model for follow-up generation."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}