{"openapi":"3.1.0","info":{"title":"CloneChart.io","description":"App discovery and clone-plan research for vibe coders","version":"1.0.0"},"paths":{"/api/access/request":{"post":{"tags":["service-access"],"summary":"Request Access Email","description":"Return a duplicate-safe response and never disclose identity lifecycle.","operationId":"request_access_email_api_access_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/access/status":{"get":{"tags":["service-access"],"summary":"Access Status","operationId":"access_status_api_access_status_get","parameters":[{"name":"app_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/access/confirmation":{"get":{"tags":["service-access"],"summary":"Access Confirmation","operationId":"access_confirmation_api_access_confirmation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/access/verify":{"get":{"tags":["service-access"],"summary":"Fragment Verification Interstitial","description":"Render a tokenless page; the browser fragment never crosses the network.","operationId":"fragment_verification_interstitial_access_verify_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["service-access"],"summary":"Verify Fragment Access Email","description":"Consume a fragment credential from the request body, never the URL.","operationId":"verify_fragment_access_email_access_verify_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/access/verify/{token}":{"get":{"tags":["service-access"],"summary":"Verification Interstitial","description":"GET validates and renders only; link scanners cannot create sessions.","operationId":"verification_interstitial_access_verify__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["service-access"],"summary":"Verify Access Email","operationId":"verify_access_email_access_verify__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/logout":{"post":{"tags":["service-access"],"summary":"Logout Access","operationId":"logout_access_access_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account":{"get":{"tags":["account"],"summary":"Account Page","description":"Plan, free allowance, unlocked kits, billing actions, and sign-out.","operationId":"account_page_account_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/me":{"get":{"tags":["account"],"summary":"Api Me","description":"Who is signed in on this browser, for the header and the account page.","operationId":"api_me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me/kits/hide-all":{"post":{"tags":["account"],"summary":"Api Hide All Kits","description":"Empty this member's \"Your Build Kits\" list. History only: nothing is deleted.","operationId":"api_hide_all_kits_api_me_kits_hide_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me/kits/{app_id}/hide":{"post":{"tags":["account"],"summary":"Api Hide Kit","description":"Take one kit off this member's list. The unlock, the kit and its counts stay.","operationId":"api_hide_kit_api_me_kits__app_id__hide_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace":{"get":{"summary":"Get Workspace","operationId":"get_workspace_api_workspace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Put Workspace","operationId":"put_workspace_api_workspace_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEdit"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/apps":{"get":{"summary":"Saved App Names","operationId":"saved_app_names_api_workspace_apps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp":{"get":{"summary":"Connect Page","operationId":"connect_page_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/connect/authorize":{"get":{"summary":"Consent Page","operationId":"consent_page_connect_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Approve Connection","operationId":"approve_connection_connect_authorize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/connections":{"get":{"summary":"Connections","operationId":"connections_api_workspace_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/connection-status":{"get":{"summary":"Connection Status","operationId":"connection_status_api_workspace_connection_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/connections/{connection_id}":{"delete":{"summary":"Disconnect","operationId":"disconnect_api_workspace_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/weekly-movers/subscribe":{"post":{"summary":"Subscribe Weekly Movers Without Javascript","description":"Progressive-enhancement fallback with the same neutral response contract.","operationId":"subscribe_weekly_movers_without_javascript_email_weekly_movers_subscribe_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_subscribe_weekly_movers_without_javascript_email_weekly_movers_subscribe_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/confirm/{token}":{"get":{"summary":"Weekly Movers Confirmation Page","description":"Show a non-mutating confirmation interstitial to resist link scanners.","operationId":"weekly_movers_confirmation_page_email_confirm__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Confirm Weekly Movers Subscription","operationId":"confirm_weekly_movers_subscription_email_confirm__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/preferences/{token}":{"get":{"summary":"Weekly Movers Preferences Page","operationId":"weekly_movers_preferences_page_email_preferences__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Update Weekly Movers Preferences","operationId":"update_weekly_movers_preferences_email_preferences__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_weekly_movers_preferences_email_preferences__token__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/unsubscribe/{token}":{"get":{"summary":"Weekly Movers Unsubscribe Page","description":"GET never changes subscription state; scanners cannot unsubscribe users.","operationId":"weekly_movers_unsubscribe_page_email_unsubscribe__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Unsubscribe Weekly Movers Subscription","description":"Idempotent human and RFC 8058 one-click unsubscribe endpoint.","operationId":"unsubscribe_weekly_movers_subscription_email_unsubscribe__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":40,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Homepage","description":"Homepage - Shows a deterministic Top Grossing chart.\n\nRandom highlight mode: When random_highlight param is set, shows\nall apps with the specified app in view. Random app selection itself\nremains an explicit action handled by Random.exe.","operationId":"homepage__get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"Category"}},{"name":"show","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2500,"minimum":1},{"type":"null"}],"title":"Show"}},{"name":"random_highlight","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"Random Highlight"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":101,"minimum":1,"default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chart/velocity":{"get":{"summary":"Velocity Page","description":"Trending / Rank Velocity Dashboard.\n\nShows apps with the fastest rank momentum over the last N days, powered\nby the ranking_snapshots historical data pipeline. Registration BEFORE\n/chart/{chart_type} is intentional and critical: FastAPI matches routes\nin registration order, and \"velocity\" must not be captured as a chart_type\npath parameter by the generic catch-all below.\n\nFour modes:\n  - rising   : apps climbing fastest (default, most actionable)\n  - falling  : apps losing ground\n  - new      : apps that newly entered the top 500 in this period\n  - volatile : apps with highest rank standard deviation\n\nThree periods: 7d (default), 14d, 30d.","operationId":"velocity_page_chart_velocity_get","parameters":[{"name":"chart_type","in":"query","required":false,"schema":{"type":"string","pattern":"^(grossing|free|paid)$","default":"grossing","title":"Chart Type"}},{"name":"period","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":7,"default":7,"title":"Period"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"Category"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","pattern":"^(rising|falling|new|volatile)$","default":"rising","title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chart/{chart_type}":{"get":{"summary":"Chart Page","description":"Chart-specific page for free, paid, browse, or zombie apps.\n\nThe browse view supports server-side search, sorting, difficulty filtering,\nand pagination. Regular chart navigation always starts at the overall chart.","operationId":"chart_page_chart__chart_type__get","parameters":[{"name":"chart_type","in":"path","required":true,"schema":{"type":"string","pattern":"^(free|paid|browse|zombie)$","title":"Chart Type"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"Category"}},{"name":"show","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2500,"minimum":1},{"type":"null"}],"title":"Show"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(rank|revenue|price|name)$"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(asc|desc)$"},{"type":"null"}],"title":"Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":101,"minimum":1,"default":1,"title":"Page"}},{"name":"difficulty","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|easy|medium|hard)$","default":"all","title":"Difficulty"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/faq":{"get":{"summary":"Faq Page","description":"FAQ page - answers common questions about CloneChart.","operationId":"faq_page_faq_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pro":{"get":{"summary":"Pro Page","description":"Build Kits and the Pro plan: what is free, what Pro adds, how it works.","operationId":"pro_page_pro_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms":{"get":{"summary":"Terms Page","description":"Terms of Service page.","operationId":"terms_page_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/privacy":{"get":{"summary":"Privacy Page","description":"Privacy Policy page.","operationId":"privacy_page_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/sponsor":{"get":{"summary":"Sponsor Page","description":"Sponsorship information page.","operationId":"sponsor_page_sponsor_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/supabase":{"get":{"summary":"Supabase Page","description":"Supabase integration page - recommends Supabase as the default backend.","operationId":"supabase_page_supabase_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog":{"get":{"summary":"Blog Index","description":"Blog index page - lists all blog posts.","operationId":"blog_index_blog_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/{slug}":{"get":{"summary":"Blog Post","description":"Individual blog post page.","operationId":"blog_post_blog__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/category/{category_slug}":{"get":{"summary":"Category Landing Page","description":"Category landing page - SEO-optimized page for each app category.\nShows top 10 grossing apps in the category with unique content.","operationId":"category_landing_page_category__category_slug__get","parameters":[{"name":"category_slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9-]+$","title":"Category Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{app_id}":{"get":{"summary":"App Detail Page","description":"App detail page - shows comprehensive app analysis.\n\nZone 1: Hero Stats (app info + revenue estimate)\nZone 3: Build Blueprint (tech stack + complexity) - loaded async\nZone 4: Clone Terminal (multi-platform prompts) - loaded async\nZone 5: Weakness Analysis (opportunities) - loaded async\n\nZones 3-5 load via JavaScript after initial page render. Cached non-prompt\nanalysis is pre-rendered for indexing, while rollout-gated prompts are\nrepresented only by server-authored previews in public HTML.","operationId":"app_detail_page_app__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{app_id}/build-kit":{"get":{"tags":["build-kits"],"summary":"Build Kit Preview Page","description":"Indexable preview of a ready kit: summary, difficulty, and outline only.\n\nFails closed exactly like the JSON routes: outside the kit feature, the\nverified-access rollout, or the app's cohort there is no kit surface, so\nnarrowing the cohort withdraws the preview as well.","operationId":"build_kit_preview_page_app__app_id__build_kit_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/{app_id}/build-kit":{"get":{"tags":["build-kits"],"summary":"Api Build Kit Status","description":"Read-only kit state for the app-page zone and polling.","operationId":"api_build_kit_status_api_app__app_id__build_kit_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildKitStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["build-kits"],"summary":"Api Build Kit Generate","description":"Claim a background generation for a verified identity; 202 while pending.","operationId":"api_build_kit_generate_api_app__app_id__build_kit_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildKitStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/{app_id}/build-kit/unlock":{"post":{"tags":["build-kits"],"summary":"Api Build Kit Unlock","description":"Grant this identity the kit for ``app_id`` from its free allowance.\n\nIdempotent per (identity, app). 402 ``build_kit_pro_required`` once the\nallowance is used; 429 when the per-IP daily cap on new free kits is hit.\nThe route does not exist (404) while billing is off.","operationId":"api_build_kit_unlock_api_app__app_id__build_kit_unlock_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildKitStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/{app_id}/build-kit.zip":{"get":{"tags":["build-kits"],"summary":"Api Build Kit Download","description":"Deliver the rendered kit as a zip to a verified service session.","operationId":"api_build_kit_download_api_app__app_id__build_kit_zip_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["build-kits"],"summary":"Api Personal Build Kit Download","description":"An optional brief travels in the request body and private download only.","operationId":"api_personal_build_kit_download_api_app__app_id__build_kit_zip_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalKitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/remix":{"get":{"tags":["build-kits"],"summary":"Remix Page","operationId":"remix_page_remix_get","parameters":[{"name":"app","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"App"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/{app_id}/remix-source":{"get":{"tags":["build-kits"],"summary":"Api Remix Source","description":"Public selection labels plus private access state; never generates.","operationId":"api_remix_source_api_app__app_id__remix_source_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/remix.zip":{"post":{"tags":["build-kits"],"summary":"Api Remix Download","operationId":"api_remix_download_api_remix_zip_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MultiRemixRequest"},{"$ref":"#/components/schemas/RemixRequest"}],"title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/checkout":{"post":{"tags":["billing"],"summary":"Api Billing Checkout","description":"Create a Pro subscription Checkout Session for the verified visitor.","operationId":"api_billing_checkout_api_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CheckoutBody"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/confirmation":{"get":{"tags":["billing"],"summary":"Api Billing Confirmation","operationId":"api_billing_confirmation_api_billing_confirmation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/portal":{"post":{"tags":["billing"],"summary":"Api Billing Portal","description":"Open the Stripe Customer Portal for an identity that has a Stripe customer.","operationId":"api_billing_portal_api_billing_portal_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PortalBody"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/stripe":{"post":{"tags":["billing"],"summary":"Api Stripe Webhook","description":"Verify, deduplicate, and apply one Stripe event.\n\nEvery application-level outcome (ignored, unmatched, superseded,\nduplicate) is acknowledged with an empty 200 so Stripe does not retry what\ncan never change; only a bad signature (400) or a Stripe/database failure\n(503) refuses the delivery so it is redelivered.","operationId":"api_stripe_webhook_api_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/search":{"get":{"tags":["API"],"summary":"Api Search","description":"Search apps by name, developer, or category.\nReturns matching apps with their best ranking across all charts.\n\n- **q**: Search query (minimum 2 characters)\n- **limit**: Maximum number of results (1-20, default 10)","operationId":"api_search_api_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Search query","default":"","title":"Q"},"description":"Search query"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"description":"Max results","default":10,"title":"Limit"},"description":"Max results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rankings":{"get":{"tags":["API"],"summary":"Api Rankings","description":"Get app rankings with filtering and pagination.\n\n- **chart_type**: One of 'grossing', 'free', 'paid'\n- **category**: Category ID (e.g., '6014' for Games) or 'all'\n- **limit**: Number of ranked results (1-200, default 100)\n- **offset**: Skip this many results for pagination","operationId":"api_rankings_api_rankings_get","parameters":[{"name":"chart_type","in":"query","required":false,"schema":{"enum":["grossing","free","paid"],"type":"string","description":"Chart type: grossing, free, paid","default":"grossing","title":"Chart Type"},"description":"Chart type: grossing, free, paid"},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":10,"pattern":"^(?:all|\\d{1,10})$","description":"Category ID or 'all'","default":"all","title":"Category"},"description":"Category ID or 'all'"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Number of ranked results (max 200)","default":100,"title":"Limit"},"description":"Number of ranked results (max 200)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"description":"Pagination offset","default":0,"title":"Offset"},"description":"Pagination offset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RankingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/velocity":{"get":{"tags":["API"],"summary":"Api Velocity","description":"Get apps ranked by rank velocity (momentum) over a time period.\n\nVelocity = (rank at period start) - (rank today).\nPositive velocity = app climbed up the chart (rank number went down).\n\n**Modes:**\n- **rising**: Apps with the largest positive velocity (fastest climbers)\n- **falling**: Apps with the largest negative velocity (biggest declines)\n- **new**: Apps that entered the top 500 during this period (no prior history)\n- **volatile**: Apps with the highest rank standard deviation (most unstable)\n\n**Period:** 7, 14, or 30 days. Defaults to 7 (most actionable for builders).\n\n**Data availability:** Requires at least 2 days of historical snapshots.\nReturns `data_available: false` with an empty list if insufficient data exists.","operationId":"api_velocity_api_velocity_get","parameters":[{"name":"chart_type","in":"query","required":false,"schema":{"enum":["grossing","free","paid"],"type":"string","description":"Chart type: grossing, free, paid","default":"grossing","title":"Chart Type"},"description":"Chart type: grossing, free, paid"},{"name":"period","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":7,"description":"Lookback window in days","default":7,"title":"Period"},"description":"Lookback window in days"},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":10,"pattern":"^(?:all|\\d{1,10})$","description":"Category ID or 'all'","default":"all","title":"Category"},"description":"Category ID or 'all'"},{"name":"mode","in":"query","required":false,"schema":{"enum":["rising","falling","new","volatile"],"type":"string","description":"View mode","default":"rising","title":"Mode"},"description":"View mode"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of results per page","default":50,"title":"Limit"},"description":"Number of results per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"description":"Pagination offset","default":0,"title":"Offset"},"description":"Pagination offset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VelocityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zombie-apps":{"get":{"tags":["API"],"summary":"Api Zombie Apps","description":"Get zombie apps: high-rated, high-demand apps that stopped updating.\nUsed by the Zombie Apps tab and its Load More button.\n\nReturns the same JSON shape as /api/rankings so the frontend can\nreuse appendApps().","operationId":"api_zombie_apps_api_zombie_apps_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":10,"pattern":"^(?:all|\\d{1,10})$","description":"Category ID or 'all'","default":"all","title":"Category"},"description":"Category ID or 'all'"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Number of results","default":100,"title":"Limit"},"description":"Number of results"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"description":"Pagination offset","default":0,"title":"Offset"},"description":"Pagination offset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/categories":{"get":{"tags":["API"],"summary":"Api Categories","description":"Get list of available categories for filtering.","operationId":"api_categories_api_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CategoryOption"},"type":"array","title":"Response Api Categories Api Categories Get"}}}}}}},"/api/health":{"get":{"tags":["API"],"summary":"Health Check","description":"Health check endpoint for monitoring.\nVerifies database connection is active.","operationId":"health_check_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/stats":{"get":{"tags":["API"],"summary":"Api Stats","description":"Get database statistics including scraper status.\nUseful for monitoring when the last scrape occurred.","operationId":"api_stats_api_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/history/stats":{"get":{"tags":["API"],"summary":"Api History Stats","description":"Get statistics about available historical snapshots.\nReturns total days tracked and list of available dates.","operationId":"api_history_stats_api_history_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotStats"}}}}}}},"/api/history/app/{app_id}":{"get":{"tags":["API"],"summary":"Api App History","description":"Get historical rank data for a specific app.\n\n- **app_id**: The App Store ID to look up\n- **chart_type**: Chart type to query (default: grossing)\n- **days**: Number of days of history to return (1-365, default: 30)","operationId":"api_app_history_api_history_app__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}},{"name":"chart_type","in":"query","required":false,"schema":{"enum":["grossing","free","paid"],"type":"string","description":"Chart type: grossing, free, paid","default":"grossing","title":"Chart Type"},"description":"Chart type: grossing, free, paid"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Number of days of history","default":30,"title":"Days"},"description":"Number of days of history"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppRankHistory"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/history/rankings/{scrape_date}":{"get":{"tags":["API"],"summary":"Api Historical Rankings","description":"Get rankings snapshot for a specific historical date.\n\n- **scrape_date**: Date in YYYY-MM-DD format\n- **chart_type**: Chart type to query (default: grossing)\n- **category**: Category ID or 'all' (default: all)\n- **limit**: Number of results (1-500, default: 100)","operationId":"api_historical_rankings_api_history_rankings__scrape_date__get","parameters":[{"name":"scrape_date","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":10,"title":"Scrape Date"}},{"name":"chart_type","in":"query","required":false,"schema":{"enum":["grossing","free","paid"],"type":"string","description":"Chart type: grossing, free, paid","default":"grossing","title":"Chart Type"},"description":"Chart type: grossing, free, paid"},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":10,"pattern":"^(?:all|\\d{1,10})$","description":"Category ID or 'all'","default":"all","title":"Category"},"description":"Category ID or 'all'"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Number of results","default":100,"title":"Limit"},"description":"Number of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalRankingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clone/generate":{"post":{"tags":["API"],"summary":"Api Generate Clone Prompt","description":"Generate a Rork-compatible prompt for cloning an app.\n\nUses OpenRouter API (free tier) to generate detailed prompts.\nFalls back to template-based generation if API is unavailable.\n\n- **app_name**: Name of the app to clone\n- **app_url**: App Store URL\n- **category**: App category\n- **developer**: Developer name\n- **description**: Optional app description\n- **has_iap**: Whether the app has in-app purchases\n- **model**: Optional OpenRouter model override","operationId":"api_generate_clone_prompt_api_clone_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clone/models":{"get":{"tags":["API"],"summary":"Api Clone Models","description":"Get list of available free OpenRouter models for prompt generation.","operationId":"api_clone_models_api_clone_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/app/{app_id}":{"get":{"tags":["API"],"summary":"Api Get App","description":"Get full app details by app_id.\nIncludes app metadata and current ranking info.","operationId":"api_get_app_api_app__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/random-app":{"get":{"tags":["API"],"summary":"Api Random App","description":"Get a random app for Random.exe.\n\n``catalog`` rolls across every app the catalog holds; with a category it\nrolls across that whole category, not just its ranked slice. A chart pool\nrolls across that chart's current ranked apps, ``zombie`` across the zombie\nfilter. Also returns the exact pool size for the animation display.","operationId":"api_random_app_api_random_app_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":10,"pattern":"^(?:all|\\d{1,10})$","description":"Category ID or 'all'","default":"all","title":"Category"},"description":"Category ID or 'all'"},{"name":"pool","in":"query","required":false,"schema":{"enum":["catalog","grossing","free","paid","zombie"],"type":"string","description":"Where to roll: the whole catalog, one ranked chart, or the zombie filter","default":"catalog","title":"Pool"},"description":"Where to roll: the whole catalog, one ranked chart, or the zombie filter"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/{app_id}/analysis":{"get":{"tags":["API"],"summary":"Api Get App Analysis","description":"Return a previously generated AI analysis without causing provider spend\nor database writes. Use POST on this URL to generate a missing analysis.\n\nReturns:\n- Multi-platform clone prompts (Rork, Cursor, v0.dev)\n- Estimated tech stack\n- Complexity scoring\n- Weakness/opportunity analysis","operationId":"api_get_app_analysis_api_app__app_id__analysis_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AppAnalysisResponse"},{"$ref":"#/components/schemas/GatedAppAnalysisResponse"}],"title":"Response Api Get App Analysis Api App  App Id  Analysis Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["API"],"summary":"Api Generate App Analysis","description":"Generate and cache analysis after an explicit, rate-limited action.","operationId":"api_generate_app_analysis_api_app__app_id__analysis_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AppAnalysisResponse"},{"$ref":"#/components/schemas/GatedAppAnalysisResponse"}],"title":"Response Api Generate App Analysis Api App  App Id  Analysis Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/{app_id}/prompt/{platform}":{"get":{"tags":["API"],"summary":"Api Reveal App Prompt","description":"Return one cached platform prompt to a verified service session.","operationId":"api_reveal_app_prompt_api_app__app_id__prompt__platform__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"}},{"name":"platform","in":"path","required":true,"schema":{"enum":["rork","cursor","v0","vibecode"],"type":"string","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptRevealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/retention/weekly-movers/subscribe":{"post":{"tags":["API"],"summary":"Api Subscribe Weekly Movers","description":"Queue double opt-in without revealing whether an address already exists.","operationId":"api_subscribe_weekly_movers_api_retention_weekly_movers_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeeklyMoversSubscriptionRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/resend":{"post":{"tags":["API"],"summary":"Api Resend Email Webhook","description":"Accept signed provider delivery events while discarding provider PII.","operationId":"api_resend_email_webhook_api_webhooks_resend_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/subscribe/email-prompts":{"post":{"tags":["API"],"summary":"Api Email Prompts","description":"Refuse the obsolete unverified-address storage flow without writing PII.","operationId":"api_email_prompts_api_subscribe_email_prompts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPromptsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/event":{"post":{"tags":["API"],"summary":"Api Analytics Event","description":"Accept a strict, privacy-minimized attribution milestone.\n\nGA4 receives the complete canonical taxonomy in the browser.  This endpoint\nonly updates the compact revenue-attribution ledger and never stores request\nIPs, user agents, URLs, referrers, search text, prompts, errors, or email.","operationId":"api_analytics_event_api_analytics_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsEventPayload"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/track-affiliate":{"post":{"tags":["API"],"summary":"Api Track Affiliate","description":"Track an affiliate link click.\n\nStores click data and returns the destination URL.","operationId":"api_track_affiliate_api_track_affiliate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffiliateClickRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/{affiliate}":{"get":{"tags":["API"],"summary":"Api Affiliate Redirect","description":"Track and redirect to affiliate link.\n\nThis endpoint can be used directly in href links for server-side tracking.\nExample: /api/affiliate/rork?app_id=123&source=sidebar","operationId":"api_affiliate_redirect_api_affiliate__affiliate__get","parameters":[{"name":"affiliate","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9_-]+$","title":"Affiliate"}},{"name":"app_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"App Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Category"}},{"name":"chart","in":"query","required":false,"schema":{"anyOf":[{"enum":["grossing","free","paid","browse","velocity","zombie"],"type":"string"},{"type":"null"}],"title":"Chart"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"enum":["rork","cursor","v0","vibecode"],"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Source"}},{"name":"placement_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Placement Id"}},{"name":"experiment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Experiment Id"}},{"name":"experiment_variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Experiment Variant"}},{"name":"anonymous_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":16,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$"},{"type":"null"}],"title":"Anonymous Session Id"}},{"name":"impression_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":16,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$"},{"type":"null"}],"title":"Impression Id"}},{"name":"click_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":16,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$"},{"type":"null"}],"title":"Click Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/login":{"get":{"tags":["admin"],"summary":"Admin Login Page","description":"Admin login page.","operationId":"admin_login_page_admin_login_get","parameters":[{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Error"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Login","description":"Handle admin login.","operationId":"admin_login_admin_login_post","parameters":[{"name":"admin_login_csrf","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Login Csrf"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_login_admin_login_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/logout":{"post":{"tags":["admin"],"summary":"Admin Logout","description":"Log out and clear session.","operationId":"admin_logout_admin_logout_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/kit-jobs":{"get":{"tags":["admin"],"summary":"Admin Kit Jobs","description":"Read-only operational state; never expose model responses or source blobs.","operationId":"admin_kit_jobs_admin_kit_jobs_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/kit-jobs/preview":{"post":{"tags":["admin"],"summary":"Admin Kit Preview","operationId":"admin_kit_preview_admin_kit_jobs_preview_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_kit_preview_admin_kit_jobs_preview_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/kit-jobs/{job_id}/start":{"post":{"tags":["admin"],"summary":"Admin Kit Start","operationId":"admin_kit_start_admin_kit_jobs__job_id__start_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/kit-jobs/{job_id}/control":{"post":{"tags":["admin"],"summary":"Admin Kit Control","operationId":"admin_kit_control_admin_kit_jobs__job_id__control_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_kit_control_admin_kit_jobs__job_id__control_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin":{"get":{"tags":["admin"],"summary":"Admin Dashboard","description":"Main admin dashboard.","operationId":"admin_dashboard_admin_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps":{"get":{"tags":["admin"],"summary":"Admin Apps","description":"App management page.","operationId":"admin_apps_admin_apps_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":201,"minimum":1,"default":1,"title":"Page"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"name","title":"Sort"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/{app_id}":{"get":{"tags":["admin"],"summary":"Admin App Detail","description":"Single app detail/edit page.","operationId":"admin_app_detail_admin_apps__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/{app_id}/update":{"post":{"tags":["admin"],"summary":"Admin Update App","description":"Update app details.","operationId":"admin_update_app_admin_apps__app_id__update_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/{app_id}/delete":{"post":{"tags":["admin"],"summary":"Admin Delete App","description":"Delete an app and its related data.","operationId":"admin_delete_app_admin_apps__app_id__delete_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/add/new":{"get":{"tags":["admin"],"summary":"Admin Add App Page","description":"Page to manually add an app.","operationId":"admin_add_app_page_admin_apps_add_new_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Add App","description":"Add a new app manually.","operationId":"admin_add_app_admin_apps_add_new_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/fetch-app":{"post":{"tags":["admin"],"summary":"Admin Fetch App Data","description":"Fetch app data from iTunes Lookup API.","operationId":"admin_fetch_app_data_admin_api_fetch_app_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts":{"get":{"tags":["admin"],"summary":"Admin Prompts","description":"Prompt/Analysis management page.","operationId":"admin_prompts_admin_prompts_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":201,"minimum":1,"default":1,"title":"Page"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts/{app_id}":{"get":{"tags":["admin"],"summary":"Admin Prompt Detail","description":"View/edit prompt for an app.","operationId":"admin_prompt_detail_admin_prompts__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts/{app_id}/update":{"post":{"tags":["admin"],"summary":"Admin Update Prompt","description":"Update a specific prompt.","operationId":"admin_update_prompt_admin_prompts__app_id__update_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts/{app_id}/update-complexity":{"post":{"tags":["admin"],"summary":"Admin Update Complexity","description":"Update complexity estimate for an app.","operationId":"admin_update_complexity_admin_prompts__app_id__update_complexity_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts/{app_id}/update-tech-stack":{"post":{"tags":["admin"],"summary":"Admin Update Tech Stack","description":"Update tech stack for an app.","operationId":"admin_update_tech_stack_admin_prompts__app_id__update_tech_stack_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts/{app_id}/update-weaknesses":{"post":{"tags":["admin"],"summary":"Admin Update Weaknesses","description":"Update weaknesses and opportunities for an app.","operationId":"admin_update_weaknesses_admin_prompts__app_id__update_weaknesses_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts/{app_id}/regenerate":{"post":{"tags":["admin"],"summary":"Admin Regenerate Prompt","description":"Regenerate AI analysis for an app.","operationId":"admin_regenerate_prompt_admin_prompts__app_id__regenerate_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/{app_id}/generate-analysis":{"post":{"tags":["admin"],"summary":"Admin Generate Analysis","description":"Generate AI analysis for an app directly from admin panel.","operationId":"admin_generate_analysis_admin_apps__app_id__generate_analysis_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/{app_id}/generate-build-kit":{"post":{"tags":["admin"],"summary":"Admin Generate Build Kit","description":"Pre-warm a Build Kit from the admin panel.\n\nSame pipeline, daily budget, concurrency cap, and failure cooldown as a\nvisitor request; no paywall, per-identity limit, or cohort check, because\nthe owner is spending their own budget on purpose. Kits are made once per\napp: a ready kit is never regenerated from here.","operationId":"admin_generate_build_kit_admin_apps__app_id__generate_build_kit_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settings/social-proof":{"post":{"tags":["admin"],"summary":"Admin Save Social Proof","description":"Store the homepage social proof line (count + what it counts).","operationId":"admin_save_social_proof_admin_settings_social_proof_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_save_social_proof_admin_settings_social_proof_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/prompts/{app_id}/delete":{"post":{"tags":["admin"],"summary":"Admin Delete Prompt","description":"Delete cached analysis for an app.","operationId":"admin_delete_prompt_admin_prompts__app_id__delete_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bulk/regenerate-all":{"post":{"tags":["admin"],"summary":"Admin Bulk Regenerate","description":"Clear all cached prompts (will regenerate on next visit).","operationId":"admin_bulk_regenerate_admin_bulk_regenerate_all_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bulk/clear-inactive":{"post":{"tags":["admin"],"summary":"Admin Clear Inactive","description":"Clear inactive rankings.","operationId":"admin_clear_inactive_admin_bulk_clear_inactive_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bulk/clean-orphaned":{"post":{"tags":["admin"],"summary":"Admin Clean Orphaned","description":"Delete apps that have no ranking records (orphaned apps).","operationId":"admin_clean_orphaned_admin_bulk_clean_orphaned_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/duplicates":{"get":{"tags":["admin"],"summary":"Admin Duplicates","description":"Find and manage duplicate apps.","operationId":"admin_duplicates_admin_duplicates_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/duplicates/dismiss":{"post":{"tags":["admin"],"summary":"Admin Dismiss Duplicate","description":"Mark a duplicate group as separate apps (not real duplicates).","operationId":"admin_dismiss_duplicate_admin_duplicates_dismiss_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/duplicates/reset":{"post":{"tags":["admin"],"summary":"Admin Reset Dismissed","description":"Reset all dismissed duplicates.","operationId":"admin_reset_dismissed_admin_duplicates_reset_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/merge":{"post":{"tags":["admin"],"summary":"Admin Merge Apps","description":"Reject cross-ID merges because Apple app IDs are authoritative identity.","operationId":"admin_merge_apps_admin_apps_merge_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/apps/delete-duplicate":{"post":{"tags":["admin"],"summary":"Admin Delete Duplicate","description":"Delete a duplicate app without merging (for false positives).","operationId":"admin_delete_duplicate_admin_apps_delete_duplicate_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscribers":{"post":{"tags":["admin"],"summary":"Admin Subscribers","description":"View email subscribers.","operationId":"admin_subscribers_admin_subscribers_post","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":201,"minimum":1,"default":1,"title":"Page"}},{"name":"view","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"View"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"Period"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"Admin Subscribers","description":"View email subscribers.","operationId":"admin_subscribers_admin_subscribers_post","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":201,"minimum":1,"default":1,"title":"Page"}},{"name":"view","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"View"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"Period"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/revenue":{"get":{"tags":["admin"],"summary":"Admin Revenue","description":"Pro revenue: MRR and subscriptions from Stripe, paid invoices from the ledger.","operationId":"admin_revenue_admin_revenue_get","parameters":[{"name":"refreshed","in":"query","required":false,"schema":{"type":"string","maxLength":8,"pattern":"^(|1|error|stale)$","default":"","title":"Refreshed"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/revenue/refresh":{"post":{"tags":["admin"],"summary":"Admin Revenue Refresh","description":"Force a Stripe read now instead of waiting for the hourly snapshot.","operationId":"admin_revenue_refresh_admin_revenue_refresh_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/newsletter":{"get":{"tags":["admin"],"summary":"Admin Members","description":"Verified members (sign-in emails) and the weekly newsletter list, side by side.","operationId":"admin_members_admin_newsletter_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/members":{"get":{"tags":["admin"],"summary":"Admin Members","description":"Verified members (sign-in emails) and the weekly newsletter list, side by side.","operationId":"admin_members_admin_members_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/product-activity":{"get":{"tags":["admin"],"summary":"Admin Product Activity","description":"Aggregate product usage; generation controls remain in Operations.","operationId":"admin_product_activity_admin_product_activity_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/members/export":{"post":{"tags":["admin"],"summary":"Admin Export Members","description":"Verified members as CSV: email, verified date, plan, newsletter status.","operationId":"admin_export_members_admin_members_export_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/members/newsletter-export":{"post":{"tags":["admin"],"summary":"Admin Export Newsletter","description":"Newsletter list as CSV with consent details.","operationId":"admin_export_newsletter_admin_members_newsletter_export_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscribers/export":{"post":{"tags":["admin"],"summary":"Admin Export Subscribers","description":"Export all subscriber emails as CSV.","operationId":"admin_export_subscribers_admin_subscribers_export_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscribers/{subscriber_id}/delete":{"post":{"tags":["admin"],"summary":"Admin Delete Subscriber","description":"Delete a subscriber record.","operationId":"admin_delete_subscriber_admin_subscribers__subscriber_id__delete_post","parameters":[{"name":"subscriber_id","in":"path","required":true,"schema":{"type":"string","title":"Subscriber Id"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/scraper":{"get":{"tags":["admin"],"summary":"Admin Scraper","description":"Scraper status and control page.","operationId":"admin_scraper_admin_scraper_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/scraper/start":{"post":{"tags":["admin"],"summary":"Admin Start Scraper","description":"Start a scraper job in the background.","operationId":"admin_start_scraper_admin_api_scraper_start_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/scraper/status":{"get":{"tags":["admin"],"summary":"Admin Scraper Status","description":"Get current scraper status and logs.","operationId":"admin_scraper_status_admin_api_scraper_status_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/check-openai":{"get":{"tags":["admin"],"summary":"Admin Check Openai","description":"Report only non-sensitive OpenAI readiness information.","operationId":"admin_check_openai_admin_api_check_openai_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ai/generate-single":{"post":{"tags":["admin"],"summary":"Admin Generate Single Ai","description":"Generate AI analysis for a single app.","operationId":"admin_generate_single_ai_admin_api_ai_generate_single_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ai/generate-batch":{"post":{"tags":["admin"],"summary":"Admin Start Batch Ai","description":"Start batch AI generation in the background.","operationId":"admin_start_batch_ai_admin_api_ai_generate_batch_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ai/status":{"get":{"tags":["admin"],"summary":"Admin Ai Status","description":"Get current AI generation status and logs.","operationId":"admin_ai_status_admin_api_ai_status_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ai/stop":{"post":{"tags":["admin"],"summary":"Admin Stop Ai","description":"Stop the running AI generation job.","operationId":"admin_stop_ai_admin_api_ai_stop_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invalid-apps":{"get":{"tags":["admin"],"summary":"Admin Invalid Apps","description":"Find apps that may be removed from App Store (no icon, invalid URLs).","operationId":"admin_invalid_apps_admin_invalid_apps_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":201,"minimum":1,"default":1,"title":"Page"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invalid-apps/delete":{"post":{"tags":["admin"],"summary":"Admin Delete Invalid App","description":"Delete an invalid app.","operationId":"admin_delete_invalid_app_admin_invalid_apps_delete_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invalid-apps/bulk-delete":{"post":{"tags":["admin"],"summary":"Admin Bulk Delete Invalid Apps","description":"Delete all apps marked as having broken icons.","operationId":"admin_bulk_delete_invalid_apps_admin_invalid_apps_bulk_delete_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invalid-apps/verify-icons":{"post":{"tags":["admin"],"summary":"Admin Verify Icons","description":"Verify icon URLs by making HTTP requests. Marks broken ones.","operationId":"admin_verify_icons_admin_invalid_apps_verify_icons_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sponsor-stats":{"get":{"tags":["admin"],"summary":"Admin Sponsor Stats","description":"Sponsor-friendly stats dashboard.","operationId":"admin_sponsor_stats_admin_sponsor_stats_get","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sponsor-stats/export-csv":{"post":{"tags":["admin"],"summary":"Admin Sponsor Stats Csv","description":"Export the sponsor sheet as CSV.","operationId":"admin_sponsor_stats_csv_admin_sponsor_stats_export_csv_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics":{"get":{"tags":["admin"],"summary":"Admin Analytics","description":"Show aggregate, PII-free product-to-revenue attribution.","operationId":"admin_analytics_admin_analytics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics/export":{"post":{"tags":["admin"],"summary":"Admin Analytics Export","description":"Export bounded aggregate funnel data without session/click identifiers.","operationId":"admin_analytics_export_admin_analytics_export_post","parameters":[{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_analytics_export_admin_analytics_export_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/affiliates":{"get":{"tags":["admin"],"summary":"Admin Affiliates","description":"Affiliate clicks: human clicks next to everything recorded, plus the recent log.","operationId":"admin_affiliates_admin_affiliates_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":201,"minimum":1,"default":1,"title":"Page"}},{"name":"affiliate","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"all","title":"Affiliate"}},{"name":"admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/zombie/{slug}":{"get":{"summary":"Zombie Spotlight","description":"Render zombie dossier page. 404 if app doesn't exist or isn't a zombie.","operationId":"zombie_spotlight_zombie__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9-]+$","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessRequestBody":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"app_id":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"App Id"},"newsletter":{"type":"boolean","title":"Newsletter","default":false},"intent":{"anyOf":[{"type":"string","const":"pro"},{"type":"null"}],"title":"Intent"}},"additionalProperties":false,"type":"object","required":["email"],"title":"AccessRequestBody"},"AffiliateClickRequest":{"properties":{"affiliate":{"type":"string","maxLength":32,"minLength":1,"title":"Affiliate"},"app_id":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"App Id"},"category":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Category"},"chart":{"anyOf":[{"type":"string","enum":["grossing","free","paid","browse","velocity","zombie"]},{"type":"null"}],"title":"Chart"},"platform":{"anyOf":[{"type":"string","enum":["rork","cursor","v0","vibecode"]},{"type":"null"}],"title":"Platform"},"source":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Source"},"placement_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Placement Id"},"experiment_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Experiment Id"},"experiment_variant":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Experiment Variant"},"anonymous_session_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":16,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$"},{"type":"null"}],"title":"Anonymous Session Id"},"impression_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":16,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$"},{"type":"null"}],"title":"Impression Id"},"click_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":16,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$"},{"type":"null"}],"title":"Click Id"}},"additionalProperties":false,"type":"object","required":["affiliate"],"title":"AffiliateClickRequest","description":"Request body for tracking affiliate clicks."},"AnalyticsEventPayload":{"properties":{"event_name":{"type":"string","maxLength":40,"minLength":1,"title":"Event Name"},"event_id":{"type":"string","maxLength":64,"minLength":16,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$","title":"Event Id"},"anonymous_session_id":{"type":"string","maxLength":64,"minLength":16,"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{15,63}$","title":"Anonymous Session Id"},"properties":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Properties"}},"additionalProperties":false,"type":"object","required":["event_name","event_id","anonymous_session_id"],"title":"AnalyticsEventPayload","description":"Strict browser-to-server attribution envelope.\n\nRaw URLs, referrers, search terms, prompts, error messages, IP addresses,\nuser agents, and email addresses are intentionally not part of the schema."},"AppAnalysis":{"properties":{"app_id":{"type":"string","title":"App Id","description":"App Store ID"},"prompts":{"additionalProperties":true,"type":"object","title":"Prompts","description":"Platform-specific clone prompts (rork, cursor, v0)"},"tech_stack":{"items":{"$ref":"#/components/schemas/TechStackItem"},"type":"array","title":"Tech Stack"},"complexity":{"$ref":"#/components/schemas/ComplexityEstimate"},"weaknesses":{"items":{"$ref":"#/components/schemas/WeaknessOpportunity"},"type":"array","title":"Weaknesses"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"model":{"type":"string","title":"Model","description":"AI model used for generation","default":""},"version":{"type":"integer","title":"Version","description":"Schema version for cache invalidation","default":1}},"type":"object","required":["app_id","prompts","complexity"],"title":"AppAnalysis","description":"Complete AI-generated analysis for an app."},"AppAnalysisResponse":{"properties":{"app_id":{"type":"string","title":"App Id"},"cached":{"type":"boolean","title":"Cached","description":"Whether this was from cache or freshly generated"},"analysis":{"$ref":"#/components/schemas/AppAnalysis"}},"type":"object","required":["app_id","cached","analysis"],"title":"AppAnalysisResponse","description":"API response for app analysis endpoint."},"AppRankHistory":{"properties":{"app_id":{"type":"string","title":"App Id"},"app_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Name"},"chart_type":{"type":"string","title":"Chart Type"},"history":{"items":{"$ref":"#/components/schemas/RankHistoryEntry"},"type":"array","title":"History"},"days_tracked":{"type":"integer","title":"Days Tracked"}},"type":"object","required":["app_id","chart_type","history","days_tracked"],"title":"AppRankHistory","description":"Historical rank data for a single app."},"AppWithRank":{"properties":{"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"app_id":{"type":"string","title":"App Id"},"name":{"type":"string","title":"Name"},"developer":{"type":"string","title":"Developer"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon_url":{"type":"string","title":"Icon Url"},"price":{"type":"number","title":"Price"},"price_formatted":{"type":"string","title":"Price Formatted"},"has_iap":{"type":"boolean","title":"Has Iap"},"category":{"type":"string","title":"Category"},"rating":{"type":"number","title":"Rating"},"rating_count":{"type":"integer","title":"Rating Count"},"app_store_url":{"type":"string","title":"App Store Url"},"screenshot_urls":{"items":{"type":"string"},"type":"array","title":"Screenshot Urls","description":"App screenshot URLs"},"revenue_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Display"},"revenue_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Range"},"revenue_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Confidence"},"is_active":{"type":"boolean","title":"Is Active","default":true},"last_chart_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Chart Type"},"rank_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rank Scope"},"scope_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scope Rank"}},"type":"object","required":["app_id","name","developer","icon_url","price","price_formatted","has_iap","category","rating","rating_count","app_store_url"],"title":"AppWithRank","description":"Combined model for app data with its ranking."},"AppWithVelocity":{"properties":{"app_id":{"type":"string","title":"App Id"},"name":{"type":"string","title":"Name"},"developer":{"type":"string","title":"Developer"},"icon_url":{"type":"string","title":"Icon Url"},"category":{"type":"string","title":"Category"},"category_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"},"rating":{"type":"number","title":"Rating"},"rating_count":{"type":"integer","title":"Rating Count"},"price_formatted":{"type":"string","title":"Price Formatted"},"has_iap":{"type":"boolean","title":"Has Iap"},"app_store_url":{"type":"string","title":"App Store Url"},"current_rank":{"type":"integer","title":"Current Rank"},"previous_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Previous Rank"},"velocity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Velocity"},"velocity_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Velocity Pct"},"velocity_label":{"type":"string","title":"Velocity Label","default":"NEW"},"velocity_emoji":{"type":"string","title":"Velocity Emoji","default":"⚡"},"velocity_css_class":{"type":"string","title":"Velocity Css Class","default":"new-entry"},"data_points":{"type":"integer","title":"Data Points","default":0},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"is_new_entrant":{"type":"boolean","title":"Is New Entrant","default":false},"revenue_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Display"},"revenue_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Range"},"revenue_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Confidence"}},"type":"object","required":["app_id","name","developer","icon_url","category","rating","rating_count","price_formatted","has_iap","app_store_url","current_rank"],"title":"AppWithVelocity","description":"App with rank velocity data for the Trending dashboard.\n\nUnlike AppWithRank (which uses current chart rank), this model tracks\nhow much an app's rank *changed* over a time period, enabling the\n\"fastest rising apps\" discovery view."},"Body_admin_analytics_export_admin_analytics_export_post":{"properties":{"days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Days","default":30}},"type":"object","title":"Body_admin_analytics_export_admin_analytics_export_post"},"Body_admin_kit_control_admin_kit_jobs__job_id__control_post":{"properties":{"action":{"type":"string","title":"Action"}},"type":"object","required":["action"],"title":"Body_admin_kit_control_admin_kit_jobs__job_id__control_post"},"Body_admin_kit_preview_admin_kit_jobs_preview_post":{"properties":{"limit":{"type":"integer","title":"Limit","default":100},"budget":{"type":"number","title":"Budget","default":1.0},"mode":{"type":"string","title":"Mode","default":"generate"}},"type":"object","title":"Body_admin_kit_preview_admin_kit_jobs_preview_post"},"Body_admin_login_admin_login_post":{"properties":{"password":{"type":"string","maxLength":1024,"title":"Password"},"login_csrf":{"type":"string","maxLength":128,"title":"Login Csrf","default":""}},"type":"object","required":["password"],"title":"Body_admin_login_admin_login_post"},"Body_admin_save_social_proof_admin_settings_social_proof_post":{"properties":{"count":{"type":"string","title":"Count"},"label":{"type":"string","title":"Label"}},"type":"object","required":["count","label"],"title":"Body_admin_save_social_proof_admin_settings_social_proof_post"},"Body_subscribe_weekly_movers_without_javascript_email_weekly_movers_subscribe_post":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"consent":{"anyOf":[{"type":"string","maxLength":4,"pattern":"^true$"},{"type":"null"}],"title":"Consent"}},"type":"object","required":["email"],"title":"Body_subscribe_weekly_movers_without_javascript_email_weekly_movers_subscribe_post"},"Body_update_weekly_movers_preferences_email_preferences__token__post":{"properties":{"enabled":{"type":"string","maxLength":5,"pattern":"^(true|false)$","title":"Enabled"}},"type":"object","required":["enabled"],"title":"Body_update_weekly_movers_preferences_email_preferences__token__post"},"BuildKitBillingState":{"properties":{"entitled":{"type":"boolean","title":"Entitled","default":false},"plan":{"anyOf":[{"type":"string","enum":["pro","free","verified"]},{"type":"null"}],"title":"Plan"},"free_kits_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Kits Remaining"},"free_kit_window_days":{"type":"integer","title":"Free Kit Window Days","default":30},"paywall_reason":{"anyOf":[{"type":"string","enum":["unlock_required","free_allowance_used"]},{"type":"null"}],"title":"Paywall Reason"},"pro_price_label":{"type":"string","title":"Pro Price Label","default":""},"unlock_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unlock Path","description":"POST here to spend one free kit on this app"},"checkout_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Path","description":"POST here to start a Pro subscription checkout"},"portal_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Path","description":"POST here to open the Stripe customer portal"}},"type":"object","title":"BuildKitBillingState","description":"Paywall view for the requesting viewer; present only when billing is on."},"BuildKitStatusResponse":{"properties":{"app_id":{"type":"string","title":"App Id"},"kit_version":{"type":"integer","title":"Kit Version"},"status":{"type":"string","enum":["none","ineligible","pending","ready","failed"],"title":"Status"},"difficulty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Difficulty","description":"Manifest difficulty rating, present only when ready"},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At"},"file_count":{"type":"integer","title":"File Count","default":0},"retry_after_seconds":{"type":"integer","title":"Retry After Seconds","description":"Seconds until a failed kit may be regenerated","default":0},"generation_enabled":{"type":"boolean","title":"Generation Enabled","description":"Whether lazy generation is currently switched on","default":false},"daily_queue":{"type":"boolean","title":"Daily Queue","default":false},"access_required":{"type":"boolean","const":true,"title":"Access Required","description":"Kits are always behind verified service access","default":true},"access_verified":{"type":"boolean","title":"Access Verified","default":false},"download_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Path"},"preview_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Path"},"billing":{"anyOf":[{"$ref":"#/components/schemas/BuildKitBillingState"},{"type":"null"}],"description":"Null while BILLING_ENABLED is off (verified == entitled)"}},"type":"object","required":["app_id","kit_version","status"],"title":"BuildKitStatusResponse","description":"Public-safe Build Kit state for one app; never carries kit contents."},"CategoryOption":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"CategoryOption","description":"Model for category dropdown options."},"CheckoutBody":{"properties":{"app_id":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"App Id"},"access_surface":{"anyOf":[{"type":"string","enum":["pro","account","app"]},{"type":"null"}],"title":"Access Surface"}},"additionalProperties":false,"type":"object","title":"CheckoutBody","description":"The app page the visitor came from; Stripe returns them there.\n\nWithout an app (the account page) Stripe returns to ``/account``."},"CloneRequest":{"properties":{"app_id":{"type":"string","maxLength":20,"minLength":1,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"},"app_name":{"type":"string","maxLength":200,"minLength":1,"title":"App Name"},"app_url":{"type":"string","maxLength":2048,"minLength":1,"title":"App Url"},"category":{"type":"string","maxLength":100,"minLength":1,"title":"Category"},"developer":{"type":"string","maxLength":200,"minLength":1,"title":"Developer"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"has_iap":{"type":"boolean","title":"Has Iap","default":false},"model":{"anyOf":[{"type":"string","enum":["gpt-4o-mini","gpt-4o"]},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["app_id","app_name","app_url","category","developer"],"title":"CloneRequest","description":"Request body for generating a clone prompt."},"CloneResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"prompt":{"type":"string","title":"Prompt"},"rork_url":{"type":"string","title":"Rork Url"},"model":{"type":"string","title":"Model"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["success","prompt","rork_url","model"],"title":"CloneResponse","description":"Response from clone prompt generation."},"ComplexityEstimate":{"properties":{"score":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Score","description":"Difficulty score 1-10"},"label":{"type":"string","title":"Label","description":"EASY, MEDIUM, or HARD"},"days":{"type":"integer","title":"Days","description":"Estimated days to clone"},"team_size":{"type":"integer","title":"Team Size","description":"Recommended team size","default":1}},"type":"object","required":["score","label","days"],"title":"ComplexityEstimate","description":"Estimated complexity for cloning the app."},"EmailPromptsRequest":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"app_id":{"type":"string","maxLength":20,"minLength":1,"pattern":"^[1-9][0-9]{0,19}$","title":"App Id"},"platforms":{"items":{"type":"string","enum":["rork","cursor","v0","vibecode"]},"type":"array","maxItems":4,"minItems":1,"title":"Platforms"}},"additionalProperties":false,"type":"object","required":["email","app_id"],"title":"EmailPromptsRequest","description":"Request body for emailing prompts to user."},"FreshnessInfo":{"properties":{"status":{"type":"string","enum":["fresh","stale","missing","inconsistent"],"title":"Status"},"last_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Updated"},"newest_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Newest Updated"},"age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Age Hours"},"row_count":{"type":"integer","title":"Row Count","default":0},"threshold_hours":{"type":"integer","title":"Threshold Hours","default":36},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["status"],"title":"FreshnessInfo","description":"Freshness of one coherent chart or snapshot scope."},"GatedAppAnalysisResponse":{"properties":{"app_id":{"type":"string","title":"App Id"},"cached":{"type":"boolean","title":"Cached","description":"Whether this was from cache or freshly generated"},"analysis":{"$ref":"#/components/schemas/AppAnalysis"},"prompt_previews":{"additionalProperties":{"type":"string"},"type":"object","title":"Prompt Previews","description":"Public, server-authored summaries that never contain cached prompts"},"access_required":{"type":"boolean","const":true,"title":"Access Required","description":"Whether full prompts require a verified service session","default":true},"access_verified":{"type":"boolean","title":"Access Verified","description":"Whether this request has a verified service session","default":false}},"type":"object","required":["app_id","cached","analysis"],"title":"GatedAppAnalysisResponse","description":"Prompt-redacted analysis returned only while verified access is enabled."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoricalRankingsResponse":{"properties":{"scrape_date":{"type":"string","title":"Scrape Date"},"chart_type":{"type":"string","title":"Chart Type"},"category":{"type":"string","title":"Category"},"total":{"type":"integer","title":"Total"},"apps":{"items":{"$ref":"#/components/schemas/AppWithRank"},"type":"array","title":"Apps"}},"type":"object","required":["scrape_date","chart_type","category","total","apps"],"title":"HistoricalRankingsResponse","description":"API response for historical rankings on a specific date."},"MultiRemixRequest":{"properties":{"note":{"type":"string","maxLength":2000,"title":"Note","default":""},"sources":{"items":{"$ref":"#/components/schemas/RemixSourceRequest"},"type":"array","minItems":2,"title":"Sources"},"style_source":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","title":"Style Source"},"style_screen_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Style Screen Ids"},"exclusions":{"type":"string","maxLength":1000,"title":"Exclusions","default":""}},"additionalProperties":false,"type":"object","required":["sources","style_source"],"title":"MultiRemixRequest"},"PersonalKitRequest":{"properties":{"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"additionalProperties":false,"type":"object","title":"PersonalKitRequest"},"PortalBody":{"properties":{"app_id":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[1-9][0-9]{0,19}$"},{"type":"null"}],"title":"App Id"}},"additionalProperties":false,"type":"object","title":"PortalBody"},"PromptRevealResponse":{"properties":{"app_id":{"type":"string","title":"App Id"},"platform":{"type":"string","title":"Platform"},"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["app_id","platform","prompt"],"title":"PromptRevealResponse","description":"One authenticated platform prompt; never a multi-prompt bundle."},"RankHistoryEntry":{"properties":{"scrape_date":{"type":"string","title":"Scrape Date","description":"Date in YYYY-MM-DD format"},"rank":{"type":"integer","title":"Rank","description":"Rank on that date"}},"type":"object","required":["scrape_date","rank"],"title":"RankHistoryEntry","description":"Single entry in an app's rank history."},"RankingsResponse":{"properties":{"chart_type":{"type":"string","title":"Chart Type"},"category":{"type":"string","title":"Category"},"country":{"type":"string","title":"Country","default":"us"},"last_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Updated"},"freshness":{"anyOf":[{"$ref":"#/components/schemas/FreshnessInfo"},{"type":"null"}]},"total":{"type":"integer","title":"Total"},"apps":{"items":{"$ref":"#/components/schemas/AppWithRank"},"type":"array","title":"Apps"}},"type":"object","required":["chart_type","category","total","apps"],"title":"RankingsResponse","description":"API response model for rankings endpoint."},"RemixDraft":{"properties":{"id":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Id"},"title":{"type":"string","maxLength":100,"title":"Title","default":""},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","maxItems":50,"title":"Sources"},"style_source":{"type":"string","pattern":"^([1-9][0-9]{0,19})?$","title":"Style Source","default":""},"note":{"type":"string","maxLength":2000,"title":"Note","default":""},"exclusions":{"type":"string","maxLength":1000,"title":"Exclusions","default":""}},"additionalProperties":false,"type":"object","title":"RemixDraft"},"RemixRequest":{"properties":{"note":{"type":"string","maxLength":2000,"title":"Note","default":""},"app_a":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","title":"App A"},"app_b":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","title":"App B"},"revision_a":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Revision A"},"revision_b":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Revision B"},"features_a":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":32},{"type":"null"}],"title":"Features A"},"features_b":{"items":{"type":"string"},"type":"array","maxItems":32,"title":"Features B"},"screens_b":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Screens B"},"exclusions":{"type":"string","maxLength":1000,"title":"Exclusions","default":""}},"additionalProperties":false,"type":"object","required":["app_a","app_b","revision_a","revision_b"],"title":"RemixRequest"},"RemixSourceRequest":{"properties":{"app_id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","title":"App Id"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Revision"},"feature_ids":{"items":{"type":"string"},"type":"array","maxItems":32,"title":"Feature Ids"}},"additionalProperties":false,"type":"object","required":["app_id","revision"],"title":"RemixSourceRequest"},"SnapshotStats":{"properties":{"total_snapshot_days":{"type":"integer","title":"Total Snapshot Days","description":"Total number of days with snapshots"},"available_dates":{"items":{"type":"string"},"type":"array","title":"Available Dates","description":"List of available snapshot dates (YYYY-MM-DD)"},"earliest_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Earliest Date"},"latest_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Date"}},"type":"object","required":["total_snapshot_days","available_dates"],"title":"SnapshotStats","description":"Statistics about available historical snapshots."},"Source":{"properties":{"app_id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","title":"App Id"},"revision":{"type":"string","pattern":"^([a-f0-9]{64})?$","title":"Revision","default":""},"kit_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Kit Version"},"feature_ids":{"anyOf":[{"items":{"type":"string","pattern":"^[a-z0-9-]{1,100}$"},"type":"array","maxItems":32},{"type":"null"}],"title":"Feature Ids"},"screen_ids":{"anyOf":[{"items":{"type":"string","pattern":"^[a-z0-9-]{1,100}$"},"type":"array","maxItems":5},{"type":"null"}],"title":"Screen Ids"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"feature_labels":{"patternProperties":{"^[a-z0-9-]{1,100}$":{"type":"string","maxLength":120}},"type":"object","maxProperties":32,"title":"Feature Labels"},"screen_labels":{"patternProperties":{"^[a-z0-9-]{1,100}$":{"type":"string","maxLength":120}},"type":"object","maxProperties":5,"title":"Screen Labels"},"needs_review":{"type":"boolean","title":"Needs Review","default":false}},"additionalProperties":false,"type":"object","required":["app_id"],"title":"Source"},"TechStackItem":{"properties":{"name":{"type":"string","title":"Name","description":"Technology name (e.g., 'React Native')"},"icon":{"type":"string","title":"Icon","description":"Emoji icon for the technology","default":"🔧"}},"type":"object","required":["name"],"title":"TechStackItem","description":"A technology in the estimated tech stack."},"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"},"VelocityResponse":{"properties":{"chart_type":{"type":"string","title":"Chart Type"},"period_days":{"type":"integer","title":"Period Days"},"from_date":{"type":"string","title":"From Date"},"to_date":{"type":"string","title":"To Date"},"mode":{"type":"string","title":"Mode"},"category":{"type":"string","title":"Category"},"total":{"type":"integer","title":"Total"},"data_available":{"type":"boolean","title":"Data Available"},"freshness":{"anyOf":[{"$ref":"#/components/schemas/FreshnessInfo"},{"type":"null"}]},"apps":{"items":{"$ref":"#/components/schemas/AppWithVelocity"},"type":"array","title":"Apps"}},"type":"object","required":["chart_type","period_days","from_date","to_date","mode","category","total","data_available","apps"],"title":"VelocityResponse","description":"API response for the /api/velocity endpoint."},"WeaknessOpportunity":{"properties":{"complaint":{"type":"string","title":"Complaint","description":"Common user complaint"},"opportunity":{"type":"string","title":"Opportunity","description":"How to improve on this weakness"}},"type":"object","required":["complaint","opportunity"],"title":"WeaknessOpportunity","description":"A user complaint that represents a cloning opportunity."},"WeeklyMoversSubscriptionRequest":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"consent":{"type":"boolean","const":true,"title":"Consent"}},"additionalProperties":false,"type":"object","required":["email","consent"],"title":"WeeklyMoversSubscriptionRequest","description":"Explicit consent to begin the weekly-movers double opt-in flow."},"WorkspaceEdit":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"saved_apps":{"items":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"type":"array","maxItems":100,"title":"Saved Apps"},"remixes":{"items":{"$ref":"#/components/schemas/RemixDraft"},"type":"array","maxItems":20,"title":"Remixes"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"WorkspaceEdit"}}}}