{"openapi":"3.1.0","info":{"title":"TikShop Pro API","version":"1.0.0"},"paths":{"/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","description":"Creates an unverified account and emails a verification link. No session\nis issued: the user can't log in until the email is confirmed.","operationId":"register_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email_v1_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/resend-verification":{"post":{"tags":["auth"],"summary":"Resend Verification","description":"Generic response whether or not the address has an unverified account.","operationId":"resend_verification_v1_auth_resend_verification_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_v1_auth_refresh_post","parameters":[{"name":"refresh_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Emails a reset link if the address has an account. Always returns the\nsame generic response so the endpoint can't be used to enumerate emails.","operationId":"forgot_password_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/delete-account":{"post":{"tags":["auth"],"summary":"Delete Account","description":"Permanently deletes the signed-in user's account (password required).","operationId":"delete_account_v1_auth_delete_account_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","description":"Returns current user profile + plan info.\nCalled on every extension startup.","operationId":"me_v1_auth_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/create-checkout-session":{"post":{"tags":["auth"],"summary":"Create Checkout Session","description":"Create a Stripe Checkout Session for the current user.","operationId":"create_checkout_session_v1_auth_create_checkout_session_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/billing-portal":{"post":{"tags":["auth"],"summary":"Billing Portal","description":"Create a Stripe Billing Portal session so the user can manage/cancel their subscription.","operationId":"billing_portal_v1_auth_billing_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/subscription":{"get":{"tags":["auth"],"summary":"Subscription","description":"Live subscription state (renewal / end date) for the account page.","operationId":"subscription_v1_auth_subscription_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/cancel-subscription":{"post":{"tags":["auth"],"summary":"Cancel Subscription","description":"Cancel the current user's subscription at end of billing period.","operationId":"cancel_subscription_v1_auth_cancel_subscription_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/resume-subscription":{"post":{"tags":["auth"],"summary":"Resume Subscription","description":"Undo a scheduled cancellation (keeps the subscription renewing).","operationId":"resume_subscription_v1_auth_resume_subscription_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/upgrade":{"post":{"tags":["auth"],"summary":"Upgrade Webhook","description":"Stripe webhook — NOT protected by Firebase JWT.\nStripe signs the payload with STRIPE_WEBHOOK_SECRET instead.","operationId":"upgrade_webhook_v1_auth_upgrade_post","parameters":[{"name":"stripe-signature","in":"header","required":false,"schema":{"type":"string","title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/product/analyze":{"post":{"tags":["product"],"summary":"Analyze","description":"Main analysis endpoint. Consumes 1 quota unit only on success.\nReturns cached result when a valid analysis already exists.","operationId":"analyze_v1_product_analyze_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAnalyzeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAnalyzeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/product/reviews/bad":{"post":{"tags":["product"],"summary":"Bad Reviews","description":"Extract and return low-rated reviews from supplied page_data.\nUse this to power a \"What to improve\" section in UI.","operationId":"bad_reviews_v1_product_reviews_bad_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadReviewsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadReviewsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/product/config":{"get":{"tags":["product"],"summary":"Config","description":"Returns scoring config. No auth required — called on extension init.\nExtension uses this to stay in sync with backend scoring weights.","operationId":"config_v1_product_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductConfigResponse"}}}}}}},"/v1/creators/extract":{"post":{"tags":["creators"],"summary":"Extract","description":"Extension sends list of creators scraped from TikTok Shop product page.\nStored in Firestore and linked to product.","operationId":"extract_v1_creators_extract_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorExtractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/creators/export":{"get":{"tags":["creators"],"summary":"Export","description":"Exports creators for a product and returns a signed GCS URL.\nFree tier limited to 20 rows.\n\n- `source=creators`: from Firestore `creators` collection (extension `/creators/extract`)\n- `source=products`: from Firestore `products` collection (from `/product/analyze`)","operationId":"export_v1_creators_export_get","parameters":[{"name":"product_id","in":"query","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"csv | json","default":"csv","title":"Format"},"description":"csv | json"},{"name":"source","in":"query","required":false,"schema":{"type":"string","description":"creators | products","default":"creators","title":"Source"},"description":"creators | products"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/creators/export-from-videos":{"post":{"tags":["creators"],"summary":"Export From Videos","description":"Paste `videos: [...]` and export one row per creator: scraped email, share link,\n`video_count`, and `video_page_url` (newline-separated watch URLs per creator).","operationId":"export_from_videos_v1_creators_export_from_videos_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorsVideosExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/supplier/query":{"post":{"tags":["supplier"],"summary":"Query","description":"Parses product title, strips noise, searches supplier sources.\nReturns list of supplier links (Alibaba etc).","operationId":"query_v1_supplier_query_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner/enroll":{"post":{"tags":["partner"],"summary":"Enroll","operationId":"enroll_v1_partner_enroll_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProfile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner/me":{"get":{"tags":["partner"],"summary":"Me","operationId":"me_v1_partner_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner/profile":{"patch":{"tags":["partner"],"summary":"Update Profile","operationId":"update_profile_v1_partner_profile_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProfile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner/payout-request":{"post":{"tags":["partner"],"summary":"Payout Request","operationId":"payout_request_v1_partner_payout_request_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner/track-click":{"post":{"tags":["partner"],"summary":"Track Click","description":"Public — called from the landing page when a visitor arrives with ?ref=CODE.","operationId":"track_click_v1_partner_track_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackClickRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"summary":"Privacy","operationId":"privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"AuthResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user":{"$ref":"#/components/schemas/UserResponse"}},"type":"object","required":["access_token","refresh_token","user"],"title":"AuthResponse"},"BadReviewsRequest":{"properties":{"page_data":{"additionalProperties":true,"type":"object","title":"Page Data"},"max_rating":{"type":"number","title":"Max Rating","default":3.0}},"type":"object","required":["page_data"],"title":"BadReviewsRequest"},"BadReviewsResponse":{"properties":{"reviews":{"items":{"$ref":"#/components/schemas/Review"},"type":"array","title":"Reviews"},"count":{"type":"integer","title":"Count"},"max_rating":{"type":"number","title":"Max Rating"}},"type":"object","required":["reviews","count","max_rating"],"title":"BadReviewsResponse"},"CheckoutRequest":{"properties":{"billing":{"type":"string","title":"Billing","default":"monthly"}},"type":"object","title":"CheckoutRequest"},"CommissionSummary":{"properties":{"id":{"type":"string","title":"Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","amount_cents","status","created_at"],"title":"CommissionSummary"},"CreatorData":{"properties":{"handle":{"type":"string","title":"Handle"},"followers":{"type":"integer","title":"Followers"},"avg_views":{"type":"integer","title":"Avg Views"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Rate"},"est_sales":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Sales"}},"type":"object","required":["handle","followers","avg_views"],"title":"CreatorData"},"CreatorExportResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"},"row_count":{"type":"integer","title":"Row Count"}},"type":"object","required":["download_url","row_count"],"title":"CreatorExportResponse"},"CreatorExtractResponse":{"properties":{"product_id":{"type":"string","title":"Product Id"},"creator_count":{"type":"integer","title":"Creator Count"},"creators":{"items":{"$ref":"#/components/schemas/CreatorData"},"type":"array","title":"Creators"}},"type":"object","required":["product_id","creator_count","creators"],"title":"CreatorExtractResponse"},"CreatorsVideosExportRequest":{"properties":{"format":{"type":"string","title":"Format","default":"csv"},"videos":{"items":{"$ref":"#/components/schemas/VideoCreatorItem"},"type":"array","title":"Videos"}},"type":"object","required":["videos"],"title":"CreatorsVideosExportRequest"},"DeleteAccountRequest":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"DeleteAccountRequest"},"DomPrice":{"properties":{"sale_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Price"},"original_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Original Price"}},"type":"object","title":"DomPrice"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"PartnerDashboardResponse":{"properties":{"partner":{"$ref":"#/components/schemas/PartnerProfile"},"clicks":{"type":"integer","title":"Clicks"},"referred_signups":{"type":"integer","title":"Referred Signups"},"referred_customers":{"type":"integer","title":"Referred Customers"},"pending_cents":{"type":"integer","title":"Pending Cents"},"paid_cents":{"type":"integer","title":"Paid Cents"},"available_cents":{"type":"integer","title":"Available Cents"},"commissions":{"items":{"$ref":"#/components/schemas/CommissionSummary"},"type":"array","title":"Commissions"},"payouts":{"items":{"$ref":"#/components/schemas/PayoutSummary"},"type":"array","title":"Payouts"}},"type":"object","required":["partner","clicks","referred_signups","referred_customers","pending_cents","paid_cents","available_cents","commissions","payouts"],"title":"PartnerDashboardResponse"},"PartnerProfile":{"properties":{"code":{"type":"string","title":"Code"},"email":{"type":"string","title":"Email"},"status":{"type":"string","title":"Status"},"payout_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Method"},"payout_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Address"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["code","email","status"],"title":"PartnerProfile"},"PartnerProfileUpdate":{"properties":{"payout_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Method"},"payout_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Address"}},"type":"object","title":"PartnerProfileUpdate"},"PayoutRequestCreate":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"method":{"type":"string","title":"Method"},"address":{"type":"string","title":"Address"}},"type":"object","required":["amount_cents","method","address"],"title":"PayoutRequestCreate"},"PayoutSummary":{"properties":{"id":{"type":"string","title":"Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"method":{"type":"string","title":"Method"},"address":{"type":"string","title":"Address"},"status":{"type":"string","title":"Status"},"requested_at":{"type":"string","title":"Requested At"}},"type":"object","required":["id","amount_cents","method","address","status","requested_at"],"title":"PayoutSummary"},"ProductAnalyzeRequest":{"properties":{"product_url":{"type":"string","title":"Product Url"},"page_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Page Data"},"dom_price":{"anyOf":[{"$ref":"#/components/schemas/DomPrice"},{"type":"null"}]},"local_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Local Date"}},"type":"object","required":["product_url"],"title":"ProductAnalyzeRequest"},"ProductAnalyzeResponse":{"properties":{"product_id":{"type":"string","title":"Product Id"},"product_title":{"type":"string","title":"Product Title"},"price":{"type":"number","title":"Price"},"review_count":{"type":"integer","title":"Review Count"},"review_score":{"type":"number","title":"Review Score"},"size_dimensions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size Dimensions"},"weight":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight"},"weight_lb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight Lb"},"shipping_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipping Cost"},"sales_volume":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sales Volume"},"creator_count":{"type":"integer","title":"Creator Count"},"creator_efficiency":{"type":"number","title":"Creator Efficiency"},"trend":{"type":"string","title":"Trend"},"sales_last_7d":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sales Last 7D"},"sales_last_30d":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sales Last 30D"},"video_count":{"type":"integer","title":"Video Count","default":0},"creator_ids":{"items":{"type":"string"},"type":"array","title":"Creator Ids","default":[]},"video_ids":{"items":{"type":"string"},"type":"array","title":"Video Ids","default":[]},"creators":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Creators","default":[]},"videos":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Videos","default":[]},"reviews":{"items":{"$ref":"#/components/schemas/Review"},"type":"array","title":"Reviews","default":[]},"product_score":{"type":"integer","title":"Product Score"},"verdict":{"type":"string","title":"Verdict"},"score_breakdown":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Score Breakdown"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["product_id","product_title","price","review_count","review_score","creator_count","creator_efficiency","trend","product_score","verdict","created_at"],"title":"ProductAnalyzeResponse"},"ProductConfigResponse":{"properties":{"score_weights":{"additionalProperties":true,"type":"object","title":"Score Weights"},"sales_volume_src":{"type":"string","title":"Sales Volume Src"},"export_row_limit":{"type":"integer","title":"Export Row Limit"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["score_weights","sales_volume_src","export_row_limit","version"],"title":"ProductConfigResponse"},"RefreshRequest":{"properties":{"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"}},"type":"object","title":"RefreshRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"referred_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referred By"}},"type":"object","required":["email","password"],"title":"RegisterRequest"},"RegisterResponse":{"properties":{"verification_required":{"type":"boolean","title":"Verification Required","default":true},"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"RegisterResponse"},"ResendVerificationRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ResendVerificationRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest"},"Review":{"properties":{"text":{"type":"string","title":"Text"},"rating":{"type":"number","title":"Rating"},"username":{"type":"string","title":"Username"},"image_urls":{"items":{"type":"string"},"type":"array","title":"Image Urls","default":[]}},"type":"object","required":["text","rating","username"],"title":"Review"},"SupplierQueryRequest":{"properties":{"product_title":{"type":"string","title":"Product Title"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"marketplace":{"anyOf":[{"type":"string","enum":["alibaba","1688","aliexpress"]},{"type":"null"}],"title":"Marketplace"}},"type":"object","required":["product_title"],"title":"SupplierQueryRequest"},"SupplierQueryResponse":{"properties":{"query":{"type":"string","title":"Query"},"results":{"items":{"$ref":"#/components/schemas/SupplierResult"},"type":"array","title":"Results"}},"type":"object","required":["query","results"],"title":"SupplierQueryResponse"},"SupplierResult":{"properties":{"marketplace":{"type":"string","enum":["alibaba","1688","aliexpress"],"title":"Marketplace"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"found":{"type":"boolean","title":"Found"}},"type":"object","required":["marketplace","title","url","found"],"title":"SupplierResult"},"TrackClickRequest":{"properties":{"code":{"type":"string","title":"Code"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"}},"type":"object","required":["code"],"title":"TrackClickRequest"},"UserResponse":{"properties":{"firebase_uid":{"type":"string","title":"Firebase Uid"},"email":{"type":"string","title":"Email"},"plan":{"type":"string","title":"Plan"},"trial_used":{"type":"boolean","title":"Trial Used"},"analysis_count":{"type":"integer","title":"Analysis Count"},"creators_limit":{"type":"integer","title":"Creators Limit"},"referred_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referred By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["firebase_uid","email","plan","trial_used","analysis_count","creators_limit"],"title":"UserResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyEmailRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"VideoCreatorItem":{"properties":{"video_id":{"type":"string","title":"Video Id"},"creator_id":{"type":"string","title":"Creator Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Url"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Avatar Url"},"author_unique_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Unique Id"},"view_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"View Count"},"like_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Like Count"},"creator_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Handle"},"creator_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Url"}},"type":"object","required":["video_id","creator_id"],"title":"VideoCreatorItem"}}}}