{"openapi":"3.1.0","info":{"title":"OVO CRM API","version":"0.1.0"},"paths":{"/auth/google":{"post":{"tags":["auth"],"summary":"Google Login","description":"Google OAuth login: verify Google ID token with google-auth library,\nmatch email to team_members, issue JWT + set SSO cookie.","operationId":"google_login_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","description":"Return the current authenticated user's info from the database.\n\nAlso issues a fresh JWT in the `token` field so the frontend can store it\nin localStorage. This fixes mobile Safari ITP, which blocks the\ncross-subdomain ovo_auth cookie — without a local JWT, every API call\nfrom crm.ovotalent.com → api.ovotalent.com would fail. Cookie-auth users\ncan now get an Authorization header.","operationId":"get_me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/team-emails":{"get":{"tags":["auth"],"summary":"List Team Emails","description":"Return active team member emails. Requires authentication.","operationId":"list_team_emails_auth_team_emails_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/portal/google":{"post":{"tags":["auth"],"summary":"Portal Google Login","description":"Google OAuth for portal users (creators & brand contacts).","operationId":"portal_google_login_auth_portal_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalGoogleLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/portal/me":{"get":{"tags":["auth"],"summary":"Portal Me","description":"Return current portal user info. Works for both creator and brand_contact roles.","operationId":"portal_me_auth_portal_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/portal/academy-banking/provision":{"post":{"tags":["portal-auth"],"summary":"Provision Academy Banking Creator","description":"Bind one Academy roster UUID before a browser bridge token is minted.","operationId":"provision_academy_banking_creator_auth_portal_academy_banking_provision_post","parameters":[{"name":"X-OVO-Provisioning-Request-Id","in":"header","required":true,"schema":{"type":"string","title":"X-Ovo-Provisioning-Request-Id"}},{"name":"X-OVO-Provisioning-Timestamp","in":"header","required":true,"schema":{"type":"string","title":"X-Ovo-Provisioning-Timestamp"}},{"name":"X-OVO-Provisioning-Signature","in":"header","required":true,"schema":{"type":"string","title":"X-Ovo-Provisioning-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcademyCreatorProvisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/portal/academy-banking/redeem":{"post":{"tags":["portal-auth"],"summary":"Redeem Academy Banking Bridge","operationId":"redeem_academy_banking_bridge_auth_portal_academy_banking_redeem_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcademyBankingRedeemRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcademyBankingRedeemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/pipeline-stats":{"get":{"tags":["dashboard"],"summary":"Pipeline Stats","description":"Prospect counts grouped by status and by dm_status.","operationId":"pipeline_stats_dashboard_pipeline_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Pipeline Stats Dashboard Pipeline Stats Get"}}}}}}},"/dashboard/revenue":{"get":{"tags":["dashboard"],"summary":"Revenue","description":"Revenue summary:\n- total_deal_value: sum of total_amount from active deals\n- total_payments_received: sum of brand_amount where brand_paid_date in last 30 days\n- total_payouts: sum of creator_amount where creator_paid_date in last 30 days\n- total_profit: sum of profit from payments in last 30 days","operationId":"revenue_dashboard_revenue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Revenue Dashboard Revenue Get"}}}}}}},"/dashboard/activity":{"get":{"tags":["dashboard"],"summary":"Activity","description":"Last 20 communications with contact name/handle joined in.\nReturns channel, direction, message preview (first 100 chars),\ncontact name, and timestamp.","operationId":"activity_dashboard_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Activity Dashboard Activity Get"}}}}}}},"/dashboard/sdr-leaderboard":{"get":{"tags":["dashboard"],"summary":"Sdr Leaderboard","description":"SDR performance: for each SDR, count of prospects by status\n(contacted, responded, signed).","operationId":"sdr_leaderboard_dashboard_sdr_leaderboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Sdr Leaderboard Dashboard Sdr Leaderboard Get"}}}}}}},"/dashboard/overdue-alerts":{"get":{"tags":["dashboard"],"summary":"Overdue Alerts","description":"Deliverables where post_due_date < today and status is NOT\n'posted' or 'completed'. Joined with deal, creator, and brand names.","operationId":"overdue_alerts_dashboard_overdue_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Overdue Alerts Dashboard Overdue Alerts Get"}}}}}}},"/dashboard/deal-summary":{"get":{"tags":["dashboard"],"summary":"Deal Summary","description":"Deals overview: count by campaign_status, total value of active deals,\ntotal value of completed deals.","operationId":"deal_summary_dashboard_deal_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Deal Summary Dashboard Deal Summary Get"}}}}}}},"/dashboard/deals-at-risk":{"get":{"tags":["dashboard"],"summary":"Deals At Risk","description":"Deals that have been stuck in a non-terminal stage past the stage-specific\nthreshold with no recent communication activity. Returns a severity score\nper deal (higher = worse) so the UI can sort and color-code.\n\nSeverity is a function of:\n  - days_over_threshold (primary driver)\n  - total_amount (larger deals matter more)\n  - days_since_last_activity (staleness)","operationId":"deals_at_risk_dashboard_deals_at_risk_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Deals At Risk Dashboard Deals At Risk Get"}}}}}}},"/dashboard/deliverables-due-today":{"get":{"tags":["dashboard"],"summary":"Deliverables Due Today","description":"Deliverables whose post_due_date is today and that have not been\nposted or completed yet. Includes creator, brand, and deal context.","operationId":"deliverables_due_today_dashboard_deliverables_due_today_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Deliverables Due Today Dashboard Deliverables Due Today Get"}}}}}}},"/dashboard/hot-leads":{"get":{"tags":["dashboard"],"summary":"Hot Leads","description":"Prospects with recent engagement signals:\n- Replied (inbound communication) in the last 24h\n- Status is 'responded' or 'interested' or 'call_booked'\nSorted by AI score descending so the hottest leads surface first.","operationId":"hot_leads_dashboard_hot_leads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Hot Leads Dashboard Hot Leads Get"}}}}}}},"/me/stats":{"get":{"tags":["me"],"summary":"My Stats","description":"Return the current user's personal performance snapshot.\n\nAll stats are sourced from the CRM calls table (actual recorded calls).\nThe booking-system worker is only consulted for the next upcoming\ncalendar call.","operationId":"my_stats_me_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response My Stats Me Stats Get"}}}}}}},"/me/today-calls":{"get":{"tags":["me"],"summary":"My Today Calls","description":"Return today's booked calls for the current user with full prospect intel.","operationId":"my_today_calls_me_today_calls_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response My Today Calls Me Today Calls Get"}}}}}}},"/me/partner-stats":{"get":{"tags":["me"],"summary":"My Partner Stats","description":"Return the current Talent Partner's personal book-of-business snapshot.\n\nAll metrics are scoped to `creators.account_manager_id = <current user>`.\nSafe to call even when the user is not actually a partner. In that case\nthe counts just come back as zero.","operationId":"my_partner_stats_me_partner_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response My Partner Stats Me Partner Stats Get"}}}}}}},"/me/predictive-pipeline":{"get":{"tags":["me"],"summary":"My Predictive Pipeline","description":"Forecast end-of-month revenue for the current partner's book.","operationId":"my_predictive_pipeline_me_predictive_pipeline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response My Predictive Pipeline Me Predictive Pipeline Get"}}}}}}},"/me/personal-records":{"get":{"tags":["me"],"summary":"Get Personal Records","description":"Return all personal records for the current user, upsert any new ones.","operationId":"get_personal_records_me_personal_records_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/team":{"get":{"tags":["team"],"summary":"List Team Members","description":"List all team members with optional filters.","operationId":"list_team_members_team_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TeamMember_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["team"],"summary":"Create Team Member","description":"Create a new team member.","operationId":"create_team_member_team_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMember"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/team/{member_id}":{"get":{"tags":["team"],"summary":"Get Team Member","description":"Return a single team member by id.","operationId":"get_team_member_team__member_id__get","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Member Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMember"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["team"],"summary":"Update Team Member","description":"Update an existing team member. Only provided fields are changed.","operationId":"update_team_member_team__member_id__patch","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Member Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMember"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/team/vault":{"get":{"tags":["team"],"summary":"List Vault Contracts","description":"List all employee contracts (metadata only, no file data).","operationId":"list_vault_contracts_team_vault_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["team"],"summary":"Upload Vault Contract","description":"Upload a new employee contract PDF.","operationId":"upload_vault_contract_team_vault_post","parameters":[{"name":"employee_name","in":"query","required":true,"schema":{"type":"string","title":"Employee Name"}},{"name":"document_type","in":"query","required":true,"schema":{"type":"string","title":"Document Type"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_vault_contract_team_vault_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/team/vault/{contract_id}/file":{"get":{"tags":["team"],"summary":"Download Vault Contract","description":"Download a single employee contract as PDF.","operationId":"download_vault_contract_team_vault__contract_id__file_get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/team/vault/{contract_id}":{"delete":{"tags":["team"],"summary":"Delete Vault Contract","description":"Delete an employee contract from the vault.","operationId":"delete_vault_contract_team_vault__contract_id__delete","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contract Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/creators":{"get":{"tags":["creators"],"summary":"List Creators","description":"Return a paginated, filterable list of creators with health score.","operationId":"list_creators_creators_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CreatorStatus"},{"type":"null"}],"title":"Status"}},{"name":"account_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Manager Id"}},{"name":"creator_tier","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CreatorTier"},{"type":"null"}],"title":"Creator Tier"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CreatorPriority"},{"type":"null"}],"title":"Priority"}},{"name":"health_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by health bucket: thriving, healthy, at_risk, churning","title":"Health Status"},"description":"Filter by health bucket: thriving, healthy, at_risk, churning"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by name or ig_handle","title":"Search"},"description":"Search by name or ig_handle"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrder","default":"desc"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["creators"],"summary":"Create Creator","description":"Insert a new creator and return the full row.","operationId":"create_creator_creators_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/creators/{creator_id}":{"get":{"tags":["creators"],"summary":"Get Creator","description":"Return a single creator with related deals, communications, and payment summary.","operationId":"get_creator_creators__creator_id__get","parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","title":"Creator Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["creators"],"summary":"Update Creator","description":"Update only the supplied fields on a creator.","operationId":"update_creator_creators__creator_id__patch","parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","title":"Creator Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creators"],"summary":"Delete Creator","operationId":"delete_creator_creators__creator_id__delete","parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","title":"Creator Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/creators/{creator_id}/refresh-stats":{"post":{"tags":["creators"],"summary":"Refresh Creator Stats","description":"Placeholder endpoint for refreshing a creator's Instagram and TikTok stats.\n\nWhen the social-stats service is implemented, this will:\n1. Fetch latest IG metrics (followers, avg views, engagement rate, etc.)\n2. Fetch latest TT metrics\n3. Update the creator row with fresh data\n4. Set ig_stats_updated_at / tt_stats_updated_at to now\n\nFor now, it simply touches updated_at and returns the current row.","operationId":"refresh_creator_stats_creators__creator_id__refresh_stats_post","parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","title":"Creator Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deals":{"get":{"tags":["deals"],"summary":"List Deals","operationId":"list_deals_deals_get","parameters":[{"name":"campaign_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by campaign status","title":"Campaign Status"},"description":"Filter by campaign status"},{"name":"creator_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"}},{"name":"ae_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ae Id"}},{"name":"deal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"Column to sort by","default":"created_at","title":"Sort By"},"description":"Column to sort by"},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["deals"],"summary":"Create Deal","operationId":"create_deal_deals_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deals/overdue":{"get":{"tags":["deals"],"summary":"List Overdue Deals","operationId":"list_overdue_deals_deals_overdue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DealResponse"},"type":"array","title":"Response List Overdue Deals Deals Overdue Get"}}}}}}},"/deals/{deal_id}":{"get":{"tags":["deals"],"summary":"Get Deal","operationId":"get_deal_deals__deal_id__get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["deals"],"summary":"Update Deal","operationId":"update_deal_deals__deal_id__patch","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deals"],"summary":"Delete Deal","operationId":"delete_deal_deals__deal_id__delete","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments":{"get":{"tags":["payments"],"summary":"List Payments","description":"List payments with optional filters, pagination, and sorting.","operationId":"list_payments_payments_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"}},{"name":"creator_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"}},{"name":"account_manager_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by creator's account manager","title":"Account Manager Id"},"description":"Filter by creator's account manager"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"Column to sort by","default":"created_at","title":"Sort By"},"description":"Column to sort by"},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PaymentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["payments"],"summary":"Create Payment","description":"Create a new payment record.","operationId":"create_payment_payments_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/outstanding":{"get":{"tags":["payments"],"summary":"List Outstanding","description":"Return payments that are pending, brand_paid (creator not yet paid), or flagged as problem.","operationId":"list_outstanding_payments_outstanding_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PaymentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/match":{"post":{"tags":["payments"],"summary":"Match Transactions","description":"Auto-match incoming bank transactions against the match_patterns table.\n\nFor each transaction:\n1. Check if a payment with the same txn_key already exists (skip duplicates).\n2. Search match_patterns for a pattern that appears in the transaction description.\n3. If a match is found, update the relevant payment or return match metadata.","operationId":"match_transactions_payments_match_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MatchResult"},"type":"array","title":"Response Match Transactions Payments Match Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/auto-match-unmatched":{"post":{"tags":["payments"],"summary":"Auto Match Unmatched","description":"Walk every payment where deal_id IS NULL and try to link it to a deal.\n\nMatching order per payment:\n  1. match_patterns substring  -> brand_id or creator_id -> active deal\n  2. brands.name substring (case-insensitive)\n  3. brands.legal_entity_name substring (case-insensitive)\n  4. creators.name substring (case-insensitive)\n\nTies are broken by longest name match (more specific). When a brand/creator\nresolves to multiple candidate deals we pick the most-recent active deal.","operationId":"auto_match_unmatched_payments_auto_match_unmatched_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"If true, do not write deal_id; just report matches","default":false,"title":"Dry Run"},"description":"If true, do not write deal_id; just report matches"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoMatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/{payment_id}":{"get":{"tags":["payments"],"summary":"Get Payment","description":"Return a single payment by ID with joined creator/brand names.","operationId":"get_payment_payments__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["payments"],"summary":"Update Payment","description":"Update (or reconcile) an existing payment.","operationId":"update_payment_payments__payment_id__patch","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/brands":{"get":{"tags":["brands"],"summary":"List Brands","description":"List all brands with optional search and pagination.","operationId":"list_brands_brands_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by name or ig_handle","title":"Search"},"description":"Search by name or ig_handle"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_BrandResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["brands"],"summary":"Create Brand","description":"Create a new brand.","operationId":"create_brand_brands_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/brands/{brand_id}":{"get":{"tags":["brands"],"summary":"Get Brand","description":"Return a single brand by ID.","operationId":"get_brand_brands__brand_id__get","parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brand Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["brands"],"summary":"Update Brand","description":"Update an existing brand.","operationId":"update_brand_brands__brand_id__patch","parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brand Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["brands"],"summary":"Delete Brand","description":"Delete a brand. Will fail if brand has deals referencing it.","operationId":"delete_brand_brands__brand_id__delete","parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brand Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/recent":{"get":{"tags":["communications"],"summary":"List Recent","description":"Return the most recent communications across all contacts.","operationId":"list_recent_communications_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommunicationResponse"},"title":"Response List Recent Communications Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/prospect/{prospect_id}":{"get":{"tags":["communications"],"summary":"Prospect Timeline","description":"Return communication timeline for a prospect, newest first.","operationId":"prospect_timeline_communications_prospect__prospect_id__get","parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prospect Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommunicationResponse"},"title":"Response Prospect Timeline Communications Prospect  Prospect Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/creator/{creator_id}":{"get":{"tags":["communications"],"summary":"Creator Timeline","description":"Return communication timeline for a creator, newest first.","operationId":"creator_timeline_communications_creator__creator_id__get","parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Creator Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommunicationResponse"},"title":"Response Creator Timeline Communications Creator  Creator Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/brand/{brand_id}":{"get":{"tags":["communications"],"summary":"Brand Timeline","description":"Return communication timeline for a brand, newest first.","operationId":"brand_timeline_communications_brand__brand_id__get","parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brand Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommunicationResponse"},"title":"Response Brand Timeline Communications Brand  Brand Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/deal/{deal_id}":{"get":{"tags":["communications"],"summary":"Deal Timeline","description":"Return communication timeline for a deal, newest first.","operationId":"deal_timeline_communications_deal__deal_id__get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommunicationResponse"},"title":"Response Deal Timeline Communications Deal  Deal Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications":{"post":{"tags":["communications"],"summary":"Create Communication","description":"Log a new communication entry.","operationId":"create_communication_communications_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deliverables":{"get":{"tags":["deliverables"],"summary":"List Deliverables","operationId":"list_deliverables_deliverables_get","parameters":[{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"due_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"post_due_date >= this date","title":"Due After"},"description":"post_due_date >= this date"},{"name":"due_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"post_due_date <= this date","title":"Due Before"},"description":"post_due_date <= this date"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["deliverables"],"summary":"Create Deliverable","operationId":"create_deliverable_deliverables_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deliverables/calendar":{"get":{"tags":["deliverables"],"summary":"Deliverables Calendar","operationId":"deliverables_calendar_deliverables_calendar_get","parameters":[{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Start of date range (inclusive)","title":"Start Date"},"description":"Start of date range (inclusive)"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"End of date range (inclusive)","title":"End Date"},"description":"End of date range (inclusive)"},{"name":"creator_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableCalendarResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deliverables/{deliverable_id}":{"patch":{"tags":["deliverables"],"summary":"Update Deliverable","operationId":"update_deliverable_deliverables__deliverable_id__patch","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deliverables"],"summary":"Delete Deliverable","operationId":"delete_deliverable_deliverables__deliverable_id__delete","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prospects/pipeline-stats":{"get":{"tags":["prospects"],"summary":"Get Pipeline Stats","description":"Return aggregate counts grouped by status and dm_status.","operationId":"get_pipeline_stats_prospects_pipeline_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStatsResponse"}}}}}}},"/prospects":{"get":{"tags":["prospects"],"summary":"List Prospects","description":"List prospects with optional filters, pagination, and sort.","operationId":"list_prospects_prospects_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by prospect status","title":"Status"},"description":"Filter by prospect status"},{"name":"dm_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by DM status","title":"Dm Status"},"description":"Filter by DM status"},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by campaign","title":"Campaign Id"},"description":"Filter by campaign"},{"name":"assigned_sdr_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by assigned SDR","title":"Assigned Sdr Id"},"description":"Filter by assigned SDR"},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(A|B|C)$"},{"type":"null"}],"description":"Filter by tier","title":"Tier"},"description":"Filter by tier"},{"name":"is_competitor","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter competitors","title":"Is Competitor"},"description":"Filter competitors"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Search ig_handle or full_name","title":"Search"},"description":"Search ig_handle or full_name"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"Column to sort by","default":"created_at","title":"Sort By"},"description":"Column to sort by"},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["prospects"],"summary":"Create Prospect","description":"Create a new prospect.","operationId":"create_prospect_prospects_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prospects/{prospect_id}":{"get":{"tags":["prospects"],"summary":"Get Prospect","description":"Return a single prospect by ID.","operationId":"get_prospect_prospects__prospect_id__get","parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["prospects"],"summary":"Update Prospect","description":"Partially update a prospect.","operationId":"update_prospect_prospects__prospect_id__patch","parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prospect Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prospects/bulk-import":{"post":{"tags":["prospects"],"summary":"Bulk Import Prospects","description":"Batch import / upsert prospects by ig_handle.\n\nFor each prospect in the payload:\n- If ig_handle does not exist, INSERT.\n- If ig_handle already exists, UPDATE all provided (non-None) fields.","operationId":"bulk_import_prospects_prospects_bulk_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectBulkImport"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectBulkImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prospects/{prospect_id}/promote":{"post":{"tags":["prospects"],"summary":"Promote Prospect","description":"Convert a prospect to a creator.\n\nCreates a new row in the creators table, copies relevant fields,\nsets prospect.status = 'signed', and returns the new creator record.","operationId":"promote_prospect_prospects__prospect_id__promote_post","parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prospect Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contract-engine/contracts":{"get":{"tags":["contract-engine"],"summary":"List Contracts","description":"List contracts from local Postgres, joined with creator/brand names.\n\nFilters (all optional, all AND-combined):\n  - deal_id, creator_id, brand_id: direct FK match\n  - status: case-insensitive match on the stored status\n  - template: match on engine_template OR template_used","operationId":"list_contracts_contract_engine_contracts_get","parameters":[{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"}},{"name":"creator_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"template","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":1000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["contract-engine"],"summary":"Create Contract","description":"Generate a new contract in contracts.ovotalent.com.\n\nBody is forwarded as-is to the engine. After the engine returns the new\ncontract, we best-effort insert a matching row into the local contracts\ntable so it shows up everywhere immediately (without waiting for a sync).","operationId":"create_contract_contract_engine_contracts_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/contract-engine/stats":{"get":{"tags":["contract-engine"],"summary":"Contract Stats","operationId":"contract_stats_contract_engine_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/contract-engine/contracts/{contract_id}":{"get":{"tags":["contract-engine"],"summary":"Get Contract","description":"Look up a single contract by internal UUID OR external engine id.","operationId":"get_contract_contract_engine_contracts__contract_id__get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contract-engine/contracts/{contract_id}/send":{"post":{"tags":["contract-engine"],"summary":"Send Contract","description":"Trigger the engine to email the signing link to the recipient.\n\nProxies to contracts.ovotalent.com which owns the Resend send. On success,\nupdate the local row's status + sent_at so the UI reflects it immediately\nwithout waiting for the hourly sync.\n\nThe engine identifies contracts by external_id (its own UUID), which is\nstored on the local row. We resolve it here so the frontend can keep using\nthe local contract UUID.","operationId":"send_contract_contract_engine_contracts__contract_id__send_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contract-engine/sync":{"post":{"tags":["contract-engine"],"summary":"Trigger Sync","description":"Run scripts/sync_contracts.py to pull the latest contracts.\n\nRuns synchronously so the frontend can show the stats immediately.\nAdmin only (enforced by get_current_user at the router level; tighten\nfurther if needed).","operationId":"trigger_sync_contract_engine_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/contract-engine/coverage":{"get":{"tags":["contract-engine"],"summary":"Contract Coverage","description":"Return per-deal contract coverage status.\n\nEach deal is annotated with:\n  - has_brand_contract (bool)\n  - has_creator_contract (bool)\n  - coverage_status: 'complete' | 'missing_brand' | 'missing_creator' | 'missing_both' | 'no_contracts'\n  - brand_contracts / creator_contracts / other_contracts (lists of contract summaries)\n\nfilter (optional): 'complete' | 'missing_brand' | 'missing_creator' | 'no_contracts'","operationId":"contract_coverage_contract_engine_coverage_get","parameters":[{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":1000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/test":{"post":{"tags":["slack"],"summary":"Send Test","description":"Fire a test message to Slack to verify the webhook is working.","operationId":"send_test_slack_test_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TestMessage"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/notify":{"post":{"tags":["slack"],"summary":"Send Notification","description":"Dispatch a notification by type.\n\nExample body:\n{\n    \"type\": \"deal_update\",\n    \"data\": {\n        \"deal_name\": \"Creator x Brand\",\n        \"old_status\": \"draft\",\n        \"new_status\": \"active\"\n    }\n}","operationId":"send_notification_slack_notify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/command":{"post":{"tags":["slack-bot"],"summary":"Handle Slash Command","description":"Receive a Slack slash command and route to the appropriate handler.\n\nSlack sends POST with application/x-www-form-urlencoded containing:\n  - command: the slash command name (e.g. /ovo-pipeline)\n  - text: everything after the command\n  - user_id: Slack user ID of the invoker\n  - channel_id: channel where command was used\n  - response_url: URL for delayed/follow-up responses","operationId":"handle_slash_command_slack_command_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_handle_slash_command_slack_command_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/daily-standup":{"post":{"tags":["slack-bot"],"summary":"Post Daily Standup","description":"Cron-triggered endpoint that builds the daily standup and posts it\ndirectly to Slack via the incoming webhook.\n\nCall this from Railway cron or an external scheduler:\n  POST https://ovo-crm-api-production.up.railway.app/slack/daily-standup","operationId":"post_daily_standup_slack_daily_standup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sync/dm-workers":{"post":{"tags":["dm-sync"],"summary":"Trigger Dm Sync","description":"Trigger a full DM sync from both workers into the CRM.\nRuns in a background task so the response returns immediately.","operationId":"trigger_dm_sync_sync_dm_workers_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sync/status":{"get":{"tags":["dm-sync"],"summary":"Sync Status","description":"Return the last sync time and per-worker counts.","operationId":"sync_status_sync_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sync/cron":{"post":{"tags":["dm-sync"],"summary":"Cron Sync","description":"Cron-safe sync endpoint. Designed to be called every 15 minutes by\nRailway cron, GitHub Actions, or any external scheduler.\n\nAuth: pass ?secret=ovo-crm-cron-2026 or Authorization: Bearer ovo-crm-cron-2026\n\nUnlike /dm-workers, this runs synchronously (blocks until done) so the\nscheduler can see the result and retry on failure.","operationId":"cron_sync_sync_cron_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dm/leads/upsert":{"post":{"tags":["dm-setter"],"summary":"Upsert Lead","description":"Create or refresh a DM setter lead keyed on (ig_user_id, vertical).","operationId":"upsert_lead_dm_leads_upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUpsertPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dm/leads/stage":{"post":{"tags":["dm-setter"],"summary":"Update Lead Stage","description":"Update stage / score / lane / niche / notes on an existing lead.","operationId":"update_lead_stage_dm_leads_stage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadStagePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dm/webhooks/booking-link-sent":{"post":{"tags":["dm-setter"],"summary":"Booking Link Sent","description":"Fired by the setter when the funnel / booking link is sent to a lead.\n\nSide effects:\n  - stamp booking_link_sent_at on dm_contacts and bump booking_link_count\n  - append a booking_link_sent row to dm_events\n  - fire-and-forget Slack ping so the closer sees live bookings","operationId":"booking_link_sent_dm_webhooks_booking_link_sent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingLinkSentPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dm/webhooks/brand-inbound":{"post":{"tags":["dm-setter"],"summary":"Brand Inbound Dm","description":"Stamp attribution on inbound brand DMs (doctrine Flow 4/5).\n\nIdempotent: re-fires are safe. The caller (DM worker) is expected to filter\ncreator-source DMs upstream; we also short-circuit when is_creator_source=True.","operationId":"brand_inbound_dm_dm_webhooks_brand_inbound_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandInboundDMPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/students/by-ig":{"get":{"tags":["dm-setter"],"summary":"Student By Ig","description":"Is this IG user a signed student for the given vertical? Cached on dm_contacts.\n\nOnly the `roster-method` vertical has a contracts-backed student lookup;\nfor other verticals we return the cached flag if present and otherwise\nreport `is_student=False`.","operationId":"student_by_ig_students_by_ig_get","parameters":[{"name":"ig_user_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Ig User Id"}},{"name":"username","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"}},{"name":"vertical","in":"query","required":false,"schema":{"enum":["roster-method","samantha-coaching"],"type":"string","default":"roster-method","title":"Vertical"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outreach/prospects":{"get":{"tags":["outreach"],"summary":"Get Prospects","operationId":"get_prospects_outreach_prospects_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outreach/pipeline":{"get":{"tags":["outreach"],"summary":"Get Pipeline","operationId":"get_pipeline_outreach_pipeline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/outreach/queue":{"get":{"tags":["outreach"],"summary":"Get Queue","operationId":"get_queue_outreach_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["outreach"],"summary":"Add To Queue","operationId":"add_to_queue_outreach_queue_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outreach/stats":{"get":{"tags":["outreach"],"summary":"Get Stats","operationId":"get_stats_outreach_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/outreach/variants":{"get":{"tags":["outreach"],"summary":"Get Variants","operationId":"get_variants_outreach_variants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/outreach/inbox":{"get":{"tags":["outreach"],"summary":"Get Inbox","operationId":"get_inbox_outreach_inbox_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/outreach/rates":{"get":{"tags":["outreach"],"summary":"Get Rates","operationId":"get_rates_outreach_rates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/outreach/callprep/{handle}":{"get":{"tags":["outreach"],"summary":"Get Callprep","operationId":"get_callprep_outreach_callprep__handle__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outreach/send":{"post":{"tags":["outreach"],"summary":"Trigger Send","operationId":"trigger_send_outreach_send_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outreach/prospects/{handle}/book-call":{"post":{"tags":["outreach"],"summary":"Book Call","operationId":"book_call_outreach_prospects__handle__book_call_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outreach/prospects/{handle}":{"patch":{"tags":["outreach"],"summary":"Update Prospect","operationId":"update_prospect_outreach_prospects__handle__patch","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outreach/send-dm":{"post":{"tags":["outreach"],"summary":"Send Dm","description":"Send an Instagram DM from the CRM.\n\nRoutes to the correct Cloudflare Worker based on the account.\nAlso logs the message in the CRM communications table.","operationId":"send_dm_outreach_send_dm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendDMRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/creator-intel":{"get":{"tags":["creator-intel"],"summary":"List Creator Intel","description":"List creator intel entries with optional filters and pagination.","operationId":"list_creator_intel_creator_intel_get","parameters":[{"name":"creator_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by creator UUID","title":"Creator Id"},"description":"Filter by creator UUID"},{"name":"intel_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by intel type","title":"Intel Type"},"description":"Filter by intel type"},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search intel_summary or content","title":"Search"},"description":"Search intel_summary or content"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_CreatorIntelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["creator-intel"],"summary":"Create Creator Intel","description":"Create a new creator intel entry.","operationId":"create_creator_intel_creator_intel_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorIntelCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorIntelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/creator-intel/{intel_id}":{"get":{"tags":["creator-intel"],"summary":"Get Creator Intel","description":"Return a single creator intel entry by ID.","operationId":"get_creator_intel_creator_intel__intel_id__get","parameters":[{"name":"intel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorIntelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["creator-intel"],"summary":"Update Creator Intel","description":"Update an existing creator intel entry.","operationId":"update_creator_intel_creator_intel__intel_id__patch","parameters":[{"name":"intel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intel Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorIntelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorIntelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-intel"],"summary":"Delete Creator Intel","description":"Delete a creator intel entry.","operationId":"delete_creator_intel_creator_intel__intel_id__delete","parameters":[{"name":"intel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intel Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fitia-deals":{"get":{"tags":["fitia-deals"],"summary":"List Fitia Deals","description":"List Fitia deals with optional filters and pagination.","operationId":"list_fitia_deals_fitia_deals_get","parameters":[{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by stage","title":"Stage"},"description":"Filter by stage"},{"name":"deal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by deal type","title":"Deal Type"},"description":"Filter by deal type"},{"name":"creator_invoice_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Invoice Status"}},{"name":"fitia_invoice_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fitia Invoice Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by creator name","title":"Search"},"description":"Search by creator name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_FitiaDealResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["fitia-deals"],"summary":"Create Fitia Deal","description":"Create a new Fitia deal.","operationId":"create_fitia_deal_fitia_deals_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitiaDealCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitiaDealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fitia-deals/{deal_id}":{"get":{"tags":["fitia-deals"],"summary":"Get Fitia Deal","description":"Return a single Fitia deal by ID.","operationId":"get_fitia_deal_fitia_deals__deal_id__get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitiaDealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["fitia-deals"],"summary":"Update Fitia Deal","description":"Update an existing Fitia deal.","operationId":"update_fitia_deal_fitia_deals__deal_id__patch","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitiaDealUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitiaDealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fitia-deals"],"summary":"Delete Fitia Deal","description":"Delete a Fitia deal.","operationId":"delete_fitia_deal_fitia_deals__deal_id__delete","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payment-schedule":{"get":{"tags":["payment-schedule"],"summary":"List Payment Schedule","description":"List payment schedule entries with optional filters, pagination, and sorting.","operationId":"list_payment_schedule_payment_schedule_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"}},{"name":"creator_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"Column to sort by","default":"expected_date","title":"Sort By"},"description":"Column to sort by"},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"asc","title":"Sort Dir"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PaymentScheduleWithContext_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["payment-schedule"],"summary":"Create Payment Schedule Entry","description":"Create a new payment schedule entry.","operationId":"create_payment_schedule_entry_payment_schedule_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentScheduleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentScheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payment-schedule/upcoming":{"get":{"tags":["payment-schedule"],"summary":"List Upcoming","description":"Return payment schedule entries due within the next N days (default 30),\nplus any overdue entries.","operationId":"list_upcoming_payment_schedule_upcoming_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Look-ahead window in days","default":30,"title":"Days"},"description":"Look-ahead window in days"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PaymentScheduleWithContext_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payment-schedule/summary":{"get":{"tags":["payment-schedule"],"summary":"Payment Schedule Summary","description":"Return aggregate payment schedule stats: overdue total, upcoming total, etc.","operationId":"payment_schedule_summary_payment_schedule_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/payment-schedule/{schedule_id}":{"get":{"tags":["payment-schedule"],"summary":"Get Payment Schedule Entry","description":"Return a single payment schedule entry by ID.","operationId":"get_payment_schedule_entry_payment_schedule__schedule_id__get","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentScheduleWithContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["payment-schedule"],"summary":"Update Payment Schedule Entry","description":"Update a payment schedule entry. Use to mark as paid, link to payment record, etc.","operationId":"update_payment_schedule_entry_payment_schedule__schedule_id__patch","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentScheduleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentScheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/me/stats":{"get":{"tags":["call-stats"],"summary":"Call Quality Stats","description":"Personal call quality metrics for the authenticated rep.","operationId":"call_quality_stats_api_v1_calls_me_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Call Quality Stats Api V1 Calls Me Stats Get"}}}}}}},"/api/v1/calls/leaderboard":{"get":{"tags":["call-stats"],"summary":"Call Leaderboard","description":"Team call quality rankings by avg deal_score this month.","operationId":"call_leaderboard_api_v1_calls_leaderboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Call Leaderboard Api V1 Calls Leaderboard Get"}}}}}}},"/api/v1/calls/ingest":{"post":{"tags":["calls"],"summary":"Ingest","description":"Upsert a pending call row. Called by call-dashboard on Zoom webhook arrival.","operationId":"ingest_api_v1_calls_ingest_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallIngestResponse"}}}}}}},"/api/v1/calls/progress":{"post":{"tags":["calls"],"summary":"Progress","description":"Update processing stage. Called by call-dashboard at each pipeline step.","operationId":"progress_api_v1_calls_progress_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/calls/finalize":{"post":{"tags":["calls"],"summary":"Finalize","description":"Store analysis results. Called by call-dashboard when all passes complete.","operationId":"finalize_api_v1_calls_finalize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/calls/stream":{"get":{"tags":["calls"],"summary":"Stream","description":"SSE endpoint for real-time call updates (auth required).","operationId":"stream_api_v1_calls_stream_get","parameters":[{"name":"last_event_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls":{"get":{"tags":["calls"],"summary":"List Calls","description":"List calls with filters.\n\nReturns only the lightweight fields needed for the list view\n(see CallListItem). Transcripts, segments, beliefs, verdicts, etc. are\ndeliberately omitted — fetch /calls/{id} for the full shape.","operationId":"list_calls_api_v1_calls_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"rep_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rep Id"}},{"name":"linked_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallListItem"},"title":"Response List Calls Api V1 Calls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/inbox":{"get":{"tags":["calls"],"summary":"Inbox","description":"List unlinked calls needing manual linking. Lightweight payload.","operationId":"inbox_api_v1_calls_inbox_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallListItem"},"title":"Response Inbox Api V1 Calls Inbox Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/active":{"get":{"tags":["calls"],"summary":"Active Calls","description":"Live + processing calls for the live-preview banner.\n\nA call is \"active\" when it is either:\n  - status pending or processing (ingested, analysis in flight)\n  - started within the last 2 hours and not yet analyzed\n\nThe frontend polls this every 10 seconds from the dashboard and the\n/calls index page. A Zoom webhook inserts the row as 'pending' on\nmeeting start, so the banner appears almost immediately.\n\nReturns the same light shape as the list endpoint plus participants_json\nso the banner can show who's on the call. Transcripts/segments are\nintentionally excluded (banner doesn't need them).","operationId":"active_calls_api_v1_calls_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CallListItem"},"type":"array","title":"Response Active Calls Api V1 Calls Active Get"}}}}}}},"/api/v1/calls/{call_id}/audio":{"get":{"tags":["calls"],"summary":"Stream Call Audio","description":"Proxy the call's audio file from R2 with HTTP Range support.\n\nAudio files live in the same Cloudflare R2 bucket the call-dashboard\nuploads to (`alex-assets`, key pattern `calls/audio/<slug>.m4a`). The\nbrowser `<audio>` element needs Range support for scrubbing, so we\npass through the incoming Range header and mirror the response status\n(200 or 206) and headers from R2.\n\nStreams chunks through rather than buffering the full file in memory:\naudio files are 30-50 MB and multiple concurrent reviewers would\notherwise pin that much memory per request.","operationId":"stream_call_audio_api_v1_calls__call_id__audio_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/{call_id}/video":{"get":{"tags":["calls"],"summary":"Stream Call Video","description":"Stream the call's MP4 video from R2 with Range support.","operationId":"stream_call_video_api_v1_calls__call_id__video_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/{call_id}":{"get":{"tags":["calls"],"summary":"Get Call","description":"Get a single call with full details.","operationId":"get_call_api_v1_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/{call_id}/link":{"patch":{"tags":["calls"],"summary":"Update Link","description":"Manually link a call to entities.","operationId":"update_link_api_v1_calls__call_id__link_patch","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallLinkUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/{call_id}/notes":{"get":{"tags":["calls"],"summary":"List Notes","operationId":"list_notes_api_v1_calls__call_id__notes_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallNoteResponse"},"title":"Response List Notes Api V1 Calls  Call Id  Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["calls"],"summary":"Create Note","operationId":"create_note_api_v1_calls__call_id__notes_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallNoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reengagement/stats":{"get":{"tags":["reengagement"],"summary":"Reengagement Stats","description":"Campaign metrics: total, active, replied, exhausted, reply rate, by athlete.","operationId":"reengagement_stats_reengagement_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/reengagement/campaigns":{"get":{"tags":["reengagement"],"summary":"Reengagement Campaigns","description":"List re-engagement campaigns with optional filters.","operationId":"reengagement_campaigns_reengagement_campaigns_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"pool","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reengagement/run-followups":{"post":{"tags":["reengagement"],"summary":"Run Followups","description":"Trigger re-engagement follow-up check (detect replies + send FU1/FU2).","operationId":"run_followups_reengagement_run_followups_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/booking-sync":{"post":{"tags":["booked-calls"],"summary":"Booking Sync","description":"Upsert a booking from the booking-system Worker.\n\nAuth: `Authorization: Bearer ${OVO_CRM_SYNC_SECRET}` — shared secret between\nthe Cloudflare Worker and this API. No user auth; runs as a trusted service\nwebhook.","operationId":"booking_sync_webhooks_booking_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingSyncPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/email-sync":{"post":{"tags":["booked-calls"],"summary":"Email Sync","description":"Log an inbound email from the booking worker's Gmail poller.\n\nAuth: same Bearer secret as booking-sync.\nDedup: skips if message_id already logged.\nLinks to prospect by sender email if possible.","operationId":"email_sync_webhooks_email_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSyncPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/booked-calls":{"get":{"tags":["booked-calls"],"summary":"List Booked Calls","description":"List booked calls with optional filters. Orders by start_time DESC by default.","operationId":"list_booked_calls_booked_calls_get","parameters":[{"name":"calendar_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by closer/calendar","title":"Calendar Name"},"description":"Filter by closer/calendar"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"confirmed|cancelled","title":"Status"},"description":"confirmed|cancelled"},{"name":"show_outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"show|no_show|reschedule","title":"Show Outcome"},"description":"show|no_show|reschedule"},{"name":"upcoming","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only future calls","title":"Upcoming"},"description":"Only future calls"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/booked-calls/{booked_call_id}":{"get":{"tags":["booked-calls"],"summary":"Get Booked Call","operationId":"get_booked_call_booked_calls__booked_call_id__get","parameters":[{"name":"booked_call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booked Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/booked-calls/{booked_call_id}/notes":{"patch":{"tags":["booked-calls"],"summary":"Update Booked Call Notes","description":"Update call notes from the CRM side.\n\nD1 is the source of truth. We forward the write to the booking-system\nWorker's `/api/admin/save-notes` endpoint, which updates D1 and triggers\na sync back here. Optimistically write locally too so the CRM UI sees the\nchange immediately even if the Worker round-trip is slow.","operationId":"update_booked_call_notes_booked_calls__booked_call_id__notes_patch","parameters":[{"name":"booked_call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booked Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/booked-calls/{booked_call_id}/outcome":{"patch":{"tags":["booked-calls"],"summary":"Update Booked Call Outcome","description":"Mark the show outcome for a booked call.\n\nOptimistically writes to local Postgres, then forwards the change to the\nbooking-system Worker so D1 stays authoritative. Also direct-forwards to\novo-dm-worker (closed-loop signed-deal backflow, 2026-04-29) so the\nroster_bookings outcome columns are stamped even if the booking-system\nbridge is unavailable.","operationId":"update_booked_call_outcome_booked_calls__booked_call_id__outcome_patch","parameters":[{"name":"booked_call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booked Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/booked-calls/{booked_call_id}/cancel":{"post":{"tags":["booked-calls"],"summary":"Cancel Booked Call","description":"Cancel a booked call from the CRM side.\n\nOptimistically writes to local Postgres, then forwards the cancellation to\nthe booking-system Worker so D1 stays authoritative.","operationId":"cancel_booked_call_booked_calls__booked_call_id__cancel_post","parameters":[{"name":"booked_call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booked Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insights/dashboard":{"get":{"tags":["insights"],"summary":"Dashboard Insights","operationId":"dashboard_insights_insights_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Dashboard Insights Insights Dashboard Get"}}}}}}},"/insights/deal/{deal_id}":{"get":{"tags":["insights"],"summary":"Deal Insights","operationId":"deal_insights_insights_deal__deal_id__get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Deal Insights Insights Deal  Deal Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insights/creator/{creator_id}":{"get":{"tags":["insights"],"summary":"Creator Insights","operationId":"creator_insights_insights_creator__creator_id__get","parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Creator Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Creator Insights Insights Creator  Creator Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insights/prospect/{prospect_id}":{"get":{"tags":["insights"],"summary":"Prospect Insights","operationId":"prospect_insights_insights_prospect__prospect_id__get","parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Prospect Insights Insights Prospect  Prospect Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insights/prospect/{handle}/cached":{"get":{"tags":["insights"],"summary":"Get Prospect Insights Cached","description":"Proxy the setter-worker prospect_insights table to the CRM.\n\nFetches insights collected by the AI setter from DM conversations with\nthis prospect and returns them grouped by insight_type, ready for the\nProspectPainCard frontend component.","operationId":"get_prospect_insights_cached_insights_prospect__handle__cached_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"coach_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Coach whose setter-data to read. Falls back to DEFAULT_COACH_ID env.","title":"Coach Id"},"description":"Coach whose setter-data to read. Falls back to DEFAULT_COACH_ID env."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Prospect Insights Cached Insights Prospect  Handle  Cached Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"Return a unified notifications feed for the current user.","operationId":"list_notifications_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Notifications Notifications Get"}}}}}}},"/analytics/overview":{"get":{"tags":["analytics"],"summary":"Analytics Overview","description":"Single endpoint returning everything the /analytics page needs.","operationId":"analytics_overview_analytics_overview_get","parameters":[{"name":"date_range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Date Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Analytics Overview Analytics Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/sdr-performance":{"get":{"tags":["analytics"],"summary":"Sdr Performance","description":"Per-SDR outbound stats — contacted / response / booked / signed rates.","operationId":"sdr_performance_analytics_sdr_performance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Sdr Performance Analytics Sdr Performance Get"}}}}}}},"/analytics/heatmap":{"get":{"tags":["analytics"],"summary":"Activity Heatmap","description":"7×24 matrix of call counts bucketed by (DOW, hour) in America/New_York.","operationId":"activity_heatmap_analytics_heatmap_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Activity Heatmap Analytics Heatmap Get"}}}}}}},"/analytics/engagement-trend":{"get":{"tags":["analytics"],"summary":"Engagement Trend","description":"Calls/day series for the last 30 days. Fills zero days.","operationId":"engagement_trend_analytics_engagement_trend_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Engagement Trend Analytics Engagement Trend Get"}}}}}}},"/analytics/channel-effectiveness":{"get":{"tags":["analytics"],"summary":"Channel Effectiveness","description":"Communications grouped by channel with inbound reply counts.","operationId":"channel_effectiveness_analytics_channel_effectiveness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Channel Effectiveness Analytics Channel Effectiveness Get"}}}}}}},"/analytics/top-outreach":{"get":{"tags":["analytics"],"summary":"Top Outreach","description":"Prospects where dm_status='replied' — return their dm_variant_a messages\nas top-performing outreach, ranked by reply count per variant.","operationId":"top_outreach_analytics_top_outreach_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Top Outreach Analytics Top Outreach Get"}}}}}}},"/admin/data-quality-report":{"get":{"tags":["admin"],"summary":"Data Quality Report","description":"Return completeness report for every critical entity.","operationId":"data_quality_report_admin_data_quality_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Data Quality Report Admin Data Quality Report Get"}}}}}}},"/admin/audit-log":{"get":{"tags":["admin"],"summary":"List Audit Log","description":"Return recent audit log entries, newest first.","operationId":"list_audit_log_admin_audit_log_get","parameters":[{"name":"table","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by table_name","title":"Table"},"description":"Filter by table_name"},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by action (insert/update/delete)","title":"Action"},"description":"Filter by action (insert/update/delete)"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by changed_by team member id","title":"User Id"},"description":"Filter by changed_by team member id"},{"name":"record_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by specific record_id","title":"Record Id"},"description":"Filter by specific record_id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audit-log/tables":{"get":{"tags":["admin"],"summary":"List Audited Tables","description":"Return distinct table_names that have been audited so far (for the filter UI).","operationId":"list_audited_tables_admin_audit_log_tables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/commissions/statement":{"get":{"tags":["commissions"],"summary":"Get Commission Statement","description":"Return a monthly commission statement + YTD totals for a partner.","operationId":"get_commission_statement_commissions_statement_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Partner team_member id; defaults to caller","title":"User Id"},"description":"Partner team_member id; defaults to caller"},{"name":"month","in":"query","required":true,"schema":{"type":"string","description":"Month in YYYY-MM format","title":"Month"},"description":"Month in YYYY-MM format"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionStatement"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/team-overview":{"get":{"tags":["commissions"],"summary":"Get Team Overview","description":"Admin-only commission team dashboard.\n\nReturns one row per team member with any earnings or active pipeline this\nmonth. Mirrors the SQL logic from /commissions/statement so numbers tie out:\nattribution is by `creators.account_manager_id`, and commission is computed\nas `ovo_profit * 0.75` where `ovo_profit = COALESCE(p.profit,\np.brand_amount - p.expected_creator_amount)`.","operationId":"get_team_overview_commissions_team_overview_get","parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","description":"Month in YYYY-MM format","title":"Month"},"description":"Month in YYYY-MM format"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Team Overview Commissions Team Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/me":{"get":{"tags":["commissions"],"summary":"Get My Commission","description":"Personal commission dopamine widget for the current user.\n\nReturns earnings for Today, Yesterday, This Month, YTD, and Projected\npipeline — all filtered to deals the user has closed (attribution\nvia deals.ae_id). Commission rate is 5% of profit\n(brand_amount - creator_amount) on payments that have landed.","operationId":"get_my_commission_commissions_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get My Commission Commissions Me Get"}}}}}}},"/commissions/statement/email":{"post":{"tags":["commissions"],"summary":"Email Commission Statement","description":"Queue an email of a commission statement to the partner. Placeholder:\nthe actual delivery hooks into the existing email system; for now we\nreturn an acknowledgement so the frontend button has something to call.","operationId":"email_commission_statement_commissions_statement_email_post","parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"month","in":"query","required":true,"schema":{"type":"string","title":"Month"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Email Commission Statement Commissions Statement Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/statements/mine":{"get":{"tags":["commissions"],"summary":"Get My Statement","description":"The logged-in rep's own monthly statement.","operationId":"get_my_statement_commissions_statements_mine_get","parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM, e.g. 2026-03","title":"Month"},"description":"YYYY-MM, e.g. 2026-03"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/statements":{"get":{"tags":["commissions"],"summary":"Get Statement For","description":"Admin-only: pull any rep's statement. Non-admins get 403.","operationId":"get_statement_for_commissions_statements_get","parameters":[{"name":"rep_id","in":"query","required":true,"schema":{"type":"string","title":"Rep Id"}},{"name":"month","in":"query","required":true,"schema":{"type":"string","title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/statements/summary":{"get":{"tags":["commissions"],"summary":"Statements Summary","description":"Admin dashboard tile: all reps for this month.","operationId":"statements_summary_commissions_statements_summary_get","parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/statements/{statement_id}/approve":{"post":{"tags":["commissions"],"summary":"Approve Statement","description":"Rep (or admin) approves their own statement as accurate.","operationId":"approve_statement_commissions_statements__statement_id__approve_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/statements/{statement_id}/unapprove":{"post":{"tags":["commissions"],"summary":"Unapprove Statement","operationId":"unapprove_statement_commissions_statements__statement_id__unapprove_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/statements/{statement_id}/mark-paid":{"post":{"tags":["commissions"],"summary":"Mark Statement Paid","description":"Admin-only: record that Alex has cut the rep their check.","operationId":"mark_statement_paid_commissions_statements__statement_id__mark_paid_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/statements/{statement_id}/reset-paid":{"post":{"tags":["commissions"],"summary":"Reset Statement Paid","operationId":"reset_statement_paid_commissions_statements__statement_id__reset_paid_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/line-items/{line_id}":{"patch":{"tags":["commissions"],"summary":"Update Line Item","description":"Admin edits a line. Reps can't mutate their own statement lines — only approve/unapprove.","operationId":"update_line_item_commissions_line_items__line_id__patch","parameters":[{"name":"line_id","in":"path","required":true,"schema":{"type":"string","title":"Line Id"}},{"name":"received","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Received"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},{"name":"profit","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Profit"}},{"name":"commission","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commission"}},{"name":"notes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["commissions"],"summary":"Delete Line Item","operationId":"delete_line_item_commissions_line_items__line_id__delete","parameters":[{"name":"line_id","in":"path","required":true,"schema":{"type":"string","title":"Line Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commissions/line-items":{"post":{"tags":["commissions"],"summary":"Add Line Item","description":"Admin adds a new line to an existing statement. Commission auto-computed from rep rate if not given.","operationId":"add_line_item_commissions_line_items_post","parameters":[{"name":"statement_id","in":"query","required":true,"schema":{"type":"string","title":"Statement Id"}},{"name":"label","in":"query","required":true,"schema":{"type":"string","title":"Label"}},{"name":"profit","in":"query","required":true,"schema":{"type":"number","title":"Profit"}},{"name":"received","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Received"}},{"name":"commission","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commission"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/finance/summary":{"get":{"tags":["finance-reconcile"],"summary":"Finance Summary","description":"Return high-level reconciliation stats for the dashboard cards.","operationId":"finance_summary_admin_finance_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/finance/reconcile":{"post":{"tags":["finance-reconcile"],"summary":"Run Reconciliation","description":"Walk all unlinked payments. For each, try to resolve deal_id / creator_id.\n\nMatching order:\n  1. match_patterns (highest confidence — human-verified patterns)\n  2. brands.name substring\n  3. brands.legal_entity_name substring\n  4. creators.name substring\n  5. creators.personal_email prefix (before @)\n\nIf auto_apply=True, immediately write FK for matches >= confidence_threshold.\nReturn the rest as a review queue.","operationId":"run_reconciliation_admin_finance_reconcile_post","parameters":[{"name":"auto_apply","in":"query","required":false,"schema":{"type":"boolean","description":"Auto-apply matches >= 90% confidence","default":true,"title":"Auto Apply"},"description":"Auto-apply matches >= 90% confidence"},{"name":"confidence_threshold","in":"query","required":false,"schema":{"type":"number","maximum":100.0,"minimum":0.0,"default":90.0,"title":"Confidence Threshold"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":2000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/finance/accept":{"post":{"tags":["finance-reconcile"],"summary":"Bulk Accept Matches","description":"Accept specific matches from the review queue. Caller passes payment_ids\nthat were returned by the /reconcile endpoint. We re-run matching for each\nand apply the FK update.","operationId":"bulk_accept_matches_admin_finance_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAcceptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAcceptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/finance/discrepancies":{"get":{"tags":["finance-reconcile"],"summary":"List Discrepancies","description":"Return payments where brand_amount != expected_brand_amount.","operationId":"list_discrepancies_admin_finance_discrepancies_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/contract-sync":{"post":{"tags":["contract-webhooks"],"summary":"Contract Webhook","description":"Receive a contract event from contracts.ovotalent.com and upsert.","operationId":"contract_webhook_webhooks_contract_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/trigger-sync":{"post":{"tags":["contract-webhooks"],"summary":"Trigger Sync","description":"Run the full contract sync from contracts.ovotalent.com.\n\nCalled by the Vercel hourly cron as a safety net. Uses bearer token\nauth (same OVO_CRM_SYNC_SECRET), not user auth, so it works from cron.","operationId":"trigger_sync_webhooks_trigger_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/leaderboard":{"get":{"tags":["leaderboard"],"summary":"Get Leaderboard","description":"Team leaderboard with rankings across multiple metrics.","operationId":"get_leaderboard_leaderboard_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(today|wtd|mtd|ytd)$","default":"mtd","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/creator/profile":{"get":{"tags":["portal-creator"],"summary":"Get My Profile","description":"Return the authenticated creator's own profile.","operationId":"get_my_profile_portal_creator_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalCreatorProfile"}}}}}},"patch":{"tags":["portal-creator"],"summary":"Update My Profile","description":"Update the creator's own bio, phone, profile_photo, or calendly_link.","operationId":"update_my_profile_portal_creator_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalCreatorProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalCreatorProfile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/creator/deals":{"get":{"tags":["portal-creator"],"summary":"List My Deals","description":"List all deals for the authenticated creator.","operationId":"list_my_deals_portal_creator_deals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalDealListItem"},"type":"array","title":"Response List My Deals Portal Creator Deals Get"}}}}}}},"/portal/creator/deals/{deal_id}":{"get":{"tags":["portal-creator"],"summary":"Get My Deal","description":"Return a single deal with deliverables (must belong to this creator).","operationId":"get_my_deal_portal_creator_deals__deal_id__get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalDealDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/creator/payments":{"get":{"tags":["portal-creator"],"summary":"List My Payments","description":"List payments for this creator (creator_amount and status only).","operationId":"list_my_payments_portal_creator_payments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalPaymentItem"},"type":"array","title":"Response List My Payments Portal Creator Payments Get"}}}}}}},"/portal/creator/deliverables":{"get":{"tags":["portal-creator"],"summary":"List My Deliverables","description":"List all deliverables across the creator's deals.","operationId":"list_my_deliverables_portal_creator_deliverables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalDeliverableItem"},"type":"array","title":"Response List My Deliverables Portal Creator Deliverables Get"}}}}}}},"/portal/creator/deliverables/{deliverable_id}":{"patch":{"tags":["portal-creator"],"summary":"Upload Draft Link","description":"Upload a draft link for a deliverable (must belong to creator's deal).","operationId":"upload_draft_link_portal_creator_deliverables__deliverable_id__patch","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalDeliverableDraftUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalDeliverableItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/creator/contracts":{"get":{"tags":["portal-creator"],"summary":"List My Contracts","description":"List contracts for this creator with PDF links.","operationId":"list_my_contracts_portal_creator_contracts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalContractItem"},"type":"array","title":"Response List My Contracts Portal Creator Contracts Get"}}}}}}},"/portal/creator/analytics":{"get":{"tags":["portal-creator"],"summary":"Get My Analytics","description":"Aggregated stats for the creator dashboard.","operationId":"get_my_analytics_portal_creator_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalCreatorAnalytics"}}}}}}},"/portal/brand/profile":{"get":{"tags":["portal-brand"],"summary":"Get Profile","operationId":"get_profile_portal_brand_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandProfile"}}}}}}},"/portal/brand/campaigns":{"get":{"tags":["portal-brand"],"summary":"List Campaigns","operationId":"list_campaigns_portal_brand_campaigns_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalCampaignSummary"},"type":"array","title":"Response List Campaigns Portal Brand Campaigns Get"}}}}}}},"/portal/brand/campaigns/{deal_id}":{"get":{"tags":["portal-brand"],"summary":"Get Campaign","operationId":"get_campaign_portal_brand_campaigns__deal_id__get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalCampaignDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/brand/creators":{"get":{"tags":["portal-brand"],"summary":"List Creators","operationId":"list_creators_portal_brand_creators_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalCreatorSummary"},"type":"array","title":"Response List Creators Portal Brand Creators Get"}}}}}}},"/portal/brand/deliverables":{"get":{"tags":["portal-brand"],"summary":"List Deliverables","operationId":"list_deliverables_portal_brand_deliverables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalDeliverable"},"type":"array","title":"Response List Deliverables Portal Brand Deliverables Get"}}}}}}},"/portal/brand/deliverables/{deliverable_id}/review":{"patch":{"tags":["portal-brand"],"summary":"Review Deliverable","operationId":"review_deliverable_portal_brand_deliverables__deliverable_id__review_patch","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalDeliverable"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/brand/payments":{"get":{"tags":["portal-brand"],"summary":"List Payments","operationId":"list_payments_portal_brand_payments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalPayment"},"type":"array","title":"Response List Payments Portal Brand Payments Get"}}}}}}},"/portal/brand/contracts":{"get":{"tags":["portal-brand"],"summary":"List Contracts","operationId":"list_contracts_portal_brand_contracts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PortalContract"},"type":"array","title":"Response List Contracts Portal Brand Contracts Get"}}}}}}},"/portal/brand/performance":{"get":{"tags":["portal-brand"],"summary":"Get Performance","operationId":"get_performance_portal_brand_performance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalPerformance"}}}}}}},"/pay-queue/counts":{"get":{"tags":["pay-queue"],"summary":"Get Counts","description":"Light endpoint for sidebar badges — just counts, no heavy data.","operationId":"get_counts_pay_queue_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Counts Pay Queue Counts Get"}}}}}}},"/pay-queue/summary":{"get":{"tags":["pay-queue"],"summary":"Get Summary","description":"Cash-position snapshot for the home-page Payout War Room.\n\nReturns three money buckets + a shortlist of top creators awaiting payout.\nAdmin-only UI — router auth already enforces login, but the payload itself\ncontains no PII a rep shouldn't see (creator names + their queued totals).","operationId":"get_summary_pay_queue_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Summary Pay Queue Summary Get"}}}}}}},"/pay-queue":{"get":{"tags":["pay-queue"],"summary":"Get Pay Queue","description":"Return creators awaiting payout, grouped by status.","operationId":"get_pay_queue_pay_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayQueueResponse"}}}}}}},"/pay-queue/bulk-import":{"post":{"tags":["pay-queue"],"summary":"Bulk Import","description":"Parse free-form Slack-style text and create payment rows.","operationId":"bulk_import_pay_queue_bulk_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/creator/{creator_id}/banking":{"post":{"tags":["pay-queue"],"summary":"Update Banking","description":"Update a creator's banking details directly from the Pay Queue.","operationId":"update_banking_pay_queue_creator__creator_id__banking_post","parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Creator Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Banking Pay Queue Creator  Creator Id  Banking Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/{payment_id}/mark-paid":{"post":{"tags":["pay-queue"],"summary":"Mark Paid","description":"Mark a queued payout as paid. Sets creator_paid_date = today.","operationId":"mark_paid_pay_queue__payment_id__mark_paid_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Mark Paid Pay Queue  Payment Id  Mark Paid Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/quick-add":{"post":{"tags":["pay-queue"],"summary":"Quick Add","description":"One-call endpoint: create/match creator, save banking, queue payment.","operationId":"quick_add_pay_queue_quick_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickAddRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Quick Add Pay Queue Quick Add Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/unmatched":{"get":{"tags":["pay-queue"],"summary":"List Unmatched","description":"Brand payments that need to be split into creator payouts.\n\nDefaults:\n  - last 90 days only (ignore ancient Airtable imports)\n  - skip rows that already have creator_txn_key set (already reconciled)\n\nOverride with include_reconciled=true or include_old=true to see everything.","operationId":"list_unmatched_pay_queue_unmatched_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Days"}},{"name":"include_reconciled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Reconciled"}},{"name":"include_old","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Old"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Unmatched Pay Queue Unmatched Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/{payment_id}/ignore":{"post":{"tags":["pay-queue"],"summary":"Ignore Payment","description":"Mark a brand payment as not-a-creator-payout so it drops off the queue.\n\nUse for internal transfers, fees, refunds, non-creator revenue. Sets\ncreator_amount=0 and is_parent=true so it no longer appears in unmatched\nbut stays in the payments table for reconciliation.","operationId":"ignore_payment_pay_queue__payment_id__ignore_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Ignore Payment Pay Queue  Payment Id  Ignore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/{payment_id}/split":{"post":{"tags":["pay-queue"],"summary":"Split Payment","description":"Split a brand payment into N creator payouts.\n\nThe parent row keeps its brand_amount (brand payment still recorded)\nbut is marked is_parent=true so it doesn't clutter the queue. Child\nrows have creator_id + creator_amount set and show up in Ready to Pay.","operationId":"split_payment_pay_queue__payment_id__split_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Split Payment Pay Queue  Payment Id  Split Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/export.csv":{"get":{"tags":["pay-queue"],"summary":"Export Csv","description":"Export ready-to-pay queue as CSV for Wise batch payment upload.","operationId":"export_csv_pay_queue_export_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pay-queue/command-center":{"get":{"tags":["pay-queue"],"summary":"Command Center","description":"Single endpoint powering the pay-queue command center UI.","operationId":"command_center_pay_queue_command_center_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandCenterBuckets"}}}}}}},"/pay-queue/batch":{"post":{"tags":["pay-queue"],"summary":"Create Batch","operationId":"create_batch_pay_queue_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/batch/{batch_id}":{"get":{"tags":["pay-queue"],"summary":"Get Batch","operationId":"get_batch_pay_queue_batch__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/batch/{batch_id}/send-otp":{"post":{"tags":["pay-queue"],"summary":"Send Otp","description":"Generate + send a 6-digit OTP to the admin's Slack DM. Placeholder when Slack unavailable.","operationId":"send_otp_pay_queue_batch__batch_id__send_otp_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/batch/{batch_id}/approve":{"post":{"tags":["pay-queue"],"summary":"Approve Batch","operationId":"approve_batch_pay_queue_batch__batch_id__approve_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/batch/{batch_id}/execute":{"post":{"tags":["pay-queue"],"summary":"Execute Batch","description":"Execute an approved batch.\n\nPer-item branches:\n  rail='wise'       → POST Wise /v3/profiles/{id}/transfers when WISE_API_TOKEN + WISE_PROFILE_ID set\n  rail='mercury_ach'→ POST Mercury /external/v1/account/{id}/transactions when MERCURY_API_TOKEN + MERCURY_ACCOUNT_ID set\n  rail='paypal'     → manual; marked 'sent' with a note\n  no tokens         → item marked 'sent' with error='api key missing — upload CSV manually'\n\nEvery item lands in one of {sent, confirmed, failed}. Errors are per-item, not\nper-batch, so a single failure does NOT abort the rest.","operationId":"execute_batch_pay_queue_batch__batch_id__execute_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/batch/{batch_id}/wise.csv":{"get":{"tags":["pay-queue"],"summary":"Batch Wise Csv","description":"Wise batch-payment format CSV for the batch's Wise-rail items.","operationId":"batch_wise_csv_pay_queue_batch__batch_id__wise_csv_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay-queue/batch/{batch_id}/mercury.csv":{"get":{"tags":["pay-queue"],"summary":"Batch Mercury Csv","description":"Mercury ACH batch CSV for the batch's Mercury-rail items.","operationId":"batch_mercury_csv_pay_queue_batch__batch_id__mercury_csv_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/cockpit":{"get":{"tags":["owner"],"summary":"Cockpit","description":"Owner-only aggregate. Returns:\n  - hero: month revenue, MRR proxy, active deals, creators, brands, calls this week\n  - right_now: stuck deals, contracts pending, payouts overdue, calls missing outcome\n  - creator_health: top 20 creators by gross revenue with health score\n  - brand_pipeline: brands with active or pending deals\n  - weekly_flash: auto-summary (top close, top creator, top brand, rep of week)","operationId":"cockpit_owner_cockpit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cockpit Owner Cockpit Get"}}}}}}},"/portal/banking/status":{"get":{"tags":["portal-banking"],"summary":"Get Status","operationId":"get_status_portal_banking_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankingStatus"}}}}}}},"/portal/banking/submit":{"post":{"tags":["portal-banking"],"summary":"Submit Banking","operationId":"submit_banking_portal_banking_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Submit Banking Portal Banking Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/banking/verify-amounts":{"post":{"tags":["portal-banking"],"summary":"Verify Amounts","operationId":"verify_amounts_portal_banking_verify_amounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyAmountsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Verify Amounts Portal Banking Verify Amounts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/banking/revoke":{"post":{"tags":["portal-banking"],"summary":"Revoke","operationId":"revoke_portal_banking_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Revoke Portal Banking Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/student/banking":{"get":{"tags":["portal-student-banking"],"summary":"Show Banking Page","operationId":"show_banking_page_portal_student_banking_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/portal/student/banking/submit":{"post":{"tags":["portal-student-banking"],"summary":"Submit Banking","operationId":"submit_banking_portal_student_banking_submit_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/portal/student/banking/verify-amounts":{"post":{"tags":["portal-student-banking"],"summary":"Verify Amounts","operationId":"verify_amounts_portal_student_banking_verify_amounts_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/students/{user_id}/strike":{"post":{"tags":["admin-students"],"summary":"Record Student Strike","operationId":"record_student_strike_admin_students__user_id__strike_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StrikePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Record Student Strike Admin Students  User Id  Strike Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/students/{user_id}/strikes":{"get":{"tags":["admin-students"],"summary":"List Student Strikes","operationId":"list_student_strikes_admin_students__user_id__strikes_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Student Strikes Admin Students  User Id  Strikes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/students/{user_id}/termination":{"get":{"tags":["admin-students"],"summary":"Get Student Termination","operationId":"get_student_termination_admin_students__user_id__termination_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Student Termination Admin Students  User Id  Termination Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/students/{user_id}/reinstate":{"post":{"tags":["admin-students"],"summary":"Reinstate Student","operationId":"reinstate_student_admin_students__user_id__reinstate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReinstatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reinstate Student Admin Students  User Id  Reinstate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/summary":{"get":{"tags":["payouts"],"summary":"Summary","operationId":"summary_payouts_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Summary Payouts Summary Get"}}}}}}},"/payouts/proposals":{"get":{"tags":["payouts"],"summary":"List Proposals","operationId":"list_proposals_payouts_proposals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"risk_tier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Tier"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Proposals Payouts Proposals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/proposals/{proposal_id}/approve":{"post":{"tags":["payouts"],"summary":"Approve","operationId":"approve_payouts_proposals__proposal_id__approve_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Payouts Proposals  Proposal Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/proposals/{proposal_id}/halt":{"post":{"tags":["payouts"],"summary":"Halt","operationId":"halt_payouts_proposals__proposal_id__halt_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaltRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Halt Payouts Proposals  Proposal Id  Halt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/proposals/{proposal_id}/fire":{"post":{"tags":["payouts"],"summary":"Fire","description":"Force-fire NOW. Bypasses cool-off but still runs all safety checks.","operationId":"fire_payouts_proposals__proposal_id__fire_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Fire Payouts Proposals  Proposal Id  Fire Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/process-payment/{payment_id}":{"post":{"tags":["payouts"],"summary":"Process Payment","description":"Manually invoke the splitter on a payments row. For backfill / recovery.","operationId":"process_payment_payouts_process_payment__payment_id__post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Process Payment Payouts Process Payment  Payment Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/flags":{"get":{"tags":["payouts"],"summary":"Get Flags","operationId":"get_flags_payouts_flags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Flags Payouts Flags Get"}}}}}}},"/payouts/flags/{key}":{"post":{"tags":["payouts"],"summary":"Set Flag","operationId":"set_flag_payouts_flags__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Set Flag Payouts Flags  Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/senders":{"get":{"tags":["payouts"],"summary":"List Senders","operationId":"list_senders_payouts_senders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Senders Payouts Senders Get"}}}}}},"post":{"tags":["payouts"],"summary":"Create Sender","operationId":"create_sender_payouts_senders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Sender Payouts Senders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/senders/{sender_id}/trust":{"post":{"tags":["payouts"],"summary":"Trust Sender","operationId":"trust_sender_payouts_senders__sender_id__trust_post","parameters":[{"name":"sender_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sender Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Trust Sender Payouts Senders  Sender Id  Trust Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/payouts/pending":{"post":{"tags":["slack-payouts"],"summary":"Payouts Pending","operationId":"payouts_pending_slack_payouts_pending_post","parameters":[{"name":"x-slack-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Signature"}},{"name":"x-slack-request-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/payouts/halt":{"post":{"tags":["slack-payouts"],"summary":"Halt Payouts","operationId":"halt_payouts_slack_payouts_halt_post","parameters":[{"name":"x-slack-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Signature"}},{"name":"x-slack-request-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/payouts/resume":{"post":{"tags":["slack-payouts"],"summary":"Resume Payouts","operationId":"resume_payouts_slack_payouts_resume_post","parameters":[{"name":"x-slack-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Signature"}},{"name":"x-slack-request-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/payouts/interactivity":{"post":{"tags":["slack-payouts"],"summary":"Interactivity","operationId":"interactivity_slack_payouts_interactivity_post","parameters":[{"name":"x-slack-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Signature"}},{"name":"x-slack-request-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/dashboard/feed":{"get":{"tags":["payouts-dashboard"],"summary":"Feed","operationId":"feed_payouts_dashboard_feed_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"default":24,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Feed Payouts Dashboard Feed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payouts/dashboard/halted":{"get":{"tags":["payouts-dashboard"],"summary":"Halted Inbox","operationId":"halted_inbox_payouts_dashboard_halted_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Halted Inbox Payouts Dashboard Halted Get"}}}}}}},"/payouts/dashboard/sparkline":{"get":{"tags":["payouts-dashboard"],"summary":"Sparkline","operationId":"sparkline_payouts_dashboard_sparkline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Sparkline Payouts Dashboard Sparkline Get"}}}}}}},"/health":{"get":{"tags":["ops"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AcademyBankingPortalUser":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"entity_id":{"type":"string","title":"Entity Id"},"portal_scope":{"type":"string","title":"Portal Scope"}},"type":"object","required":["id","email","name","role","entity_id","portal_scope"],"title":"AcademyBankingPortalUser"},"AcademyBankingRedeemRequest":{"properties":{"token":{"type":"string","format":"password","title":"Token","writeOnly":true}},"type":"object","required":["token"],"title":"AcademyBankingRedeemRequest"},"AcademyBankingRedeemResponse":{"properties":{"token":{"type":"string","title":"Token"},"user":{"$ref":"#/components/schemas/AcademyBankingPortalUser"}},"type":"object","required":["token","user"],"title":"AcademyBankingRedeemResponse"},"AcademyCreatorProvisionResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"duplicate":{"type":"boolean","title":"Duplicate"},"action":{"type":"string","title":"Action"},"academy_roster_creator_id":{"type":"string","title":"Academy Roster Creator Id"},"crm_creator_id":{"type":"string","title":"Crm Creator Id"},"banking_eligible":{"type":"boolean","title":"Banking Eligible"}},"type":"object","required":["ok","duplicate","action","academy_roster_creator_id","crm_creator_id","banking_eligible"],"title":"AcademyCreatorProvisionResponse"},"ApproveRequest":{"properties":{"otp":{"type":"string","title":"Otp"}},"type":"object","required":["otp"],"title":"ApproveRequest"},"AutoMatchResponse":{"properties":{"scanned":{"type":"integer","title":"Scanned"},"matched":{"type":"integer","title":"Matched"},"skipped":{"type":"integer","title":"Skipped"},"samples":{"items":{"type":"object"},"type":"array","title":"Samples"}},"type":"object","required":["scanned","matched","skipped","samples"],"title":"AutoMatchResponse"},"BankTransaction":{"properties":{"txn_key":{"type":"string","title":"Txn Key"},"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"date":{"type":"string","format":"date","title":"Date"},"description":{"type":"string","title":"Description"},"bank_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account"}},"type":"object","required":["txn_key","amount","date","description"],"title":"BankTransaction","description":"A single bank transaction to match against payments."},"BankingStatus":{"properties":{"verification_status":{"type":"string","title":"Verification Status"},"active_banking_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Active Banking Id"},"last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last4"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"pending_verification_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pending Verification Id"},"pending_attempts_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pending Attempts Remaining"},"pending_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Expires At"}},"type":"object","required":["verification_status","active_banking_id","last4","holder_name","bank_name","pending_verification_id","pending_attempts_remaining","pending_expires_at"],"title":"BankingStatus"},"BankingUpdate":{"properties":{"payment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Type"},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"}},"type":"object","title":"BankingUpdate"},"BatchCreateItem":{"properties":{"item_type":{"type":"string","enum":["creator_payout","commission_payout","recurring_payout"],"title":"Item Type"},"ref_id":{"type":"string","title":"Ref Id"},"amount":{"type":"number","title":"Amount"},"rail":{"type":"string","title":"Rail","default":"wise"}},"type":"object","required":["item_type","ref_id","amount"],"title":"BatchCreateItem"},"BatchCreateRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BatchCreateItem"},"type":"array","title":"Items"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["items"],"title":"BatchCreateRequest"},"Body_handle_slash_command_slack_command_post":{"properties":{"command":{"type":"string","title":"Command"},"text":{"type":"string","title":"Text","default":""},"user_id":{"type":"string","title":"User Id","default":""},"channel_id":{"type":"string","title":"Channel Id","default":""},"response_url":{"type":"string","title":"Response Url","default":""}},"type":"object","required":["command"],"title":"Body_handle_slash_command_slack_command_post"},"Body_upload_vault_contract_team_vault_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_vault_contract_team_vault_post"},"BookingLinkSentPayload":{"properties":{"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"ig_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig User Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"vertical":{"type":"string","enum":["roster-method","samantha-coaching"],"title":"Vertical","default":"roster-method"}},"type":"object","title":"BookingLinkSentPayload"},"BookingSyncPayload":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"booking":{"type":"object","title":"Booking"}},"type":"object","title":"BookingSyncPayload"},"BrandCreate":{"properties":{"name":{"type":"string","title":"Name"},"legal_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Entity Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"primary_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name"],"title":"BrandCreate","description":"POST body for creating a brand."},"BrandInboundDMPayload":{"properties":{"brand_identifier":{"type":"string","minLength":1,"title":"Brand Identifier","description":"Brand domain, email, or name fragment from DM"},"intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent","description":"Setter-detected intent label, e.g. 'brand_deal_request'"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle","description":"Source IG account that received the DM"},"attributed_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attributed To User Id","description":"team_members.id if a human took the DM; NULL = inbound"},"is_creator_source":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Creator Source","description":"True if the inbound is via a creator funnel; skip attribution.","default":false}},"type":"object","required":["brand_identifier"],"title":"BrandInboundDMPayload"},"BrandProfile":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"legal_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Entity Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"primary_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"}},"type":"object","required":["id","name"],"title":"BrandProfile"},"BrandResponse":{"properties":{"name":{"type":"string","title":"Name"},"legal_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Entity Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"primary_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","created_at","updated_at"],"title":"BrandResponse","description":"Full brand record returned from the database."},"BrandUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"legal_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Entity Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"primary_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"BrandUpdate","description":"PATCH body -- every field is optional."},"BulkAcceptRequest":{"properties":{"payment_ids":{"items":{"type":"string"},"type":"array","title":"Payment Ids"}},"type":"object","required":["payment_ids"],"title":"BulkAcceptRequest"},"BulkAcceptResponse":{"properties":{"accepted":{"type":"integer","title":"Accepted"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["accepted","errors"],"title":"BulkAcceptResponse"},"BulkImportLine":{"properties":{"creator_name":{"type":"string","title":"Creator Name"},"amount":{"type":"number","title":"Amount"},"description":{"type":"string","title":"Description"},"matched_creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Matched Creator Id"},"status":{"type":"string","title":"Status"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"}},"type":"object","required":["creator_name","amount","description","matched_creator_id","status"],"title":"BulkImportLine"},"BulkImportRequest":{"properties":{"text":{"type":"string","title":"Text","description":"Slack-format text: 'Name: $amount (brand)' per line"}},"type":"object","required":["text"],"title":"BulkImportRequest"},"BulkImportResponse":{"properties":{"created":{"type":"integer","title":"Created"},"new_creators":{"type":"integer","title":"New Creators"},"total_amount":{"type":"number","title":"Total Amount"},"lines":{"items":{"$ref":"#/components/schemas/BulkImportLine"},"type":"array","title":"Lines"}},"type":"object","required":["created","new_creators","total_amount","lines"],"title":"BulkImportResponse"},"CalendarDay":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"deliverables":{"items":{"$ref":"#/components/schemas/DeliverableResponse"},"type":"array","title":"Deliverables"}},"type":"object","required":["date","deliverables"],"title":"CalendarDay"},"CallIngestResponse":{"properties":{"call_id":{"type":"string","format":"uuid","title":"Call Id"},"linked_status":{"type":"string","title":"Linked Status"},"links":{"$ref":"#/components/schemas/CallLinks"}},"type":"object","required":["call_id","linked_status","links"],"title":"CallIngestResponse"},"CallLinkUpdate":{"properties":{"prospect_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prospect Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"}},"type":"object","title":"CallLinkUpdate"},"CallLinks":{"properties":{"rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rep Id"},"prospect_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prospect Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"}},"type":"object","title":"CallLinks"},"CallListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"meeting_uuid":{"type":"string","title":"Meeting Uuid"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"status":{"type":"string","title":"Status"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"processing_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processing Stage"},"processing_progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Processing Progress"},"rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rep Id"},"prospect_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prospect Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"linked_status":{"type":"string","title":"Linked Status","default":"unlinked"},"link_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Link Confidence"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"duration_sec":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Sec"},"audio_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio R2 Key"},"video_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video R2 Key"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"deal_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Score"},"readiness_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Readiness Score"},"framework_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Framework Score"},"one_thing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Thing"},"deal_score_gemini":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Score Gemini"},"deal_score_claude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Score Claude"},"consensus_flag":{"type":"boolean","title":"Consensus Flag","default":false},"host_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Email"},"participants_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Participants Json"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"analyzed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Analyzed At"},"prospect_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Name"},"creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"deal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Name"},"rep_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Name"},"rep_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Email"}},"type":"object","required":["id","meeting_uuid","status"],"title":"CallListItem","description":"Lightweight call shape for list endpoints.\n\nOmits transcript, segments_json, beliefs_json, verdict_json, objections_json,\nkey_quotes_json, highlights_json, call_facts_json, speakers_json,\ntags, error_message — anything that isn't needed to render a row in the\ncalls list. Keeping the payload small is the single biggest lever for\n/calls performance: the full row is often hundreds of KB per call because\ntranscripts are stored inline.\n\nparticipants_json is optional — /active includes it for the live banner,\n/calls and /inbox omit it."},"CallNoteCreate":{"properties":{"body":{"type":"string","title":"Body"},"audio_timestamp_sec":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Audio Timestamp Sec"},"segment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment Id"},"parent_note_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Note Id"}},"type":"object","required":["body"],"title":"CallNoteCreate"},"CallNoteResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"call_id":{"type":"string","format":"uuid","title":"Call Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"body":{"type":"string","title":"Body"},"audio_timestamp_sec":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Audio Timestamp Sec"},"segment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment Id"},"parent_note_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Note Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","call_id","body","created_at"],"title":"CallNoteResponse"},"CallResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"meeting_uuid":{"type":"string","title":"Meeting Uuid"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"status":{"type":"string","title":"Status"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"processing_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processing Stage"},"processing_progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Processing Progress"},"rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rep Id"},"prospect_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prospect Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"linked_status":{"type":"string","title":"Linked Status","default":"unlinked"},"link_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Link Confidence"},"link_explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Explanation"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"duration_sec":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Sec"},"audio_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio R2 Key"},"video_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video R2 Key"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"deal_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Score"},"readiness_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Readiness Score"},"framework_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Framework Score"},"one_thing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Thing"},"top_3_fixes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top 3 Fixes"},"deal_score_gemini":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Score Gemini"},"deal_score_claude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Score Claude"},"consensus_flag":{"type":"boolean","title":"Consensus Flag","default":false},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"segments_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Segments Json"},"speakers_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Speakers Json"},"beliefs_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Beliefs Json"},"verdict_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Verdict Json"},"objections_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Objections Json"},"key_quotes_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Key Quotes Json"},"highlights_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Highlights Json"},"call_facts_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Call Facts Json"},"participants_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Participants Json"},"host_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Email"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"analyzed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Analyzed At"},"prospect_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Name"},"creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"deal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Name"},"rep_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Name"},"rep_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Email"}},"type":"object","required":["id","meeting_uuid","status"],"title":"CallResponse"},"CancelRequest":{"properties":{"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""}},"type":"object","title":"CancelRequest"},"CheckinCadence":{"type":"string","enum":["weekly","biweekly","monthly","quarterly"],"title":"CheckinCadence"},"CommandCenterBuckets":{"properties":{"due_today":{"items":{"$ref":"#/components/schemas/CommandCenterItem"},"type":"array","title":"Due Today"},"recurring":{"items":{"$ref":"#/components/schemas/CommandCenterItem"},"type":"array","title":"Recurring"},"need_banking":{"items":{"$ref":"#/components/schemas/CommandCenterItem"},"type":"array","title":"Need Banking"},"commissions_pending":{"items":{"$ref":"#/components/schemas/CommandCenterItem"},"type":"array","title":"Commissions Pending"},"totals":{"type":"object","title":"Totals"}},"type":"object","required":["due_today","recurring","need_banking","commissions_pending","totals"],"title":"CommandCenterBuckets"},"CommandCenterItem":{"properties":{"item_type":{"type":"string","title":"Item Type"},"ref_id":{"type":"string","title":"Ref Id"},"recipient_name":{"type":"string","title":"Recipient Name"},"recipient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Id"},"amount":{"type":"number","title":"Amount"},"currency":{"type":"string","title":"Currency","default":"USD"},"rail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rail"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"has_banking":{"type":"boolean","title":"Has Banking","default":true},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"bucket":{"type":"string","title":"Bucket"}},"type":"object","required":["item_type","ref_id","recipient_name","amount","bucket"],"title":"CommandCenterItem","description":"A single line eligible for payout across any bucket."},"CommissionDealLine":{"properties":{"deal_id":{"type":"string","title":"Deal Id"},"deal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Name"},"brand_amount_received":{"type":"string","title":"Brand Amount Received","default":"0"},"creator_amount_paid":{"type":"string","title":"Creator Amount Paid","default":"0"},"ovo_profit":{"type":"string","title":"Ovo Profit","default":"0"},"commission_rate":{"type":"number","title":"Commission Rate"},"commission_earned":{"type":"string","title":"Commission Earned","default":"0"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"brand_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Brand Paid Date"}},"type":"object","required":["deal_id","commission_rate"],"title":"CommissionDealLine","description":"Per-deal line item on a commission statement."},"CommissionStatement":{"properties":{"partner":{"$ref":"#/components/schemas/PartnerInfo"},"month":{"type":"string","title":"Month"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"summary":{"$ref":"#/components/schemas/CommissionSummary"},"ytd_summary":{"$ref":"#/components/schemas/CommissionSummary"},"lines":{"items":{"$ref":"#/components/schemas/CommissionDealLine"},"type":"array","title":"Lines"}},"type":"object","required":["partner","month","generated_at","summary","ytd_summary","lines"],"title":"CommissionStatement"},"CommissionSummary":{"properties":{"total_deals_closed":{"type":"integer","title":"Total Deals Closed","default":0},"total_payments_received":{"type":"string","title":"Total Payments Received","default":"0"},"total_creator_paid":{"type":"string","title":"Total Creator Paid","default":"0"},"total_ovo_profit":{"type":"string","title":"Total Ovo Profit","default":"0"},"commission_earned":{"type":"string","title":"Commission Earned","default":"0"}},"type":"object","title":"CommissionSummary"},"CommunicationCreate":{"properties":{"prospect_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prospect Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"direction":{"type":"string","title":"Direction"},"channel":{"type":"string","title":"Channel"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"ig_account_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Account Used"},"auto_or_manual":{"type":"string","title":"Auto Or Manual","default":"manual"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"sent_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sent By Id"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp"}},"type":"object","required":["direction","channel"],"title":"CommunicationCreate","description":"POST body for logging a new communication."},"CommunicationResponse":{"properties":{"prospect_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prospect Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"direction":{"type":"string","title":"Direction"},"channel":{"type":"string","title":"Channel"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"ig_account_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Account Used"},"auto_or_manual":{"type":"string","title":"Auto Or Manual","default":"manual"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"sent_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sent By Id"},"id":{"type":"string","format":"uuid","title":"Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["direction","channel","id","timestamp"],"title":"CommunicationResponse","description":"Full communication record returned from the database."},"CommunicationSummary":{"properties":{"id":{"type":"string","title":"Id"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp"}},"type":"object","required":["id"],"title":"CommunicationSummary","description":"Recent communication entry for the creator detail view."},"CreatorCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"prospect_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Id"},"profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo"},"ovo_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Ovo Email"},"personal_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Personal Email"},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Phone"},"ig_handle":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Tiktok Handle"},"status":{"$ref":"#/components/schemas/CreatorStatus","default":"sourcing"},"creator_tier":{"anyOf":[{"$ref":"#/components/schemas/CreatorTier"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/CreatorPriority"},{"type":"null"}]},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"avg_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Ig"},"top_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Ig"},"engagement_rate_ig":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Engagement Rate Ig"},"like_rate_ig":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Like Rate Ig"},"save_rate_ig":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Save Rate Ig"},"l30_reels":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Reels"},"ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Bio"},"email_in_ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Ig Bio"},"email_button_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Button Ig"},"ig_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ig Stats Updated At"},"tt_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tt Followers"},"avg_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Tt"},"top_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Tt"},"engagement_rate_tt":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Engagement Rate Tt"},"l30_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Tt"},"email_in_tt_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Tt Bio"},"tt_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tt Stats Updated At"},"ig_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Ig Rate"},"tiktok_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Tiktok Rate"},"synced_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Synced Rate"},"dedicated_story_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Dedicated Story Rate"},"cpm_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Cpm Rate"},"commission_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Commission Rate"},"exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Collabs"},"non_exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Non Exclusive Collabs"},"exclusive_brand_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclusive Brand Types"},"manager":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager"},"manager_fee_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Manager Fee Pct"},"payout_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Terms"},"tax_withholding_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Tax Withholding Pct"},"payment_type":{"anyOf":[{"$ref":"#/components/schemas/PaymentType"},{"type":"null"}]},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"},"bank_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bank Verified"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"account_manager_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Manager Id"},"last_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checkin"},"next_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Checkin"},"checkin_cadence":{"anyOf":[{"$ref":"#/components/schemas/CheckinCadence"},{"type":"null"}]},"am_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Am Notes"},"birthday":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthday"},"timezone":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Timezone"},"calendly_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendly Link"}},"type":"object","required":["name"],"title":"CreatorCreate","description":"Payload for creating a new creator. `name` is required; everything else optional."},"CreatorDetail":{"properties":{"id":{"type":"string","title":"Id"},"prospect_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Id"},"name":{"type":"string","title":"Name"},"profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo"},"ovo_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ovo Email"},"personal_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"status":{"$ref":"#/components/schemas/CreatorStatus"},"creator_tier":{"anyOf":[{"$ref":"#/components/schemas/CreatorTier"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/CreatorPriority"},{"type":"null"}]},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"avg_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Ig"},"top_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Ig"},"engagement_rate_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Rate Ig"},"like_rate_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Like Rate Ig"},"save_rate_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Save Rate Ig"},"l30_reels":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Reels"},"ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Bio"},"email_in_ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Ig Bio"},"email_button_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Button Ig"},"ig_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ig Stats Updated At"},"tt_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tt Followers"},"avg_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Tt"},"top_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Tt"},"engagement_rate_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Rate Tt"},"l30_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Tt"},"email_in_tt_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Tt Bio"},"tt_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tt Stats Updated At"},"ig_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Rate"},"tiktok_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Rate"},"synced_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synced Rate"},"dedicated_story_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dedicated Story Rate"},"cpm_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpm Rate"},"commission_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commission Rate"},"exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Collabs"},"non_exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Non Exclusive Collabs"},"exclusive_brand_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclusive Brand Types"},"manager":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager"},"manager_fee_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Fee Pct"},"payout_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Terms"},"tax_withholding_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Withholding Pct"},"payment_type":{"anyOf":[{"$ref":"#/components/schemas/PaymentType"},{"type":"null"}]},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"},"bank_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bank Verified"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"account_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Manager Id"},"last_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checkin"},"next_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Checkin"},"checkin_cadence":{"anyOf":[{"$ref":"#/components/schemas/CheckinCadence"},{"type":"null"}]},"am_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Am Notes"},"birthday":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthday"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"calendly_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendly Link"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"health_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Health Score"},"health_status":{"anyOf":[{"$ref":"#/components/schemas/HealthStatus"},{"type":"null"}]},"active_deals_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Deals Count"},"open_deliverables_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Open Deliverables Count"},"days_since_last_activity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Last Activity"},"recent_deals":{"items":{"$ref":"#/components/schemas/DealSummary"},"type":"array","title":"Recent Deals","default":[]},"recent_communications":{"items":{"$ref":"#/components/schemas/CommunicationSummary"},"type":"array","title":"Recent Communications","default":[]},"payment_summary":{"$ref":"#/components/schemas/PaymentSummaryItem","default":{"total_paid":"0","total_pending":"0","payment_count":0}},"health_breakdown":{"anyOf":[{"$ref":"#/components/schemas/HealthBreakdown"},{"type":"null"}]},"commission_ytd":{"type":"string","title":"Commission Ytd","default":"0"}},"type":"object","required":["id","name","status","created_at","updated_at"],"title":"CreatorDetail","description":"Extended creator response including related data:\nrecent deals, communications, and payment summary."},"CreatorIntelCreate":{"properties":{"creator_id":{"type":"string","format":"uuid","title":"Creator Id"},"intel_summary":{"type":"string","title":"Intel Summary"},"intel_type":{"anyOf":[{"type":"string","enum":["Communication Pref","Personal Detail","Brand Interest","Brand Rejection","Rate Feedback","Availability","Pain Point","Content Style","Relationship Note"]},{"type":"null"}],"title":"Intel Type"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"source":{"anyOf":[{"type":"string","enum":["Chloe","Jaci","Paty","Alex","Call","Email","Deal Outcome"]},{"type":"null"}],"title":"Source"},"confidence":{"anyOf":[{"type":"string","enum":["Confirmed","Likely","Uncertain","Expired"]},{"type":"null"}],"title":"Confidence"},"last_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Confirmed"},"expires":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires"},"last_referenced":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Referenced"},"reference_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference Count","default":0}},"type":"object","required":["creator_id","intel_summary"],"title":"CreatorIntelCreate","description":"POST body for creating a creator intel entry."},"CreatorIntelResponse":{"properties":{"creator_id":{"type":"string","format":"uuid","title":"Creator Id"},"intel_summary":{"type":"string","title":"Intel Summary"},"intel_type":{"anyOf":[{"type":"string","enum":["Communication Pref","Personal Detail","Brand Interest","Brand Rejection","Rate Feedback","Availability","Pain Point","Content Style","Relationship Note"]},{"type":"null"}],"title":"Intel Type"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"source":{"anyOf":[{"type":"string","enum":["Chloe","Jaci","Paty","Alex","Call","Email","Deal Outcome"]},{"type":"null"}],"title":"Source"},"confidence":{"anyOf":[{"type":"string","enum":["Confirmed","Likely","Uncertain","Expired"]},{"type":"null"}],"title":"Confidence"},"last_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Confirmed"},"expires":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires"},"last_referenced":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Referenced"},"reference_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference Count","default":0},"id":{"type":"string","format":"uuid","title":"Id"},"airtable_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Airtable Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["creator_id","intel_summary","id","created_at","updated_at"],"title":"CreatorIntelResponse","description":"Full creator intel record returned from the database."},"CreatorIntelUpdate":{"properties":{"intel_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intel Summary"},"intel_type":{"anyOf":[{"type":"string","enum":["Communication Pref","Personal Detail","Brand Interest","Brand Rejection","Rate Feedback","Availability","Pain Point","Content Style","Relationship Note"]},{"type":"null"}],"title":"Intel Type"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"source":{"anyOf":[{"type":"string","enum":["Chloe","Jaci","Paty","Alex","Call","Email","Deal Outcome"]},{"type":"null"}],"title":"Source"},"confidence":{"anyOf":[{"type":"string","enum":["Confirmed","Likely","Uncertain","Expired"]},{"type":"null"}],"title":"Confidence"},"last_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Confirmed"},"expires":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires"},"last_referenced":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Referenced"},"reference_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference Count"}},"type":"object","title":"CreatorIntelUpdate","description":"PATCH body -- every field is optional."},"CreatorListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CreatorResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total_pages":{"type":"integer","title":"Total Pages"}},"type":"object","required":["items","total","page","page_size","total_pages"],"title":"CreatorListResponse","description":"Paginated creator list."},"CreatorPriority":{"type":"string","enum":["high","medium","low"],"title":"CreatorPriority"},"CreatorResponse":{"properties":{"id":{"type":"string","title":"Id"},"prospect_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Id"},"name":{"type":"string","title":"Name"},"profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo"},"ovo_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ovo Email"},"personal_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"status":{"$ref":"#/components/schemas/CreatorStatus"},"creator_tier":{"anyOf":[{"$ref":"#/components/schemas/CreatorTier"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/CreatorPriority"},{"type":"null"}]},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"avg_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Ig"},"top_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Ig"},"engagement_rate_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Rate Ig"},"like_rate_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Like Rate Ig"},"save_rate_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Save Rate Ig"},"l30_reels":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Reels"},"ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Bio"},"email_in_ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Ig Bio"},"email_button_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Button Ig"},"ig_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ig Stats Updated At"},"tt_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tt Followers"},"avg_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Tt"},"top_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Tt"},"engagement_rate_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Rate Tt"},"l30_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Tt"},"email_in_tt_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Tt Bio"},"tt_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tt Stats Updated At"},"ig_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Rate"},"tiktok_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Rate"},"synced_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synced Rate"},"dedicated_story_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dedicated Story Rate"},"cpm_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpm Rate"},"commission_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commission Rate"},"exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Collabs"},"non_exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Non Exclusive Collabs"},"exclusive_brand_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclusive Brand Types"},"manager":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager"},"manager_fee_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Fee Pct"},"payout_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Terms"},"tax_withholding_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Withholding Pct"},"payment_type":{"anyOf":[{"$ref":"#/components/schemas/PaymentType"},{"type":"null"}]},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"},"bank_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bank Verified"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"account_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Manager Id"},"last_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checkin"},"next_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Checkin"},"checkin_cadence":{"anyOf":[{"$ref":"#/components/schemas/CheckinCadence"},{"type":"null"}]},"am_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Am Notes"},"birthday":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthday"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"calendly_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendly Link"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"health_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Health Score"},"health_status":{"anyOf":[{"$ref":"#/components/schemas/HealthStatus"},{"type":"null"}]},"active_deals_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Deals Count"},"open_deliverables_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Open Deliverables Count"},"days_since_last_activity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Last Activity"}},"type":"object","required":["id","name","status","created_at","updated_at"],"title":"CreatorResponse","description":"Flat creator row returned by list and single-get endpoints."},"CreatorStatus":{"type":"string","enum":["sourcing","negotiation","contract_pending","active","churned","inactive"],"title":"CreatorStatus"},"CreatorTier":{"type":"string","enum":["A","B","C","D"],"title":"CreatorTier"},"CreatorUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"prospect_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Id"},"profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo"},"ovo_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Ovo Email"},"personal_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Personal Email"},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Phone"},"ig_handle":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Tiktok Handle"},"status":{"anyOf":[{"$ref":"#/components/schemas/CreatorStatus"},{"type":"null"}]},"creator_tier":{"anyOf":[{"$ref":"#/components/schemas/CreatorTier"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/CreatorPriority"},{"type":"null"}]},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"avg_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Ig"},"top_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Ig"},"engagement_rate_ig":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Engagement Rate Ig"},"like_rate_ig":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Like Rate Ig"},"save_rate_ig":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Save Rate Ig"},"l30_reels":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Reels"},"ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Bio"},"email_in_ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Ig Bio"},"email_button_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Button Ig"},"ig_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ig Stats Updated At"},"tt_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tt Followers"},"avg_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Tt"},"top_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Views Tt"},"engagement_rate_tt":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Engagement Rate Tt"},"l30_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Tt"},"email_in_tt_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email In Tt Bio"},"tt_stats_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tt Stats Updated At"},"ig_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Ig Rate"},"tiktok_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Tiktok Rate"},"synced_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Synced Rate"},"dedicated_story_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Dedicated Story Rate"},"cpm_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Cpm Rate"},"commission_rate":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Commission Rate"},"exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Collabs"},"non_exclusive_collabs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Non Exclusive Collabs"},"exclusive_brand_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclusive Brand Types"},"manager":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager"},"manager_fee_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Manager Fee Pct"},"payout_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Terms"},"tax_withholding_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Tax Withholding Pct"},"payment_type":{"anyOf":[{"$ref":"#/components/schemas/PaymentType"},{"type":"null"}]},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"},"bank_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bank Verified"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"account_manager_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Manager Id"},"last_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checkin"},"next_checkin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Checkin"},"checkin_cadence":{"anyOf":[{"$ref":"#/components/schemas/CheckinCadence"},{"type":"null"}]},"am_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Am Notes"},"birthday":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthday"},"timezone":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Timezone"},"calendly_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendly Link"}},"type":"object","title":"CreatorUpdate","description":"Payload for patching a creator.\nEvery field is Optional so callers can send only what changed."},"DealCreate":{"properties":{"creator_id":{"type":"string","format":"uuid","title":"Creator Id"},"brand_id":{"type":"string","format":"uuid","title":"Brand Id"},"deal_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Model"},"student_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student User Id"},"student_commission_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Student Commission Pct"},"ovo_backend_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Ovo Backend Pct"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Total Amount"},"monthly_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Monthly Amount"},"total_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Months"},"split_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Split Pct"},"ovo_margin_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Ovo Margin Pct"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status","default":"draft"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions","default":2},"is_exclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Exclusive","default":false},"exclusivity_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exclusivity Days"},"usage_rights":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Rights"},"product_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Category"},"mvc_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mvc Target"},"mvc_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mvc Status"},"billing_anchor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Anchor"},"billing_cycle_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billing Cycle Day"},"next_invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Invoice Date"},"ae_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ae Id"},"brief_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Notes"},"discount_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Code"},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"brief_document_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Document Url"},"creator_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Contract Url"},"brand_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Contract Url"},"documenso_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documenso Id"},"pandadoc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pandadoc Id"},"pause_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Pause Date"},"resume_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Resume Date"},"termination_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Type"},"kill_fee":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Kill Fee"},"float_risk":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Float Risk"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["creator_id","brand_id"],"title":"DealCreate","description":"All DealBase fields; creator_id and brand_id are required."},"DealDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"creator_id":{"type":"string","format":"uuid","title":"Creator Id"},"brand_id":{"type":"string","format":"uuid","title":"Brand Id"},"deal_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Model"},"student_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student User Id"},"student_commission_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Commission Pct"},"ovo_backend_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ovo Backend Pct"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Amount"},"monthly_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Amount"},"total_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Months"},"split_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split Pct"},"ovo_margin_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ovo Margin Pct"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"},"is_exclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Exclusive"},"exclusivity_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exclusivity Days"},"usage_rights":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Rights"},"product_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Category"},"mvc_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mvc Target"},"mvc_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mvc Status"},"billing_anchor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Anchor"},"billing_cycle_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billing Cycle Day"},"next_invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Invoice Date"},"ae_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ae Id"},"brief_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Notes"},"discount_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Code"},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"brief_document_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Document Url"},"creator_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Contract Url"},"brand_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Contract Url"},"documenso_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documenso Id"},"pandadoc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pandadoc Id"},"pause_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Pause Date"},"resume_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Resume Date"},"termination_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Type"},"kill_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Fee"},"float_risk":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Float Risk"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"ae_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ae Name"},"total_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Value"},"deliverables":{"items":{"$ref":"#/components/schemas/DeliverableSummary"},"type":"array","title":"Deliverables"},"payments":{"items":{"$ref":"#/components/schemas/PaymentSummary"},"type":"array","title":"Payments"}},"type":"object","required":["id","creator_id","brand_id","created_at","updated_at"],"title":"DealDetail","description":"Single-deal detail: includes nested deliverables and payments."},"DealListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DealResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["items","total","page","page_size"],"title":"DealListResponse"},"DealResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"creator_id":{"type":"string","format":"uuid","title":"Creator Id"},"brand_id":{"type":"string","format":"uuid","title":"Brand Id"},"deal_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Model"},"student_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student User Id"},"student_commission_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Commission Pct"},"ovo_backend_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ovo Backend Pct"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Amount"},"monthly_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Amount"},"total_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Months"},"split_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split Pct"},"ovo_margin_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ovo Margin Pct"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"},"is_exclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Exclusive"},"exclusivity_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exclusivity Days"},"usage_rights":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Rights"},"product_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Category"},"mvc_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mvc Target"},"mvc_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mvc Status"},"billing_anchor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Anchor"},"billing_cycle_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billing Cycle Day"},"next_invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Invoice Date"},"ae_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ae Id"},"brief_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Notes"},"discount_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Code"},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"brief_document_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Document Url"},"creator_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Contract Url"},"brand_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Contract Url"},"documenso_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documenso Id"},"pandadoc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pandadoc Id"},"pause_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Pause Date"},"resume_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Resume Date"},"termination_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Type"},"kill_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Fee"},"float_risk":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Float Risk"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"ae_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ae Name"},"total_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Value"}},"type":"object","required":["id","creator_id","brand_id","created_at","updated_at"],"title":"DealResponse","description":"Flat deal row returned from list endpoints."},"DealSummary":{"properties":{"id":{"type":"string","title":"Id"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"total_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Amount"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"DealSummary","description":"Abbreviated deal info shown on the creator detail view."},"DealUpdate":{"properties":{"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"deal_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Model"},"student_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student User Id"},"student_commission_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Student Commission Pct"},"ovo_backend_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Ovo Backend Pct"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Total Amount"},"monthly_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Monthly Amount"},"total_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Months"},"split_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Split Pct"},"ovo_margin_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Ovo Margin Pct"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"},"is_exclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Exclusive"},"exclusivity_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exclusivity Days"},"usage_rights":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Rights"},"product_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Category"},"mvc_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mvc Target"},"mvc_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mvc Status"},"billing_anchor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Anchor"},"billing_cycle_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billing Cycle Day"},"next_invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Invoice Date"},"ae_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ae Id"},"brief_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Notes"},"discount_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Code"},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"brief_document_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Document Url"},"creator_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Contract Url"},"brand_contract_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Contract Url"},"documenso_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documenso Id"},"pandadoc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pandadoc Id"},"pause_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Pause Date"},"resume_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Resume Date"},"termination_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Type"},"kill_fee":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Kill Fee"},"float_risk":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Float Risk"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"DealUpdate","description":"Every field optional so PATCH can send any subset."},"DeliverableCalendarResponse":{"properties":{"days":{"items":{"$ref":"#/components/schemas/CalendarDay"},"type":"array","title":"Days"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["days","total"],"title":"DeliverableCalendarResponse"},"DeliverableCreate":{"properties":{"deal_id":{"type":"string","format":"uuid","title":"Deal Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"deliverable_type":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Deliverable Type"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"draft_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Draft Due Date"},"post_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Post Due Date"},"posted_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Posted Date"},"approval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Approval Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","default":"pending"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"content_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Brief"},"must_include":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Must Include"},"post_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Link"},"draft_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Link"},"revision_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision Count","default":0},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"},"boosted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Boosted","default":false},"boost_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Boost Job Id"},"mvc_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mvc Target"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["deal_id"],"title":"DeliverableCreate","description":"All DeliverableBase fields; deal_id is required."},"DeliverableListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeliverableResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["items","total","page","page_size"],"title":"DeliverableListResponse"},"DeliverableResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"deliverable_type":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Deliverable Type"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"draft_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Draft Due Date"},"post_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Post Due Date"},"posted_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Posted Date"},"approval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Approval Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"content_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Brief"},"must_include":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Must Include"},"post_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Link"},"draft_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Link"},"revision_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision Count"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"},"boosted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Boosted"},"boost_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Boost Job Id"},"mvc_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mvc Target"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deal_brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Brand Name"},"deal_creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Creator Name"}},"type":"object","required":["id","created_at","updated_at"],"title":"DeliverableResponse","description":"Full deliverable row."},"DeliverableReviewRequest":{"properties":{"approval_status":{"type":"string","title":"Approval Status"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"}},"type":"object","required":["approval_status"],"title":"DeliverableReviewRequest"},"DeliverableSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"deliverable_type":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Deliverable Type"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"draft_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Draft Due Date"},"post_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Post Due Date"},"posted_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Posted Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"revision_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision Count"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"}},"type":"object","required":["id"],"title":"DeliverableSummary"},"DeliverableUpdate":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"deliverable_type":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Deliverable Type"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"draft_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Draft Due Date"},"post_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Post Due Date"},"posted_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Posted Date"},"approval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Approval Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"content_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Brief"},"must_include":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Must Include"},"post_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Link"},"draft_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Link"},"revision_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision Count"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"},"boosted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Boosted"},"boost_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Boost Job Id"},"mvc_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mvc Target"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"DeliverableUpdate","description":"Every field optional for PATCH."},"EmailSyncPayload":{"properties":{"message_id":{"type":"string","title":"Message Id"},"sender_email":{"type":"string","title":"Sender Email"},"closer_email":{"type":"string","title":"Closer Email"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Snippet"},"classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"},"booking_system_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking System Id"}},"type":"object","required":["message_id","sender_email","closer_email"],"title":"EmailSyncPayload"},"FitiaDealCreate":{"properties":{"creator":{"type":"string","title":"Creator"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"deal_type":{"anyOf":[{"type":"string","enum":["Flat Fee","CPM Pass-through","Hybrid","terminated"]},{"type":"null"}],"title":"Deal Type"},"creator_flat_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Creator Flat Fee"},"deliverables":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverables"},"stage":{"anyOf":[{"type":"string","enum":["In progress","Active","Active month 2","Active month 3","To invoice","Done","NOT ACTIVE"]},{"type":"null"}],"title":"Stage"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"fitia_owes_us":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fitia Owes Us"},"we_paid_creator":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"We Paid Creator"},"ovo_margin":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ovo Margin"},"margin_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Pct"},"creator_invoice_status":{"anyOf":[{"type":"string","enum":["Not Invoiced","Invoice Sent","Paid"]},{"type":"null"}],"title":"Creator Invoice Status"},"fitia_invoice_status":{"anyOf":[{"type":"string","enum":["Not Invoiced","Invoice Sent","Paid","Partial"]},{"type":"null"}],"title":"Fitia Invoice Status"},"invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Invoice Date"},"payment_received":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Payment Received"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"deliverable_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Status"}},"type":"object","required":["creator"],"title":"FitiaDealCreate","description":"POST body for creating a Fitia deal."},"FitiaDealResponse":{"properties":{"creator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"deal_type":{"anyOf":[{"type":"string","enum":["Flat Fee","CPM Pass-through","Hybrid","terminated"]},{"type":"null"}],"title":"Deal Type"},"creator_flat_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Creator Flat Fee"},"deliverables":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverables"},"stage":{"anyOf":[{"type":"string","enum":["In progress","Active","Active month 2","Active month 3","To invoice","Done","NOT ACTIVE"]},{"type":"null"}],"title":"Stage"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"fitia_owes_us":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fitia Owes Us"},"we_paid_creator":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"We Paid Creator"},"ovo_margin":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ovo Margin"},"margin_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Pct"},"creator_invoice_status":{"anyOf":[{"type":"string","enum":["Not Invoiced","Invoice Sent","Paid"]},{"type":"null"}],"title":"Creator Invoice Status"},"fitia_invoice_status":{"anyOf":[{"type":"string","enum":["Not Invoiced","Invoice Sent","Paid","Partial"]},{"type":"null"}],"title":"Fitia Invoice Status"},"invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Invoice Date"},"payment_received":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Payment Received"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"deliverable_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Status"},"id":{"type":"string","format":"uuid","title":"Id"},"airtable_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Airtable Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","created_at","updated_at"],"title":"FitiaDealResponse","description":"Full Fitia deal record returned from the database."},"FitiaDealUpdate":{"properties":{"creator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"deal_type":{"anyOf":[{"type":"string","enum":["Flat Fee","CPM Pass-through","Hybrid","terminated"]},{"type":"null"}],"title":"Deal Type"},"creator_flat_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Creator Flat Fee"},"deliverables":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverables"},"stage":{"anyOf":[{"type":"string","enum":["In progress","Active","Active month 2","Active month 3","To invoice","Done","NOT ACTIVE"]},{"type":"null"}],"title":"Stage"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"fitia_owes_us":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fitia Owes Us"},"we_paid_creator":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"We Paid Creator"},"ovo_margin":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ovo Margin"},"margin_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Pct"},"creator_invoice_status":{"anyOf":[{"type":"string","enum":["Not Invoiced","Invoice Sent","Paid"]},{"type":"null"}],"title":"Creator Invoice Status"},"fitia_invoice_status":{"anyOf":[{"type":"string","enum":["Not Invoiced","Invoice Sent","Paid","Partial"]},{"type":"null"}],"title":"Fitia Invoice Status"},"invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Invoice Date"},"payment_received":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Payment Received"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"deliverable_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Status"}},"type":"object","title":"FitiaDealUpdate","description":"PATCH body -- every field is optional."},"FlagUpdate":{"properties":{"value":{"type":"string","title":"Value"}},"type":"object","required":["value"],"title":"FlagUpdate"},"GoogleLoginRequest":{"properties":{"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleLoginRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HaltRequest":{"properties":{"reason":{"type":"string","maxLength":200,"minLength":4,"title":"Reason"}},"type":"object","required":["reason"],"title":"HaltRequest"},"HealthBreakdown":{"properties":{"days_since_last_deal":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Last Deal"},"active_deals_count":{"type":"integer","title":"Active Deals Count","default":0},"revenue_last_30d":{"type":"string","title":"Revenue Last 30D","default":"0"},"revenue_prev_30d":{"type":"string","title":"Revenue Prev 30D","default":"0"},"revenue_trend_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue Trend Pct"},"comms_last_30d":{"type":"integer","title":"Comms Last 30D","default":0},"deliverables_on_time_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deliverables On Time Rate"},"overdue_deliverables":{"type":"integer","title":"Overdue Deliverables","default":0},"days_since_last_post":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Last Post"},"score_recency":{"type":"number","title":"Score Recency","default":0.0},"score_active_deals":{"type":"number","title":"Score Active Deals","default":0.0},"score_revenue_trend":{"type":"number","title":"Score Revenue Trend","default":0.0},"score_comms":{"type":"number","title":"Score Comms","default":0.0},"score_on_time":{"type":"number","title":"Score On Time","default":0.0},"score_posting":{"type":"number","title":"Score Posting","default":0.0},"score_overdue_penalty":{"type":"number","title":"Score Overdue Penalty","default":0.0}},"type":"object","title":"HealthBreakdown","description":"Per-factor contribution to a creator's health score."},"HealthStatus":{"type":"string","enum":["thriving","healthy","at_risk","churning"],"title":"HealthStatus"},"LeadStagePayload":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"qualification_score":{"anyOf":[{"type":"integer","maximum":6.0,"minimum":0.0},{"type":"null"}],"title":"Qualification Score"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"},"niche":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Niche"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["contact_id"],"title":"LeadStagePayload"},"LeadUpsertPayload":{"properties":{"ig_user_id":{"type":"string","minLength":1,"title":"Ig User Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"comment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment Id"},"vertical":{"type":"string","enum":["roster-method","samantha-coaching"],"title":"Vertical","default":"roster-method"}},"type":"object","required":["ig_user_id"],"title":"LeadUpsertPayload"},"MatchCandidate":{"properties":{"payment_id":{"type":"string","title":"Payment Id"},"description":{"type":"string","title":"Description"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"match_type":{"type":"string","title":"Match Type"},"match_name":{"type":"string","title":"Match Name"},"matched_entity_id":{"type":"string","title":"Matched Entity Id"},"matched_entity_name":{"type":"string","title":"Matched Entity Name"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["payment_id","description","match_type","match_name","matched_entity_id","matched_entity_name","confidence"],"title":"MatchCandidate"},"MatchRequest":{"properties":{"transactions":{"items":{"$ref":"#/components/schemas/BankTransaction"},"type":"array","title":"Transactions"}},"type":"object","required":["transactions"],"title":"MatchRequest","description":"POST body for auto-matching bank transactions."},"MatchResult":{"properties":{"txn_key":{"type":"string","title":"Txn Key"},"matched":{"type":"boolean","title":"Matched"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"confidence":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Confidence"},"pattern_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern Used"}},"type":"object","required":["txn_key","matched"],"title":"MatchResult","description":"Result of matching a single bank transaction."},"NotesUpdate":{"properties":{"notes":{"type":"string","maxLength":50000,"title":"Notes"}},"type":"object","required":["notes"],"title":"NotesUpdate"},"NotificationRequest":{"properties":{"type":{"type":"string","title":"Type"},"data":{"type":"object","title":"Data"}},"type":"object","required":["type","data"],"title":"NotificationRequest","description":"Generic notification dispatch.\n\ntype: one of \"new_response\", \"deal_update\", \"overdue\", \"payment\", \"contract_signed\"\ndata: dict of keyword arguments for the corresponding notify_* function."},"OutcomeUpdate":{"properties":{"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["outcome"],"title":"OutcomeUpdate"},"PaginatedResponse_BrandResponse_":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"data":{"items":{"$ref":"#/components/schemas/BrandResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["data","total","page","page_size"],"title":"PaginatedResponse[BrandResponse]"},"PaginatedResponse_CreatorIntelResponse_":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"data":{"items":{"$ref":"#/components/schemas/CreatorIntelResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["data","total","page","page_size"],"title":"PaginatedResponse[CreatorIntelResponse]"},"PaginatedResponse_FitiaDealResponse_":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"data":{"items":{"$ref":"#/components/schemas/FitiaDealResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["data","total","page","page_size"],"title":"PaginatedResponse[FitiaDealResponse]"},"PaginatedResponse_PaymentResponse_":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"data":{"items":{"$ref":"#/components/schemas/PaymentResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["data","total","page","page_size"],"title":"PaginatedResponse[PaymentResponse]"},"PaginatedResponse_PaymentScheduleWithContext_":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"data":{"items":{"$ref":"#/components/schemas/PaymentScheduleWithContext"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["data","total","page","page_size"],"title":"PaginatedResponse[PaymentScheduleWithContext]"},"PaginatedResponse_TeamMember_":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"data":{"items":{"$ref":"#/components/schemas/TeamMember"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["data","total","page","page_size"],"title":"PaginatedResponse[TeamMember]"},"PartnerInfo":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["id","name","role"],"title":"PartnerInfo"},"PayQueueResponse":{"properties":{"ready":{"items":{"$ref":"#/components/schemas/QueuedPayout"},"type":"array","title":"Ready"},"paid_today":{"items":{"$ref":"#/components/schemas/QueuedPayout"},"type":"array","title":"Paid Today"},"paid_recent":{"items":{"$ref":"#/components/schemas/QueuedPayout"},"type":"array","title":"Paid Recent"},"total_ready_amount":{"type":"number","title":"Total Ready Amount"},"total_ready_count":{"type":"integer","title":"Total Ready Count"}},"type":"object","required":["ready","paid_today","paid_recent","total_ready_amount","total_ready_count"],"title":"PayQueueResponse"},"PaymentCreate":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"brand_txn_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Txn Key"},"brand_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Brand Amount"},"brand_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Brand Paid Date"},"brand_bank_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Bank Account"},"expected_brand_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Expected Brand Amount"},"brand_discrepancy":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Brand Discrepancy"},"creator_txn_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Txn Key"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"creator_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Creator Amount"},"creator_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creator Paid Date"},"expected_creator_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Expected Creator Amount"},"status":{"type":"string","title":"Status","default":"pending"},"margin_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Margin Pct"},"profit":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Profit"},"paty_commission":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Paty Commission"},"jaci_commission":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Jaci Commission"},"audit_issues":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audit Issues"},"last_audit":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Audit"},"is_duplicate":{"type":"boolean","title":"Is Duplicate","default":false},"is_parent":{"type":"boolean","title":"Is Parent","default":false},"parent_payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Payment Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PaymentCreate","description":"POST body for creating a payment."},"PaymentResponse":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"brand_txn_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Txn Key"},"brand_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Amount"},"brand_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Brand Paid Date"},"brand_bank_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Bank Account"},"expected_brand_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Brand Amount"},"brand_discrepancy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Discrepancy"},"creator_txn_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Txn Key"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"creator_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Amount"},"creator_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creator Paid Date"},"expected_creator_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Creator Amount"},"status":{"type":"string","title":"Status","default":"pending"},"margin_pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Margin Pct"},"profit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profit"},"paty_commission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paty Commission"},"jaci_commission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jaci Commission"},"audit_issues":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audit Issues"},"last_audit":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Audit"},"is_duplicate":{"type":"boolean","title":"Is Duplicate","default":false},"is_parent":{"type":"boolean","title":"Is Parent","default":false},"parent_payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Payment Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deal_creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Creator Name"},"deal_brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Brand Name"}},"type":"object","required":["id","created_at","updated_at"],"title":"PaymentResponse","description":"Full payment record returned from the database."},"PaymentScheduleCreate":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"expected_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Expected Amount"},"expected_date":{"type":"string","format":"date","title":"Expected Date"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"status":{"type":"string","title":"Status","default":"upcoming"},"paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Paid Date"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["expected_date"],"title":"PaymentScheduleCreate","description":"POST body for creating a payment schedule entry."},"PaymentScheduleResponse":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"expected_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Amount"},"expected_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Date"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"status":{"type":"string","title":"Status","default":"upcoming"},"paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Paid Date"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","created_at","updated_at"],"title":"PaymentScheduleResponse","description":"Full payment schedule record returned from the database."},"PaymentScheduleUpdate":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"expected_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Expected Amount"},"expected_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Date"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Paid Date"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PaymentScheduleUpdate","description":"PATCH body -- every field is optional."},"PaymentScheduleWithContext":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"expected_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Amount"},"expected_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Date"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"status":{"type":"string","title":"Status","default":"upcoming"},"paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Paid Date"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"}},"type":"object","required":["id","created_at","updated_at"],"title":"PaymentScheduleWithContext","description":"Payment schedule entry with joined creator/brand names."},"PaymentSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"brand_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Amount"},"brand_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Brand Paid Date"},"creator_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Amount"},"creator_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creator Paid Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"profit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profit"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id"],"title":"PaymentSummary"},"PaymentSummaryItem":{"properties":{"total_paid":{"type":"string","title":"Total Paid","default":"0"},"total_pending":{"type":"string","title":"Total Pending","default":"0"},"last_payment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Payment Date"},"payment_count":{"type":"integer","title":"Payment Count","default":0}},"type":"object","title":"PaymentSummaryItem","description":"Single payment row in the payment summary."},"PaymentType":{"type":"string","enum":["bank_account","paypal","wise","revolut","other"],"title":"PaymentType"},"PaymentUpdate":{"properties":{"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"brand_txn_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Txn Key"},"brand_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Brand Amount"},"brand_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Brand Paid Date"},"brand_bank_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Bank Account"},"expected_brand_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Expected Brand Amount"},"brand_discrepancy":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Brand Discrepancy"},"creator_txn_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Txn Key"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"creator_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Creator Amount"},"creator_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creator Paid Date"},"expected_creator_amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Expected Creator Amount"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"margin_pct":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Margin Pct"},"profit":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Profit"},"paty_commission":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Paty Commission"},"jaci_commission":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Jaci Commission"},"audit_issues":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audit Issues"},"last_audit":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Audit"},"is_duplicate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Duplicate"},"is_parent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Parent"},"parent_payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Payment Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PaymentUpdate","description":"PATCH body -- every field is optional."},"PipelineDmStatusCount":{"properties":{"dm_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Status"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["dm_status","count"],"title":"PipelineDmStatusCount"},"PipelineStatsResponse":{"properties":{"total":{"type":"integer","title":"Total"},"by_status":{"items":{"$ref":"#/components/schemas/PipelineStatusCount"},"type":"array","title":"By Status"},"by_dm_status":{"items":{"$ref":"#/components/schemas/PipelineDmStatusCount"},"type":"array","title":"By Dm Status"}},"type":"object","required":["total","by_status","by_dm_status"],"title":"PipelineStatsResponse"},"PipelineStatusCount":{"properties":{"status":{"type":"string","title":"Status"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status","count"],"title":"PipelineStatusCount"},"PortalCampaignDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"creator":{"anyOf":[{"$ref":"#/components/schemas/PortalCreatorSummary"},{"type":"null"}]},"deliverables":{"items":{"$ref":"#/components/schemas/PortalDeliverable"},"type":"array","title":"Deliverables","default":[]}},"type":"object","required":["id"],"title":"PortalCampaignDetail"},"PortalCampaignSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"creator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Name"},"creator_ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Ig Handle"},"creator_profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Profile Photo"}},"type":"object","required":["id"],"title":"PortalCampaignSummary"},"PortalContract":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"document_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"signed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signed At"},"signed_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Pdf Url"},"contract_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Contract Value"}},"type":"object","required":["id"],"title":"PortalContract"},"PortalContractItem":{"properties":{"id":{"type":"string","title":"Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"document_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"signed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signed At"},"signed_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Pdf Url"},"contract_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Value"}},"type":"object","required":["id"],"title":"PortalContractItem","description":"Contract visible to a creator."},"PortalCreatorAnalytics":{"properties":{"total_earned_ytd":{"type":"string","title":"Total Earned Ytd","default":"0"},"active_deals":{"type":"integer","title":"Active Deals","default":0},"avg_engagement_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avg Engagement Ig"},"avg_engagement_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avg Engagement Tt"},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"tt_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tt Followers"}},"type":"object","title":"PortalCreatorAnalytics","description":"Aggregated stats for the creator dashboard."},"PortalCreatorProfile":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo"},"personal_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"creator_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Tier"},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"avg_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Ig"},"engagement_rate_ig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Rate Ig"},"l30_reels":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Reels"},"ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Bio"},"tt_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tt Followers"},"avg_views_tt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Tt"},"engagement_rate_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Rate Tt"},"l30_tt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L30 Tt"},"ig_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Rate"},"tiktok_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Rate"},"cpm_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpm Rate"},"birthday":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthday"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"calendly_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendly Link"}},"type":"object","required":["id","name"],"title":"PortalCreatorProfile","description":"Creator's own profile / media-kit view."},"PortalCreatorProfileUpdate":{"properties":{"ig_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Bio"},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Phone"},"profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo"},"calendly_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendly Link"}},"type":"object","title":"PortalCreatorProfileUpdate","description":"Fields a creator is allowed to update on their own profile."},"PortalCreatorSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"profile_photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo"},"ig_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Handle"},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"avg_views_ig":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Views Ig"},"engagement_rate_ig":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Rate Ig"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"tt_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tt Followers"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id"],"title":"PortalCreatorSummary","description":"Public creator info visible to brands — no rates or internal notes."},"PortalDealDetail":{"properties":{"id":{"type":"string","title":"Id"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Amount"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"brand_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Logo Url"},"deliverables":{"items":{"$ref":"#/components/schemas/PortalDeliverableItem"},"type":"array","title":"Deliverables","default":[]}},"type":"object","required":["id"],"title":"PortalDealDetail","description":"Full deal detail with deliverables for a creator."},"PortalDealListItem":{"properties":{"id":{"type":"string","title":"Id"},"deal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Type"},"total_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Amount"},"campaign_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms"},"contract_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Start"},"contract_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract End"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"brand_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Logo Url"}},"type":"object","required":["id"],"title":"PortalDealListItem","description":"Deal as shown in the creator's deal list."},"PortalDeliverable":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_id":{"type":"string","format":"uuid","title":"Deal Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"deliverable_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Type"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"draft_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Draft Due Date"},"post_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Post Due Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"draft_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Link"},"post_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Link"},"content_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Brief"}},"type":"object","required":["id","deal_id"],"title":"PortalDeliverable"},"PortalDeliverableDraftUpdate":{"properties":{"draft_link":{"type":"string","title":"Draft Link"}},"type":"object","required":["draft_link"],"title":"PortalDeliverableDraftUpdate","description":"Creator can only upload a draft link."},"PortalDeliverableItem":{"properties":{"id":{"type":"string","title":"Id"},"deal_id":{"type":"string","title":"Deal Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"deliverable_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Type"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"draft_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Draft Due Date"},"post_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Post Due Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"draft_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Link"},"post_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Link"},"revision_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision Count"},"max_revisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Revisions"},"content_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Brief"},"must_include":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Must Include"}},"type":"object","required":["id","deal_id"],"title":"PortalDeliverableItem","description":"Single deliverable visible to a creator."},"PortalGoogleLogin":{"properties":{"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"PortalGoogleLogin"},"PortalPayment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_id":{"type":"string","format":"uuid","title":"Deal Id"},"brand_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Brand Amount"},"brand_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Brand Paid Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id","deal_id"],"title":"PortalPayment"},"PortalPaymentItem":{"properties":{"id":{"type":"string","title":"Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"creator_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Amount"},"creator_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creator Paid Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id"],"title":"PortalPaymentItem","description":"Payment row visible to a creator (creator-side amounts only)."},"PortalPerformance":{"properties":{"total_campaigns":{"type":"integer","title":"Total Campaigns","default":0},"active_campaigns":{"type":"integer","title":"Active Campaigns","default":0},"total_spend":{"type":"number","title":"Total Spend","default":0.0},"total_creators":{"type":"integer","title":"Total Creators","default":0},"deliverables_completed":{"type":"integer","title":"Deliverables Completed","default":0},"deliverables_pending_review":{"type":"integer","title":"Deliverables Pending Review","default":0},"avg_turnaround_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Turnaround Days"}},"type":"object","title":"PortalPerformance"},"ProspectBulkImport":{"properties":{"prospects":{"items":{"$ref":"#/components/schemas/ProspectBulkImportItem"},"type":"array","maxItems":500,"minItems":1,"title":"Prospects"}},"type":"object","required":["prospects"],"title":"ProspectBulkImport","description":"Wrapper for bulk import requests."},"ProspectBulkImportItem":{"properties":{"ig_handle":{"type":"string","maxLength":255,"minLength":1,"title":"Ig Handle"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_source":{"anyOf":[{"type":"string","pattern":"^(bio|snov|manual|ig_api)$"},{"type":"null"}],"title":"Email Source"},"email_status":{"anyOf":[{"type":"string","pattern":"^(valid|catchall|invalid|unknown)$"},{"type":"null"}],"title":"Email Status"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Url"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"followers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Followers"},"avg_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Avg Views"},"top_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Top Views"},"engagement_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Engagement Rate"},"view_ratio":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"View Ratio"},"ai_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ai Score"},"ai_score_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Ai Score Json"},"tier":{"anyOf":[{"type":"string","pattern":"^(A|B|C)$"},{"type":"null"}],"title":"Tier"},"qualification_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualification Notes"},"status":{"anyOf":[{"type":"string","pattern":"^(new|contacted|responded|interested|call_booked|signed|not_interested|bounced|nurturing)$"},{"type":"null"}],"title":"Status","default":"new"},"dm_status":{"anyOf":[{"type":"string","pattern":"^(ready|sent|replied|no_response|not_interested|interested)$"},{"type":"null"}],"title":"Dm Status"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Detail"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"},"assigned_sdr_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Sdr Id"},"outbound_ig_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Ig Account"},"scraped_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scraped By Id"},"is_competitor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Competitor","default":false},"pushed_to_instantly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pushed To Instantly","default":false},"dm_variant_a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant A"},"dm_variant_b":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant B"},"scraped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scraped At"},"contacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contacted At"},"replied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replied At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"flat_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flat Rate"}},"type":"object","required":["ig_handle"],"title":"ProspectBulkImportItem","description":"A single prospect inside a bulk import payload."},"ProspectBulkImportResult":{"properties":{"inserted":{"type":"integer","title":"Inserted"},"updated":{"type":"integer","title":"Updated"},"errors":{"items":{"type":"object"},"type":"array","title":"Errors"}},"type":"object","required":["inserted","updated"],"title":"ProspectBulkImportResult","description":"Result summary returned after a bulk import."},"ProspectCreate":{"properties":{"ig_handle":{"type":"string","maxLength":255,"minLength":1,"title":"Ig Handle"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_source":{"anyOf":[{"type":"string","pattern":"^(bio|snov|manual|ig_api)$"},{"type":"null"}],"title":"Email Source"},"email_status":{"anyOf":[{"type":"string","pattern":"^(valid|catchall|invalid|unknown)$"},{"type":"null"}],"title":"Email Status"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Url"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"followers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Followers"},"avg_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Avg Views"},"top_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Top Views"},"engagement_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Engagement Rate"},"view_ratio":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"View Ratio"},"ai_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ai Score"},"ai_score_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Ai Score Json"},"tier":{"anyOf":[{"type":"string","pattern":"^(A|B|C)$"},{"type":"null"}],"title":"Tier"},"qualification_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualification Notes"},"status":{"anyOf":[{"type":"string","pattern":"^(new|contacted|responded|interested|call_booked|signed|not_interested|bounced|nurturing)$"},{"type":"null"}],"title":"Status","default":"new"},"dm_status":{"anyOf":[{"type":"string","pattern":"^(ready|sent|replied|no_response|not_interested|interested)$"},{"type":"null"}],"title":"Dm Status"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Detail"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"},"assigned_sdr_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Sdr Id"},"outbound_ig_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Ig Account"},"scraped_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scraped By Id"},"is_competitor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Competitor","default":false},"pushed_to_instantly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pushed To Instantly","default":false},"dm_variant_a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant A"},"dm_variant_b":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant B"},"scraped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scraped At"},"contacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contacted At"},"replied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replied At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"flat_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flat Rate"}},"type":"object","required":["ig_handle"],"title":"ProspectCreate","description":"Schema for creating a new prospect. ig_handle is required."},"ProspectListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProspectResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["data","total","limit","offset"],"title":"ProspectListResponse"},"ProspectResponse":{"properties":{"ig_handle":{"type":"string","maxLength":255,"minLength":1,"title":"Ig Handle"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_source":{"anyOf":[{"type":"string","pattern":"^(bio|snov|manual|ig_api)$"},{"type":"null"}],"title":"Email Source"},"email_status":{"anyOf":[{"type":"string","pattern":"^(valid|catchall|invalid|unknown)$"},{"type":"null"}],"title":"Email Status"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Url"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"followers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Followers"},"avg_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Avg Views"},"top_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Top Views"},"engagement_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Engagement Rate"},"view_ratio":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"View Ratio"},"ai_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ai Score"},"ai_score_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Ai Score Json"},"tier":{"anyOf":[{"type":"string","pattern":"^(A|B|C)$"},{"type":"null"}],"title":"Tier"},"qualification_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualification Notes"},"status":{"anyOf":[{"type":"string","pattern":"^(new|contacted|responded|interested|call_booked|signed|not_interested|bounced|nurturing)$"},{"type":"null"}],"title":"Status","default":"new"},"dm_status":{"anyOf":[{"type":"string","pattern":"^(ready|sent|replied|no_response|not_interested|interested)$"},{"type":"null"}],"title":"Dm Status"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Detail"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"},"assigned_sdr_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Sdr Id"},"outbound_ig_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Ig Account"},"scraped_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scraped By Id"},"is_competitor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Competitor","default":false},"pushed_to_instantly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pushed To Instantly","default":false},"dm_variant_a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant A"},"dm_variant_b":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant B"},"scraped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scraped At"},"contacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contacted At"},"replied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replied At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"flat_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flat Rate"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["ig_handle","id","created_at","updated_at"],"title":"ProspectResponse","description":"Full prospect as returned from the API (includes id + timestamps)."},"ProspectUpdate":{"properties":{"ig_handle":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Ig Handle"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_source":{"anyOf":[{"type":"string","pattern":"^(bio|snov|manual|ig_api)$"},{"type":"null"}],"title":"Email Source"},"email_status":{"anyOf":[{"type":"string","pattern":"^(valid|catchall|invalid|unknown)$"},{"type":"null"}],"title":"Email Status"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Url"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"tiktok_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Handle"},"followers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Followers"},"avg_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Avg Views"},"top_views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Top Views"},"engagement_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Engagement Rate"},"view_ratio":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"View Ratio"},"ai_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ai Score"},"ai_score_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Ai Score Json"},"tier":{"anyOf":[{"type":"string","pattern":"^(A|B|C)$"},{"type":"null"}],"title":"Tier"},"qualification_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualification Notes"},"status":{"anyOf":[{"type":"string","pattern":"^(new|contacted|responded|interested|call_booked|signed|not_interested|bounced|nurturing)$"},{"type":"null"}],"title":"Status"},"dm_status":{"anyOf":[{"type":"string","pattern":"^(ready|sent|replied|no_response|not_interested|interested)$"},{"type":"null"}],"title":"Dm Status"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Detail"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"},"assigned_sdr_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Sdr Id"},"outbound_ig_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Ig Account"},"scraped_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scraped By Id"},"is_competitor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Competitor"},"pushed_to_instantly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pushed To Instantly"},"dm_variant_a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant A"},"dm_variant_b":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Variant B"},"scraped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scraped At"},"contacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contacted At"},"replied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replied At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"flat_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flat Rate"}},"additionalProperties":false,"type":"object","title":"ProspectUpdate","description":"Schema for partial updates. Every field is optional."},"QueuedPayout":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"creator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Creator Id"},"creator_name":{"type":"string","title":"Creator Name"},"creator_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Handle"},"amount":{"type":"number","title":"Amount"},"description":{"type":"string","title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"payment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Type"},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"},"bank_verified":{"type":"boolean","title":"Bank Verified"},"brand_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Brand Paid Date"},"creator_paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creator Paid Date"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","creator_id","creator_name","creator_handle","amount","description","notes","payment_type","banking_details","bank_verified","brand_paid_date","creator_paid_date","status"],"title":"QueuedPayout"},"QuickAddRequest":{"properties":{"creator_name":{"type":"string","title":"Creator Name"},"creator_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Handle"},"amount":{"type":"number","title":"Amount"},"description":{"type":"string","title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"payment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Type"},"banking_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banking Details"}},"type":"object","required":["creator_name","amount","description"],"title":"QuickAddRequest"},"ReconcileReport":{"properties":{"unlinked_brand_payments":{"type":"integer","title":"Unlinked Brand Payments"},"unlinked_brand_total":{"type":"number","title":"Unlinked Brand Total"},"unlinked_creator_payouts":{"type":"integer","title":"Unlinked Creator Payouts"},"unlinked_creator_total":{"type":"number","title":"Unlinked Creator Total"},"auto_linked":{"type":"integer","title":"Auto Linked"},"auto_linked_amount":{"type":"number","title":"Auto Linked Amount"},"review_queue":{"items":{"$ref":"#/components/schemas/MatchCandidate"},"type":"array","title":"Review Queue"},"no_match":{"type":"integer","title":"No Match"}},"type":"object","required":["unlinked_brand_payments","unlinked_brand_total","unlinked_creator_payouts","unlinked_creator_total","auto_linked","auto_linked_amount","review_queue","no_match"],"title":"ReconcileReport"},"ReinstatePayload":{"properties":{"note":{"type":"string","title":"Note","description":"Why the termination is being reversed"}},"type":"object","required":["note"],"title":"ReinstatePayload"},"RevokeRequest":{"properties":{"reason":{"type":"string","maxLength":200,"minLength":4,"title":"Reason"}},"type":"object","required":["reason"],"title":"RevokeRequest"},"SendDMRequest":{"properties":{"username":{"type":"string","title":"Username"},"text":{"type":"string","title":"Text"},"account":{"type":"string","title":"Account","default":"joinovo"}},"type":"object","required":["username","text"],"title":"SendDMRequest"},"SenderCreate":{"properties":{"brand_id":{"type":"string","format":"uuid","title":"Brand Id"},"sender_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Name"},"sender_iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Iban"},"sender_routing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Routing"},"sender_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Account"},"trust_level":{"type":"string","pattern":"^(trusted|review|blocked)$","title":"Trust Level","default":"review"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["brand_id"],"title":"SenderCreate"},"SortOrder":{"type":"string","enum":["asc","desc"],"title":"SortOrder"},"SplitLine":{"properties":{"creator_id":{"type":"string","format":"uuid","title":"Creator Id"},"amount":{"type":"number","title":"Amount"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["creator_id","amount"],"title":"SplitLine"},"SplitRequest":{"properties":{"splits":{"items":{"$ref":"#/components/schemas/SplitLine"},"type":"array","title":"Splits"}},"type":"object","required":["splits"],"title":"SplitRequest"},"StrikePayload":{"properties":{"reason":{"type":"string","title":"Reason","description":"One of: metrics_fraud, rails_bypass, creator_collusion, ftc_violation, non_delivery, aml_flag, audit_refusal, chargeback, metric_breach, fraud_confirmed, late_delivery"},"related_deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Related Deal Id"},"related_payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Related Payment Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["reason"],"title":"StrikePayload"},"SubmitRequest":{"properties":{"holder_name":{"type":"string","maxLength":120,"minLength":2,"title":"Holder Name"},"holder_address":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Holder Address"},"routing_number":{"type":"string","pattern":"^\\d{9}$","title":"Routing Number"},"account_number":{"type":"string","pattern":"^\\d{4,17}$","title":"Account Number"},"account_type":{"type":"string","pattern":"^(checking|savings|business)$","title":"Account Type","default":"checking"},"bank_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Bank Name"}},"type":"object","required":["holder_name","routing_number","account_number"],"title":"SubmitRequest"},"TeamMember":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role"},"is_active":{"type":"boolean","title":"Is Active","default":true},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"outbound_ig_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Ig Account"},"id":{"type":"string","format":"uuid","title":"Id"},"auth_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Auth User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","email","role","id","created_at"],"title":"TeamMember","description":"Full team member record returned from the database."},"TeamMemberCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role"},"is_active":{"type":"boolean","title":"Is Active","default":true},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"outbound_ig_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Ig Account"},"auth_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Auth User Id"}},"type":"object","required":["name","email","role"],"title":"TeamMemberCreate","description":"POST body for creating a team member."},"TeamMemberUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"outbound_ig_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Ig Account"},"auth_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Auth User Id"}},"type":"object","title":"TeamMemberUpdate","description":"PATCH body -- every field is optional."},"TestMessage":{"properties":{"text":{"type":"string","title":"Text","default":"OVO CRM Slack integration is live."}},"type":"object","title":"TestMessage"},"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"},"VerifyAmountsRequest":{"properties":{"amount_1_cents":{"type":"integer","maximum":99.0,"minimum":1.0,"title":"Amount 1 Cents"},"amount_2_cents":{"type":"integer","maximum":99.0,"minimum":1.0,"title":"Amount 2 Cents"}},"type":"object","required":["amount_1_cents","amount_2_cents"],"title":"VerifyAmountsRequest"}}}}