{"openapi":"3.1.0","info":{"title":"Chiptuning Fileservice API","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/api/v1/parts-searches":{"get":{"tags":["parts search"],"summary":"Recent Searches","description":"Recent requests visible only to staff in their owning organisation.","operationId":"recent_searches_api_v1_parts_searches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SearchSummary"},"type":"array","title":"Response Recent Searches Api V1 Parts Searches Get"}}}}}},"post":{"tags":["parts search"],"summary":"Create Search","description":"Queue a search, or reuse a fresh/in-flight one within this organisation.","operationId":"create_search_api_v1_parts_searches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts-searches/{search_id}":{"get":{"tags":["parts search"],"summary":"Get Search","description":"Poll state and read product facts without sourcing costs.","operationId":"get_search_api_v1_parts_searches__search_id__get","parameters":[{"name":"search_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Search Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts-searches/{search_id}/internal-costs":{"get":{"tags":["parts search"],"summary":"Internal Costs","description":"Staff-only delivery and fee observations; never part of the product DTO.","operationId":"internal_costs_api_v1_parts_searches__search_id__internal_costs_get","parameters":[{"name":"search_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Search Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalCostsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/kpis":{"get":{"tags":["admin"],"summary":"Admin Kpis","description":"Headline metrics for the admin dashboard.","operationId":"admin_kpis_api_v1_admin_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminKpis"}}}}}}},"/api/v1/admin/orders":{"get":{"tags":["admin"],"summary":"Admin Orders","description":"Platform-wide order oversight — every org's orders, newest first.","operationId":"admin_orders_api_v1_admin_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminOrderRow"},"title":"Response Admin Orders Api V1 Admin Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/reports/unlisted-vehicles":{"get":{"tags":["admin"],"summary":"Admin Unlisted Vehicles","description":"The cars dealers ordered for that we do not list, most-ordered first —\nwhat the catalogue team adds next.","operationId":"admin_unlisted_vehicles_api_v1_admin_reports_unlisted_vehicles_get","parameters":[{"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/UnlistedVehicleReportRow"},"title":"Response Admin Unlisted Vehicles Api V1 Admin Reports Unlisted Vehicles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces":{"get":{"tags":["admin"],"summary":"Admin Workspaces","description":"Every tuner workspace across the platform — the tuners admin oversight.","operationId":"admin_workspaces_api_v1_admin_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminWorkspaceRow"},"type":"array","title":"Response Admin Workspaces Api V1 Admin Workspaces Get"}}}}}}},"/api/v1/admin/dealers":{"get":{"tags":["admin"],"summary":"Admin Dealers","description":"Every dealer↔tuner membership across the platform — the dealer oversight\nroster. Optionally narrow to one tuner via ``tuner_workspace_id``.","operationId":"admin_dealers_api_v1_admin_dealers_get","parameters":[{"name":"tuner_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminDealerRow"},"title":"Response Admin Dealers Api V1 Admin Dealers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-health":{"get":{"tags":["admin"],"summary":"Admin Site Health","description":"Every monitored tuner site address, worst-first — the last verdict from\nthe ``sites.watch_microsites`` / ``sites.deep_watch_microsites`` sweeps.","operationId":"admin_site_health_api_v1_admin_site_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SiteHealthEntry"},"type":"array","title":"Response Admin Site Health Api V1 Admin Site Health Get"}}}}}}},"/api/v1/admin/finance/summary":{"get":{"tags":["admin"],"summary":"Admin Finance Summary","description":"Platform recurring-revenue truth: net MRR over active subscriptions, ARPU,\nthe subscription funnel, and the per-plan mix. See ``PlatformFinance``.","operationId":"admin_finance_summary_api_v1_admin_finance_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformFinance"}}}}}}},"/api/v1/admin/queue":{"get":{"tags":["admin"],"summary":"Admin Queue","description":"Cross-org work queue (claimable + in-flight) — the 'Claim work' board.","operationId":"admin_queue_api_v1_admin_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminQueueItem"},"type":"array","title":"Response Admin Queue Api V1 Admin Queue Get"}}}}}}},"/api/v1/admin/queue/mine":{"get":{"tags":["admin"],"summary":"Admin Queue Mine","description":"The acting user's work queue, newest first.\n\nA tuner gets their whole book (every order across their workspaces, including\ndelegated-out ones); an admin gets orders assigned to them. ``range_days``\nscopes to orders created within the window (omitted/null = all time).\n``archived=true`` returns the workspace's archived rows instead of the live\nboard — the two sets are disjoint.","operationId":"admin_queue_mine_api_v1_admin_queue_mine_get","parameters":[{"name":"range_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Range Days"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminQueueItem"},"title":"Response Admin Queue Mine Api V1 Admin Queue Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/queue/outgoing":{"get":{"tags":["admin"],"summary":"Admin Queue Outgoing","description":"The tuner's outstanding orders placed OUT with partner tuners — partner\norders they bought plus their own delegated-out orders — the \"Outgoing\"\ndirection of the work queue. ``include_completed`` reveals terminal ones;\n``archived=true`` returns the archived ones instead.","operationId":"admin_queue_outgoing_api_v1_admin_queue_outgoing_get","parameters":[{"name":"include_completed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Completed"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminQueueItem"},"title":"Response Admin Queue Outgoing Api V1 Admin Queue Outgoing Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/queue/claimable":{"get":{"tags":["admin"],"summary":"Admin Queue Claimable","description":"The claim board: unclaimed pool orders + delegation offers to the tuner.\n\nThe pool lane is plan-gated, so it is resolved here (the entitlement subject\nis the caller's context workspace) and passed down; the delegated lane is\nunaffected and stays visible to every tuner.","operationId":"admin_queue_claimable_api_v1_admin_queue_claimable_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"enum":["all","pool","delegated"],"type":"string","default":"all","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminQueueItem"},"title":"Response Admin Queue Claimable Api V1 Admin Queue Claimable Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/queue/{order_id}/claim":{"post":{"tags":["admin"],"summary":"Admin Queue Claim","description":"Claim a shared-pool order for the acting admin/tuner.\n\nPlan-gated: taking work from the shared pool is a paid capability. Delegated\noffers are accepted through ``/delegations`` instead, under their own gate.\nA lost race is a 409 ``already_claimed``; re-claiming your own order is a\nno-op 204.","operationId":"admin_queue_claim_api_v1_admin_queue__order_id__claim_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/queue/{order_id}/accept-delegation":{"post":{"tags":["admin"],"summary":"Admin Queue Accept Delegation","description":"Accept the offer delegated to the acting tuner for this order.\n\nOrder-id-keyed twin of the delegation-id accept so the claim board stays\nuniform with the pool-claim action. Reuses ``DelegationCommands.accept`` so\nthe order routes to the tuner identically.","operationId":"admin_queue_accept_delegation_api_v1_admin_queue__order_id__accept_delegation_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/queue/{order_id}/decline-delegation":{"post":{"tags":["admin"],"summary":"Admin Queue Decline Delegation","description":"Decline the offer delegated to the acting tuner for this order.\n\nOrder-id-keyed twin of the delegation-id decline so the claim board can\ndecline an offer in place. Reuses ``DelegationCommands.decline`` so the order\nreturns to the owner and the fallback re-offer fires identically.","operationId":"admin_queue_decline_delegation_api_v1_admin_queue__order_id__decline_delegation_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/queue/{order_id}/archive":{"post":{"tags":["admin"],"summary":"Admin Queue Archive","description":"Clear an order off the acting tuner's board.\n\nPer-workspace and reversible: the dealer who placed the order, and any other\ntuner involved, still see it exactly as before.","operationId":"admin_queue_archive_api_v1_admin_queue__order_id__archive_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/queue/{order_id}/unarchive":{"post":{"tags":["admin"],"summary":"Admin Queue Unarchive","description":"Put an archived order back on the acting tuner's board.","operationId":"admin_queue_unarchive_api_v1_admin_queue__order_id__unarchive_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/escalations":{"get":{"tags":["admin"],"summary":"Admin Escalations","description":"Orders in a problem state needing attention.","operationId":"admin_escalations_api_v1_admin_escalations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EscalationRow"},"type":"array","title":"Response Admin Escalations Api V1 Admin Escalations Get"}}}}}}},"/api/v1/admin/escalations/{order_id}/reassign":{"post":{"tags":["admin"],"summary":"Admin Escalation Reassign","description":"Drop the tuner and re-queue the order.","operationId":"admin_escalation_reassign_api_v1_admin_escalations__order_id__reassign_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/escalations/{order_id}/retry":{"post":{"tags":["admin"],"summary":"Admin Escalation Retry","description":"Re-queue a failed/escalated order.","operationId":"admin_escalation_retry_api_v1_admin_escalations__order_id__retry_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/escalations/{order_id}/refund":{"post":{"tags":["admin"],"summary":"Admin Escalation Refund","description":"Refund the dealer and close the order.\n\nCredits are returned inline; direct (Stripe) money is refunded by the\nfile_service.refunded event handler — same path as /file-services/{id}/refund.","operationId":"admin_escalation_refund_api_v1_admin_escalations__order_id__refund_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tickets":{"get":{"tags":["admin"],"summary":"Admin Tickets","description":"Cross-org support tickets for the admin board.","operationId":"admin_tickets_api_v1_admin_tickets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/services__ticket__schemas__TicketRead"},"type":"array","title":"Response Admin Tickets Api V1 Admin Tickets Get"}}}}}}},"/api/v1/admin/tickets/{ticket_id}":{"get":{"tags":["admin"],"summary":"Admin Ticket Detail","description":"Full ticket for the admin resolution view (thread + dealer + order).","operationId":"admin_ticket_detail_api_v1_admin_tickets__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Admin Update Ticket","description":"Change a ticket's status from the admin board.","operationId":"admin_update_ticket_api_v1_admin_tickets__ticket_id__patch","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__ticket__schemas__StatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__ticket__schemas__TicketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tickets/{ticket_id}/assign":{"post":{"tags":["admin"],"summary":"Admin Assign Ticket","description":"Assign a ticket to the acting admin/tuner.","operationId":"admin_assign_ticket_api_v1_admin_tickets__ticket_id__assign_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__ticket__schemas__TicketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/conversations":{"get":{"tags":["admin"],"summary":"Admin Conversations","description":"Cross-org conversations for the admin audit.","operationId":"admin_conversations_api_v1_admin_conversations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ConversationRow"},"type":"array","title":"Response Admin Conversations Api V1 Admin Conversations Get"}}}}}}},"/api/v1/admin/conversations/{conversation_id}":{"get":{"tags":["admin"],"summary":"Admin Conversation Detail","description":"Full read-only thread for the admin audit.","operationId":"admin_conversation_detail_api_v1_admin_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationAuditDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/payments":{"get":{"tags":["admin"],"summary":"Admin Payments","description":"Cross-org payments ledger.","operationId":"admin_payments_api_v1_admin_payments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PaymentRecord"},"type":"array","title":"Response Admin Payments Api V1 Admin Payments Get"}}}}}}},"/api/v1/admin/payments/{payment_id}/reconcile":{"post":{"tags":["admin"],"summary":"Admin Reconcile Payment","description":"Manually mark a payment as settled/reconciled.","operationId":"admin_reconcile_payment_api_v1_admin_payments__payment_id__reconcile_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/invoices":{"get":{"tags":["admin"],"summary":"Admin Invoices","description":"Cross-org invoice ledger; ``?kind=platform_saas`` isolates the subscription\ninvoices TheTuningGroup sends tuners.","operationId":"admin_invoices_api_v1_admin_invoices_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminInvoiceRead"},"title":"Response Admin Invoices Api V1 Admin Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/invoices/{invoice_id}/download":{"get":{"tags":["admin"],"summary":"Admin Invoice Download","description":"Presigned PDF for any org's invoice.","operationId":"admin_invoice_download_api_v1_admin_invoices__invoice_id__download_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/invoices/{invoice_id}/regenerate":{"post":{"tags":["admin"],"summary":"Admin Invoice Regenerate","description":"Force a re-render of the invoice PDF (object storage only, no DB write).","operationId":"admin_invoice_regenerate_api_v1_admin_invoices__invoice_id__regenerate_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/invoices/{invoice_id}/resend":{"post":{"tags":["admin"],"summary":"Admin Invoice Resend","description":"Re-email an invoice to the tuner from the platform sender. The send is\nsynchronous, so the operator sees the delivery status; the action is audited.","operationId":"admin_invoice_resend_api_v1_admin_invoices__invoice_id__resend_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResendResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dtc":{"post":{"tags":["admin"],"summary":"Admin Create Dtc","description":"Add a trouble code.","operationId":"admin_create_dtc_api_v1_admin_dtc_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtcWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtcRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dtc/{code}":{"patch":{"tags":["admin"],"summary":"Admin Update Dtc","description":"Edit a trouble code's category/description.","operationId":"admin_update_dtc_api_v1_admin_dtc__code__patch","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtcUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtcRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Admin Delete Dtc","description":"Remove a trouble code.","operationId":"admin_delete_dtc_api_v1_admin_dtc__code__delete","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/audit":{"get":{"tags":["admin"],"summary":"Admin Audit","description":"Actor-attributed audit log of privileged operator actions — who did what, to\nwhat, and (when acting through an impersonation session) as whom. Paged, and\nfilterable by action verb and created-at date range.","operationId":"admin_audit_api_v1_admin_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/gdpr/subjects":{"get":{"tags":["admin"],"summary":"Admin Gdpr Subject Search","description":"Find a data subject by email and summarise their footprint across domains.","operationId":"admin_gdpr_subject_search_api_v1_admin_gdpr_subjects_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/gdpr/subjects/{user_id}/export":{"get":{"tags":["admin"],"summary":"Admin Gdpr Subject Export","description":"Assemble a subject's personal data for a subject-access request. Read-only —\nerasure is a separate, sign-off-gated action.","operationId":"admin_gdpr_subject_export_api_v1_admin_gdpr_subjects__user_id__export_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectExport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations":{"get":{"tags":["admin"],"summary":"Admin Organisations","description":"Cross-org directory with credit balances.","operationId":"admin_organisations_api_v1_admin_organisations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminOrgSummary"},"type":"array","title":"Response Admin Organisations Api V1 Admin Organisations Get"}}}}}}},"/api/v1/admin/organisations/{org_id}/status":{"post":{"tags":["admin"],"summary":"Admin Set Org Status","description":"Suspend or reactivate an organisation.\n\nSuspension blocks its people from signing in and its storefronts from\nselling; platform admins can still view every row. The organisations the\nplatform depends on, and deleted ones, are refused with a coded 409.","operationId":"admin_set_org_status_api_v1_admin_organisations__org_id__status_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgStatusUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}/approve-tuner":{"post":{"tags":["admin"],"summary":"Admin Approve Org Tuners","description":"Approve every pending tuner in an organisation so it can receive orders.","operationId":"admin_approve_org_tuners_api_v1_admin_organisations__org_id__approve_tuner_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}/owner":{"post":{"tags":["admin"],"summary":"Admin Transfer Ownership","description":"Hand the organisation to another active colleague; the old owner becomes admin.\n\nThe support path for \"the owner has left\": only the owner can change the\nplan, card, payout account and billing details, so an org whose owner is\ngone has nobody who can.","operationId":"admin_transfer_ownership_api_v1_admin_organisations__org_id__owner_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnershipTransfer"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}":{"delete":{"tags":["admin"],"summary":"Admin Delete Organisation","description":"Delete an organisation and its users. ``soft`` (default) closes the org and\nanonymises its users; ``hard`` physically purges the org, its users and its\nscoped data (credit wallets/ledger, notifications). Cannot be undone.","operationId":"admin_delete_organisation_api_v1_admin_organisations__org_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["soft","hard"],"type":"string","default":"soft","title":"Mode"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"Admin Organisation","description":"Full profile + credit balance for one organisation.","operationId":"admin_organisation_api_v1_admin_organisations__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrgDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}/users":{"get":{"tags":["admin"],"summary":"Admin Organisation Users","description":"Users belonging to one organisation.","operationId":"admin_organisation_users_api_v1_admin_organisations__org_id__users_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminUserSummary"},"title":"Response Admin Organisation Users Api V1 Admin Organisations  Org Id  Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}/transactions":{"get":{"tags":["admin"],"summary":"Admin Organisation Transactions","description":"Credit ledger for one organisation.","operationId":"admin_organisation_transactions_api_v1_admin_organisations__org_id__transactions_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditTransactionRead"},"title":"Response Admin Organisation Transactions Api V1 Admin Organisations  Org Id  Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}/orders":{"get":{"tags":["admin"],"summary":"Admin Organisation Orders","description":"Orders submitted by one organisation.","operationId":"admin_organisation_orders_api_v1_admin_organisations__org_id__orders_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FileServiceListItem"},"title":"Response Admin Organisation Orders Api V1 Admin Organisations  Org Id  Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}/invoices":{"get":{"tags":["admin"],"summary":"Admin Organisation Invoices","description":"Invoices issued to one organisation.","operationId":"admin_organisation_invoices_api_v1_admin_organisations__org_id__invoices_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminInvoiceRead"},"title":"Response Admin Organisation Invoices Api V1 Admin Organisations  Org Id  Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users":{"get":{"tags":["admin"],"summary":"Admin Users","description":"Cross-org user directory.","operationId":"admin_users_api_v1_admin_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminUserSummary"},"type":"array","title":"Response Admin Users Api V1 Admin Users Get"}}}}}}},"/api/v1/admin/users/{user_id}":{"patch":{"tags":["admin"],"summary":"Admin Update User","description":"Change a user's role and/or deactivate them.","operationId":"admin_update_user_api_v1_admin_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Admin Delete User","description":"Delete a user. ``soft`` (default) anonymises + closes the account; ``hard``\nphysically purges the row and its FK-owned data.\n\nHard delete refuses (409) while the user still owns an active workspace — close\nor transfer it first so a live storefront is never orphaned.","operationId":"admin_delete_user_api_v1_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["soft","hard"],"type":"string","default":"soft","title":"Mode"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/reset-2fa":{"post":{"tags":["admin"],"summary":"Admin Reset User 2Fa","description":"Clear a user's TOTP enrolment.","operationId":"admin_reset_user_2fa_api_v1_admin_users__user_id__reset_2fa_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/reset-onboarding":{"post":{"tags":["admin"],"summary":"Admin Reset User Onboarding","description":"Re-trigger the guided onboarding for a user (dealer or tuner) by clearing\ntheir onboarding state — the walkthrough replays on their next visit.","operationId":"admin_reset_user_onboarding_api_v1_admin_users__user_id__reset_onboarding_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/approve-tuner":{"post":{"tags":["admin"],"summary":"Admin Approve Tuner","description":"Accept a tuner so they can receive orders (pool + their own workspace).","operationId":"admin_approve_tuner_api_v1_admin_users__user_id__approve_tuner_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/invite":{"post":{"tags":["admin"],"summary":"Admin Invite User","description":"Invite a user into a chosen org with an explicit role.","operationId":"admin_invite_user_api_v1_admin_users_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Invite User Api V1 Admin Users Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/credits/ledger":{"get":{"tags":["admin"],"summary":"Admin Credit Ledger","description":"Admin refunds & adjustments feed (projected from the audit events).","operationId":"admin_credit_ledger_api_v1_admin_credits_ledger_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminLedgerEntry"},"type":"array","title":"Response Admin Credit Ledger Api V1 Admin Credits Ledger Get"}}}}}}},"/api/v1/admin/credits/adjust":{"post":{"tags":["admin"],"summary":"Admin Adjust Credits","description":"Grant or deduct credits on an org's balance (amount may be negative).","operationId":"admin_adjust_credits_api_v1_admin_credits_adjust_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditAdjustRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Adjust Credits Api V1 Admin Credits Adjust Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/credits/refundable-orders/{org_id}":{"get":{"tags":["admin"],"summary":"Admin Refundable Orders","description":"An org's paid direct orders with money still to refund (euro picker).","operationId":"admin_refundable_orders_api_v1_admin_credits_refundable_orders__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RefundableOrder"},"title":"Response Admin Refundable Orders Api V1 Admin Credits Refundable Orders  Org Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/credits/refund-euro":{"post":{"tags":["admin"],"summary":"Admin Refund Euro","description":"Refund (part of) a paid order's money to the dealer via Stripe.\n\nEmits payment.refunded → the worker issues a credit note + notifies the\ndealer. Each call uses a fresh idempotency token so distinct manual refunds\nare not deduplicated; the amount is capped at the order's remaining balance.","operationId":"admin_refund_euro_api_v1_admin_credits_refund_euro_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EuroRefundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Refund Euro Api V1 Admin Credits Refund Euro Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/credits/refundable-credit-purchases/{org_id}":{"get":{"tags":["admin"],"summary":"Admin Refundable Credit Purchases","description":"An org's paid credit-pack purchases with unspent credits still refundable.","operationId":"admin_refundable_credit_purchases_api_v1_admin_credits_refundable_credit_purchases__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RefundableCreditPurchase"},"title":"Response Admin Refundable Credit Purchases Api V1 Admin Credits Refundable Credit Purchases  Org Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/credits/refund-credit-pack":{"post":{"tags":["admin"],"summary":"Admin Refund Credit Pack","description":"Refund a credit-pack purchase — claw back the still-unspent credits from the\ndealer's wallet AND refund the money via Stripe (issues a credit note). Spent\ncredits stay put; a fully-spent purchase refunds nothing.","operationId":"admin_refund_credit_pack_api_v1_admin_credits_refund_credit_pack_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackRefundAdminRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Refund Credit Pack Api V1 Admin Credits Refund Credit Pack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/impersonation/settings":{"get":{"tags":["admin"],"summary":"Admin Impersonation Settings","description":"Whether impersonation is switched off platform-wide, and the live session count.","operationId":"admin_impersonation_settings_api_v1_admin_impersonation_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonationSettings"}}}}}},"put":{"tags":["admin"],"summary":"Admin Update Impersonation Settings","description":"Flip the platform-wide kill switch.\n\nSwitching impersonation off ends every live session as well, so a\ncompromised or forgotten session cannot outlive the decision. Audited\neither way, with the number of sessions that were ended.","operationId":"admin_update_impersonation_settings_api_v1_admin_impersonation_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonationSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonationSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/impersonation/stop":{"post":{"tags":["admin"],"summary":"Admin Stop Impersonation","description":"End the active impersonation session and restore the admin instantly.\n\nCallable from within the impersonated session (the read-only guard exempts\nthis route). Revokes the Redis session, clears the cookie, and records an\n``impersonation.ended`` audit event with the session duration.","operationId":"admin_stop_impersonation_api_v1_admin_impersonation_stop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Stop Impersonation Api V1 Admin Impersonation Stop Post"}}}}}}},"/api/v1/admin/impersonation/{user_id}":{"post":{"tags":["admin"],"summary":"Admin Start Impersonation","description":"Open a short-lived, read-only-by-default impersonation session.\n\nRequires the admin role, a non-empty reason, a recent step-up verification,\nand a dealer or tuner target. Mints the delegation token into the\n``imp_token`` cookie and records an ``impersonation.started`` audit event.","operationId":"admin_start_impersonation_api_v1_admin_impersonation__user_id__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/ImpersonationStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonationStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/overview":{"get":{"tags":["admin","channel"],"summary":"Overview","operationId":"overview_api_v1_admin_channel_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Overview"}}}}}}},"/api/v1/admin/channel/settings":{"get":{"tags":["admin","channel"],"summary":"Get Settings","operationId":"get_settings_api_v1_admin_channel_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelSettingsRead"}}}}}},"patch":{"tags":["admin","channel"],"summary":"Update Settings","description":"Flip the master switch or change the money settings.","operationId":"update_settings_api_v1_admin_channel_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/tuners":{"get":{"tags":["admin","channel"],"summary":"List Tuners","operationId":"list_tuners_api_v1_admin_channel_tuners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ChannelTunerRead"},"type":"array","title":"Response List Tuners Api V1 Admin Channel Tuners Get"}}}}}},"post":{"tags":["admin","channel"],"summary":"Invite Tuner","description":"Add a registered tuner who has no live link to the channel: they are\nsent the partner invite and take channel orders once they accept it.","operationId":"invite_tuner_api_v1_admin_channel_tuners_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelTunerInvite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelTunerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/tuners/{tuner_partner_id}":{"patch":{"tags":["admin","channel"],"summary":"Update Tuner","description":"Change a tuner's split (``null`` = the default) or their status. The\nid is the roster link's (``ChannelTuner.id``).","operationId":"update_tuner_api_v1_admin_channel_tuners__tuner_partner_id__patch","parameters":[{"name":"tuner_partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tuner Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelTunerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelTunerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/tuners/{tuner_partner_id}/split-history":{"get":{"tags":["admin","channel"],"summary":"Split History","operationId":"split_history_api_v1_admin_channel_tuners__tuner_partner_id__split_history_get","parameters":[{"name":"tuner_partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tuner Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SplitChangeRead"},"title":"Response Split History Api V1 Admin Channel Tuners  Tuner Partner Id  Split History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/routing-rules":{"get":{"tags":["admin","channel"],"summary":"List Rules","operationId":"list_rules_api_v1_admin_channel_routing_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RoutingRuleRead"},"type":"array","title":"Response List Rules Api V1 Admin Channel Routing Rules Get"}}}}}},"post":{"tags":["admin","channel"],"summary":"Create Rule","description":"Add a rule just above the default rule.","operationId":"create_rule_api_v1_admin_channel_routing_rules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/routing-rules/changes":{"get":{"tags":["admin","channel"],"summary":"Rule Changes","operationId":"rule_changes_api_v1_admin_channel_routing_rules_changes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RuleChangeRead"},"type":"array","title":"Response Rule Changes Api V1 Admin Channel Routing Rules Changes Get"}}}}}}},"/api/v1/admin/channel/routing-rules/simulate":{"post":{"tags":["admin","channel"],"summary":"Simulate","description":"Which rule an order would match and who could take it — nothing moves.","operationId":"simulate_api_v1_admin_channel_routing_rules_simulate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/routing-rules/order":{"put":{"tags":["admin","channel"],"summary":"Reorder Rules","description":"Reorder every rule but the default one, which stays last.","operationId":"reorder_rules_api_v1_admin_channel_routing_rules_order_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleOrderUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RoutingRuleRead"},"type":"array","title":"Response Reorder Rules Api V1 Admin Channel Routing Rules Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/routing-rules/{rule_id}":{"patch":{"tags":["admin","channel"],"summary":"Update Rule","operationId":"update_rule_api_v1_admin_channel_routing_rules__rule_id__patch","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","channel"],"summary":"Delete Rule","description":"Delete a rule; the default rule cannot be deleted.","operationId":"delete_rule_api_v1_admin_channel_routing_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/dispatch-board":{"get":{"tags":["admin","channel"],"summary":"Dispatch Board","operationId":"dispatch_board_api_v1_admin_channel_dispatch_board_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchBoard"}}}}}}},"/api/v1/admin/channel/attention":{"get":{"tags":["admin","channel"],"summary":"Attention","operationId":"attention_api_v1_admin_channel_attention_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AttentionItem"},"type":"array","title":"Response Attention Api V1 Admin Channel Attention Get"}}}}}}},"/api/v1/admin/channel/orders":{"get":{"tags":["admin","channel"],"summary":"List Orders","operationId":"list_orders_api_v1_admin_channel_orders_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"dispatch_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["dispatching","bidding","offered","assigned","attention"],"type":"string"},{"type":"null"}],"title":"Dispatch State"}},{"name":"dispatch_mode","in":"query","required":false,"schema":{"anyOf":[{"enum":["bidding","restricted_pool","direct","favourite"],"type":"string"},{"type":"null"}],"title":"Dispatch Mode"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelOrderPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/orders/{order_id}/assign":{"post":{"tags":["admin","channel"],"summary":"Assign Order","description":"Give a not-yet-started order to a roster tuner, at their split or at a\nmanual payout. The margin guard does not apply to an admin's choice.","operationId":"assign_order_api_v1_admin_channel_orders__order_id__assign_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelOrderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/channel/orders/{order_id}/rerun-rules":{"post":{"tags":["admin","channel"],"summary":"Rerun Rules","description":"Route a not-yet-started order by the rules again (taking it back from a\ntuner who has not started it).","operationId":"rerun_rules_api_v1_admin_channel_orders__order_id__rerun_rules_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelOrderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/agent-console/ticket":{"post":{"tags":["agent-console"],"summary":"Issue Ticket","operationId":"issue_ticket_api_v1_auth_agent_console_ticket_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__agent_console__schemas__TicketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/agent-console/device-keys":{"get":{"tags":["agent-console"],"summary":"List Device Keys","operationId":"list_device_keys_api_v1_auth_agent_console_device_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DeviceKeyRead"},"type":"array","title":"Response List Device Keys Api V1 Auth Agent Console Device Keys Get"}}}}}},"post":{"tags":["agent-console"],"summary":"Create Device Key","operationId":"create_device_key_api_v1_auth_agent_console_device_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceKeyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/agent-console/device-keys/{key_id}":{"delete":{"tags":["agent-console"],"summary":"Revoke Device Key","operationId":"revoke_device_key_api_v1_auth_agent_console_device_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/agent-console/status":{"get":{"tags":["agent-console"],"summary":"Console Status","operationId":"console_status_api_v1_auth_agent_console_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleStatus"}}}}}}},"/api/v1/me/attribution":{"put":{"tags":["attribution"],"summary":"Report Attribution","description":"Record what this browser knows about the visit — sent by the portal\nonly once the visitor has consented, and only when it changed. Refused\nwhile impersonating: an admin viewing an account is not its owner's\nbrowser.","operationId":"report_attribution_api_v1_me_attribution_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributionIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/review-queue":{"get":{"tags":["compliance"],"summary":"Review Queue","operationId":"review_queue_api_v1_admin_compliance_review_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ReviewItem"},"type":"array","title":"Response Review Queue Api V1 Admin Compliance Review Queue Get"}}}}}}},"/api/v1/admin/compliance/review/{target_type}/{listing_id}/approve":{"post":{"tags":["compliance"],"summary":"Approve Listing","operationId":"approve_listing_api_v1_admin_compliance_review__target_type___listing_id__approve_post","parameters":[{"name":"target_type","in":"path","required":true,"schema":{"enum":["addon","stage","product"],"type":"string","title":"Target Type"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDecision"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/review/{target_type}/{listing_id}/reject":{"post":{"tags":["compliance"],"summary":"Reject Listing","operationId":"reject_listing_api_v1_admin_compliance_review__target_type___listing_id__reject_post","parameters":[{"name":"target_type","in":"path","required":true,"schema":{"enum":["addon","stage","product"],"type":"string","title":"Target Type"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectDecision"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/flags":{"get":{"tags":["compliance"],"summary":"List Flags","operationId":"list_flags_api_v1_admin_compliance_flags_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["open","dismissed","actioned"],"type":"string","default":"open","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FlagRead"},"title":"Response List Flags Api V1 Admin Compliance Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/flags/{flag_id}/dismiss":{"post":{"tags":["compliance"],"summary":"Dismiss Flag","operationId":"dismiss_flag_api_v1_admin_compliance_flags__flag_id__dismiss_post","parameters":[{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDecision"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/flags/{flag_id}/action":{"post":{"tags":["compliance"],"summary":"Action Flag","operationId":"action_flag_api_v1_admin_compliance_flags__flag_id__action_post","parameters":[{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagAction"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/rules":{"get":{"tags":["compliance"],"summary":"List Rules","operationId":"list_rules_api_v1_admin_compliance_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/services__compliance__schemas__RuleRead"},"type":"array","title":"Response List Rules Api V1 Admin Compliance Rules Get"}}}}}},"post":{"tags":["compliance"],"summary":"Create Rule","operationId":"create_rule_api_v1_admin_compliance_rules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__compliance__schemas__RuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/rules/{rule_id}":{"put":{"tags":["compliance"],"summary":"Update Rule","operationId":"update_rule_api_v1_admin_compliance_rules__rule_id__put","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__compliance__schemas__RuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["compliance"],"summary":"Delete Rule","operationId":"delete_rule_api_v1_admin_compliance_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/sellers":{"get":{"tags":["compliance"],"summary":"Seller Review","operationId":"seller_review_api_v1_admin_compliance_sellers_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SellerReviewRow"},"title":"Response Seller Review Api V1 Admin Compliance Sellers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/sellers/{workspace_id}/reviewed":{"post":{"tags":["compliance"],"summary":"Mark Seller Reviewed","operationId":"mark_seller_reviewed_api_v1_admin_compliance_sellers__workspace_id__reviewed_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellerReviewWrite"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/sellers/{workspace_id}/suspend-selling":{"post":{"tags":["compliance"],"summary":"Suspend Selling","operationId":"suspend_selling_api_v1_admin_compliance_sellers__workspace_id__suspend_selling_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellingSuspension"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/compliance/sellers/{workspace_id}/unsuspend-selling":{"post":{"tags":["compliance"],"summary":"Unsuspend Selling","operationId":"unsuspend_selling_api_v1_admin_compliance_sellers__workspace_id__unsuspend_selling_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDecision"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports":{"post":{"tags":["compliance"],"summary":"Create Report","description":"Report a listing or a site. Always answers the same way, so a bot learns\nnothing from the honeypot.","operationId":"create_report_api_v1_reports_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportCreate"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Report Api V1 Reports Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/aup":{"get":{"tags":["compliance"],"summary":"Aup Status","operationId":"aup_status_api_v1_me_aup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AupStatus"}}}}}}},"/api/v1/me/aup/accept":{"post":{"tags":["compliance"],"summary":"Accept Aup","operationId":"accept_aup_api_v1_me_aup_accept_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AupStatus"}}}}}}},"/api/v1/admin/dashboard/summary":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Summary","description":"Headline admin KPIs.","operationId":"admin_dashboard_summary_api_v1_admin_dashboard_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDashboardSummary"}}}}}}},"/api/v1/admin/dashboard/throughput":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Throughput","description":"Orders created vs delivered per day.","operationId":"admin_dashboard_throughput_api_v1_admin_dashboard_throughput_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThroughputPoint"},"title":"Response Admin Dashboard Throughput Api V1 Admin Dashboard Throughput Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/revenue":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Revenue","description":"Settled revenue per day, split credit-pack vs order.","operationId":"admin_dashboard_revenue_api_v1_admin_dashboard_revenue_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RevenuePoint"},"title":"Response Admin Dashboard Revenue Api V1 Admin Dashboard Revenue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/status-breakdown":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Status Breakdown","description":"Live order count per status.","operationId":"admin_dashboard_status_breakdown_api_v1_admin_dashboard_status_breakdown_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StatusSlice"},"type":"array","title":"Response Admin Dashboard Status Breakdown Api V1 Admin Dashboard Status Breakdown Get"}}}}}}},"/api/v1/admin/dashboard/funnel":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Funnel","description":"Order-lifecycle funnel within the window.","operationId":"admin_dashboard_funnel_api_v1_admin_dashboard_funnel_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStages"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/turnaround":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Turnaround","description":"Average turnaround seconds per delivery day.","operationId":"admin_dashboard_turnaround_api_v1_admin_dashboard_turnaround_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TurnaroundPoint"},"title":"Response Admin Dashboard Turnaround Api V1 Admin Dashboard Turnaround Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/tuner-leaderboard":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Tuner Leaderboard","description":"Per-tuner completed/earnings/turnaround over the window.","operationId":"admin_dashboard_tuner_leaderboard_api_v1_admin_dashboard_tuner_leaderboard_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TunerLeaderRow"},"title":"Response Admin Dashboard Tuner Leaderboard Api V1 Admin Dashboard Tuner Leaderboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/tickets":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Tickets","description":"Ticket distribution and mean resolution time.","operationId":"admin_dashboard_tickets_api_v1_admin_dashboard_tickets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketStats"}}}}}}},"/api/v1/admin/dashboard/lookups":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Lookups","description":"Lookup health: rate, totals, by-source and daily series.","operationId":"admin_dashboard_lookups_api_v1_admin_dashboard_lookups_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/payouts":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Payouts","description":"Payout liability grouped by earning status.","operationId":"admin_dashboard_payouts_api_v1_admin_dashboard_payouts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutLiability"}}}}}}},"/api/v1/admin/dashboard/activity":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Activity","description":"Recent outbox events for the activity feed.","operationId":"admin_dashboard_activity_api_v1_admin_dashboard_activity_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityItem"},"title":"Response Admin Dashboard Activity Api V1 Admin Dashboard Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/method-mix":{"get":{"tags":["dashboard"],"summary":"Admin Dashboard Method Mix","description":"Platform-wide method-mix with effective margin, per payment method.","operationId":"admin_dashboard_method_mix_api_v1_admin_dashboard_method_mix_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MethodMixRow"},"title":"Response Admin Dashboard Method Mix Api V1 Admin Dashboard Method Mix Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/dashboard/summary":{"get":{"tags":["dashboard"],"summary":"Tuner Dashboard Summary","description":"Headline KPIs for the acting tuner.","operationId":"tuner_dashboard_summary_api_v1_tuner_dashboard_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunerDashboardSummary"}}}}}}},"/api/v1/tuner/dashboard/throughput":{"get":{"tags":["dashboard"],"summary":"Tuner Dashboard Throughput","description":"The storefront's deliveries per day, across the tuner org's workspaces.","operationId":"tuner_dashboard_throughput_api_v1_tuner_dashboard_throughput_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TunerThroughputPoint"},"title":"Response Tuner Dashboard Throughput Api V1 Tuner Dashboard Throughput Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/dashboard/earnings":{"get":{"tags":["dashboard"],"summary":"Tuner Dashboard Earnings","description":"The tuner's earnings per day.","operationId":"tuner_dashboard_earnings_api_v1_tuner_dashboard_earnings_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DaysWindow","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EarningsPoint"},"title":"Response Tuner Dashboard Earnings Api V1 Tuner Dashboard Earnings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/dashboard/earnings-by-status":{"get":{"tags":["dashboard"],"summary":"Tuner Dashboard Earnings By Status","description":"The tuner's earnings amount + count per status.","operationId":"tuner_dashboard_earnings_by_status_api_v1_tuner_dashboard_earnings_by_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EarningsStatusSlice"},"type":"array","title":"Response Tuner Dashboard Earnings By Status Api V1 Tuner Dashboard Earnings By Status Get"}}}}}}},"/api/v1/tuner/dashboard/sla":{"get":{"tags":["dashboard"],"summary":"Tuner Dashboard Sla","description":"The storefront's in-progress jobs with age and SLA-breach flag.","operationId":"tuner_dashboard_sla_api_v1_tuner_dashboard_sla_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SlaJob"},"type":"array","title":"Response Tuner Dashboard Sla Api V1 Tuner Dashboard Sla Get"}}}}}}},"/api/v1/tuner/dashboard/storefront":{"get":{"tags":["dashboard"],"summary":"Tuner Dashboard Storefront","description":"Storefront snapshot — action lanes, business + revenue, dealer roster for\nthe tuner's OWN workspaces + dealers (not the pool-worker view).\n\nThe pool lane is resolved here rather than in the query, for the same reason\nthe claim board resolves it here: the entitlement's subject is the caller's\ncontext workspace, which a query has no business resolving.","operationId":"tuner_dashboard_storefront_api_v1_tuner_dashboard_storefront_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunerStorefrontSummary"}}}}}}},"/api/v1/tuner/dashboard/orders-by-status":{"get":{"tags":["dashboard"],"summary":"Tuner Dashboard Orders By Status","description":"Order count per status across the tuner org's workspaces.","operationId":"tuner_dashboard_orders_by_status_api_v1_tuner_dashboard_orders_by_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrderStatusSlice"},"type":"array","title":"Response Tuner Dashboard Orders By Status Api V1 Tuner Dashboard Orders By Status Get"}}}}}}},"/api/v1/tuner/finance/delegations/summary":{"get":{"tags":["dashboard"],"summary":"Tuner Delegation Summary","description":"What delegating work to partners has cost this org, per currency.","operationId":"tuner_delegation_summary_api_v1_tuner_finance_delegations_summary_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DelegationCostSummary"},"title":"Response Tuner Delegation Summary Api V1 Tuner Finance Delegations Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/delegations/partners":{"get":{"tags":["dashboard"],"summary":"Tuner Delegation Partners","description":"Cost of delegating, broken down by the partner it went to.","operationId":"tuner_delegation_partners_api_v1_tuner_finance_delegations_partners_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DelegationPartnerCost"},"title":"Response Tuner Delegation Partners Api V1 Tuner Finance Delegations Partners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/delegations/legs":{"get":{"tags":["dashboard"],"summary":"Tuner Delegation Legs","description":"The per-order ledger behind the delegation totals.","operationId":"tuner_delegation_legs_api_v1_tuner_finance_delegations_legs_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DelegationLegRow"},"title":"Response Tuner Delegation Legs Api V1 Tuner Finance Delegations Legs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/summary":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Summary","description":"Take-home revenue + platform cost totals, split dealer vs pool.","operationId":"tuner_finance_summary_api_v1_tuner_finance_summary_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}},{"name":"dealer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/winols":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Winols","description":"Files sold in WinOLS: count, credits used, and their estimated worth.\nAlready inside the revenue figures — the credits were sold for money.","operationId":"tuner_finance_winols_api_v1_tuner_finance_winols_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}},{"name":"dealer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceWinols"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/revenue":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Revenue","description":"Revenue over time, stacked dealer vs pool.","operationId":"tuner_finance_revenue_api_v1_tuner_finance_revenue_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}},{"name":"dealer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FinanceRevenuePoint"},"title":"Response Tuner Finance Revenue Api V1 Tuner Finance Revenue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/flow":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Flow","description":"Sold vs bought over time — the P&L flow chart (per currency).","operationId":"tuner_finance_flow_api_v1_tuner_finance_flow_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string","default":"EUR","title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FinanceFlowPoint"},"title":"Response Tuner Finance Flow Api V1 Tuner Finance Flow Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/dealers":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Dealers","description":"Revenue per dealer (powers the dealer filter + the by-dealer chart).","operationId":"tuner_finance_dealers_api_v1_tuner_finance_dealers_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DealerRevenue"},"title":"Response Tuner Finance Dealers Api V1 Tuner Finance Dealers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/partners":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Partners","description":"Outsourcing cost per partner tuner — the buy-side counterparty breakdown.","operationId":"tuner_finance_partners_api_v1_tuner_finance_partners_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerCost"},"title":"Response Tuner Finance Partners Api V1 Tuner Finance Partners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/partner-credits":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Partner Credits","description":"Prepaid credit held with each partner tuner.\n\nNo window: a wallet balance is a point-in-time asset, not a period figure —\nwhich is also why it sits beside the P&L rather than inside its metric row.","operationId":"tuner_finance_partner_credits_api_v1_tuner_finance_partner_credits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerCreditBalance"},"type":"array","title":"Response Tuner Finance Partner Credits Api V1 Tuner Finance Partner Credits Get"}}}}}}},"/api/v1/tuner/finance/credits/summary":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Credit Totals","description":"Outstanding credit held WITH this tuner + the window's sold/used flow.","operationId":"tuner_finance_credit_totals_api_v1_tuner_finance_credits_summary_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}},{"name":"counterparty","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Counterparty"}},{"name":"counterparty_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["dealer","partner"],"type":"string"},{"type":"null"}],"title":"Counterparty Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunerCreditTotals"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/credits/counterparties":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Credit Counterparties","description":"Every dealer/partner holding credits: balances now, movement in window.","operationId":"tuner_finance_credit_counterparties_api_v1_tuner_finance_credits_counterparties_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditCounterpartyRow"},"title":"Response Tuner Finance Credit Counterparties Api V1 Tuner Finance Credits Counterparties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/credits/flow":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Credit Flow","description":"Credits sold vs used per bucket, for the credit-band trend chart.","operationId":"tuner_finance_credit_flow_api_v1_tuner_finance_credits_flow_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}},{"name":"counterparty","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Counterparty"}},{"name":"counterparty_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["dealer","partner"],"type":"string"},{"type":"null"}],"title":"Counterparty Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditFlowPoint"},"title":"Response Tuner Finance Credit Flow Api V1 Tuner Finance Credits Flow Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/method-mix":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Method Mix","description":"The tuner's own sales volume per payment method (no platform economics).","operationId":"tuner_finance_method_mix_api_v1_tuner_finance_method_mix_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TunerMethodMixRow"},"title":"Response Tuner Finance Method Mix Api V1 Tuner Finance Method Mix Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/payouts":{"get":{"tags":["dashboard"],"summary":"Tuner Finance Payouts","description":"Unified payouts/earnings across pool + dealer orders, filterable.","operationId":"tuner_finance_payouts_api_v1_tuner_finance_payouts_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FinanceWindow","default":"30d"}},{"name":"dealer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PayoutRow"},"title":"Response Tuner Finance Payouts Api V1 Tuner Finance Payouts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Register Api V1 Auth Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/activate":{"post":{"tags":["auth"],"summary":"Activate","operationId":"activate_api_v1_auth_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Activate Api V1 Auth Activate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/activation/resend":{"post":{"tags":["auth"],"summary":"Resend Activation","description":"Send a fresh activation link to a pending account.\n\nAlways 202 with the same body — never reveals whether the address has an\naccount, is already active, or just had one sent.","operationId":"resend_activation_api_v1_auth_activation_resend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivationResendRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Resend Activation Api V1 Auth Activation Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Forgot Password Api V1 Auth Forgot Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reset Password Api V1 Auth Reset Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Api V1 Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login/verify":{"post":{"tags":["auth"],"summary":"Login Verify","operationId":"login_verify_api_v1_auth_login_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepUpVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Verify Api V1 Auth Login Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login/resend":{"post":{"tags":["auth"],"summary":"Login Resend","operationId":"login_resend_api_v1_auth_login_resend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepUpResendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Resend Api V1 Auth Login Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google/login":{"get":{"tags":["auth"],"summary":"Google Login","description":"Send the browser to Google's consent screen.\n\n``brand`` is the platform brand the button was pressed in; it rides the\nOAuth ``state`` round trip so an account the callback creates records it.","operationId":"google_login_api_v1_auth_google_login_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"enum":["ttg","ttf"],"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google/callback":{"get":{"tags":["auth"],"summary":"Google Callback","operationId":"google_callback_api_v1_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_api_v1_auth_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Refresh Api V1 Auth Refresh Post"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Revoke the current browser/mobile session before clearing its credentials.","operationId":"logout_api_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Logout Api V1 Auth Logout Post"}}}}}}},"/api/v1/auth/change-password":{"post":{"tags":["auth"],"summary":"Change Password","operationId":"change_password_api_v1_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Password Api V1 Auth Change Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/change-email":{"post":{"tags":["auth"],"summary":"Change Email","description":"Request a change to the signed-in user's sign-in email.\n\nVerifies the current password and emails a confirmation link to the new\naddress. The email only changes when that link is confirmed via\n``/auth/change-email/confirm`` — never inline here.","operationId":"change_email_api_v1_auth_change_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Email Api V1 Auth Change Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/change-email/confirm":{"post":{"tags":["auth"],"summary":"Change Email Confirm","description":"Confirm a pending email change from its emailed token (no session needed).","operationId":"change_email_confirm_api_v1_auth_change_email_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmEmailChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Email Confirm Api V1 Auth Change Email Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/totp/enroll":{"post":{"tags":["auth"],"summary":"Totp Enroll","operationId":"totp_enroll_api_v1_auth_totp_enroll_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpEnrollResponse"}}}}}}},"/api/v1/auth/totp/confirm":{"post":{"tags":["auth"],"summary":"Totp Confirm","operationId":"totp_confirm_api_v1_auth_totp_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Totp Confirm Api V1 Auth Totp Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/totp/disable":{"post":{"tags":["auth"],"summary":"Totp Disable","operationId":"totp_disable_api_v1_auth_totp_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpDisableRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Totp Disable Api V1 Auth Totp Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","description":"The current principal, plus impersonation context when a session is live.\n\nDuring impersonation the principal resolves to the *target*, so the target\nfields come straight off the principal; ``expires_at`` is read from the\ndelegation token's ``exp`` claim.\n\n``team_role`` is the caller's intra-org role (owner/admin/member) — the JWT\ncarries only ``role=\"tuner\"``, so it is read live from the user row and drives\nthe frontend team-management + upgrade-CTA gating. ``mobile_app`` is the\nbranded-app access gate (§14.6): it resolves the caller's in-context tuner\nworkspace the same way branded push does and reports whether that tuner's plan\ngrants ``feature:mobile_app``. A caller with no tuner context (platform-direct\ndealer / admin) defaults to ``True`` — there is no tuner brand to withhold.","operationId":"me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Me Api V1 Auth Me Get"}}}}}}},"/api/v1/profile":{"get":{"tags":["account"],"summary":"Get Profile","description":"The signed-in user's own profile (any role).","operationId":"get_profile_api_v1_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSelfRead"}}}}}},"put":{"tags":["account"],"summary":"Update Profile","description":"Edit your own display name and communication language.","operationId":"update_profile_api_v1_profile_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSelfUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSelfRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding":{"patch":{"tags":["account"],"summary":"Patch Onboarding","description":"Record one guided-onboarding progress update for the signed-in user.","operationId":"patch_onboarding_api_v1_onboarding_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/deletion-eligibility":{"get":{"tags":["account"],"summary":"Account Deletion Eligibility","description":"Whether the signed-in user may close their account, and any blockers.\n\nDrives the account page's danger zone: the delete action is disabled and the\nblockers listed until this returns ``can_delete=True``.","operationId":"account_deletion_eligibility_api_v1_account_deletion_eligibility_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionEligibility"}}}}}}},"/api/v1/account":{"delete":{"tags":["account"],"summary":"Delete Account","description":"Close (soft-delete) your own account: anonymises your data and blocks login.\n\nRe-checks the deletion blockers server-side (409 if any) and re-confirms\nidentity (password for password accounts, email for SSO accounts). The caller\nshould clear its session afterwards.","operationId":"delete_account_api_v1_account_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeleteRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisation":{"get":{"tags":["account"],"summary":"Get Organisation","operationId":"get_organisation_api_v1_organisation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSelfRead"}}}}}},"put":{"tags":["account"],"summary":"Update Organisation","description":"Replace the caller's organisation profile.\n\nAny colleague may correct the company details (onboarding saves them through\nhere too), but the country, VAT number, billing email and address are the\nowner's: for anyone else they are kept as stored rather than refusing the\nwhole save.","operationId":"update_organisation_api_v1_organisation_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSelfUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSelfRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisation/billing":{"patch":{"tags":["account"],"summary":"Update Organisation Billing","description":"Patch only the billing fields of the caller's own organisation.\n\nThe PUT above REPLACES the profile — including ``legal_identity``, which no\ncaller sends — so a surface that only edits a billing detail must not use it.\nThis routes to the partial ``update_billing`` command instead, leaving every\nfield it doesn't mention untouched. (The equivalent under\n``/organisations/{id}/billing`` is admin-only, hence the self-scoped twin.)\nOwner-only: every field here decides how the organisation is billed.","operationId":"update_organisation_billing_api_v1_organisation_billing_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBillingUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSelfRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisation/evc-customer-number":{"patch":{"tags":["account"],"summary":"Update Organisation Evc Customer Number","description":"Set the caller's own WinOLS/EVC customer number (null clears it).\n\nScoped to the principal's organisation, so a dealer can only ever state their\nown number. Separate from the org PUT for the same reason as the billing\npatch above: that PUT replaces the profile, and forms which never heard of\nthis field (onboarding) would wipe it.","operationId":"update_organisation_evc_customer_number_api_v1_organisation_evc_customer_number_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEvcCustomerUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSelfRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisation/validate-vat":{"post":{"tags":["account"],"summary":"Validate Vat","description":"Save the submitted VAT number, check it against VIES, record the verdict.\n\n``vat_number`` is what the caller wants validated; omitting it re-checks\nwhatever is already on file (the sweep's behaviour). It is persisted before\nthe check because a verdict is only worth anything attached to the number the\norganisation actually claims — and because the button that calls this was\nenabling itself on an unsaved input while sending nothing, so it validated\nthe previously-saved number, or 400'd when there wasn't one.\n\nThe number is canonicalised first. VIES takes the member state as its own\nfield, and this used to hand it the raw stored string, whose first two\ncharacters are the country code only by convention — an unprefixed number\nsent \"31\" as a member state, drew INVALID_INPUT, and was recorded INVALID.\n\n``checkable`` in the response distinguishes \"VIES said no\" from \"VIES was\nnever the right place to ask\": a country outside the EU gets no check at all,\nwhich is an answer about our reach, not about the customer.\n\nOwner-only (``BillingOwner``), like the VAT number on the profile save: this\nis not a lookup but a write — it stores the number and records the verdict.","operationId":"validate_vat_api_v1_organisation_validate_vat_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VatValidateRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Vat Api V1 Organisation Validate Vat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/team":{"get":{"tags":["account"],"summary":"Get Account Team","description":"The caller's org team (active + pending).","operationId":"get_account_team_api_v1_account_team_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}}}}},"/api/v1/account/team/invite":{"post":{"tags":["account"],"summary":"Invite Account Team Member","description":"Invite a colleague into the caller's own org. No seat limit.","operationId":"invite_account_team_member_api_v1_account_team_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamInviteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/team/{user_id}":{"patch":{"tags":["account"],"summary":"Update Account Team Member","description":"Change a colleague's role (owner-only; the sole owner cannot be demoted).","operationId":"update_account_team_member_api_v1_account_team__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["account"],"summary":"Remove Account Team Member","description":"Remove a colleague (the sole owner is protected).","operationId":"remove_account_team_member_api_v1_account_team__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/identity-fields":{"get":{"tags":["identity-fields"],"summary":"List Identity Fields","description":"How a company in ``country`` identifies itself: what its tax id is called,\nand any further identifiers it states on an invoice.\n\n``state`` adds subdivision-level registrations — a New Mexico company's BTIN,\nfor instance — which only exist once the company says where it is registered.\n\nA country the registry does not know returns no fields. That is a complete\nanswer, not an error: most countries need nothing beyond name, address and a\ntax id, and the form simply renders no extra inputs.","operationId":"list_identity_fields_api_v1_identity_fields_get","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string","title":"Country"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"role","in":"query","required":false,"schema":{"enum":["seller","buyer","both"],"type":"string","default":"both","title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityFormRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/leads":{"post":{"tags":["lead-webhooks"],"summary":"Ingest Lead Via Header","description":"The same intake as the path-token route below, authenticated by a\nconventional ``Authorization: Bearer <token>`` header instead — for a\nhand-rolled integration where keeping the secret out of the URL (access\nlogs, proxies, browser history) is worth the one extra header line.","operationId":"ingest_lead_via_header_api_v1_webhooks_leads_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdLeadIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Lead Via Header Api V1 Webhooks Leads Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/leads/{token}":{"post":{"tags":["lead-webhooks"],"summary":"Ingest Generic Lead","description":"The generic route: Meta/LinkedIn (via Zapier/Make), a manual add, or\nany future source, all speaking ``AdLeadIn`` directly — the token lives in\nthe URL because that is the only field most no-code tools expose.\n\nAlways 202 — a source that retries on anything but 2xx must not be taught\nthat a duplicate (already deduped server-side) is worth retrying forever.","operationId":"ingest_generic_lead_api_v1_webhooks_leads__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdLeadIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Generic Lead Api V1 Webhooks Leads  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/leads/{token}/google-ads":{"post":{"tags":["lead-webhooks"],"summary":"Ingest Google Ads Lead","description":"Google Ads' native lead-form webhook forwarding.\n\nParsed by hand rather than as the route's ``body`` type: Google's own\n``google_key`` field must be checked BEFORE anything about the payload is\ntrusted, and a 4xx here is read by Google as \"retry\" — a payload that fails\nnormal Pydantic validation should still 202 once the key is right, so a\nsingle odd lead does not loop their retry rail forever.","operationId":"ingest_google_ads_lead_api_v1_webhooks_leads__token__google_ads_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Google Ads Lead Api V1 Webhooks Leads  Token  Google Ads Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads":{"get":{"tags":["leads"],"summary":"List Leads","description":"Every contact who has ever reached the caller's org, newest-active\nfirst. ``channel`` narrows to one source; ``matched`` to linked/unlinked;\n``since``/``until`` to a window on ``last_activity_at``, half-open.","operationId":"list_leads_api_v1_leads_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"matched","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Matched"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/{lead_id}":{"get":{"tags":["leads"],"summary":"Get Lead","description":"One lead's identity + full cross-channel timeline.\n\nAnother org's lead reads as 404, same as the enquiries deep link — its\nexistence never leaks.","operationId":"get_lead_api_v1_leads__lead_id__get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/{lead_id}/link":{"post":{"tags":["leads"],"summary":"Link Lead","description":"Say who this lead is — the same \"link to account\" action the WhatsApp\ninbox already has, generalised to any lead.\n\n``organisation_id: null`` unlinks. Only an organisation the caller's own\nworkspace actually deals with may be named — otherwise this would be a way\nto point a lead at any org on the platform and read its name back.","operationId":"link_lead_api_v1_leads__lead_id__link_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadLinkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Link Lead Api V1 Leads  Lead Id  Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisations":{"get":{"tags":["organisations"],"summary":"List Orgs","operationId":"list_orgs_api_v1_organisations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrgRead"},"type":"array","title":"Response List Orgs Api V1 Organisations Get"}}}}}},"post":{"tags":["organisations"],"summary":"Create Org","operationId":"create_org_api_v1_organisations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisations/{org_id}":{"get":{"tags":["organisations"],"summary":"Get Org","operationId":"get_org_api_v1_organisations__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisations/{org_id}/billing":{"patch":{"tags":["organisations"],"summary":"Update Billing","description":"Admin repair of an org's billing identity — including its currency.\n\nAudited because the currency is money-relevant: it picks the price list every\none of that org's orders resolves against, so a change here silently re-prices\ntheir whole catalogue and must be attributable to a person.","operationId":"update_billing_api_v1_organisations__org_id__billing_patch","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBillingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organisations/{org_id}/vat":{"patch":{"tags":["organisations"],"summary":"Set Vat","operationId":"set_vat_api_v1_organisations__org_id__vat_patch","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"vat_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"}},{"name":"vat_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/original-files":{"get":{"tags":["originals"],"summary":"List Original Files","operationId":"list_original_files_api_v1_original_files_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OriginalFileRead"},"type":"array","title":"Response List Original Files Api V1 Original Files Get"}}}}}}},"/api/v1/original-files/{original_file_id}":{"get":{"tags":["originals"],"summary":"Get Original File","operationId":"get_original_file_api_v1_original_files__original_file_id__get","parameters":[{"name":"original_file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Original File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginalFileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/invite":{"post":{"tags":["users"],"summary":"Invite User","operationId":"invite_user_api_v1_users_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Invite User Api V1 Users Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users":{"get":{"tags":["users"],"summary":"List Users","operationId":"list_users_api_v1_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserRead"},"type":"array","title":"Response List Users Api V1 Users Get"}}}}}},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_api_v1_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}":{"get":{"tags":["users"],"summary":"Get User","operationId":"get_user_api_v1_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/tuner-adjust":{"post":{"tags":["credits"],"summary":"Tuner Adjust Credits","description":"A tuner grants or deducts goodwill credits on one of their dealers' balances.\n\nScoped: ``organisation_id`` must be a dealer in a workspace the tuner owns\n(admins may target any org). ``amount`` may be negative to deduct. The reason is\nrecorded on the audit trail.\n\nA tuner's grant lands in the dealer's wallet WITH THAT TUNER — the one their\norders there spend. It used to land in the platform-pool wallet, which a\ndealer ordering from this tuner can never spend. An admin still adjusts the\npool wallet.","operationId":"tuner_adjust_credits_api_v1_credits_tuner_adjust_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditAdjustRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Tuner Adjust Credits Api V1 Credits Tuner Adjust Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pricing/quote":{"get":{"tags":["credits"],"summary":"Price Breakdown","description":"Euro prices (slave-bundle / master-bundle / direct) for a credit total.\n\n``workspace_id`` scopes the euros to that tuner's own rate + packs (a private\nworkspace order) — for that tuner's own dealers and accepted partners.\nOmitted, a dealer is quoted their own tuner's (the one their orders go to,\nelse the platform's home tuner; 422 ``destination_required`` with several),\na tuner or admin the shared platform pool. The caller's own partner discount\nwith that tuner (if any) is applied to every amount.","operationId":"price_breakdown_api_v1_pricing_quote_get","parameters":[{"name":"credits","in":"query","required":true,"schema":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Credits"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},{"name":"bill_to_invoice","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Bill To Invoice"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBreakdown"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits":{"get":{"tags":["credits"],"summary":"Get Balance","description":"The caller's credit balance with one supplier, per kind and in total.\n\nBalances are kept per tuner and never add up across tuners: credits bought\nfrom one are spendable only on orders to that one. ``workspace_id`` names\nthe tuner. Omitted, a dealer gets the wallet their next order would spend —\nthe one tuner they order from (an invited one counts when none is active),\nelse the platform's home tuner, else the platform pool — and a dealer with\nseveral tuners gets 422 ``destination_required`` listing them in\n``details.workspace_ids``. A tuner or admin who omits it reads the platform\npool wallet.","operationId":"get_balance_api_v1_credits_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditBalance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credit-packs":{"get":{"tags":["credits"],"summary":"List Packs","description":"Packs for purchase. ``workspace_id`` shows that tuner's packs to its own\ndealers and to tuners it partners with — nobody else. Omitted, a dealer sees\ntheir own tuner's (the one their orders go to, else the platform's home\ntuner; 422 ``destination_required`` with several): a dealer buys from their\ntuner, never the pool while a home tuner exists. A tuner or admin sees the\nplatform packs (pool). The caller's partner discount with that tuner (if\nany) arrives as ``discounted_prices``.","operationId":"list_packs_api_v1_credit_packs_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditPackRead"},"title":"Response List Packs Api V1 Credit Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/checkout/sync":{"post":{"tags":["credits"],"summary":"Sync Credits Checkout","description":"Settle a just-completed credit-pack checkout on the success return.\n\nBelt-and-suspenders for the ``checkout.session.completed`` webhook: when the\ndealer returns from Stripe (``?checkout=success&session_id=…``) the client\ncalls this to grant the credits immediately instead of waiting for the\nwebhook or the reconcile sweep. Idempotent and org-scoped; a no-op when the\nsession is unknown, already settled, or still open.","operationId":"sync_credits_checkout_api_v1_credits_checkout_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsCheckoutSync"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sync Credits Checkout Api V1 Credits Checkout Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/transactions":{"get":{"tags":["credits"],"summary":"List Transactions","operationId":"list_transactions_api_v1_transactions_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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/CreditTransactionRead"},"title":"Response List Transactions Api V1 Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/credit-packs":{"get":{"tags":["credits"],"summary":"Admin Packs List","description":"Every credit bundle (incl. inactive), per credit type.","operationId":"admin_packs_list_api_v1_admin_credit_packs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CreditPackRead"},"type":"array","title":"Response Admin Packs List Api V1 Admin Credit Packs Get"}}}}}},"post":{"tags":["credits"],"summary":"Admin Packs Create","operationId":"admin_packs_create_api_v1_admin_credit_packs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/credit-packs/{pack_id}":{"patch":{"tags":["credits"],"summary":"Admin Packs Update","operationId":"admin_packs_update_api_v1_admin_credit_packs__pack_id__patch","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credits"],"summary":"Admin Packs Delete","operationId":"admin_packs_delete_api_v1_admin_credit_packs__pack_id__delete","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/pricing-config":{"get":{"tags":["credits"],"summary":"Admin Pricing Config Get","operationId":"admin_pricing_config_get_api_v1_admin_pricing_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingConfigRead"}}}}}},"put":{"tags":["credits"],"summary":"Admin Pricing Config Update","description":"Save the global money knobs. ``currency_rates`` merges per currency —\ncurrencies the body leaves out keep their prices.","operationId":"admin_pricing_config_update_api_v1_admin_pricing_config_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingConfigWrite"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingConfigRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/pricing-config/currency-rates/{currency}":{"delete":{"tags":["credits"],"summary":"Admin Pricing Config Currency Delete","description":"Stop selling in one currency by dropping its rate entry.\n\nSeparate from the save because the save merges: this is the deliberate act\nthat removes prices, and it answers with the config the UI should now show.","operationId":"admin_pricing_config_currency_delete_api_v1_admin_pricing_config_currency_rates__currency__delete","parameters":[{"name":"currency","in":"path","required":true,"schema":{"type":"string","title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingConfigRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/credit-packs":{"get":{"tags":["credits"],"summary":"Workspace Packs List","description":"Every pack (incl. inactive) the tuner owns for this workspace.","operationId":"workspace_packs_list_api_v1_workspaces__workspace_id__credit_packs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditPackRead"},"title":"Response Workspace Packs List Api V1 Workspaces  Workspace Id  Credit Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credits"],"summary":"Workspace Packs Create","operationId":"workspace_packs_create_api_v1_workspaces__workspace_id__credit_packs_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/credit-packs/{pack_id}":{"patch":{"tags":["credits"],"summary":"Workspace Packs Update","operationId":"workspace_packs_update_api_v1_workspaces__workspace_id__credit_packs__pack_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPackRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credits"],"summary":"Workspace Packs Delete","operationId":"workspace_packs_delete_api_v1_workspaces__workspace_id__credit_packs__pack_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-copy":{"get":{"tags":["email-copy"],"summary":"List Editable","description":"Which emails this tuner may rewrite, and where they already have.","operationId":"list_editable_api_v1_workspaces__workspace_id__email_copy_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmailCopySummary"},"title":"Response List Editable Api V1 Workspaces  Workspace Id  Email Copy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-copy/{email_type}":{"get":{"tags":["email-copy"],"summary":"Get Email","description":"One email's slots for one language, our wording beside theirs.","operationId":"get_email_api_v1_workspaces__workspace_id__email_copy__email_type__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"email_type","in":"path","required":true,"schema":{"type":"string","title":"Email Type"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCopyRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-copy/{email_type}/preview":{"get":{"tags":["email-copy"],"summary":"Preview","description":"The email as it would go out, on sample data, with their copy applied.","operationId":"preview_api_v1_workspaces__workspace_id__email_copy__email_type__preview_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"email_type","in":"path","required":true,"schema":{"type":"string","title":"Email Type"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-copy/{email_type}/{slot}":{"put":{"tags":["email-copy"],"summary":"Write Slot","operationId":"write_slot_api_v1_workspaces__workspace_id__email_copy__email_type___slot__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"email_type","in":"path","required":true,"schema":{"type":"string","title":"Email Type"}},{"name":"slot","in":"path","required":true,"schema":{"type":"string","title":"Slot"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Locale"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCopyWrite"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["email-copy"],"summary":"Reset Slot","description":"Reset to our wording, undoing a rewrite OR a removal. Absence is the\ndefault, so this is a delete.","operationId":"reset_slot_api_v1_workspaces__workspace_id__email_copy__email_type___slot__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"email_type","in":"path","required":true,"schema":{"type":"string","title":"Email Type"}},{"name":"slot","in":"path","required":true,"schema":{"type":"string","title":"Slot"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Locale"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-copy/{email_type}/{slot}/remove":{"post":{"tags":["email-copy"],"summary":"Remove Slot","description":"Take this block out of the email for this language.\n\nNot a DELETE: deleting resets to OUR copy, which is the opposite outcome.\nThe registry decides what may go — the subject, the price and the accept\nbutton are refused here with a 422 rather than silently ignored.","operationId":"remove_slot_api_v1_workspaces__workspace_id__email_copy__email_type___slot__remove_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"email_type","in":"path","required":true,"schema":{"type":"string","title":"Email Type"}},{"name":"slot","in":"path","required":true,"schema":{"type":"string","title":"Slot"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Locale"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-deliveries":{"get":{"tags":["admin"],"summary":"Admin Email Deliveries","description":"A page of email deliveries, newest first, with state and per-day summaries.\n\n``date_from``/``date_to`` are inclusive calendar days in UTC; ``user_id``\nnarrows to that user's current address (404 for an unknown user).","operationId":"admin_email_deliveries_api_v1_admin_email_deliveries_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"organisation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"}},{"name":"sender_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sender Workspace Id"}},{"name":"sending_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":45},{"type":"null"}],"title":"Sending Ip"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Category"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","failed","sent","deferred","delivered","opened","clicked","unsubscribed","bounced","blocked","dropped","spam_reported"],"type":"string"},{"type":"null"}],"title":"State"}},{"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":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDeliveryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-deliveries/categories":{"get":{"tags":["admin"],"summary":"Admin Email Delivery Categories","description":"Every email type in the log — the type filter's options.","operationId":"admin_email_delivery_categories_api_v1_admin_email_deliveries_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Admin Email Delivery Categories Api V1 Admin Email Deliveries Categories Get"}}}}}}},"/api/v1/admin/email-deliveries/health":{"get":{"tags":["admin"],"summary":"Admin Email Webhook Health","description":"SendGrid Event Webhook health over the last 24 hours.","operationId":"admin_email_webhook_health_api_v1_admin_email_deliveries_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailWebhookHealth"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-health":{"get":{"tags":["email-health"],"summary":"Email Health Summary","description":"Verdict, KPIs (all / order & account mail / campaigns), the latest DNS\ncheck and the \"Fix these\" list.","operationId":"email_health_summary_api_v1_workspaces__workspace_id__email_health_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailHealthSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-health/emails":{"get":{"tags":["email-health"],"summary":"Email Health Emails","description":"Email sent under the workspace's name, each with its delivery trail.\nAuth-mail subjects carry no codes (masked when stored).","operationId":"email_health_emails_api_v1_workspaces__workspace_id__email_health_emails_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","failed","sent","deferred","delivered","opened","clicked","unsubscribed","bounced","blocked","dropped","spam_reported"],"type":"string"},{"type":"null"}],"title":"State"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthEmailPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-health/dealers":{"get":{"tags":["email-health"],"summary":"Email Health Dealer Flags","description":"Dealers whose mail is not arriving (the dealer list's warning icon).","operationId":"email_health_dealer_flags_api_v1_workspaces__workspace_id__email_health_dealers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DealerEmailFlag"},"title":"Response Email Health Dealer Flags Api V1 Workspaces  Workspace Id  Email Health Dealers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-health/dealers/{membership_id}":{"get":{"tags":["email-health"],"summary":"Email Health Dealer","description":"One dealer's email health, per address of the dealer's people.","operationId":"email_health_dealer_api_v1_workspaces__workspace_id__email_health_dealers__membership_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerEmailHealth"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-health/dealers/{membership_id}/requests":{"post":{"tags":["email-health"],"summary":"Email Health Dealer Request","description":"Ask platform support to try a suppressed dealer address again, or to\nchange it. Opens a support ticket; the address must be one of the dealer's.","operationId":"email_health_dealer_request_api_v1_workspaces__workspace_id__email_health_dealers__membership_id__requests_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerEmailRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerEmailRequestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-health/domain-check":{"post":{"tags":["email-health"],"summary":"Email Health Check Domain","description":"Re-check the verified sending domain's DNS now (\"Check now\").","operationId":"email_health_check_domain_api_v1_workspaces__workspace_id__email_health_domain_check_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCheckRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-health/domains":{"get":{"tags":["admin"],"summary":"Admin Email Health Domains","description":"Every sending domain (tuner and platform) with delivery numbers and DNS state.","operationId":"admin_email_health_domains_api_v1_admin_email_health_domains_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SendingDomainRow"},"title":"Response Admin Email Health Domains Api V1 Admin Email Health Domains Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-health/ips":{"get":{"tags":["admin"],"summary":"Admin Email Health Ips","description":"Blocks by recipient blocklists, per SendGrid sending IP.","operationId":"admin_email_health_ips_api_v1_admin_email_health_ips_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SendingIpRow"},"title":"Response Admin Email Health Ips Api V1 Admin Email Health Ips Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-health/suppressions":{"get":{"tags":["admin"],"summary":"Admin Email Health Suppressions","description":"The platform-wide suppression list; tuner retry requests first.","operationId":"admin_email_health_suppressions_api_v1_admin_email_health_suppressions_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Q"}},{"name":"requested","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Requested"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-health/suppressions/{suppression_id}/lift":{"post":{"tags":["admin"],"summary":"Admin Email Health Lift","description":"Lift a suppression: the address is mailed again. Audited twice — the\nadmin audit log and an ``email.suppression_lifted`` outbox event.","operationId":"admin_email_health_lift_api_v1_admin_email_health_suppressions__suppression_id__lift_post","parameters":[{"name":"suppression_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suppression Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-health/domains/{workspace_id}/check":{"post":{"tags":["admin"],"summary":"Admin Email Health Check Domain","description":"Re-check any workspace's verified sending domain now.","operationId":"admin_email_health_check_domain_api_v1_admin_email_health_domains__workspace_id__check_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCheckRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/connection":{"get":{"tags":["evc"],"summary":"Get Connection","description":"This workspace's reseller connection. Never returns the API password.","operationId":"get_connection_api_v1_evc_workspaces__workspace_id__connection_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EvcConnectionRead"},{"type":"null"}],"title":"Response Get Connection Api V1 Evc Workspaces  Workspace Id  Connection Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["evc"],"summary":"Save Connection","description":"Store the reseller credentials, after proving they work.\n\nVerifying before saving means a typo surfaces here rather than as silently\nfailing top-ups hours later. EVC publishes customer 33333 for exactly this.","operationId":"save_connection_api_v1_evc_workspaces__workspace_id__connection_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcConnectionWrite"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["evc"],"summary":"Disable Connection","description":"Stop selling WinOLS credits. Credentials are kept so it can be switched on.\n\nSales stop immediately: the packs leave the shop and the purchase guard\nrefuses. Deliveries do NOT stop — the beat jobs keep servicing this\nworkspace until every push a buyer already paid for has resolved. Returns\nwhat is still in flight so the console can say so.","operationId":"disable_connection_api_v1_evc_workspaces__workspace_id__connection_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcOutstanding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/connection/test":{"post":{"tags":["evc"],"summary":"Test Connection","description":"Re-check the stored credentials against evc.de.\n\nThe same probe ``save_connection`` runs, against EVC's published test\ncustomer — but on what is stored rather than on what was typed, so a tuner\ncan tell \"my password was rotated at evc.de\" from \"the feature is off\"\nwithout re-entering anything. Reads while paused too: a paused connection\nstill has deliveries to make, and its health is worth knowing.","operationId":"test_connection_api_v1_evc_workspaces__workspace_id__connection_test_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Test Connection Api V1 Evc Workspaces  Workspace Id  Connection Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/outstanding":{"get":{"tags":["evc"],"summary":"Get Outstanding","description":"Deliveries still owed to buyers — the pre-flight before switching off.","operationId":"get_outstanding_api_v1_evc_workspaces__workspace_id__outstanding_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcOutstanding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/topups/{topup_id}/retry":{"post":{"tags":["evc"],"summary":"Retry Topup","description":"Queue a refused credit delivery again — for after the buyer is linked.\n\nOnly a delivery EVC refused (``failed`` / ``unlinked``) can be retried:\nnothing moved, so sending again cannot credit twice. A ``sent`` one is\nrefused here — its outcome is unknown and only reconciliation may settle it.\nThe next worker run (within two minutes) makes the push.","operationId":"retry_topup_api_v1_evc_workspaces__workspace_id__topups__topup_id__retry_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"topup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Topup Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/connection/enable":{"post":{"tags":["evc"],"summary":"Enable Connection","description":"Start selling again with the credentials already stored.\n\nRefused when none are stored — enabling a connection that cannot call\nevc.de would put packs back in the shop that no push could ever deliver.","operationId":"enable_connection_api_v1_evc_workspaces__workspace_id__connection_enable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/customers":{"get":{"tags":["evc"],"summary":"List Customers","description":"WinOLS buyers, our balance beside the one EVC last reported.","operationId":"list_customers_api_v1_evc_workspaces__workspace_id__customers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvcCustomerRead"},"title":"Response List Customers Api V1 Evc Workspaces  Workspace Id  Customers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/purchases":{"get":{"tags":["evc"],"summary":"List Purchases","description":"What buyers bought — the demand signal, not a money record.","operationId":"list_purchases_api_v1_evc_workspaces__workspace_id__purchases_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvcPurchaseRead"},"title":"Response List Purchases Api V1 Evc Workspaces  Workspace Id  Purchases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/unlinked-customers":{"get":{"tags":["evc"],"summary":"List Unlinked Customers","description":"EVC customers we cannot put a dealer to yet — their purchases wait here\nuntil the tuner links or invites them.","operationId":"list_unlinked_customers_api_v1_evc_workspaces__workspace_id__unlinked_customers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvcUnlinkedCustomer"},"title":"Response List Unlinked Customers Api V1 Evc Workspaces  Workspace Id  Unlinked Customers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/customers/{evc_customer_number}/invite":{"post":{"tags":["evc"],"summary":"Invite Customer","description":"Open a portal account for an EVC customer and email them the link to\nset their password. Their WinOLS purchases become orders in it.","operationId":"invite_customer_api_v1_evc_workspaces__workspace_id__customers__evc_customer_number__invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"evc_customer_number","in":"path","required":true,"schema":{"type":"integer","title":"Evc Customer Number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcInviteCustomer"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite Customer Api V1 Evc Workspaces  Workspace Id  Customers  Evc Customer Number  Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/workspaces/{workspace_id}/customers/{evc_customer_number}/link":{"post":{"tags":["evc"],"summary":"Link Customer","description":"Say which of the tuner's dealers an EVC customer number belongs to.\n\nOnly an existing dealer of this workspace: an org id from anywhere else\nwould hand a stranger this buyer's purchases and balance.","operationId":"link_customer_api_v1_evc_workspaces__workspace_id__customers__evc_customer_number__link_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"evc_customer_number","in":"path","required":true,"schema":{"type":"integer","title":"Evc Customer Number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcLinkCustomer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Link Customer Api V1 Evc Workspaces  Workspace Id  Customers  Evc Customer Number  Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/sites/{site}/storefront":{"get":{"tags":["evc"],"summary":"Get Storefront","description":"The public buy page: this tuner's name and their WinOLS credit packs.","operationId":"get_storefront_api_v1_evc_sites__site__storefront_get","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcStorefront"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/sites/{site}/check-customer":{"post":{"tags":["evc"],"summary":"Check Customer","description":"Does this EVC number exist, is it already ours, and what does it hold?\n\nThe guard that has to run before money moves: credits sent to a mistyped\nnumber land on a stranger's account and cannot be recovered. Open to\nunauthenticated callers because the buyer has not signed up yet, which is\nalso why it carries its own strict rate limit — every field here is an\nanswer about one identifier, and identifiers can be walked.","operationId":"check_customer_api_v1_evc_sites__site__check_customer_post","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","title":"Site"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcCustomerCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcCustomerCheck"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evc/sites/{site}/checkout":{"post":{"tags":["evc"],"summary":"Start Checkout","description":"Buy WinOLS credits without an account here, and get one in the process.\n\nThe order matters. The EVC number is proved to exist *before* anything is\nwritten, because that number is where the credits eventually land and a\ntypo cannot be undone. Only then does the buyer get an organisation, a user\nand an invited membership — the wallet has to exist before the settle path\ncan credit it, so a genuinely account-less payment has nowhere to land.\n\nThey finish as a real dealer of this tuner, so the next purchase, the\ninvoice and the balance all use the machinery every other dealer uses.","operationId":"start_checkout_api_v1_evc_sites__site__checkout_post","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","title":"Site"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvcCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Checkout Api V1 Evc Sites  Site  Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles":{"get":{"tags":["catalogue"],"summary":"List Vehicles","operationId":"list_vehicles_api_v1_vehicles_get","parameters":[{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NodeRead"},"title":"Response List Vehicles Api V1 Vehicles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles/search":{"get":{"tags":["catalogue"],"summary":"Search Vehicles","description":"Hybrid semantic + lexical vehicle search over the imported catalogue.","operationId":"search_vehicles_api_v1_vehicles_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"make","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"}},{"name":"fuel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"}},{"name":"body","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"}},{"name":"year_from","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year From"}},{"name":"year_to","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year To"}},{"name":"power_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Min"}},{"name":"power_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Max"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleSearchResult"},"title":"Response Search Vehicles Api V1 Vehicles Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles/variants":{"get":{"tags":["catalogue"],"summary":"Engine Variants","description":"Exact priced engine variants for a make + model (used after a file match).","operationId":"engine_variants_api_v1_vehicles_variants_get","parameters":[{"name":"make","in":"query","required":true,"schema":{"type":"string","title":"Make"}},{"name":"model","in":"query","required":true,"schema":{"type":"string","title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleSearchResult"},"title":"Response Engine Variants Api V1 Vehicles Variants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles/{catalogue_node_id}/stages":{"get":{"tags":["catalogue"],"summary":"List Stages","description":"Active tuning stages with power/torque gains (order step 2).\n\n``workspace_id`` (authed, only for parties inside that workspace) scopes the\nset to the tuner's own: their OWN stages are added and any platform stage they\nhid is dropped — the tunes that workspace's dealers actually order.\n\n``bill_to_invoice`` selects the CURRENCY the money price is stated in (the\ncycle bills in the dealer's own, a pay-now order in the tuner's), mirroring\nthe add-on list and the live quote.","operationId":"list_stages_api_v1_vehicles__catalogue_node_id__stages_get","parameters":[{"name":"catalogue_node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Catalogue Node Id"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},{"name":"bill_to_invoice","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Bill To Invoice"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EngineStageRead"},"title":"Response List Stages Api V1 Vehicles  Catalogue Node Id  Stages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stages":{"get":{"tags":["catalogue"],"summary":"List Default Stages","description":"The stages on offer for a car with no catalogue engine (order step 3).\n\nA car typed in because we do not list it, or one the dealer did not name:\nthe workspace's (or platform's) default Stage 1/2/3 at their default\nprice, without gains. Scoping, currency and partner price-stripping are\nthose of the per-engine list.","operationId":"list_default_stages_api_v1_stages_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},{"name":"bill_to_invoice","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Bill To Invoice"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EngineStageRead"},"title":"Response List Default Stages Api V1 Stages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles/{catalogue_node_id}/ecu":{"get":{"tags":["catalogue"],"summary":"Engine Ecu","description":"The engine's ECU candidates, for the confirm step's suggestion picker when\nthe car is picked without a file (plate / search / browse).","operationId":"engine_ecu_api_v1_vehicles__catalogue_node_id__ecu_get","parameters":[{"name":"catalogue_node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Catalogue Node Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineEcuRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/addons":{"get":{"tags":["catalogue"],"summary":"List Addons","description":"Active add-on catalogue (no engine context).\n\nAnonymous / no ``workspace_id``: the global pool catalogue. With a\n``workspace_id`` (authed, and only for parties inside that workspace) the\nlist adds the tuner's own add-ons and resolves every price through their\nprice book — the amounts that workspace's dealers actually pay.\n\nMoney is stated in the currency the ORDER would charge (``charge_currency``:\nthe tuner's settlement currency for pay-now, the caller's own for\ncycle-billed via ``bill_to_invoice``; base when anonymous), so the options\nstep shows what the quote will charge.","operationId":"list_addons_api_v1_addons_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},{"name":"bill_to_invoice","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Bill To Invoice"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddonRead"},"title":"Response List Addons Api V1 Addons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles/{catalogue_node_id}/addons":{"get":{"tags":["catalogue"],"summary":"List Addons For Engine","description":"Add-ons that apply to this engine (order step 3).\n\nOptions that can't apply to the car (a diesel-only service on a petrol) are\nomitted; the rest carry an ``eligibility`` of ``eligible`` or ``verify``.\n``workspace_id`` scopes + prices the list for a tuner order (see /addons).","operationId":"list_addons_for_engine_api_v1_vehicles__catalogue_node_id__addons_get","parameters":[{"name":"catalogue_node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Catalogue Node Id"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},{"name":"bill_to_invoice","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Bill To Invoice"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddonRead"},"title":"Response List Addons For Engine Api V1 Vehicles  Catalogue Node Id  Addons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/addons":{"get":{"tags":["catalogue"],"summary":"Admin Addons List","description":"The full add-on registry (includes inactive, editable).","operationId":"admin_addons_list_api_v1_admin_addons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AddonAdminRead"},"type":"array","title":"Response Admin Addons List Api V1 Admin Addons Get"}}}}}},"post":{"tags":["catalogue"],"summary":"Admin Addons Create","description":"Add a priced add-on to the catalogue.","operationId":"admin_addons_create_api_v1_admin_addons_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonAdminRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/addons/{addon_id}":{"patch":{"tags":["catalogue"],"summary":"Admin Addons Update","description":"Edit an add-on.","operationId":"admin_addons_update_api_v1_admin_addons__addon_id__patch","parameters":[{"name":"addon_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Addon Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonAdminRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogue"],"summary":"Admin Addons Delete","description":"Remove an add-on from the catalogue.","operationId":"admin_addons_delete_api_v1_admin_addons__addon_id__delete","parameters":[{"name":"addon_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Addon Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/addons":{"get":{"tags":["catalogue","workspaces"],"summary":"Workspace Addons List","description":"The tuner's own add-ons, incl. inactive (their registry view).","operationId":"workspace_addons_list_api_v1_workspaces__workspace_id__addons_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceAddonRead"},"title":"Response Workspace Addons List Api V1 Workspaces  Workspace Id  Addons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["catalogue","workspaces"],"summary":"Workspace Addons Create","description":"Add a service to the tuner's own menu (409 when the code is taken).","operationId":"workspace_addons_create_api_v1_workspaces__workspace_id__addons_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAddonWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAddonRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/addons/{addon_id}":{"patch":{"tags":["catalogue","workspaces"],"summary":"Workspace Addons Update","description":"Edit one of the tuner's own add-ons.","operationId":"workspace_addons_update_api_v1_workspaces__workspace_id__addons__addon_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"addon_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Addon Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAddonWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAddonRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogue","workspaces"],"summary":"Workspace Addons Delete","description":"Remove one of the tuner's own add-ons (order history keeps its code).","operationId":"workspace_addons_delete_api_v1_workspaces__workspace_id__addons__addon_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"addon_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Addon Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/stages":{"get":{"tags":["catalogue","workspaces"],"summary":"Workspace Stages List","description":"The tuner's own default stages, incl. inactive (their registry view).","operationId":"workspace_stages_list_api_v1_workspaces__workspace_id__stages_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceStageRead"},"title":"Response Workspace Stages List Api V1 Workspaces  Workspace Id  Stages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["catalogue","workspaces"],"summary":"Workspace Stages Create","description":"Add a tune to the tuner's own menu (409 when the label is taken).","operationId":"workspace_stages_create_api_v1_workspaces__workspace_id__stages_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceStageWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceStageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/stages/{stage_id}":{"patch":{"tags":["catalogue","workspaces"],"summary":"Workspace Stages Update","description":"Edit one of the tuner's own tunes.","operationId":"workspace_stages_update_api_v1_workspaces__workspace_id__stages__stage_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceStageWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceStageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogue","workspaces"],"summary":"Workspace Stages Delete","description":"Remove one of the tuner's own tunes (order history keeps its label).","operationId":"workspace_stages_delete_api_v1_workspaces__workspace_id__stages__stage_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/catalogue/hidden":{"get":{"tags":["catalogue","workspaces"],"summary":"Workspace Hidden List","description":"The platform stages/add-ons this workspace has removed from its catalogue.","operationId":"workspace_hidden_list_api_v1_workspaces__workspace_id__catalogue_hidden_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HiddenItem"},"title":"Response Workspace Hidden List Api V1 Workspaces  Workspace Id  Catalogue Hidden Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["catalogue","workspaces"],"summary":"Workspace Hidden Add","description":"Remove a platform stage/add-on from THIS workspace. The shared platform row\nis untouched — a tuner hides, never deletes, platform items.","operationId":"workspace_hidden_add_api_v1_workspaces__workspace_id__catalogue_hidden_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HiddenItemWrite"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogue","workspaces"],"summary":"Workspace Hidden Remove","description":"Restore a previously hidden platform item to this workspace's catalogue.","operationId":"workspace_hidden_remove_api_v1_workspaces__workspace_id__catalogue_hidden_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"item_type","in":"query","required":true,"schema":{"type":"string","title":"Item Type"}},{"name":"item_key","in":"query","required":true,"schema":{"type":"string","title":"Item Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/default-stages":{"get":{"tags":["catalogue"],"summary":"Admin Default Stages List","description":"The default stages offered for every engine (Stage 1/2/3), editable.","operationId":"admin_default_stages_list_api_v1_admin_default_stages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DefaultStageRead"},"type":"array","title":"Response Admin Default Stages List Api V1 Admin Default Stages Get"}}}}}},"post":{"tags":["catalogue"],"summary":"Admin Default Stages Create","description":"Add a default stage offered for every engine.","operationId":"admin_default_stages_create_api_v1_admin_default_stages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultStageWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultStageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/default-stages/{stage_id}":{"patch":{"tags":["catalogue"],"summary":"Admin Default Stages Update","description":"Edit a default stage's label, price, order or active flag.","operationId":"admin_default_stages_update_api_v1_admin_default_stages__stage_id__patch","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultStageWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultStageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogue"],"summary":"Admin Default Stages Delete","description":"Remove a default stage.","operationId":"admin_default_stages_delete_api_v1_admin_default_stages__stage_id__delete","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/stages":{"get":{"tags":["catalogue"],"summary":"Admin Stages List","description":"Paged, searchable tuning-stage registry (vehicle + gains + price).","operationId":"admin_stages_list_api_v1_admin_stages_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageAdminList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["catalogue"],"summary":"Admin Stages Create","description":"Add a manual tuning stage to an engine node.","operationId":"admin_stages_create_api_v1_admin_stages_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageAdminRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/stages/price":{"post":{"tags":["catalogue"],"summary":"Admin Stages Set Price","description":"Bulk-set the price for every stage of a label (e.g. all 'Stage 1').","operationId":"admin_stages_set_price_api_v1_admin_stages_price_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagePriceBulk"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"type":"object","title":"Response Admin Stages Set Price Api V1 Admin Stages Price Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/stages/{stage_id}":{"patch":{"tags":["catalogue"],"summary":"Admin Stages Update","description":"Edit a tuning stage's gains, price, or active flag.","operationId":"admin_stages_update_api_v1_admin_stages__stage_id__patch","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageAdminRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogue"],"summary":"Admin Stages Delete","description":"Remove a tuning stage.","operationId":"admin_stages_delete_api_v1_admin_stages__stage_id__delete","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/vehicles":{"post":{"tags":["catalogue"],"summary":"Admin Create Vehicle Node","description":"Create a catalogue node (type/make/model/generation/engine) by hand.","operationId":"admin_create_vehicle_node_api_v1_admin_vehicles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/vehicles/{node_id}":{"patch":{"tags":["catalogue"],"summary":"Admin Update Vehicle Node","description":"Rename or re-parent a catalogue node.","operationId":"admin_update_vehicle_node_api_v1_admin_vehicles__node_id__patch","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogue"],"summary":"Admin Delete Vehicle Node","description":"Delete a leaf node (an engine also drops its specs + stage rows).","operationId":"admin_delete_vehicle_node_api_v1_admin_vehicles__node_id__delete","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/vehicles/{node_id}/specs":{"get":{"tags":["catalogue"],"summary":"Admin Get Vehicle Specs","description":"The stored specs for an engine node (null when none set yet).","operationId":"admin_get_vehicle_specs_api_v1_admin_vehicles__node_id__specs_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EngineSpecsRead"},{"type":"null"}],"title":"Response Admin Get Vehicle Specs Api V1 Admin Vehicles  Node Id  Specs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["catalogue"],"summary":"Admin Upsert Vehicle Specs","description":"Set an engine node's technical specs by hand (re-embeds for search).","operationId":"admin_upsert_vehicle_specs_api_v1_admin_vehicles__node_id__specs_put","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineSpecsWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineSpecsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/plans":{"get":{"tags":["catalog"],"summary":"List Plans","description":"Every plan with its entitlement map + live active-subscriber count.","operationId":"list_plans_api_v1_admin_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlanRead"},"type":"array","title":"Response List Plans Api V1 Admin Plans Get"}}}}}},"post":{"tags":["catalog"],"summary":"Create Plan","description":"Create a new plan (``code`` is create-only; 409 on a duplicate).","operationId":"create_plan_api_v1_admin_plans_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/plans/{code}/sync-price":{"post":{"tags":["catalog"],"summary":"Retry Plan Price","description":"Retry publication of the current plan revision.","operationId":"retry_plan_price_api_v1_admin_plans__code__sync_price_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/plans/{code}":{"patch":{"tags":["catalog"],"summary":"Update Plan","description":"Live-edit a plan's metadata + entitlement matrix (audited). 404 if unknown.\n\nPrice editing here only sets the display price — Stripe price sync is Phase 4\n(see ``CatalogCommands.update_plan``).","operationId":"update_plan_api_v1_admin_plans__code__patch","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/catalog/registry":{"get":{"tags":["catalog"],"summary":"Catalog Registry","description":"The entitlement-key registry as data for the matrix editor (§13.8).","operationId":"catalog_registry_api_v1_admin_catalog_registry_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EntitlementKeyRead"},"type":"array","title":"Response Catalog Registry Api V1 Admin Catalog Registry Get"}}}}}}},"/api/v1/admin/catalog/changes":{"get":{"tags":["catalog"],"summary":"Catalog Changes","description":"The catalog change-log feed (actor, action, plan/workspace, reason, diff).","operationId":"catalog_changes_api_v1_admin_catalog_changes_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/CatalogChangeRead"},"title":"Response Catalog Changes Api V1 Admin Catalog Changes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/entitlements":{"get":{"tags":["catalog"],"summary":"Workspace Entitlements","description":"A workspace's resolved entitlement map + its raw override rows (§13.3c).","operationId":"workspace_entitlements_api_v1_admin_workspaces__workspace_id__entitlements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEntitlementsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/entitlements/{key}":{"put":{"tags":["catalog"],"summary":"Set Workspace Override","description":"Set a single per-tuner entitlement override (audited). 404 if workspace absent.","operationId":"set_workspace_override_api_v1_admin_workspaces__workspace_id__entitlements__key__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEntitlementsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalog"],"summary":"Clear Workspace Override","description":"Clear a per-tuner override so the key inherits the plan default (idempotent).","operationId":"clear_workspace_override_api_v1_admin_workspaces__workspace_id__entitlements__key__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEntitlementsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/plan":{"put":{"tags":["catalog"],"summary":"Assign Plan","description":"Directly assign a plan to a workspace (admin move, no Stripe checkout).\n\n409 (seat-downgrade guard, §14.2) if the target plan's ``limit:admin_seats``\nsits below the team already in use; 404 for an unknown workspace or plan.","operationId":"assign_plan_api_v1_admin_workspaces__workspace_id__plan_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAssignResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/purchase":{"post":{"tags":["payments"],"summary":"Start Purchase","operationId":"start_purchase_api_v1_credits_purchase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPurchaseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Start Purchase Api V1 Credits Purchase Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/purchase-availability":{"get":{"tags":["payments"],"summary":"Purchase Availability","description":"Whether the caller can buy credits from ``workspace_id`` right now — the\ncard reads this to show the reason (and fix) up front rather than offering\npacks that fail on click. Only that tuner's own dealers and partners may ask.","operationId":"purchase_availability_api_v1_credits_purchase_availability_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseAvailability"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/providers":{"get":{"tags":["payments"],"summary":"Payment Providers","description":"Which ways of paying a checkout in ``currency`` may offer: Stripe (cards,\niDEAL, Bancontact and the rest it hosts) always, PayPal when it is\nconfigured and holds a balance in that currency.","operationId":"payment_providers_api_v1_payments_providers_get","parameters":[{"name":"currency","in":"query","required":false,"schema":{"type":"string","default":"EUR","title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentProviders"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/payments/funding":{"get":{"tags":["payments"],"summary":"Admin Funding","description":"What the hand-made Stripe top-up for PayPal-paid sales has to cover:\nboth balances, the sales waiting for their tuner transfer, and the\nshortfall per currency.","operationId":"admin_funding_api_v1_admin_payments_funding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingOverview"}}}}}}},"/api/v1/webhooks/stripe":{"post":{"tags":["payments"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_v1_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Stripe Webhook Api V1 Webhooks Stripe Post"}}}}}}},"/api/v1/webhooks/paypal":{"post":{"tags":["payments"],"summary":"Paypal Webhook","description":"PayPal's events for the platform account: approvals to capture, captures\nthat settle, and buyer disputes. Verified against PayPal before anything\nis trusted; a delivery that does not verify is refused, not retried.","operationId":"paypal_webhook_api_v1_webhooks_paypal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Paypal Webhook Api V1 Webhooks Paypal Post"}}}}}}},"/api/v1/invoices":{"get":{"tags":["payments"],"summary":"List Invoices","description":"The caller's invoices — received as a buyer (default) or issued to dealers —\noptionally filtered to an inclusive date range and paginated (newest first).\n\n``scope`` splits the two streams a tuner cares about separately:\n``subscription`` is what they pay the platform, ``business`` their own trade.\nFiltering happens in SQL so paging counts only the rows asked for.","operationId":"list_invoices_api_v1_invoices_get","parameters":[{"name":"direction","in":"query","required":false,"schema":{"enum":["received","issued"],"type":"string","default":"received","title":"Direction"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Until"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"enum":["subscription","business"],"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceSummary"},"title":"Response List Invoices Api V1 Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}":{"get":{"tags":["payments"],"summary":"Get Invoice","operationId":"get_invoice_api_v1_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/orders":{"get":{"tags":["payments"],"summary":"Invoice Orders","description":"The orders an invoice was built from — what its total is made of.\n\nOpen to either party, the same as reading the document: a monthly invoice is\na number until you can see the jobs inside it, and that is true for the tuner\nwho issued it and the dealer who has to check it.","operationId":"invoice_orders_api_v1_invoices__invoice_id__orders_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceOrderLine"},"title":"Response Invoice Orders Api V1 Invoices  Invoice Id  Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/download":{"get":{"tags":["payments"],"summary":"Download Invoice","operationId":"download_invoice_api_v1_invoices__invoice_id__download_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Invoice Api V1 Invoices  Invoice Id  Download Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payouts/connect/start":{"post":{"tags":["payouts"],"summary":"Connect Start","operationId":"connect_start_api_v1_payouts_connect_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingLink"}}}}}}},"/api/v1/payouts/connect/status":{"get":{"tags":["payouts"],"summary":"Connect Status","operationId":"connect_status_api_v1_payouts_connect_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}}}}},"/api/v1/payouts/connect/manage":{"post":{"tags":["payouts"],"summary":"Connect Manage","operationId":"connect_manage_api_v1_payouts_connect_manage_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingLink"}}}}}}},"/api/v1/payouts/connect/switch":{"post":{"tags":["payouts"],"summary":"Connect Switch","description":"Replace the tuner's pool payout account: detach the current one so they can\nonboard a different Stripe account. 409 (with pending counts) while earnings\nare still owed on this rail — they must be paid out first.","operationId":"connect_switch_api_v1_payouts_connect_switch_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__payout__schemas__ConnectSwitchResult"}}}}}}},"/api/v1/payouts/earnings":{"get":{"tags":["payouts"],"summary":"My Earnings","operationId":"my_earnings_api_v1_payouts_earnings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TunerEarningRead"},"type":"array","title":"Response My Earnings Api V1 Payouts Earnings Get"}}}}}}},"/api/v1/payouts/shortfall":{"get":{"tags":["payouts"],"summary":"My Shortfall","description":"Minimum-payout shortfalls this tuner still owes, in cents.\n\nA delegated order whose partner minimum came to more than the order earned\nleaves the difference on the delegating tuner, recovered by netting against\ntheir later payouts. Surfacing it is the difference between a smaller\ntransfer they can explain and one that just looks wrong.","operationId":"my_shortfall_api_v1_payouts_shortfall_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"type":"object","title":"Response My Shortfall Api V1 Payouts Shortfall Get"}}}}}}},"/api/v1/payouts/revenue":{"get":{"tags":["payouts"],"summary":"My Revenue","description":"The tuner's workspace-rail sales (credit packs + per-file + monthly invoices)\nacross all their workspaces — the finance \"Sales\" feed the earnings rail omits.","operationId":"my_revenue_api_v1_payouts_revenue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceRevenueRow"},"type":"array","title":"Response My Revenue Api V1 Payouts Revenue Get"}}}}}}},"/api/v1/payouts/revenue/{payment_id}/refund":{"post":{"tags":["payouts"],"summary":"Refund Credit Pack Sale","description":"Refund (part of) a credit-pack sale — money + the buyer's unspent credits.\n\nTuner/admin only. A tuner is always scoped to a pack sold on one of their own\nworkspaces; an admin may refund any. The refund is pro-rated to the credits\nstill unspent in the buyer's wallet (see ``refund_credit_pack``).","operationId":"refund_credit_pack_sale_api_v1_payouts_revenue__payment_id__refund_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/CreditPackRefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refund Credit Pack Sale Api V1 Payouts Revenue  Payment Id  Refund Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/payouts":{"get":{"tags":["payouts"],"summary":"Admin Payouts","operationId":"admin_payouts_api_v1_admin_payouts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminTunerEarningRead"},"title":"Response Admin Payouts Api V1 Admin Payouts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tuners/{user_id}/payout-policy":{"put":{"tags":["payouts"],"summary":"Set Payout Policy","operationId":"set_payout_policy_api_v1_admin_tuners__user_id__payout_policy_put","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/PayoutPolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Payout Policy Api V1 Admin Tuners  User Id  Payout Policy Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/stripe/connect":{"post":{"tags":["payouts"],"summary":"Connect Webhook","operationId":"connect_webhook_api_v1_webhooks_stripe_connect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Connect Webhook Api V1 Webhooks Stripe Connect Post"}}}}}}},"/api/v1/refund-requests/order/{order_id}":{"get":{"tags":["refund-requests"],"summary":"Order Refund Request","description":"The order's refund request as the viewer sees it, and what they may do:\nthe partner may ask or withdraw, the delegating tuner and a platform admin\nmay approve or decline. 404 for anyone with no stake in the order.","operationId":"order_refund_request_api_v1_refund_requests_order__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRefundRequestView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/refund-requests":{"post":{"tags":["refund-requests"],"summary":"Create Refund Request","description":"The partner who delivered a delegated order asks for it to be refunded,\nin whole (no amount) or in part, with a reason. One open request per order;\nthe order's payout stays on the platform until it is answered.","operationId":"create_refund_request_api_v1_refund_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/refund-requests/{request_id}/withdraw":{"post":{"tags":["refund-requests"],"summary":"Withdraw Refund Request","description":"The partner takes back their own open request.","operationId":"withdraw_refund_request_api_v1_refund_requests__request_id__withdraw_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/refund-requests/{request_id}/approve":{"post":{"tags":["refund-requests"],"summary":"Approve Refund Request","description":"The delegating tuner (or a platform admin) refunds the order as asked.\n\nRuns the ordinary refund on the order's own rail: credits back to the\ndealer's wallet, an on-account line voided, or the card refunded after the\npayout is clawed back. The dealer is told as for any refund; the partner is\ntold the request was approved.","operationId":"approve_refund_request_api_v1_refund_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RefundRequestApprove"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/refund-requests/{request_id}/decline":{"post":{"tags":["refund-requests"],"summary":"Decline Refund Request","description":"The delegating tuner (or a platform admin) says no, with a reason the\npartner reads. The order's payout is released to the sweep again.","operationId":"decline_refund_request_api_v1_refund_requests__request_id__decline_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestDecline"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/partner-balance":{"get":{"tags":["partner-balance"],"summary":"Partner Balance","description":"Per partner and currency: what this organisation owes or is owed on\naccount, how each leg was covered, the running balance and statements.","operationId":"partner_balance_api_v1_tuner_finance_partner_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerBalanceCard"},"type":"array","title":"Response Partner Balance Api V1 Tuner Finance Partner Balance Get"}}}}}}},"/api/v1/tuner/finance/partner-balance/statements/{statement_id}":{"get":{"tags":["partner-balance"],"summary":"Partner Statement","description":"One statement as a document, for its debtor or its creditor.","operationId":"partner_statement_api_v1_tuner_finance_partner_balance_statements__statement_id__get","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerStatementDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tuner/finance/partner-balance/statements/{statement_id}/pay":{"post":{"tags":["partner-balance"],"summary":"Pay Partner Statement","description":"Open (or reuse) the Checkout for a statement's total. Debtor only.","operationId":"pay_partner_statement_api_v1_tuner_finance_partner_balance_statements__statement_id__pay_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementPayResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plans":{"get":{"tags":["plans"],"summary":"List Plans","description":"The active plans the caller can pick, cheapest first.\n\nThe ladder follows the caller's role: a dealer is shown the website / mail /\nassistant tiers, everyone else the storefront tiers. Deriving it from the\nprincipal rather than a query parameter means a picker cannot be pointed at\nthe wrong ladder, and an admin previewing the catalogue sees the tuner one,\nwhich is the one they administer.","operationId":"list_plans_api_v1_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PublicPlanRead"},"type":"array","title":"Response List Plans Api V1 Plans Get"}}}}}}},"/api/v1/public/plans":{"get":{"tags":["plans"],"summary":"Public Plans","description":"The active plans of one ladder for the anonymous marketing sites,\ncheapest first: the dealer (website) ladder for the dealer sites, the tuner\nladder for the pricing page; any other ``audience`` is rejected (422).","operationId":"public_plans_api_v1_public_plans_get","parameters":[{"name":"audience","in":"query","required":true,"schema":{"enum":["dealer","tuner"],"type":"string","title":"Audience"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlanSummaryPublic"},"title":"Response Public Plans Api V1 Public Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/platform-profile":{"get":{"tags":["platform-config"],"summary":"Admin Platform Profile Get","description":"The platform company / branding / invoice profile (env-seeded until saved).","operationId":"admin_platform_profile_get_api_v1_admin_platform_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformProfileRead"}}}}}},"put":{"tags":["platform-config"],"summary":"Admin Platform Profile Update","description":"Edit the platform profile — deep-merges identity / visual / invoice.","operationId":"admin_platform_profile_update_api_v1_admin_platform_profile_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/platform-profile/assets/upload-url":{"post":{"tags":["platform-config"],"summary":"Admin Platform Asset Upload Url","description":"Presign a PUT so the admin can upload the platform logo/icon to storage.","operationId":"admin_platform_asset_upload_url_api_v1_admin_platform_profile_assets_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetUploadResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/platform-profile/assets/confirm":{"post":{"tags":["platform-config"],"summary":"Admin Platform Asset Confirm","description":"Validate the finished upload, publish it, and store its URL on the profile.","operationId":"admin_platform_asset_confirm_api_v1_admin_platform_profile_assets_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/platform-fee-config":{"get":{"tags":["platform-config"],"summary":"Admin Platform Fee Config Get","operationId":"admin_platform_fee_config_get_api_v1_admin_platform_fee_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformFeeConfigRead"}}}}}},"put":{"tags":["platform-config"],"summary":"Admin Platform Fee Config Update","operationId":"admin_platform_fee_config_update_api_v1_admin_platform_fee_config_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformFeeConfigWrite"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformFeeConfigRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/method-fees":{"get":{"tags":["platform-config"],"summary":"Admin Method Fees Get","description":"The per-method Model M2 margin table (chunk 2.4, method-aware).","operationId":"admin_method_fees_get_api_v1_admin_method_fees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MethodFeeRead"},"type":"array","title":"Response Admin Method Fees Get Api V1 Admin Method Fees Get"}}}}}},"put":{"tags":["platform-config"],"summary":"Admin Method Fees Update","description":"Upsert the per-method margin + estimated-cost knobs.","operationId":"admin_method_fees_update_api_v1_admin_method_fees_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MethodFeesWrite"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MethodFeeRead"},"type":"array","title":"Response Admin Method Fees Update Api V1 Admin Method Fees Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/opening-hours":{"get":{"tags":["platform-config"],"summary":"Admin Opening Hours Get","description":"The platform-default opening-hours schedule (disabled/empty until set).","operationId":"admin_opening_hours_get_api_v1_admin_opening_hours_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningHoursRead"}}}}}},"put":{"tags":["platform-config"],"summary":"Admin Opening Hours Update","description":"Edit the platform-default schedule shown to dealers with no workspace hours.","operationId":"admin_opening_hours_update_api_v1_admin_opening_hours_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningHoursWrite"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningHoursRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/upload-url":{"post":{"tags":["file-services"],"summary":"Request Upload","operationId":"request_upload_api_v1_file_services_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/upload-confirm":{"post":{"tags":["file-services"],"summary":"Confirm Upload","description":"Confirm a presigned upload landed and kick off identification.\n\nThe wizard calls this right after PUTting the file so ``fileident.analyze``\nruns immediately (upload-first), instead of waiting for order creation.","operationId":"confirm_upload_api_v1_file_services_upload_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadConfirmRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Confirm Upload Api V1 File Services Upload Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/upload":{"post":{"tags":["file-services"],"summary":"Upload Original","description":"Upload an ECU read through the API (browser → API → object storage), so the\nbucket needs no browser CORS. One-shot replacement for presign + client PUT +\nconfirm: stores the file and kicks off identification.","operationId":"upload_original_api_v1_file_services_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_original_api_v1_file_services_upload_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginalFileUploaded"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services":{"post":{"tags":["file-services"],"summary":"Create Order","operationId":"create_order_api_v1_file_services_post","parameters":[{"name":"on_behalf_membership_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"On Behalf Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["file-services"],"summary":"List Orders","operationId":"list_orders_api_v1_file_services_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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/FileServiceListItem"},"title":"Response List Orders Api V1 File Services Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/draft":{"post":{"tags":["file-services"],"summary":"Create Draft","description":"Open (or resume) a DRAFT order at the wizard confirm step — file + engine\nsaved, no credit reserve. Idempotent on the uploaded file.\n\n``on_behalf_membership_id`` lets a tuner build the order for one of their own\nmonthly-invoice dealers or partners: the CUSTOMER owns it from this first\nstep, so every price quoted while composing it is already theirs.","operationId":"create_draft_api_v1_file_services_draft_post","parameters":[{"name":"on_behalf_membership_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"On Behalf Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}":{"patch":{"tags":["file-services"],"summary":"Update Draft","description":"Autosave a DRAFT order's selection/capture fields as later steps are filled.","operationId":"update_draft_api_v1_file_services__order_id__patch","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"on_behalf_membership_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"On Behalf Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["file-services"],"summary":"Get Order","operationId":"get_order_api_v1_file_services__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["file-services"],"summary":"Delete Order","description":"Dealer removes an unpaid/draft order. Rejected once it has entered the\nwork queue (reserved credits, tuner work, or a delivered file).","operationId":"delete_order_api_v1_file_services__order_id__delete","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/submit":{"post":{"tags":["file-services"],"summary":"Submit Draft","description":"Promote a DRAFT order to a live order (reserve credits, queue it).","operationId":"submit_draft_api_v1_file_services__order_id__submit_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"on_behalf_membership_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"On Behalf Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/quote":{"post":{"tags":["file-services"],"summary":"Create Quote","description":"Flow B — no-upload Instant Quote: price an engine stage (or options-only)\nplus add-ons and save it as a DRAFT quote. No file, no credit reserve.","operationId":"create_quote_api_v1_file_services_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/price":{"post":{"tags":["file-services"],"summary":"Price Quote","description":"Live price (credits + euros) for the wizard summary — creates NO order.\nA workspace's price book is priced only for its own tuner and dealers.\n\nWith no workspace named it quotes where submit would send the order: the\ndealer's own tuner, else the platform's home tuner, whose prices the pool\nalso charges (a dealer without a tuner is joined to it on submit).\n\n``on_behalf_membership_id`` quotes an order a tuner is placing for one of\ntheir customers the way submit charges it: the tuner's own price book, the\ncustomer's discount and currency, on the customer's invoice. Without it a\ntuner's own org has no tuner to order from, so the quote fell through to\nthe home tuner's prices and disagreed with the order it was quoting.","operationId":"price_quote_api_v1_file_services_price_post","parameters":[{"name":"on_behalf_membership_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"On Behalf Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceQuote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/queue":{"get":{"tags":["file-services"],"summary":"Queue","description":"The shared pool lane. Admins keep the global queue; a tuner sees only the\nclaimable platform-pool orders (private workspace orders never appear here).","operationId":"queue_api_v1_file_services_queue_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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/FileServiceRead"},"title":"Response Queue Api V1 File Services Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/queue/workspace":{"get":{"tags":["file-services"],"summary":"Workspace Queue","description":"The caller's private workspace lane — pending orders routed to a workspace\ntheir org owns. Empty for a tuner (or admin) with no workspaces.","operationId":"workspace_queue_api_v1_file_services_queue_workspace_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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/FileServiceRead"},"title":"Response Workspace Queue Api V1 File Services Queue Workspace Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/queue/delegated":{"get":{"tags":["file-services"],"summary":"Delegated Queue","description":"Sub-tuner B's lane: exactly the orders delegated to them (Phase 7). B sees\nonly these orders and nothing else of the delegating tuner's workspace.","operationId":"delegated_queue_api_v1_file_services_queue_delegated_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FileServiceRead"},"type":"array","title":"Response Delegated Queue Api V1 File Services Queue Delegated Get"}}}}}}},"/api/v1/file-services/{order_id}/vehicle":{"put":{"tags":["file-services"],"summary":"Set Order Vehicle","description":"The order's tuner names its car: a catalogue engine, or corrected\ntyped-in details. For orders placed with the car typed in or left out; the\nprice stays what the order was placed at.","operationId":"set_order_vehicle_api_v1_file_services__order_id__vehicle_put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderVehicleSet"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/claim":{"post":{"tags":["file-services"],"summary":"Claim Order","description":"Claim an order to work on it; claiming one you already hold returns it.","operationId":"claim_order_api_v1_file_services__order_id__claim_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/delivery-upload-url":{"post":{"tags":["file-services"],"summary":"Request Delivery Upload","description":"Presign the delivered (modified) file's upload for an order.\n\nWorkspace orders get a workspace-scoped key (the presign — and the later\ndownload — are authorized only for the owning tuner); pool orders get an\norg-scoped key.","operationId":"request_delivery_upload_api_v1_file_services__order_id__delivery_upload_url_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/delivery-precheck":{"post":{"tags":["file-services"],"summary":"Request Delivery Precheck","description":"Gate a staged file against the original before the tuner delivers it.\n\nFire-and-forget: the result arrives over WS as\n``order_delivery.precheck_completed``, not in this response.","operationId":"request_delivery_precheck_api_v1_file_services__order_id__delivery_precheck_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryPrecheckRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Delivery Precheck Api V1 File Services  Order Id  Delivery Precheck Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/revision":{"post":{"tags":["file-services"],"summary":"Deliver Order","operationId":"deliver_order_api_v1_file_services__order_id__revision_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/fail":{"post":{"tags":["file-services"],"summary":"Fail Order","operationId":"fail_order_api_v1_file_services__order_id__fail_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/cancel":{"post":{"tags":["file-services"],"summary":"Cancel Order","description":"Deliberately cancel an in-progress order and refund the dealer. Scope-guarded\nlike ``fail``: a tuner may only cancel pool orders or orders in their workspaces;\nan admin may cancel any order (including platform/pool tuneforge orders).","operationId":"cancel_order_api_v1_file_services__order_id__cancel_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/checkout":{"post":{"tags":["file-services"],"summary":"Checkout Order","description":"Start the one-time checkout (Stripe or PayPal) for a direct order.","operationId":"checkout_order_api_v1_file_services__order_id__checkout_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OrderCheckoutRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Checkout Order Api V1 File Services  Order Id  Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/checkout/sync":{"post":{"tags":["file-services"],"summary":"Sync Order Checkout","description":"Settle a just-completed checkout on the success return.\n\nBelt-and-suspenders for the ``checkout.session.completed`` webhook: when the\nbuyer returns from Stripe (``?checkout=success``) the client calls this to\nsettle the order immediately instead of waiting for the webhook or the\n30-min reconcile sweep. Idempotent and org-scoped; a no-op when there is no\npayment, it is already settled, or the session is still open.","operationId":"sync_order_checkout_api_v1_file_services__order_id__checkout_sync_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Order Checkout Api V1 File Services  Order Id  Checkout Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/accept":{"post":{"tags":["file-services"],"summary":"Accept Order","operationId":"accept_order_api_v1_file_services__order_id__accept_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/request-revision":{"post":{"tags":["file-services"],"summary":"Request Order Revision","description":"Dealer sends a delivered file back for changes with feedback.","operationId":"request_order_revision_api_v1_file_services__order_id__request_revision_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/refund":{"post":{"tags":["file-services"],"summary":"Refund Order","description":"Reverse a delivered order on the rail it was actually paid on.\n\nCredits go back to the dealer's wallet inline; an on-account order's unbilled\nusage line is voided by the ``file_service.refunded`` handler, so it never\nreaches the monthly invoice; direct (Stripe) money is refunded by that same\nhandler — so this and the escalations route behave identically.\n\n``credits`` refunds only part of a credit-funded order: those credits go back\nto the wallet and every payout leg comes down by the same fraction, including\na partner's share of a delegated order. The order itself stays delivered until\nthe refunds add up to its whole price.\n\nA tuner may only refund orders in their own workspaces, and not card charges\n(409 — those are ``/refund/money``, which takes an amount in euros); an admin\nmay refund any order on any rail.","operationId":"refund_order_api_v1_file_services__order_id__refund_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/refund/money":{"post":{"tags":["file-services"],"summary":"Refund Order Money","description":"Refund a workspace direct charge on the tuner's connected account.\n\nA tuner may refund only orders in one of their own workspaces (scoped by their\norg); a platform admin may refund any. The refund is issued on the connected\naccount and a credit note is generated inline (in PaymentService). Returns the\ncents actually refunded (0 when there is nothing left to refund).","operationId":"refund_order_money_api_v1_file_services__order_id__refund_money_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunerRefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refund Order Money Api V1 File Services  Order Id  Refund Money Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/refundable/workspace":{"get":{"tags":["file-services"],"summary":"Refundable Workspace Orders","description":"The tuner's delivered workspace orders that can still be given back.\n\nEvery rail, not just card charges: each row says whether refunding it moves\nmoney, returns credits, or drops an on-account line from the monthly invoice.\nScoped to the workspaces the tuner's org owns, so it only ever surfaces their\nown orders. Feeds the Refunds page and the order-detail refund action.\n\nCapped at the 200 most recent — the UI says so when the cap is reached.\n\nA platform admin reaches it only from one of their own storefronts in the\nportal switcher, and sees that storefront's orders alone.","operationId":"refundable_workspace_orders_api_v1_file_services_refundable_workspace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RefundableOrder"},"type":"array","title":"Response Refundable Workspace Orders Api V1 File Services Refundable Workspace Get"}}}}}}},"/api/v1/file-services/refund-spread":{"post":{"tags":["file-services"],"summary":"Refund Spread","description":"Refund a cash amount to a dealer spread across their refundable orders.\n\nFor an amount not tied to a single order: the amount is applied oldest-first\nacross the dealer's paid workspace charges (each reversing that order's payout),\ncapped at what's actually refundable. Scoped to the caller's own workspaces.\n\nAn order whose refund cannot be funded stops the spread there; what was\nalready refunded is committed and returned with ``stopped_reason`` set.","operationId":"refund_spread_api_v1_file_services_refund_spread_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpreadRefundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpreadRefundResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/download":{"get":{"tags":["file-services"],"summary":"Download Order","description":"Presign the delivered (modified) file. Admins get cross-org access; a\ntuner is scoped to pool orders + their own workspaces; the owning dealer is\nscoped to their org.","operationId":"download_order_api_v1_file_services__order_id__download_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/revisions/{revision_id}/download":{"get":{"tags":["file-services"],"summary":"Download Revision","description":"Presign a specific revision in the order's history. Admins get cross-org\naccess; a tuner is scoped to pool orders + their own workspaces; the owning\ndealer is scoped to their org.","operationId":"download_revision_api_v1_file_services__order_id__revisions__revision_id__download_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/original-download":{"get":{"tags":["file-services"],"summary":"Download Original","description":"Presign the original ECU read. Admins get cross-org access; a tuner gets it\nfor pool orders + their own workspaces (to tune them); the owning dealer gets\ntheir own upload back, scoped to their org.","operationId":"download_original_api_v1_file_services__order_id__original_download_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/dyno-runs/upload-url":{"post":{"tags":["dyno"],"summary":"Dyno Upload Url","description":"Presign a PUT for a before/after dyno chart on an order the caller owns.","operationId":"dyno_upload_url_api_v1_file_services__order_id__dyno_runs_upload_url_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynoUploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynoUploadUrlResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/file-services/{order_id}/dyno-runs":{"post":{"tags":["dyno"],"summary":"Confirm Dyno Run","description":"Validate a finished upload and persist the dyno run.","operationId":"confirm_dyno_run_api_v1_file_services__order_id__dyno_runs_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynoConfirmRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynoRunRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dyno"],"summary":"List Dyno Runs","description":"List dyno runs within the selected storefront and the caller's order access.","operationId":"list_dyno_runs_api_v1_file_services__order_id__dyno_runs_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DynoRunRead"},"title":"Response List Dyno Runs Api V1 File Services  Order Id  Dyno Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dyno-runs/{run_id}":{"delete":{"tags":["dyno"],"summary":"Delete Dyno Run","description":"Delete a dyno run (tuner/admin only).","operationId":"delete_dyno_run_api_v1_dyno_runs__run_id__delete","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/embed/settings":{"get":{"tags":["embed"],"summary":"Get Embed Settings","description":"The dealer's widget settings with this tuner (mints the key on first\naccess — the full key rides along exactly once).","operationId":"get_embed_settings_api_v1_embed_settings_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["embed"],"summary":"Update Embed Settings","description":"Save the dealer's domains + template + colors. The widget picks the new\nstyling up on its next page load — no re-paste needed.","operationId":"update_embed_settings_api_v1_embed_settings_put","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/embed/settings/rotate":{"post":{"tags":["embed"],"summary":"Rotate Embed Key","description":"Mint a replacement key (the old snippet stops working on next load).","operationId":"rotate_embed_key_api_v1_embed_settings_rotate_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/embed":{"get":{"tags":["embed"],"summary":"Tuner Embed Status","description":"One dealer's widget state for the tuner console (null = never set up).","operationId":"tuner_embed_status_api_v1_workspaces__workspace_id__memberships__membership_id__embed_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EmbedSettingsRead"},{"type":"null"}],"title":"Response Tuner Embed Status Api V1 Workspaces  Workspace Id  Memberships  Membership Id  Embed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["embed"],"summary":"Tuner Set Embed Enabled","description":"Tuner enables/disables one dealer's widget.","operationId":"tuner_set_embed_enabled_api_v1_workspaces__workspace_id__memberships__membership_id__embed_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedEnabledUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/widget-limits":{"get":{"tags":["embed"],"summary":"Get Widget Limits","description":"What this tuner allows each dealer's widget per day, and the ceiling.","operationId":"get_widget_limits_api_v1_workspaces__workspace_id__widget_limits_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetLimits"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["embed"],"summary":"Set Widget Limits","description":"Save the tuner's per-dealer budgets. Above the ceiling is a 422, not a\nsilent clamp — a tuner told \"saved\" while the widget honours something\nsmaller has been misled.","operationId":"set_widget_limits_api_v1_workspaces__workspace_id__widget_limits_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetLimitsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetLimits"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/embed/session":{"post":{"tags":["embed"],"summary":"Mint Embed Session","description":"Publishable key + page origin → short-lived widget session (or a coded\n403 the embed page renders as a human setup notice).","operationId":"mint_embed_session_api_v1_embed_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSessionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/embed/vehicles":{"get":{"tags":["embed"],"summary":"Embed Vehicles","operationId":"embed_vehicles_api_v1_embed_vehicles_get","parameters":[{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NodeRead"},"title":"Response Embed Vehicles Api V1 Embed Vehicles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/embed/vehicles/search":{"get":{"tags":["embed"],"summary":"Embed Vehicle Search","operationId":"embed_vehicle_search_api_v1_embed_vehicles_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleSearchResult"},"title":"Response Embed Vehicle Search Api V1 Embed Vehicles Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/embed/vehicles/{catalogue_node_id}/stages":{"get":{"tags":["embed"],"summary":"Embed Vehicle Stages","operationId":"embed_vehicle_stages_api_v1_embed_vehicles__catalogue_node_id__stages_get","parameters":[{"name":"catalogue_node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Catalogue Node Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EngineStageRead"},"title":"Response Embed Vehicle Stages Api V1 Embed Vehicles  Catalogue Node Id  Stages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/embed/lookup":{"post":{"tags":["embed"],"summary":"Embed Plate Lookup","description":"Plate lookup from the widget — the paid call, so the strictest budget.\nAttributed to the DEALER org (audit + GDPR trail), not the system org.\n\nScoped to the EMBEDDING tuner's workspace (from the key, never the body), so\nthe widget quotes the tunes and options that tuner sells — the same set\n``/embed/vehicles/{id}/stages`` serves the picker one step later.","operationId":"embed_plate_lookup_api_v1_embed_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleLookupResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/read-tools":{"get":{"tags":["fileident"],"summary":"List Read Tools","description":"Stage-0 reading-tool reference list with each tool's supported read methods.","operationId":"list_read_tools_api_v1_read_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ReadToolRead"},"type":"array","title":"Response List Read Tools Api V1 Read Tools Get"}}}}}}},"/api/v1/admin/ecu-files":{"get":{"tags":["fileident"],"summary":"Admin Ecu Files","description":"Filtered + searched overview of the shared/global ECU-file corpus.\n\nTuners' PRIVATE uploads are excluded (``include_private=False``) — they live in\neach tuner's own Database section, not the platform admin overview.","operationId":"admin_ecu_files_api_v1_admin_ecu_files_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"ecu_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Type"}},{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"make","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFileList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ecu-files/facets":{"get":{"tags":["fileident"],"summary":"Admin Ecu File Facets","description":"Count-bearing filter options for the shared/global ECU-file corpus.","operationId":"admin_ecu_file_facets_api_v1_admin_ecu_files_facets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFileFacets"}}}}}}},"/api/v1/admin/ecu-files/{family_id}":{"get":{"tags":["fileident"],"summary":"Admin Ecu File Detail","description":"Full detail for one ECU file (popup): metadata + downloadable blobs.","operationId":"admin_ecu_file_detail_api_v1_admin_ecu_files__family_id__get","parameters":[{"name":"family_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Family Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFileDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["fileident"],"summary":"Admin Ecu File Update","description":"Rename and/or annotate an ECU file.","operationId":"admin_ecu_file_update_api_v1_admin_ecu_files__family_id__patch","parameters":[{"name":"family_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Family Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFilePatch"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fileident"],"summary":"Admin Ecu File Delete","description":"Delete an ECU file (family + blobs + fingerprints).","operationId":"admin_ecu_file_delete_api_v1_admin_ecu_files__family_id__delete","parameters":[{"name":"family_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Family Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tools":{"get":{"tags":["fileident"],"summary":"Admin Tools List","description":"The reading-tool registry (full rows, editable).","operationId":"admin_tools_list_api_v1_admin_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ReadToolAdminRead"},"type":"array","title":"Response Admin Tools List Api V1 Admin Tools Get"}}}}}},"post":{"tags":["fileident"],"summary":"Admin Tools Create","description":"Add a reading tool to the registry.","operationId":"admin_tools_create_api_v1_admin_tools_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadToolWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadToolAdminRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tools/{tool_id}":{"patch":{"tags":["fileident"],"summary":"Admin Tools Update","description":"Edit a reading tool.","operationId":"admin_tools_update_api_v1_admin_tools__tool_id__patch","parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tool Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadToolWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadToolAdminRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fileident"],"summary":"Admin Tools Delete","description":"Remove a reading tool from the registry.","operationId":"admin_tools_delete_api_v1_admin_tools__tool_id__delete","parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tool Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/corpus/batches":{"post":{"tags":["fileident"],"summary":"Admin Corpus Create Batch","description":"Open a corpus bulk-upload batch (owned by the calling admin).","operationId":"admin_corpus_create_batch_api_v1_admin_corpus_batches_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusBatchCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusBatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fileident"],"summary":"Admin Corpus Batches","description":"List shared/global corpus bulk-upload batches, newest first.\n\nTuners' private batches are excluded — those are listed in each tuner's own\nDatabase section.","operationId":"admin_corpus_batches_api_v1_admin_corpus_batches_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"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/CorpusBatchRead"},"title":"Response Admin Corpus Batches Api V1 Admin Corpus Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/corpus/batches/{batch_id}/upload-urls":{"post":{"tags":["fileident"],"summary":"Admin Corpus Upload Urls","description":"Create one pending item per file + a presigned PUT URL the client uploads to.","operationId":"admin_corpus_upload_urls_api_v1_admin_corpus_batches__batch_id__upload_urls_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusUploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusUploadUrlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/corpus/batches/{batch_id}/start":{"post":{"tags":["fileident"],"summary":"Admin Corpus Start","description":"Mark the batch processing + enqueue one ingest task per uploaded source.","operationId":"admin_corpus_start_api_v1_admin_corpus_batches__batch_id__start_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Corpus Start Api V1 Admin Corpus Batches  Batch Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/corpus/batches/{batch_id}/retry-failed":{"post":{"tags":["fileident"],"summary":"Admin Corpus Retry Failed","description":"Reset failed sources to uploaded + re-enqueue them.","operationId":"admin_corpus_retry_failed_api_v1_admin_corpus_batches__batch_id__retry_failed_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Corpus Retry Failed Api V1 Admin Corpus Batches  Batch Id  Retry Failed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/corpus/batches/{batch_id}":{"get":{"tags":["fileident"],"summary":"Admin Corpus Batch","description":"Overall metrics for one corpus bulk-upload batch.","operationId":"admin_corpus_batch_api_v1_admin_corpus_batches__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusBatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/corpus/batches/{batch_id}/items":{"get":{"tags":["fileident"],"summary":"Admin Corpus Batch Items","description":"Per-file items of a batch (optionally filtered by status), paged.","operationId":"admin_corpus_batch_items_api_v1_admin_corpus_batches__batch_id__items_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}},{"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":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":{"$ref":"#/components/schemas/CorpusBatchItemList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/original-files/{original_file_id}/identification":{"get":{"tags":["fileident"],"summary":"Get Identification","description":"Return the latest identification result for an uploaded original file.","operationId":"get_identification_api_v1_original_files__original_file_id__identification_get","parameters":[{"name":"original_file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Original File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileIdentificationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/corpus/batches":{"post":{"tags":["fileident"],"summary":"Ws Corpus Create Batch","description":"Open a private corpus bulk-upload batch scoped to this workspace.","operationId":"ws_corpus_create_batch_api_v1_workspaces__workspace_id__corpus_batches_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusBatchCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusBatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fileident"],"summary":"Ws Corpus Batches","description":"List this workspace's private corpus batches, newest first.","operationId":"ws_corpus_batches_api_v1_workspaces__workspace_id__corpus_batches_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"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/CorpusBatchRead"},"title":"Response Ws Corpus Batches Api V1 Workspaces  Workspace Id  Corpus Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/corpus/batches/{batch_id}/upload-urls":{"post":{"tags":["fileident"],"summary":"Ws Corpus Upload Urls","description":"Create one pending item per file + a workspace-scoped presigned PUT URL.","operationId":"ws_corpus_upload_urls_api_v1_workspaces__workspace_id__corpus_batches__batch_id__upload_urls_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusUploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusUploadUrlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/corpus/batches/{batch_id}/start":{"post":{"tags":["fileident"],"summary":"Ws Corpus Start","description":"Mark the batch processing + enqueue one ingest task per uploaded source.","operationId":"ws_corpus_start_api_v1_workspaces__workspace_id__corpus_batches__batch_id__start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ws Corpus Start Api V1 Workspaces  Workspace Id  Corpus Batches  Batch Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/corpus/batches/{batch_id}/retry-failed":{"post":{"tags":["fileident"],"summary":"Ws Corpus Retry Failed","description":"Reset failed sources to uploaded + re-enqueue them.","operationId":"ws_corpus_retry_failed_api_v1_workspaces__workspace_id__corpus_batches__batch_id__retry_failed_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ws Corpus Retry Failed Api V1 Workspaces  Workspace Id  Corpus Batches  Batch Id  Retry Failed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/corpus/batches/{batch_id}":{"get":{"tags":["fileident"],"summary":"Ws Corpus Batch","description":"Overall metrics for one of this workspace's corpus batches.","operationId":"ws_corpus_batch_api_v1_workspaces__workspace_id__corpus_batches__batch_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusBatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/corpus/batches/{batch_id}/items":{"get":{"tags":["fileident"],"summary":"Ws Corpus Batch Items","description":"Per-file items of one of this workspace's batches, paged.","operationId":"ws_corpus_batch_items_api_v1_workspaces__workspace_id__corpus_batches__batch_id__items_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}},{"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":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":{"$ref":"#/components/schemas/CorpusBatchItemList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/ecu-files":{"get":{"tags":["fileident"],"summary":"Ws Ecu Files","description":"Filtered + searched overview of THIS workspace's private ECU files.","operationId":"ws_ecu_files_api_v1_workspaces__workspace_id__ecu_files_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"ecu_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Type"}},{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"}},{"name":"make","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFileList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/ecu-files/facets":{"get":{"tags":["fileident"],"summary":"Ws Ecu File Facets","description":"Count-bearing filter options for THIS workspace's private ECU files.","operationId":"ws_ecu_file_facets_api_v1_workspaces__workspace_id__ecu_files_facets_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFileFacets"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/ecu-files/{family_id}":{"get":{"tags":["fileident"],"summary":"Ws Ecu File Detail","description":"Full detail for one of this workspace's ECU files (metadata + blobs).","operationId":"ws_ecu_file_detail_api_v1_workspaces__workspace_id__ecu_files__family_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"family_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Family Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFileDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["fileident"],"summary":"Ws Ecu File Update","description":"Rename and/or annotate one of this workspace's ECU files.","operationId":"ws_ecu_file_update_api_v1_workspaces__workspace_id__ecu_files__family_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"family_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Family Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuFilePatch"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fileident"],"summary":"Ws Ecu File Delete","description":"Delete one of this workspace's ECU files (family + blobs + fingerprints).","operationId":"ws_ecu_file_delete_api_v1_workspaces__workspace_id__ecu_files__family_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"family_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Family Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/attachment-url":{"post":{"tags":["tickets"],"summary":"Request Attachment Url","operationId":"request_attachment_url_api_v1_tickets_attachment_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{ticket_id}/attachment-download":{"post":{"tags":["tickets"],"summary":"Download Attachment","description":"Presigned GET for a ticket attachment. The service binds the key to the\nticket and scopes visibility by role: admins see any ticket, a tuner its own\ndealers, a dealer its own org.","operationId":"download_attachment_api_v1_tickets__ticket_id__attachment_download_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentDownloadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Attachment Api V1 Tickets  Ticket Id  Attachment Download Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets":{"post":{"tags":["tickets"],"summary":"Open Ticket","operationId":"open_ticket_api_v1_tickets_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__ticket__schemas__TicketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["tickets"],"summary":"List Tickets","operationId":"list_tickets_api_v1_tickets_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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/services__ticket__schemas__TicketRead"},"title":"Response List Tickets Api V1 Tickets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{ticket_id}":{"get":{"tags":["tickets"],"summary":"Get Ticket","operationId":"get_ticket_api_v1_tickets__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{ticket_id}/messages":{"post":{"tags":["tickets"],"summary":"Add Message","operationId":"add_message_api_v1_tickets__ticket_id__messages_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__ticket__schemas__MessageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketMessageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{ticket_id}/status":{"post":{"tags":["tickets"],"summary":"Set Status","operationId":"set_status_api_v1_tickets__ticket_id__status_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__ticket__schemas__StatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__ticket__schemas__TicketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicle-lookup":{"post":{"tags":["lookup"],"summary":"Vehicle Lookup","description":"Resolve a plate (or VIN) to vehicle facts + a catalogue match.\n\nAn explicit ``workspace_id`` is the workspace the order is headed for — a\ntuner composing a partner order passes the PARTNER's — and is checked with\nthe catalogue's own rule (404 for anyone outside that workspace, prices\nstripped for a partner). Omitted, the caller's own context workspace scopes\nit, so a dealer's lookup quotes their tuner without the client asking.","operationId":"vehicle_lookup_api_v1_vehicle_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleLookupResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/vehicle-lookup":{"post":{"tags":["lookup"],"summary":"Public Vehicle Lookup","description":"Anonymous homepage lookup — IP rate-limited, attributed to the system org.","operationId":"public_vehicle_lookup_api_v1_public_vehicle_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleLookupResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/lookups/metrics":{"get":{"tags":["lookup"],"summary":"Admin Lookup Metrics","description":"Aggregate lookup KPIs for the admin metrics card.","operationId":"admin_lookup_metrics_api_v1_admin_lookups_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupMetrics"}}}}}}},"/api/v1/admin/lookups":{"get":{"tags":["lookup"],"summary":"Admin Lookups","description":"Recent lookups (audit); ``q`` filters by plate/VIN for GDPR/DSAR.","operationId":"admin_lookups_api_v1_admin_lookups_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LookupAuditRow"},"title":"Response Admin Lookups Api V1 Admin Lookups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/lookups/{lookup_id}":{"delete":{"tags":["lookup"],"summary":"Admin Delete Lookup","description":"Erase a single lookup row (GDPR right-to-be-forgotten).","operationId":"admin_delete_lookup_api_v1_admin_lookups__lookup_id__delete","parameters":[{"name":"lookup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lookup Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/attachment-url":{"post":{"tags":["messaging"],"summary":"Request Attachment Url","operationId":"request_attachment_url_api_v1_conversations_attachment_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/attachment-download":{"post":{"tags":["messaging"],"summary":"Download Attachment","description":"Presigned GET for a conversation attachment, only for a participant.","operationId":"download_attachment_api_v1_conversations__conversation_id__attachment_download_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentDownloadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Attachment Api V1 Conversations  Conversation Id  Attachment Download Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations":{"post":{"tags":["messaging"],"summary":"Start Conversation","operationId":"start_conversation_api_v1_conversations_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["messaging"],"summary":"List Conversations","description":"Merged inbox for the user (order chats + tickets). ``kind`` filters;\n``archived=true`` returns the caller's archived threads.","operationId":"list_conversations_api_v1_conversations_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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/ConversationSummary"},"title":"Response List Conversations Api V1 Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/for-order/{order_id}":{"post":{"tags":["messaging"],"summary":"Start Order Conversation","description":"Open (or return) THE conversation for an order.\n\nStaff start it to ask the submitting dealer questions; the dealer starts it\nto reach whoever owns their order (the workspace tuner, the claiming tuner,\nor platform support for an unclaimed pool order). A dealer can only open\ntheir own order's thread (cross-org → 404, resolved in the command).","operationId":"start_order_conversation_api_v1_conversations_for_order__order_id__post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/board":{"get":{"tags":["messaging"],"summary":"List Board","description":"The back-office board, scoped by role (admin: all — or ``pool`` for\npool-order threads only; tuner: own workspaces), awaiting-reply first.","operationId":"list_board_api_v1_conversations_board_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"ticket","title":"Kind"}},{"name":"pool","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Pool"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationSummary"},"title":"Response List Board Api V1 Conversations Board Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/contacts":{"get":{"tags":["messaging"],"summary":"List Contacts","description":"The caller's active-relationship counterpart companies, each expanded to its\nusers — the picker for starting a direct message.","operationId":"list_contacts_api_v1_conversations_contacts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsResponse"}}}}}}},"/api/v1/conversations/direct":{"post":{"tags":["messaging"],"summary":"Start Direct","description":"Find-or-create a 1:1/company direct thread with an active counterpart.","operationId":"start_direct_api_v1_conversations_direct_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/group":{"post":{"tags":["messaging"],"summary":"Start Group","description":"Create a named group thread the caller owns.","operationId":"start_group_api_v1_conversations_group_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/participants":{"post":{"tags":["messaging"],"summary":"Add Participants","description":"Add users to a thread — owner (or admin) only, counterparts of the owner.","operationId":"add_participants_api_v1_conversations__conversation_id__participants_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantsAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/participants/{user_id}":{"delete":{"tags":["messaging"],"summary":"Remove Participant","description":"Remove a participant. Owner/admin may remove anyone; others only themselves.","operationId":"remove_participant_api_v1_conversations__conversation_id__participants__user_id__delete","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"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","additionalProperties":true,"title":"Response Remove Participant Api V1 Conversations  Conversation Id  Participants  User Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/leave":{"post":{"tags":["messaging"],"summary":"Leave Conversation","description":"Remove the caller from a thread they participate in.","operationId":"leave_conversation_api_v1_conversations__conversation_id__leave_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Leave Conversation Api V1 Conversations  Conversation Id  Leave Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/archive":{"post":{"tags":["messaging"],"summary":"Archive Conversation","description":"Archive a thread out of the caller's inbox (per-user; others unaffected).","operationId":"archive_conversation_api_v1_conversations__conversation_id__archive_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archive Conversation Api V1 Conversations  Conversation Id  Archive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/unarchive":{"post":{"tags":["messaging"],"summary":"Unarchive Conversation","description":"Restore an archived thread back into the caller's inbox.","operationId":"unarchive_conversation_api_v1_conversations__conversation_id__unarchive_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unarchive Conversation Api V1 Conversations  Conversation Id  Unarchive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}":{"get":{"tags":["messaging"],"summary":"Get Conversation","operationId":"get_conversation_api_v1_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/files":{"get":{"tags":["messaging"],"summary":"List Conversation Files","description":"Every file shared in this conversation (newest first) — the files view.","operationId":"list_conversation_files_api_v1_conversations__conversation_id__files_get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationFile"},"title":"Response List Conversation Files Api V1 Conversations  Conversation Id  Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/messages":{"post":{"tags":["messaging"],"summary":"Post Message","operationId":"post_message_api_v1_conversations__conversation_id__messages_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__messaging__schemas__MessageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/escalate":{"post":{"tags":["messaging"],"summary":"Escalate Conversation","description":"Escalate an order thread to platform support: opens an admin-routed\nticket carrying the same order and notes the handoff on the thread.","operationId":"escalate_conversation_api_v1_conversations__conversation_id__escalate_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/status":{"post":{"tags":["messaging"],"summary":"Set Status","operationId":"set_status_api_v1_conversations__conversation_id__status_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__messaging__schemas__StatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/acknowledge":{"post":{"tags":["messaging"],"summary":"Acknowledge Conversation","description":"\"Nothing to reply here\" — clear the thread's awaiting-reply chip.\n\nStaff-only because the chip means staff owe a reply. Settles whose turn it is\nwithout resolving a thread that may still be running, and a later message\nfrom the customer re-opens it by itself. ``acknowledged=false`` undoes it.","operationId":"acknowledge_conversation_api_v1_conversations__conversation_id__acknowledge_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/assign":{"post":{"tags":["messaging"],"summary":"Assign Conversation","description":"Assign the thread to the calling staff member.","operationId":"assign_conversation_api_v1_conversations__conversation_id__assign_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/read":{"post":{"tags":["messaging"],"summary":"Mark Read","operationId":"mark_read_api_v1_conversations__conversation_id__read_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Read Api V1 Conversations  Conversation Id  Read Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/nav/action-counts":{"get":{"tags":["nav"],"summary":"Action Counts","description":"Per-concern action counts for the caller's back-office nav (Operations +\nCommunication). Role-scoped: a tuner's workspace counts are zero for others,\nand a platform admin inside one of the platform's storefronts gets that\nstorefront's inbox counts.","operationId":"action_counts_api_v1_nav_action_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCounts"}}}}}}},"/api/v1/tools":{"get":{"tags":["tools"],"summary":"List Tools","operationId":"list_tools_api_v1_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ToolRead"},"type":"array","title":"Response List Tools Api V1 Tools Get"}}}}}},"post":{"tags":["tools"],"summary":"Create Tool","operationId":"create_tool_api_v1_tools_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tools/{tool_id}":{"get":{"tags":["tools"],"summary":"Get Tool","operationId":"get_tool_api_v1_tools__tool_id__get","parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tool Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["tools"],"summary":"Update Tool","operationId":"update_tool_api_v1_tools__tool_id__patch","parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tool Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tools"],"summary":"Delete Tool","operationId":"delete_tool_api_v1_tools__tool_id__delete","parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tool Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Tool Api V1 Tools  Tool Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/reviews":{"get":{"tags":["reviews"],"summary":"Public Reviews","description":"Published testimonials for the marketing site, localized to ``locale``.","operationId":"public_reviews_api_v1_public_reviews_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"type":"string","maxLength":10,"default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewPublic"},"title":"Response Public Reviews Api V1 Public Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/reviews":{"get":{"tags":["reviews"],"summary":"Admin Reviews List","description":"Every review (incl. unpublished), with all locales' quotes.","operationId":"admin_reviews_list_api_v1_admin_reviews_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ReviewRead"},"type":"array","title":"Response Admin Reviews List Api V1 Admin Reviews Get"}}}}}},"post":{"tags":["reviews"],"summary":"Admin Reviews Create","operationId":"admin_reviews_create_api_v1_admin_reviews_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/reviews/{review_id}":{"patch":{"tags":["reviews"],"summary":"Admin Reviews Update","operationId":"admin_reviews_update_api_v1_admin_reviews__review_id__patch","parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["reviews"],"summary":"Admin Reviews Delete","operationId":"admin_reviews_delete_api_v1_admin_reviews__review_id__delete","parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/products":{"get":{"tags":["shop"],"summary":"Shop Products","description":"A shop catalogue for a logged-in buyer — the platform shop by default,\nor one tuner's shop when ``workspace_id`` names a tuner the caller has an\nactive membership with (phase 2).\n\nScoped to the buyer: a platform-direct dealer (no active tuner membership)\nalso sees ``admin_only`` products; a tuner-affiliated dealer does not.","operationId":"shop_products_api_v1_shop_products_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShop"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/products/{slug}":{"get":{"tags":["shop"],"summary":"Shop Product","description":"One product by slug for a logged-in buyer (the portal PDP source).\n\nBuyer-scoped like ``/shop/products`` — an ``admin_only`` product 404s for a\ntuner-affiliated dealer. 404 when unknown / inactive / has no sellable variant.","operationId":"shop_product_api_v1_shop_products__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShop"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/collections":{"get":{"tags":["shop"],"summary":"Shop Collections","description":"A shop's collections for a logged-in buyer — same scope/audience rules\nas ``/shop/products``.","operationId":"shop_collections_api_v1_shop_collections_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicCollection"},"title":"Response Shop Collections Api V1 Shop Collections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/collections/{slug}":{"get":{"tags":["shop"],"summary":"Shop Collection","description":"One collection by slug for a logged-in buyer.","operationId":"shop_collection_api_v1_shop_collections__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCollection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/checkout":{"post":{"tags":["shop"],"summary":"Shop Checkout","description":"Re-price the cart server-side and open a Stripe Checkout for the org.","operationId":"shop_checkout_api_v1_shop_checkout_post","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/orders":{"get":{"tags":["shop"],"summary":"Shop Orders","operationId":"shop_orders_api_v1_shop_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ShopOrderRead"},"type":"array","title":"Response Shop Orders Api V1 Shop Orders Get"}}}}}}},"/api/v1/shop/orders/{shop_order_id}":{"get":{"tags":["shop"],"summary":"Shop Order","operationId":"shop_order_api_v1_shop_orders__shop_order_id__get","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopOrderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/public/products":{"get":{"tags":["shop"],"summary":"Public Shop Products","description":"Public: the platform shop catalogue (rate-limited, unauthenticated).\n\n``public=True`` so ``admin_only`` products stay off the public storefront.","operationId":"public_shop_products_api_v1_shop_public_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShop"}}}}}}},"/api/v1/shop/public/checkout":{"post":{"tags":["shop"],"summary":"Public Shop Checkout","description":"Public: GUEST checkout — no account, buyer country given up front so VAT\nresolves before the Stripe session (email is collected by Stripe).\n\n``workspace_id`` buys from one tuner's own microsite shop instead of the\nplatform's (phase 2) — no membership gate needed here, unlike the dealer-\nauthed `/shop/checkout`: this is public storefront data either way, and\n``_price_lines`` already rejects a cart whose variants belong to a\ndifferent shop than the one requested, so a wrong or unonboarded id fails\nthe checkout rather than mis-billing anyone.","operationId":"public_shop_checkout_api_v1_shop_public_checkout_post","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shop/public/checkout/{session_id}":{"get":{"tags":["shop"],"summary":"Public Shop Sale","description":"Public: what a finished shop checkout sold, for the return page's\n``purchase`` event. Only the buyer's own return URL carries the session\nid; the answer holds amounts and catalogue lines, nothing personal.","operationId":"public_shop_sale_api_v1_shop_public_checkout__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Shop Sale Api V1 Shop Public Checkout  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/products/media/upload-url":{"post":{"tags":["shop","shop"],"summary":"Admin Product Media Upload Url","description":"Presign a PUT so an admin/tuner uploads a product image or PDF manual\ndirectly to storage. Ungated by shop scope — keys are random, not enumerable, the same\ntrust boundary every other presign endpoint in this codebase uses.","operationId":"admin_product_media_upload_url_api_v1_admin_shop_products_media_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMediaUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMediaUploadResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/products/media/confirm":{"post":{"tags":["shop","shop"],"summary":"Admin Product Media Confirm","description":"Publish a finished product-image upload (public-read) and return its URL.","operationId":"admin_product_media_confirm_api_v1_admin_shop_products_media_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMediaConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMediaResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/products":{"get":{"tags":["shop","shop"],"summary":"Admin Products","operationId":"admin_products_api_v1_admin_shop_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProductRead"},"type":"array","title":"Response Admin Products Api V1 Admin Shop Products Get"}}}}}},"post":{"tags":["shop","shop"],"summary":"Admin Create Product","operationId":"admin_create_product_api_v1_admin_shop_products_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/products/{product_id}":{"patch":{"tags":["shop","shop"],"summary":"Admin Update Product","operationId":"admin_update_product_api_v1_admin_shop_products__product_id__patch","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shop","shop"],"summary":"Admin Delete Product","operationId":"admin_delete_product_api_v1_admin_shop_products__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/collections":{"get":{"tags":["shop","shop"],"summary":"Admin Collections","operationId":"admin_collections_api_v1_admin_shop_collections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CollectionRead"},"type":"array","title":"Response Admin Collections Api V1 Admin Shop Collections Get"}}}}}},"post":{"tags":["shop","shop"],"summary":"Admin Create Collection","operationId":"admin_create_collection_api_v1_admin_shop_collections_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/collections/{collection_id}":{"get":{"tags":["shop","shop"],"summary":"Admin Collection","operationId":"admin_collection_api_v1_admin_shop_collections__collection_id__get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["shop","shop"],"summary":"Admin Update Collection","operationId":"admin_update_collection_api_v1_admin_shop_collections__collection_id__patch","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shop","shop"],"summary":"Admin Delete Collection","operationId":"admin_delete_collection_api_v1_admin_shop_collections__collection_id__delete","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/products/{product_id}/variants":{"post":{"tags":["shop","shop"],"summary":"Admin Create Variant","operationId":"admin_create_variant_api_v1_admin_shop_products__product_id__variants_post","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/variants/{variant_id}":{"patch":{"tags":["shop","shop"],"summary":"Admin Update Variant","operationId":"admin_update_variant_api_v1_admin_shop_variants__variant_id__patch","parameters":[{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shop","shop"],"summary":"Admin Delete Variant","operationId":"admin_delete_variant_api_v1_admin_shop_variants__variant_id__delete","parameters":[{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/variants/{variant_id}/stock-adjust":{"post":{"tags":["shop","shop"],"summary":"Admin Adjust Stock","operationId":"admin_adjust_stock_api_v1_admin_shop_variants__variant_id__stock_adjust_post","parameters":[{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockAdjustRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/shipping-rates":{"get":{"tags":["shop","shop"],"summary":"Admin Shipping Rates","operationId":"admin_shipping_rates_api_v1_admin_shop_shipping_rates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ShippingRateRead"},"type":"array","title":"Response Admin Shipping Rates Api V1 Admin Shop Shipping Rates Get"}}}}}},"post":{"tags":["shop","shop"],"summary":"Admin Create Shipping Rate","operationId":"admin_create_shipping_rate_api_v1_admin_shop_shipping_rates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRateWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/shipping-rates/{rate_id}":{"patch":{"tags":["shop","shop"],"summary":"Admin Update Shipping Rate","operationId":"admin_update_shipping_rate_api_v1_admin_shop_shipping_rates__rate_id__patch","parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRateWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shop","shop"],"summary":"Admin Delete Shipping Rate","operationId":"admin_delete_shipping_rate_api_v1_admin_shop_shipping_rates__rate_id__delete","parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rate Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders":{"get":{"tags":["shop","shop"],"summary":"Admin Orders","operationId":"admin_orders_api_v1_admin_shop_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminShopOrderRead"},"title":"Response Admin Orders Api V1 Admin Shop Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders/{shop_order_id}":{"get":{"tags":["shop","shop"],"summary":"Admin Order","operationId":"admin_order_api_v1_admin_shop_orders__shop_order_id__get","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminShopOrderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders/{shop_order_id}/ship":{"post":{"tags":["shop","shop"],"summary":"Admin Ship Order","operationId":"admin_ship_order_api_v1_admin_shop_orders__shop_order_id__ship_post","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopOrderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders/{shop_order_id}/deliver":{"post":{"tags":["shop","shop"],"summary":"Admin Deliver Order","description":"Mark a shipped order delivered.","operationId":"admin_deliver_order_api_v1_admin_shop_orders__shop_order_id__deliver_post","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopOrderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders/{shop_order_id}/unfulfill":{"post":{"tags":["shop","shop"],"summary":"Admin Unfulfill Order","description":"Revert fulfilment to unfulfilled, clearing tracking (a mistaken ship).","operationId":"admin_unfulfill_order_api_v1_admin_shop_orders__shop_order_id__unfulfill_post","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopOrderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders/{shop_order_id}/email":{"post":{"tags":["shop","shop"],"summary":"Admin Email Order Customer","description":"Queue an ad-hoc email to the order's buyer (sent by the drainer).","operationId":"admin_email_order_customer_api_v1_admin_shop_orders__shop_order_id__email_post","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerEmailRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Email Order Customer Api V1 Admin Shop Orders  Shop Order Id  Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders/{shop_order_id}/refund":{"post":{"tags":["shop","shop"],"summary":"Admin Refund Order","description":"Refund (part of) a paid shop order; ``restock`` returns tracked stock on a\nfull refund. Returns the cents actually refunded.","operationId":"admin_refund_order_api_v1_admin_shop_orders__shop_order_id__refund_post","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopRefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Refund Order Api V1 Admin Shop Orders  Shop Order Id  Refund Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/part-quote":{"post":{"tags":["parts-shop","sites"],"summary":"Part Quote","description":"Public: price one part number on a shop's site. ``found`` hands back a\nquote the cart can buy (valid 24 hours); ``searching`` a token to poll.\n404 when the site does not offer it.","operationId":"part_quote_api_v1_sites__workspace_id__part_quote_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartQuoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartQuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/part-quote/{token}":{"get":{"tags":["parts-shop","sites"],"summary":"Part Quote Poll","description":"Public: the current answer for a running search, by the token the lookup\nreturned. 404 for a token that is not this site's.","operationId":"part_quote_poll_api_v1_sites__workspace_id__part_quote__token__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Token"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartQuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/part-quote/{quote_id}/images/{index}":{"get":{"tags":["parts-shop","sites"],"summary":"Part Quote Image","description":"Public: one image of a quoted part, from our own storage. 404 until the\ncopy is in place (the block retries) and after an unused quote's copies\nare cleaned up.","operationId":"part_quote_image_api_v1_sites__workspace_id__part_quote__quote_id__images__index__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quote Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"image/jpeg":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/parts/{part_id}/images/{index}":{"get":{"tags":["parts-shop","sites"],"summary":"Part Image","description":"Public: one photo of a catalogue part, from our own storage. 404 until\nthe copy is in place. The block's URL carries a version of the photo's\naddress, so a replaced photo gets a new URL.","operationId":"part_image_api_v1_sites__workspace_id__parts__part_id__images__index__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"image/jpeg":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/status":{"get":{"tags":["parts-shop","parts-shop"],"summary":"Status Route","description":"What the parts shop needs to sell right now, piece by piece.","operationId":"status_route_api_v1_admin_shop_parts_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopStatus"}}}}}}},"/api/v1/admin/shop/parts/settings":{"get":{"tags":["parts-shop","parts-shop"],"summary":"Get Settings Route","description":"The workspace's parts shop settings (defaults until saved).","operationId":"get_settings_route_api_v1_admin_shop_parts_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopSettingsRead"}}}}}},"put":{"tags":["parts-shop","parts-shop"],"summary":"Save Settings Route","description":"Save the workspace's parts shop settings.","operationId":"save_settings_route_api_v1_admin_shop_parts_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopSettingsSave"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/options":{"get":{"tags":["parts-shop","parts-shop"],"summary":"List Options","description":"The add-ons offered next to a part, in display order.","operationId":"list_options_api_v1_admin_shop_parts_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartsShopOptionRead"},"type":"array","title":"Response List Options Api V1 Admin Shop Parts Options Get"}}}}}},"post":{"tags":["parts-shop","parts-shop"],"summary":"Create Option","description":"Add an add-on.","operationId":"create_option_api_v1_admin_shop_parts_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopOptionWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopOptionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/options/{option_id}":{"put":{"tags":["parts-shop","parts-shop"],"summary":"Update Option","description":"Edit an add-on.","operationId":"update_option_api_v1_admin_shop_parts_options__option_id__put","parameters":[{"name":"option_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Option Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopOptionWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsShopOptionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["parts-shop","parts-shop"],"summary":"Delete Option","description":"Remove an add-on.","operationId":"delete_option_api_v1_admin_shop_parts_options__option_id__delete","parameters":[{"name":"option_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Option Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts":{"get":{"tags":["parts-shop","parts-shop"],"summary":"List Parts","description":"One page of the catalogue.","operationId":"list_parts_api_v1_admin_shop_parts_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":60,"default":"","title":"Search"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Inactive"}},{"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":{"$ref":"#/components/schemas/ShopPartList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/{part_id}":{"put":{"tags":["parts-shop","parts-shop"],"summary":"Update Part","description":"Correct one part (its primary part number stays).","operationId":"update_part_api_v1_admin_shop_parts__part_id__put","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopPartUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopPartRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/bulk":{"post":{"tags":["parts-shop","parts-shop"],"summary":"Bulk Update","description":"Mark the selected parts in stock or sold out, or take them off sale.","operationId":"bulk_update_api_v1_admin_shop_parts_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPartsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPartsResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/columns":{"get":{"tags":["parts-shop","parts-shop"],"summary":"Columns","description":"The upload's columns, for the guide next to the upload.","operationId":"columns_api_v1_admin_shop_parts_columns_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CatalogueColumn"},"type":"array","title":"Response Columns Api V1 Admin Shop Parts Columns Get"}}}}}}},"/api/v1/admin/shop/parts/template.csv":{"get":{"tags":["parts-shop","parts-shop"],"summary":"Template","description":"The upload template: the header and a few example rows.","operationId":"template_api_v1_admin_shop_parts_template_csv_get","responses":{"200":{"description":"Successful Response"}}}},"/api/v1/admin/shop/parts/import/preview":{"post":{"tags":["parts-shop","parts-shop"],"summary":"Preview Import","description":"What uploading this file would do, row by row. Writes nothing.","operationId":"preview_import_api_v1_admin_shop_parts_import_preview_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_preview_import_api_v1_admin_shop_parts_import_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopPartImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/import":{"post":{"tags":["parts-shop","parts-shop"],"summary":"Apply Import","description":"Apply an upload (idempotent: the same file again changes nothing).","operationId":"apply_import_api_v1_admin_shop_parts_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_apply_import_api_v1_admin_shop_parts_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopPartImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/searches":{"get":{"tags":["parts-shop","parts-shop"],"summary":"Unpriced Searches","description":"Part numbers visitors looked up and could not buy.","operationId":"unpriced_searches_api_v1_admin_shop_parts_searches_get","parameters":[{"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/UnpricedSearch"},"title":"Response Unpriced Searches Api V1 Admin Shop Parts Searches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/parts/searches.csv":{"get":{"tags":["parts-shop","parts-shop"],"summary":"Unpriced Searches Csv","description":"Those part numbers as an upload file, ready to complete and upload.","operationId":"unpriced_searches_csv_api_v1_admin_shop_parts_searches_csv_get","responses":{"200":{"description":"Successful Response"}}}},"/api/v1/admin/shop/orders/{shop_order_id}/sourcing":{"get":{"tags":["parts-shop","parts-shop"],"summary":"Order Sourcing","description":"The parts on one of this shop's orders with where they come from, the\nprice working and the purchasing checklist. Owner and admins only.","operationId":"order_sourcing_api_v1_admin_shop_orders__shop_order_id__sourcing_get","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSourcingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/shop/orders/{shop_order_id}/sourcing/{shop_quote_id}":{"post":{"tags":["parts-shop","parts-shop"],"summary":"Purchase Step","description":"Tick or untick one purchasing step (bought at source, received,\nunavailable at source) for a part on a paid order.","operationId":"purchase_step_api_v1_admin_shop_orders__shop_order_id__sourcing__shop_quote_id__post","parameters":[{"name":"shop_order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Order Id"}},{"name":"shop_quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shop Quote Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseStepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseChecklist"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/my/website":{"get":{"tags":["dealer-site"],"summary":"Website State","description":"What this dealer has: a site or not, on which plan, with what unlocked.","operationId":"website_state_api_v1_my_website_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteState"}}}}}},"post":{"tags":["dealer-site"],"summary":"Open Website","description":"Open this org's website so they can start building it.\n\nFree, and idempotent — a second call returns the site they already have\nrather than opening another. Building and previewing cost nothing; the\ncharge is at publish, which is gated on ``feature:site_publish``.\n\nAlways ``website_only``: the kind is decided here rather than accepted from\nthe caller, so no request body can talk this route into minting a storefront\nwith its orders, payouts and trial attached.","operationId":"open_website_api_v1_my_website_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}}}}},"/api/v1/my/website/subscription":{"post":{"tags":["dealer-site"],"summary":"Subscribe","description":"Put this website on a paid plan. Needs a payment method on file (428).","operationId":"subscribe_api_v1_my_website_subscription_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dealer-site"],"summary":"Cancel","description":"Stop paying for the website.\n\nStops the renewal at Stripe and reflects it back: the plan runs to the end\nof the period already paid for, then lapses (an unpaid first charge ends\nat once). The site is NOT torn down and\nthe workspace keeps its pages: what lapses is the entitlement, so the site\nstops being published and the inbox closes, while everything they built stays\ntheirs to switch back on. Deleting their work because a card expired would be\na far worse failure than an unpublished site.\n\nThere was no cancel route at all before this — for tuners either, who could\nonly cancel inside Stripe's own portal. A subscription a customer cannot end\nfrom the product that sold it is the kind of thing regulators write letters\nabout, and it is trivially avoidable.","operationId":"cancel_api_v1_my_website_subscription_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteState"}}}}}}},"/api/v1/my/website/subscription/setup":{"post":{"tags":["dealer-site"],"summary":"Begin Setup","description":"Collect a card on a Stripe-hosted page, then come back and subscribe.\n\nThe money lands in the platform's own Stripe account: this is TheTuningGroup\nselling to the garage, not the tuner selling. Nothing here touches the\ntuner's connected account.","operationId":"begin_setup_api_v1_my_website_subscription_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedUrl"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/my/website/subscription/portal":{"post":{"tags":["dealer-site"],"summary":"Open Portal","description":"A Stripe-hosted portal for the card on file — and for anything unpaid.\n\nA dealer could give us a card but never replace one: setup collects a card,\nand nothing until now could change it, so an expiring card ended the website\nwith no way back from inside the product. The portal is also where Stripe\npresents an open invoice after a failed charge, which makes it the honest\nanswer to \"pay this\" for a subscription — we never hold that invoice\nourselves, so we cannot offer a link of our own.","operationId":"open_portal_api_v1_my_website_subscription_portal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedUrl"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/my/website/subscription/setup/complete":{"post":{"tags":["dealer-site"],"summary":"Complete Setup","description":"Attach the card the hosted page collected — the return trip from Stripe.\n\nThe ``checkout.session.completed`` webhook does the same work, but arrives\nwhenever it arrives; the browser is redirected back immediately. Without this\nthe dealer beats their own webhook home and is asked for the card they just\nentered — a loop they cannot get out of by trying harder. Both paths are\nidempotent, so whichever lands first wins.","operationId":"complete_setup_api_v1_my_website_subscription_setup_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteSetupIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/my/website/subscription/resume":{"post":{"tags":["dealer-site"],"summary":"Resume","description":"Keep a plan that was cancelled but has not ended yet.","operationId":"resume_api_v1_my_website_subscription_resume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteState"}}}}}}},"/api/v1/my/website/plans":{"get":{"tags":["dealer-site"],"summary":"Dealer Plans","description":"The website ladder, cheapest first — what this surface can be put on.","operationId":"dealer_plans_api_v1_my_website_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{},"type":"array","title":"Response Dealer Plans Api V1 My Website Plans Get"}}}}}}},"/api/v1/my/website/payments":{"get":{"tags":["dealer-site"],"summary":"Website Payments","description":"The shop's payout account as Stripe reports it now, plus the fee terms.\n\nReads the live account (and records what it finds, as the tuner's status\nroute does), so a dealer back from onboarding sees the result at once.","operationId":"website_payments_api_v1_my_website_payments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsitePayments"}}}}}}},"/api/v1/my/website/payments/onboard":{"post":{"tags":["dealer-site"],"summary":"Website Payments Onboard","description":"Open (or continue) the payout account's Stripe-hosted onboarding.\n\nThe same account type and the same creation path as a tuner's: one\naccount per workspace, minted once (idempotency-keyed), in the owner's\ncountry. Stripe sends the dealer back to the shop page either way —\n``return`` when they finished, ``refresh`` when the link expired.","operationId":"website_payments_onboard_api_v1_my_website_payments_onboard_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedUrl"}}}}}}},"/api/v1/my/website/payments/dashboard":{"post":{"tags":["dealer-site"],"summary":"Website Payments Dashboard","description":"A one-time link into the payout account's Stripe dashboard (payouts,\nbank account). 409 until onboarding has created the account.","operationId":"website_payments_dashboard_api_v1_my_website_payments_dashboard_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedUrl"}}}}}}},"/api/v1/dtc/page":{"get":{"tags":["dtc"],"summary":"List Dtc Page","description":"A page of trouble codes + total match count (admin pagination).","operationId":"list_dtc_page_api_v1_dtc_page_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtcPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dtc":{"get":{"tags":["dtc"],"summary":"Lookup Dtc","description":"Look up a single code (``?code=``) or search the database.\n\nWhen ``code`` is supplied a single ``DtcRead`` is returned (404 if unknown);\notherwise a list of matches filtered by ``category`` and/or full-text ``q``.","operationId":"lookup_dtc_api_v1_dtc_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DtcRead"},{"type":"array","items":{"$ref":"#/components/schemas/DtcRead"}}],"title":"Response Lookup Dtc Api V1 Dtc Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_api_v1_notifications_get","parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Unread Only"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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":{"$ref":"#/components/schemas/NotificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Unread Count","operationId":"unread_count_api_v1_notifications_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Unread Count Api V1 Notifications Unread Count Get"}}}}}}},"/api/v1/notifications/{notification_id}/read":{"patch":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_api_v1_notifications__notification_id__read_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_api_v1_notifications_read_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mark All Read Api V1 Notifications Read All Post"}}}}}}},"/api/v1/notifications/{notification_id}/archive":{"patch":{"tags":["notifications"],"summary":"Archive","operationId":"archive_api_v1_notifications__notification_id__archive_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/unarchive":{"patch":{"tags":["notifications"],"summary":"Unarchive","operationId":"unarchive_api_v1_notifications__notification_id__unarchive_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/archive-all":{"post":{"tags":["notifications"],"summary":"Archive All","operationId":"archive_all_api_v1_notifications_archive_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Archive All Api V1 Notifications Archive All Post"}}}}}}},"/api/v1/notifications/prefs":{"get":{"tags":["notifications"],"summary":"Get Prefs","description":"Return the current user's notification channel preferences.","operationId":"get_prefs_api_v1_notifications_prefs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPrefs"}}}}}},"put":{"tags":["notifications"],"summary":"Update Prefs","description":"Replace the current user's notification channel preferences.","operationId":"update_prefs_api_v1_notifications_prefs_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPrefs"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPrefs"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/whatsapp-opt-in":{"post":{"tags":["notifications"],"summary":"Whatsapp Opt In","description":"Record an explicit WhatsApp opt-in for the current user.","operationId":"whatsapp_opt_in_api_v1_notifications_whatsapp_opt_in_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPrefs"}}}}}}},"/api/v1/devices":{"post":{"tags":["devices"],"summary":"Register Device","description":"Register (or refresh) this device's push token for the current user.","operationId":"register_device_api_v1_devices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenRegister"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRegisterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/devices/{token}":{"delete":{"tags":["devices"],"summary":"Unregister Device","description":"Unregister a device token (logout / uninstall). Idempotent.","operationId":"unregister_device_api_v1_devices__token__delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/presence":{"get":{"tags":["presence"],"summary":"Get Presence","description":"Return ``{\"<user_id>\": true|false, ...}`` for the requested user ids.\n\nUnknown or offline users read as ``false``. An empty ``user_ids`` yields an\nempty object.","operationId":"get_presence_api_v1_presence_get","parameters":[{"name":"user_ids","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated user ids to look up.","default":"","title":"User Ids"},"description":"Comma-separated user ids to look up."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Get Presence Api V1 Presence Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/presence/last-seen":{"get":{"tags":["presence"],"summary":"Get Last Seen","description":"Return ``{\"<user_id>\": \"<iso-timestamp>\" | null, ...}`` — when each user\nwas last seen. ``null`` if unknown/expired. Used for the offline \"last seen …\"\nline; a user who is currently online should be shown as online regardless.","operationId":"get_last_seen_api_v1_presence_last_seen_get","parameters":[{"name":"user_ids","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated user ids to look up.","default":"","title":"User Ids"},"description":"Comma-separated user ids to look up."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Response Get Last Seen Api V1 Presence Last Seen Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/platform-workspace":{"get":{"tags":["workspaces"],"summary":"Admin Platform Workspace","description":"The DESIGNATED platform workspace id (``platform_site.workspace_id``).\n\nThe admin org can own several workspaces, so surfaces that must bind to\nTHE platform one (the assistants studio, the platform site) cannot rely on\nlist order — this is the single source of that designation.","operationId":"admin_platform_workspace_api_v1_admin_platform_workspace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Response Admin Platform Workspace Api V1 Admin Platform Workspace Get"}}}}}}},"/api/v1/invites/{token}/brand":{"get":{"tags":["workspaces"],"summary":"Invite Brand","description":"Public: the inviting tuner's brand for an invite token.\n\nUnauthenticated (the invited dealer is not signed in yet) + rate-limited. Lets\nthe register page show who the dealer is joining. 404 for an unknown/expired\ntoken, exposing only the tuner's public display name + visual brand.","operationId":"invite_brand_api_v1_invites__token__brand_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBrandPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/brand":{"get":{"tags":["workspaces"],"summary":"Workspace Public Brand","description":"Public: a workspace's brand by id (rate-limited, brand-only).\n\nLets the auth pages keep showing the tuner's brand for an invited dealer we\nremembered by cookie, after the one-time invite token has been consumed.","operationId":"workspace_public_brand_api_v1_workspaces__workspace_id__brand_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBrandPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/order-recipients":{"get":{"summary":"Order Recipients","description":"Dealers and partners the caller may build an order for in this workspace.\n\nOnly active monthly-invoice memberships: an order the customer did not place\ncan only settle on the cycle, where nothing is charged at create. A workspace\nthe caller does not own answers empty rather than 403 — the caller is a menu\ndeciding whether to offer the action, not a page asserting access.","operationId":"order_recipients_api_v1_workspaces__workspace_id__order_recipients_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRecipients"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/accounting/callback":{"get":{"summary":"Accounting Oauth Callback","description":"Exact OAuth redirect target (unauthenticated by design — the ``state`` is\nFernet-encrypted and identifies the workspace). Exchanges the code, stores the\ntokens, then bounces the browser back to the connections page.","operationId":"accounting_oauth_callback_api_v1_accounting_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/stripe/workspace-connect":{"post":{"summary":"Workspace Connect Webhook","description":"Standard-account ``account.updated`` webhook (separate from the pool's).\n\nUnauthenticated by design — Stripe signs the payload; the provider verifies\nit against the workspace connect signing secret before we touch the DB.","operationId":"workspace_connect_webhook_api_v1_webhooks_stripe_workspace_connect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Workspace Connect Webhook Api V1 Webhooks Stripe Workspace Connect Post"}}}}}}},"/api/v1/webhooks/stripe/workspace-subscription":{"post":{"summary":"Workspace Subscription Webhook","description":"Platform SaaS-subscription webhook. Unauthenticated by design — Stripe signs\nthe payload; the provider verifies it before we touch the DB.\n\nThree families arrive here:\n\n- ``checkout.session.completed`` (``mode=\"setup\"``) — the payment method the\n  tuner just saved; promoted to the Customer's default and snapshotted so the\n  subscription can be started, UNLESS the underlying SetupIntent has not\n  reached ``succeeded`` yet (a redirect-based method, e.g. iDEAL, routinely\n  has the browser back here before Stripe has finished confirming it) — in\n  which case ``setup_intent.succeeded`` finishes the job once it actually is.\n- ``setup_intent.succeeded`` — the real completion signal for the case above.\n  Carries the payment method it just confirmed, so it can promote it directly\n  rather than only re-reading Stripe's current default the way the other\n  ``PAYMENT_METHOD_EVENTS`` do.\n- ``invoice.paid`` / ``invoice.payment_failed`` /\n  ``customer.subscription.updated`` / ``.deleted`` — lifecycle. Overdue/\n  cancelled flips the workspace's ordering off via the status (pool access is\n  unaffected); ``updated`` is how an approved first charge becomes\n  ``active`` and an unapproved one ``incomplete_expired``.\n- ``invoice.payment_action_required`` — a charge the bank wants the customer\n  to approve: the owner is sent the invoice's hosted page to do it.\n\nA standalone hotel-agent usage invoice (``services.agent.usage_billing``,\ntagged ``metadata.kind=\"agent_usage\"`` at creation) fires the same\n``invoice.paid`` / ``invoice.payment_failed`` events on this same endpoint\n— it carries no subscription id, so it is routed here rather than through\n``sync_subscription_from_event``, which only reflects genuine subscription\ncharges.","operationId":"workspace_subscription_webhook_api_v1_webhooks_stripe_workspace_subscription_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Workspace Subscription Webhook Api V1 Webhooks Stripe Workspace Subscription Post"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/payment-fee":{"put":{"summary":"Admin Set Workspace Payment Fee","description":"Platform-admin sets or clears a workspace's Model B fee override.\n\nThe payment fee is the platform's own application fee (its revenue), so it is\nadmin-only here and deliberately absent from the owner-facing PATCH\n/workspaces/{id}. Both fields null clears the override (inherit the default).","operationId":"admin_set_workspace_payment_fee_api_v1_admin_workspaces__workspace_id__payment_fee_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePaymentFeeOverride"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{org_id}/workspaces":{"get":{"summary":"Admin Organisation Workspaces","description":"Every workspace an organisation owns — a dealer's website included — so\nthe admin organisation page can switch per-workspace features.","operationId":"admin_organisation_workspaces_api_v1_admin_organisations__org_id__workspaces_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminOrgWorkspaceRead"},"title":"Response Admin Organisation Workspaces Api V1 Admin Organisations  Org Id  Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/rrr":{"put":{"summary":"Admin Set Workspace Rrr","description":"Platform-admin switches RRR.lt parts sourcing on or off for a workspace.\n\nAdmin-only by design: tuners and dealers never see the switch, so the RRR\nlookup and the parts shop's RRR.lt search stay hidden until it is on.","operationId":"admin_set_workspace_rrr_api_v1_admin_workspaces__workspace_id__rrr_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRrrWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/subscription/discount":{"put":{"summary":"Admin Set Subscription Discount","description":"Platform-admin sets or clears a tuner's discount on the SaaS subscription.\n\n``bps=10000`` with no ``months`` is the comp that keeps everything real: the\ntuner stays on a live subscription with a renewal date and gets a EUR 0.00\ninvoice each month. Applied to the live subscription at Stripe when there is\none; otherwise recorded and applied when they subscribe. ``bps=null`` clears\nit and the tuner bills in full from their next invoice.","operationId":"admin_set_subscription_discount_api_v1_admin_workspaces__workspace_id__subscription_discount_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDiscountWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/subscription/status":{"delete":{"summary":"Admin Clear Subscription Status","description":"Platform-admin drops a stale subscription status back to never-subscribed.\n\nThe ordering gate is a deny-list, so a tuner left ``canceled`` stays paused\nhowever generous the plan they are put on afterwards. This is the repair for\nthat; it never touches the Stripe subscription.","operationId":"admin_clear_subscription_status_api_v1_admin_workspaces__workspace_id__subscription_status_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces":{"get":{"tags":["workspaces"],"summary":"List Workspaces","description":"The caller org's own workspaces — org-scoped, so a dealer sees exactly\ntheir website workspace and nothing else. A platform admin also gets every\nstorefront the platform runs, the stores the portal switcher offers.","operationId":"list_workspaces_api_v1_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceRead"},"type":"array","title":"Response List Workspaces Api V1 Workspaces Get"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Workspace","description":"Open a workspace for the caller's org.\n\nA tuner org holds one storefront. The platform org runs several businesses\n(TheTuningGroup, TheTuningFiles), each on its own storefront that the admin\nportal switches between, so an admin may open more. Only an admin may open\none already on a plan: a plan set here is a comped plan with no\nsubscription behind it, and a tuner passing ``plan`` would get it free.","operationId":"create_workspace_api_v1_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Website","description":"Delete one of the caller's additional websites.\n\nRefuses the main storefront (409): it anchors the tuner's orders, dealers,\ncredits and payouts. An additional site is closed rather than dropped, and\nits custom domain deactivated, so it stops serving without destroying any\nleads it captured.","operationId":"delete_website_api_v1_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_v1_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_v1_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/setup-status":{"get":{"tags":["workspaces"],"summary":"Workspace Setup Status","description":"Live activation status for the tuner setup checklist (owner/admin only).","operationId":"workspace_setup_status_api_v1_workspaces__workspace_id__setup_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/onboarding":{"get":{"tags":["workspaces"],"summary":"Workspace Onboarding","description":"What the setup checklist shows beyond the setup status: the plan step\n(trial days left, or Free and its fee), the setup-call link, and whether\n\"What's stopping you?\" was answered.","operationId":"workspace_onboarding_api_v1_workspaces__workspace_id__onboarding_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/onboarding/exit-answer":{"post":{"tags":["workspaces"],"summary":"Answer Onboarding Exit Question","description":"Keep the tuner's answer to \"What's stopping you?\" (an event).","operationId":"answer_onboarding_exit_question_api_v1_workspaces__workspace_id__onboarding_exit_answer_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExitAnswer"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/dealers":{"get":{"tags":["workspaces"],"summary":"List Workspace Dealers","description":"The tuner's active member dealers across their workspaces — the picker for\ncredit adjustments and cash-spread refunds (matches the scope guard).","operationId":"list_workspace_dealers_api_v1_workspaces_dealers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceDealerRead"},"type":"array","title":"Response List Workspace Dealers Api V1 Workspaces Dealers Get"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents/upload-url":{"post":{"tags":["workspaces"],"summary":"Document Upload Url","description":"Presign a PUT so the owner can upload a shareable document to storage.","operationId":"document_upload_url_api_v1_workspaces__workspace_id__documents_upload_url_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents":{"post":{"tags":["workspaces"],"summary":"Document Confirm","description":"Validate the finished upload and file it, minting its shareable link.","operationId":"document_confirm_api_v1_workspaces__workspace_id__documents_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentConfirm"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"List Documents","description":"Every document this workspace has uploaded, newest first.","operationId":"list_documents_api_v1_workspaces__workspace_id__documents_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentRead"},"title":"Response List Documents Api V1 Workspaces  Workspace Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents/{document_id}":{"patch":{"tags":["workspaces"],"summary":"Update Document","description":"Rename, re-file, or revoke a document.","operationId":"update_document_api_v1_workspaces__workspace_id__documents__document_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Document","description":"Remove a document. Its link stops resolving immediately.","operationId":"delete_document_api_v1_workspaces__workspace_id__documents__document_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/invites":{"post":{"tags":["workspaces"],"summary":"Invite Dealer","operationId":"invite_dealer_api_v1_workspaces__workspace_id__invites_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/invites/pending":{"get":{"tags":["workspaces"],"summary":"List Pending Invites","description":"Staged invites (emails with no account yet), so the dealers page can\nresend the email or hand the invite link over directly.","operationId":"list_pending_invites_api_v1_workspaces__workspace_id__invites_pending_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PendingInviteRead"},"title":"Response List Pending Invites Api V1 Workspaces  Workspace Id  Invites Pending Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/dealers/import/validate":{"post":{"tags":["workspaces"],"summary":"Validate Dealer Import","description":"Dry-run a dealer CSV: classify every row (new/skip/error) without writing.","operationId":"validate_dealer_import_api_v1_workspaces__workspace_id__dealers_import_validate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/dealers/import/commit":{"post":{"tags":["workspaces"],"summary":"Commit Dealer Import","description":"Create dealer accounts + memberships for the ``new`` rows and email invites.","operationId":"commit_dealer_import_api_v1_workspaces__workspace_id__dealers_import_commit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerImportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/imports/history/upload":{"post":{"tags":["workspaces"],"summary":"History Import Upload","description":"Open a queued import batch and presign a PUT for its bundle.\n\nThe client uploads the ZIP straight to object storage against the returned\n``upload_url`` (sending the same ``content_type``), then drives the\nvalidate -> commit -> poll flow with the returned ``import_batch_id``.","operationId":"history_import_upload_api_v1_workspaces__workspace_id__imports_history_upload_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryImportUploadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryImportUploadResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/imports/history/{batch_id}/validate":{"post":{"tags":["workspaces"],"summary":"History Import Validate","description":"Dry-run the ingest engine over the uploaded bundle (writes no orders/files).\n\nParses + validates the manifest, resolves each order's dealer + catalogue\nnode, verifies every file's sha256, and classifies (new / skip / error),\nreturning the report an operator approves; advances the batch to ``validated``.\nRuns inline and is bounded — the committing load is the durable task. A\nbundle-level fault (unreadable ZIP, invalid manifest, wrong source_platform)\nmarks the batch ``failed`` and 422s with the reason.","operationId":"history_import_validate_api_v1_workspaces__workspace_id__imports_history__batch_id__validate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryImportReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/imports/history/{batch_id}/commit":{"post":{"tags":["workspaces"],"summary":"History Import Commit","description":"Enqueue the durable load of a staged bundle (``dry_run=False``).\n\nThe load runs on the ``files`` queue under a committing ``task_session`` and is\nidempotent (``import_refs`` make a re-run skip already-imported orders), so a\nredelivery is safe. Returns 202 with the batch — the FE polls GET for status +\ncounts. Enqueue is a post-response side effect; no inline DB write.","operationId":"history_import_commit_api_v1_workspaces__workspace_id__imports_history__batch_id__commit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryImportBatch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/imports/history/{batch_id}":{"get":{"tags":["workspaces"],"summary":"History Import Status","description":"The batch's lifecycle status + running counts — the FE poll target.","operationId":"history_import_status_api_v1_workspaces__workspace_id__imports_history__batch_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryImportBatch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connect/onboard":{"post":{"tags":["workspaces"],"summary":"Connect Onboard","description":"Open (or resume) Standard Connect onboarding; returns a hosted URL.","operationId":"connect_onboard_api_v1_workspaces__workspace_id__connect_onboard_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectOnboardingLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connect/account-session":{"post":{"tags":["workspaces"],"summary":"Connect Account Session","description":"Mint an embedded-Connect Account Session client secret for the workspace.\n\nThe FE loads the onboarding + payout components against this short-lived\nsecret. Returns 409 if the workspace has no connected account yet (it must be\ncreated first via ``/connect/onboard``).","operationId":"connect_account_session_api_v1_workspaces__workspace_id__connect_account_session_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAccountSession"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connect/switch":{"post":{"tags":["workspaces"],"summary":"Connect Switch","description":"Replace this workspace's connected account: detach the current one so the\ntuner can onboard a different Stripe account (their charges + pool payouts\nthen settle to the new one). 409 (with pending counts) while a workspace\npayout is un-sent or a pool earning is still owed — drain those first.","operationId":"connect_switch_api_v1_workspaces__workspace_id__connect_switch_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__workspace__schemas__ConnectSwitchResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connect/status":{"get":{"tags":["workspaces"],"summary":"Connect Status","description":"Reflect the connected account's live capabilities onto the workspace.","operationId":"connect_status_api_v1_workspaces__workspace_id__connect_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connect/countries":{"get":{"tags":["workspaces"],"summary":"Connect Supported Countries","description":"The countries a tuner may pick for their payout account (the platform's\nsupported-transfer allowlist). Drives the onboarding country picker.","operationId":"connect_supported_countries_api_v1_workspaces__workspace_id__connect_countries_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportedConnectCountries"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connect/country":{"post":{"tags":["workspaces"],"summary":"Connect Set Country","description":"Choose the country of the payout account BEFORE it's created (immutable at\nStripe). 400 unsupported country; 409 once an account already exists (the tuner\nmust switch to change country).","operationId":"connect_set_country_api_v1_workspaces__workspace_id__connect_country_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCountrySelect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Connect Set Country Api V1 Workspaces  Workspace Id  Connect Country Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/subscription":{"post":{"tags":["workspaces"],"summary":"Start Subscription","description":"Start the platform SaaS subscription on a chosen plan.\n\nRequires a payment method already on file — the service raises 428 otherwise,\nwhich the client turns into the hosted setup flow below. Charging happens on\ncreate, so the returned status is normally ``active``; ``incomplete`` with a\n``pay_url`` means the bank wants the customer to approve the charge first.","operationId":"start_subscription_api_v1_workspaces__workspace_id__subscription_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"Get Subscription","description":"The workspace's current subscription id/plan/status + active gate.\n\nThe stored payment method is refreshed from Stripe first: the tuner can change\ntheir card in the hosted portal, whose return trip carries nothing to confirm,\nso the page would otherwise show the card they just replaced. Best effort — a\nprovider outage must not take the billing page down with it, so a failure\nfalls through to the stored snapshot.","operationId":"get_subscription_api_v1_workspaces__workspace_id__subscription_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/subscription/setup":{"post":{"tags":["workspaces"],"summary":"Begin Subscription Setup","description":"Open a Stripe-hosted page that collects and saves a payment method.\n\nStep one of subscribing. The method is attached by the\n``checkout.session.completed`` webhook, after which ``POST /subscription``\nsucceeds.","operationId":"begin_subscription_setup_api_v1_workspaces__workspace_id__subscription_setup_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionSetupCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/subscription/setup/complete":{"post":{"tags":["workspaces"],"summary":"Complete Subscription Setup","description":"Attach the payment method the hosted setup collected — the return trip.\n\nStep two of subscribing, called when the tuner lands back from Stripe. The\n``checkout.session.completed`` webhook does the same work, but arrives\nasynchronously: without this the tuner beats it back to the page and is asked\nto add the card they just added. Both paths are idempotent, so whichever wins\nis fine. Answers with the full subscription state so the client needs no\nsecond round trip.","operationId":"complete_subscription_setup_api_v1_workspaces__workspace_id__subscription_setup_complete_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionSetupComplete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/subscription/portal":{"post":{"tags":["workspaces"],"summary":"Open Billing Portal","description":"A Stripe-hosted billing portal for managing the saved payment method.","operationId":"open_billing_portal_api_v1_workspaces__workspace_id__subscription_portal_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/subscription/quote/{plan_code}":{"get":{"tags":["workspaces"],"summary":"Quote Plan","description":"What this plan costs this tuner: net, VAT and the gross that gets charged.\n\nPrices are quoted ex VAT, so the confirmation screen needs the same tax\nresolution the charge and the invoice use — never a number computed client\nside.","operationId":"quote_plan_api_v1_workspaces__workspace_id__subscription_quote__plan_code__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"plan_code","in":"path","required":true,"schema":{"type":"string","title":"Plan Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanQuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/team":{"get":{"tags":["workspaces"],"summary":"List Team","description":"The workspace org's team (active + pending) with seat usage vs. the cap.\n\nReadable by the whole team — a member seeing who their colleagues are is not\nprivileged, and gating the read left them a nav entry that could only ever\nerror. Managing the team stays owner/admin-only on the mutations below; the\nUI hides those controls for a member. ``_owned_or_404`` still scopes the\nroster to the caller's own org.","operationId":"list_team_api_v1_workspaces__workspace_id__team_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/team/invite":{"post":{"tags":["workspaces"],"summary":"Invite Team Member","description":"Invite a teammate. Seats are uncapped on every plan since migration 0191;\nthe 403 remains only for a plan that explicitly carries a seat limit.","operationId":"invite_team_member_api_v1_workspaces__workspace_id__team_invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/team/{user_id}":{"patch":{"tags":["workspaces"],"summary":"Update Team Member","description":"Change a teammate's role (owner-only; the sole owner cannot be demoted).","operationId":"update_team_member_api_v1_workspaces__workspace_id__team__user_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"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/TeamRoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Remove Team Member","description":"Soft-remove a teammate, freeing their seat (the sole owner is protected).","operationId":"remove_team_member_api_v1_workspaces__workspace_id__team__user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships":{"get":{"tags":["workspaces"],"summary":"List Memberships","description":"A filtered / sorted / paginated page of the workspace's dealers (+ per-status\ncounts for the filter chips). Filter by ``status`` / ``payment_mode``, search\nname or billing email, and sort by ``created_at`` / ``last_login`` / ``name``.","operationId":"list_memberships_api_v1_workspaces__workspace_id__memberships_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"payment_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Mode"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(created_at|last_login|name)$","default":"created_at","title":"Sort"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Direction"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}":{"get":{"tags":["workspaces"],"summary":"Get Membership","description":"One dealer's detail: identity, contacts, settings, and recent invoices.","operationId":"get_membership_api_v1_workspaces__workspace_id__memberships__membership_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerDetailRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update Membership","description":"Edit how one dealer settles: payment mode, terms, price overrides, status.","operationId":"update_membership_api_v1_workspaces__workspace_id__memberships__membership_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Remove Membership","description":"Remove a dealer from this workspace — they fall back to the platform pool.","operationId":"remove_membership_api_v1_workspaces__workspace_id__memberships__membership_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/orders":{"get":{"tags":["workspaces"],"summary":"Dealer Orders","description":"One page of this dealer's orders with the tuner (+ per-status counts).\n\nEach row resolves ``vehicle_label`` / ``ecu_label`` and its ``id`` deep-links\nto the order detail. Filter by ``status``; sort ``newest`` / ``oldest``.","operationId":"dealer_orders_api_v1_workspaces__workspace_id__memberships__membership_id__orders_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(newest|oldest)$","default":"newest","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerOrdersPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/vehicles":{"get":{"tags":["workspaces"],"summary":"Dealer Vehicles","description":"This dealer's vehicles with the tuner — orders grouped by VIN / plate /\nengine node, each carrying its original + completed files. Paged by vehicle.","operationId":"dealer_vehicles_api_v1_workspaces__workspace_id__memberships__membership_id__vehicles_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerVehiclesPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/orders/{order_id}/download":{"get":{"tags":["workspaces"],"summary":"Dealer Order Download","description":"Presign this dealer's original read (``which=original``) or completed tune\n(``which=completed``) for the tuner. 404 when the order or file is absent or\nnot this dealer's in this workspace.","operationId":"dealer_order_download_api_v1_workspaces__workspace_id__memberships__membership_id__orders__order_id__download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"which","in":"query","required":false,"schema":{"type":"string","pattern":"^(original|completed)$","default":"original","title":"Which"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/conversations":{"get":{"tags":["workspaces"],"summary":"Dealer Conversations","description":"This dealer's support threads scoped to the tuner — never a\nplatform-internal escalation about the dealer.","operationId":"dealer_conversations_api_v1_workspaces__workspace_id__memberships__membership_id__conversations_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerConversationsPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/metrics":{"get":{"tags":["workspaces"],"summary":"Dealer Metrics","description":"Aggregate order metrics for this dealer with the tuner: status mix, monthly\nvolume, service mix by stage, and the distinct-vehicle count.","operationId":"dealer_metrics_api_v1_workspaces__workspace_id__memberships__membership_id__metrics_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerMetrics"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/credit-ledger":{"get":{"tags":["workspaces"],"summary":"Dealer Credit Ledger","description":"This dealer's credit ledger with the tuner (their wallet in this\nworkspace), newest first.","operationId":"dealer_credit_ledger_api_v1_workspaces__workspace_id__memberships__membership_id__credit_ledger_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerCreditLedgerPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/invoices":{"get":{"tags":["workspaces"],"summary":"Dealer Invoices","description":"Everything this tuner has billed the dealer, plus what is still forming.","operationId":"dealer_invoices_api_v1_workspaces__workspace_id__memberships__membership_id__invoices_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerInvoiceOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/invoice-orders":{"get":{"tags":["workspaces"],"summary":"Dealer Invoice Orders","description":"The orders behind one invoice row — what its total is made of.\n\n``row`` is the overview row's key (``upcoming:2026-09`` / ``cycle:<uuid>``).\nIt is client-supplied, so the query re-checks the resolved invoice belongs to\nthis workspace and this dealer rather than trusting it.","operationId":"dealer_invoice_orders_api_v1_workspaces__workspace_id__memberships__membership_id__invoice_orders_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"row","in":"query","required":true,"schema":{"type":"string","maxLength":80,"title":"Row"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceOrderLine"},"title":"Response Dealer Invoice Orders Api V1 Workspaces  Workspace Id  Memberships  Membership Id  Invoice Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/cycle-invoices/{header_id}/mark-paid":{"post":{"tags":["workspaces"],"summary":"Mark Cycle Invoice Paid","description":"Record a bank transfer against a cycle invoice and kill its pay-link.\n\nThe link would otherwise stay live for its whole session window, and a dealer\nwho paid it after the transfer would be charged twice for the same month.","operationId":"mark_cycle_invoice_paid_api_v1_workspaces__workspace_id__cycle_invoices__header_id__mark_paid_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"header_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Header Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkInvoicePaidRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInvoiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/cycle-invoices/{header_id}/unmark-paid":{"post":{"tags":["workspaces"],"summary":"Unmark Cycle Invoice Paid","description":"Undo a manual settlement recorded in error. Manual ones only — a\nStripe-settled invoice must stay paid.","operationId":"unmark_cycle_invoice_paid_api_v1_workspaces__workspace_id__cycle_invoices__header_id__unmark_paid_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"header_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Header Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInvoiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/memberships/{membership_id}/credits":{"post":{"tags":["workspaces"],"summary":"Grant Dealer Credits","description":"Grant (amount > 0) or deduct (amount < 0) goodwill credits on one dealer's\nwallet with this tuner. A grant emails the dealer (tuner-branded).","operationId":"grant_dealer_credits_api_v1_workspaces__workspace_id__memberships__membership_id__credits_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreditsRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Grant Dealer Credits Api V1 Workspaces  Workspace Id  Memberships  Membership Id  Credits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/credit-mode":{"get":{"tags":["workspaces"],"summary":"Get Credit Mode Preview","description":"What a credit-mode switch would migrate: every dealer's non-zero wallet\nbalances under this workspace, plus per-kind totals — the confirmation\ndialog's data.","operationId":"get_credit_mode_preview_api_v1_workspaces__workspace_id__credit_mode_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditModePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Set Credit Mode","description":"Switch between two credit types (slave/master) and one (\"general\").\n\nMigrates every dealer wallet balance and re-kinds the workspace's packs in\nthe same transaction. ``target_kind`` is required when switching back to\ntwo types. A request matching the current mode is a no-op.","operationId":"set_credit_mode_api_v1_workspaces__workspace_id__credit_mode_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditModeChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditModeChangeResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/usage":{"get":{"tags":["workspaces"],"summary":"List Usage","description":"Outstanding (not-yet-invoiced) on-account usage lines for the tuner.","operationId":"list_usage_api_v1_workspaces__workspace_id__usage_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsageLineRead"},"title":"Response List Usage Api V1 Workspaces  Workspace Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/invoices":{"get":{"tags":["workspaces"],"summary":"List Invoices","description":"The cycle-close monthly invoices raised for the tuner's dealers.","operationId":"list_invoices_api_v1_workspaces__workspace_id__invoices_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceInvoiceRead"},"title":"Response List Invoices Api V1 Workspaces  Workspace Id  Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/order-invoices/{invoice_id}/download":{"get":{"tags":["workspaces"],"summary":"Download Order Invoice","description":"Presigned PDF of a per-order invoice the tuner issued to a dealer — scoped\nto the tuner's own workspace so they can't pull another workspace's documents.","operationId":"download_order_invoice_api_v1_workspaces__workspace_id__order_invoices__invoice_id__download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/invoice-preview":{"post":{"tags":["workspaces"],"summary":"Preview Workspace Invoice","description":"A sample of the invoice this tuner sends their dealers, as a PDF.\n\nRendered by the same code that produces the real document, from the tuner's\nown seller snapshot — so what they see here is what a dealer receives, down\nto the truncation. Nothing is stored and no invoice number is consumed.\n\n``terms`` (optional) stands in for the saved invoice terms, so the editor can\npreview UNSAVED text before the tuner commits to it.","operationId":"preview_workspace_invoice_api_v1_workspaces__workspace_id__invoice_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/partner-invoice-code":{"get":{"tags":["workspaces"],"summary":"Get Partner Invoice Code","description":"The code this workspace's partner invoices are numbered with\n(``SUB-{CODE}-{YYYY}-{NNNN}``), whether it was chosen, and whether it is\nstill free to change.","operationId":"get_partner_invoice_code_api_v1_workspaces__workspace_id__partner_invoice_code_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerInvoiceCode"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Set Partner Invoice Code","description":"Choose the partner-invoice code, until the first document carries it.","operationId":"set_partner_invoice_code_api_v1_workspaces__workspace_id__partner_invoice_code_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerInvoiceCodeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerInvoiceCode"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/invoices/all":{"get":{"tags":["workspaces"],"summary":"List All Invoices","description":"Every cycle invoice across all the tuner's workspaces (newest first) — the\ntuner-wide feed for the refunds page. Admins see their own org's workspaces.","operationId":"list_all_invoices_api_v1_workspaces_invoices_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceInvoiceRead"},"type":"array","title":"Response List All Invoices Api V1 Workspaces Invoices All Get"}}}}}}},"/api/v1/workspaces/{workspace_id}/invoices/{payment_id}/refund":{"post":{"tags":["workspaces"],"summary":"Refund Invoice","description":"Refund (part of) a paid monthly cycle invoice to the dealer.\n\nScoped to a workspace the tuner owns; the refund issues the Stripe refund on the\ncycle payment, claws back the tuner's transfer proportionally, and books a credit\nnote against the invoice. Returns the cents actually refunded.","operationId":"refund_invoice_api_v1_workspaces__workspace_id__invoices__payment_id__refund_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"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/InvoiceRefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refund Invoice Api V1 Workspaces  Workspace Id  Invoices  Payment Id  Refund Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connections":{"get":{"tags":["workspaces"],"summary":"List Connections","description":"Per-provider connection status (enabled/validation), never any secret.","operationId":"list_connections_api_v1_workspaces__workspace_id__connections_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceConnections"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connections/{provider}":{"put":{"tags":["workspaces"],"summary":"Save Connection","description":"Save + validate a provider's Master credentials (encrypted; write-only).","operationId":"save_connection_api_v1_workspaces__workspace_id__connections__provider__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionCredentialsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connections/{provider}/enable":{"post":{"tags":["workspaces"],"summary":"Enable Connection","description":"Arm automated decrypt/re-encrypt (only allowed once validated).","operationId":"enable_connection_api_v1_workspaces__workspace_id__connections__provider__enable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connections/{provider}/disable":{"post":{"tags":["workspaces"],"summary":"Disable Connection","operationId":"disable_connection_api_v1_workspaces__workspace_id__connections__provider__disable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/connections/{provider}/test":{"post":{"tags":["workspaces"],"summary":"Test Connection","description":"Re-validate the stored credentials live and persist the outcome.","operationId":"test_connection_api_v1_workspaces__workspace_id__connections__provider__test_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionTestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/lead-webhook":{"get":{"tags":["workspaces"],"summary":"Get Lead Webhook","operationId":"get_lead_webhook_api_v1_workspaces__workspace_id__lead_webhook_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadWebhookRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/lead-webhook/activate":{"post":{"tags":["workspaces"],"summary":"Activate Lead Webhook","description":"Mint the token (or re-enable it if the tuner had paused intake).","operationId":"activate_lead_webhook_api_v1_workspaces__workspace_id__lead_webhook_activate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadWebhookRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/lead-webhook/disable":{"post":{"tags":["workspaces"],"summary":"Disable Lead Webhook","description":"Pause intake without losing the token — re-activate resumes it as-is.","operationId":"disable_lead_webhook_api_v1_workspaces__workspace_id__lead_webhook_disable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadWebhookRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/lead-webhook/rotate":{"post":{"tags":["workspaces"],"summary":"Rotate Lead Webhook","description":"Mint a fresh token — every tool configured with the old one stops\nworking until the tuner pastes the new one in. The fix for a leaked key.","operationId":"rotate_lead_webhook_api_v1_workspaces__workspace_id__lead_webhook_rotate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadWebhookRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/accounting":{"get":{"tags":["workspaces"],"summary":"List Accounting","description":"Every accounting integration's status for this workspace (connected or not).","operationId":"list_accounting_api_v1_workspaces__workspace_id__accounting_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccountingStatus"},"title":"Response List Accounting Api V1 Workspaces  Workspace Id  Accounting Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/accounting/{provider}/connect":{"post":{"tags":["workspaces"],"summary":"Accounting Connect","description":"Start OAuth: return the Exact consent URL to redirect the tuner to.","operationId":"accounting_connect_api_v1_workspaces__workspace_id__accounting__provider__connect_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountingConnectBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectStart"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/accounting/{provider}/division":{"post":{"tags":["workspaces"],"summary":"Accounting Select Division","description":"Pick the Exact administration and auto-map its VAT codes.","operationId":"accounting_select_division_api_v1_workspaces__workspace_id__accounting__provider__division_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DivisionSelectBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/accounting/{provider}/backfill":{"patch":{"tags":["workspaces"],"summary":"Accounting Backfill","description":"Opt into (or out of) pushing invoices issued before connect. Default off.","operationId":"accounting_backfill_api_v1_workspaces__workspace_id__accounting__provider__backfill_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillBody"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/accounting/{provider}/enable":{"post":{"tags":["workspaces"],"summary":"Accounting Enable","description":"Arm the invoice push (requires a connected, division-selected integration).","operationId":"accounting_enable_api_v1_workspaces__workspace_id__accounting__provider__enable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/accounting/{provider}/disable":{"post":{"tags":["workspaces"],"summary":"Accounting Disable","operationId":"accounting_disable_api_v1_workspaces__workspace_id__accounting__provider__disable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/accounting/{provider}/test":{"post":{"tags":["workspaces"],"summary":"Accounting Test","description":"Live re-validate the connection (refresh a token + call the API).","operationId":"accounting_test_api_v1_workspaces__workspace_id__accounting__provider__test_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/google-reviews":{"get":{"tags":["workspaces"],"summary":"Google Reviews Status","description":"Whether this workspace has connected Google, and which business.","operationId":"google_reviews_status_api_v1_workspaces__workspace_id__google_reviews_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleReviewsStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Google Reviews Disconnect","description":"Forget the grant entirely — the stored token is dropped, not disabled.","operationId":"google_reviews_disconnect_api_v1_workspaces__workspace_id__google_reviews_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/google-reviews/connect":{"post":{"tags":["workspaces"],"summary":"Google Reviews Connect","description":"Where to send the tuner to grant access.\n\n``state`` carries the workspace so the callback can attribute the grant\nwithout trusting a query parameter the browser could have edited.","operationId":"google_reviews_connect_api_v1_workspaces__workspace_id__google_reviews_connect_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleReviewsConnect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/google-reviews/callback":{"post":{"tags":["workspaces"],"summary":"Google Reviews Callback","description":"Finish the consent round trip and return the locations to choose from.","operationId":"google_reviews_callback_api_v1_workspaces__workspace_id__google_reviews_callback_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleReviewsCallback"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleLocationRead"},"title":"Response Google Reviews Callback Api V1 Workspaces  Workspace Id  Google Reviews Callback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/google-reviews/locations":{"get":{"tags":["workspaces"],"summary":"Google Reviews Locations","description":"The connected account's locations, for the picker.","operationId":"google_reviews_locations_api_v1_workspaces__workspace_id__google_reviews_locations_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleLocationRead"},"title":"Response Google Reviews Locations Api V1 Workspaces  Workspace Id  Google Reviews Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/google-reviews/location":{"put":{"tags":["workspaces"],"summary":"Google Reviews Select Location","description":"Point the connection at one of the account's locations.","operationId":"google_reviews_select_location_api_v1_workspaces__workspace_id__google_reviews_location_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLocationSelect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleReviewsStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/entitlements":{"get":{"tags":["workspaces"],"summary":"Workspace Entitlements","description":"The workspace's resolved entitlement map (plan defaults overlaid by per-tuner\noverrides). Drives the FE feature-gate (locked nav items) + the tuner Plan &\nUsage panels. Owner/admin only.","operationId":"workspace_entitlements_api_v1_workspaces__workspace_id__entitlements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Workspace Entitlements Api V1 Workspaces  Workspace Id  Entitlements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/usage/summary":{"get":{"tags":["workspaces"],"summary":"Workspace Usage Summary","description":"Plan-usage meters for the tuner Usage page (§14.5): monthly orders\nused/limit (+ overage accrued this cycle) with the reset date, team seats, and\ncampaign recipients when applicable. Owner/admin only.","operationId":"workspace_usage_summary_api_v1_workspaces__workspace_id__usage_summary_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUsageSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent-usage":{"get":{"tags":["workspaces"],"summary":"Workspace Agent Usage","description":"The tuner Usage page's AI concierge card: the most recently pulled\nhotel-agent WhatsApp + LLM statement, or ``connected=False`` for a\nworkspace with no AI agent at all. Owner/admin only.","operationId":"workspace_agent_usage_api_v1_workspaces__workspace_id__agent_usage_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUsageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/mine":{"get":{"tags":["workspaces"],"summary":"My Workspaces","description":"The caller org's own workspaces in brief — id, name, site address, whether\nit is the platform site and whether its blog is set up; for a platform admin\nalso every storefront the platform runs. Declared before ``/{workspace_id}``\nso the literal path is not read as an id.","operationId":"my_workspaces_api_v1_workspaces_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceDirectoryEntry"},"type":"array","title":"Response My Workspaces Api V1 Workspaces Mine Get"}}}}}}},"/api/v1/workspaces/{workspace_id}/branding":{"patch":{"tags":["workspaces"],"summary":"Update Branding","operationId":"update_branding_api_v1_workspaces__workspace_id__branding_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/branding/assets/upload-url":{"post":{"tags":["workspaces"],"summary":"Branding Asset Upload Url","description":"Presign a PUT so the owner can upload a branding logo/icon directly to storage.","operationId":"branding_asset_upload_url_api_v1_workspaces__workspace_id__branding_assets_upload_url_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetUploadResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/branding/assets/confirm":{"post":{"tags":["workspaces"],"summary":"Branding Asset Confirm","description":"Validate the finished upload, publish it, and store its URL on branding.","operationId":"branding_asset_confirm_api_v1_workspaces__workspace_id__branding_assets_confirm_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book":{"get":{"tags":["workspaces"],"summary":"Get Price Book","description":"The tuner's editable price book: their rate + every catalogue item with its\npool default beside the tuner's override.","operationId":"get_price_book_api_v1_workspaces__workspace_id__price_book_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBookView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book/rate":{"patch":{"tags":["workspaces"],"summary":"Set Price Book Rate","description":"Set (or clear, with null) the tuner's per-kind credit→euro rates.\n\n``currency_rates`` merges per currency; use the DELETE below to stop selling\nin one.","operationId":"set_price_book_rate_api_v1_workspaces__workspace_id__price_book_rate_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book/standard":{"post":{"tags":["workspaces"],"summary":"Use Standard Prices","description":"Take the platform's standard prices, in every currency the tuner sells in\nthat the platform prices (never a conversion).","operationId":"use_standard_prices_api_v1_workspaces__workspace_id__price_book_standard_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book/import/validate":{"post":{"tags":["workspaces"],"summary":"Validate Price Import","description":"Preview a price-list import: what every row would set, and why a row\nwould be skipped. Writes nothing.","operationId":"validate_price_import_api_v1_workspaces__workspace_id__price_book_import_validate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book/import/commit":{"post":{"tags":["workspaces"],"summary":"Commit Price Import","description":"Apply a price-list import — exactly what the preview showed.","operationId":"commit_price_import_api_v1_workspaces__workspace_id__price_book_import_commit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book/price-list":{"post":{"tags":["workspaces"],"summary":"Send Price List","description":"Hand the platform team a price list to enter: a support ticket with the\nfile (uploaded first through the ticket attachment presign) attached.","operationId":"send_price_list_api_v1_workspaces__workspace_id__price_book_price_list_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceListSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Price List Api V1 Workspaces  Workspace Id  Price Book Price List Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book/rate/{currency}":{"delete":{"tags":["workspaces"],"summary":"Remove Price Book Currency Rate","description":"Stop selling to this workspace's buyers in ``currency``.\n\nThe explicit counterpart to the merging PATCH — blanking the fields there\nleaves the stored rates alone, so removal cannot happen by accident.","operationId":"remove_price_book_currency_rate_api_v1_workspaces__workspace_id__price_book_rate__currency__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"currency","in":"path","required":true,"schema":{"type":"string","title":"Currency"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/price-book/{item_type}/{item_key}":{"put":{"tags":["workspaces"],"summary":"Set Price Book Item","description":"Set one price-book override (credits and/or explicit euros). An all-null\nbody clears the override so the item reverts to the pool price.\n\n``price_list`` picks the dealer list (default) or the public one the tuner\nkeeps for website and agent quotes once dual pricing is switched on.","operationId":"set_price_book_item_api_v1_workspaces__workspace_id__price_book__item_type___item_key__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"item_type","in":"path","required":true,"schema":{"type":"string","title":"Item Type"}},{"name":"item_key","in":"path","required":true,"schema":{"type":"string","title":"Item Key"}},{"name":"price_list","in":"query","required":false,"schema":{"enum":["dealer","public"],"type":"string","default":"dealer","title":"Price List"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBookOverrideUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Price Book Item","description":"Remove an override so the item falls back — a dealer row to the pool\nprice, a public row to the dealer price.","operationId":"delete_price_book_item_api_v1_workspaces__workspace_id__price_book__item_type___item_key__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"item_type","in":"path","required":true,"schema":{"type":"string","title":"Item Type"}},{"name":"item_key","in":"path","required":true,"schema":{"type":"string","title":"Item Key"}},{"name":"price_list","in":"query","required":false,"schema":{"enum":["dealer","public"],"type":"string","default":"dealer","title":"Price List"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/opening-hours":{"get":{"tags":["workspaces"],"summary":"Get Opening Hours","description":"The workspace's own schedule if set, else the platform default.","operationId":"get_opening_hours_api_v1_workspaces__workspace_id__opening_hours_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningHoursRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Update Opening Hours","description":"Set the workspace's opening hours; dealers ordering here see this schedule.","operationId":"update_opening_hours_api_v1_workspaces__workspace_id__opening_hours_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningHoursWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningHoursRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/opening-hours/configured":{"get":{"tags":["workspaces"],"summary":"Get Opening Hours Configured","description":"Whether the workspace filled in its own hours (the dealer setup checklist).","operationId":"get_opening_hours_configured_api_v1_workspaces__workspace_id__opening_hours_configured_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningHoursConfigured"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-domain":{"post":{"tags":["workspaces"],"summary":"Register Email Domain","description":"Register the tuner's sending domain (Tier-2); returns the DNS records to add.\n\nSending stays on Tier-1 (platform domain + tuner brand) until the records are\npublished and verification passes.","operationId":"register_email_domain_api_v1_workspaces__workspace_id__email_domain_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainRegister"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"Get Email Domain","description":"The workspace's sending-domain status + the DNS records it must publish.","operationId":"get_email_domain_api_v1_workspaces__workspace_id__email_domain_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Remove Email Domain","description":"Remove the sending domain (revert to Tier-1) so a new one can be registered.","operationId":"remove_email_domain_api_v1_workspaces__workspace_id__email_domain_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-domain/verify":{"post":{"tags":["workspaces"],"summary":"Verify Email Domain","description":"Poll DNS now and persist the SPF/DKIM/DMARC result; flips to Tier-2 when all pass.","operationId":"verify_email_domain_api_v1_workspaces__workspace_id__email_domain_verify_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-domain/link-branding":{"post":{"tags":["workspaces"],"summary":"Register Link Branding","description":"Register SendGrid link branding for the verified sending domain.\n\nReturns the stored ``link_branding`` block — the two CNAMEs to publish plus\nthe validation state. 409 until the email domain itself is verified; 503\nwhen no SendGrid key is configured (never fakes success). Idempotent.","operationId":"register_link_branding_api_v1_workspaces__workspace_id__email_domain_link_branding_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Link Branding Api V1 Workspaces  Workspace Id  Email Domain Link Branding Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-domain/link-branding/validate":{"post":{"tags":["workspaces"],"summary":"Validate Link Branding","description":"Ask SendGrid to re-check the link-branding CNAMEs; returns the refreshed\nblock. 409 until link branding is registered. Idempotent per call.","operationId":"validate_link_branding_api_v1_workspaces__workspace_id__email_domain_link_branding_validate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Validate Link Branding Api V1 Workspaces  Workspace Id  Email Domain Link Branding Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites/accruing":{"get":{"tags":["workspaces"],"summary":"List My Accruing","description":"A dealer's on-account charges still accruing — not yet turned into an invoice\n(each supplier tuner bills them at its next monthly close).","operationId":"list_my_accruing_api_v1_invites_accruing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AccruingCycle"},"type":"array","title":"Response List My Accruing Api V1 Invites Accruing Get"}}}}}}},"/api/v1/invites/memberships":{"get":{"tags":["workspaces"],"summary":"List My Memberships","description":"The caller org's memberships — which tuner workspaces they belong to.","operationId":"list_my_memberships_api_v1_invites_memberships_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MembershipRead"},"type":"array","title":"Response List My Memberships Api V1 Invites Memberships Get"}}}}}}},"/api/v1/invites/cycle-invoices":{"get":{"tags":["workspaces"],"summary":"List My Cycle Invoices","description":"The caller dealer's monthly on-account invoices + tuner-branded pay-links.","operationId":"list_my_cycle_invoices_api_v1_invites_cycle_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceInvoiceRead"},"type":"array","title":"Response List My Cycle Invoices Api V1 Invites Cycle Invoices Get"}}}}}}},"/api/v1/invites/cycle-invoices/{header_id}/pay":{"post":{"tags":["workspaces"],"summary":"Pay My Cycle Invoice","description":"Open a fresh checkout for one of the caller's own cycle invoices.\n\nThe Pay button's route: never the stored 24-hour session URL, always a new\nsession, through the provider the dealer picked (Stripe's methods or\nPayPal). Another organisation's invoice reads as 404.","operationId":"pay_my_cycle_invoice_api_v1_invites_cycle_invoices__header_id__pay_post","parameters":[{"name":"header_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Header Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CyclePayRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CyclePayResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites/{token}/accept":{"post":{"tags":["workspaces"],"summary":"Accept Invite","operationId":"accept_invite_api_v1_invites__token__accept_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/documents/{public_token}":{"get":{"tags":["public"],"summary":"Get Document","description":"Stream a shared document, or 404.\n\nOne 404 covers \"no such token\", \"revoked\" and \"the object is gone\", because\ntelling them apart would let a caller confirm that a token once existed.","operationId":"get_document_api_v1_public_documents__public_token__get","parameters":[{"name":"public_token","in":"path","required":true,"schema":{"type":"string","title":"Public Token"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/forms":{"post":{"tags":["sites"],"summary":"Submit Site Form","description":"Public: store a website form submission for the workspace's inbox.\n\nAnonymous + rate-limited; honeypot submissions are accepted and dropped so\nbots can't probe. The response is identical either way.","operationId":"submit_site_form_api_v1_sites__workspace_id__forms_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormSubmitIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Submit Site Form Api V1 Sites  Workspace Id  Forms Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/quotes/{submission_id}":{"get":{"tags":["sites"],"summary":"Public Quote","description":"Public: the account-less \"accept & book\" view of a priced website quote.\n\nToken-gated (the accept token from the quote email); a wrong/missing token or\nsubmission reads as 404 so the link never leaks a lead. Anonymous + rate-limited.","operationId":"public_quote_api_v1_public_quotes__submission_id__get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/quotes/{submission_id}/accept":{"post":{"tags":["sites"],"summary":"Accept Public Quote","description":"Public: the customer accepts a priced quote from the email link.\n\nIdempotent (a repeat accept returns ``already_accepted``); 410 when lapsed,\n404 on a token mismatch. Commits at the side-effect boundary so the accept +\ntuner-notification event land together.","operationId":"accept_public_quote_api_v1_public_quotes__submission_id__accept_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteAcceptIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteAcceptResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/quotes/{submission_id}/slots":{"get":{"tags":["sites"],"summary":"Public Quote Slots","description":"Public: the times an accepted quote's appointment can be booked for.\n\nWithout ``from``/``to`` the earliest free times; with them, every one in\nthat window — the page loads its month grid a month at a time up to\n``bookable_until``. Same bounds as the public booking widget's own feed.\n\nToken-gated like the quote itself (404 on mismatch); 409 before the quote is\naccepted or once it is booked; 404 when the tuner's calendar cannot take it\n(no plan for it, or no appointment type covers these services).","operationId":"public_quote_slots_api_v1_public_quotes__submission_id__slots_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteSlotFeed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/quotes/{submission_id}/book":{"post":{"tags":["sites"],"summary":"Book Public Quote","description":"Public: book one of the offered times for an accepted quote.\n\nThe signed slot ref is the only time this can book. Idempotent — a quote\nalready booked answers with that booking. Booking refusals (slot taken,\nday full, email required) arrive as the calendar's own codes. Commits at\nthe side-effect boundary so the booking, the stamped intake and the\ntimeline event land together.","operationId":"book_public_quote_api_v1_public_quotes__submission_id__book_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteBookIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteBookingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/by-slug/{slug}":{"get":{"tags":["sites"],"summary":"Public Site By Slug","description":"Public: one published page of a workspace's site by slug + path (rate-limited).","operationId":"public_site_by_slug_api_v1_sites_by_slug__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/by-host":{"get":{"tags":["sites"],"summary":"Public Site By Host","description":"Public: one published page of a workspace by custom-domain host + path (rate-limited).","operationId":"public_site_by_host_api_v1_sites_by_host_get","parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string","title":"Host"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform":{"get":{"tags":["sites"],"summary":"Platform Site Page","description":"Public: one published page of the PLATFORM marketing site (tuneforge.eu).\n\n``locale`` selects a locale-tagged page variant (untagged = English). 404\nwhen no platform workspace is designated, its site is unpublished, or no\npage matches — the apex deploy falls back to (or stays on) the static tree.","operationId":"platform_site_page_api_v1_sites_platform_get","parameters":[{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Path"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/pricing":{"get":{"tags":["sites"],"summary":"Platform Site Pricing","description":"Public: the platform pool's live pricing — default stages, curated\nadd-ons and platform credit packs (rate-limited).\n\nAlways resolvable (the pool exists independently of the platform-site\nworkspace), so the marketing Pricing block and credit calculator can render\nlive numbers even before the Puck site cutover. Amounts are minor units of the\nresponse's own ``currency``, here the platform's configured one.","operationId":"platform_site_pricing_api_v1_sites_platform_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPricing"}}}}}}},"/api/v1/sites/platform/latest-orders":{"get":{"tags":["sites"],"summary":"Platform Latest Orders","description":"Public: the homepage \"latest orders\" strip — the newest delivered orders\nfrom admin-featured tuners (brand, car, gains, ECU), as social proof.\n\nNo auth, rate-limited, and PUBLIC-SAFE fields only (never a buyer, plate, VIN,\nprice or file). A ~60s server cache fronts this unauthenticated hot path; an\nempty ``items`` list is normal until an operator features a tuner.","operationId":"platform_latest_orders_api_v1_sites_platform_latest_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestOrders"}}}}}}},"/api/v1/sites/platform/products":{"get":{"tags":["sites"],"summary":"Platform Site Products","description":"Public: the PLATFORM webshop catalogue for the tuneforge.eu site's shop\nblocks (rate-limited). Same seam as ``/sites/platform/pricing`` — always\nresolvable, empty products list when nothing is on sale yet. ``public=True``\nkeeps ``admin_only`` products off the marketing shop.","operationId":"platform_site_products_api_v1_sites_platform_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShop"}}}}}}},"/api/v1/sites/platform/products/{slug}":{"get":{"tags":["sites"],"summary":"Platform Site Product","description":"Public: one PLATFORM product by slug — the product-detail page source\n(rate-limited). 404 when the slug is unknown or has no sellable variant.\n``public=True`` so an ``admin_only`` product is never exposed publicly.","operationId":"platform_site_product_api_v1_sites_platform_products__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShop"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/collections":{"get":{"tags":["sites"],"summary":"Platform Site Collections","description":"Public: every PLATFORM collection with its member products, for the\ntuneforge.eu site's Collection blocks (rate-limited). Same seam as\n``/sites/platform/products``.","operationId":"platform_site_collections_api_v1_sites_platform_collections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PublicCollection"},"type":"array","title":"Response Platform Site Collections Api V1 Sites Platform Collections Get"}}}}}}},"/api/v1/sites/platform/collections/{slug}":{"get":{"tags":["sites"],"summary":"Platform Site Collection","description":"Public: one PLATFORM collection by slug — the dedicated\n``/collections/<slug>`` page source on the apex site (rate-limited).","operationId":"platform_site_collection_api_v1_sites_platform_collections__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCollection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/pages":{"get":{"tags":["sites"],"summary":"Platform Site Pages","description":"Public: the published platform site's page list — the sitemap source.\n\nEmpty (never 404) when the platform site is unset or unpublished.","operationId":"platform_site_pages_api_v1_sites_platform_pages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PublicPageSummary"},"type":"array","title":"Response Platform Site Pages Api V1 Sites Platform Pages Get"}}}}}}},"/api/v1/sites/platform/workspace":{"get":{"tags":["sites"],"summary":"Platform Site Workspace","description":"Admin: the designated platform-site workspace — the content holder the\nplatform-website editor mounts against. 404 when unset or missing.","operationId":"platform_site_workspace_api_v1_sites_platform_workspace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}}}}},"/api/v1/sites/{workspace_id}/pricing":{"get":{"tags":["sites"],"summary":"Public Site Pricing","description":"Public: a workspace's live storefront pricing — the pay-per-file menu and\ncredit packs, in the tuner's own prices (rate-limited).\n\nKeyed by workspace id so both the live renderer and the owner preview (which\neach already hold the id) share one path. Pricing is public storefront data,\nso this is unauthenticated like the page renderer. Every amount is minor units\nof the response's own ``currency`` — the TUNER's settlement currency, not the\nplatform's — so renderers must format against it rather than assume euros.\n\n``currency`` is the site's display currency (the owner preview sends its\ndraft choice); absent, the published site setting decides, else the\nstorefront's own currency.\n\nThe platform's own site sells the pool's prices, not a price book of its\nworkspace: that workspace carries no credit packs, so its Pricing block (the\n/dealers price list) read \"credit pricing on request\" beside a live rate.","operationId":"public_site_pricing_api_v1_sites__workspace_id__pricing_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPricing"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/price-book":{"get":{"tags":["sites"],"summary":"Public Site Price Book","description":"Public: a storefront's per-file price list for each read tool — Stage 1,\nStage 2 and an option, paid per file and inside each credit pack — for a\npricing table such as thetuningfiles.com/pricing (rate-limited). The same\nresolution as ``/pricing``, laid out per tool and per pack.","operationId":"public_site_price_book_api_v1_sites__workspace_id__price_book_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicToolPriceBook"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/finder-addons":{"get":{"tags":["sites"],"summary":"Public Site Finder Addons","description":"Public: the curated add-on options a workspace surfaces in its microsite's\nvehicle finder, filtered to a specific engine (rate-limited).\n\nMirrors the pricing endpoint: unauthenticated + keyed by workspace id so the\nlive renderer and the owner preview share one path. The order the tuner picked\n(``published_header.finder.options``) is honoured; empty ⇒ no options at all.\nPrices are omitted — the visitor signals intent, the tuner quotes.\n\n``options`` (comma-separated, possibly empty) overrides the stored list for\nthis request. The OWNER PREVIEW needs it: that page renders the DRAFT header,\nwhile this endpoint reads the PUBLISHED one — so a tuner who curated their\noptions could not preview the change, and one who cleared them still saw the\nold list on their own preview. Safe to take from a caller because it can only\never NARROW what the workspace already offers: the result stays intersected\nwith the engine-eligible, non-hidden catalogue, so it moves featuring, never\nentitlement.","operationId":"public_site_finder_addons_api_v1_sites__workspace_id__finder_addons_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"engine","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Engine"}},{"name":"options","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Options"}},{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FinderAddonPublic"},"title":"Response Public Site Finder Addons Api V1 Sites  Workspace Id  Finder Addons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/finder-stages":{"get":{"tags":["sites"],"summary":"Public Site Finder Stages","description":"Public: the tuning stages a workspace offers for an engine on its microsite\nvehicle finder — the tuner's OWN stages included, any platform stage they hid\ndropped (rate-limited). Mirrors ``finder-addons``; keyed by workspace id so the\nlive renderer and owner preview share one path.\n\nThe order the tuner picked (``published_header.finder.stages``) is honoured;\nempty ⇒ every stage the workspace offers. That list is site-only: a stage left\noff the website stays orderable by this workspace's dealers, which is the\nwhole reason it is not the price book's hide switch.\n\nEach stage carries its price in credits and as money; the money is in the\nsite's display ``currency`` (sent by the owner preview, else the published\nsetting, else the storefront's own). On a dealer's own website a stage the\ndealer never priced is left out.","operationId":"public_site_finder_stages_api_v1_sites__workspace_id__finder_stages_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"engine","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Engine"}},{"name":"stages","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stages"}},{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EngineStageRead"},"title":"Response Public Site Finder Stages Api V1 Sites  Workspace Id  Finder Stages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/products":{"get":{"tags":["sites"],"summary":"Public Site Products","description":"Public: a tuner workspace's shop catalogue for its microsite shop blocks\n(rate-limited). Cloned from the pricing endpoint; empty until tuner shops\nship (phase 2) — the seam exists so the builder blocks need no change then.","operationId":"public_site_products_api_v1_sites__workspace_id__products_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShop"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/products/{slug}":{"get":{"tags":["sites"],"summary":"Public Site Product","description":"Public: one tuner-workspace product by slug — the microsite product-detail\npage source (rate-limited). 404 on unknown workspace or product.","operationId":"public_site_product_api_v1_sites__workspace_id__products__slug__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShop"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/collections":{"get":{"tags":["sites"],"summary":"Public Site Collections","description":"Public: a tuner workspace's collections with their member products, for\nits microsite Collection blocks (rate-limited). Empty (not 404) when the\nshop is disabled or has no collections yet — mirrors ``public_site_products``.","operationId":"public_site_collections_api_v1_sites__workspace_id__collections_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicCollection"},"title":"Response Public Site Collections Api V1 Sites  Workspace Id  Collections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/collections/{slug}":{"get":{"tags":["sites"],"summary":"Public Site Collection","description":"Public: one tuner-workspace collection by slug — the dedicated\n``/collections/<slug>`` page source on a tuner's own domain (rate-limited).\n404 on an unknown workspace, a disabled shop, or an unknown/inactive\ncollection — the same \"reveals nothing\" shape as the product PDP.","operationId":"public_site_collection_api_v1_sites__workspace_id__collections__slug__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCollection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site":{"put":{"tags":["sites"],"summary":"Update Site","description":"Save the tuner's website-builder DRAFT (blocks / SEO / footer).\n\nDraft only — the live site is unaffected until ``/site/publish``.","operationId":"update_site_api_v1_workspaces__workspace_id__site_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms":{"get":{"tags":["sites"],"summary":"List Site Forms","description":"Owner inbox: website form submissions, newest first.","operationId":"list_site_forms_api_v1_workspaces__workspace_id__site_forms_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormSubmissionList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}":{"patch":{"tags":["sites"],"summary":"Update Site Form","description":"Owner inbox: mark a submission read / archive / restore.","operationId":"update_site_form_api_v1_workspaces__workspace_id__site_forms__submission_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormSubmissionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormSubmissionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}/replies":{"get":{"tags":["sites"],"summary":"List Site Form Messages","description":"Owner inbox: the full two-way conversation for an enquiry's lead.\n\nCommits because opening the thread marks its inbound messages read — a write\non a GET. Without it the read stamps were rolled back at session close: the\nauth dependency has already opened a transaction by the time the service\nruns, so its ``@transactional`` takes the savepoint branch, and ``get_db``\ndoes not auto-commit.","operationId":"list_site_form_messages_api_v1_workspaces__workspace_id__site_forms__submission_id__replies_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteFormMessageRead"},"title":"Response List Site Form Messages Api V1 Workspaces  Workspace Id  Site Forms  Submission Id  Replies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}/attachment-download":{"post":{"tags":["sites"],"summary":"Download Site Form Attachment","description":"Owner inbox: a presigned GET for a photo or document on this thread.\n\nSame shape as the conversation attachment endpoint, so the web's attachment\ncomponent serves both. 404 for a key that is not a stored attachment of\nthis enquiry's thread — including one that is still being fetched.","operationId":"download_site_form_attachment_api_v1_workspaces__workspace_id__site_forms__submission_id__attachment_download_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormAttachmentDownloadIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Site Form Attachment Api V1 Workspaces  Workspace Id  Site Forms  Submission Id  Attachment Download Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}/reply":{"post":{"tags":["sites"],"summary":"Reply Site Form","description":"Owner inbox: answer a lead — logs the reply and sends it as branded email.","operationId":"reply_site_form_api_v1_workspaces__workspace_id__site_forms__submission_id__reply_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormReplyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormMessageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}/messages/{message_id}/resend":{"post":{"tags":["sites"],"summary":"Resend Site Form Email","description":"Owner inbox: send an undelivered email again, to a corrected address.\n\nMoves the lead's address on the thread first, so later replies follow it.","operationId":"resend_site_form_email_api_v1_workspaces__workspace_id__site_forms__submission_id__messages__message_id__resend_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormResendIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormMessageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/quote-options":{"get":{"tags":["sites"],"summary":"Quote Builder Options","description":"What the quote editor offers a tuner to pick from: their own add-on\ncatalogue, and every custom question configured on their site — workspace-\nwide, not scoped to one lead, so the same fetch serves every quote (manual\nor AI-suggested) the tuner opens.","operationId":"quote_builder_options_api_v1_workspaces__workspace_id__site_forms_quote_options_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteBuilderOptions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}/quote":{"post":{"tags":["sites"],"summary":"Quote Site Form","description":"Owner inbox: answer a request-quote lead with a price — logs the priced\nreply and emails the customer a full branded quote.","operationId":"quote_site_form_api_v1_workspaces__workspace_id__site_forms__submission_id__quote_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormQuoteIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormMessageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}/status":{"post":{"tags":["sites"],"summary":"Set Site Form Status","description":"Owner inbox: move an enquiry to a new state (new/open/won/lost/closed).\n\nA terminal state (won/lost/closed) also stops a quote's no-response reminder.","operationId":"set_site_form_status_api_v1_workspaces__workspace_id__site_forms__submission_id__status_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormSubmissionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/forms/{submission_id}/acknowledge":{"post":{"tags":["sites"],"summary":"Acknowledge Site Form","description":"Owner inbox: \"nothing to reply here\" — clear the needs-reply state.\n\nSettles whose turn it is without claiming an outcome, so a lead's closing\n\"thanks!\" stops counting as work owed while the conversation stays open. A\nlater message from them re-opens it by itself. ``acknowledged=false`` undoes\nit. 400 for a lead with no conversation (no email address captured).","operationId":"acknowledge_site_form_api_v1_workspaces__workspace_id__site_forms__submission_id__acknowledge_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormAcknowledgeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFormSubmissionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/variables":{"get":{"tags":["sites"],"summary":"Site Variables Status","description":"The built-in company tokens' values and the draft's unfilled tokens.\n\nFeeds the Site variables card and the warning shown before publishing.","operationId":"site_variables_status_api_v1_workspaces__workspace_id__site_variables_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteVariablesStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/publish":{"post":{"tags":["sites"],"summary":"Publish Site","description":"Publish the current draft — snapshot it live and take the site online.\n\nThe paywall sits here rather than on the builder: designing and previewing a\nsite is free, putting it in front of the public is the sale. Unpublishing\nstays open, because a paywall you cannot reverse is a trap.","operationId":"publish_site_api_v1_workspaces__workspace_id__site_publish_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/unpublish":{"post":{"tags":["sites"],"summary":"Unpublish Site","description":"Take the live site offline. The published snapshot is kept for re-publishing.","operationId":"unpublish_site_api_v1_workspaces__workspace_id__site_unpublish_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/pages/{slug}/variants/{locale}":{"delete":{"tags":["sites"],"summary":"Delete Page Variant","description":"Delete ONE language variant of a page from the DRAFT.\n\n``locale=\"en\"`` targets the default (untagged) variant; any other value\ntargets that language's variant. 409 when deleting the default while other\ntranslations still exist; 404 when the workspace or variant is absent.","operationId":"delete_page_variant_api_v1_workspaces__workspace_id__site_pages__slug__variants__locale__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/preview":{"get":{"tags":["sites"],"summary":"Preview Site","description":"Owner preview: the DRAFT page for ``path``, rendered before publishing.\n\n``locale`` previews a locale-tagged page variant (platform site).","operationId":"preview_site_api_v1_workspaces__workspace_id__site_preview_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Path"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/media/upload-url":{"post":{"tags":["sites"],"summary":"Site Media Upload Url","description":"Presign a PUT so the owner can upload a public site image directly to storage.","operationId":"site_media_upload_url_api_v1_workspaces__workspace_id__site_media_upload_url_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaUploadResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/media/import":{"post":{"tags":["sites"],"summary":"Site Media Import","description":"Import an image (or, with ``video``, a video) from a public https URL.","operationId":"site_media_import_api_v1_workspaces__workspace_id__site_media_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaImport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/media/confirm":{"post":{"tags":["sites"],"summary":"Site Media Confirm","description":"Publish the finished upload (public-read) and return its durable URL.\n\nNo DB write — the editor stores the returned URL inside the page blocks.","operationId":"site_media_confirm_api_v1_workspaces__workspace_id__site_media_confirm_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/web-domain":{"post":{"tags":["sites"],"summary":"Register Web Domain","description":"Register a custom website domain and provision its reverse-proxy vhost.\n\nCommit-then-side-effect: the pending row is persisted and committed first, then\nthe provider vhost is created and its result persisted + committed. Rejects a\ndomain another workspace already owns (409).","operationId":"register_web_domain_api_v1_workspaces__workspace_id__web_domain_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebDomainRegister"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebDomainDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sites"],"summary":"Get Web Domain","description":"The workspace's custom-website-domain status (DNS + provisioning).","operationId":"get_web_domain_api_v1_workspaces__workspace_id__web_domain_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebDomainDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sites"],"summary":"Remove Web Domain","description":"Remove the custom website domain and tear down its provider vhost.","operationId":"remove_web_domain_api_v1_workspaces__workspace_id__web_domain_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/web-domain/verify":{"post":{"tags":["sites"],"summary":"Verify Web Domain","description":"Poll the provider for the vhost's live state and persist it.","operationId":"verify_web_domain_api_v1_workspaces__workspace_id__web_domain_verify_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebDomainDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/join":{"post":{"tags":["sites"],"summary":"Join Workspace","description":"Self-register the caller's org with a workspace as a dealer (idempotent).\n\n404 when the workspace is missing or not active. An existing active membership\nis returned untouched. 409 when a dealer already works with another tuner —\na second tuner has to invite them.","operationId":"join_workspace_api_v1_workspaces__workspace_id__join_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/illustrations/templates":{"get":{"tags":["illustrations"],"summary":"List Illustration Templates","description":"Every template an illustration can be drawn from, with its props schema.","operationId":"list_illustration_templates_api_v1_illustrations_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TemplateRead"},"type":"array","title":"Response List Illustration Templates Api V1 Illustrations Templates Get"}}}}}}},"/api/v1/workspaces/{workspace_id}/illustrations":{"post":{"tags":["illustrations"],"summary":"Request Illustration","description":"Queue a render into the workspace's site media — or answer the earlier\nrender of exactly the same picture. Poll the GET until ``status`` is\n``ready`` (``url`` set) or ``failed`` (``error`` set).","operationId":"request_illustration_api_v1_workspaces__workspace_id__illustrations_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IllustrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IllustrationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/illustrations/{illustration_id}":{"get":{"tags":["illustrations"],"summary":"Get Illustration","description":"One render of this workspace and, once ready, its public image URL.","operationId":"get_illustration_api_v1_workspaces__workspace_id__illustrations__illustration_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"illustration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Illustration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IllustrationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/enquiries":{"get":{"tags":["enquiries"],"summary":"List Enquiries","description":"Every site's website leads for the caller's org, newest first.\n\nOptionally narrowed to one site (``site``), one ``kind``, or the answered vs\nstill-needs-reply set (``responded``). Each row carries the source site's name\n+ brand accent + the domain it arrived through, plus when it was answered.\nA platform admin inside one of the platform's storefronts reads that\nstorefront's inbox only.","operationId":"list_enquiries_api_v1_enquiries_get","parameters":[{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"site","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Site"}},{"name":"responded","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Responded"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"enum":["email","whatsapp","help"],"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnquiryList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/enquiries/{submission_id}":{"get":{"tags":["enquiries"],"summary":"Get Enquiry","description":"One enquiry the caller's org owns — the deep link's fetch.\n\nA link from an email or notification can name a lead the inbox has not\nloaded (older than the page, or archived), so the screen resolves it here\ninstead of falling back to the overview. Another org's enquiry reads as 404\nso its existence never leaks.","operationId":"get_enquiry_api_v1_enquiries__submission_id__get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnquiryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/google-reviews":{"get":{"tags":["sites"],"summary":"Public Site Google Reviews","description":"Public: the tuner's Google reviews for their site block.\n\n``None`` when the workspace has not connected Google (or the grant was\nrevoked) — the block then renders nothing rather than an empty shell. Served\nfrom the day-long cache, so a busy page does not call Google per render.\n\n``sort`` is echoed back because Google requires the ordering to be stated\nwherever the reviews are shown; the block prints it rather than inventing it.","operationId":"public_site_google_reviews_api_v1_sites__workspace_id__google_reviews_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GoogleReviewsPublic"},{"type":"null"}],"title":"Response Public Site Google Reviews Api V1 Sites  Workspace Id  Google Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/site-verification":{"get":{"tags":["search-console"],"summary":"Public Site Verification","description":"Public: the Search Console codes of the site on ``host`` (rate-limited).","operationId":"public_site_verification_api_v1_public_site_verification_get","parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string","title":"Host"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Site Verification Api V1 Public Site Verification Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/search-console":{"get":{"tags":["search-console"],"summary":"Search Console Status","description":"The site's codes and the exact address to verify.","operationId":"search_console_status_api_v1_workspaces__workspace_id__site_search_console_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchConsoleStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["search-console"],"summary":"Save Search Console Codes","description":"Replace the site's codes with the pasted tags or codes. Live on save.","operationId":"save_search_console_codes_api_v1_workspaces__workspace_id__site_search_console_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchConsoleCodesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchConsoleStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/site/search-console/check":{"post":{"tags":["search-console"],"summary":"Check Search Console Codes","description":"Fetch the live homepage and report where each code turned up.","operationId":"check_search_console_codes_api_v1_workspaces__workspace_id__site_search_console_check_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchConsoleCheck"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/automations/catalog":{"get":{"tags":["automations"],"summary":"Get Catalog","description":"Events, conditions, actions, the workspace's WhatsApp templates and its\ntimezone — everything the sentence editor offers.","operationId":"get_catalog_api_v1_workspaces__workspace_id__automations_catalog_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/automations/presets":{"get":{"tags":["automations"],"summary":"List Presets","operationId":"list_presets_api_v1_workspaces__workspace_id__automations_presets_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PresetRead"},"title":"Response List Presets Api V1 Workspaces  Workspace Id  Automations Presets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["automations"],"summary":"Create From Preset","description":"Add a ready-made rule, switched off until the owner enables it.","operationId":"create_from_preset_api_v1_workspaces__workspace_id__automations_presets_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresetCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__automation__schemas__RuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/automations":{"get":{"tags":["automations"],"summary":"List Rules","operationId":"list_rules_api_v1_workspaces__workspace_id__automations_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/services__automation__schemas__RuleRead"},"title":"Response List Rules Api V1 Workspaces  Workspace Id  Automations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["automations"],"summary":"Create Rule","operationId":"create_rule_api_v1_workspaces__workspace_id__automations_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__automation__schemas__RuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/automations/runs":{"get":{"tags":["automations"],"summary":"List Runs","description":"Newest first. Without ``rule_id`` the workspace's recent activity; with\nit, one rule's history. ``cursor`` is the previous page's ``next_cursor``.","operationId":"list_runs_api_v1_workspaces__workspace_id__automations_runs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"rule_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rule Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/automations/runs/{run_id}/cancel":{"post":{"tags":["automations"],"summary":"Cancel Run","description":"Cancel a run that has not gone out yet.","operationId":"cancel_run_api_v1_workspaces__workspace_id__automations_runs__run_id__cancel_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/automations/{rule_id}":{"get":{"tags":["automations"],"summary":"Get Rule","operationId":"get_rule_api_v1_workspaces__workspace_id__automations__rule_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__automation__schemas__RuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["automations"],"summary":"Update Rule","description":"Partial update — ``{\"enabled\": true}`` alone is a complete body.","operationId":"update_rule_api_v1_workspaces__workspace_id__automations__rule_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__automation__schemas__RuleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["automations"],"summary":"Delete Rule","operationId":"delete_rule_api_v1_workspaces__workspace_id__automations__rule_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/automations/{rule_id}/test":{"post":{"tags":["automations"],"summary":"Test Rule","description":"Dry run against the most recent matching subject; nothing is sent.","operationId":"test_rule_api_v1_workspaces__workspace_id__automations__rule_id__test_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleTestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/catalogue/ecus":{"get":{"tags":["seo-catalogue"],"summary":"Ecu Index","description":"Makers and their families with counts, and this month's most-tuned ECUs.","operationId":"ecu_index_api_v1_public_catalogue_ecus_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcuIndexPage"}}}}}}},"/api/v1/public/catalogue/ecus/{manufacturer}":{"get":{"tags":["seo-catalogue"],"summary":"Manufacturer Page","description":"One maker's families and family-less ECUs; 404 for an unknown maker.","operationId":"manufacturer_page_api_v1_public_catalogue_ecus__manufacturer__get","parameters":[{"name":"manufacturer","in":"path","required":true,"schema":{"type":"string","title":"Manufacturer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManufacturerPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/catalogue/ecus/{manufacturer}/{slug}":{"get":{"tags":["seo-catalogue"],"summary":"Entry Page","description":"A family page or an ECU page (``kind``); 404 when neither exists.","operationId":"entry_page_api_v1_public_catalogue_ecus__manufacturer___slug__get","parameters":[{"name":"manufacturer","in":"path","required":true,"schema":{"type":"string","title":"Manufacturer"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EcuPage"},{"$ref":"#/components/schemas/FamilyPage"}],"discriminator":{"propertyName":"kind","mapping":{"ecu":"#/components/schemas/EcuPage","family":"#/components/schemas/FamilyPage"}},"title":"Response Entry Page Api V1 Public Catalogue Ecus  Manufacturer   Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/catalogue/tools/{slug}":{"get":{"tags":["seo-catalogue"],"summary":"Tool Page","description":"A read tool's page; 404 for a tool without one.","operationId":"tool_page_api_v1_public_catalogue_tools__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/catalogue/quality":{"get":{"tags":["seo-catalogue"],"summary":"Quality Page","description":"The network-wide quality dashboard.","operationId":"quality_page_api_v1_public_catalogue_quality_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityPage"}}}}}}},"/api/v1/public/catalogue/sitemap":{"get":{"tags":["seo-catalogue"],"summary":"Sitemap","description":"The catalogue paths that pass their gate, for the site's sitemap.xml.","operationId":"sitemap_api_v1_public_catalogue_sitemap_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitemapRead"}}}}}}},"/api/v1/site-brief":{"get":{"tags":["site-briefs"],"summary":"My Brief","description":"The org's current brief — their resumable draft, else the most recent.","operationId":"my_brief_api_v1_site_brief_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SiteBriefRead"},{"type":"null"}],"title":"Response My Brief Api V1 Site Brief Get"}}}}}},"put":{"tags":["site-briefs"],"summary":"Save Brief","description":"Save progress. Answers merge, so a step only has to post its own fields.","operationId":"save_brief_api_v1_site_brief_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefSave"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/site-brief/history":{"get":{"tags":["site-briefs"],"summary":"My Briefs","operationId":"my_briefs_api_v1_site_brief_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SiteBriefRead"},"type":"array","title":"Response My Briefs Api V1 Site Brief History Get"}}}}}}},"/api/v1/site-brief/submit":{"post":{"tags":["site-briefs"],"summary":"Submit Brief","description":"Hand the brief to an operator.","operationId":"submit_brief_api_v1_site_brief_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefSave"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/site-brief/{brief_id}/decision":{"post":{"tags":["site-briefs"],"summary":"Decide Brief","description":"Accept the delivered site, or ask for changes with a note.","operationId":"decide_brief_api_v1_site_brief__brief_id__decision_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/site-brief/{brief_id}/photos/upload-url":{"post":{"tags":["site-briefs"],"summary":"Photo Upload Url","description":"Presign a PUT for one brief photo.\n\nKeyed on the caller's organisation, so a dealer with no workspace can upload\njust as a tuner can.","operationId":"photo_upload_url_api_v1_site_brief__brief_id__photos_upload_url_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefPhotoUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefPhotoUpload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/site-brief/{brief_id}/photos/confirm":{"post":{"tags":["site-briefs"],"summary":"Photo Confirm","description":"Make a finished upload public and return its durable URL.","operationId":"photo_confirm_api_v1_site_brief__brief_id__photos_confirm_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefPhotoConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefPhotoResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-briefs":{"get":{"tags":["site-briefs"],"summary":"Desk","description":"Briefs waiting on an operator, newest-submitted first.\n\nUnsubmitted drafts are hidden unless asked for by name — a brief nobody has\nsent is not work, and counting it would overstate the queue.","operationId":"desk_api_v1_admin_site_briefs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["draft","submitted","building","delivered","accepted","changes_requested"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteBriefDeskRow"},"title":"Response Desk Api V1 Admin Site Briefs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-briefs/{brief_id}":{"get":{"tags":["site-briefs"],"summary":"Brief Detail","operationId":"brief_detail_api_v1_admin_site_briefs__brief_id__get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-briefs/{brief_id}/claim":{"post":{"tags":["site-briefs"],"summary":"Claim Brief","description":"Start work. Time in this state is the real cost per site.","operationId":"claim_brief_api_v1_admin_site_briefs__brief_id__claim_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-briefs/{brief_id}/workspace":{"post":{"tags":["site-briefs"],"summary":"Open Workspace","description":"Open a website for this brief's customer, so there is somewhere to deliver.\n\nA dealer has no workspace until one is opened for them. Owned by the brief's\norganisation — not the operator's — and idempotent, so pressing it twice does\nnot leave a customer with two sites.","operationId":"open_workspace_api_v1_admin_site_briefs__brief_id__workspace_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-briefs/{brief_id}/deliver":{"post":{"tags":["site-briefs"],"summary":"Deliver Brief","description":"Push the built pages into the customer's workspace as a DRAFT.\n\nNever publishes: the customer's live site is untouched until they press\nPublish themselves.","operationId":"deliver_brief_api_v1_admin_site_briefs__brief_id__deliver_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefDeliver"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-briefs/{brief_id}/notes":{"patch":{"tags":["site-briefs"],"summary":"Set Notes","operationId":"set_notes_api_v1_admin_site_briefs__brief_id__notes_patch","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefNotes"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBriefDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/blog-previews/{token}":{"get":{"tags":["blog"],"summary":"Shared Blog Preview","description":"Public: the article a shared preview link names, until the link expires.","operationId":"shared_blog_preview_api_v1_blog_previews__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","maxLength":400,"title":"Token"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/blog":{"get":{"tags":["blog"],"summary":"Platform Blog Index","description":"Public: one page of the platform blog, optionally one category/tag/author.","operationId":"platform_blog_index_api_v1_sites_platform_blog_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"en","title":"Locale"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Category"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Tag"}},{"name":"author","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Author"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogIndex"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/blog/feed":{"get":{"tags":["blog"],"summary":"Platform Blog Feed","description":"Public: every live platform post — sitemap, RSS and latest-posts source.","operationId":"platform_blog_feed_api_v1_sites_platform_blog_feed_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"enum":["en","nl","de","fr"],"type":"string"},{"type":"null"}],"title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogFeed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/blog/posts/{slug}":{"get":{"tags":["blog"],"summary":"Platform Blog Post","operationId":"platform_blog_post_api_v1_sites_platform_blog_posts__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogPost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/blog/redirects/{slug}":{"get":{"tags":["blog"],"summary":"Platform Blog Redirect","description":"Public: where an old platform article address leads.","operationId":"platform_blog_redirect_api_v1_sites_platform_blog_redirects__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogRedirect"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/blog":{"get":{"tags":["blog"],"summary":"Site Blog Index","description":"Public: one page of a tuner or dealer site's blog.","operationId":"site_blog_index_api_v1_sites__workspace_id__blog_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"nl","title":"Locale"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Category"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Tag"}},{"name":"author","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Author"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogIndex"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/blog/feed":{"get":{"tags":["blog"],"summary":"Site Blog Feed","operationId":"site_blog_feed_api_v1_sites__workspace_id__blog_feed_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogFeed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/blog/posts/{slug}":{"get":{"tags":["blog"],"summary":"Site Blog Post","operationId":"site_blog_post_api_v1_sites__workspace_id__blog_posts__slug__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"nl","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogPost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{workspace_id}/blog/redirects/{slug}":{"get":{"tags":["blog"],"summary":"Site Blog Redirect","description":"Public: where an old article address of a tuner or dealer site leads.","operationId":"site_blog_redirect_api_v1_sites__workspace_id__blog_redirects__slug__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"nl","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogRedirect"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/settings":{"get":{"tags":["blog"],"summary":"Get Blog Settings","description":"The blog's template and list-page layouts; null until it is set up.","operationId":"get_blog_settings_api_v1_workspaces__workspace_id__blog_settings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BlogSettingsRead"},{"type":"null"}],"title":"Response Get Blog Settings Api V1 Workspaces  Workspace Id  Blog Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["blog"],"summary":"Save Blog Settings","operationId":"save_blog_settings_api_v1_workspaces__workspace_id__blog_settings_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogSettingsSave"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/blocks":{"get":{"tags":["blog"],"summary":"Search Blog Blocks","description":"Blocks matching ``q`` (name, what it is for, field names), one line each.\n``article_only`` keeps to blocks that may go inside a post's text.","operationId":"search_blog_blocks_api_v1_workspaces__workspace_id__blog_blocks_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Q"}},{"name":"article_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Article Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Blog Blocks Api V1 Workspaces  Workspace Id  Blog Blocks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/blocks/spec":{"get":{"tags":["blog"],"summary":"Blog Block Specs","description":"Fields, allowed values and a complete example for up to five blocks.","operationId":"blog_block_specs_api_v1_workspaces__workspace_id__blog_blocks_spec_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"names","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":5,"title":"Names"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Blog Block Specs Api V1 Workspaces  Workspace Id  Blog Blocks Spec Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/templates":{"get":{"tags":["blog"],"summary":"Blog Templates","description":"The post templates and the layout blocks each places around the article.","operationId":"blog_templates_api_v1_workspaces__workspace_id__blog_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Blog Templates Api V1 Workspaces  Workspace Id  Blog Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/taxonomy":{"get":{"tags":["blog"],"summary":"Blog Taxonomy","description":"Categories, tags and authors — names and slugs only.","operationId":"blog_taxonomy_api_v1_workspaces__workspace_id__blog_taxonomy_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogTaxonomy"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts":{"get":{"tags":["blog"],"summary":"List Blog Posts","operationId":"list_blog_posts_api_v1_workspaces__workspace_id__blog_posts_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["draft","scheduled","published","archived"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Search"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"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":{"$ref":"#/components/schemas/BlogPostList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["blog"],"summary":"Create Blog Post","operationId":"create_blog_post_api_v1_workspaces__workspace_id__blog_posts_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}":{"get":{"tags":["blog"],"summary":"Get Blog Post","operationId":"get_blog_post_api_v1_workspaces__workspace_id__blog_posts__post_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["blog"],"summary":"Update Blog Post","operationId":"update_blog_post_api_v1_workspaces__workspace_id__blog_posts__post_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["blog"],"summary":"Delete Blog Post","description":"Delete an archived article for good.","operationId":"delete_blog_post_api_v1_workspaces__workspace_id__blog_posts__post_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/versions/{locale}":{"put":{"tags":["blog"],"summary":"Save Blog Post Version","description":"Create or replace one language of the post (title, slug, blocks, SEO).","operationId":"save_blog_post_version_api_v1_workspaces__workspace_id__blog_posts__post_id__versions__locale__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}},{"name":"locale","in":"path","required":true,"schema":{"enum":["en","nl","de","fr"],"type":"string","title":"Locale"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogVersionSave"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["blog"],"summary":"Delete Blog Post Version","operationId":"delete_blog_post_version_api_v1_workspaces__workspace_id__blog_posts__post_id__versions__locale__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}},{"name":"locale","in":"path","required":true,"schema":{"enum":["en","nl","de","fr"],"type":"string","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/outline":{"get":{"tags":["blog"],"summary":"Blog Post Outline","description":"One language of the post as one line per block (id, type, preview).","operationId":"blog_post_outline_api_v1_workspaces__workspace_id__blog_posts__post_id__outline_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostOutline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/versions/{locale}/blocks":{"post":{"tags":["blog"],"summary":"Edit Blog Post Blocks","description":"Insert, replace, update, move or remove blocks by id; answers the new outline.","operationId":"edit_blog_post_blocks_api_v1_workspaces__workspace_id__blog_posts__post_id__versions__locale__blocks_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}},{"name":"locale","in":"path","required":true,"schema":{"enum":["en","nl","de","fr"],"type":"string","title":"Locale"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogBlockEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostOutline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/publish":{"post":{"tags":["blog"],"summary":"Publish Blog Post","description":"Publish now, or schedule when ``published_at`` lies in the future.","operationId":"publish_blog_post_api_v1_workspaces__workspace_id__blog_posts__post_id__publish_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPublish"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/unpublish":{"post":{"tags":["blog"],"summary":"Unpublish Blog Post","description":"Take the post off the site: back to draft, or into the archive. Its\naddress then leads to the blog page (default), another article\n(``redirect=post`` + ``redirect_post_id``) or nowhere (``gone``).","operationId":"unpublish_blog_post_api_v1_workspaces__workspace_id__blog_posts__post_id__unpublish_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}},{"name":"archive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archive"}},{"name":"redirect","in":"query","required":false,"schema":{"enum":["index","post","gone"],"type":"string","default":"index","title":"Redirect"}},{"name":"redirect_post_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Redirect Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/restore":{"post":{"tags":["blog"],"summary":"Restore Blog Post","description":"Bring an archived article back as a draft.","operationId":"restore_blog_post_api_v1_workspaces__workspace_id__blog_posts__post_id__restore_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/discard-changes":{"post":{"tags":["blog"],"summary":"Discard Blog Post Changes","description":"Throw away a live article's unpublished edits.","operationId":"discard_blog_post_changes_api_v1_workspaces__workspace_id__blog_posts__post_id__discard_changes_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/preview":{"get":{"tags":["blog"],"summary":"Preview Blog Post","description":"The article as it will be once published, in the site's own chrome.","operationId":"preview_blog_post_api_v1_workspaces__workspace_id__blog_posts__post_id__preview_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","nl","de","fr"],"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/posts/{post_id}/preview-link":{"post":{"tags":["blog"],"summary":"Share Blog Post Preview","description":"A preview link anyone can open for 7 days, no login needed.","operationId":"share_blog_post_preview_api_v1_workspaces__workspace_id__blog_posts__post_id__preview_link_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPreviewLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["blog"],"summary":"Stop Sharing Blog Post Preview","description":"End every preview link of this article shared so far.","operationId":"stop_sharing_blog_post_preview_api_v1_workspaces__workspace_id__blog_posts__post_id__preview_link_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/categories":{"get":{"tags":["blog"],"summary":"List Blog Categories","operationId":"list_blog_categories_api_v1_workspaces__workspace_id__blog_categories_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlogCategoryRead"},"title":"Response List Blog Categories Api V1 Workspaces  Workspace Id  Blog Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["blog"],"summary":"Create Blog Category","operationId":"create_blog_category_api_v1_workspaces__workspace_id__blog_categories_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogCategorySave"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogCategoryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/categories/{category_id}":{"put":{"tags":["blog"],"summary":"Update Blog Category","operationId":"update_blog_category_api_v1_workspaces__workspace_id__blog_categories__category_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"category_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogCategorySave"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogCategoryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["blog"],"summary":"Delete Blog Category","operationId":"delete_blog_category_api_v1_workspaces__workspace_id__blog_categories__category_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"category_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Category Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/tags":{"get":{"tags":["blog"],"summary":"List Blog Tags","operationId":"list_blog_tags_api_v1_workspaces__workspace_id__blog_tags_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlogTagRead"},"title":"Response List Blog Tags Api V1 Workspaces  Workspace Id  Blog Tags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["blog"],"summary":"Create Blog Tag","description":"Create a tag, or return the existing one with the same slug.","operationId":"create_blog_tag_api_v1_workspaces__workspace_id__blog_tags_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogTagSave"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogTagRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/tags/{tag_id}":{"delete":{"tags":["blog"],"summary":"Delete Blog Tag","operationId":"delete_blog_tag_api_v1_workspaces__workspace_id__blog_tags__tag_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/authors":{"get":{"tags":["blog"],"summary":"List Blog Authors","operationId":"list_blog_authors_api_v1_workspaces__workspace_id__blog_authors_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlogAuthorRead"},"title":"Response List Blog Authors Api V1 Workspaces  Workspace Id  Blog Authors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["blog"],"summary":"Create Blog Author","operationId":"create_blog_author_api_v1_workspaces__workspace_id__blog_authors_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogAuthorSave"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogAuthorRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/blog/authors/{author_id}":{"put":{"tags":["blog"],"summary":"Update Blog Author","operationId":"update_blog_author_api_v1_workspaces__workspace_id__blog_authors__author_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogAuthorSave"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogAuthorRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["blog"],"summary":"Delete Blog Author","operationId":"delete_blog_author_api_v1_workspaces__workspace_id__blog_authors__author_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners":{"get":{"tags":["delegation"],"summary":"List Partners","operationId":"list_partners_api_v1_delegations_partners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerRead"},"type":"array","title":"Response List Partners Api V1 Delegations Partners Get"}}}}}},"post":{"tags":["delegation"],"summary":"Invite Partner","operationId":"invite_partner_api_v1_delegations_partners_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerInvite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerInviteResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/invites":{"get":{"tags":["delegation"],"summary":"List Partner Invites","operationId":"list_partner_invites_api_v1_delegations_partners_invites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerRead"},"type":"array","title":"Response List Partner Invites Api V1 Delegations Partners Invites Get"}}}}}}},"/api/v1/delegations/partners/invites/pending":{"get":{"tags":["delegation"],"summary":"List Pending Partner Invites","description":"Staged sign-up invites this org sent (emails with no tuner account yet),\nso the partners page can resend the email or hand the link over directly.","operationId":"list_pending_partner_invites_api_v1_delegations_partners_invites_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerPendingInvite"},"type":"array","title":"Response List Pending Partner Invites Api V1 Delegations Partners Invites Pending Get"}}}}}}},"/api/v1/delegations/order/{order_id}":{"get":{"tags":["delegation"],"summary":"Order Delegation","description":"The current delegation of an order (who's handling it + the split), or null\nwhen it was never delegated. Powers the delegation panel on the order page.\n\nScoped to the delegation's participants (or an admin) so an order id can't leak\nanother tenant's delegation.","operationId":"order_delegation_api_v1_delegations_order__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OrderDelegationView"},{"type":"null"}],"title":"Response Order Delegation Api V1 Delegations Order  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/invoice-consent":{"get":{"tags":["delegation"],"summary":"Invoice Consent Config","description":"The self-billing consent wording in force, and whether partners on\nexisting links are asked for it yet.","operationId":"invoice_consent_config_api_v1_delegations_partners_invoice_consent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceConsentConfig"}}}}}}},"/api/v1/delegations/partners/{token}/accept":{"post":{"tags":["delegation"],"summary":"Accept Partner","operationId":"accept_partner_api_v1_delegations_partners__token__accept_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PartnerAccept"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/invoice-consent":{"post":{"tags":["delegation"],"summary":"Give Invoice Consent","description":"The partner on an existing link consents to self-billing.\n\nClosed while the consent prompt is switched off: the wording is not yet\napproved, and the only way to reach this is the prompt.","operationId":"give_invoice_consent_api_v1_delegations_partners__partner_id__invoice_consent_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/partner-invoices":{"get":{"tags":["delegation"],"summary":"Partner Documents","description":"Partner invoices and credit notes between the caller and this partner,\nissued to them and received from them. Download through the invoice routes.","operationId":"partner_documents_api_v1_delegations_partners__partner_id__partner_invoices_get","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDocuments"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/order":{"patch":{"tags":["delegation"],"summary":"Reorder Partners","description":"Set the fallback-chain order for the caller's accepted partners.\n\nAssigns dense 1-based ``routing_priority`` in the given order — the first id is\ntried first while away, then the rest, deduped and collision-free.","operationId":"reorder_partners_api_v1_delegations_partners_order_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOrderUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerRead"},"type":"array","title":"Response Reorder Partners Api V1 Delegations Partners Order Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/credits":{"get":{"tags":["delegation"],"summary":"Partner Credits","description":"What this partner holds in the caller's workspace, per credit kind.\n\nThe inbound mirror of the partner-credit card: that one shows what the caller\nholds WITH the partner, this one what the partner holds with the caller. The\npartner's org is resolved from the link rather than taken from the client, so\nthe route cannot be pointed at a third party's wallet.","operationId":"partner_credits_api_v1_delegations_partners__partner_id__credits_get","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCreditsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/members":{"get":{"tags":["delegation"],"summary":"Partner Members","description":"Who to contact at the other tuner on this partnership.\n\nLike the credits read, the other party is resolved from the link rather than\ntaken from the client, so the route cannot be pointed at a third party's\nstaff. Only an ACCEPTED partnership resolves — an open invitation is not yet\na relationship.","operationId":"partner_members_api_v1_delegations_partners__partner_id__members_get","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerMemberRead"},"title":"Response Partner Members Api V1 Delegations Partners  Partner Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/invoices":{"get":{"tags":["delegation"],"summary":"Partner Invoices","description":"What the caller has billed this partner, and what is still forming.\n\nPartner money is mostly prepaid credits — invoices appear only once\ninvoice-billing is enabled on the partnership, or when delegated work has\nbeen settled.","operationId":"partner_invoices_api_v1_delegations_partners__partner_id__invoices_get","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerInvoiceOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/routing":{"patch":{"tags":["delegation"],"summary":"Set Partner Routing","operationId":"set_partner_routing_api_v1_delegations_partners__partner_id__routing_patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRoutingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/consent":{"patch":{"tags":["delegation"],"summary":"Set Partner Consent","operationId":"set_partner_consent_api_v1_delegations_partners__partner_id__consent_patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerConsentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/billing":{"patch":{"tags":["delegation"],"summary":"Set Partner Billing","description":"B-side toggle: allow this partner to pay B's quotes on monthly invoice.","operationId":"set_partner_billing_api_v1_delegations_partners__partner_id__billing_patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBillingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/direct-orders":{"patch":{"tags":["delegation"],"summary":"Set Partner Direct Orders","description":"B-side toggle: allow this partner to send direct orders (invoice-billed).\nEnabling it also enables invoice billing.","operationId":"set_partner_direct_orders_api_v1_delegations_partners__partner_id__direct_orders_patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDirectOrdersUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/credit-limit":{"patch":{"tags":["delegation"],"summary":"Set Partner Credit Limit","description":"B-side: the most this partner may owe B on account (null = no limit).\nNew delegations past it are refused with ``partner_credit_limit_reached``.","operationId":"set_partner_credit_limit_api_v1_delegations_partners__partner_id__credit_limit_patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCreditLimitUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/partners/{partner_id}/revoke":{"post":{"tags":["delegation"],"summary":"Revoke Partner","operationId":"revoke_partner_api_v1_delegations_partners__partner_id__revoke_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations":{"post":{"tags":["delegation"],"summary":"Offer Delegation","operationId":"offer_delegation_api_v1_delegations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationOfferCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/outgoing":{"get":{"tags":["delegation"],"summary":"List Outgoing","description":"A's outgoing delegation monitoring board — status, timestamps, handler name\nand derived ``time_in_state_seconds`` / ``is_expiring_soon`` per row.\nOptionally filtered to a single lifecycle ``status``.","operationId":"list_outgoing_api_v1_delegations_outgoing_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OutgoingDelegationView"},"title":"Response List Outgoing Api V1 Delegations Outgoing Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/incoming":{"get":{"tags":["delegation"],"summary":"List Incoming","operationId":"list_incoming_api_v1_delegations_incoming_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DelegationRead"},"type":"array","title":"Response List Incoming Api V1 Delegations Incoming Get"}}}}}}},"/api/v1/delegations/{delegation_id}/preview":{"get":{"tags":["delegation"],"summary":"Preview Split","operationId":"preview_split_api_v1_delegations__delegation_id__preview_get","parameters":[{"name":"delegation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delegation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/{delegation_id}/accept":{"post":{"tags":["delegation"],"summary":"Accept Delegation","operationId":"accept_delegation_api_v1_delegations__delegation_id__accept_post","parameters":[{"name":"delegation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delegation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/{delegation_id}/decline":{"post":{"tags":["delegation"],"summary":"Decline Delegation","operationId":"decline_delegation_api_v1_delegations__delegation_id__decline_post","parameters":[{"name":"delegation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delegation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/{delegation_id}/cancel":{"post":{"tags":["delegation"],"summary":"Cancel Delegation","operationId":"cancel_delegation_api_v1_delegations__delegation_id__cancel_post","parameters":[{"name":"delegation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delegation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/{delegation_id}/give-back":{"post":{"tags":["delegation"],"summary":"Give Back Delegation","description":"The partner gives claimed work back to the delegating tuner before\ndelivering it; a platform admin may do so for a partner who went quiet.\n409 once it is delivered or no longer claimed.","operationId":"give_back_delegation_api_v1_delegations__delegation_id__give_back_post","parameters":[{"name":"delegation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delegation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GiveBackRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/{delegation_id}/resend":{"post":{"tags":["delegation"],"summary":"Resend Delegation","description":"Re-send a declined/expired order to A's next eligible partner (the manual\ntrigger of the fallback chain). 404 if the delegation is unknown, 409 when no\nfurther partner remains or the order already has an open delegation.","operationId":"resend_delegation_api_v1_delegations__delegation_id__resend_post","parameters":[{"name":"delegation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delegation Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/delegations/{delegation_id}/split":{"patch":{"tags":["delegation"],"summary":"Set Split","operationId":"set_split_api_v1_delegations__delegation_id__split_patch","parameters":[{"name":"delegation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delegation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes":{"post":{"tags":["partner-quotes"],"summary":"Create Quote Request","description":"A sends a quote request to an accepted partner: creates the DRAFT order\ncarrying the project plus the quote row, and notifies B.","operationId":"create_quote_request_api_v1_partner_quotes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes/direct":{"post":{"tags":["partner-quotes"],"summary":"Create Direct Order","description":"A sends a direct order to an accepted partner who granted direct orders:\ncreates a PENDING, invoice-billed order in B's workspace — no quote, no\nprice yet (B prices it on delivery).","operationId":"create_direct_order_api_v1_partner_quotes_direct_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectOrderCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes/outgoing":{"get":{"tags":["partner-quotes"],"summary":"List Outgoing","operationId":"list_outgoing_api_v1_partner_quotes_outgoing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerQuoteRead"},"type":"array","title":"Response List Outgoing Api V1 Partner Quotes Outgoing Get"}}}}}}},"/api/v1/partner-quotes/incoming":{"get":{"tags":["partner-quotes"],"summary":"List Incoming","operationId":"list_incoming_api_v1_partner_quotes_incoming_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PartnerQuoteRead"},"type":"array","title":"Response List Incoming Api V1 Partner Quotes Incoming Get"}}}}}}},"/api/v1/partner-quotes/counts":{"get":{"tags":["partner-quotes"],"summary":"Quote Counts","description":"Badge counts: quotes awaiting the caller's acceptance + requests awaiting\nthe caller's price.","operationId":"quote_counts_api_v1_partner_quotes_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteCounts"}}}}}}},"/api/v1/partner-quotes/{quote_id}":{"get":{"tags":["partner-quotes"],"summary":"Get Quote","description":"Quote + project summary — visible to either side of the quote only.","operationId":"get_quote_api_v1_partner_quotes__quote_id__get","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes/{quote_id}/original-download":{"get":{"tags":["partner-quotes"],"summary":"Download Quote Original","description":"B downloads the request's original read (pre-accept) to judge the job.","operationId":"download_quote_original_api_v1_partner_quotes__quote_id__original_download_get","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteOriginalDownload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes/{quote_id}/quote":{"post":{"tags":["partner-quotes"],"summary":"Provide Quote","description":"B prices the request (or revises once after a decline).","operationId":"provide_quote_api_v1_partner_quotes__quote_id__quote_post","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quote Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteProvide"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes/{quote_id}/accept":{"post":{"tags":["partner-quotes"],"summary":"Accept Quote","description":"A accepts B's price with a billing choice — the atomic conversion into a\nnormal workspace order (per-file checkout, monthly invoice, or credits).","operationId":"accept_quote_api_v1_partner_quotes__quote_id__accept_post","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quote Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteAccept"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes/{quote_id}/decline":{"post":{"tags":["partner-quotes"],"summary":"Decline Quote","description":"A declines a quoted price (B may revise once) or B declines a request\noutright (final).","operationId":"decline_quote_api_v1_partner_quotes__quote_id__decline_post","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quote Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteDecline"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/partner-quotes/{quote_id}/withdraw":{"post":{"tags":["partner-quotes"],"summary":"Withdraw Quote","description":"A pulls an open request/quote back before acceptance.","operationId":"withdraw_quote_api_v1_partner_quotes__quote_id__withdraw_post","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerQuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opening-hours/current":{"get":{"tags":["opening-hours"],"summary":"Opening Hours Current","description":"The evaluated open/closed status for the workspace the dealer targets.\n\nA ``workspace_id`` (the order wizard's chosen destination) wins; else a dealer\nwith exactly one active membership sees that workspace's hours; else the\nplatform default. The response is a localization-ready enum + timezone-aware\ntimes, so the client renders without recomputing.","operationId":"opening_hours_current_api_v1_opening_hours_current_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/{workspace_slug}/event-types":{"get":{"tags":["booking"],"summary":"List Event Types","description":"Public: what this workshop can be booked for.\n\nIts own types first, then the platform defaults it never overrode — so a\nworkspace that has configured nothing is still bookable. Types the workshop\nbooks by hand or reserves for the agent are not listed.","operationId":"list_event_types_api_v1_booking__workspace_slug__event_types_get","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypeList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/{workspace_slug}/slots":{"get":{"tags":["booking"],"summary":"List Slots","description":"Public: the bookable times for one appointment type.\n\n``from``/``to`` narrow the answer but never widen it past the type's own\nnotice window and horizon. ``tz`` names the zone the times come back in;\nwithout it they arrive in the workshop's. Both bounds must carry an offset.","operationId":"list_slots_api_v1_booking__workspace_slug__slots_get","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}},{"name":"event_type","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"product-demo","title":"Event Type"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/{workspace_slug}/hold":{"post":{"tags":["booking"],"summary":"Hold Slot","description":"Public: take a slot off the board while the visitor fills in the form.\n\nA real ``pending`` row, so two people cannot fill in the same slot at once,\nand it lapses on its own if nobody finishes. One session holds one slot:\nsend the ``session_token`` from a previous hold back and the hold MOVES\nrather than fencing off the afternoon.\n\nThe token is minted here rather than accepted from the client so that a\nguessable one cannot be used to move somebody else's hold.","operationId":"hold_slot_api_v1_booking__workspace_slug__hold_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoldRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/{workspace_slug}/book":{"post":{"tags":["booking"],"summary":"Book Slot","description":"Public: make the booking.\n\nTwo shapes. With ``hold_id`` + ``session_token`` the visitor's own hold is\nfilled in and promoted, and because that token PROVES whose booking it is,\nthe manage token comes back in the response — the confirmation screen can\noffer \"change or cancel\" without waiting for the email.\n\nWith ``starts_at`` the booking is made outright, and the manage token is NOT\nreturned: a repeated create by the same email and phone is answered with the\nbooking that already exists, so anyone who knew those two facts and the time\ncould otherwise collect a stranger's cancel link. That link arrives by email,\non the channel the customer actually owns.","operationId":"book_slot_api_v1_booking__workspace_slug__book_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingConfirmation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/manage/{manage_token}":{"get":{"tags":["booking"],"summary":"Read Booking","description":"Public: the booking behind a \"change or cancel\" link.\n\nThe token is not echoed back — the caller already has it, and every copy of\na credential is another place it can leak from.","operationId":"read_booking_api_v1_booking_manage__manage_token__get","parameters":[{"name":"manage_token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":64,"title":"Manage Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/manage/{manage_token}/cancel":{"post":{"tags":["booking"],"summary":"Cancel Booking","description":"Public: the customer cancels their own booking. Idempotent.","operationId":"cancel_booking_api_v1_booking_manage__manage_token__cancel_post","parameters":[{"name":"manage_token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":64,"title":"Manage Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/manage/{manage_token}/reschedule":{"post":{"tags":["booking"],"summary":"Reschedule Booking","description":"Public: the customer moves their own booking to another offered time.\n\nThe booking is moved in place, so this link and the calendar invitation keep\nworking. The new time is held to the same rules the offered list was drawn\nfrom — an instant nobody offered is refused as ``slot_unavailable``.","operationId":"reschedule_booking_api_v1_booking_manage__manage_token__reschedule_post","parameters":[{"name":"manage_token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":64,"title":"Manage Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/booking/manage/{manage_token}/slots":{"get":{"tags":["booking"],"summary":"Manage Slots","description":"Offer replacement times using the booking's original duration and host.\n\n``from``/``to`` page through the horizon a month at a time, as on the\npublic feed.","operationId":"manage_slots_api_v1_booking_manage__manage_token__slots_get","parameters":[{"name":"manage_token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":64,"title":"Manage Token"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/booking/slots":{"get":{"tags":["booking"],"summary":"Platform Slots","description":"Public: :func:`list_slots` for the platform workspace.","operationId":"platform_slots_api_v1_sites_platform_booking_slots_get","parameters":[{"name":"event_type","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"product-demo","title":"Event Type"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/booking/hold":{"post":{"tags":["booking"],"summary":"Platform Hold","description":"Public: :func:`hold_slot` for the platform workspace.","operationId":"platform_hold_api_v1_sites_platform_booking_hold_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoldRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoldRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/booking/book":{"post":{"tags":["booking"],"summary":"Platform Book","description":"Public: :func:`book_slot` for the platform workspace.","operationId":"platform_book_api_v1_sites_platform_booking_book_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingConfirmation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/platform/booking/request":{"post":{"tags":["booking"],"summary":"Platform Demo Request","description":"Public: file a demo request in the platform's inbox as the visitor moves\non to pick a time.\n\nA visitor who gives their details and then leaves the calendar used to be\nnobody — the details lived only in the browser until a booking was made.\nFiled here as an enquiry, without the visitor's automatic acknowledgement:\nthey are mid-booking, and the booking sends its own confirmation. The\nvisitor's website rides in the message, because ``website`` on a form\nsubmission is the honeypot.","operationId":"platform_demo_request_api_v1_sites_platform_booking_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Platform Demo Request Api V1 Sites Platform Booking Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calendar/workspace":{"get":{"tags":["calendar"],"summary":"Calendar Workspace","description":"The workspace whose calendar the caller opens: a tuner's own storefront,\nan admin's selected storefront, or else the platform workspace by its id.","operationId":"calendar_workspace_api_v1_calendar_workspace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}}}}},"/api/v1/workspaces/{workspace_id}/calendar":{"get":{"tags":["calendar"],"summary":"Calendar Feed","operationId":"calendar_feed_api_v1_workspaces__workspace_id__calendar_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarFeed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/calendar/load":{"get":{"tags":["calendar"],"summary":"Calendar Day Load","description":"How full each day of ``[from, to)`` is with drop-offs; empty for a\nworkspace that takes none.","operationId":"calendar_day_load_api_v1_workspaces__workspace_id__calendar_load_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DayLoad"},"title":"Response Calendar Day Load Api V1 Workspaces  Workspace Id  Calendar Load Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/booking-capacity":{"get":{"tags":["calendar"],"summary":"Booking Capacity","description":"How many drop-offs the workshop takes.","operationId":"booking_capacity_api_v1_workspaces__workspace_id__booking_capacity_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCapacityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["calendar"],"summary":"Save Booking Capacity","operationId":"save_booking_capacity_api_v1_workspaces__workspace_id__booking_capacity_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCapacityInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCapacityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/bookings":{"get":{"tags":["calendar"],"summary":"Scheduled Events","operationId":"scheduled_events_api_v1_workspaces__workspace_id__bookings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"view","in":"query","required":false,"schema":{"enum":["upcoming","recent","pending","history"],"type":"string","default":"upcoming","title":"View"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","booked","cancelled","completed","no_show"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Event Type"}},{"name":"host_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Host Id"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"enum":["visitor","agent","owner"],"type":"string"},{"type":"null"}],"title":"Actor"}},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarFeed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["calendar"],"summary":"Create Booking","operationId":"create_booking_api_v1_workspaces__workspace_id__bookings_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarBooking"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/bookings/{booking_id}":{"get":{"tags":["calendar"],"summary":"Booking Detail","description":"The sheet's view: the appointment plus the reason it exists.","operationId":"booking_detail_api_v1_workspaces__workspace_id__bookings__booking_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["calendar"],"summary":"Edit Booking","operationId":"edit_booking_api_v1_workspaces__workspace_id__bookings__booking_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarBooking"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/booking-event-types":{"get":{"tags":["calendar"],"summary":"Event Types","operationId":"event_types_api_v1_workspaces__workspace_id__booking_event_types_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/booking-event-types/{slug}":{"put":{"tags":["calendar"],"summary":"Save Event Type","operationId":"save_event_type_api_v1_workspaces__workspace_id__booking_event_types__slug__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypeInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/booking-event-types/{event_type_id}/hosts":{"get":{"tags":["calendar"],"summary":"Hosts","operationId":"hosts_api_v1_workspaces__workspace_id__booking_event_types__event_type_id__hosts_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"event_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Type Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalendarHost"},"title":"Response Hosts Api V1 Workspaces  Workspace Id  Booking Event Types  Event Type Id  Hosts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["calendar"],"summary":"Create Host","operationId":"create_host_api_v1_workspaces__workspace_id__booking_event_types__event_type_id__hosts_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"event_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Type Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarHost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/booking-event-types/{event_type_id}/hosts/{host_id}":{"put":{"tags":["calendar"],"summary":"Save Host","operationId":"save_host_api_v1_workspaces__workspace_id__booking_event_types__event_type_id__hosts__host_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"event_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Type Id"}},{"name":"host_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Host Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarHost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/bookings/{booking_id}/cancel":{"post":{"tags":["calendar"],"summary":"Cancel Booking","operationId":"cancel_booking_api_v1_workspaces__workspace_id__bookings__booking_id__cancel_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarBooking"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/bookings/{booking_id}/reschedule":{"post":{"tags":["calendar"],"summary":"Reschedule Booking","operationId":"reschedule_booking_api_v1_workspaces__workspace_id__bookings__booking_id__reschedule_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarBooking"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/bookings/{booking_id}/{action}":{"post":{"tags":["calendar"],"summary":"Booking Action","operationId":"booking_action_api_v1_workspaces__workspace_id__bookings__booking_id___action__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}},{"name":"action","in":"path","required":true,"schema":{"enum":["confirm","complete","no-show"],"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarBooking"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/unsubscribe/one-click":{"post":{"tags":["marketing"],"summary":"One Click Unsubscribe","description":"RFC 8058 one-click unsubscribe — instant honor, never an error.\n\nThe token is taken from the ``token`` query param (how the\n``List-Unsubscribe`` URL carries it) or a ``token`` form field. ALWAYS\nanswers 200 — replays, garbage and stale tokens included — because a 4xx/5xx\nhere reads as \"sender ignores unsubscribes\" to Gmail/Yahoo and torches\ndeliverability; an invalid token is logged and simply changes nothing.","operationId":"one_click_unsubscribe_api_v1_unsubscribe_one_click_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response One Click Unsubscribe Api V1 Unsubscribe One Click Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/unsubscribe/{token}":{"get":{"tags":["marketing"],"summary":"Unsubscribe Context","description":"Context for the branded unsubscribe landing page.\n\nReturns the masked recipient address, the sender's public brand (workspace\nname + logo; both null for the platform newsletter) and the current\nsubscription state. 404 for an invalid token — this is a browser page, so\nunlike one-click an honest error is correct here.","operationId":"unsubscribe_context_api_v1_unsubscribe__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketing"],"summary":"Apply Unsubscribe Action","description":"Landing-page confirm: unsubscribe, resubscribe (undo), or switch off all\nmarketing email for the account. Idempotent. ``unsubscribe_all`` on a\ndealer website contact's token is a 422 — a contact has no account.","operationId":"apply_unsubscribe_action_api_v1_unsubscribe__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subscribe/confirm/{token}":{"get":{"tags":["marketing"],"summary":"Subscription Confirm Context","description":"Context for the double opt-in landing page — read-only.\n\nOpening the link never subscribes anyone (mail scanners fetch every URL);\nthe visitor confirms with the page's button. 404 for an invalid token.","operationId":"subscription_confirm_context_api_v1_subscribe_confirm__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketing"],"summary":"Subscription Confirm","description":"The visitor confirms: their pending contact becomes subscribed.\n\nIdempotent; an unsubscribed contact is not revived by an old link.","operationId":"subscription_confirm_api_v1_subscribe_confirm__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns":{"get":{"tags":["marketing"],"summary":"Workspace Campaigns List","description":"The workspace's campaigns, newest first.","operationId":"workspace_campaigns_list_api_v1_workspaces__workspace_id__campaigns_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignListItem"},"title":"Response Workspace Campaigns List Api V1 Workspaces  Workspace Id  Campaigns Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketing"],"summary":"Workspace Campaigns Create","description":"Create a draft campaign in this workspace.","operationId":"workspace_campaigns_create_api_v1_workspaces__workspace_id__campaigns_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/recipient-count":{"get":{"tags":["marketing"],"summary":"Workspace Campaign Recipient Count","description":"Audience-size preview: who a campaign with this segment would reach\nright now (consent + suppressions + optional sunset filter applied).","operationId":"workspace_campaign_recipient_count_api_v1_workspaces__workspace_id__campaigns_recipient_count_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"segment","in":"query","required":false,"schema":{"type":"string","default":"all_active","title":"Segment"}},{"name":"exclude_unengaged","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Unengaged"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientCountRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/recipient-count-preview":{"post":{"tags":["marketing"],"summary":"Workspace Campaign Recipient Count Preview","description":"Audience-size preview for a FULL segment descriptor (the POST twin of\n``recipient-count``): accepts every valid kind, including ``filtered``\nclauses and saved-``audience`` references (resolved live).","operationId":"workspace_campaign_recipient_count_preview_api_v1_workspaces__workspace_id__campaigns_recipient_count_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientCountRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/{campaign_id}":{"get":{"tags":["marketing"],"summary":"Workspace Campaigns Get","description":"One campaign with full content + counters.","operationId":"workspace_campaigns_get_api_v1_workspaces__workspace_id__campaigns__campaign_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["marketing"],"summary":"Workspace Campaigns Update","description":"Rewrite a draft's content (409 once it left draft).","operationId":"workspace_campaigns_update_api_v1_workspaces__workspace_id__campaigns__campaign_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketing"],"summary":"Workspace Campaigns Delete","description":"Delete a draft or cancelled campaign (409 for anything in-flight/sent).","operationId":"workspace_campaigns_delete_api_v1_workspaces__workspace_id__campaigns__campaign_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/{campaign_id}/schedule":{"post":{"tags":["marketing"],"summary":"Workspace Campaigns Schedule","description":"Schedule a draft for a future send (draft -> scheduled).","operationId":"workspace_campaigns_schedule_api_v1_workspaces__workspace_id__campaigns__campaign_id__schedule_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/{campaign_id}/send":{"post":{"tags":["marketing"],"summary":"Workspace Campaigns Send","description":"Request an immediate send (draft -> scheduled now; the worker dispatches).","operationId":"workspace_campaigns_send_api_v1_workspaces__workspace_id__campaigns__campaign_id__send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/{campaign_id}/cancel":{"post":{"tags":["marketing"],"summary":"Workspace Campaigns Cancel","description":"Pull a scheduled campaign back (scheduled -> cancelled).","operationId":"workspace_campaigns_cancel_api_v1_workspaces__workspace_id__campaigns__campaign_id__cancel_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/{campaign_id}/recipients":{"get":{"tags":["marketing"],"summary":"Workspace Campaign Recipients","description":"A page of the campaign's snapshotted recipients (post-send stats view).","operationId":"workspace_campaign_recipients_api_v1_workspaces__workspace_id__campaigns__campaign_id__recipients_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["queued","sent","delivered","bounced","complained","unsubscribed","failed","dropped","opened","clicked"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRecipientPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/deliverability":{"get":{"tags":["marketing"],"summary":"Workspace Deliverability","description":"The workspace's deliverability rollup — totals + rates over every\ncampaign that went out, the current warm-up cap, and the DNS-side switch\nstates (verified domain, validated link branding).","operationId":"workspace_deliverability_api_v1_workspaces__workspace_id__deliverability_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverabilityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-dashboard":{"get":{"tags":["marketing"],"summary":"Workspace Email Dashboard","description":"The workspace's email dashboard: windowed send totals/rates, the\ncompleted-campaign listing, and the live audience block.","operationId":"workspace_email_dashboard_api_v1_workspaces__workspace_id__email_dashboard_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDashboardRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-templates":{"get":{"tags":["marketing"],"summary":"Workspace Email Templates List","description":"The workspace's email templates, newest first.","operationId":"workspace_email_templates_list_api_v1_workspaces__workspace_id__email_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplateRead"},"title":"Response Workspace Email Templates List Api V1 Workspaces  Workspace Id  Email Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketing"],"summary":"Workspace Email Templates Create","description":"Create an email template in this workspace.","operationId":"workspace_email_templates_create_api_v1_workspaces__workspace_id__email_templates_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-templates/{template_id}":{"get":{"tags":["marketing"],"summary":"Workspace Email Templates Get","description":"One template with its full content triple.","operationId":"workspace_email_templates_get_api_v1_workspaces__workspace_id__email_templates__template_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["marketing"],"summary":"Workspace Email Templates Update","description":"Rewrite a template's content (no status machine — always editable).","operationId":"workspace_email_templates_update_api_v1_workspaces__workspace_id__email_templates__template_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketing"],"summary":"Workspace Email Templates Delete","description":"Delete a template — always allowed (campaigns copied its content).","operationId":"workspace_email_templates_delete_api_v1_workspaces__workspace_id__email_templates__template_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/audiences/brand-options":{"get":{"tags":["marketing"],"summary":"Workspace Audience Brand Options","description":"Distinct vehicle makes across the workspace's orders — the values a\n``filtered`` segment's ``brands`` clause can match. Declared before the\n``/{audience_id}`` routes so the literal segment wins the path match.","operationId":"workspace_audience_brand_options_api_v1_workspaces__workspace_id__audiences_brand_options_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOptionsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/audiences":{"get":{"tags":["marketing"],"summary":"Workspace Audiences List","description":"The workspace's saved audiences, newest first.","operationId":"workspace_audiences_list_api_v1_workspaces__workspace_id__audiences_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AudienceRead"},"title":"Response Workspace Audiences List Api V1 Workspaces  Workspace Id  Audiences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketing"],"summary":"Workspace Audiences Create","description":"Create a saved audience (definition validated at save time).","operationId":"workspace_audiences_create_api_v1_workspaces__workspace_id__audiences_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/audiences/{audience_id}":{"get":{"tags":["marketing"],"summary":"Workspace Audiences Get","description":"One saved audience.","operationId":"workspace_audiences_get_api_v1_workspaces__workspace_id__audiences__audience_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"audience_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audience Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["marketing"],"summary":"Workspace Audiences Update","description":"Rewrite a saved audience (referencing campaigns resolve it live).","operationId":"workspace_audiences_update_api_v1_workspaces__workspace_id__audiences__audience_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"audience_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audience Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketing"],"summary":"Workspace Audiences Delete","description":"Delete a saved audience — always allowed; campaigns still pointing at\nit block at dispatch (``audience_missing``), never widen silently.","operationId":"workspace_audiences_delete_api_v1_workspaces__workspace_id__audiences__audience_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"audience_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audience Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/marketing-contacts":{"get":{"tags":["marketing"],"summary":"Workspace Marketing Contacts","description":"A page of the website's opted-in contacts with per-status totals.","operationId":"workspace_marketing_contacts_api_v1_workspaces__workspace_id__marketing_contacts_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","subscribed","unsubscribed"],"type":"string"},{"type":"null"}],"title":"Status"}},{"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":{"$ref":"#/components/schemas/MarketingContactPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/marketing-contacts/{contact_id}":{"delete":{"tags":["marketing"],"summary":"Workspace Marketing Contact Remove","description":"Remove a contact and its send history — the erasure path for someone\nwho has no account (404 for another workspace's contact).","operationId":"workspace_marketing_contact_remove_api_v1_workspaces__workspace_id__marketing_contacts__contact_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns":{"get":{"tags":["marketing"],"summary":"Admin Campaigns List","description":"Platform campaigns (the platform newsletter rides the same rails).","operationId":"admin_campaigns_list_api_v1_admin_campaigns_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CampaignListItem"},"type":"array","title":"Response Admin Campaigns List Api V1 Admin Campaigns Get"}}}}}},"post":{"tags":["marketing"],"summary":"Admin Campaigns Create","description":"Create a platform draft campaign.","operationId":"admin_campaigns_create_api_v1_admin_campaigns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/recipient-count":{"get":{"tags":["marketing"],"summary":"Admin Campaign Recipient Count","description":"Audience-size preview for the platform scope (all active dealers+tuners).","operationId":"admin_campaign_recipient_count_api_v1_admin_campaigns_recipient_count_get","parameters":[{"name":"segment","in":"query","required":false,"schema":{"type":"string","default":"all_active","title":"Segment"}},{"name":"exclude_unengaged","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Unengaged"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientCountRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/recipient-count-preview":{"post":{"tags":["marketing"],"summary":"Admin Campaign Recipient Count Preview","description":"Full-descriptor audience preview for the platform scope.","operationId":"admin_campaign_recipient_count_preview_api_v1_admin_campaigns_recipient_count_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentPreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientCountRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/{campaign_id}":{"get":{"tags":["marketing"],"summary":"Admin Campaigns Get","operationId":"admin_campaigns_get_api_v1_admin_campaigns__campaign_id__get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["marketing"],"summary":"Admin Campaigns Update","operationId":"admin_campaigns_update_api_v1_admin_campaigns__campaign_id__patch","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketing"],"summary":"Admin Campaigns Delete","operationId":"admin_campaigns_delete_api_v1_admin_campaigns__campaign_id__delete","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/{campaign_id}/schedule":{"post":{"tags":["marketing"],"summary":"Admin Campaigns Schedule","operationId":"admin_campaigns_schedule_api_v1_admin_campaigns__campaign_id__schedule_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/{campaign_id}/send":{"post":{"tags":["marketing"],"summary":"Admin Campaigns Send","operationId":"admin_campaigns_send_api_v1_admin_campaigns__campaign_id__send_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/{campaign_id}/cancel":{"post":{"tags":["marketing"],"summary":"Admin Campaigns Cancel","operationId":"admin_campaigns_cancel_api_v1_admin_campaigns__campaign_id__cancel_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/{campaign_id}/recipients":{"get":{"tags":["marketing"],"summary":"Admin Campaign Recipients","operationId":"admin_campaign_recipients_api_v1_admin_campaigns__campaign_id__recipients_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["queued","sent","delivered","bounced","complained","unsubscribed","failed","dropped","opened","clicked"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRecipientPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/deliverability":{"get":{"tags":["marketing"],"summary":"Admin Workspace Deliverability","description":"Platform-admin view of a workspace's deliverability rollup.\n\nNo entitlement gate: an admin monitors (and suspends) workspaces whose\ncampaigns entitlement was already revoked — history must stay visible.","operationId":"admin_workspace_deliverability_api_v1_admin_workspaces__workspace_id__deliverability_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverabilityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/campaigns-entitlement":{"patch":{"tags":["marketing"],"summary":"Admin Set Campaigns Entitlement","description":"Platform-admin flips a workspace's campaigns entitlement (plan gating\nis a business decision, so the switch is admin-only and server-enforced).","operationId":"admin_set_campaigns_entitlement_api_v1_admin_workspaces__workspace_id__campaigns_entitlement_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsEntitlementWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Campaigns Entitlement Api V1 Admin Workspaces  Workspace Id  Campaigns Entitlement Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces/{workspace_id}/homepage-featured":{"patch":{"tags":["marketing"],"summary":"Admin Set Homepage Featured","description":"Platform-admin features (or unfeatures) a tuner on the public homepage\n\"latest orders\" strip — a curation decision, so admin-only and server-side.","operationId":"admin_set_homepage_featured_api_v1_admin_workspaces__workspace_id__homepage_featured_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomepageFeaturedWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Homepage Featured Api V1 Admin Workspaces  Workspace Id  Homepage Featured Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/campaigns/{campaign_id}/test-send":{"post":{"tags":["marketing"],"summary":"Workspace Campaigns Test Send","description":"Mail the current draft artifacts to the caller for a real-inbox preview.\n\nOutside the pipeline on purpose: platform sender, no merge tags, no stats\n— see ``MarketingService.send_test``.","operationId":"workspace_campaigns_test_send_api_v1_workspaces__workspace_id__campaigns__campaign_id__test_send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TestSendRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Workspace Campaigns Test Send Api V1 Workspaces  Workspace Id  Campaigns  Campaign Id  Test Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/campaigns/{campaign_id}/test-send":{"post":{"tags":["marketing"],"summary":"Admin Campaigns Test Send","description":"Platform-campaign test send to the requesting admin.","operationId":"admin_campaigns_test_send_api_v1_admin_campaigns__campaign_id__test_send_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TestSendRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Campaigns Test Send Api V1 Admin Campaigns  Campaign Id  Test Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-dashboard":{"get":{"tags":["marketing"],"summary":"Admin Email Dashboard","description":"The platform scope's email dashboard (workspace = None).","operationId":"admin_email_dashboard_api_v1_admin_email_dashboard_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDashboardRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-templates":{"get":{"tags":["marketing"],"summary":"Admin Email Templates List","description":"Platform email templates, newest first.","operationId":"admin_email_templates_list_api_v1_admin_email_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EmailTemplateRead"},"type":"array","title":"Response Admin Email Templates List Api V1 Admin Email Templates Get"}}}}}},"post":{"tags":["marketing"],"summary":"Admin Email Templates Create","description":"Create a platform email template.","operationId":"admin_email_templates_create_api_v1_admin_email_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-templates/{template_id}":{"get":{"tags":["marketing"],"summary":"Admin Email Templates Get","operationId":"admin_email_templates_get_api_v1_admin_email_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["marketing"],"summary":"Admin Email Templates Update","operationId":"admin_email_templates_update_api_v1_admin_email_templates__template_id__patch","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketing"],"summary":"Admin Email Templates Delete","operationId":"admin_email_templates_delete_api_v1_admin_email_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/audiences/brand-options":{"get":{"tags":["marketing"],"summary":"Admin Audience Brand Options","description":"Distinct vehicle makes across ALL orders (the platform scope sees\neverything). Declared before the ``/{audience_id}`` routes so the literal\nsegment wins the path match.","operationId":"admin_audience_brand_options_api_v1_admin_audiences_brand_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOptionsRead"}}}}}}},"/api/v1/admin/audiences":{"get":{"tags":["marketing"],"summary":"Admin Audiences List","description":"Platform saved audiences, newest first.","operationId":"admin_audiences_list_api_v1_admin_audiences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AudienceRead"},"type":"array","title":"Response Admin Audiences List Api V1 Admin Audiences Get"}}}}}},"post":{"tags":["marketing"],"summary":"Admin Audiences Create","description":"Create a platform saved audience (definition validated at save time).","operationId":"admin_audiences_create_api_v1_admin_audiences_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceWrite"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/audiences/{audience_id}":{"get":{"tags":["marketing"],"summary":"Admin Audiences Get","operationId":"admin_audiences_get_api_v1_admin_audiences__audience_id__get","parameters":[{"name":"audience_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audience Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["marketing"],"summary":"Admin Audiences Update","operationId":"admin_audiences_update_api_v1_admin_audiences__audience_id__patch","parameters":[{"name":"audience_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audience Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketing"],"summary":"Admin Audiences Delete","operationId":"admin_audiences_delete_api_v1_admin_audiences__audience_id__delete","parameters":[{"name":"audience_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audience Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/email-templates/{template_id}/test-send":{"post":{"tags":["marketing"],"summary":"Workspace Templates Test Send","description":"Test-send a saved template's design — preview without a campaign.","operationId":"workspace_templates_test_send_api_v1_workspaces__workspace_id__email_templates__template_id__test_send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TestSendRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Workspace Templates Test Send Api V1 Workspaces  Workspace Id  Email Templates  Template Id  Test Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email-templates/{template_id}/test-send":{"post":{"tags":["marketing"],"summary":"Admin Templates Test Send","description":"Platform-template test send.","operationId":"admin_templates_test_send_api_v1_admin_email_templates__template_id__test_send_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TestSendRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Templates Test Send Api V1 Admin Email Templates  Template Id  Test Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/workspaces/{workspace_id}/email-logo":{"get":{"tags":["marketing"],"summary":"Workspace Email Logo","description":"The workspace logo, streamed through the portal origin for EMAILS.\n\nMail clients fetch images through privacy proxies that choke on some\nthird-party object-storage hosts; serving the logo from the portal keeps\nevery email image on one origin we control (which is also what\ndeliverability guidance wants). It is served mail-safe: an SVG logo becomes\na PNG and WebP a PNG/JPEG, because Gmail and Outlook show neither. HEAD is\nanswered too — some image proxies and scanners check with it first. The\nupstream URL comes exclusively from the workspace's own branding row —\nnever from request input.","operationId":"workspace_email_logo_api_v1_public_workspaces__workspace_id__email_logo_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["marketing"],"summary":"Workspace Email Logo","description":"The workspace logo, streamed through the portal origin for EMAILS.\n\nMail clients fetch images through privacy proxies that choke on some\nthird-party object-storage hosts; serving the logo from the portal keeps\nevery email image on one origin we control (which is also what\ndeliverability guidance wants). It is served mail-safe: an SVG logo becomes\na PNG and WebP a PNG/JPEG, because Gmail and Outlook show neither. HEAD is\nanswered too — some image proxies and scanners check with it first. The\nupstream URL comes exclusively from the workspace's own branding row —\nnever from request input.","operationId":"workspace_email_logo_api_v1_public_workspaces__workspace_id__email_logo_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/email-assets/{name}":{"get":{"tags":["marketing"],"summary":"Email Asset","description":"A mail-safe image copy an email references (``notification.email_assets``).\n\nContent-addressed, so it never changes: cached for a year everywhere.","operationId":"email_asset_api_v1_public_email_assets__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["marketing"],"summary":"Email Asset","description":"A mail-safe image copy an email references (``notification.email_assets``).\n\nContent-addressed, so it never changes: cached for a year everywhere.","operationId":"email_asset_api_v1_public_email_assets__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pay/invoice/{token}":{"post":{"tags":["invoices"],"summary":"Pay Invoice By Link","description":"Open a fresh checkout (Stripe or PayPal) for the invoice the token names.","operationId":"pay_invoice_by_link_api_v1_pay_invoice__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CyclePayRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CyclePayResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/sendgrid/events":{"post":{"tags":["webhooks"],"summary":"Sendgrid Events","description":"Ingest the SendGrid Event Webhook (JSON array of delivery events).\n\nVerified against ``marketing.sendgrid_webhook_public_key`` (falling back to\n``sendgrid.event_webhook_public_key`` for already-configured deployments);\na failed check is 401. If no key is configured (dev / not yet wired) the\ncallback is accepted but flagged — prod must set a key so forged events\ncan't inject suppressions. Hard ``bounce``/``spamreport`` events write\n``email_suppressions`` idempotently (SendGrid retries and duplicates\ndeliveries); every event with a verdict is recorded on its delivery row\nand/or campaign recipient.","operationId":"sendgrid_events_api_v1_webhooks_sendgrid_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sendgrid Events Api V1 Webhooks Sendgrid Events Post"}}}}}}},"/api/v1/webhooks/sendgrid/inbound/{secret}":{"post":{"tags":["webhooks"],"summary":"Sendgrid Inbound","description":"Ingest a lead's inbound email reply (SendGrid Inbound Parse).\n\nSendGrid signs nothing, so the endpoint is gated by a secret path segment\n(constant-time compared). The parse payload is ``multipart/form-data``; we map\nit to :class:`InboundEmail`, route it to its thread by the ``reply+<token>``\nrecipient, and store it (auth/spam failures are quarantined). Returns 202 even\nfor unroutable mail so the provider doesn't retry a permanent drop.","operationId":"sendgrid_inbound_api_v1_webhooks_sendgrid_inbound__secret__post","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sendgrid Inbound Api V1 Webhooks Sendgrid Inbound  Secret  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/orders/{external_ref}/status":{"get":{"tags":["agent-connector"],"summary":"Order Status","operationId":"order_status_api_v1_agent_connector_orders__external_ref__status_get","parameters":[{"name":"external_ref","in":"path","required":true,"schema":{"type":"string","title":"External Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStatusOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/orders/{external_ref}/estimate":{"get":{"tags":["agent-connector"],"summary":"Estimate","operationId":"estimate_api_v1_agent_connector_orders__external_ref__estimate_get","parameters":[{"name":"external_ref","in":"path","required":true,"schema":{"type":"string","title":"External Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/orders/{external_ref}/approval":{"post":{"tags":["agent-connector"],"summary":"Record Approval","operationId":"record_approval_api_v1_agent_connector_orders__external_ref__approval_post","parameters":[{"name":"external_ref","in":"path","required":true,"schema":{"type":"string","title":"External Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/event-types":{"get":{"tags":["agent-connector"],"summary":"Event Types","description":"What this workspace can be booked for — the menu the model picks from.\n\nThe reason this endpoint exists rather than a word in the prompt: a tuner\nwho adds \"Dyno session\" in the portal becomes offerable on the next\nconversation, with no prompt edit and no deploy.","operationId":"event_types_api_v1_agent_connector_event_types_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventTypeOut"},"title":"Response Event Types Api V1 Agent Connector Event Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/slots":{"get":{"tags":["agent-connector"],"summary":"Slots","operationId":"slots_api_v1_agent_connector_slots_get","parameters":[{"name":"event_type","in":"query","required":false,"schema":{"type":"string","default":"product-demo","title":"Event Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SlotOut"},"title":"Response Slots Api V1 Agent Connector Slots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/slots/{slot_ref}/book":{"post":{"tags":["agent-connector"],"summary":"Book Slot","operationId":"book_slot_api_v1_agent_connector_slots__slot_ref__book_post","parameters":[{"name":"slot_ref","in":"path","required":true,"schema":{"type":"string","title":"Slot Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/bookings":{"get":{"tags":["agent-connector"],"summary":"Find Bookings","description":"`find_booking` — an appointment already on the calendar, by contact.\n\n``phone``/``email`` come from the conversation's transport identifier or\nwhat the customer just said, same as ``identify_customer`` — never a\nnumber the model picked to search with.","operationId":"find_bookings_api_v1_agent_connector_bookings_get","parameters":[{"name":"phone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/bookings/{booking_ref}/reschedule":{"post":{"tags":["agent-connector"],"summary":"Reschedule Booking","operationId":"reschedule_booking_api_v1_agent_connector_bookings__booking_ref__reschedule_post","parameters":[{"name":"booking_ref","in":"path","required":true,"schema":{"type":"string","title":"Booking Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/bookings/{booking_ref}/cancel":{"post":{"tags":["agent-connector"],"summary":"Cancel Booking","operationId":"cancel_booking_api_v1_agent_connector_bookings__booking_ref__cancel_post","parameters":[{"name":"booking_ref","in":"path","required":true,"schema":{"type":"string","title":"Booking Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/customers/lookup":{"get":{"tags":["agent-connector"],"summary":"Lookup Customer","operationId":"lookup_customer_api_v1_agent_connector_customers_lookup_get","parameters":[{"name":"phone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerLookupOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/vehicles/resolve":{"post":{"tags":["agent-connector"],"summary":"Resolve Vehicle","operationId":"resolve_vehicle_api_v1_agent_connector_vehicles_resolve_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResolveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/vehicles/{vehicle_ref}/tunes":{"get":{"tags":["agent-connector"],"summary":"Tunes","operationId":"tunes_api_v1_agent_connector_vehicles__vehicle_ref__tunes_get","parameters":[{"name":"vehicle_ref","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Ref"}},{"name":"customer_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/vehicles/{vehicle_ref}/options":{"get":{"tags":["agent-connector"],"summary":"Options","operationId":"options_api_v1_agent_connector_vehicles__vehicle_ref__options_get","parameters":[{"name":"vehicle_ref","in":"path","required":true,"schema":{"type":"string","title":"Vehicle Ref"}},{"name":"customer_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/price":{"post":{"tags":["agent-connector"],"summary":"Price","operationId":"price_api_v1_agent_connector_price_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/dtc/{code}":{"get":{"tags":["agent-connector"],"summary":"Dtc","operationId":"dtc_api_v1_agent_connector_dtc__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtcOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/connector/tuner/status":{"get":{"tags":["agent-connector"],"summary":"Tuner Status","operationId":"tuner_status_api_v1_agent_connector_tuner_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-agent-identity","in":"header","required":false,"schema":{"type":"string","default":"anonymous","title":"X-Agent-Identity"}},{"name":"x-agent-customer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Customer"}},{"name":"x-agent-conversation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Conversation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunerStatusOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent":{"get":{"tags":["agent-admin"],"summary":"Agent Settings","operationId":"agent_settings_api_v1_workspaces__workspace_id__agent_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agent-admin"],"summary":"Update Agent Settings","operationId":"update_agent_settings_api_v1_workspaces__workspace_id__agent_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSettingsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/enable":{"post":{"tags":["agent-admin"],"summary":"Enable Agent","operationId":"enable_agent_api_v1_workspaces__workspace_id__agent_enable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/disable":{"post":{"tags":["agent-admin"],"summary":"Disable Agent","operationId":"disable_agent_api_v1_workspaces__workspace_id__agent_disable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/rotate-key":{"post":{"tags":["agent-admin"],"summary":"Rotate Key","operationId":"rotate_key_api_v1_workspaces__workspace_id__agent_rotate_key_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp":{"get":{"tags":["agent-admin"],"summary":"Whatsapp State","description":"The studio card's single source: channel state + the latest onboarding.\n\n``channel`` carries the dedicated number's ``host``, ``status``,\n``last_error`` and ``token_expires_at`` flattened from the platform's\nnested object, plus ``checked_at`` and the ``attention`` conditions the\ndaily check would raise.","operationId":"whatsapp_state_api_v1_workspaces__workspace_id__agent_whatsapp_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp State Api V1 Workspaces  Workspace Id  Agent Whatsapp Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/onboarding":{"post":{"tags":["agent-admin"],"summary":"Start Whatsapp Onboarding","description":"Mint a Meta signup; the browser opens the returned ``onboarding_url``.","operationId":"start_whatsapp_onboarding_api_v1_workspaces__workspace_id__agent_whatsapp_onboarding_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Whatsapp Onboarding Api V1 Workspaces  Workspace Id  Agent Whatsapp Onboarding Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/onboarding/{request_id}":{"get":{"tags":["agent-admin"],"summary":"Whatsapp Onboarding Status","operationId":"whatsapp_onboarding_status_api_v1_workspaces__workspace_id__agent_whatsapp_onboarding__request_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Onboarding Status Api V1 Workspaces  Workspace Id  Agent Whatsapp Onboarding  Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-admin"],"summary":"Cancel Whatsapp Onboarding","description":"Abandon an onboarding attempt so the tuner can start over.\n\n\"Try again\" in the studio is this plus a new onboarding. Upstream 409s once\nthe number is live — that is a release, not a cancellation — and we pass\nthat through rather than pretending the number went away.","operationId":"cancel_whatsapp_onboarding_api_v1_workspaces__workspace_id__agent_whatsapp_onboarding__request_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/replace":{"post":{"tags":["agent-admin"],"summary":"Replace Whatsapp Channel","description":"Change number: the old number is\nreleased, replies come from the shared number until the new signup is done.","operationId":"replace_whatsapp_channel_api_v1_workspaces__workspace_id__agent_whatsapp_replace_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Replace Whatsapp Channel Api V1 Workspaces  Workspace Id  Agent Whatsapp Replace Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/channel":{"delete":{"tags":["agent-admin"],"summary":"Release Whatsapp Channel","operationId":"release_whatsapp_channel_api_v1_workspaces__workspace_id__agent_whatsapp_channel_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/inbox-login":{"get":{"tags":["agent-admin"],"summary":"Inbox Login State","description":"The login, and its temporary password until the platform says it was used.","operationId":"inbox_login_state_api_v1_workspaces__workspace_id__agent_inbox_login_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxLoginOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-admin"],"summary":"Create Inbox Login","description":"Create the login (with ``email``, or the business's own address).","operationId":"create_inbox_login_api_v1_workspaces__workspace_id__agent_inbox_login_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxLoginIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxLoginOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates":{"get":{"tags":["agent-admin"],"summary":"List Whatsapp Templates","operationId":"list_whatsapp_templates_api_v1_workspaces__workspace_id__agent_whatsapp_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentTemplateOut"},"title":"Response List Whatsapp Templates Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-admin"],"summary":"Create Whatsapp Template","operationId":"create_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/{template_id}":{"patch":{"tags":["agent-admin"],"summary":"Update Whatsapp Template","operationId":"update_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates__template_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-admin"],"summary":"Delete Whatsapp Template","operationId":"delete_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates__template_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/start":{"post":{"tags":["agent-admin"],"summary":"Start Whatsapp Conversation","description":"Open a WhatsApp thread with a customer who has not written first.\n\nSafe to call more than once for the same customer: the agent platform's\nown idempotency means a repeat lands on the thread the first call opened\nrather than a second one, and so does ours.","operationId":"start_whatsapp_conversation_api_v1_workspaces__workspace_id__agent_whatsapp_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWhatsAppConversationIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWhatsAppConversationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/threads/{thread_id}/whatsapp-reply":{"post":{"tags":["agent-admin"],"summary":"Whatsapp Staff Reply","description":"A tuner answers a WhatsApp customer from our inbox.\n\nThey own the transport, so the send happens there and we mirror the result.\nTheir 409 (the 24-hour window has closed) is surfaced verbatim rather than\nsmoothed over: the tuner must know the customer has to write first, and a\ntemplate sent under their name would not be the message they typed.","operationId":"whatsapp_staff_reply_api_v1_workspaces__workspace_id__agent_threads__thread_id__whatsapp_reply_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppReplyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Staff Reply Api V1 Workspaces  Workspace Id  Agent Threads  Thread Id  Whatsapp Reply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/threads/{thread_id}/link":{"post":{"tags":["agent-admin"],"summary":"Link Thread Account","description":"Say who this conversation is with, and remember it for next time.\n\nMatching works from numbers people have entered, so it misses the dealer\ntexting from a private phone. This is the repair — and because the answer\nis stored against the number, the next message from it matches on its own.\nThat is the whole annotation story: knowledge learned from use rather than\ntyped into a form nobody fills in.\n\nThe link is the tuner's own, scoped to their workspace. It never edits the\ndealer's account, which a tuner is not allowed to do, and a number one\ntuner has confirmed is not a fact about that dealer everywhere else.","operationId":"link_thread_account_api_v1_workspaces__workspace_id__agent_threads__thread_id__link_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadLinkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Link Thread Account Api V1 Workspaces  Workspace Id  Agent Threads  Thread Id  Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/threads/{thread_id}/handback":{"post":{"tags":["agent-admin"],"summary":"Thread Handback","description":"Hand the thread back: the agent answers the next customer message.\n\nA thread the platform owns (WhatsApp, or an email it has taken a turn on)\nis parked staff_active on THEIR side too, so the release has to land there\nbefore our state moves. It used to be the other way round, with the\nplatform's answer ignored: a refused release left the tuner looking at\n\"the agent is replying\" while the conversation stayed parked upstream and\nnobody answered the customer. Mirror of :func:`thread_pause` — refuse\nrather than fake it.","operationId":"thread_handback_api_v1_workspaces__workspace_id__agent_threads__thread_id__handback_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/threads/{thread_id}/pause":{"post":{"tags":["agent-admin"],"summary":"Thread Pause","description":"Take the thread without replying (Pause agent / \"Got it\" on a handoff).\n\nWhenever the agent platform owns the conversation — WhatsApp, or an email it\nhas taken a turn on (it carries an ``agent_conversation_id``) — the takeover\nhas to happen there too. Flipping our state alone would show the tuner \"you\nhave this conversation\" while the platform stayed ai_active, kept generating\nturns underneath, and never recorded the human's reply as a learnable staff\nanswer. Their ``takeover`` endpoint makes the control mean the same thing on\nboth channels, and we refuse the pause rather than fake it if that call does\nnot succeed. A form thread the agent never touched has no upstream\nconversation, so there withholding our own sends is the whole story.","operationId":"thread_pause_api_v1_workspaces__workspace_id__agent_threads__thread_id__pause_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/drafts/{draft_id}/send":{"post":{"tags":["agent-admin"],"summary":"Send Draft","description":"Send an agent-drafted reply the tuner approved.\n\nThe draft belongs to the agent platform, so approving it is their call to\nmake: we release it by message id, which keeps authorship with the agent,\nrecords who approved it, and — unlike answering in the tuner's own words —\nleaves the agent running on the thread afterwards.\n\nWhat happens next splits on who owns the wire. On WhatsApp they send, and\nwe promote our copy of the row. On email we are the transport, so the\nrelease only settles their side and the mail goes out here, through the\nSAME rail a human answer uses (branded, ``Reply-To`` threading).\n\nOptional quote terms (``amount_cents``, ``stage``, ``vehicle_label``,\n``valid_days``) override what the agent proposed, written into the held\nproposal before either branch runs — so whichever settle path follows (here\nfor email, or the WhatsApp webhook once delivery confirms) reads the\ntuner's terms, not necessarily the agent's own guess.\n\nWithout a ``body`` the draft goes out as it stands, which after a save\n(``PATCH``) is the tuner's wording, not the agent's.","operationId":"send_draft_api_v1_workspaces__workspace_id__agent_drafts__draft_id__send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DraftSendIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Draft Api V1 Workspaces  Workspace Id  Agent Drafts  Draft Id  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/drafts/{draft_id}":{"patch":{"tags":["agent-admin"],"summary":"Save Draft","description":"Save the tuner's edits to a suggestion without sending anything.\n\nThe reply text is stored on our copy of the draft and marked edited, so the\nnext read of the conversation shows it and the eventual Send releases it.\nThe quote terms are written into the held quote exactly as Send writes\nthem. Nothing reaches the agent platform or the customer: there is no\n\"save\" upstream, and the saved words travel with the release instead.\n\n409 when quote terms are given but no quote is waiting on this enquiry —\naccepting them would drop them on the floor.","operationId":"save_draft_api_v1_workspaces__workspace_id__agent_drafts__draft_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftEditIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftEditOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-admin"],"summary":"Discard Draft","description":"Drop a suggestion the tuner does not want.\n\nDeleted here at once; the agent platform hears about it through the\noutbox (``agent.draft_reviewed`` → their discard), which marks their row\ndiscarded so it can never be released later and the agent stops treating\nit as something it said. A discard is the plainest \"that was wrong\" a\ntuner gives, so it is recorded before the row goes. Answering in the\ntuner's own words is the other half of a rejection, and that is the\nordinary composer — it takes the thread over, as it should.","operationId":"discard_draft_api_v1_workspaces__workspace_id__agent_drafts__draft_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/quotes/{submission_id}":{"get":{"tags":["agent-admin"],"summary":"Read Held Quote","description":"What the review dialog has to show before the tuner presses Send: the\nnumber, the agent's reasoning for it, and the covering text the quote\nemail will carry — the assistant's reply for this turn — so the text can\nbe corrected like the price can, instead of going out unseen. Also every\nterm the quote will carry (stage, car, validity, options, answers) and the\nlead's own stage and car, so an edit can show what it changed.","operationId":"read_held_quote_api_v1_workspaces__workspace_id__agent_quotes__submission_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldAgentQuoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-admin"],"summary":"Discard Held Quote","description":"Drop a quote the tuner does not want sent — mirrors ``discard_draft``:\nlocal only, nothing to reject upstream since nothing has gone out.","operationId":"discard_held_quote_api_v1_workspaces__workspace_id__agent_quotes__submission_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/quotes/{submission_id}/send":{"post":{"tags":["agent-admin"],"summary":"Send Held Quote","description":"Release a quote a `suggest` workspace is holding on its own, with no\ndraft reply riding along to approve it.\n\n``send_draft`` approves this same held proposal when it comes bundled with\na reply; this is the other half, for the far more common case this gate\nexists to cover — the agent platform sent its reply directly, so there was\nnever a draft to approve in the first place. See\n``SiteFormService.settle_agent_quote``'s autonomy gate.","operationId":"send_held_quote_api_v1_workspaces__workspace_id__agent_quotes__submission_id__send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QuoteSendIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Held Quote Api V1 Workspaces  Workspace Id  Agent Quotes  Submission Id  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/knowledge":{"get":{"tags":["agent-admin"],"summary":"List Knowledge","operationId":"list_knowledge_api_v1_workspaces__workspace_id__agent_knowledge_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Knowledge Api V1 Workspaces  Workspace Id  Agent Knowledge Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-admin"],"summary":"Upload Knowledge","operationId":"upload_knowledge_api_v1_workspaces__workspace_id__agent_knowledge_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_knowledge_api_v1_workspaces__workspace_id__agent_knowledge_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Knowledge Api V1 Workspaces  Workspace Id  Agent Knowledge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/knowledge/{file_id}":{"delete":{"tags":["agent-admin"],"summary":"Delete Knowledge","operationId":"delete_knowledge_api_v1_workspaces__workspace_id__agent_knowledge__file_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/knowledge/text":{"post":{"tags":["agent-admin"],"summary":"Upload Knowledge Text","description":"Pasted text as a knowledge document; chunked and embedded upstream.","operationId":"upload_knowledge_text_api_v1_workspaces__workspace_id__agent_knowledge_text_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeTextIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Knowledge Text Api V1 Workspaces  Workspace Id  Agent Knowledge Text Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/knowledge/url":{"post":{"tags":["agent-admin"],"summary":"Import Knowledge Url","description":"One public page of the tuner's site, fetched and stripped upstream.","operationId":"import_knowledge_url_api_v1_workspaces__workspace_id__agent_knowledge_url_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeUrlIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Import Knowledge Url Api V1 Workspaces  Workspace Id  Agent Knowledge Url Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers":{"get":{"tags":["agent-admin"],"summary":"List Staff Answers","operationId":"list_staff_answers_api_v1_workspaces__workspace_id__agent_staff_answers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"conflicted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Conflicted"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Staff Answers Api V1 Workspaces  Workspace Id  Agent Staff Answers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/summary":{"get":{"tags":["agent-admin"],"summary":"Staff Answers Summary","operationId":"staff_answers_summary_api_v1_workspaces__workspace_id__agent_staff_answers_summary_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Answers Summary Api V1 Workspaces  Workspace Id  Agent Staff Answers Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/tuning":{"get":{"tags":["agent-admin"],"summary":"Staff Answers Tuning","operationId":"staff_answers_tuning_api_v1_workspaces__workspace_id__agent_staff_answers_tuning_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"sample","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Answers Tuning Api V1 Workspaces  Workspace Id  Agent Staff Answers Tuning Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/search":{"post":{"tags":["agent-admin"],"summary":"Search Staff Answers","operationId":"search_staff_answers_api_v1_workspaces__workspace_id__agent_staff_answers_search_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAnswerSearchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Staff Answers Api V1 Workspaces  Workspace Id  Agent Staff Answers Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/backfill":{"post":{"tags":["agent-admin"],"summary":"Staff Answers Backfill","operationId":"staff_answers_backfill_api_v1_workspaces__workspace_id__agent_staff_answers_backfill_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Answers Backfill Api V1 Workspaces  Workspace Id  Agent Staff Answers Backfill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers-settings":{"get":{"tags":["agent-admin"],"summary":"Get Staff Answers Settings","operationId":"get_staff_answers_settings_api_v1_workspaces__workspace_id__agent_staff_answers_settings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Staff Answers Settings Api V1 Workspaces  Workspace Id  Agent Staff Answers Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agent-admin"],"summary":"Patch Staff Answers Settings","operationId":"patch_staff_answers_settings_api_v1_workspaces__workspace_id__agent_staff_answers_settings_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAnswersSettingsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Staff Answers Settings Api V1 Workspaces  Workspace Id  Agent Staff Answers Settings Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/{answer_id}":{"get":{"tags":["agent-admin"],"summary":"Get Staff Answer","operationId":"get_staff_answer_api_v1_workspaces__workspace_id__agent_staff_answers__answer_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Staff Answer Api V1 Workspaces  Workspace Id  Agent Staff Answers  Answer Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-admin"],"summary":"Delete Staff Answer","operationId":"delete_staff_answer_api_v1_workspaces__workspace_id__agent_staff_answers__answer_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Staff Answer Api V1 Workspaces  Workspace Id  Agent Staff Answers  Answer Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/{answer_id}/review":{"post":{"tags":["agent-admin"],"summary":"Review Staff Answer","operationId":"review_staff_answer_api_v1_workspaces__workspace_id__agent_staff_answers__answer_id__review_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAnswerReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Staff Answer Api V1 Workspaces  Workspace Id  Agent Staff Answers  Answer Id  Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/{answer_id}/confirm":{"post":{"tags":["agent-admin"],"summary":"Confirm Staff Answer","operationId":"confirm_staff_answer_api_v1_workspaces__workspace_id__agent_staff_answers__answer_id__confirm_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Staff Answer Api V1 Workspaces  Workspace Id  Agent Staff Answers  Answer Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-answers/{answer_id}/resolve-conflict":{"post":{"tags":["agent-admin"],"summary":"Resolve Staff Conflict","operationId":"resolve_staff_conflict_api_v1_workspaces__workspace_id__agent_staff_answers__answer_id__resolve_conflict_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffConflictIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Staff Conflict Api V1 Workspaces  Workspace Id  Agent Staff Answers  Answer Id  Resolve Conflict Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/learning/metrics":{"get":{"tags":["agent-admin"],"summary":"Learning Metrics","description":"What the team did with the agent's replies, this week against last.","operationId":"learning_metrics_api_v1_workspaces__workspace_id__agent_learning_metrics_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningMetricsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/learning/proposals":{"get":{"tags":["agent-admin"],"summary":"Learning Proposals","description":"The digest's suggestions still waiting on a decision.","operationId":"learning_proposals_api_v1_workspaces__workspace_id__agent_learning_proposals_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LearningProposalRead"},"title":"Response Learning Proposals Api V1 Workspaces  Workspace Id  Agent Learning Proposals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/learning/proposals/{proposal_id}/accept":{"post":{"tags":["agent-admin"],"summary":"Accept Learning Proposal","description":"Apply a proposal through the studio's own settings save.","operationId":"accept_learning_proposal_api_v1_workspaces__workspace_id__agent_learning_proposals__proposal_id__accept_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningProposalRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/learning/proposals/{proposal_id}/reject":{"post":{"tags":["agent-admin"],"summary":"Reject Learning Proposal","description":"Decline a proposal; the digest will not propose it again.","operationId":"reject_learning_proposal_api_v1_workspaces__workspace_id__agent_learning_proposals__proposal_id__reject_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningProposalRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-book/categories":{"get":{"tags":["agent-admin"],"summary":"Price Book Categories","operationId":"price_book_categories_api_v1_workspaces__workspace_id__agent_price_book_categories_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Price Book Categories Api V1 Workspaces  Workspace Id  Agent Price Book Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-book":{"get":{"tags":["agent-admin"],"summary":"List Price Book","operationId":"list_price_book_api_v1_workspaces__workspace_id__agent_price_book_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Price Book Api V1 Workspaces  Workspace Id  Agent Price Book Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-admin"],"summary":"Create Price Item","operationId":"create_price_item_api_v1_workspaces__workspace_id__agent_price_book_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Price Item Api V1 Workspaces  Workspace Id  Agent Price Book Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-book/quote":{"post":{"tags":["agent-admin"],"summary":"Price Book Quote","operationId":"price_book_quote_api_v1_workspaces__workspace_id__agent_price_book_quote_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Price Book Quote Api V1 Workspaces  Workspace Id  Agent Price Book Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-book/bulk":{"post":{"tags":["agent-admin"],"summary":"Price Book Bulk","operationId":"price_book_bulk_api_v1_workspaces__workspace_id__agent_price_book_bulk_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Price Book Bulk Api V1 Workspaces  Workspace Id  Agent Price Book Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-book-settings":{"get":{"tags":["agent-admin"],"summary":"Get Price Book Settings","operationId":"get_price_book_settings_api_v1_workspaces__workspace_id__agent_price_book_settings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Price Book Settings Api V1 Workspaces  Workspace Id  Agent Price Book Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agent-admin"],"summary":"Patch Price Book Settings","operationId":"patch_price_book_settings_api_v1_workspaces__workspace_id__agent_price_book_settings_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Price Book Settings Api V1 Workspaces  Workspace Id  Agent Price Book Settings Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-book/{item_id}":{"get":{"tags":["agent-admin"],"summary":"Get Price Item","operationId":"get_price_item_api_v1_workspaces__workspace_id__agent_price_book__item_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Price Item Api V1 Workspaces  Workspace Id  Agent Price Book  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agent-admin"],"summary":"Patch Price Item","operationId":"patch_price_item_api_v1_workspaces__workspace_id__agent_price_book__item_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Price Item Api V1 Workspaces  Workspace Id  Agent Price Book  Item Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-admin"],"summary":"Delete Price Item","operationId":"delete_price_item_api_v1_workspaces__workspace_id__agent_price_book__item_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Price Item Api V1 Workspaces  Workspace Id  Agent Price Book  Item Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-policy/options":{"get":{"tags":["agent-admin"],"summary":"Price Policy Options","operationId":"price_policy_options_api_v1_workspaces__workspace_id__agent_price_policy_options_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Price Policy Options Api V1 Workspaces  Workspace Id  Agent Price Policy Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-policy/all":{"get":{"tags":["agent-admin"],"summary":"Price Policy All","operationId":"price_policy_all_api_v1_workspaces__workspace_id__agent_price_policy_all_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Price Policy All Api V1 Workspaces  Workspace Id  Agent Price Policy All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/price-policy":{"get":{"tags":["agent-admin"],"summary":"Get Price Policy","operationId":"get_price_policy_api_v1_workspaces__workspace_id__agent_price_policy_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Price Policy Api V1 Workspaces  Workspace Id  Agent Price Policy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agent-admin"],"summary":"Patch Price Policy","operationId":"patch_price_policy_api_v1_workspaces__workspace_id__agent_price_policy_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Price Policy Api V1 Workspaces  Workspace Id  Agent Price Policy Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-admin"],"summary":"Reset Price Policy","operationId":"reset_price_policy_api_v1_workspaces__workspace_id__agent_price_policy_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reset Price Policy Api V1 Workspaces  Workspace Id  Agent Price Policy Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/schema":{"get":{"tags":["agent-admin"],"summary":"Content Schema","operationId":"content_schema_api_v1_workspaces__workspace_id__agent_content_schema_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Content Schema Api V1 Workspaces  Workspace Id  Agent Content Schema Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content":{"get":{"tags":["agent-admin"],"summary":"List Content","operationId":"list_content_api_v1_workspaces__workspace_id__agent_content_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Content Api V1 Workspaces  Workspace Id  Agent Content Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/scrape-website":{"post":{"tags":["agent-admin"],"summary":"Start Website Scrape","description":"Queue a crawl of the tuner's own site; poll the GET for its progress.","operationId":"start_website_scrape_api_v1_workspaces__workspace_id__agent_content_scrape_website_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeWebsiteIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Website Scrape Api V1 Workspaces  Workspace Id  Agent Content Scrape Website Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-admin"],"summary":"Website Scrape Status","operationId":"website_scrape_status_api_v1_workspaces__workspace_id__agent_content_scrape_website_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Website Scrape Status Api V1 Workspaces  Workspace Id  Agent Content Scrape Website Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/suggestions":{"get":{"tags":["agent-admin"],"summary":"List Content Suggestions","operationId":"list_content_suggestions_api_v1_workspaces__workspace_id__agent_content_suggestions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Content Suggestions Api V1 Workspaces  Workspace Id  Agent Content Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/suggestions/{suggestion_id}/apply":{"post":{"tags":["agent-admin"],"summary":"Apply Content Suggestion","operationId":"apply_content_suggestion_api_v1_workspaces__workspace_id__agent_content_suggestions__suggestion_id__apply_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Content Suggestion Api V1 Workspaces  Workspace Id  Agent Content Suggestions  Suggestion Id  Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/suggestions/{suggestion_id}/reject":{"post":{"tags":["agent-admin"],"summary":"Reject Content Suggestion","operationId":"reject_content_suggestion_api_v1_workspaces__workspace_id__agent_content_suggestions__suggestion_id__reject_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Content Suggestion Api V1 Workspaces  Workspace Id  Agent Content Suggestions  Suggestion Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/gaps":{"get":{"tags":["agent-admin"],"summary":"List Content Gaps","description":"Questions the assistant could not answer, with the topics that would fix them.","operationId":"list_content_gaps_api_v1_workspaces__workspace_id__agent_content_gaps_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Content Gaps Api V1 Workspaces  Workspace Id  Agent Content Gaps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/gaps/{gap_id}/dismiss":{"post":{"tags":["agent-admin"],"summary":"Dismiss Content Gap","operationId":"dismiss_content_gap_api_v1_workspaces__workspace_id__agent_content_gaps__gap_id__dismiss_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"gap_id","in":"path","required":true,"schema":{"type":"string","title":"Gap Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dismiss Content Gap Api V1 Workspaces  Workspace Id  Agent Content Gaps  Gap Id  Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/gaps/{gap_id}/resolve":{"post":{"tags":["agent-admin"],"summary":"Resolve Content Gap","operationId":"resolve_content_gap_api_v1_workspaces__workspace_id__agent_content_gaps__gap_id__resolve_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"gap_id","in":"path","required":true,"schema":{"type":"string","title":"Gap Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Content Gap Api V1 Workspaces  Workspace Id  Agent Content Gaps  Gap Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/content/{topic_key}":{"get":{"tags":["agent-admin"],"summary":"Get Content Topic","operationId":"get_content_topic_api_v1_workspaces__workspace_id__agent_content__topic_key__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"topic_key","in":"path","required":true,"schema":{"type":"string","title":"Topic Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Content Topic Api V1 Workspaces  Workspace Id  Agent Content  Topic Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agent-admin"],"summary":"Put Content Topic","description":"Whole-topic replace; a mistyped value comes back as their 422 per field.","operationId":"put_content_topic_api_v1_workspaces__workspace_id__agent_content__topic_key__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"topic_key","in":"path","required":true,"schema":{"type":"string","title":"Topic Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTopicIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Content Topic Api V1 Workspaces  Workspace Id  Agent Content  Topic Key  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-questions":{"get":{"tags":["agent-admin"],"summary":"List Staff Questions","operationId":"list_staff_questions_api_v1_workspaces__workspace_id__agent_staff_questions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Staff Questions Api V1 Workspaces  Workspace Id  Agent Staff Questions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-questions/{question_id}/answer":{"post":{"tags":["agent-admin"],"summary":"Answer Staff Question","description":"The team's answer, in the words the customer will read.","operationId":"answer_staff_question_api_v1_workspaces__workspace_id__agent_staff_questions__question_id__answer_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","title":"Question Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffQuestionAnswerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Staff Question Api V1 Workspaces  Workspace Id  Agent Staff Questions  Question Id  Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/staff-questions/{question_id}/dismiss":{"post":{"tags":["agent-admin"],"summary":"Dismiss Staff Question","operationId":"dismiss_staff_question_api_v1_workspaces__workspace_id__agent_staff_questions__question_id__dismiss_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","title":"Question Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dismiss Staff Question Api V1 Workspaces  Workspace Id  Agent Staff Questions  Question Id  Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/team":{"get":{"tags":["agent-admin"],"summary":"List Team","operationId":"list_team_api_v1_workspaces__workspace_id__agent_team_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Team Api V1 Workspaces  Workspace Id  Agent Team Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-admin"],"summary":"Add Team Member","description":"A colleague's login; the answer carries their one-time temporary password.","operationId":"add_team_member_api_v1_workspaces__workspace_id__agent_team_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Team Member Api V1 Workspaces  Workspace Id  Agent Team Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/team/{user_id}":{"patch":{"tags":["agent-admin"],"summary":"Patch Team Member","operationId":"patch_team_member_api_v1_workspaces__workspace_id__agent_team__user_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Team Member Api V1 Workspaces  Workspace Id  Agent Team  User Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/team/{user_id}/reset-password":{"post":{"tags":["agent-admin"],"summary":"Reset Team Member Password","operationId":"reset_team_member_password_api_v1_workspaces__workspace_id__agent_team__user_id__reset_password_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reset Team Member Password Api V1 Workspaces  Workspace Id  Agent Team  User Id  Reset Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/template-languages":{"get":{"tags":["agent-admin"],"summary":"Whatsapp Template Languages","operationId":"whatsapp_template_languages_api_v1_workspaces__workspace_id__agent_whatsapp_template_languages_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Template Languages Api V1 Workspaces  Workspace Id  Agent Whatsapp Template Languages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agent-admin"],"summary":"Set Whatsapp Template Languages","description":"Adding a language starts an AI translation of every message into it.","operationId":"set_whatsapp_template_languages_api_v1_workspaces__workspace_id__agent_whatsapp_template_languages_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateLanguagesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Whatsapp Template Languages Api V1 Workspaces  Workspace Id  Agent Whatsapp Template Languages Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/template-overview":{"get":{"tags":["agent-admin"],"summary":"Whatsapp Template Overview","operationId":"whatsapp_template_overview_api_v1_workspaces__workspace_id__agent_whatsapp_template_overview_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Template Overview Api V1 Workspaces  Workspace Id  Agent Whatsapp Template Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/template-variables":{"get":{"tags":["agent-admin"],"summary":"Whatsapp Template Variables","operationId":"whatsapp_template_variables_api_v1_workspaces__workspace_id__agent_whatsapp_template_variables_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Template Variables Api V1 Workspaces  Workspace Id  Agent Whatsapp Template Variables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/detail":{"get":{"tags":["agent-admin"],"summary":"Whatsapp Template Rows","description":"Every row with its full wording — header, footer, buttons, translation\nstate — which the mirror does not keep and the drawer needs.","operationId":"whatsapp_template_rows_api_v1_workspaces__workspace_id__agent_whatsapp_templates_detail_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Template Rows Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Detail Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/standard":{"get":{"tags":["agent-admin"],"summary":"Whatsapp Standard Templates","operationId":"whatsapp_standard_templates_api_v1_workspaces__workspace_id__agent_whatsapp_templates_standard_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Standard Templates Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Standard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-admin"],"summary":"Apply Whatsapp Standard Template","description":"Get-or-create the workspace's copy of a standard kind; the platform\nsends it to WhatsApp and translates it into the other kept languages.","operationId":"apply_whatsapp_standard_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates_standard_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateStandardIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Whatsapp Standard Template Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Standard Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/validate":{"post":{"tags":["agent-admin"],"summary":"Validate Whatsapp Template","operationId":"validate_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates_validate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWordingIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Validate Whatsapp Template Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/preview":{"post":{"tags":["agent-admin"],"summary":"Preview Whatsapp Template","operationId":"preview_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWordingIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Whatsapp Template Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/compose":{"post":{"tags":["agent-admin"],"summary":"Compose Whatsapp Template","description":"A new message with its full wording. Unlike ``POST /whatsapp/templates``\n(body only) this carries header, footer and buttons, and relays the\nplatform's refusal — a duplicate name, a rule WhatsApp would reject.","operationId":"compose_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates_compose_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateComposeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Compose Whatsapp Template Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Compose Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/{template_id}/wording":{"patch":{"tags":["agent-admin"],"summary":"Patch Whatsapp Template Wording","description":"Only the fields sent change; an explicit ``null`` clears a header or\nfooter, which is why this does not strip ``None`` the way compose does.","operationId":"patch_whatsapp_template_wording_api_v1_workspaces__workspace_id__agent_whatsapp_templates__template_id__wording_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWordingPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Whatsapp Template Wording Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates  Template Id  Wording Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/{template_id}/translations":{"post":{"tags":["agent-admin"],"summary":"Add Whatsapp Template Translation","operationId":"add_whatsapp_template_translation_api_v1_workspaces__workspace_id__agent_whatsapp_templates__template_id__translations_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateTranslationIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Whatsapp Template Translation Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates  Template Id  Translations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/{template_id}/ai-translations":{"post":{"tags":["agent-admin"],"summary":"Ai Translate Whatsapp Template","operationId":"ai_translate_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates__template_id__ai_translations_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateAITranslationIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Translate Whatsapp Template Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates  Template Id  Ai Translations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/{template_id}/retry-translation":{"post":{"tags":["agent-admin"],"summary":"Retry Whatsapp Template Translation","operationId":"retry_whatsapp_template_translation_api_v1_workspaces__workspace_id__agent_whatsapp_templates__template_id__retry_translation_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Whatsapp Template Translation Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates  Template Id  Retry Translation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/{template_id}/submit":{"post":{"tags":["agent-admin"],"summary":"Submit Whatsapp Template","description":"Send one language of a message to Meta for review, on whichever WABA\nthe workspace actually sends on. The platform refuses (409) a row already\nsubmitted or one its own moderation has not passed yet.","operationId":"submit_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates__template_id__submit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Whatsapp Template Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates  Template Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/topics/{name}/approve-translations":{"post":{"tags":["agent-admin"],"summary":"Approve Whatsapp Template Translations","description":"Approve every AI translation of one message; each goes to WhatsApp.","operationId":"approve_whatsapp_template_translations_api_v1_workspaces__workspace_id__agent_whatsapp_templates_topics__name__approve_translations_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Whatsapp Template Translations Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Topics  Name  Approve Translations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/agent/whatsapp/templates/topics/{name}/retranslate":{"post":{"tags":["agent-admin"],"summary":"Retranslate Whatsapp Template","description":"After the original changed: every other language comes back as a new\nAI draft to approve again.","operationId":"retranslate_whatsapp_template_api_v1_workspaces__workspace_id__agent_whatsapp_templates_topics__name__retranslate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retranslate Whatsapp Template Api V1 Workspaces  Workspace Id  Agent Whatsapp Templates Topics  Name  Retranslate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/agent":{"post":{"tags":["agent-webhooks"],"summary":"Agent Webhook","operationId":"agent_webhook_api_v1_webhooks_agent_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Agent Webhook Api V1 Webhooks Agent Post"}}}}}}},"/api/v1/admin/help/status":{"get":{"tags":["admin-help"],"summary":"Assistant Status","description":"The integration on one card: our env config, their client state, and\nthe retrieval index's shape.","operationId":"assistant_status_api_v1_admin_help_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpAssistantStatus"}}}}}}},"/api/v1/admin/help/assistant/pause":{"post":{"tags":["admin-help"],"summary":"Pause Assistant","description":"Pause the assistant fleet-wide: the panel falls back to search-only.\n\nProxied to the agent platform — the pause lives on THEIR client row, so it\nholds even for turns that never touch our API again.","operationId":"pause_assistant_api_v1_admin_help_assistant_pause_post","responses":{"204":{"description":"Successful Response"}}}},"/api/v1/admin/help/assistant/resume":{"post":{"tags":["admin-help"],"summary":"Resume Assistant","operationId":"resume_assistant_api_v1_admin_help_assistant_resume_post","responses":{"204":{"description":"Successful Response"}}}},"/api/v1/admin/help/articles":{"get":{"tags":["admin-help"],"summary":"List Articles","description":"The whole knowledge table — corpus and admin documents side by side.","operationId":"list_articles_api_v1_admin_help_articles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/HelpAdminArticleRow"},"type":"array","title":"Response List Articles Api V1 Admin Help Articles Get"}}}}}},"post":{"tags":["admin-help"],"summary":"Create Article","description":"Author an additional knowledge document.\n\nIndexed through the same pipeline as the git corpus, so the assistant's\n``help_search`` (and the panel) retrieves it the moment this commits.","operationId":"create_article_api_v1_admin_help_articles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpAdminArticleIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpAdminArticleDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/help/articles/{article_id}":{"get":{"tags":["admin-help"],"summary":"Get Article","operationId":"get_article_api_v1_admin_help_articles__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpAdminArticleDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-help"],"summary":"Update Article","operationId":"update_article_api_v1_admin_help_articles__article_id__put","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpAdminArticleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpAdminArticleDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-help"],"summary":"Delete Article","operationId":"delete_article_api_v1_admin_help_articles__article_id__delete","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/help/sync":{"post":{"tags":["admin-help"],"summary":"Sync Corpus","description":"Re-compile the git corpus on demand and return the report.\n\nRuns inline: the sync is hash-idempotent, so a routine run is a fast scan\nwith zero embeds; only genuinely changed articles pay the embedding cost.\nAdmin documents are untouched by design (deletion is path-scoped).","operationId":"sync_corpus_api_v1_admin_help_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpSyncReport"}}}}}}},"/api/v1/admin/help/feedback":{"get":{"tags":["admin-help"],"summary":"List Feedback","description":"Newest \"Was this helpful?\" submissions — the article rewrite queue.","operationId":"list_feedback_api_v1_admin_help_feedback_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HelpFeedbackRow"},"title":"Response List Feedback Api V1 Admin Help Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/help/searches/summary":{"get":{"tags":["admin-help"],"summary":"Search Summary","description":"Volume, miss rate, no-click rate and translation fallbacks.","operationId":"search_summary_api_v1_admin_help_searches_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpSearchSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/help/searches/deflection":{"get":{"tags":["admin-help"],"summary":"Search Deflection","description":"How often reading an article replaced opening a ticket.","operationId":"search_deflection_api_v1_admin_help_searches_deflection_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpDeflection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/help/searches":{"get":{"tags":["admin-help"],"summary":"List Searches","description":"Grouped queries for one working set.\n\n``miss`` = returned nothing, so the article does not exist. ``no_click`` =\nreturned results the reader did not open, so the article does not answer.\n``top`` = the busiest questions, which is what to document first.","operationId":"list_searches_api_v1_admin_help_searches_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"miss","title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HelpSearchGroupRow"},"title":"Response List Searches Api V1 Admin Help Searches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/search":{"get":{"tags":["help"],"summary":"Search","description":"Portal search. ``audience`` is honoured only for ADMIN sessions — the\nconsole's retrieval tester previews what a dealer or tuner would get; for\neveryone else the session role always wins, so the parameter can never\nwiden access (the same rule the agent connector enforces).\n\n``log=false`` is what the console's retrieval tester passes: staff probing\nthe index must not land in the content-gap numbers as reader demand.","operationId":"search_api_v1_help_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":500,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":1,"default":8,"title":"Limit"}},{"name":"audience","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","pattern":"^(portal|panel)$","default":"portal","title":"Source"}},{"name":"log","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Log"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/search/click":{"post":{"tags":["help"],"summary":"Search Click","description":"The reader opened a result. Fire-and-forget from the browser: an\nunknown or already-attributed search is a silent no-op, because the ping\nraces the navigation it reports and must never surface an error.","operationId":"search_click_api_v1_help_search_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpSearchClickIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/feedback":{"post":{"tags":["help"],"summary":"Feedback","description":"The portal's \"Was this helpful?\" — attributed to the signed-in user.","operationId":"feedback_api_v1_help_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpFeedbackIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpFeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/feedback/public":{"post":{"tags":["help"],"summary":"Feedback Public","description":"The public help centre's widget — anonymous, rate-limited per IP.\n\nThe honeypot acknowledges and drops: a bot that filled the hidden field\ngets the same 202-shaped success as a person, and nothing is stored.","operationId":"feedback_public_api_v1_help_feedback_public_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpFeedbackIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpFeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/chat/history":{"get":{"tags":["help"],"summary":"Chat History","description":"The reader's own help conversation, newest ``limit`` turns.\n\nTheir conversation is one continuous thread — the panel posts under a\nsession id that IS the user id, so upstream and the admin inbox both hold a\nsingle conversation per person. The panel's own transcript lives in\n`sessionStorage` and dies with the tab, so without this it opened blank on a\nnew tab while the conversation carried on underneath.\n\nScoped by the principal alone: there is no thread parameter, so a reader can\nonly ever fetch their own — the same rule the connector's tools follow.","operationId":"chat_history_api_v1_help_chat_history_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpChatHistoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/chat/turns":{"post":{"tags":["help"],"summary":"Chat Turn","operationId":"chat_turn_api_v1_help_chat_turns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpChatTurnIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpChatTurnOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/search":{"post":{"tags":["help-connector"],"summary":"Search","description":"``help_search`` — hybrid retrieval over the help corpus.\n\nThe audience filter is the principal's role for dealers and tuners — a\nmodel-supplied ``audience`` cannot widen what this session may read; only\nan admin session may choose one.","operationId":"search_api_v1_help_connector_search_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-principal-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Principal-Ref"}},{"name":"x-thread-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Thread-Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorSearchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/articles/{article_id}":{"get":{"tags":["help-connector"],"summary":"Get Article","description":"``help_get_article`` — the whole article when a passage isn't enough.\n\nAn unknown id answers 404 with the nearest valid slugs, so the model\nself-corrects on the next call instead of retrying blind.","operationId":"get_article_api_v1_help_connector_articles__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Locale"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-principal-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Principal-Ref"}},{"name":"x-thread-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Thread-Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpArticleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/ui-locate":{"post":{"tags":["help-connector"],"summary":"Ui Locate","description":"``ui_locate`` — where a thing lives in the interface.\n\nAnswers only from the closed guide registry, role-filtered, so the reply\ncan be trusted as a pointing target. Empty matches mean the interface has\nno registered surface for the question — say so, don't guess a route.","operationId":"ui_locate_api_v1_help_connector_ui_locate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-principal-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Principal-Ref"}},{"name":"x-thread-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Thread-Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UiLocateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UiLocateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/ui-hint":{"post":{"tags":["help-connector"],"summary":"Ui Hint","description":"``ui_hint`` — fire-and-forget pointing in the user's open portal tab.\n\nThe target is re-validated against the registry AND the session role here,\nnever trusted from the model; the browser applies it (navigate, or\nnavigate + spotlight) and silently drops directives it has already seen.\n202 always: whether a tab is open to receive it is unknowable here.","operationId":"ui_hint_api_v1_help_connector_ui_hint_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-principal-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Principal-Ref"}},{"name":"x-thread-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Thread-Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UiHintIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UiHintOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/account-context":{"post":{"tags":["help-connector"],"summary":"Account Context","description":"``account_context`` — the consolidated account read for the session.\n\nDeliberately takes no subject parameter: the caller is always the session\nprincipal recovered from the signed ref, so cross-tenant reads are\nstructurally impossible. ``include`` adds optional slices to the role's\ndefaults; ``not_included`` lists what was left out. Money arrives\npre-formatted in its own currency; credits are currency-less numbers.","operationId":"account_context_api_v1_help_connector_account_context_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-principal-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Principal-Ref"}},{"name":"x-thread-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Thread-Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountContextIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/escalate":{"post":{"tags":["help-connector"],"summary":"Escalate","description":"``escalate`` — hand the conversation to a human as a support ticket.\n\nOpened as the session user in their own organisation, seeded with the\nagent's summary; the ``ticket.opened`` outbox event notifies support the\nsame way a hand-written ticket would.","operationId":"escalate_api_v1_help_connector_escalate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"x-principal-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Principal-Ref"}},{"name":"x-thread-ref","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Thread-Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/sync/articles":{"get":{"tags":["help-connector"],"summary":"Sync Articles","description":"The mirrorable catalogue, metadata only — bootstrap AND change feed.\n\nTheir hourly run diffs this list on ``content_hash`` and deletes what is\nabsent, so the response must be the complete public set every time —\nsingle page (``next_cursor: null``), which their contract allows for a\ncorpus this size. Internal articles are never listed: the mirror has no\nvisibility concept, so anything listed here becomes retrievable to the\naudience it is labelled with.","operationId":"sync_articles_api_v1_help_connector_sync_articles_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncArticleList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/sync/articles/{article_id}":{"get":{"tags":["help-connector"],"summary":"Sync Article","description":"One article, whole — fetched only for hashes their mirror hasn't seen.\n\n``article_id`` follows their identity convention (bare slug for ``en``,\n``slug.{locale}`` for variants). An internal article answers the same 404\nas an unknown one — absent from the mirror's world entirely.","operationId":"sync_article_api_v1_help_connector_sync_articles__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncArticleFull"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/help/connector/sync/changes":{"get":{"tags":["help-connector"],"summary":"Sync Changes","description":"What changed in the mirrorable set — the journal, oldest first.\n\nComplements (never replaces) the stateless list diff: a consumer that\nwants to know WHETHER anything changed since its last run reads this with\n``since=<the last occurred_at it processed>`` instead of re-diffing the\ncatalogue. Entries are already in mirror terms — an article that went\ninternal reads as ``deleted``. Invalid ``since`` is a 422 on the standard\nenvelope.","operationId":"sync_changes_api_v1_help_connector_sync_changes_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncChangesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mcp-credentials/scopes":{"get":{"tags":["mcp-credentials"],"summary":"Scope Catalogue","description":"What the portal card needs to render: the scope vocabulary, this\nrole's default set and ready-made sets, where the server is, and whether\nthe caller may mint at all (team owner/admin, not impersonating).","operationId":"scope_catalogue_api_v1_mcp_credentials_scopes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Scope Catalogue Api V1 Mcp Credentials Scopes Get"}}}}}}},"/api/v1/mcp-credentials":{"get":{"tags":["mcp-credentials"],"summary":"List Credentials","operationId":"list_credentials_api_v1_mcp_credentials_get","parameters":[{"name":"all_organisations","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"All Organisations"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/McpCredentialRead"},"title":"Response List Credentials Api V1 Mcp Credentials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mcp-credentials"],"summary":"Mint Credential","operationId":"mint_credential_api_v1_mcp_credentials_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpCredentialCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpCredentialMinted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mcp-credentials/{credential_id}":{"delete":{"tags":["mcp-credentials"],"summary":"Revoke Credential","operationId":"revoke_credential_api_v1_mcp_credentials__credential_id__delete","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountContext":{"properties":{"role":{"type":"string","title":"Role"},"profile":{"$ref":"#/components/schemas/ProfileSlice"},"blockers":{"items":{"$ref":"#/components/schemas/Blocker"},"type":"array","title":"Blockers"},"balances":{"anyOf":[{"items":{"$ref":"#/components/schemas/WalletBalance"},"type":"array"},{"type":"null"}],"title":"Balances"},"active_reservations":{"anyOf":[{"items":{"$ref":"#/components/schemas/CreditReservation"},"type":"array"},{"type":"null"}],"title":"Active Reservations"},"accruing":{"anyOf":[{"items":{"$ref":"#/components/schemas/AccruingCharge"},"type":"array"},{"type":"null"}],"title":"Accruing"},"orders":{"anyOf":[{"$ref":"#/components/schemas/OrdersSlice"},{"type":"null"}]},"invoices":{"anyOf":[{"items":{"$ref":"#/components/schemas/InvoiceRow"},"type":"array"},{"type":"null"}],"title":"Invoices"},"tickets":{"anyOf":[{"items":{"$ref":"#/components/schemas/TicketRow"},"type":"array"},{"type":"null"}],"title":"Tickets"},"subscription":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionSlice"},{"type":"null"}]},"setup":{"anyOf":[{"$ref":"#/components/schemas/SetupSlice"},{"type":"null"}]},"storefront":{"anyOf":[{"$ref":"#/components/schemas/StorefrontSlice"},{"type":"null"}]},"payouts":{"anyOf":[{"$ref":"#/components/schemas/PayoutSlice"},{"type":"null"}]},"dealers":{"anyOf":[{"items":{"$ref":"#/components/schemas/DealerRow"},"type":"array"},{"type":"null"}],"title":"Dealers"},"not_included":{"items":{"type":"string"},"type":"array","title":"Not Included","default":[]}},"type":"object","required":["role","profile","blockers"],"title":"AccountContext"},"AccountContextIn":{"properties":{"include":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":12},{"type":"null"}],"title":"Include"}},"additionalProperties":false,"type":"object","title":"AccountContextIn","description":"``include`` narrows/extends the role's default briefing. Unknown values\nare ignored server-side so a stale tool schema degrades, never errors."},"AccountDeleteRequest":{"properties":{"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"confirm_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Email"}},"type":"object","title":"AccountDeleteRequest","description":"Self-service account-closure confirmation.\n\nPassword accounts re-enter their current ``password``; SSO accounts (no\npassword) instead type their ``confirm_email`` to confirm intent."},"AccountingConnectBody":{"properties":{"region":{"type":"string","title":"Region"},"backfill":{"type":"boolean","title":"Backfill","default":false}},"type":"object","required":["region"],"title":"AccountingConnectBody"},"AccountingStatus":{"properties":{"provider":{"type":"string","title":"Provider"},"enabled":{"type":"boolean","title":"Enabled"},"status":{"type":"string","title":"Status"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"division":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Division"},"configured":{"type":"boolean","title":"Configured"},"vat_mapped":{"type":"boolean","title":"Vat Mapped"},"backfill":{"type":"boolean","title":"Backfill"},"last_validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Validated At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["provider","enabled","status","configured","vat_mapped","backfill"],"title":"AccountingStatus"},"AccruingCharge":{"properties":{"supplier":{"type":"string","title":"Supplier"},"period":{"type":"string","title":"Period"},"orders":{"type":"integer","title":"Orders"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["supplier","period","orders","amount"],"title":"AccruingCharge"},"AccruingCycle":{"properties":{"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"supplier_name":{"type":"string","title":"Supplier Name"},"period":{"type":"string","title":"Period"},"order_count":{"type":"integer","title":"Order Count"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"closes_on":{"type":"string","format":"date","title":"Closes On"}},"type":"object","required":["tuner_workspace_id","supplier_name","period","order_count","amount_cents","currency","closes_on"],"title":"AccruingCycle","description":"A not-yet-invoiced on-account cycle forming with a supplier tuner — the\ncharges a dealer will owe once that tuner closes the month. Grouped from the\nopen ``workspace_usage_lines``, which no other read surfaces to the dealer."},"AcknowledgeUpdate":{"properties":{"acknowledged":{"type":"boolean","title":"Acknowledged","default":true}},"type":"object","title":"AcknowledgeUpdate","description":"Staff settling (or re-opening) a thread's awaiting-reply state.\n\nDeliberately not a status: resolving a thread says where it ended up, this\nsays only that nothing is owed right now. ``acknowledged=False`` is the undo."},"ActionCounts":{"properties":{"work_queue":{"type":"integer","title":"Work Queue","default":0},"quote_requests":{"type":"integer","title":"Quote Requests","default":0},"tickets":{"type":"integer","title":"Tickets","default":0},"messages":{"type":"integer","title":"Messages","default":0},"enquiries":{"type":"integer","title":"Enquiries","default":0},"whatsapp":{"type":"integer","title":"Whatsapp","default":0},"notifications":{"type":"integer","title":"Notifications","default":0},"site_briefs":{"type":"integer","title":"Site Briefs","default":0},"agent_attention":{"type":"integer","title":"Agent Attention","default":0},"channel_attention":{"type":"integer","title":"Channel Attention","default":0}},"type":"object","title":"ActionCounts","description":"Per-concern counts that drive the back-office nav action dots. Zero hides\nthe dot. Keys map 1:1 to the ``badgeKey`` a nav page carries in the frontend.\n\nTwo categories are covered: Operations (``work_queue`` / ``quote_requests`` /\n``tickets``) and Communication (``messages`` / ``enquiries`` / ``whatsapp``\n/ ``notifications``)."},"ActivateRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"ActivateRequest"},"ActivationResendRequest":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"ActivationResendRequest","description":"Ask for a fresh activation link (an expired one, or a lost email)."},"ActivityItem":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"organisation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Id"}},"type":"object","required":["id","type","created_at","organisation_id"],"title":"ActivityItem","description":"A recent outbox event for the activity feed."},"AdLeadIn":{"properties":{"source":{"type":"string","maxLength":64,"title":"Source","default":"manual"},"external_lead_id":{"type":"string","maxLength":200,"title":"External Lead Id","default":""},"first_name":{"type":"string","maxLength":80,"title":"First Name","default":""},"last_name":{"type":"string","maxLength":80,"title":"Last Name","default":""},"full_name":{"type":"string","maxLength":160,"title":"Full Name","default":""},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"phone":{"type":"string","maxLength":40,"title":"Phone","default":""},"campaign":{"type":"string","maxLength":200,"title":"Campaign","default":""},"campaign_id":{"type":"string","maxLength":100,"title":"Campaign Id","default":""},"ad_id":{"type":"string","maxLength":100,"title":"Ad Id","default":""},"form_id":{"type":"string","maxLength":100,"title":"Form Id","default":""},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"consent":{"additionalProperties":true,"type":"object","title":"Consent"},"raw":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":48,"title":"Raw"}},"type":"object","title":"AdLeadIn","description":"One lead as normalized from an ad platform's webhook (directly, or via a\nno-code connector like Zapier/Make that already resolved the platform's own\nAPI shape into this one — see ``docs/lead-webhook-setup.md``).\n\nDeliberately loose: an advertiser's form asks whatever it asks, and this\nendpoint's whole job is accepting that without a schema change per\ncampaign. ``raw`` carries everything the caller sent beyond the named\nfields, stored as free-text Q&A — never validated against a finder-field\ndefinition (unlike ``SiteFormSubmitIn.custom``), because none exists for a\nquestion an ad platform's form owner wrote."},"AddonAdminRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"},"active":{"type":"boolean","title":"Active"},"featured":{"type":"boolean","title":"Featured","default":false},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["id","code","name","category","price_credits","active"],"title":"AddonAdminRead","description":"A full add-on row for the admin registry (includes id + inactive ones).\n\n``price_cents`` is the base-currency (EUR) pin and\n``price_cents_by_currency`` holds the others (``{\"USD\": 6400}``); a currency\nabsent from the map is not pinned and derives from credits × its rate."},"AddonApplicability":{"properties":{"fuel":{"items":{"type":"string"},"type":"array","title":"Fuel"},"requires_hardware":{"items":{"type":"string"},"type":"array","title":"Requires Hardware"},"transmission":{"items":{"type":"string"},"type":"array","title":"Transmission"},"aspiration":{"items":{"type":"string"},"type":"array","title":"Aspiration"}},"type":"object","title":"AddonApplicability","description":"Attribute-match gating spec for an add-on (empty lists ⇒ universal).\n\n``fuel`` is the confident hard gate (``[\"diesel\"]`` / ``[\"petrol\"]``).\n``requires_hardware`` / ``transmission`` / ``aspiration`` are soft gates: a\nknown mismatch hides the option, but an unknown engine attribute degrades to\n``verify`` rather than hiding (we don't yet capture hardware presence)."},"AddonRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"},"active":{"type":"boolean","title":"Active"},"featured":{"type":"boolean","title":"Featured","default":false},"sort_order":{"type":"integer","title":"Sort Order","default":0},"applicability":{"$ref":"#/components/schemas/AddonApplicability"},"eligibility":{"anyOf":[{"type":"string","enum":["eligible","ineligible","verify"]},{"type":"null"}],"title":"Eligibility"},"source":{"type":"string","enum":["platform","workspace"],"title":"Source","default":"platform"}},"type":"object","required":["code","name","category","price_credits","active"],"title":"AddonRead","description":"One active priced add-on (order step 3).\n\n``applicability`` is the gating spec; ``eligibility`` is set only when the list\nwas resolved for a specific engine (None on the global/admin catalogue).\n``source`` marks a tuner's own service (``workspace``) vs the shared platform\ncatalogue; prices are the workspace-resolved amounts when the list was\nfetched with a workspace context, so the dealer sees what they will pay.\n\n``price_cents`` carries ONE amount, so ``currency`` names which price list it\ncame from — the buyer's, resolved the same way the quote resolves it. Without\nit a dollar amount would arrive under a field every reader assumed was euros."},"AddonWrite":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"category":{"type":"string","maxLength":32,"minLength":1,"title":"Category"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Price Credits"},"price_cents":{"type":"integer","minimum":0.0,"title":"Price Cents","default":0},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"},"active":{"type":"boolean","title":"Active","default":true},"featured":{"type":"boolean","title":"Featured","default":false},"sort_order":{"type":"integer","minimum":0.0,"title":"Sort Order","default":0}},"type":"object","required":["code","name","category","price_credits"],"title":"AddonWrite","description":"Create/update payload for an admin-managed add-on.\n\n``price_cents_by_currency`` replaces the pin map wholesale (like every other\nfield in this body), so a currency the admin clears stops being pinned there\nand its buyers go back to deriving from credits × that currency's rate."},"AddressHealth":{"properties":{"address":{"type":"string","title":"Address"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"status":{"type":"string","enum":["ok","no_mail","bouncing","suppressed","blocked","junk_suspected"],"title":"Status"},"suppression":{"anyOf":[{"$ref":"#/components/schemas/SuppressionInfo"},{"type":"null"}]},"last_delivered":{"anyOf":[{"$ref":"#/components/schemas/LastEmail"},{"type":"null"}]},"last_problem":{"anyOf":[{"$ref":"#/components/schemas/LastEmail"},{"type":"null"}]},"skipped":{"type":"integer","title":"Skipped"},"skipped_by_category":{"additionalProperties":{"type":"integer"},"type":"object","title":"Skipped By Category"},"unopened_streak":{"type":"integer","title":"Unopened Streak"}},"type":"object","required":["address","user_name","status","suppression","last_delivered","last_problem","skipped","skipped_by_category","unopened_streak"],"title":"AddressHealth","description":"One dealer address's email health."},"AdminDashboardSummary":{"properties":{"queue_depth":{"type":"integer","title":"Queue Depth"},"processing":{"type":"integer","title":"Processing"},"in_revision":{"type":"integer","title":"In Revision"},"escalations":{"type":"integer","title":"Escalations"},"avg_turnaround_seconds":{"type":"number","title":"Avg Turnaround Seconds"},"revenue_cents_today":{"type":"integer","title":"Revenue Cents Today"},"orders_today":{"type":"integer","title":"Orders Today"},"delivered_today":{"type":"integer","title":"Delivered Today"},"active_tuners":{"type":"integer","title":"Active Tuners"},"outstanding_payout_cents":{"type":"integer","title":"Outstanding Payout Cents"},"open_tickets":{"type":"integer","title":"Open Tickets"},"lookup_success_rate":{"type":"number","title":"Lookup Success Rate"}},"type":"object","required":["queue_depth","processing","in_revision","escalations","avg_turnaround_seconds","revenue_cents_today","orders_today","delivered_today","active_tuners","outstanding_payout_cents","open_tickets","lookup_success_rate"],"title":"AdminDashboardSummary","description":"Headline KPIs across orders, payments, payouts, tickets and lookups."},"AdminDealerRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"dealer_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Country"},"dealer_billing_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Billing Email"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuner Name"},"status":{"type":"string","enum":["invited","active","suspended","left"],"title":"Status"},"payment_mode":{"type":"string","enum":["per_file","credits","monthly_invoice"],"title":"Payment Mode"},"discount_bps":{"type":"integer","title":"Discount Bps","default":0},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"}},"type":"object","required":["id","dealer_org_id","tuner_workspace_id","status","payment_mode","joined_at"],"title":"AdminDealerRow","description":"One dealer↔tuner membership in the platform-wide operator dealer roster.\n\nA dealer org can belong to several tuners, so the platform view is one row per\nmembership (dealer × tuner) — the operator filters/rolls up by ``tuner_name``.\nIdentity fields fall back to null when the dealer org row is missing (the\nmembership's ``dealer_org_id`` has no FK)."},"AdminInviteRequest":{"properties":{"email":{"type":"string","title":"Email"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"role":{"type":"string","title":"Role","default":"dealer"}},"type":"object","required":["email","organisation_id"],"title":"AdminInviteRequest","description":"Admin invite into a chosen org with an explicit role."},"AdminInvoiceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"series":{"type":"string","title":"Series","default":""},"kind":{"type":"string","title":"Kind","default":"invoice"},"status":{"type":"string","title":"Status","default":"issued"},"total_cents":{"type":"integer","title":"Total Cents"},"currency":{"type":"string","title":"Currency"},"country":{"type":"string","title":"Country"},"buyer_name":{"type":"string","title":"Buyer Name","default":""},"issued_at":{"type":"string","format":"date-time","title":"Issued At"},"organisation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"}},"type":"object","required":["id","number","total_cents","currency","country","issued_at"],"title":"AdminInvoiceRead","description":"One invoice in the cross-org admin ledger. Invoices are immutable once\nissued, so ``status`` is always 'issued'; ``country`` comes from the buyer\nsnapshot captured at issue time. ``kind`` distinguishes the streams — the\n``platform_saas`` subscription invoices TheTuningGroup sends tuners, ``credit_note``\nreversals, and plain order/pool invoices — so the operator can isolate them."},"AdminKpis":{"properties":{"queue_depth":{"type":"integer","title":"Queue Depth"},"processing":{"type":"integer","title":"Processing"},"avg_turnaround_seconds":{"type":"number","title":"Avg Turnaround Seconds"},"escalations":{"type":"integer","title":"Escalations"},"revenue_cents_today":{"type":"integer","title":"Revenue Cents Today"}},"type":"object","required":["queue_depth","processing","avg_turnaround_seconds","escalations","revenue_cents_today"],"title":"AdminKpis","description":"Dashboard headline metrics."},"AdminLedgerEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"method":{"type":"string","enum":["adjustment","card_refund","order_refund","credit_pack_refund"],"title":"Method"},"credits":{"type":"number","title":"Credits","default":0.0},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"reason":{"type":"string","title":"Reason","default":""},"actor":{"type":"string","title":"Actor","default":""},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organisation_id","method","created_at"],"title":"AdminLedgerEntry","description":"One admin money/credit movement for the refunds & adjustments feed,\nprojected from the outbox audit events. ``method`` discriminates the source:\na manual credit adjustment, a card/iDEAL money refund, or an order's credit\nrefund. ``credits`` carries credit movements; ``amount_cents``/``currency``\ncarry money refunds."},"AdminOrderRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"vehicle_status":{"type":"string","enum":["catalogue","unlisted","unspecified"],"title":"Vehicle Status","default":"catalogue"},"selected_stage":{"type":"string","title":"Selected Stage"},"status":{"type":"string","title":"Status"},"routing":{"type":"string","title":"Routing"},"origin":{"type":"string","title":"Origin","default":"dealer"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"funding":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Funding"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"}},"type":"object","required":["id","organisation_id","selected_stage","status","routing","price_credits","created_at"],"title":"AdminOrderRow","description":"One row of the platform-wide order oversight list (every org, every\nstatus). Read-only — the admin drills into an order for actions."},"AdminOrgDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"country":{"type":"string","title":"Country"},"vat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"status":{"type":"string","title":"Status","default":"active"},"credit_balance":{"type":"number","title":"Credit Balance"},"billing_currency":{"type":"string","title":"Billing Currency","default":"EUR"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"tuner_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuner Status"},"protected":{"type":"boolean","title":"Protected","default":false}},"type":"object","required":["id","name","country","credit_balance","created_at"],"title":"AdminOrgDetail","description":"Full admin view of one organisation (profile + billing contact)."},"AdminOrgSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"country":{"type":"string","title":"Country"},"vat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"status":{"type":"string","title":"Status","default":"active"},"credit_balance":{"type":"number","title":"Credit Balance"},"billing_currency":{"type":"string","title":"Billing Currency","default":"EUR"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","country","credit_balance","created_at"],"title":"AdminOrgSummary","description":"One organisation in the cross-org admin directory."},"AdminOrgWorkspaceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["storefront","website_only"],"title":"Kind"},"rrr_enabled":{"type":"boolean","title":"Rrr Enabled"}},"type":"object","required":["id","display_name","kind","rrr_enabled"],"title":"AdminOrgWorkspaceRead","description":"One workspace an organisation owns, as the admin organisation page lists\nit — including a dealer's website-only workspace, which the storefront\noversight list leaves out."},"AdminQueueItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"vehicle_status":{"type":"string","enum":["catalogue","unlisted","unspecified"],"title":"Vehicle Status","default":"catalogue"},"tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"age_seconds":{"type":"integer","title":"Age Seconds"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"price_credits":{"type":"number","title":"Price Credits"},"origin":{"type":"string","title":"Origin","default":"dealer"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"funding":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Funding"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"source_type":{"anyOf":[{"type":"string","enum":["dealer","delegated","pool","quote"]},{"type":"null"}],"title":"Source Type"},"tune_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tune Label"},"assigned_to_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To Name"},"is_delegated":{"type":"boolean","title":"Is Delegated","default":false},"from_tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Tuner Name"},"rival_offer_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rival Offer Count"},"delegation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delegation Status"},"quote_status":{"anyOf":[{"type":"string","enum":["requested","quoted"]},{"type":"null"}],"title":"Quote Status"},"quote_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Quote Id"},"quote_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quote Amount Cents"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"dealer_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer Org Id"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"partner_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Partner Org Id"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"refund_request_open":{"type":"boolean","title":"Refund Request Open","default":false}},"type":"object","required":["id","status","age_seconds","price_credits"],"title":"AdminQueueItem","description":"One row of the cross-org admin work queue.\n\n``source_type`` is viewer-relative on the personal work queue (dealer =\na workspace order the viewer owns, delegated = a workspace order assigned to\nthem by another tuner, pool = a shared-pool order) and fixed on the claim\nboard (pool / delegated). ``tune_label`` is a readable label of the tune —\nthe stage when there is a real stage, else a summary of the selected options."},"AdminShopOrderRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reference":{"type":"string","title":"Reference"},"organisation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"},"status":{"type":"string","title":"Status"},"fulfilment_status":{"type":"string","title":"Fulfilment Status"},"currency":{"type":"string","title":"Currency"},"items_net_cents":{"type":"integer","title":"Items Net Cents"},"shipping_net_cents":{"type":"integer","title":"Shipping Net Cents"},"net_cents":{"type":"integer","title":"Net Cents"},"vat_cents":{"type":"integer","title":"Vat Cents"},"gross_cents":{"type":"integer","title":"Gross Cents"},"vat_rate_bps":{"type":"integer","title":"Vat Rate Bps"},"reverse_charge":{"type":"boolean","title":"Reverse Charge"},"tax_note_code":{"type":"string","title":"Tax Note Code"},"buyer":{"additionalProperties":true,"type":"object","title":"Buyer"},"shipping_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shipping Address"},"shipping_rate_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shipping Rate Snapshot"},"tracking_carrier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Carrier"},"tracking_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Code"},"shipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shipped At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"refunded_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refunded Cents"},"items":{"items":{"$ref":"#/components/schemas/ShopOrderItemRead"},"type":"array","title":"Items"},"sourced":{"type":"boolean","title":"Sourced","default":false},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["id","reference","status","fulfilment_status","currency","items_net_cents","shipping_net_cents","net_cents","vat_cents","gross_cents","vat_rate_bps","reverse_charge","tax_note_code","buyer","created_at"],"title":"AdminShopOrderRead","description":"A shop order in its owner's console: also whether it carries a part\nsourced by a parts search, and a thumbnail of the first sourced part (a path\non our own API). Never served to the buyer."},"AdminTicketDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"category":{"type":"string","title":"Category"},"subject":{"type":"string","title":"Subject"},"status":{"type":"string","title":"Status"},"urgency":{"type":"string","title":"Urgency"},"opened_by":{"type":"string","format":"uuid","title":"Opened By"},"assigned_to":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/TicketMessageRead"},"type":"array","title":"Messages"},"dealer":{"$ref":"#/components/schemas/TicketDealer"},"assignee":{"anyOf":[{"$ref":"#/components/schemas/TicketAssignee"},{"type":"null"}]},"order":{"anyOf":[{"$ref":"#/components/schemas/TicketOrderSummary"},{"type":"null"}]}},"type":"object","required":["id","organisation_id","order_id","category","subject","status","urgency","opened_by","assigned_to","resolved_at","last_activity_at","created_at","messages","dealer"],"title":"AdminTicketDetail","description":"Ticket detail enriched with dealer + linked-order context for support."},"AdminTunerEarningRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"tuner_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner User Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"currency":{"type":"string","title":"Currency"},"order_value_cents":{"type":"integer","title":"Order Value Cents"},"tuner_share_cents":{"type":"integer","title":"Tuner Share Cents"},"status":{"type":"string","title":"Status"},"payee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payee"},"hold_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hold Until"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"platform_margin_cents":{"type":"integer","title":"Platform Margin Cents"},"platform_cost_cents":{"type":"integer","title":"Platform Cost Cents"}},"type":"object","required":["id","order_id","tuner_user_id","organisation_id","currency","order_value_cents","tuner_share_cents","status","hold_until","created_at","platform_margin_cents","platform_cost_cents"],"title":"AdminTunerEarningRead","description":"Operator view of an earning: the tuner row PLUS the platform's split."},"AdminUserSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"},"tuner_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuner Status"},"team_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Role"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"}},"type":"object","required":["id","email","organisation_id","role","status"],"title":"AdminUserSummary","description":"One user in the cross-org admin directory."},"AdminUserUpdate":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"AdminUserUpdate","description":"Admin patch: change role and/or deactivate (status='deactivated')."},"AdminWorkspaceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"owner_user_id":{"type":"string","format":"uuid","title":"Owner User Id"},"owner_org_id":{"type":"string","format":"uuid","title":"Owner Org Id"},"display_name":{"type":"string","title":"Display Name"},"slug":{"type":"string","title":"Slug"},"status":{"type":"string","enum":["active","suspended","closed"],"title":"Status"},"kind":{"type":"string","enum":["storefront","website_only"],"title":"Kind","default":"storefront"},"stripe_onboarding_status":{"type":"string","title":"Stripe Onboarding Status"},"stripe_account_type":{"type":"string","enum":["standard","express","custom"],"title":"Stripe Account Type"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"trial_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Plan"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"live_ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Live Ready At"},"branding":{"additionalProperties":true,"type":"object","title":"Branding"},"availability_status":{"type":"string","enum":["available","away"],"title":"Availability Status","default":"available"},"away_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Away From"},"away_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Away Until"},"away_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Away Message"},"auto_route_schedule":{"additionalProperties":true,"type":"object","title":"Auto Route Schedule"},"payout_blocked":{"type":"boolean","title":"Payout Blocked","default":false},"payout_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Blocked Reason"},"single_credit_type":{"type":"boolean","title":"Single Credit Type","default":false},"require_valid_vat":{"type":"boolean","title":"Require Valid Vat","default":false},"order_vehicle_required":{"type":"boolean","title":"Order Vehicle Required","default":true},"charge_in_buyer_currency":{"type":"boolean","title":"Charge In Buyer Currency","default":false},"shop_enabled":{"type":"boolean","title":"Shop Enabled","default":true},"dual_price_catalogue":{"type":"boolean","title":"Dual Price Catalogue","default":false},"rrr_enabled":{"type":"boolean","title":"Rrr Enabled","default":false},"selling_suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Selling Suspended At"},"selling_suspended_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selling Suspended Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"stripe_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Account Id"},"saas_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Saas Subscription Id"},"payment_fee_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payment Fee Bps"},"payment_fee_fixed_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payment Fee Fixed Cents"}},"type":"object","required":["id","owner_user_id","owner_org_id","display_name","slug","status","stripe_onboarding_status","stripe_account_type","branding","created_at"],"title":"AdminWorkspaceRead","description":"Operator view of a workspace: WorkspaceRead PLUS the provider identifiers\nand the Model-B fee override that owner/dealer routes must never carry."},"AdminWorkspaceRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"owner_org_id":{"type":"string","format":"uuid","title":"Owner Org Id"},"owner_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Org Name"},"status":{"type":"string","enum":["active","suspended","closed"],"title":"Status"},"stripe_onboarding_status":{"type":"string","title":"Stripe Onboarding Status"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"availability_status":{"type":"string","enum":["available","away"],"title":"Availability Status"},"payout_blocked":{"type":"boolean","title":"Payout Blocked","default":false},"campaigns_enabled":{"type":"boolean","title":"Campaigns Enabled","default":false},"homepage_featured":{"type":"boolean","title":"Homepage Featured","default":false},"rrr_enabled":{"type":"boolean","title":"Rrr Enabled","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"subscription_current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Current Period End"},"has_subscription":{"type":"boolean","title":"Has Subscription","default":false},"discount_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Bps"},"discount_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discount Until"},"orders_used":{"type":"integer","title":"Orders Used","default":0},"orders_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Orders Limit"},"orders_is_over":{"type":"boolean","title":"Orders Is Over","default":false},"overage_count":{"type":"integer","title":"Overage Count","default":0},"overage_accrued_cents":{"type":"integer","title":"Overage Accrued Cents","default":0},"effective_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Plan"},"order_fee_count":{"type":"integer","title":"Order Fee Count","default":0},"order_fees_month_cents":{"additionalProperties":{"type":"integer"},"type":"object","title":"Order Fees Month Cents"},"order_fees_outstanding_cents":{"additionalProperties":{"type":"integer"},"type":"object","title":"Order Fees Outstanding Cents"}},"type":"object","required":["id","display_name","owner_org_id","status","stripe_onboarding_status","availability_status","created_at"],"title":"AdminWorkspaceRow","description":"One row of the platform-wide tuner-workspace oversight list (every org).\nRead-only — the admin drills into the owning org for actions."},"AgentConversationsUsage":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},"type":"object","required":["used","limit"],"title":"AgentConversationsUsage","description":"The monthly assistant-conversation meter row — present only when the\nworkspace has the agent AND a conversation limit resolves (the dealer\nladder; tuner pro+ is unlimited and shows no meter)."},"AgentLanguageIn":{"properties":{"formality":{"anyOf":[{"type":"string","enum":["formal","informal"]},{"type":"null"}],"title":"Formality"},"tone":{"anyOf":[{"type":"string","enum":["warm","professional","brisk","playful"]},{"type":"null"}],"title":"Tone"},"reply_language_policy":{"anyOf":[{"type":"string","enum":["default_first","match_customer","default_only"]},{"type":"null"}],"title":"Reply Language Policy"},"default_locale":{"anyOf":[{"type":"string","maxLength":8,"minLength":2},{"type":"null"}],"title":"Default Locale"}},"type":"object","title":"AgentLanguageIn","description":"Tone of voice — the agent platform's closed sets, mirrored as Literals\nso an invalid value is a 422 here rather than a silent no-op upstream.\nOmitted/None = no preference: upstream renders no style block at all."},"AgentSettingsIn":{"properties":{"facts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Facts"},"guardrails":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Guardrails"},"general_knowledge":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"General Knowledge"},"autonomy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Autonomy"},"autonomy_channels":{"anyOf":[{"additionalProperties":{"type":"string","enum":["suggest","auto"]},"propertyNames":{"enum":["email","whatsapp"]},"type":"object"},{"type":"null"}],"title":"Autonomy Channels"},"channels_enabled":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Channels Enabled"},"language":{"anyOf":[{"$ref":"#/components/schemas/AgentLanguageIn"},{"type":"null"}]},"jobs_shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Jobs Shared"}},"type":"object","title":"AgentSettingsIn"},"AgentSettingsOut":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"upstream_connected":{"type":"boolean","title":"Upstream Connected","default":false},"autonomy":{"type":"string","title":"Autonomy","default":"suggest"},"autonomy_channels":{"additionalProperties":{"type":"string"},"type":"object","title":"Autonomy Channels"},"language":{"additionalProperties":true,"type":"object","title":"Language"},"channels_enabled":{"additionalProperties":true,"type":"object","title":"Channels Enabled"},"facts":{"additionalProperties":true,"type":"object","title":"Facts"},"guardrails":{"additionalProperties":true,"type":"object","title":"Guardrails"},"general_knowledge":{"items":{"type":"string"},"type":"array","title":"General Knowledge"},"facts_synced_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facts Synced At"},"autonomy_pending":{"type":"boolean","title":"Autonomy Pending","default":false},"jobs_shared":{"type":"boolean","title":"Jobs Shared","default":false}},"type":"object","required":["enabled"],"title":"AgentSettingsOut"},"AgentTemplateOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"body":{"type":"string","title":"Body"},"language":{"type":"string","title":"Language"},"category":{"type":"string","title":"Category"},"variables":{"items":{"type":"string"},"type":"array","title":"Variables"},"status":{"type":"string","title":"Status"},"meta_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Template Id"},"submitted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted At"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"quality_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Score"},"paused_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paused Until"},"predates_compose_flow":{"type":"boolean","title":"Predates Compose Flow","default":false}},"type":"object","required":["id","name","label","body","language","category","variables","status"],"title":"AgentTemplateOut"},"AgentUsageRead":{"properties":{"connected":{"type":"boolean","title":"Connected"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"},"whatsapp_billable_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Whatsapp Billable Cents"},"ai_billable_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Billable Cents"},"billable_currency":{"type":"string","title":"Billable Currency","default":"EUR"},"ai_calls":{"type":"integer","title":"Ai Calls","default":0},"ai_input_tokens":{"type":"integer","title":"Ai Input Tokens","default":0},"ai_output_tokens":{"type":"integer","title":"Ai Output Tokens","default":0},"needs_review":{"type":"boolean","title":"Needs Review","default":false},"invoiced":{"type":"boolean","title":"Invoiced","default":false},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"}},"type":"object","required":["connected"],"title":"AgentUsageRead","description":"The tuner-facing usage card's one read: whether the workspace has an\nAI agent connected at all, and — once something has been pulled — its\nmost recent statement. ``connected=False`` is how the card hides itself\nentirely for a workspace with no hotel-agent client; ``connected=True``\nwith ``period=None`` is the honest \"nothing pulled yet\" empty state\nrather than a fabricated zero."},"AnswerRow":{"properties":{"label":{"type":"string","title":"Label"},"value":{"type":"string","title":"Value"}},"type":"object","required":["label","value"],"title":"AnswerRow","description":"One formatted ``label: value`` row — an answered custom question, as a\nquote document shows it. Already display-ready: a checked box reads\n``value=\"Yes\"``, never a raw boolean."},"ApprovalIn":{"properties":{"estimate_ref":{"type":"string","title":"Estimate Ref"},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["estimate_ref","amount","currency"],"title":"ApprovalIn"},"ApprovalOut":{"properties":{"external_ref":{"type":"string","title":"External Ref"},"estimate_ref":{"type":"string","title":"Estimate Ref"},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","const":"approved","title":"Status"}},"type":"object","required":["external_ref","estimate_ref","amount","currency","status"],"title":"ApprovalOut"},"AssignRequest":{"properties":{"tuner_user_id":{"type":"string","format":"uuid","title":"Tuner User Id"},"payout_cents":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Payout Cents"}},"type":"object","required":["tuner_user_id"],"title":"AssignRequest"},"AssistantContext":{"properties":{"kind":{"type":"string","const":"assistant","title":"Kind","default":"assistant"},"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"messages":{"items":{"$ref":"#/components/schemas/ThreadMessage"},"type":"array","title":"Messages"},"more_count":{"type":"integer","title":"More Count"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["thread_id","channel","messages","more_count","note"],"title":"AssistantContext","description":"How the assistant arranged the visit: the tail of the conversation."},"AttachmentDownloadRequest":{"properties":{"storage_key":{"type":"string","title":"Storage Key"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"type":"object","required":["storage_key"],"title":"AttachmentDownloadRequest"},"AttachmentMeta":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name","default":"Attachment"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"}},"type":"object","required":["key"],"title":"AttachmentMeta","description":"An attachment's storage key plus the metadata needed to display it.\n\nTolerates legacy rows where attachments were stored as bare key strings."},"AttachmentUrlRequest":{"properties":{"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"content_type":{"type":"string","title":"Content Type","default":"application/octet-stream"}},"type":"object","title":"AttachmentUrlRequest"},"AttachmentUrlResponse":{"properties":{"storage_key":{"type":"string","title":"Storage Key"},"upload_url":{"type":"string","title":"Upload Url"}},"type":"object","required":["storage_key","upload_url"],"title":"AttachmentUrlResponse"},"AttentionItem":{"properties":{"order":{"$ref":"#/components/schemas/ChannelOrderRead"},"reason":{"type":"string","enum":["no_valid_bids","unclaimed","not_started","no_tuner","tuner_not_eligible","margin_below_minimum","no_matching_rule","action_not_available"],"title":"Reason"},"flagged_at":{"type":"string","format":"date-time","title":"Flagged At"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["order","reason","flagged_at"],"title":"AttentionItem","description":"An order waiting on an admin. ``detail`` is a machine code that refines\nthe reason (e.g. the exclusion that made a tuner ineligible), or null."},"AttributionIn":{"properties":{"consent":{"type":"string","const":"granted","title":"Consent"},"first":{"anyOf":[{"$ref":"#/components/schemas/Touch"},{"type":"null"}]},"last":{"anyOf":[{"$ref":"#/components/schemas/Touch"},{"type":"null"}]},"ga_client_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ga Client Id"},"ga_session_id":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Ga Session Id"},"fbp":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Fbc"}},"type":"object","required":["consent"],"title":"AttributionIn","description":"Sent at signup and from the portal, only once the visitor consented —\n``consent`` is required to say so."},"AudienceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"name":{"type":"string","title":"Name"},"definition":{"additionalProperties":true,"type":"object","title":"Definition"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","definition","created_at"],"title":"AudienceRead","description":"A saved audience."},"AudienceWrite":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"definition":{"additionalProperties":true,"type":"object","title":"Definition"}},"type":"object","required":["name","definition"],"title":"AudienceWrite","description":"Create/update body for a saved audience.\n\n``definition`` is a segment descriptor of kind ``all_active`` or\n``filtered`` — validated at save time (``audience`` kind is rejected:\naudiences cannot nest audiences)."},"AuditEventRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"actor_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor User Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"impersonator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Impersonator Id"},"imp_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imp Mode"},"action":{"type":"string","title":"Action"},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"},"target_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id"},"target_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Org Id"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"payload":{"additionalProperties":true,"type":"object","title":"Payload","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","action","created_at"],"title":"AuditEventRead","description":"One actor-attributed audit row. ``actor_name``/``actor_email`` are resolved\nfrom the acting user (null when the user was since deleted — the id remains).\n``impersonator_id`` is set only when the action ran through an impersonation\nsession."},"AuditPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditEventRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["items","total","limit","offset","actions"],"title":"AuditPage","description":"A page of the audit log plus the total match count (pager) and the distinct\naction verbs present (filter dropdown)."},"AupStatus":{"properties":{"version":{"type":"string","title":"Version"},"accepted_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted Version"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["version","required"],"title":"AupStatus","description":"What the client needs to decide whether to ask for acceptance."},"AutoRouteSchedule":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"timezone":{"type":"string","title":"Timezone","default":"Europe/Amsterdam"},"weekly":{"additionalProperties":{"items":{"items":{"type":"string"},"type":"array"},"type":"array"},"type":"object","title":"Weekly"},"exceptions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Exceptions"}},"type":"object","title":"AutoRouteSchedule","description":"When new orders go to fallback partners, every week.\n\nThe opening-hours shape on purpose — ``weekly`` maps \"0\" (Mon) .. \"6\" (Sun)\nto [\"HH:MM\",\"HH:MM\"] pairs, a pair whose end is at or before its start runs\novernight, ``[\"00:00\",\"00:00\"]`` is a whole day — so the one evaluator that\nalready handles DST and overnight windows evaluates this too. ``exceptions``\nare single dates: ``closed=True`` means no routing that day, otherwise the\ngiven open/close pair routes instead of the weekly pattern."},"BackfillBody":{"properties":{"backfill":{"type":"boolean","title":"Backfill"}},"type":"object","required":["backfill"],"title":"BackfillBody"},"Blocker":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"fix":{"type":"string","title":"Fix"}},"type":"object","required":["code","message","fix"],"title":"Blocker","description":"One thing stopping this account from working, with its fix. Derived\nserver-side so 'why can't I…' is answered by the platform, not the model."},"BlogAuthorRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"same_as":{"items":{"type":"string"},"type":"array","title":"Same As"}},"type":"object","required":["id","slug","name","same_as"],"title":"BlogAuthorRead"},"BlogAuthorSave":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},{"type":"null"}],"title":"Slug"},"role":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Role"},"bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Bio"},"avatar_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Avatar Url"},"same_as":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Same As"}},"type":"object","required":["name"],"title":"BlogAuthorSave"},"BlogBlockEdit":{"properties":{"ops":{"items":{"$ref":"#/components/schemas/BlogBlockOp"},"type":"array","maxItems":50,"minItems":1,"title":"Ops"}},"type":"object","required":["ops"],"title":"BlogBlockEdit"},"BlogBlockOp":{"properties":{"op":{"type":"string","enum":["insert","replace","update","move","remove"],"title":"Op"},"id":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Id"},"block":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Block"},"props":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Props"},"after":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"After"},"position":{"anyOf":[{"type":"string","enum":["start","end"]},{"type":"null"}],"title":"Position"}},"type":"object","required":["op"],"title":"BlogBlockOp","description":"One edit to a post's blocks, naming blocks by id (from the outline).\n\ninsert: ``block``, placed ``after`` a block id or at ``position`` start/end\nof the article (default end). replace: ``id`` + ``block``. update: ``id`` +\nthe ``props`` to change. move: ``id`` + ``after``/``position``. remove: ``id``."},"BlogCategoryRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"translations":{"additionalProperties":true,"type":"object","title":"Translations"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","slug","name","translations","position"],"title":"BlogCategoryRead"},"BlogCategorySave":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},{"type":"null"}],"title":"Slug"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"translations":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"propertyNames":{"enum":["en","nl","de","fr"]},"type":"object","title":"Translations"},"position":{"type":"integer","title":"Position","default":0}},"type":"object","required":["name"],"title":"BlogCategorySave"},"BlogOutlineBlock":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"preview":{"type":"string","title":"Preview"}},"type":"object","required":["id","type","preview"],"title":"BlogOutlineBlock"},"BlogPostCreate":{"properties":{"locale":{"type":"string","enum":["en","nl","de","fr"],"title":"Locale"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"slug":{"anyOf":[{"type":"string","maxLength":120,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},{"type":"null"}],"title":"Slug"},"template":{"anyOf":[{"type":"string","enum":["workshop_journal","case_study","news"]},{"type":"null"}],"title":"Template"},"body_blocks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Body Blocks"}},"type":"object","required":["locale","title"],"title":"BlogPostCreate"},"BlogPostList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BlogPostSummary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"BlogPostList"},"BlogPostOutline":{"properties":{"post_id":{"type":"string","format":"uuid","title":"Post Id"},"status":{"type":"string","enum":["draft","scheduled","published","archived"],"title":"Status"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"locale":{"type":"string","enum":["en","nl","de","fr"],"title":"Locale"},"locales":{"items":{"type":"string","enum":["en","nl","de","fr"]},"type":"array","title":"Locales"},"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"has_changes":{"type":"boolean","title":"Has Changes","default":false},"blocks":{"items":{"$ref":"#/components/schemas/BlogOutlineBlock"},"type":"array","title":"Blocks"}},"type":"object","required":["post_id","status","locale","locales","title","slug","blocks"],"title":"BlogPostOutline","description":"One language of a post as one short line per block."},"BlogPostRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["draft","scheduled","published","archived"],"title":"Status"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"show_author":{"type":"boolean","title":"Show Author"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"cover_alt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Alt"},"featured":{"type":"boolean","title":"Featured"},"template":{"type":"string","enum":["workshop_journal","case_study","news"],"title":"Template"},"tag_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Tag Ids"},"versions":{"items":{"$ref":"#/components/schemas/BlogPostVersionRead"},"type":"array","title":"Versions"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"has_changes":{"type":"boolean","title":"Has Changes","default":false}},"type":"object","required":["id","status","show_author","featured","template","created_at","updated_at"],"title":"BlogPostRead"},"BlogPostSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["draft","scheduled","published","archived"],"title":"Status"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"locales":{"items":{"type":"string","enum":["en","nl","de","fr"]},"type":"array","title":"Locales"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"featured":{"type":"boolean","title":"Featured"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"has_changes":{"type":"boolean","title":"Has Changes","default":false}},"type":"object","required":["id","status","title","slug","locales","featured","updated_at"],"title":"BlogPostSummary","description":"One row of the editor's post list."},"BlogPostUpdate":{"properties":{"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"show_author":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Author"},"cover_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Cover Url"},"cover_alt":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Cover Alt"},"featured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Featured"},"template":{"anyOf":[{"type":"string","enum":["workshop_journal","case_study","news"]},{"type":"null"}],"title":"Template"},"tag_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Tag Ids"}},"type":"object","title":"BlogPostUpdate","description":"Post-level fields. Only the fields present in the request are written."},"BlogPostVersionRead":{"properties":{"locale":{"type":"string","enum":["en","nl","de","fr"],"title":"Locale"},"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"body_blocks":{"additionalProperties":true,"type":"object","title":"Body Blocks"},"reading_minutes":{"type":"integer","title":"Reading Minutes"},"seo_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Title"},"seo_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Description"},"og_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Og Image Url"},"social_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Social Title"},"social_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Social Description"},"noindex":{"type":"boolean","title":"Noindex","default":false},"canonical_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Url"},"focus_keyword":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus Keyword"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"live":{"type":"boolean","title":"Live","default":true},"changed":{"type":"boolean","title":"Changed","default":false}},"type":"object","required":["locale","title","slug","body_blocks","reading_minutes","updated_at"],"title":"BlogPostVersionRead"},"BlogPreview":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"status":{"type":"string","enum":["draft","scheduled","published","archived"],"title":"Status"},"has_changes":{"type":"boolean","title":"Has Changes"},"post":{"$ref":"#/components/schemas/PublicBlogPost"},"page":{"anyOf":[{"$ref":"#/components/schemas/PublicPage"},{"type":"null"}]}},"type":"object","required":["workspace_id","status","has_changes","post"],"title":"BlogPreview","description":"An article as it will be once published, for the editor's preview and\nfor shared preview links."},"BlogPreviewLink":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["url","expires_at"],"title":"BlogPreviewLink","description":"A link anyone can open to see the article as it will be, until it expires."},"BlogPublish":{"properties":{"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"type":"object","title":"BlogPublish","description":"Publish now (no date, or a date in the past) or schedule (future date).\nOn a live article this also publishes its pending changes."},"BlogSettingsRead":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"template":{"type":"string","enum":["workshop_journal","case_study","news"],"title":"Template"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"intro":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro"},"index_blocks":{"additionalProperties":true,"type":"object","title":"Index Blocks"},"category_blocks":{"additionalProperties":true,"type":"object","title":"Category Blocks"},"post_blocks":{"additionalProperties":true,"type":"object","title":"Post Blocks"},"posts_per_page":{"type":"integer","title":"Posts Per Page"},"show_in_menu":{"type":"boolean","title":"Show In Menu"}},"type":"object","required":["workspace_id","template","index_blocks","category_blocks","post_blocks","posts_per_page","show_in_menu"],"title":"BlogSettingsRead"},"BlogSettingsSave":{"properties":{"template":{"type":"string","enum":["workshop_journal","case_study","news"],"title":"Template"},"title":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Title"},"intro":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Intro"},"index_blocks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Index Blocks"},"category_blocks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Category Blocks"},"post_blocks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Post Blocks"},"posts_per_page":{"type":"integer","maximum":48.0,"minimum":3.0,"title":"Posts Per Page","default":12},"show_in_menu":{"type":"boolean","title":"Show In Menu","default":true}},"type":"object","required":["template"],"title":"BlogSettingsSave"},"BlogTagRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","slug","name"],"title":"BlogTagRead"},"BlogTagSave":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name"],"title":"BlogTagSave"},"BlogTaxonomy":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/BlogTerm"},"type":"array","title":"Categories"},"tags":{"items":{"$ref":"#/components/schemas/BlogTerm"},"type":"array","title":"Tags"},"authors":{"items":{"$ref":"#/components/schemas/BlogTerm"},"type":"array","title":"Authors"}},"type":"object","required":["categories","tags","authors"],"title":"BlogTaxonomy","description":"The blog's categories, tags and authors, names and slugs only."},"BlogTerm":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"}},"type":"object","required":["id","name","slug"],"title":"BlogTerm"},"BlogVersionSave":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"slug":{"type":"string","maxLength":120,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","title":"Slug"},"excerpt":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Excerpt"},"body_blocks":{"additionalProperties":true,"type":"object","title":"Body Blocks"},"seo_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Seo Title"},"seo_description":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Seo Description"},"og_image_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Og Image Url"},"social_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Social Title"},"social_description":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Social Description"},"noindex":{"type":"boolean","title":"Noindex","default":false},"canonical_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Canonical Url"},"focus_keyword":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Focus Keyword"}},"type":"object","required":["title","slug"],"title":"BlogVersionSave"},"Body_apply_import_api_v1_admin_shop_parts_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"deactivate_missing":{"type":"boolean","title":"Deactivate Missing","default":false}},"type":"object","required":["file"],"title":"Body_apply_import_api_v1_admin_shop_parts_import_post"},"Body_preview_import_api_v1_admin_shop_parts_import_preview_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_preview_import_api_v1_admin_shop_parts_import_preview_post"},"Body_upload_knowledge_api_v1_workspaces__workspace_id__agent_knowledge_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_knowledge_api_v1_workspaces__workspace_id__agent_knowledge_post"},"Body_upload_original_api_v1_file_services_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_original_api_v1_file_services_upload_post"},"BookIn":{"properties":{"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","title":"BookIn"},"BookOut":{"properties":{"slot_ref":{"type":"string","title":"Slot Ref"},"booking_ref":{"type":"string","title":"Booking Ref"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"starts_at":{"type":"string","title":"Starts At"},"status":{"type":"string","enum":["booked","pending"],"title":"Status"}},"type":"object","required":["slot_ref","booking_ref","starts_at","status"],"title":"BookOut","description":"``pending`` is not a failure: an event type that does not auto-confirm\nholds the slot and waits for the tuner, and telling the customer \"booked\"\nwould promise a confirmation nobody has given yet."},"BookRequest":{"properties":{"hold_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Hold Id"},"session_token":{"anyOf":[{"type":"string","maxLength":64,"minLength":16},{"type":"null"}],"title":"Session Token"},"event_type":{"type":"string","maxLength":64,"title":"Event Type","default":"product-demo"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Phone"},"website":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Website"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"locale":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Locale"},"external_ref":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"External Ref"},"message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Message"},"intake":{"items":{"$ref":"#/components/schemas/IntakeAnswerIn"},"type":"array","maxItems":12,"title":"Intake"},"marketing_opt_in":{"type":"boolean","title":"Marketing Opt In","default":false}},"type":"object","title":"BookRequest","description":"Make the booking, either by confirming a hold or by naming a time.\n\nExactly one of ``hold_id`` (with its ``session_token``) or ``starts_at`` —\na request carrying both could book a time other than the one it names, which\nis the shape that silently sends people to the wrong appointment."},"BookingCapacityInput":{"properties":{"mode":{"type":"string","enum":["per_time","per_day"],"title":"Mode","default":"per_time"},"cars_at_once":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Cars At Once","default":1},"work_minutes_per_day":{"anyOf":[{"type":"integer","maximum":10080.0,"minimum":15.0},{"type":"null"}],"title":"Work Minutes Per Day"}},"additionalProperties":false,"type":"object","title":"BookingCapacityInput","description":"How many drop-offs the workshop takes — see ``BookingCapacity``."},"BookingCapacityRead":{"properties":{"mode":{"type":"string","enum":["per_time","per_day"],"title":"Mode","default":"per_time"},"cars_at_once":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Cars At Once","default":1},"work_minutes_per_day":{"anyOf":[{"type":"integer","maximum":10080.0,"minimum":15.0},{"type":"null"}],"title":"Work Minutes Per Day"}},"additionalProperties":false,"type":"object","title":"BookingCapacityRead"},"BookingConfirmation":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"event_type":{"type":"string","title":"Event Type"},"name":{"type":"string","title":"Name"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"timezone":{"type":"string","title":"Timezone"},"location":{"$ref":"#/components/schemas/BookingLocation"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"lead_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Phone"},"booking_mode":{"type":"string","title":"Booking Mode","default":"appointment"},"work_estimate_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Estimate Minutes"},"manage_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manage Token"}},"type":"object","required":["id","status","event_type","name","starts_at","timezone","location"],"title":"BookingConfirmation","description":"The booking just made, plus the manage token when the caller earned it.\n\n``manage_token`` is present ONLY when this request confirmed a hold whose\n``session_token`` it proved — see :func:`book_slot`. On a direct booking it\nis null and the \"change or cancel\" link arrives by email instead."},"BookingDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["pending","booked","cancelled","completed","no_show"],"title":"Status"},"created_by":{"type":"string","enum":["visitor","agent","owner"],"title":"Created By"},"event_type":{"type":"string","title":"Event Type"},"event_type_id":{"type":"string","format":"uuid","title":"Event Type Id"},"name":{"type":"string","title":"Name"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"reserved_starts_at":{"type":"string","format":"date-time","title":"Reserved Starts At"},"reserved_ends_at":{"type":"string","format":"date-time","title":"Reserved Ends At"},"timezone":{"type":"string","title":"Timezone"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"is_drop_off":{"type":"boolean","title":"Is Drop Off","default":false},"location":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Location"},"host":{"anyOf":[{"$ref":"#/components/schemas/CalendarHost"},{"type":"null"}]},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"lead_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Phone"},"lead_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Website"},"lead_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Timezone"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"cancelled_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled By"},"cancellation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancellation Reason"},"is_internal":{"type":"boolean","title":"Is Internal"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"origin":{"type":"string","enum":["quote","assistant","website","manual","internal"],"title":"Origin"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"intake":{"items":{"$ref":"#/components/schemas/IntakeAnswer"},"type":"array","title":"Intake"},"enquiry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Enquiry Id"},"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"context":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/QuoteContext"},{"$ref":"#/components/schemas/AssistantContext"},{"$ref":"#/components/schemas/ManualContext"},{"$ref":"#/components/schemas/WebsiteContext"}],"discriminator":{"propertyName":"kind","mapping":{"assistant":"#/components/schemas/AssistantContext","manual":"#/components/schemas/ManualContext","quote":"#/components/schemas/QuoteContext","website":"#/components/schemas/WebsiteContext"}}},{"type":"null"}],"title":"Context"}},"type":"object","required":["id","status","created_by","event_type","event_type_id","name","starts_at","ends_at","reserved_starts_at","reserved_ends_at","timezone","duration_minutes","location","host","lead_name","lead_email","lead_phone","lead_website","lead_timezone","locale","external_ref","cancelled_at","cancelled_by","cancellation_reason","is_internal","created_at","origin","notes","intake","enquiry_id","thread_id","order_id"],"title":"BookingDetail","description":"The sheet's view: the row plus the reason for the visit."},"BookingInput":{"properties":{"event_type":{"type":"string","maxLength":64,"minLength":1,"title":"Event Type"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"host_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Host Id"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"phone":{"type":"string","maxLength":32,"title":"Phone","default":""},"external_ref":{"type":"string","maxLength":32,"title":"External Ref","default":""},"location_value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Location Value"},"duration_minutes":{"anyOf":[{"type":"integer","maximum":1440.0,"minimum":5.0},{"type":"null"}],"title":"Duration Minutes"},"is_internal":{"type":"boolean","title":"Is Internal","default":false},"notes":{"type":"string","maxLength":4000,"title":"Notes","default":""},"intake":{"anyOf":[{"items":{"$ref":"#/components/schemas/IntakeAnswerIn"},"type":"array","maxItems":12},{"type":"null"}],"title":"Intake"}},"additionalProperties":false,"type":"object","required":["event_type","starts_at","name"],"title":"BookingInput","description":"An owner's new appointment, or an edit of an existing appointment."},"BookingLocation":{"properties":{"kind":{"type":"string","title":"Kind"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["kind"],"title":"BookingLocation","description":"Where the appointment happens. ``value`` is the room URL, number or address."},"BookingOut":{"properties":{"booking_ref":{"type":"string","title":"Booking Ref"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"event_type":{"type":"string","title":"Event Type"},"starts_at":{"type":"string","title":"Starts At"},"status":{"type":"string","enum":["pending","booked","cancelled","completed","no_show"],"title":"Status"}},"type":"object","required":["booking_ref","event_type","starts_at","status"],"title":"BookingOut","description":"One appointment already on the calendar — what the lookup tool and the\nreschedule/cancel tools echo back."},"BookingRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"event_type":{"type":"string","title":"Event Type"},"name":{"type":"string","title":"Name"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"timezone":{"type":"string","title":"Timezone"},"location":{"$ref":"#/components/schemas/BookingLocation"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"lead_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Phone"},"booking_mode":{"type":"string","title":"Booking Mode","default":"appointment"},"work_estimate_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Estimate Minutes"}},"type":"object","required":["id","status","event_type","name","starts_at","timezone","location"],"title":"BookingRead","description":"A booking as its holder sees it. Carries no credential of any kind."},"BookingsOut":{"properties":{"bookings":{"items":{"$ref":"#/components/schemas/BookingOut"},"type":"array","title":"Bookings"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["bookings","total"],"title":"BookingsOut"},"BrandOptionsRead":{"properties":{"brands":{"items":{"type":"string"},"type":"array","title":"Brands"}},"type":"object","required":["brands"],"title":"BrandOptionsRead","description":"Distinct vehicle makes across the scope's orders (the brand picker)."},"BrandingAssetConfirm":{"properties":{"asset":{"type":"string","enum":["logo","icon"],"title":"Asset"},"key":{"type":"string","title":"Key"}},"type":"object","required":["asset","key"],"title":"BrandingAssetConfirm","description":"Confirm a finished upload; the server validates it and stores its URL."},"BrandingAssetUploadRequest":{"properties":{"asset":{"type":"string","enum":["logo","icon"],"title":"Asset"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["asset","content_type"],"title":"BrandingAssetUploadRequest","description":"Ask for a presigned PUT to upload a branding logo/icon."},"BrandingAssetUploadResult":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"key":{"type":"string","title":"Key"}},"type":"object","required":["upload_url","key"],"title":"BrandingAssetUploadResult","description":"A presigned PUT URL + the storage key to echo back on confirm."},"BrandingChannels":{"properties":{"whatsapp_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Sender"},"sms_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Sender"}},"type":"object","title":"BrandingChannels"},"BrandingEmail":{"properties":{"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"sending_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sending Domain"},"dkim_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dkim Selector"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"}},"type":"object","title":"BrandingEmail"},"BrandingIdentity":{"properties":{"legal_company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Company Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"registration_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Number"},"legal_identity":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Legal Identity"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"},"support_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Phone"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"socials":{"anyOf":[{"$ref":"#/components/schemas/BrandingSocials"},{"type":"null"}]}},"type":"object","title":"BrandingIdentity"},"BrandingInvoice":{"properties":{"footer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"payment_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Instructions"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memo"},"iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban"},"bic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bic"}},"type":"object","title":"BrandingInvoice","description":"What the seller prints on the invoices they send.\n\n``iban``/``bic`` are the bank details the PDF's Payment block renders. They\nwere already read by the seller-snapshot resolvers and drawn by the renderer,\nbut were missing from this model — so they survived nowhere: a tuner could\nnot set them at all, and the platform profile dropped them on every read-back."},"BrandingSite":{"properties":{"published":{"type":"boolean","title":"Published","default":false},"pages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Pages","default":[]},"footer":{"additionalProperties":true,"type":"object","title":"Footer","default":{}},"theme":{"additionalProperties":true,"type":"object","title":"Theme","default":{}},"analytics":{"$ref":"#/components/schemas/SiteAnalytics"},"code_injection":{"$ref":"#/components/schemas/SiteCodeInjection"},"consent":{"$ref":"#/components/schemas/SiteConsent"}},"type":"object","title":"BrandingSite","description":"The tuner's public multi-page website builder document + publish state.\n\n``pages`` is the ordered list of page documents (each ``{slug, title, blocks,\nseo}`` where ``blocks`` is the Puck editor's JSON document); ``footer`` carries\nthe site-wide footer (tagline/address/contact/links). ``published`` gates\nwhether the public renderer serves any page. Page/footer contents are opaque\nJSON — kept permissive. Stored under ``branding.site``."},"BrandingSocials":{"properties":{"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin"},"instagram":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram"},"x":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X"},"facebook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facebook"},"youtube":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube"},"tiktok":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok"},"whatsapp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp"}},"type":"object","title":"BrandingSocials","description":"Public social-profile URLs, surfaced as the microsite footer icon row.\n\nEvery field optional — only the platforms with a URL render. Edited in the\nworkspace Profile section; flows to the public site via ``company.socials``."},"BrandingUpdate":{"properties":{"identity":{"anyOf":[{"$ref":"#/components/schemas/BrandingIdentity"},{"type":"null"}]},"visual":{"anyOf":[{"$ref":"#/components/schemas/BrandingVisual"},{"type":"null"}]},"email":{"anyOf":[{"$ref":"#/components/schemas/BrandingEmail"},{"type":"null"}]},"invoice":{"anyOf":[{"$ref":"#/components/schemas/BrandingInvoice"},{"type":"null"}]},"channels":{"anyOf":[{"$ref":"#/components/schemas/BrandingChannels"},{"type":"null"}]},"site":{"anyOf":[{"$ref":"#/components/schemas/BrandingSite"},{"type":"null"}]},"winols":{"anyOf":[{"$ref":"#/components/schemas/BrandingWinols"},{"type":"null"}]}},"type":"object","title":"BrandingUpdate","description":"PATCH branding. Every sub-object is optional and each field within it is\noptional — supplied fields deep-merge into the stored JSONB, untouched\nsub-objects are left intact."},"BrandingVisual":{"properties":{"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Color"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon"}},"type":"object","title":"BrandingVisual"},"BrandingWinols":{"properties":{"heading":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Heading"},"intro":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Intro"}},"type":"object","title":"BrandingWinols","description":"Tuner-authored copy for the public WinOLS buy page.\n\nThe page itself is generated from the packs and the connection — there is\nnothing to lay out — but the two lines above the form are the tuner's pitch\nto a buyer arriving cold from evc.de, so they are theirs to write. Both fall\nback to the default copy when unset."},"BriefDecision":{"properties":{"accepted":{"type":"boolean","title":"Accepted"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"}},"type":"object","required":["accepted"],"title":"BriefDecision","description":"The customer's verdict. ``feedback`` is required to request changes —\na rejection without a reason teaches us nothing."},"BriefDeliver":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"pages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Pages"}},"type":"object","required":["workspace_id","pages"],"title":"BriefDeliver","description":"Push a built site into the customer's workspace as a DRAFT.\n\n``pages`` is a Puck pages document — the same shape the website builder saves.\n``workspace_id`` names where it goes; the operator picks it explicitly because\na customer may own more than one site."},"BriefNotes":{"properties":{"operator_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator Notes"}},"type":"object","title":"BriefNotes"},"BriefPhoto":{"properties":{"url":{"type":"string","title":"Url"},"caption":{"type":"string","title":"Caption","default":""}},"type":"object","required":["url"],"title":"BriefPhoto","description":"One uploaded photo. ``url`` comes back from the site-media upload pair, so\nit is already a durable public URL under the workspace prefix."},"BriefPhotoConfirm":{"properties":{"storage_key":{"type":"string","title":"Storage Key"}},"type":"object","required":["storage_key"],"title":"BriefPhotoConfirm"},"BriefPhotoResult":{"properties":{"public_url":{"type":"string","title":"Public Url"}},"type":"object","required":["public_url"],"title":"BriefPhotoResult","description":"The durable public URL of a confirmed photo."},"BriefPhotoUpload":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"storage_key":{"type":"string","title":"Storage Key"}},"type":"object","required":["upload_url","storage_key"],"title":"BriefPhotoUpload","description":"Presigned PUT for a brief photo, plus the key to confirm it with."},"BriefPhotoUploadRequest":{"properties":{"content_type":{"type":"string","title":"Content Type","default":"image/jpeg"}},"type":"object","title":"BriefPhotoUploadRequest"},"BulkPartsRequest":{"properties":{"part_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":1000,"minItems":1,"title":"Part Ids"},"action":{"type":"string","enum":["in_stock","sold_out","deactivate"],"title":"Action"}},"type":"object","required":["part_ids","action"],"title":"BulkPartsRequest","description":"Mark many parts in stock or sold out, or take them off sale."},"BulkPartsResult":{"properties":{"updated":{"type":"integer","title":"Updated"}},"type":"object","required":["updated"],"title":"BulkPartsResult","description":"How many of the named parts changed."},"BuyerStorefrontRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["id","display_name"],"title":"BuyerStorefrontRead","description":"A counterparty's storefront identity for choosing its purchasing wallet."},"CalendarBooking":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["pending","booked","cancelled","completed","no_show"],"title":"Status"},"created_by":{"type":"string","enum":["visitor","agent","owner"],"title":"Created By"},"event_type":{"type":"string","title":"Event Type"},"event_type_id":{"type":"string","format":"uuid","title":"Event Type Id"},"name":{"type":"string","title":"Name"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"reserved_starts_at":{"type":"string","format":"date-time","title":"Reserved Starts At"},"reserved_ends_at":{"type":"string","format":"date-time","title":"Reserved Ends At"},"timezone":{"type":"string","title":"Timezone"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"is_drop_off":{"type":"boolean","title":"Is Drop Off","default":false},"location":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Location"},"host":{"anyOf":[{"$ref":"#/components/schemas/CalendarHost"},{"type":"null"}]},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"lead_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Phone"},"lead_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Website"},"lead_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Timezone"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"cancelled_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled By"},"cancellation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancellation Reason"},"is_internal":{"type":"boolean","title":"Is Internal"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"origin":{"type":"string","enum":["quote","assistant","website","manual","internal"],"title":"Origin"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"intake":{"items":{"$ref":"#/components/schemas/IntakeAnswer"},"type":"array","title":"Intake"},"enquiry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Enquiry Id"},"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"}},"type":"object","required":["id","status","created_by","event_type","event_type_id","name","starts_at","ends_at","reserved_starts_at","reserved_ends_at","timezone","duration_minutes","location","host","lead_name","lead_email","lead_phone","lead_website","lead_timezone","locale","external_ref","cancelled_at","cancelled_by","cancellation_reason","is_internal","created_at","origin","notes","intake","enquiry_id","thread_id","order_id"],"title":"CalendarBooking","description":"A workspace-scoped view; never exposes a public manage credential."},"CalendarFeed":{"properties":{"timezone":{"type":"string","title":"Timezone"},"total":{"type":"integer","title":"Total"},"bookings":{"items":{"$ref":"#/components/schemas/CalendarBooking"},"type":"array","title":"Bookings"}},"type":"object","required":["timezone","total","bookings"],"title":"CalendarFeed"},"CalendarHost":{"properties":{"display_name":{"type":"string","maxLength":120,"minLength":1,"title":"Display Name"},"is_active":{"type":"boolean","title":"Is Active","default":true},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},"additionalProperties":false,"type":"object","required":["display_name","id","user_id"],"title":"CalendarHost"},"CampaignListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"subject":{"type":"string","title":"Subject"},"status":{"type":"string","enum":["draft","scheduled","sending","sent","cancelled","aborted_by_guard"],"title":"Status"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"recipient_count":{"type":"integer","title":"Recipient Count","default":0},"sent_count":{"type":"integer","title":"Sent Count","default":0},"opened_count":{"type":"integer","title":"Opened Count","default":0},"clicked_count":{"type":"integer","title":"Clicked Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","subject","status","created_at"],"title":"CampaignListItem","description":"Slim row for the campaigns list (no document/HTML payloads)."},"CampaignRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"name":{"type":"string","title":"Name"},"subject":{"type":"string","title":"Subject"},"preheader":{"type":"string","title":"Preheader"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"document":{"additionalProperties":true,"type":"object","title":"Document"},"rendered_html":{"type":"string","title":"Rendered Html"},"plain_text":{"type":"string","title":"Plain Text"},"status":{"type":"string","enum":["draft","scheduled","sending","sent","cancelled","aborted_by_guard"],"title":"Status"},"segment":{"additionalProperties":true,"type":"object","title":"Segment"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"spam_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spam Score"},"spam_check_warning":{"type":"boolean","title":"Spam Check Warning","default":false},"recipient_count":{"type":"integer","title":"Recipient Count","default":0},"sent_count":{"type":"integer","title":"Sent Count","default":0},"delivered_count":{"type":"integer","title":"Delivered Count","default":0},"opened_count":{"type":"integer","title":"Opened Count","default":0},"clicked_count":{"type":"integer","title":"Clicked Count","default":0},"unsubscribed_count":{"type":"integer","title":"Unsubscribed Count","default":0},"bounced_count":{"type":"integer","title":"Bounced Count","default":0},"complained_count":{"type":"integer","title":"Complained Count","default":0},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Reason"}},"type":"object","required":["id","name","subject","preheader","document","rendered_html","plain_text","status","segment","created_at"],"title":"CampaignRead","description":"A full campaign, counters included (counters are worker/webhook-owned —\nthe API only ever reads them)."},"CampaignRecipientPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CampaignRecipientRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"CampaignRecipientPage","description":"Paged recipient listing result."},"CampaignRecipientRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"marketing_contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketing Contact Id"},"email":{"type":"string","title":"Email"},"status":{"type":"string","enum":["queued","sent","delivered","bounced","complained","unsubscribed","failed","dropped"],"title":"Status"},"provider_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Message Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"},"clicked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clicked At"}},"type":"object","required":["id","email","status"],"title":"CampaignRecipientRead","description":"One snapshotted recipient row, as shown on the campaign detail page."},"CampaignRecipientsUsage":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},"type":"object","required":["used","limit"],"title":"CampaignRecipientsUsage","description":"The monthly campaign-recipient meter row — present only when the tuner has\nemail campaigns AND a recipient limit resolves."},"CampaignScheduleRequest":{"properties":{"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"}},"type":"object","required":["scheduled_at"],"title":"CampaignScheduleRequest","description":"Body of POST /campaigns/{id}/schedule."},"CampaignWrite":{"properties":{"name":{"type":"string","title":"Name"},"subject":{"type":"string","title":"Subject"},"preheader":{"type":"string","title":"Preheader","default":""},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"document":{"additionalProperties":true,"type":"object","title":"Document"},"rendered_html":{"type":"string","title":"Rendered Html","default":""},"plain_text":{"type":"string","title":"Plain Text","default":""},"segment":{"additionalProperties":true,"type":"object","title":"Segment"}},"type":"object","required":["name","subject"],"title":"CampaignWrite","description":"Create/update body for a draft campaign.\n\n``document`` is the EmailBuilder JSON; ``rendered_html``/``plain_text`` are\nrendered CLIENT-side at save time (no server-side JS runtime) and stored\nalongside it — the worker only substitutes merge tags. ``segment`` is a\ndescriptor validated against the kinds this version implements; besides\n``kind`` it may carry ``exclude_unengaged: bool`` (default false) — the\nsunset filter that drops provably-unengaged recipients at snapshot time."},"CampaignsEntitlementWrite":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"CampaignsEntitlementWrite","description":"Admin toggle body for a workspace's campaigns entitlement."},"CancelIn":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"CancelIn"},"CancelInput":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"CancelInput"},"CatalogChangeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"actor_id":{"type":"string","format":"uuid","title":"Actor Id"},"action":{"type":"string","title":"Action"},"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"before_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Before Json"},"after_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"After Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","actor_id","action","created_at"],"title":"CatalogChangeRead","description":"One audited catalog change, for the admin change feed (§13.3f)."},"CatalogMatch":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"stages":{"items":{"$ref":"#/components/schemas/EngineStageRead"},"type":"array","title":"Stages","default":[]},"addons":{"items":{"$ref":"#/components/schemas/AddonRead"},"type":"array","title":"Addons","default":[]},"match_method":{"type":"string","title":"Match Method","default":"exact"},"similarity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Similarity"}},"type":"object","required":["id"],"title":"CatalogMatch","description":"The L3 catalogue match (§13.4 catalog_match) — what is on offer for the car.\n\n``stages`` and ``addons`` are the catalogue's own reads, resolved for the\nworkspace the lookup was scoped to: the tuner's own stages and services, the\nplatform ones they hid dropped, every price through their book. They are the\nSAME lists the order wizard's service and options steps render, so the\nconfirm card cannot offer a different tune, option or price than the step two\nclicks later."},"CatalogRead":{"properties":{"events":{"items":{"$ref":"#/components/schemas/TriggerEventRead"},"type":"array","title":"Events"},"conditions":{"items":{"$ref":"#/components/schemas/ConditionDefinitionRead"},"type":"array","title":"Conditions"},"actions":{"items":{"type":"string","enum":["whatsapp_template","email","team_notice","webhook"]},"type":"array","title":"Actions"},"whatsapp_templates":{"items":{"$ref":"#/components/schemas/WhatsappTemplateOption"},"type":"array","title":"Whatsapp Templates"},"agent_connected":{"type":"boolean","title":"Agent Connected"},"timezone":{"type":"string","title":"Timezone"}},"type":"object","required":["events","conditions","actions","whatsapp_templates","agent_connected","timezone"],"title":"CatalogRead"},"CatalogueColumn":{"properties":{"key":{"type":"string","title":"Key"},"required":{"type":"boolean","title":"Required"},"format":{"type":"string","enum":["part_number","codes","text","price","image_urls","availability","yes_no"],"title":"Format"},"max_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Length"},"example":{"type":"string","title":"Example"}},"type":"object","required":["key","required","format","example"],"title":"CatalogueColumn","description":"One column of the catalogue upload, for the guide on the page."},"ChangeEmailRequest":{"properties":{"new_email":{"type":"string","title":"New Email"},"current_password":{"type":"string","title":"Current Password"}},"type":"object","required":["new_email","current_password"],"title":"ChangeEmailRequest"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ChannelOrderPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChannelOrderRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"ChannelOrderPage"},"ChannelOrderRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reference":{"type":"string","title":"Reference"},"vehicle_label":{"type":"string","title":"Vehicle Label"},"ecu_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Label"},"service_label":{"type":"string","title":"Service Label"},"dealer_name":{"type":"string","title":"Dealer Name"},"dealer_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Country"},"routing_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Routing Rule Id"},"routing_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Rule Name"},"dispatch_mode":{"anyOf":[{"type":"string","enum":["bidding","restricted_pool","direct","favourite"]},{"type":"null"}],"title":"Dispatch Mode"},"dispatch_state":{"anyOf":[{"type":"string","enum":["dispatching","bidding","offered","assigned","attention"]},{"type":"null"}],"title":"Dispatch State"},"status":{"type":"string","title":"Status"},"tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuner Name"},"tuner_payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tuner Payout Cents"},"payout_basis":{"anyOf":[{"type":"string","enum":["split","default_split","bid","manual"]},{"type":"null"}],"title":"Payout Basis"},"sale_price_cents":{"type":"integer","title":"Sale Price Cents"},"currency":{"type":"string","title":"Currency"},"needs_attention_reason":{"anyOf":[{"type":"string","enum":["no_valid_bids","unclaimed","not_started","no_tuner","tuner_not_eligible","margin_below_minimum","no_matching_rule","action_not_available"]},{"type":"null"}],"title":"Needs Attention Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"}},"type":"object","required":["id","reference","vehicle_label","service_label","dealer_name","status","sale_price_cents","currency","created_at"],"title":"ChannelOrderRead"},"ChannelSettingsRead":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"currency":{"type":"string","title":"Currency"},"enabled":{"type":"boolean","title":"Enabled"},"default_split_bps":{"type":"integer","title":"Default Split Bps"},"min_margin_bps":{"type":"integer","title":"Min Margin Bps"},"alert_after_s":{"type":"integer","title":"Alert After S"},"bidding_enabled":{"type":"boolean","title":"Bidding Enabled","default":false},"floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Cents"},"hold_hours":{"type":"integer","title":"Hold Hours"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["workspace_id","currency","enabled","default_split_bps","min_margin_bps","alert_after_s","hold_hours"],"title":"ChannelSettingsRead","description":"The channel's settings. ``enabled`` is the master switch: off, the\nstorefront's orders go to its owner exactly as before the channel existed."},"ChannelSettingsUpdate":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"default_split_bps":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Default Split Bps"},"min_margin_bps":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Min Margin Bps"},"alert_after_s":{"anyOf":[{"type":"integer","maximum":604800.0,"minimum":60.0},{"type":"null"}],"title":"Alert After S"},"bidding_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bidding Enabled"},"floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Cents"},"hold_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hold Hours"}},"type":"object","title":"ChannelSettingsUpdate","description":"A partial settings change. Bidding and the transfer hold are not\neditable here yet; sending them with a new value is refused."},"ChannelTunerInvite":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"split_bps":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Split Bps"},"can_bid":{"type":"boolean","title":"Can Bid","default":false}},"type":"object","required":["email"],"title":"ChannelTunerInvite"},"ChannelTunerRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_user_id":{"type":"string","format":"uuid","title":"Tuner User Id"},"display_name":{"type":"string","title":"Display Name"},"email":{"type":"string","title":"Email"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"status":{"type":"string","enum":["invited","active","paused","removed"],"title":"Status"},"split_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Split Bps"},"can_bid":{"type":"boolean","title":"Can Bid","default":false},"terms_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terms Accepted At"},"payouts_enabled":{"type":"boolean","title":"Payouts Enabled"},"active_jobs":{"type":"integer","title":"Active Jobs","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","tuner_user_id","display_name","email","status","payouts_enabled","created_at"],"title":"ChannelTunerRead","description":"One roster tuner. ``split_bps`` null = the channel's default split."},"ChannelTunerUpdate":{"properties":{"split_bps":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Split Bps"},"can_bid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Bid"},"status":{"anyOf":[{"type":"string","enum":["active","paused","removed"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"ChannelTunerUpdate","description":"A partial roster change; an explicit ``split_bps: null`` returns the\ntuner to the default split."},"CheckoutLine":{"properties":{"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"},"quote_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Quote Id"},"option_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Option Id"},"qty":{"type":"integer","minimum":1.0,"title":"Qty"}},"type":"object","required":["qty"],"title":"CheckoutLine","description":"One cart line: a catalogue variant, or a parts-shop quote.\n\nA quote line buys the quoted part; with ``option_id`` it buys one of the\nadd-ons the quote offered instead. Either way only ids and quantities\ntravel — the server prices every line from its own rows."},"CheckoutRequest":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/CheckoutLine"},"type":"array","title":"Lines"},"shipping_rate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipping Rate Id"},"terms_accepted":{"type":"boolean","title":"Terms Accepted","default":false},"provider":{"anyOf":[{"type":"string","enum":["stripe","paypal"]},{"type":"null"}],"title":"Provider"}},"type":"object","required":["lines"],"title":"CheckoutRequest","description":"Dealer checkout — the buyer identity comes from auth."},"CheckoutResult":{"properties":{"shop_order_id":{"type":"string","format":"uuid","title":"Shop Order Id"},"reference":{"type":"string","title":"Reference"},"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["shop_order_id","reference","checkout_url"],"title":"CheckoutResult"},"CollectionProductSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["id","slug","name"],"title":"CollectionProductSummary","description":"A member product, projected light for the collection editor's chip\nlist — avoids a second round-trip to cross-reference the full catalogue."},"CollectionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"active":{"type":"boolean","title":"Active"},"position":{"type":"integer","title":"Position"},"products":{"items":{"$ref":"#/components/schemas/CollectionProductSummary"},"type":"array","title":"Products"}},"type":"object","required":["id","slug","name","active","position"],"title":"CollectionRead"},"CollectionWrite":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"active":{"type":"boolean","title":"Active","default":true},"position":{"type":"integer","title":"Position","default":0},"product_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Product Ids"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"}},"type":"object","required":["slug","name"],"title":"CollectionWrite","description":"Create/update payload for a collection (admin). ``product_ids`` is the\ncollection's full, ordered membership — a declarative replace, like\n``VariantWrite`` lists aren't: the editor submits the whole desired set."},"CompleteSetupIn":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"CompleteSetupIn"},"ConditionDefinitionRead":{"properties":{"key":{"type":"string","title":"Key"},"kind":{"type":"string","enum":["enum","multi","bool","number","text"],"title":"Kind"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConditionOption"},"type":"array"},{"type":"null"}],"title":"Options"}},"type":"object","required":["key","kind"],"title":"ConditionDefinitionRead"},"ConditionOption":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"ConditionOption"},"ConfirmContext":{"properties":{"email_masked":{"type":"string","title":"Email Masked"},"workspace_name":{"type":"string","title":"Workspace Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"status":{"type":"string","enum":["pending","subscribed","unsubscribed"],"title":"Status"}},"type":"object","required":["email_masked","workspace_name","status"],"title":"ConfirmContext","description":"What the public confirmation page shows for a valid confirm token.\n\nThe masked address proves which mailbox the link is about without leaking\nit; the workspace name and logo are the dealer's own brand. ``status`` is\nthe contact's CURRENT state, so a repeat click reads as already confirmed."},"ConfirmEmailChangeRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"ConfirmEmailChangeRequest"},"ConnectAccountSession":{"properties":{"client_secret":{"type":"string","title":"Client Secret"}},"type":"object","required":["client_secret"],"title":"ConnectAccountSession"},"ConnectCountrySelect":{"properties":{"country":{"type":"string","title":"Country"}},"type":"object","required":["country"],"title":"ConnectCountrySelect"},"ConnectOnboardingLink":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"ConnectOnboardingLink"},"ConnectStart":{"properties":{"authorize_url":{"type":"string","title":"Authorize Url"}},"type":"object","required":["authorize_url"],"title":"ConnectStart","description":"Where to send the tuner to authorise (the Exact OAuth consent URL)."},"ConnectStatusResponse":{"properties":{"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"charges_enabled":{"type":"boolean","title":"Charges Enabled"},"payouts_enabled":{"type":"boolean","title":"Payouts Enabled"},"details_submitted":{"type":"boolean","title":"Details Submitted"},"onboarding_status":{"type":"string","title":"Onboarding Status"},"can_take_payments":{"type":"boolean","title":"Can Take Payments"},"account_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Country"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"},"requirements_currently_due":{"items":{"type":"string"},"type":"array","title":"Requirements Currently Due","default":[]},"requirements_past_due":{"items":{"type":"string"},"type":"array","title":"Requirements Past Due","default":[]},"requirements_eventually_due":{"items":{"type":"string"},"type":"array","title":"Requirements Eventually Due","default":[]},"requirements_current_deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requirements Current Deadline"}},"type":"object","required":["charges_enabled","payouts_enabled","details_submitted","onboarding_status","can_take_payments"],"title":"ConnectStatusResponse"},"ConnectionCredentialsUpdate":{"properties":{"master_tool_id":{"type":"string","maxLength":128,"minLength":1,"title":"Master Tool Id"},"master_api_key":{"type":"string","maxLength":512,"minLength":1,"title":"Master Api Key"}},"type":"object","required":["master_tool_id","master_api_key"],"title":"ConnectionCredentialsUpdate","description":"Save a workspace's credentials for a tool provider (write-only).\n\nBoth fields are stored encrypted and NEVER returned by any read endpoint."},"ConnectionStatus":{"properties":{"provider":{"type":"string","title":"Provider"},"enabled":{"type":"boolean","title":"Enabled"},"status":{"type":"string","title":"Status"},"configured":{"type":"boolean","title":"Configured"},"last_validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Validated At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["provider","enabled","status","configured"],"title":"ConnectionStatus","description":"A provider connection's status for the settings UI — never any secret."},"ConnectionTestResult":{"properties":{"provider":{"type":"string","title":"Provider"},"valid":{"type":"boolean","title":"Valid"},"status":{"type":"string","title":"Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["provider","valid","status"],"title":"ConnectionTestResult","description":"Outcome of a live \"Test connection\" against the stored credentials."},"ConnectorSearchIn":{"properties":{"query":{"type":"string","maxLength":500,"minLength":1,"title":"Query"},"audience":{"anyOf":[{"type":"string","enum":["dealer","tuner"]},{"type":"null"}],"title":"Audience"},"locale":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Locale"},"limit":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Limit","default":8}},"additionalProperties":false,"type":"object","required":["query"],"title":"ConnectorSearchIn"},"ConsoleStatus":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"authenticator":{"type":"boolean","title":"Authenticator"},"verified_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified Until"},"can_set_up":{"type":"boolean","title":"Can Set Up"},"manage_host":{"type":"string","title":"Manage Host","default":""}},"type":"object","required":["enabled","authenticator","verified_until","can_set_up"],"title":"ConsoleStatus","description":"What the portal page needs to show before the admin presses Open.\n\n``verified_until`` is when the admin's last verification stops opening the\ndashboards (None: it already has). ``can_set_up`` says an authenticator can\nbe added now, which needs a recent verification of its own."},"ContactCompany":{"properties":{"org_id":{"type":"string","title":"Org Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"category":{"type":"string","title":"Category","default":"partner"},"users":{"items":{"$ref":"#/components/schemas/ContactUser"},"type":"array","title":"Users","default":[]}},"type":"object","required":["org_id","name","role"],"title":"ContactCompany","description":"A reachable counterpart company expanded to its users.\n\n``category`` tells the picker why this contact is offered — ``support`` (the\nTheTuningGroup platform team), ``partner`` (an active membership), ``tuner_partner``\n(an accepted tuner↔tuner partnership) or ``order`` (a tuner/dealer met through\na fulfilled order) — so it can group + label them.\n\n``role`` is resolved per company, not from the caller's own role: a tuner's\nlist holds both their dealers and their partner tuners."},"ContactCounts":{"properties":{"pending":{"type":"integer","title":"Pending","default":0},"subscribed":{"type":"integer","title":"Subscribed","default":0},"unsubscribed":{"type":"integer","title":"Unsubscribed","default":0}},"type":"object","title":"ContactCounts","description":"How many contacts sit in each state, across the whole list."},"ContactUser":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["user_id","name"],"title":"ContactUser","description":"One user of a counterpart company, offered as a direct-message target."},"ContactsResponse":{"properties":{"companies":{"items":{"$ref":"#/components/schemas/ContactCompany"},"type":"array","title":"Companies","default":[]}},"type":"object","title":"ContactsResponse"},"ContentTopicIn":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["data"],"title":"ContentTopicIn","description":"Whole-topic replace of one business-facts topic's values."},"ConversationAuditDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"messages":{"items":{"$ref":"#/components/schemas/ConversationAuditMessage"},"type":"array","title":"Messages"}},"type":"object","required":["id","organisation_id","messages"],"title":"ConversationAuditDetail","description":"Full read-only thread for the admin messaging audit."},"ConversationAuditMessage":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","author_id","body","created_at"],"title":"ConversationAuditMessage","description":"A single message in the admin conversation audit view."},"ConversationCreate":{"properties":{"participant_user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Participant User Ids","default":[]},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"kind":{"type":"string","title":"Kind","default":"order_chat"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"}},"type":"object","title":"ConversationCreate"},"ConversationDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"kind":{"type":"string","title":"Kind","default":"order_chat"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"assigned_to":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"participant_user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Participant User Ids"},"senders":{"items":{"$ref":"#/components/schemas/SenderIdentity"},"type":"array","title":"Senders","default":[]},"others_last_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Others Last Read At"},"messages":{"items":{"$ref":"#/components/schemas/MessageRead"},"type":"array","title":"Messages"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["id","subject","order_id","created_by","created_at","participant_user_ids","messages"],"title":"ConversationDetail"},"ConversationFile":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"sender_id":{"type":"string","format":"uuid","title":"Sender Id"},"sender_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"message_id":{"type":"string","format":"uuid","title":"Message Id"}},"type":"object","required":["key","name","sender_id","created_at","message_id"],"title":"ConversationFile","description":"One file shared in a conversation, flattened out of its message for the\nper-conversation files view (key + display metadata + who/when)."},"ConversationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"kind":{"type":"string","title":"Kind","default":"order_chat"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"assigned_to":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acknowledged At"}},"type":"object","required":["id","subject","order_id","created_by","created_at"],"title":"ConversationRead"},"ConversationRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"participant_count":{"type":"integer","title":"Participant Count"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"}},"type":"object","required":["id","organisation_id","participant_count","message_count"],"title":"ConversationRow","description":"One conversation in the cross-org admin messaging audit list."},"ConversationSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"kind":{"type":"string","title":"Kind","default":"order_chat"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"assigned_to":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"senders":{"items":{"$ref":"#/components/schemas/SenderIdentity"},"type":"array","title":"Senders","default":[]},"last_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message"},"last_message_has_attachments":{"type":"boolean","title":"Last Message Has Attachments","default":false},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"unread_count":{"type":"integer","title":"Unread Count"},"awaiting_reply":{"type":"boolean","title":"Awaiting Reply","default":false},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acknowledged At"}},"type":"object","required":["id","subject","order_id","created_by","created_at","unread_count"],"title":"ConversationSummary"},"CorpusBatchCreate":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"CorpusBatchCreate","description":"Create a corpus bulk-upload batch (optional free-text note)."},"CorpusBatchItemList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CorpusItemRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["total","limit","offset"],"title":"CorpusBatchItemList","description":"Paged per-file items for a batch + total."},"CorpusBatchRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"status":{"type":"string","title":"Status"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"sources_total":{"type":"integer","title":"Sources Total"},"sources_uploaded":{"type":"integer","title":"Sources Uploaded"},"items_total":{"type":"integer","title":"Items Total"},"items_processed":{"type":"integer","title":"Items Processed"},"items_skipped":{"type":"integer","title":"Items Skipped"},"items_failed":{"type":"integer","title":"Items Failed"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"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_by","status","sources_total","sources_uploaded","items_total","items_processed","items_skipped","items_failed","created_at","updated_at"],"title":"CorpusBatchRead","description":"API projection of one ``corpus_import_batches`` row (overall metrics)."},"CorpusItemRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"parent_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Item Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"storage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Key"},"status":{"type":"string","title":"Status"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"retries":{"type":"integer","title":"Retries"},"family_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Family Id"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","batch_id","name","kind","status","retries","created_at","updated_at"],"title":"CorpusItemRead","description":"API projection of one ``corpus_import_items`` row (per-file status)."},"CorpusUploadFile":{"properties":{"name":{"type":"string","title":"Name"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["name"],"title":"CorpusUploadFile","description":"One file the client intends to upload (for a presign request)."},"CorpusUploadUrlItem":{"properties":{"item_id":{"type":"string","format":"uuid","title":"Item Id"},"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"},"upload_url":{"type":"string","title":"Upload Url"}},"type":"object","required":["item_id","name","key","upload_url"],"title":"CorpusUploadUrlItem","description":"A presigned PUT target for one file (the client PUTs the bytes here)."},"CorpusUploadUrlRequest":{"properties":{"files":{"items":{"$ref":"#/components/schemas/CorpusUploadFile"},"type":"array","title":"Files"}},"type":"object","title":"CorpusUploadUrlRequest","description":"Ask for presigned PUT URLs for a set of files in a batch."},"CorpusUploadUrlsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CorpusUploadUrlItem"},"type":"array","title":"Items"}},"type":"object","title":"CorpusUploadUrlsResponse","description":"The presigned upload targets created for an upload-urls request."},"CreateTemplateIn":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"},"body":{"type":"string","minLength":1,"title":"Body"},"label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Label"},"language":{"type":"string","maxLength":8,"title":"Language","default":"en"},"category":{"type":"string","enum":["utility","marketing","authentication"],"title":"Category","default":"utility"}},"type":"object","required":["name","body"],"title":"CreateTemplateIn"},"CreditAccountRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"kind":{"type":"string","title":"Kind"},"balance":{"type":"number","title":"Balance"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"}},"type":"object","required":["id","organisation_id","kind","balance"],"title":"CreditAccountRead"},"CreditAdjustRequest":{"properties":{"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"reason":{"type":"string","title":"Reason"},"kind":{"type":"string","enum":["slave","master","general"],"title":"Kind","default":"slave"},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"},"buyer_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Buyer Workspace Id"}},"type":"object","required":["organisation_id","amount","reason"],"title":"CreditAdjustRequest","description":"Admin manual credit grant/deduction (amount may be negative).\n\n``idempotency_key`` is client-minted per FORM SUBMISSION (not per request):\na double-click or network retry replays the same key and the second write\ndedups, while two deliberate identical grants carry two keys and both land.\nOptional so scripts and older clients keep working — without it a retry\ndouble-adjusts, which is exactly the bug the key exists to close."},"CreditBalance":{"properties":{"balance":{"type":"number","title":"Balance"},"balances":{"additionalProperties":{"type":"number"},"type":"object","title":"Balances"},"accounts":{"items":{"$ref":"#/components/schemas/CreditAccountRead"},"type":"array","title":"Accounts"}},"type":"object","required":["balance","balances","accounts"],"title":"CreditBalance"},"CreditCounterpartyRow":{"properties":{"org_id":{"type":"string","title":"Org Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["dealer","partner"],"title":"Type"},"workspace_id":{"type":"string","title":"Workspace Id"},"membership_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Id"},"balances":{"additionalProperties":{"type":"string"},"type":"object","title":"Balances"},"value_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value Cents"},"sold":{"type":"string","title":"Sold"},"used":{"type":"string","title":"Used"},"last_movement_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Movement At"}},"type":"object","required":["org_id","name","type","workspace_id","balances","sold","used"],"title":"CreditCounterpartyRow","description":"One credit-holding dealer or partner: balances now, movement in window.\n\n``membership_id`` is set for dealer rows only — it is what the dealer detail\npage keys on, so the table can deep-link. ``type`` is the relationship with\nthe wallet's workspace, not a property of the org."},"CreditFlowPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"sold":{"type":"string","title":"Sold"},"used":{"type":"string","title":"Used"}},"type":"object","required":["bucket","sold","used"],"title":"CreditFlowPoint","description":"Credits sold vs used in one time bucket (credits, not cents)."},"CreditKindSlice":{"properties":{"kind":{"type":"string","title":"Kind"},"outstanding":{"type":"string","title":"Outstanding"},"value_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value Cents"}},"type":"object","required":["kind","outstanding"],"title":"CreditKindSlice","description":"One credit kind's share of what counterparties hold with this tuner.\n\n``value_cents`` prices the balance at the tuner's own per-workspace rates;\nNone for kinds that have no money meaning here (``evc`` mirrors a balance\nheld on evc.de)."},"CreditModeChangeRequest":{"properties":{"single_credit_type":{"type":"boolean","title":"Single Credit Type"},"target_kind":{"anyOf":[{"type":"string","enum":["slave","master"]},{"type":"null"}],"title":"Target Kind"}},"type":"object","required":["single_credit_type"],"title":"CreditModeChangeRequest","description":"Switch the workspace between two credit types (slave/master) and one\n(\"general\"). ``target_kind`` is required when switching back to two types:\nit is the kind every dealer's general balance becomes."},"CreditModeChangeResult":{"properties":{"single_credit_type":{"type":"boolean","title":"Single Credit Type"},"dealers_migrated":{"type":"integer","title":"Dealers Migrated"},"credits_moved":{"type":"number","title":"Credits Moved"},"packs_rekinded":{"type":"integer","title":"Packs Rekinded"}},"type":"object","required":["single_credit_type","dealers_migrated","credits_moved","packs_rekinded"],"title":"CreditModeChangeResult","description":"What the switch migrated. A request matching the current mode is a no-op\n(all counters zero)."},"CreditModeDealerRow":{"properties":{"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"balances":{"additionalProperties":{"type":"number"},"type":"object","title":"Balances"}},"type":"object","required":["dealer_org_id","balances"],"title":"CreditModeDealerRow","description":"One dealer's non-zero wallet balances under a workspace — what a\ncredit-mode switch would migrate for them."},"CreditModePreview":{"properties":{"single_credit_type":{"type":"boolean","title":"Single Credit Type"},"dealers":{"items":{"$ref":"#/components/schemas/CreditModeDealerRow"},"type":"array","title":"Dealers"},"totals":{"additionalProperties":{"type":"number"},"type":"object","title":"Totals"}},"type":"object","required":["single_credit_type","dealers","totals"],"title":"CreditModePreview","description":"What switching credit modes would touch — feeds the confirmation dialog\nbefore ``set_credit_mode``. ``totals`` sums each kind across dealers."},"CreditPackRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"credits":{"type":"integer","title":"Credits"},"prices":{"additionalProperties":true,"type":"object","title":"Prices"},"discounted_prices":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Discounted Prices"},"discount_bps":{"type":"integer","title":"Discount Bps","default":0},"position":{"type":"integer","title":"Position"},"active":{"type":"boolean","title":"Active"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"}},"type":"object","required":["id","name","kind","credits","prices","position","active"],"title":"CreditPackRead"},"CreditPackRefundAdminRequest":{"properties":{"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"credits":{"type":"integer","title":"Credits"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["payment_id","credits"],"title":"CreditPackRefundAdminRequest","description":"Admin refund of a credit-pack purchase — money + clawed-back credits."},"CreditPackRefundRequest":{"properties":{"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"CreditPackRefundRequest","description":"Tuner/admin refund of a credit-pack sale. ``credits=None`` refunds the whole\nunspent slice; otherwise at most that many still-unspent credits."},"CreditPackWrite":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"credits":{"type":"integer","title":"Credits"},"prices":{"additionalProperties":{"type":"integer"},"type":"object","title":"Prices"},"position":{"type":"integer","title":"Position","default":0},"active":{"type":"boolean","title":"Active","default":true},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"}},"type":"object","required":["name","kind","credits","prices"],"title":"CreditPackWrite","description":"Create/update payload for a purchasable credit bundle.\n\n``tuner_workspace_id`` is NULL for a platform pack (admin) and set for a\ntuner-managed pack; the tuner routes force it to their own workspace."},"CreditPerk":{"properties":{"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"amount":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Amount"},"kind":{"type":"string","enum":["slave","master","general"],"title":"Kind","default":"slave"}},"type":"object","required":["tuner_workspace_id","amount"],"title":"CreditPerk","description":"File credits granted per unit bought, onto the buyer's wallet with\n``tuner_workspace_id`` — the same wallet their orders to that tuner debit.\nThe workspace must belong to the shop's own organisation (checked on save)."},"CreditReservation":{"properties":{"order_id":{"type":"string","title":"Order Id"},"vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle"},"status":{"type":"string","title":"Status"},"credits":{"type":"number","title":"Credits"},"submitted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted"}},"type":"object","required":["order_id","vehicle","status","credits","submitted"],"title":"CreditReservation","description":"An open order whose credits are already debited — the answer to 'why is\nmy balance lower'. There is no hold concept: reserve debits immediately."},"CreditTransactionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"amount":{"type":"number","title":"Amount"},"balance_after":{"type":"number","title":"Balance After"},"reference_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Type"},"reference_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","amount","balance_after","reference_type","reference_id","created_at"],"title":"CreditTransactionRead"},"CreditsCheckoutSync":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"CreditsCheckoutSync","description":"The Stripe Checkout session id from the success-return URL."},"CustomAnswerIn":{"properties":{"key":{"type":"string","maxLength":48,"title":"Key"},"value":{"type":"string","maxLength":2000,"title":"Value","default":""}},"type":"object","required":["key"],"title":"CustomAnswerIn","description":"One answer to a custom field, as submitted.\n\nCarries ``label`` and ``type`` ALONGSIDE the value on purpose. A dealer owns\ntheir own widget's questions, so a tuner receives enquiries asking things they\nnever wrote; and any field may be renamed or archived after the fact. Storing\nthe wording that was actually on screen makes every enquiry readable from the\nsubmission alone — no join to a definition that has since moved, and an\nenquiry from March still reads as the customer saw it.\n\nBoth are re-derived from the server's own definitions on intake, so a client\ncannot invent a flattering label for an answer."},"CustomerEmailRequest":{"properties":{"subject":{"type":"string","maxLength":200,"minLength":1,"title":"Subject"},"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["subject","body"],"title":"CustomerEmailRequest","description":"An ad-hoc email an admin composes to a shop order's buyer."},"CustomerLookupOut":{"properties":{"match":{"type":"string","enum":["exact","ambiguous","none"],"title":"Match"},"customer":{"anyOf":[{"$ref":"#/components/schemas/CustomerOut"},{"type":"null"}]}},"type":"object","required":["match"],"title":"CustomerLookupOut"},"CustomerOut":{"properties":{"customer_ref":{"type":"string","title":"Customer Ref"},"type":{"type":"string","enum":["dealer","individual"],"title":"Type"},"display_name":{"type":"string","title":"Display Name"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"has_dealer_pricing":{"type":"boolean","title":"Has Dealer Pricing","default":false},"customer_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Since"}},"type":"object","required":["customer_ref","type","display_name"],"title":"CustomerOut"},"CyclePayRequest":{"properties":{"provider":{"anyOf":[{"type":"string","enum":["stripe","paypal"]},{"type":"null"}],"title":"Provider"}},"type":"object","title":"CyclePayRequest","description":"How the dealer chose to pay a monthly invoice's pay link."},"CyclePayResult":{"properties":{"status":{"type":"string","enum":["ready","paid","processing","unavailable"],"title":"Status"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"}},"type":"object","required":["status"],"title":"CyclePayResult","description":"The outcome of a visit to a cycle invoice's permanent pay link.\n\n``ready`` carries a freshly opened Checkout URL. ``paid`` means there is\nnothing left to pay; ``processing`` that a payment already went through\nStripe and is still settling (an async method), so no second session may be\nopened; ``unavailable`` that the invoice is not in a payable state."},"DashboardAudience":{"properties":{"subscribed":{"type":"integer","title":"Subscribed"},"optouts_30d":{"type":"integer","title":"Optouts 30D"},"suppressed":{"type":"integer","title":"Suppressed"}},"type":"object","required":["subscribed","optouts_30d","suppressed"],"title":"DashboardAudience","description":"The dashboard's live audience block.\n\n``subscribed`` is the CURRENT ``all_active`` recipient count for the\nscope (for a dealer website: its confirmed contacts); ``optouts_30d``\ncounts the scope's opt-outs of the last 30 days that still read\n``unsubscribed`` (independent of the window filter); ``suppressed`` is the\nplatform-wide suppression total (mailbox facts are never per-scope)."},"DashboardCampaignRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"sent":{"type":"integer","title":"Sent"},"delivered":{"type":"integer","title":"Delivered"},"open_rate":{"type":"number","title":"Open Rate"},"click_rate":{"type":"number","title":"Click Rate"},"bounce_rate":{"type":"number","title":"Bounce Rate"}},"type":"object","required":["id","name","sent","delivered","open_rate","click_rate","bounce_rate"],"title":"DashboardCampaignRow","description":"One completed send in the dashboard's campaign listing."},"DashboardRates":{"properties":{"delivery_rate":{"type":"number","title":"Delivery Rate"},"open_rate":{"type":"number","title":"Open Rate"},"click_rate":{"type":"number","title":"Click Rate"},"ctor":{"type":"number","title":"Ctor"},"unsubscribe_rate":{"type":"number","title":"Unsubscribe Rate"},"bounce_rate":{"type":"number","title":"Bounce Rate"},"complaint_rate":{"type":"number","title":"Complaint Rate"}},"type":"object","required":["delivery_rate","open_rate","click_rate","ctor","unsubscribe_rate","bounce_rate","complaint_rate"],"title":"DashboardRates","description":"Derived rates over the window totals (floats 0..1, 4 decimals).\n\n``delivery_rate`` is delivered/sent, ``open_rate`` and ``click_rate`` are\nover delivered, ``ctor`` (click-to-open) is clicked/opened, and the\nunsubscribe/bounce/complaint rates are over sent — all 0.0 on a zero\ndenominator."},"DashboardTotals":{"properties":{"campaigns_sent":{"type":"integer","title":"Campaigns Sent"},"sent":{"type":"integer","title":"Sent"},"delivered":{"type":"integer","title":"Delivered"},"opened":{"type":"integer","title":"Opened"},"clicked":{"type":"integer","title":"Clicked"},"unsubscribed":{"type":"integer","title":"Unsubscribed"},"bounced":{"type":"integer","title":"Bounced"},"complained":{"type":"integer","title":"Complained"}},"type":"object","required":["campaigns_sent","sent","delivered","opened","clicked","unsubscribed","bounced","complained"],"title":"DashboardTotals","description":"Summed outcome counters over the dashboard window."},"DayLoad":{"properties":{"date":{"type":"string","title":"Date"},"mode":{"type":"string","enum":["per_time","per_day"],"title":"Mode"},"used":{"type":"integer","title":"Used"},"capacity":{"type":"integer","title":"Capacity"}},"type":"object","required":["date","mode","used","capacity"],"title":"DayLoad","description":"How full one day's workshop is with drop-offs, for the calendar header.\n\n``per_time``: ``used`` is the most cars in at once that day, ``capacity``\nthe cars allowed. ``per_day``: both are work minutes."},"DaysWindow":{"type":"integer","enum":[7,30,90],"title":"DaysWindow","description":"Time-series windows the dashboards offer; anything else is a 422.\n\nAn ``IntEnum`` (not a bare ``Literal[7, 30, 90]``) so FastAPI coerces the\nstring query value ``?days=7`` to the int — a ``Literal[int]`` query param\nrejects the string and 422s every non-default selection."},"DealerConversationsPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DealerTicketRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"DealerConversationsPage","description":"One page of a dealer's tuner-scoped support threads."},"DealerCreditLedgerPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DealerCreditTxnRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"DealerCreditLedgerPage","description":"One page of a dealer's credit ledger with this tuner (newest first)."},"DealerCreditTxnRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"amount":{"type":"number","title":"Amount"},"balance_after":{"type":"number","title":"Balance After"},"reference_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Type"},"reference_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","amount","balance_after","created_at"],"title":"DealerCreditTxnRow","description":"One ledger entry on a dealer's wallet with this tuner.\n\nThe transaction carries no free-text reason column (the goodwill reason lives\non the emitted event, not the ledger row), so the classification the UI shows\nis ``reference_type`` (purchase / order / admin / payment) with its\n``reference_id``. ``balance_after`` is the running wallet balance post-entry."},"DealerDetailRead":{"properties":{"membership":{"$ref":"#/components/schemas/MembershipRead"},"buyer_storefronts":{"items":{"$ref":"#/components/schemas/BuyerStorefrontRead"},"type":"array","title":"Buyer Storefronts"},"dealer_name":{"type":"string","title":"Dealer Name"},"dealer_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Country"},"dealer_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Vat Number"},"dealer_vat_validated":{"type":"boolean","title":"Dealer Vat Validated","default":false},"dealer_billing_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Billing Email"},"dealer_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Type"},"dealer_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Currency"},"dealer_billing_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Dealer Billing Address"},"members":{"items":{"$ref":"#/components/schemas/DealerMember"},"type":"array","title":"Members"},"stats":{"$ref":"#/components/schemas/DealerStats"},"recent_invoices":{"items":{"$ref":"#/components/schemas/WorkspaceInvoiceRead"},"type":"array","title":"Recent Invoices"},"order_invoices":{"items":{"$ref":"#/components/schemas/DealerOrderInvoiceRead"},"type":"array","title":"Order Invoices"},"credit_balances":{"additionalProperties":{"type":"number"},"type":"object","title":"Credit Balances"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"}},"type":"object","required":["membership","dealer_name","members","recent_invoices"],"title":"DealerDetailRead","description":"Everything the dealer detail page shows: the membership, the dealer org's\nidentity + billing profile, its members, activity stats, and the tuner's most\nrecent cycle invoices for it."},"DealerEmailFlag":{"properties":{"membership_id":{"type":"string","format":"uuid","title":"Membership Id"},"status":{"type":"string","enum":["ok","no_mail","bouncing","suppressed","blocked","junk_suspected"],"title":"Status"},"address":{"type":"string","title":"Address"}},"type":"object","required":["membership_id","status","address"],"title":"DealerEmailFlag","description":"A dealer whose mail is not arriving — drives the dealer-list warning icon."},"DealerEmailHealth":{"properties":{"membership_id":{"type":"string","format":"uuid","title":"Membership Id"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"addresses":{"items":{"$ref":"#/components/schemas/AddressHealth"},"type":"array","title":"Addresses"}},"type":"object","required":["membership_id","dealer_name","addresses"],"title":"DealerEmailHealth"},"DealerEmailRequest":{"properties":{"kind":{"type":"string","enum":["retry_address","change_address"],"title":"Kind"},"address":{"type":"string","maxLength":320,"title":"Address"},"new_address":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"New Address"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"type":"object","required":["kind","address"],"title":"DealerEmailRequest","description":"A tuner's request to platform support about a dealer address: try a\nsuppressed address again, or change it (both are admin actions — a\nsuppression is platform-wide, and a login email is an account credential)."},"DealerEmailRequestResult":{"properties":{"ticket_id":{"type":"string","format":"uuid","title":"Ticket Id"},"already_requested":{"type":"boolean","title":"Already Requested","default":false}},"type":"object","required":["ticket_id"],"title":"DealerEmailRequestResult"},"DealerFileRef":{"properties":{"which":{"type":"string","enum":["original","completed"],"title":"Which"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"type":"object","required":["which"],"title":"DealerFileRef","description":"A downloadable file on a dealer order (its original read or completed tune).\n\nCarries only display metadata — the presigned URL is minted on demand by the\nper-order download endpoint, never embedded here."},"DealerImportDefaults":{"properties":{"payment_mode":{"type":"string","enum":["per_file","credits","monthly_invoice"],"title":"Payment Mode","default":"per_file"},"net_terms_days":{"type":"integer","minimum":0.0,"title":"Net Terms Days","default":14},"credit_kind":{"type":"string","enum":["slave","master","general"],"title":"Credit Kind","default":"slave"}},"type":"object","title":"DealerImportDefaults","description":"Batch-wide fallbacks applied to any row that omits the field."},"DealerImportRequest":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/DealerImportRow"},"type":"array","title":"Rows"},"defaults":{"$ref":"#/components/schemas/DealerImportDefaults"},"mode":{"type":"string","enum":["transfer","invite"],"title":"Mode","default":"transfer"},"email_message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Email Message"}},"type":"object","required":["rows"],"title":"DealerImportRequest","description":"The parsed CSV rows plus batch defaults, for validate (dry-run) or commit."},"DealerImportResult":{"properties":{"summary":{"$ref":"#/components/schemas/DealerImportSummary"},"rows":{"items":{"$ref":"#/components/schemas/DealerImportRowResult"},"type":"array","title":"Rows"}},"type":"object","required":["summary","rows"],"title":"DealerImportResult"},"DealerImportRow":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"payment_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Mode"},"net_terms_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Net Terms Days"},"credits":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Credits"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","required":["email"],"title":"DealerImportRow","description":"One CSV row mapped to dealer fields. Only ``email`` is required; the rest\nenrich the created org/account. ``payment_mode`` is a loose string so an\ninvalid value is reported per-row rather than 422-ing the whole request.\n``credits`` is an optional opening balance loaded into the dealer's wallet\nwith this tuner."},"DealerImportRowResult":{"properties":{"index":{"type":"integer","title":"Index"},"email":{"type":"string","title":"Email"},"outcome":{"type":"string","enum":["new","skip","error"],"title":"Outcome"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"membership_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Membership Id"},"credits":{"type":"integer","title":"Credits","default":0}},"type":"object","required":["index","email","outcome"],"title":"DealerImportRowResult","description":"Per-row outcome: created (``new``), skipped, or errored (with a reason)."},"DealerImportSummary":{"properties":{"total":{"type":"integer","title":"Total"},"new":{"type":"integer","title":"New"},"skip":{"type":"integer","title":"Skip"},"error":{"type":"integer","title":"Error"}},"type":"object","required":["total","new","skip","error"],"title":"DealerImportSummary"},"DealerInvoiceOverview":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/DealerInvoiceRow"},"type":"array","title":"Rows"},"currency":{"type":"string","title":"Currency"},"outstanding_cents":{"type":"integer","title":"Outstanding Cents"},"upcoming_cents":{"type":"integer","title":"Upcoming Cents"}},"type":"object","required":["rows","currency","outstanding_cents","upcoming_cents"],"title":"DealerInvoiceOverview","description":"Everything owed and everything paid, plus the two numbers a tuner reads\nfirst: what is outstanding now and what is still forming."},"DealerInvoiceRow":{"properties":{"key":{"type":"string","title":"Key"},"kind":{"type":"string","enum":["upcoming","cycle","document"],"title":"Kind"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"},"label":{"type":"string","title":"Label"},"order_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Order Count"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"bills_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Bills On"},"state":{"type":"string","enum":["upcoming","draft","open","overdue","paid","credit_note"],"title":"State"},"settlement_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Method"},"settled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Settled At"},"settlement_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Note"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"accounting_invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Accounting Invoice Id"},"expandable":{"type":"boolean","title":"Expandable","default":false}},"type":"object","required":["key","kind","label","amount_cents","currency","state"],"title":"DealerInvoiceRow","description":"One row of a dealer's or partner's invoice overview.\n\nThree shapes share the list because a tuner reads them as one question —\n\"what does this dealer owe me, and what have they paid\":\n\n- ``upcoming``: not an invoice yet. The uninvoiced usage lines forming the\n  next cycle. It has no number and no id, and is the row a tuner is most\n  often asked about (\"what am I going to be billed?\").\n- ``cycle``: a monthly on-account header. The ONLY shape that can be unpaid,\n  and so the only one that can be marked paid.\n- ``document``: a per-order, credit-pack or standalone accounting invoice.\n  These exist only because money already moved, so they are always settled."},"DealerMember":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"team_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Role"},"status":{"type":"string","enum":["active","pending"],"title":"Status"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"email_verified":{"type":"boolean","title":"Email Verified","default":false},"two_factor":{"type":"boolean","title":"Two Factor","default":false},"orders_placed":{"type":"integer","title":"Orders Placed","default":0}},"type":"object","required":["id","name","email","status"],"title":"DealerMember","description":"One person on the dealer org: who they are, and whether they can get in.\n\n``status`` carries the distinction the old flat contact list could not make.\nMost dealer users are ``pending`` — invited and never activated — and listing\nthem as ordinary contacts told the tuner they had a team that could log in\nwhen they had a list of unanswered invitations.\n\n``team_role`` is frequently unset on dealer orgs, so it is optional and the UI\nmust read fine without it rather than showing a column of blanks."},"DealerMetricPoint":{"properties":{"period":{"type":"string","title":"Period"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["period","count"],"title":"DealerMetricPoint","description":"One monthly bucket of a dealer's order volume (``period`` = ``YYYY-MM``)."},"DealerMetrics":{"properties":{"orders_by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Orders By Status"},"orders_over_time":{"items":{"$ref":"#/components/schemas/DealerMetricPoint"},"type":"array","title":"Orders Over Time"},"service_mix":{"items":{"$ref":"#/components/schemas/DealerServiceMixRow"},"type":"array","title":"Service Mix"},"distinct_vehicles":{"type":"integer","title":"Distinct Vehicles","default":0}},"type":"object","title":"DealerMetrics","description":"The dealer Metrics tab: status mix, monthly volume, service mix, and the\ndistinct-vehicle count — all scoped to this dealer with this tuner."},"DealerOrderInvoiceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"kind":{"type":"string","title":"Kind"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"gross_cents":{"type":"integer","title":"Gross Cents"},"currency":{"type":"string","title":"Currency"},"issued_at":{"type":"string","format":"date-time","title":"Issued At"}},"type":"object","required":["id","number","kind","gross_cents","currency","issued_at"],"title":"DealerOrderInvoiceRead","description":"A per-order (pay-per-file / direct) accounting invoice the tuner issued to\nthis dealer — surfaced on the dealer detail page next to the cycle invoices.\n``kind`` is ``invoice`` or ``credit_note``."},"DealerOrderRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"ecu_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Label"},"selected_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons"},"status":{"type":"string","title":"Status"},"funding":{"type":"string","title":"Funding"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"has_original":{"type":"boolean","title":"Has Original","default":false},"has_completed":{"type":"boolean","title":"Has Completed","default":false}},"type":"object","required":["id","status","funding","price_credits","price_cents","created_at"],"title":"DealerOrderRow","description":"One of a dealer's orders with this tuner, for the dealer Orders tab.\n\n``vehicle_label`` / ``ecu_label`` are resolved from ``catalogue_node_id`` so\nthe row reads as a vehicle, not an opaque node id. ``id`` is the order id the\nUI deep-links to the order detail. ``has_original`` / ``has_completed`` gate\nthe per-row download buttons without leaking storage keys. ``billing_mode``\nis the rail the order was placed on; it outranks ``funding``, which an\non-invoice order leaves at its ``credits`` default."},"DealerOrdersPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DealerOrderRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"status_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Status Counts"}},"type":"object","required":["items","total","limit","offset"],"title":"DealerOrdersPage","description":"One page of a dealer's orders with this tuner. ``status_counts`` is the\nfull status breakdown (ignores the current ``status`` filter) for the tabs."},"DealerPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MembershipRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"status_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Status Counts"}},"type":"object","required":["items","total","limit","offset"],"title":"DealerPage","description":"One page of a tuner's dealers list: the matching memberships, the total\ncount (pager), and per-status counts (the filter chips honour the other\nfilters, so each chip reflects the current view)."},"DealerRevenue":{"properties":{"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"dealer_name":{"type":"string","title":"Dealer Name"},"currency":{"type":"string","title":"Currency","default":"EUR"},"revenue_cents":{"type":"integer","title":"Revenue Cents"},"order_count":{"type":"integer","title":"Order Count"}},"type":"object","required":["dealer_org_id","dealer_name","revenue_cents","order_count"],"title":"DealerRevenue"},"DealerRow":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"DealerRow"},"DealerServiceMixRow":{"properties":{"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"DealerServiceMixRow","description":"Order count per selected stage — the dealer's service-mix breakdown."},"DealerStats":{"properties":{"orders_total":{"type":"integer","title":"Orders Total","default":0},"orders_delivered":{"type":"integer","title":"Orders Delivered","default":0},"revenue_net_cents":{"type":"integer","title":"Revenue Net Cents","default":0},"open_invoices":{"type":"integer","title":"Open Invoices","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"}},"type":"object","title":"DealerStats","description":"The dealer's activity with THIS tuner — the detail-page KPI strip. Revenue\nis the tuner's net across the dealer's paid charges in this workspace."},"DealerTicketRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","created_at"],"title":"DealerTicketRow","description":"One of a dealer's support threads scoped to this tuner (never a\nplatform-internal escalation)."},"DealerVehicle":{"properties":{"key":{"type":"string","title":"Key"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"ecu_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Label"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"order_count":{"type":"integer","title":"Order Count"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"orders":{"items":{"$ref":"#/components/schemas/DealerVehicleOrder"},"type":"array","title":"Orders"}},"type":"object","required":["key","order_count","orders"],"title":"DealerVehicle","description":"A dealer's vehicle — a group of orders sharing a VIN, plate, or engine node.\n\n``key`` is the stable grouping identity (VIN, else plate, else\n``model:<catalogue_node_id>``, else ``unlisted:<typed-in car>``, else\n``order:<order id>`` for an order naming no car); ``orders`` are the orders\nthat rolled up into it, newest first."},"DealerVehicleOrder":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"selected_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Stage"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"original":{"anyOf":[{"$ref":"#/components/schemas/DealerFileRef"},{"type":"null"}]},"completed":{"anyOf":[{"$ref":"#/components/schemas/DealerFileRef"},{"type":"null"}]}},"type":"object","required":["id","status","created_at"],"title":"DealerVehicleOrder","description":"One order under a grouped vehicle, with its original + completed files."},"DealerVehiclesPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DealerVehicle"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"DealerVehiclesPage","description":"One page of a dealer's vehicles with this tuner (paginated by vehicle)."},"DefaultStageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"stage":{"type":"string","title":"Stage"},"price_credits":{"type":"number","title":"Price Credits"},"position":{"type":"integer","title":"Position"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["id","stage","price_credits","position","active"],"title":"DefaultStageRead","description":"A default tuning stage offered for every engine (admin registry view)."},"DefaultStageWrite":{"properties":{"stage":{"type":"string","maxLength":64,"minLength":1,"title":"Stage"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Price Credits"},"position":{"type":"integer","minimum":0.0,"title":"Position","default":0},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["stage","price_credits"],"title":"DefaultStageWrite","description":"Create/update payload for an admin-managed default stage."},"DelegationCostSummary":{"properties":{"currency":{"type":"string","title":"Currency"},"owed_cents":{"type":"integer","title":"Owed Cents","default":0},"not_yet_due_cents":{"type":"integer","title":"Not Yet Due Cents","default":0},"scheduled_cents":{"type":"integer","title":"Scheduled Cents","default":0},"paid_cents":{"type":"integer","title":"Paid Cents","default":0},"written_off_cents":{"type":"integer","title":"Written Off Cents","default":0},"order_value_cents":{"type":"integer","title":"Order Value Cents","default":0},"platform_fee_cents":{"type":"integer","title":"Platform Fee Cents","default":0},"leg_count":{"type":"integer","title":"Leg Count","default":0}},"type":"object","required":["currency"],"title":"DelegationCostSummary","description":"What delegating work to partners has cost, for one currency.\n\n``owed`` splits deliberately: a partner leg accrues when the order is\ndelivered but only matures once the DEALER accepts, so \"not yet due\" and\n\"scheduled\" answer two different questions — how much is coming, and how\nmuch is about to leave."},"DelegationLegRow":{"properties":{"id":{"type":"string","title":"Id"},"order_id":{"type":"string","title":"Order Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"hold_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hold Until"},"currency":{"type":"string","title":"Currency"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"order_value_cents":{"type":"integer","title":"Order Value Cents","default":0},"platform_cents":{"type":"integer","title":"Platform Cents","default":0},"partner_cents":{"type":"integer","title":"Partner Cents","default":0},"settled_cents":{"type":"integer","title":"Settled Cents","default":0},"status":{"type":"string","title":"Status"},"sub_invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Invoice Number"}},"type":"object","required":["id","order_id","created_at","currency","status"],"title":"DelegationLegRow","description":"One delegated order's cost line.\n\nDeliberately A-side only: it carries the order value and the platform fee,\nwhich are the delegating tuner's business and not their partner's."},"DelegationOfferCreate":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"to_tuner_user_id":{"type":"string","format":"uuid","title":"To Tuner User Id"},"to_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"To Workspace Id"},"payout_split_bps":{"type":"integer","title":"Payout Split Bps"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["order_id","to_tuner_user_id","payout_split_bps"],"title":"DelegationOfferCreate"},"DelegationPartnerCost":{"properties":{"partner_user_id":{"type":"string","title":"Partner User Id"},"partner_name":{"type":"string","title":"Partner Name"},"currency":{"type":"string","title":"Currency"},"owed_cents":{"type":"integer","title":"Owed Cents","default":0},"paid_cents":{"type":"integer","title":"Paid Cents","default":0},"leg_count":{"type":"integer","title":"Leg Count","default":0}},"type":"object","required":["partner_user_id","partner_name","currency"],"title":"DelegationPartnerCost"},"DelegationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"from_tuner_workspace_id":{"type":"string","format":"uuid","title":"From Tuner Workspace Id"},"from_tuner_user_id":{"type":"string","format":"uuid","title":"From Tuner User Id"},"to_tuner_user_id":{"type":"string","format":"uuid","title":"To Tuner User Id"},"payout_split_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payout Split Bps"},"accepted_split_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Accepted Split Bps"},"status":{"type":"string","title":"Status"},"broadcast":{"type":"boolean","title":"Broadcast","default":false},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"offered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Offered At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"from_tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Tuner Name"}},"type":"object","required":["id","order_id","from_tuner_workspace_id","from_tuner_user_id","to_tuner_user_id","payout_split_bps","accepted_split_bps","status","note"],"title":"DelegationRead"},"DeletionBlocker":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"DeletionBlocker","description":"One reason a user cannot yet close their account."},"DeletionEligibility":{"properties":{"can_delete":{"type":"boolean","title":"Can Delete"},"blockers":{"items":{"$ref":"#/components/schemas/DeletionBlocker"},"type":"array","title":"Blockers","default":[]},"has_password":{"type":"boolean","title":"Has Password","default":true}},"type":"object","required":["can_delete"],"title":"DeletionEligibility","description":"Whether the signed-in user may close their account, and why not.\n\n``can_delete`` is True only when ``blockers`` is empty; the UI disables the\ndelete action and lists the blockers otherwise."},"DeliverRequest":{"properties":{"modified_storage_key":{"type":"string","title":"Modified Storage Key"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"checksum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checksum"},"final_price_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Final Price Cents"},"encrypt_with":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypt With"}},"type":"object","required":["modified_storage_key"],"title":"DeliverRequest"},"DeliverabilityRead":{"properties":{"campaigns_sent":{"type":"integer","title":"Campaigns Sent"},"sent_total":{"type":"integer","title":"Sent Total"},"delivered_total":{"type":"integer","title":"Delivered Total"},"bounced_total":{"type":"integer","title":"Bounced Total"},"complained_total":{"type":"integer","title":"Complained Total"},"unsubscribed_total":{"type":"integer","title":"Unsubscribed Total"},"bounce_rate":{"type":"number","title":"Bounce Rate"},"complaint_rate":{"type":"number","title":"Complaint Rate"},"open_rate":{"type":"number","title":"Open Rate"},"current_hourly_cap":{"type":"integer","title":"Current Hourly Cap"},"last_campaign_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Campaign At"},"domain_verified":{"type":"boolean","title":"Domain Verified"},"link_branding_validated":{"type":"boolean","title":"Link Branding Validated"}},"type":"object","required":["campaigns_sent","sent_total","delivered_total","bounced_total","complained_total","unsubscribed_total","bounce_rate","complaint_rate","open_rate","current_hourly_cap","domain_verified","link_branding_validated"],"title":"DeliverabilityRead","description":"Per-workspace deliverability rollup (the Phase-4 ops panel).\n\nTotals aggregate the counters of every campaign that actually went out\n(status ``sent`` or ``aborted_by_guard``). Rates guard division by zero\n(0.0 on an empty history): ``bounce_rate``/``complaint_rate`` are over\n``sent_total`` (the kill-switch's own denominators), ``open_rate`` over\n``delivered_total``. ``current_hourly_cap`` is the warm-up ramp rung the\nnext send would run under (-1 = past the ladder, unlimited).\n``domain_verified``/``link_branding_validated`` read the workspace's\n``branding.email`` block — the two DNS-side switches of the checklist."},"DeliveryIntegrityView":{"properties":{"status":{"type":"string","enum":["ok","suspect","not_applicable"],"title":"Status"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons","default":[]},"failed_check":{"anyOf":[{"type":"string","enum":["size","hash","min_bytes","byte_diff"]},{"type":"null"}],"title":"Failed Check"},"original_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Original Size Bytes"},"delivered_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delivered Size Bytes"},"bytes_changed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bytes Changed"},"bytes_changed_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bytes Changed Pct"},"min_bytes_changed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Bytes Changed"},"max_diff_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Diff Pct"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"type":"object","required":["status"],"title":"DeliveryIntegrityView","description":"The delivery check on one delivered tune file, in the figures a tuner\njudges it by: which check tripped, both sizes, how much changed and the\nlimits it was held to (see ``fileident.delivery_integrity``).\n\nThe fulfilling side's alone. The buyer never receives it: its verdicts\n(\"no tune applied\") are about the tuner's work, and never block delivery."},"DeliveryPrecheckRequest":{"properties":{"storage_key":{"type":"string","title":"Storage Key"}},"type":"object","required":["storage_key"],"title":"DeliveryPrecheckRequest","description":"A tuner's staged (not-yet-delivered) file, to gate against the original\nbefore they commit. ``storage_key`` is the same key ``deliver()`` would\nlater receive as ``modified_storage_key`` — staging never re-uploads."},"DeliveryTrail":{"properties":{"sent":{"type":"string","enum":["done","failed","pending","untracked"],"title":"Sent"},"accepted":{"type":"string","enum":["done","failed","pending","untracked"],"title":"Accepted"},"arrived":{"type":"string","enum":["done","failed","pending","untracked"],"title":"Arrived"},"read":{"type":"string","enum":["done","failed","pending","untracked"],"title":"Read"},"reason":{"anyOf":[{"type":"string","enum":["blocklist","blocked","bounced","dropped","spam_reported","deferred","refused_suppressed","refused_undeliverable","send_error","no_report","junk_suspected"]},{"type":"null"}],"title":"Reason"},"blocklist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocklist"}},"type":"object","required":["sent","accepted","arrived","read"],"title":"DeliveryTrail","description":"sent by us → accepted by SendGrid → arrived at the recipient's server →\nread. The failed step carries ``reason``."},"DeliveryUploadResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"storage_key":{"type":"string","title":"Storage Key"}},"type":"object","required":["upload_url","storage_key"],"title":"DeliveryUploadResponse","description":"Presigned PUT for an order's delivered (modified) file.\n\nUnlike ``UploadUrlResponse`` there is no ``OriginalFile`` row behind a delivery\nupload: the tuner uploads to ``storage_key`` and echoes it back to ``deliver``."},"DemoRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"website":{"type":"string","maxLength":200,"title":"Website","default":""},"event_type":{"type":"string","maxLength":64,"title":"Event Type","default":"product-demo"},"locale":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Locale"},"page_path":{"type":"string","maxLength":160,"title":"Page Path","default":"/"}},"type":"object","required":["name","email"],"title":"DemoRequest","description":"The marketing site's \"Pick a time\" step: who wants a demo, before a time."},"DeviceKeyCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"target":{"type":"string","enum":["agents","manage"],"title":"Target","default":"manage"},"code":{"anyOf":[{"type":"string","pattern":"^\\d{6}$"},{"type":"null"}],"title":"Code"}},"type":"object","required":["name"],"title":"DeviceKeyCreate","description":"A key for one app on one device, e.g. \"Thijmen's iPhone\". ``code`` works\nas for a ticket: a current authenticator code when the last verification\nis too old."},"DeviceKeyCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"target":{"type":"string","enum":["agents","manage"],"title":"Target"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","name","target","created_at","last_used_at","key"],"title":"DeviceKeyCreated","description":"The one response that carries the key itself; it is never shown again."},"DeviceKeyRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"target":{"type":"string","enum":["agents","manage"],"title":"Target"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","name","target","created_at","last_used_at"],"title":"DeviceKeyRead"},"DeviceRegisterResponse":{"properties":{"id":{"type":"string","title":"Id"},"platform":{"type":"string","title":"Platform"}},"type":"object","required":["id","platform"],"title":"DeviceRegisterResponse"},"DeviceTokenRegister":{"properties":{"token":{"type":"string","title":"Token"},"platform":{"type":"string","enum":["ios","android","web"],"title":"Platform"}},"type":"object","required":["token","platform"],"title":"DeviceTokenRegister"},"DirectAction":{"properties":{"kind":{"type":"string","const":"direct","title":"Kind"},"tuner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Id"}},"type":"object","required":["kind"],"title":"DirectAction"},"DirectCard":{"properties":{"order":{"$ref":"#/components/schemas/ChannelOrderRead"},"assigned_at":{"type":"string","format":"date-time","title":"Assigned At"},"alert_at":{"type":"string","format":"date-time","title":"Alert At"},"tuner_name":{"type":"string","title":"Tuner Name"},"started":{"type":"boolean","title":"Started"}},"type":"object","required":["order","assigned_at","alert_at","tuner_name","started"],"title":"DirectCard"},"DirectCreate":{"properties":{"scope":{"type":"string","title":"Scope"},"target_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Org Id"},"target_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target User Id"}},"type":"object","required":["scope"],"title":"DirectCreate","description":"Open (or re-open) a direct dealer↔tuner thread.\n\n``scope='org'`` needs ``target_org_id`` (a whole-company channel: every active\nuser of both orgs); ``scope='user'`` needs ``target_user_id`` (a 1:1 channel)."},"DirectOrderCreated":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"}},"type":"object","required":["order_id"],"title":"DirectOrderCreated","description":"The result of A sending a direct order — the created order's id so the UI\ncan jump straight to it."},"DispatchBoard":{"properties":{"server_time":{"type":"string","format":"date-time","title":"Server Time"},"bidding":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Bidding"},"restricted_pool":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Restricted Pool"},"direct":{"items":{"$ref":"#/components/schemas/DirectCard"},"type":"array","title":"Direct"}},"type":"object","required":["server_time"],"title":"DispatchBoard","description":"The live board. Bidding and pool cards stay empty until those actions\ndispatch; ``server_time`` keeps countdowns honest on the admin's clock."},"DisplaySettings":{"properties":{"title":{"type":"boolean","title":"Title","default":true},"description":{"type":"boolean","title":"Description","default":true},"images":{"type":"boolean","title":"Images","default":true},"condition":{"type":"boolean","title":"Condition","default":true},"codes":{"type":"boolean","title":"Codes","default":true},"vehicle":{"type":"boolean","title":"Vehicle","default":true}},"type":"object","title":"DisplaySettings","description":"Which product facts the public block shows for a sourced part."},"DivisionSelectBody":{"properties":{"division":{"type":"string","title":"Division"}},"type":"object","required":["division"],"title":"DivisionSelectBody"},"DnsCheck":{"properties":{"key":{"type":"string","enum":["dkim","dkim_selector","return_path","spf","dmarc","dmarc_alignment"],"title":"Key"},"status":{"type":"string","enum":["ok","warning","broken","unknown"],"title":"Status"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"expected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected"},"found":{"items":{"type":"string"},"type":"array","title":"Found"},"issue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue"},"params":{"additionalProperties":{"type":"string"},"type":"object","title":"Params"}},"type":"object","required":["key","status"],"title":"DnsCheck","description":"One record checked on a sending domain."},"DnsRecord":{"properties":{"type":{"type":"string","enum":["TXT","CNAME","MX"],"title":"Type"},"host":{"type":"string","title":"Host"},"value":{"type":"string","title":"Value"},"purpose":{"type":"string","enum":["spf","dkim","dmarc","return_path","brevo_code","inbound"],"title":"Purpose"},"required":{"type":"boolean","title":"Required","default":true}},"type":"object","required":["type","host","value","purpose"],"title":"DnsRecord","description":"One DNS record the tuner must publish to authenticate their domain."},"DocumentConfirm":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","maxLength":120,"minLength":1,"title":"Title"},"filename":{"type":"string","minLength":1,"title":"Filename"},"kind":{"type":"string","enum":["terms","privacy","warranty","price_list","other"],"title":"Kind","default":"other"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","required":["key","title","filename"],"title":"DocumentConfirm","description":"Confirm a finished upload and file it under a title + role."},"DocumentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"filename":{"type":"string","title":"Filename"},"kind":{"type":"string","enum":["terms","privacy","warranty","price_list","other"],"title":"Kind"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"published":{"type":"boolean","title":"Published"},"public_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","title","filename","kind","locale","content_type","size_bytes","published","public_url","created_at"],"title":"DocumentRead","description":"One document, with the link a tuner can hand out."},"DocumentUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Title"},"kind":{"anyOf":[{"type":"string","enum":["terms","privacy","warranty","price_list","other"]},{"type":"null"}],"title":"Kind"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"published":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Published"}},"type":"object","title":"DocumentUpdate","description":"Rename, re-file, or revoke. Every field optional — a partial edit."},"DocumentUploadRequest":{"properties":{"filename":{"type":"string","minLength":1,"title":"Filename"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["filename","content_type"],"title":"DocumentUploadRequest","description":"Ask for a presigned PUT to upload a shareable document."},"DocumentUploadResult":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"key":{"type":"string","title":"Key"}},"type":"object","required":["upload_url","key"],"title":"DocumentUploadResult","description":"A presigned PUT URL + the storage key to echo back on confirm."},"DomainCheckRead":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"domain":{"type":"string","title":"Domain"},"status":{"type":"string","enum":["ok","warning","broken","unknown"],"title":"Status"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"checks":{"items":{"$ref":"#/components/schemas/DnsCheck"},"type":"array","title":"Checks"}},"type":"object","required":["workspace_id","domain","status","checked_at","checks"],"title":"DomainCheckRead","description":"The latest DNS check of one workspace's verified sending domain."},"DownloadResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["download_url"],"title":"DownloadResponse"},"DraftCreate":{"properties":{"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"original_file_id":{"type":"string","format":"uuid","title":"Original File Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"}},"type":"object","required":["original_file_id"],"title":"DraftCreate","description":"Open a DRAFT order at the wizard confirm step (Flow A, file uploaded).\n\nCarries only what's known after upload + vehicle select; the stage / add-ons /\ncapture details are filled later via ``DraftUpdate``. No credit reserve and no\n``file_service.created`` until submit.\n\n``workspace_id`` is the destination the wizard currently holds; absent, it\nis inferred the way submit infers it. It is not saved on the draft: it\ndecides whether a draft without a car is allowed (that tuner's\n``order_vehicle_required``; no tuner at all always requires the car) and\nwhich credit kind the draft starts on. Submit routes on its own body, so a\ncaller with several tuners names the workspace again there."},"DraftEditIn":{"properties":{"body":{"anyOf":[{"type":"string","maxLength":8000,"minLength":1},{"type":"null"}],"title":"Body"},"amount_cents":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount Cents"},"stage":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Stage"},"vehicle_label":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Vehicle Label"},"valid_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Valid Days"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"answers":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAnswerIn"},"type":"array"},{"type":"null"}],"title":"Answers"}},"type":"object","title":"DraftEditIn","description":"A suggestion saved without sending: the same fields Send takes, every\none optional, absent meaning unchanged."},"DraftEditOut":{"properties":{"draft":{"$ref":"#/components/schemas/SiteFormMessageRead"},"held_quote":{"anyOf":[{"$ref":"#/components/schemas/HeldAgentQuoteRead"},{"type":"null"}]}},"type":"object","required":["draft"],"title":"DraftEditOut"},"DraftSendIn":{"properties":{"body":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Body"},"amount_cents":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount Cents"},"stage":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Stage"},"vehicle_label":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Vehicle Label"},"valid_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Valid Days"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"answers":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAnswerIn"},"type":"array"},{"type":"null"}],"title":"Answers"}},"type":"object","title":"DraftSendIn"},"DraftUpdate":{"properties":{"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"selected_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Stage"},"selected_addons":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Selected Addons"},"funding":{"anyOf":[{"type":"string","enum":["credits","direct"]},{"type":"null"}],"title":"Funding"},"credit_kind":{"anyOf":[{"type":"string","enum":["slave","master","general"]},{"type":"null"}],"title":"Credit Kind"},"file_variant":{"anyOf":[{"type":"string","enum":["encrypted","editable"]},{"type":"null"}],"title":"File Variant"},"price_credits":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Price Credits"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"read_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Tool"},"tool_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tool Id"},"hardware_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hardware Number"},"software_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software Number"},"ecu_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"on_dyno":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Dyno"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"dtc_codes":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Dtc Codes"},"attachments":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Attachments"}},"type":"object","title":"DraftUpdate","description":"Autosave a DRAFT order as later wizard steps are filled. Every field is\noptional; only those provided are written (the rest keep their saved value).\n\nSending one of the vehicle fields replaces the draft's car — a file\nidentified after the dealer moved on lands here — and clears the other, so\nthe two never coexist."},"DtcOut":{"properties":{"code":{"type":"string","title":"Code"},"meaning":{"type":"string","title":"Meaning"},"systems":{"items":{"type":"string"},"type":"array","title":"Systems"},"can_delete":{"type":"boolean","title":"Can Delete","default":false}},"type":"object","required":["code","meaning"],"title":"DtcOut"},"DtcPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DtcRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"DtcPage","description":"A page of trouble codes plus the total match count (admin pagination)."},"DtcRead":{"properties":{"code":{"type":"string","title":"Code"},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"},"price_credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Credits"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"}},"type":"object","required":["code","category","description"],"title":"DtcRead","description":"A trouble code as returned to clients."},"DtcUpdate":{"properties":{"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Price Credits"},"price_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price Cents"},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"}},"type":"object","required":["category","description"],"title":"DtcUpdate","description":"Edit payload (the code is the immutable key, taken from the path).\n\nPrices replace wholesale, per-currency map included — see ``DtcWrite``."},"DtcWrite":{"properties":{"code":{"type":"string","title":"Code"},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Price Credits"},"price_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price Cents"},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"}},"type":"object","required":["code","category","description"],"title":"DtcWrite","description":"Create payload for an admin-managed trouble code.\n\n``price_cents_by_currency`` replaces the pin map wholesale, so a currency the\nadmin leaves blank stops being pinned and its buyers fall back to the\nplatform's default DTC price for that currency."},"DynoConfirmRequest":{"properties":{"kind":{"type":"string","enum":["before","after"],"title":"Kind"},"key":{"type":"string","title":"Key"},"peak_power":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peak Power"},"peak_torque":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peak Torque"},"unit_power":{"type":"string","enum":["hp","ps","kw"],"title":"Unit Power","default":"hp"},"unit_torque":{"type":"string","enum":["nm","lbft"],"title":"Unit Torque","default":"nm"},"measurement":{"type":"string","enum":["wheel","crank"],"title":"Measurement","default":"wheel"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["kind","key"],"title":"DynoConfirmRequest","description":"Confirm a finished upload and persist the run with its metadata."},"DynoCurve":{"properties":{"source":{"type":"string","const":"model","title":"Source","default":"model"},"engine_id":{"type":"string","format":"uuid","title":"Engine Id"},"label":{"type":"string","title":"Label"},"peak_power_stock":{"type":"number","title":"Peak Power Stock"},"peak_power_stage1":{"type":"number","title":"Peak Power Stage1"},"peak_torque_stock":{"type":"number","title":"Peak Torque Stock"},"peak_torque_stage1":{"type":"number","title":"Peak Torque Stage1"},"power_rpm":{"type":"integer","title":"Power Rpm"},"torque_rpm":{"type":"integer","title":"Torque Rpm"},"torque_rpm_to":{"type":"integer","title":"Torque Rpm To"},"quoted_power_rpm":{"type":"string","title":"Quoted Power Rpm"},"quoted_torque_rpm":{"type":"string","title":"Quoted Torque Rpm"},"rpm":{"items":{"type":"integer"},"type":"array","title":"Rpm"},"power_stock":{"items":{"type":"number"},"type":"array","title":"Power Stock"},"power_stage1":{"items":{"type":"number"},"type":"array","title":"Power Stage1"},"torque_stock":{"items":{"type":"number"},"type":"array","title":"Torque Stock"},"torque_stage1":{"items":{"type":"number"},"type":"array","title":"Torque Stage1"}},"type":"object","required":["engine_id","label","peak_power_stock","peak_power_stage1","peak_torque_stock","peak_torque_stage1","power_rpm","torque_rpm","torque_rpm_to","quoted_power_rpm","quoted_torque_rpm","rpm","power_stock","power_stage1","torque_stock","torque_stage1"],"title":"DynoCurve","description":"A modelled power and torque curve of one engine, stock against Stage 1.\n\nDrawn from the catalogue's peak figures and the rpm the maker quotes for\nthem (:mod:`services.seo_catalogue.curves`): a model, never a dyno run.\nThe four ``peak_*`` are the catalogue figures the curves meet exactly."},"DynoRunRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"kind":{"type":"string","enum":["before","after"],"title":"Kind"},"file_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"peak_power":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peak Power"},"peak_torque":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peak Torque"},"unit_power":{"type":"string","enum":["hp","ps","kw"],"title":"Unit Power"},"unit_torque":{"type":"string","enum":["nm","lbft"],"title":"Unit Torque"},"measurement":{"type":"string","enum":["wheel","crank"],"title":"Measurement"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"uploaded_by":{"type":"string","format":"uuid","title":"Uploaded By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"}},"type":"object","required":["id","order_id","kind","file_content_type","size_bytes","peak_power","peak_torque","unit_power","unit_torque","measurement","notes","uploaded_by","created_at"],"title":"DynoRunRead","description":"A persisted run with a short-lived presigned GET url for its chart."},"DynoUploadUrlRequest":{"properties":{"kind":{"type":"string","enum":["before","after"],"title":"Kind"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["kind","content_type"],"title":"DynoUploadUrlRequest","description":"Ask for a presigned PUT to upload a before/after dyno chart."},"DynoUploadUrlResult":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"key":{"type":"string","title":"Key"}},"type":"object","required":["upload_url","key"],"title":"DynoUploadUrlResult","description":"A presigned PUT URL + the storage key to echo back on confirm."},"EarningsPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"earnings_cents":{"type":"integer","title":"Earnings Cents"}},"type":"object","required":["bucket","earnings_cents"],"title":"EarningsPoint","description":"The tuner's earnings (by created_at) on a single day."},"EarningsStatusSlice":{"properties":{"status":{"type":"string","title":"Status"},"amount_cents":{"type":"integer","title":"Amount Cents"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status","amount_cents","count"],"title":"EarningsStatusSlice","description":"The tuner's earnings amount + count for one status."},"EcuFacet":{"properties":{"value":{"type":"string","title":"Value"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["value","count"],"title":"EcuFacet","description":"One filterable value in a corpus partition, with how many files carry it."},"EcuFacts":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"tuning_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuning Tool"}},"type":"object","title":"EcuFacts","description":"Resolved ECU detail (§13.4 vehicle.ecu); from the catalogue match."},"EcuFileBlob":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"ext":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ext"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"}},"type":"object","required":["id","kind"],"title":"EcuFileBlob","description":"One stored blob of a family, with a presigned download URL."},"EcuFileDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"ecu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"vag_part":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vag Part"},"bosch_hw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosch Hw"},"bosch_sw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosch Sw"},"production_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Production Number"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"file_kinds":{"items":{"type":"string"},"type":"array","title":"File Kinds"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sw_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sw Version"},"normalized_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalized Sha256"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"files":{"items":{"$ref":"#/components/schemas/EcuFileBlob"},"type":"array","title":"Files"}},"type":"object","required":["id","created_at"],"title":"EcuFileDetail","description":"Full ECU-file detail (popup): family fields + blobs + fingerprint facts."},"EcuFileFacets":{"properties":{"families":{"items":{"$ref":"#/components/schemas/EcuFacet"},"type":"array","title":"Families"},"makes":{"items":{"$ref":"#/components/schemas/EcuFacet"},"type":"array","title":"Makes"},"ecu_types":{"items":{"$ref":"#/components/schemas/EcuFacet"},"type":"array","title":"Ecu Types"},"statuses":{"items":{"$ref":"#/components/schemas/EcuFacet"},"type":"array","title":"Statuses"}},"type":"object","title":"EcuFileFacets","description":"The distinct, count-bearing filter options for a corpus partition.\n\nDrives the Library's faceted filter bar: every list is the set of values that\nactually occur in the tuner's own files (so a filter can never yield zero), each\nwith its file count, ordered most-common first."},"EcuFileList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EcuFileRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["total","limit","offset"],"title":"EcuFileList","description":"Paged ECU-files result + total for the overview."},"EcuFilePatch":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"ecu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"bosch_hw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosch Hw"},"bosch_sw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosch Sw"},"vag_part":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vag Part"},"production_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Production Number"},"sw_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sw Version"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"EcuFilePatch","description":"Edit an ECU file's label/details (only provided fields are written).\n\n``make``/``model`` are merged into ``options.vehicle``; ``ecu_type``/``family``\nalso propagate to the linked fingerprint so the match index + ecu_reference\nderivation use the corrected label."},"EcuFileRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"ecu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"vag_part":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vag Part"},"bosch_hw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosch Hw"},"bosch_sw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosch Sw"},"production_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Production Number"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"file_kinds":{"items":{"type":"string"},"type":"array","title":"File Kinds"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","created_at"],"title":"EcuFileRow","description":"One row in the ECU-files corpus overview."},"EcuIndexPage":{"properties":{"indexed":{"type":"boolean","title":"Indexed"},"manufacturers":{"items":{"$ref":"#/components/schemas/ManufacturerGroup"},"type":"array","title":"Manufacturers"},"top_ecus":{"$ref":"#/components/schemas/RankedChart"},"ecus":{"type":"integer","title":"Ecus"},"engines":{"type":"integer","title":"Engines"}},"type":"object","required":["indexed","manufacturers","top_ecus","ecus","engines"],"title":"EcuIndexPage"},"EcuPage":{"properties":{"kind":{"type":"string","const":"ecu","title":"Kind","default":"ecu"},"ecu":{"$ref":"#/components/schemas/EcuRef"},"family":{"anyOf":[{"$ref":"#/components/schemas/FamilyRef"},{"type":"null"}]},"manufacturer":{"$ref":"#/components/schemas/ManufacturerRef"},"indexed":{"type":"boolean","title":"Indexed"},"makes":{"items":{"type":"string"},"type":"array","title":"Makes"},"fuel":{"anyOf":[{"type":"string","enum":["petrol","diesel","mixed"]},{"type":"null"}],"title":"Fuel"},"stats":{"$ref":"#/components/schemas/ScopeStats"},"turnaround":{"$ref":"#/components/schemas/Turnaround"},"files_per_month":{"$ref":"#/components/schemas/MonthSeries"},"ftr_trend":{"$ref":"#/components/schemas/FtrTrend"},"options":{"$ref":"#/components/schemas/OptionsChart"},"read_mix":{"$ref":"#/components/schemas/ReadMix"},"tools":{"items":{"$ref":"#/components/schemas/ToolSupport"},"type":"array","title":"Tools"},"vehicles":{"items":{"$ref":"#/components/schemas/VehicleRow"},"type":"array","title":"Vehicles"},"vehicles_total":{"type":"integer","title":"Vehicles Total"},"gains":{"items":{"$ref":"#/components/schemas/GainPoint"},"type":"array","title":"Gains"},"siblings":{"items":{"$ref":"#/components/schemas/EcuRef"},"type":"array","title":"Siblings"},"curves":{"items":{"$ref":"#/components/schemas/DynoCurve"},"type":"array","title":"Curves","default":[]}},"type":"object","required":["ecu","family","manufacturer","indexed","makes","fuel","stats","turnaround","files_per_month","ftr_trend","options","read_mix","tools","vehicles","vehicles_total","gains","siblings"],"title":"EcuPage"},"EcuRef":{"properties":{"manufacturer_slug":{"type":"string","title":"Manufacturer Slug"},"manufacturer":{"type":"string","title":"Manufacturer"},"family_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Slug"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"slug":{"type":"string","title":"Slug"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"engines":{"type":"integer","title":"Engines"},"orders":{"type":"integer","title":"Orders"},"indexed":{"type":"boolean","title":"Indexed"}},"type":"object","required":["manufacturer_slug","manufacturer","family_slug","family","slug","code","name","path","engines","orders","indexed"],"title":"EcuRef"},"EligibleTuner":{"properties":{"tuner_user_id":{"type":"string","format":"uuid","title":"Tuner User Id"},"display_name":{"type":"string","title":"Display Name"},"payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payout Cents"},"payout_basis":{"type":"string","enum":["split","default_split","bid","manual"],"title":"Payout Basis"}},"type":"object","required":["tuner_user_id","display_name","payout_basis"],"title":"EligibleTuner"},"EmailCopyRead":{"properties":{"email_type":{"type":"string","title":"Email Type"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"locale":{"type":"string","title":"Locale"},"slots":{"items":{"$ref":"#/components/schemas/SlotRead"},"type":"array","title":"Slots"},"locked":{"items":{"$ref":"#/components/schemas/LockedBlock"},"type":"array","title":"Locked","default":[]}},"type":"object","required":["email_type","label","description","locale","slots"],"title":"EmailCopyRead","description":"One editable email, resolved for one locale."},"EmailCopySummary":{"properties":{"email_type":{"type":"string","title":"Email Type"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"edited_locales":{"items":{"type":"string"},"type":"array","title":"Edited Locales"}},"type":"object","required":["email_type","label","description","edited_locales"],"title":"EmailCopySummary","description":"A row in the list of editable emails."},"EmailCopyWrite":{"properties":{"body":{"type":"string","maxLength":2000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"EmailCopyWrite"},"EmailDailyPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"type":"object","required":["day","counts"],"title":"EmailDailyPoint","description":"Per-UTC-day email counts by state over the filter window."},"EmailDashboardRead":{"properties":{"totals":{"$ref":"#/components/schemas/DashboardTotals"},"rates":{"$ref":"#/components/schemas/DashboardRates"},"campaigns":{"items":{"$ref":"#/components/schemas/DashboardCampaignRow"},"type":"array","title":"Campaigns"},"audience":{"$ref":"#/components/schemas/DashboardAudience"}},"type":"object","required":["totals","rates","campaigns","audience"],"title":"EmailDashboardRead","description":"The email dashboard payload — totals, rates, per-campaign rows, audience."},"EmailDeliveryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EmailDeliveryRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"state_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"State Counts"},"daily":{"items":{"$ref":"#/components/schemas/EmailDailyPoint"},"type":"array","title":"Daily"}},"type":"object","required":["items","total","state_counts","daily"],"title":"EmailDeliveryPage","description":"A page of the log plus the summary of everything the filters select."},"EmailDeliveryRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"address":{"type":"string","title":"Address"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"from_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Email"},"state":{"type":"string","enum":["pending","failed","sent","deferred","delivered","opened","clicked","unsubscribed","bounced","blocked","dropped","spam_reported"],"title":"State"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"delivery_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery State"},"delivery_state_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivery State At"},"delivery_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Detail"},"attempts":{"type":"integer","title":"Attempts"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"sender_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sender Workspace Id"},"sender_workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Workspace Name"},"sending_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sending Ip"},"blocklist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocklist"},"trail":{"$ref":"#/components/schemas/DeliveryTrail"}},"type":"object","required":["id","created_at","sent_at","address","organisation_id","organisation_name","category","subject","from_email","state","status","error","delivery_state","delivery_state_at","delivery_detail","attempts","provider_id","sender_workspace_id","sender_workspace_name","sending_ip","blocklist","trail"],"title":"EmailDeliveryRow","description":"One email the platform sent (or tried to), as the admin log shows it."},"EmailDomainDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"domain":{"type":"string","title":"Domain"},"dkim_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dkim Selector"},"spf_status":{"type":"string","title":"Spf Status"},"dkim_status":{"type":"string","title":"Dkim Status"},"dmarc_status":{"type":"string","title":"Dmarc Status"},"verified":{"type":"boolean","title":"Verified"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"reply_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Domain"},"inbound_status":{"type":"string","title":"Inbound Status","default":"pending"},"inbound_verified":{"type":"boolean","title":"Inbound Verified","default":false},"records":{"items":{"$ref":"#/components/schemas/DnsRecord"},"type":"array","title":"Records","default":[]},"recommended_subdomain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Subdomain"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes","default":[]},"record_checks":{"items":{"$ref":"#/components/schemas/RecordCheck"},"type":"array","title":"Record Checks","default":[]}},"type":"object","required":["id","tuner_workspace_id","domain","spf_status","dkim_status","dmarc_status","verified"],"title":"EmailDomainDetail","description":"Domain status plus the DNS records + onboarding notes for the tuner UI."},"EmailDomainRegister":{"properties":{"domain":{"type":"string","title":"Domain"}},"type":"object","required":["domain"],"title":"EmailDomainRegister"},"EmailHealthSummary":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"window_days":{"type":"integer","title":"Window Days"},"sending_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sending Domain"},"domain_verified":{"type":"boolean","title":"Domain Verified"},"verdict":{"type":"string","enum":["good","attention","problem","quiet"],"title":"Verdict"},"dealers_not_delivered":{"type":"integer","title":"Dealers Not Delivered"},"groups":{"$ref":"#/components/schemas/KpiGroups"},"campaign_deliverability":{"anyOf":[{"$ref":"#/components/schemas/DeliverabilityRead"},{"type":"null"}]},"domain_check":{"anyOf":[{"$ref":"#/components/schemas/DomainCheckRead"},{"type":"null"}]},"fix_items":{"items":{"$ref":"#/components/schemas/FixItem"},"type":"array","title":"Fix Items"}},"type":"object","required":["workspace_id","window_days","sending_domain","domain_verified","verdict","dealers_not_delivered","groups","campaign_deliverability","domain_check","fix_items"],"title":"EmailHealthSummary","description":"Everything the tuner's Domain health page opens with."},"EmailPreview":{"properties":{"subject":{"type":"string","title":"Subject"},"html":{"type":"string","title":"Html"}},"type":"object","required":["subject","html"],"title":"EmailPreview"},"EmailTemplateRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"document":{"additionalProperties":true,"type":"object","title":"Document"},"rendered_html":{"type":"string","title":"Rendered Html"},"plain_text":{"type":"string","title":"Plain Text"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","document","rendered_html","plain_text","created_at"],"title":"EmailTemplateRead","description":"A full email template."},"EmailTemplateWrite":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Description"},"document":{"additionalProperties":true,"type":"object","title":"Document"},"rendered_html":{"type":"string","title":"Rendered Html","default":""},"plain_text":{"type":"string","title":"Plain Text","default":""}},"type":"object","required":["name"],"title":"EmailTemplateWrite","description":"Create/update body for an email template.\n\nSame content triple as a campaign: ``rendered_html``/``plain_text`` are\nrendered CLIENT-side at save time from the EmailBuilder ``document`` and\nstored alongside it."},"EmailWebhookHealth":{"properties":{"status":{"type":"string","enum":["ok","rejecting","silent","unknown"],"title":"Status"},"signing_key_configured":{"type":"boolean","title":"Signing Key Configured"},"window_hours":{"type":"integer","title":"Window Hours"},"accepted":{"type":"integer","title":"Accepted"},"rejected":{"type":"integer","title":"Rejected"},"events":{"type":"integer","title":"Events"},"last_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Accepted At"},"last_rejected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Rejected At"},"last_rejected_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Rejected Reason"},"sent_in_window":{"type":"integer","title":"Sent In Window"}},"type":"object","required":["status","signing_key_configured","window_hours","accepted","rejected","events","last_accepted_at","last_rejected_at","last_rejected_reason","sent_in_window"],"title":"EmailWebhookHealth","description":"What the admin banner shows about the SendGrid Event Webhook."},"EmbedColors":{"properties":{"primary":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Primary"},"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Accent"},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Background"}},"type":"object","title":"EmbedColors","description":"The dealer's main-color overrides — validated 6-digit hex only, so the\nvalues are safe to inject as CSS custom-property values. A missing color\nfalls back to the tuner's brand primary, then the template default."},"EmbedDisplay":{"properties":{"show_prices":{"type":"boolean","title":"Show Prices","default":true},"price_mode":{"type":"string","enum":["credits","money"],"title":"Price Mode","default":"credits"},"show_cta":{"type":"boolean","title":"Show Cta","default":true},"cta_target":{"type":"string","enum":["inline","new_tab"],"title":"Cta Target","default":"inline"},"cta_href":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Cta Href"}},"type":"object","title":"EmbedDisplay","description":"What the dealer's widget shows, and where its button goes.\n\nEvery default reproduces the behaviour of a widget pasted before these\nexisted, so a dealer who never opens the setting sees no change.\n\n``price_mode`` is the one with a business consequence rather than a visual\none. The catalogue prices in CREDITS, which are currency-neutral; money is\ncredits times this tuner's rate, and that is the DEALER's trade price. A\ndealer showing it to retail visitors is publishing what they pay, so it is\nopt-in and named plainly in the settings rather than presented as a format\ntoggle."},"EmbedEnabledUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"EmbedEnabledUpdate","description":"Tuner kill switch for one dealer's widget."},"EmbedSessionRead":{"properties":{"token":{"type":"string","title":"Token"},"template":{"type":"string","enum":["classic","minimal","performance"],"title":"Template"},"colors":{"$ref":"#/components/schemas/EmbedColors"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuner Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"display":{"$ref":"#/components/schemas/EmbedDisplay"},"credit_rate_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Rate Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"},"locale":{"type":"string","title":"Locale","default":"nl"},"finder_goal":{"type":"string","enum":["","request_quote","create_account"],"title":"Finder Goal","default":""},"finder_plate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Finder Plate"},"finder_fields":{"items":{"$ref":"#/components/schemas/FinderField"},"type":"array","title":"Finder Fields"},"embed_key":{"type":"string","title":"Embed Key","default":""},"allowed_ancestors":{"items":{"type":"string"},"type":"array","title":"Allowed Ancestors"}},"type":"object","required":["token","template","colors","tuner_workspace_id","key_prefix","allowed_ancestors"],"title":"EmbedSessionRead","description":"What the iframe page needs to render + call the API: a short-lived\ntoken, the resolved styling, and the CSP ancestor list."},"EmbedSessionRequest":{"properties":{"key":{"type":"string","title":"Key"}},"type":"object","required":["key"],"title":"EmbedSessionRequest","description":"Just the publishable key — the embedding page's host is derived from the\nrequest's own Origin/Referer headers (browser-set, so a third-party page\ncannot claim someone else's domain; the Next embed middleware forwards the\niframe request's Referer on its server-side call)."},"EmbedSettingsRead":{"properties":{"key_prefix":{"type":"string","title":"Key Prefix"},"key":{"type":"string","title":"Key"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains"},"template":{"type":"string","enum":["classic","minimal","performance"],"title":"Template"},"colors":{"$ref":"#/components/schemas/EmbedColors"},"display":{"$ref":"#/components/schemas/EmbedDisplay"},"finder_fields":{"items":{"$ref":"#/components/schemas/FinderField"},"type":"array","title":"Finder Fields"},"enabled":{"type":"boolean","title":"Enabled"},"active":{"type":"boolean","title":"Active"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"last_used_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used Host"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"}},"type":"object","required":["key_prefix","key","domains","template","colors","enabled","active","tuner_workspace_id"],"title":"EmbedSettingsRead"},"EmbedSettingsUpdate":{"properties":{"domains":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Domains"},"template":{"type":"string","enum":["classic","minimal","performance"],"title":"Template","default":"classic"},"colors":{"$ref":"#/components/schemas/EmbedColors"},"display":{"$ref":"#/components/schemas/EmbedDisplay"},"finder_fields":{"items":{"$ref":"#/components/schemas/FinderField"},"type":"array","maxItems":12,"title":"Finder Fields"}},"type":"object","title":"EmbedSettingsUpdate","description":"Dealer save: domains (activation — zero = widget inactive), template,\ncolors, the search's conversion goal and its custom questions. Domains are\nnormalised server-side; invalid entries drop.\n\nThe dealer owns their widget outright — the tuner's lever is the existing\nkill switch, not a content veto — so the goal and the questions are theirs to\nset, exactly as the template and colors already are."},"EnableOut":{"properties":{"connector_key":{"type":"string","title":"Connector Key"}},"type":"object","required":["connector_key"],"title":"EnableOut"},"EngineEcuRead":{"properties":{"ecus":{"items":{"type":"string"},"type":"array","title":"Ecus","default":[]}},"type":"object","title":"EngineEcuRead","description":"Distinct ECU candidates for an engine (from the catalogue), for the confirm\nstep's suggestion picker. Empty when the catalogue has none; more than one when\nthe car may ship with either of several ECUs."},"EngineFacts":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"displacement_cc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Displacement Cc"},"cylinders":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cylinders"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"combustion_fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Combustion Fuel"},"hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hp"},"hp_electric":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hp Electric"},"hp_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hp Total"}},"type":"object","title":"EngineFacts","description":"Resolved engine detail (§13.4 vehicle.engine).\n\nFor electrified vehicles ``hp`` is the combustion power (hybrid) or the\nelectric power (BEV) — the figure used for catalogue matching. ``hp_electric``\n+ ``hp_total`` are set only for hybrids: the electric motor's power and the\ncombined system power (their sum; RDW publishes no official combined figure)."},"EngineSpecsRead":{"properties":{"power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Hp"},"combustion_power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Combustion Power Hp"},"electric_power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Electric Power Hp"},"torque_nm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Nm"},"displacement_cc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Displacement Cc"},"cylinders":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cylinders"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"gears":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gears"},"drivetrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivetrain"},"body_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Type"},"year_begin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year Begin"},"year_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year End"},"catalogue_node_id":{"type":"string","format":"uuid","title":"Catalogue Node Id"},"source":{"type":"string","title":"Source"}},"type":"object","required":["catalogue_node_id","source"],"title":"EngineSpecsRead"},"EngineSpecsWrite":{"properties":{"power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Hp"},"combustion_power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Combustion Power Hp"},"electric_power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Electric Power Hp"},"torque_nm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Nm"},"displacement_cc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Displacement Cc"},"cylinders":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cylinders"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"gears":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gears"},"drivetrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivetrain"},"body_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Type"},"year_begin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year Begin"},"year_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year End"}},"type":"object","title":"EngineSpecsWrite","description":"Hand-entered technical specs for an engine node (admin)."},"EngineStageRead":{"properties":{"stage":{"type":"string","title":"Stage"},"power_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Before"},"power_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power After"},"combustion_power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Combustion Power Hp"},"electric_power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Electric Power Hp"},"torque_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Before"},"torque_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque After"},"price_credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"},"estimated":{"type":"boolean","title":"Estimated","default":false},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["stage"],"title":"EngineStageRead","description":"One engine-level tuning stage with power/torque gains (order step 2)."},"EnquiryAttachmentRead":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"name":{"type":"string","title":"Name","default":"Attachment"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"status":{"type":"string","enum":["pending","stored","unavailable"],"title":"Status","default":"stored"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"}},"type":"object","title":"EnquiryAttachmentRead","description":"A file on a message — a WhatsApp photo or document mirrored from the\nagent platform.\n\n``status`` is what the inbox renders on: ``stored`` has a ``key`` to mint a\ndownload URL for; ``pending`` is still being copied (the platform announces\nthe turn before its own copy lands); ``unavailable`` will never arrive — the\nprovider dropped it, or every fetch attempt failed. The platform-side path\nthe copy comes from is internal and never exposed here."},"EnquiryList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EnquiryRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"unread":{"type":"integer","title":"Unread"},"open":{"type":"integer","title":"Open","default":0},"agent_handoffs":{"type":"integer","title":"Agent Handoffs","default":0},"agent_drafts":{"type":"integer","title":"Agent Drafts","default":0}},"type":"object","required":["items","total","unread"],"title":"EnquiryList"},"EnquiryRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"site_name":{"type":"string","title":"Site Name"},"site_accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Accent"},"source_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Host"},"page_path":{"type":"string","title":"Page Path"},"form_kind":{"type":"string","title":"Form Kind"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"awaiting_reply":{"type":"boolean","title":"Awaiting Reply","default":false},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acknowledged At"},"last_message_preview":{"type":"string","title":"Last Message Preview","default":""},"last_message_direction":{"anyOf":[{"type":"string","enum":["inbound","outbound"]},{"type":"null"}],"title":"Last Message Direction"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"last_message_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Message Amount Cents"},"last_message_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message Currency"},"agent_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent State"},"agent_handoff_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Handoff Reason"},"has_draft":{"type":"boolean","title":"Has Draft","default":false},"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"channel":{"type":"string","title":"Channel","default":"email"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"matched_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Matched Org Id"},"matched_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Kind"},"matched_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Name"},"matched_confirmed":{"type":"boolean","title":"Matched Confirmed","default":false}},"type":"object","required":["id","workspace_id","site_name","page_path","form_kind","fields","read_at","archived_at","created_at"],"title":"EnquiryRead","description":"One lead in the org-wide inbox, tagged with the site it arrived through.\n\n``site_accent`` is the site's own brand colour (``branding.visual.primary\n_color``) when set — the inbox draws the source chip from it, falling back to\na colour hashed from ``workspace_id``. ``source_host`` is the actual domain\nthe visitor submitted from."},"EntitlementKeyRead":{"properties":{"key":{"type":"string","title":"Key"},"kind":{"type":"string","title":"Kind"},"default":{"title":"Default"},"label_key":{"type":"string","title":"Label Key"},"gateable":{"type":"boolean","title":"Gateable"}},"type":"object","required":["key","kind","label_key","gateable"],"title":"EntitlementKeyRead","description":"One entitlement-registry key, as data for the matrix editor (§13.3b/§13.8)."},"EscalateIn":{"properties":{"reason":{"type":"string","enum":["needs_human","billing","bug","account","other"],"title":"Reason"},"summary":{"type":"string","maxLength":4000,"minLength":1,"title":"Summary"}},"additionalProperties":false,"type":"object","required":["reason","summary"],"title":"EscalateIn"},"EscalateOut":{"properties":{"ticket_ref":{"type":"string","title":"Ticket Ref"},"status":{"type":"string","const":"open","title":"Status"},"note":{"type":"string","title":"Note"}},"type":"object","required":["ticket_ref","status","note"],"title":"EscalateOut"},"EscalateRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"EscalateRequest","description":"Escalate an order thread to platform support (opens an admin ticket)."},"EscalationRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"vehicle_status":{"type":"string","enum":["catalogue","unlisted","unspecified"],"title":"Vehicle Status","default":"catalogue"},"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","reason","created_at"],"title":"EscalationRow","description":"One order in a problem state on the escalations board."},"EstimateLine":{"properties":{"description":{"type":"string","title":"Description"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["description","amount"],"title":"EstimateLine"},"EstimateOut":{"properties":{"external_ref":{"type":"string","title":"External Ref"},"estimate_ref":{"type":"string","title":"Estimate Ref"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","enum":["awaiting_approval","approved","not_priced"],"title":"Status"},"lines":{"items":{"$ref":"#/components/schemas/EstimateLine"},"type":"array","title":"Lines"}},"type":"object","required":["external_ref","estimate_ref","currency","status"],"title":"EstimateOut"},"EuroRefundRequest":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["order_id","amount_cents"],"title":"EuroRefundRequest","description":"Admin partial/full money refund of a paid order (gross cents)."},"EvcCheckoutRequest":{"properties":{"evc_customer_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Evc Customer Number"},"pack_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pack Id"},"credits":{"anyOf":[{"type":"integer","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Credits"},"email":{"type":"string","maxLength":254,"minLength":3,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company"},"country":{"type":"string","maxLength":2,"minLength":2,"pattern":"^[A-Za-z]{2}$","title":"Country","default":"NL"},"vat_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Vat Number"},"provider":{"anyOf":[{"type":"string","enum":["stripe","paypal"]},{"type":"null"}],"title":"Provider"}},"type":"object","required":["evc_customer_number","email"],"title":"EvcCheckoutRequest","description":"A WinOLS buyer paying for credits, with or without an account here.\n\nExactly one of ``pack_id`` (a bundle) or ``credits`` (their own amount,\npriced at the tuner's per-credit rate) — the route refuses both and neither,\nbecause a purchase that could be read two ways is a purchase that can be\ncharged two ways."},"EvcConnectionRead":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"api_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"has_password":{"type":"boolean","title":"Has Password"},"last_reconciled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reconciled At"}},"type":"object","required":["enabled","api_id","username","has_password","last_reconciled_at"],"title":"EvcConnectionRead","description":"A workspace's reseller connection, as the tuner sees it.\n\nThe API password is never returned — only whether one is stored."},"EvcConnectionWrite":{"properties":{"api_id":{"type":"string","maxLength":64,"minLength":1,"title":"Api Id"},"username":{"type":"string","maxLength":32,"minLength":1,"title":"Username"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["api_id","username","password"],"title":"EvcConnectionWrite"},"EvcCustomerCheck":{"properties":{"evc_customer_number":{"type":"integer","title":"Evc Customer Number"},"exists":{"type":"boolean","title":"Exists"},"linked":{"type":"boolean","title":"Linked"},"balance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Balance"}},"type":"object","required":["evc_customer_number","exists","linked"],"title":"EvcCustomerCheck","description":"Answer to \"can this number receive credits from us?\".\n\n``exists`` is EVC's customer base; ``linked`` is whether they are already\nours. A number that does not exist must never be charged for — the credits\nwould land nowhere recoverable.\n\n``balance`` is what they hold *with this reseller* — EVC keeps a separate\naccount per reseller/customer pair, so an unlinked number has no balance\nwith us to report and gets ``None``. It is also ``None`` when EVC could not\nbe asked: the buy page treats it as a nicety, never as a gate."},"EvcCustomerCheckRequest":{"properties":{"evc_customer_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Evc Customer Number"}},"type":"object","required":["evc_customer_number"],"title":"EvcCustomerCheckRequest"},"EvcCustomerRead":{"properties":{"membership_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Membership Id"},"dealer_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer Org Id"},"evc_customer_number":{"type":"integer","title":"Evc Customer Number"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"balance":{"type":"integer","title":"Balance"},"evc_balance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evc Balance"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"}},"type":"object","required":["membership_id","dealer_org_id","evc_customer_number","company","balance","evc_balance","last_synced_at"],"title":"EvcCustomerRead","description":"One WinOLS buyer of this reseller."},"EvcInviteCustomer":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"company":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","default":"NL"}},"type":"object","required":["email"],"title":"EvcInviteCustomer"},"EvcLinkCustomer":{"properties":{"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"}},"type":"object","required":["dealer_org_id"],"title":"EvcLinkCustomer"},"EvcOutstanding":{"properties":{"pending":{"type":"integer","title":"Pending"},"unsettled":{"type":"integer","title":"Unsettled"},"unlinked":{"type":"integer","title":"Unlinked","default":0},"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["pending","unsettled","credits"],"title":"EvcOutstanding","description":"Deliveries a tuner still owes buyers, shown before switching EVC off.\n\nSwitching off stops new sales but never cancels these — the worker keeps\nservicing a disabled workspace until they resolve. The numbers exist so the\ntuner knows what is still in flight, not to block them."},"EvcPurchaseRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"evc_customer_number":{"type":"integer","title":"Evc Customer Number"},"purchased_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Purchased At"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"series":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"},"ecu_manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Manufacturer"},"ecu_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Number"},"software":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software"},"project_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Type"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"dealer_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer Org Id"},"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"}},"type":"object","required":["id","evc_customer_number","purchased_at","filename","manufacturer","model","series","output","ecu_manufacturer","ecu_number","software","project_type"],"title":"EvcPurchaseRead"},"EvcStorefront":{"properties":{"tuner_name":{"type":"string","title":"Tuner Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"packs":{"items":{"$ref":"#/components/schemas/EvcStorefrontPack"},"type":"array","title":"Packs"},"heading":{"type":"string","title":"Heading"},"intro":{"type":"string","title":"Intro"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"cents_per_credit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cents Per Credit"}},"type":"object","required":["tuner_name","logo_url","packs","heading","intro"],"title":"EvcStorefront","description":"Everything the buyer page needs before anyone has an account.\n\nPublic by design: the visitor arrived from a greyed reseller row in WinOLS\nand is deciding whether to buy, so the tuner's name, their packs, and the\nprices all have to be readable without signing in."},"EvcStorefrontPack":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"credits":{"type":"string","title":"Credits"},"prices":{"additionalProperties":{"type":"integer"},"type":"object","title":"Prices"}},"type":"object","required":["id","name","credits","prices"],"title":"EvcStorefrontPack","description":"One buyable WinOLS credit pack, priced for an anonymous visitor."},"EvcUnlinkedCustomer":{"properties":{"evc_customer_number":{"type":"integer","title":"Evc Customer Number"},"purchases":{"type":"integer","title":"Purchases"},"last_purchase_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Purchase At"},"evc_balance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evc Balance"}},"type":"object","required":["evc_customer_number","purchases"],"title":"EvcUnlinkedCustomer","description":"An EVC customer who bought from this reseller but is no dealer of ours.\n\nEVC gives us their number and what they bought, never who they are — so the\ntuner links them to a dealer they know, or invites them by email."},"EventTypeInput":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"duration_minutes":{"type":"integer","maximum":1440.0,"minimum":5.0,"title":"Duration Minutes"},"buffer_before_minutes":{"type":"integer","maximum":1440.0,"minimum":0.0,"title":"Buffer Before Minutes","default":0},"buffer_after_minutes":{"type":"integer","maximum":1440.0,"minimum":0.0,"title":"Buffer After Minutes","default":0},"min_notice_minutes":{"type":"integer","maximum":525600.0,"minimum":0.0,"title":"Min Notice Minutes","default":120},"horizon_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Horizon Days","default":365},"max_per_day":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Max Per Day"},"granularity_minutes":{"type":"integer","maximum":1440.0,"minimum":5.0,"title":"Granularity Minutes","default":30},"location_kind":{"type":"string","enum":["video","phone","onsite"],"title":"Location Kind","default":"video"},"location_value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Location Value"},"auto_confirm":{"type":"boolean","title":"Auto Confirm","default":true},"reminder_offsets":{"items":{"type":"integer"},"type":"array","maxItems":6,"title":"Reminder Offsets"},"agent_bookable":{"type":"boolean","title":"Agent Bookable","default":true},"public_bookable":{"type":"boolean","title":"Public Bookable","default":true},"requires_email":{"type":"boolean","title":"Requires Email","default":true},"is_active":{"type":"boolean","title":"Is Active","default":true},"service_matches":{"items":{"$ref":"#/components/schemas/ServiceMatch"},"type":"array","maxItems":200,"title":"Service Matches"},"is_default_booking_type":{"type":"boolean","title":"Is Default Booking Type","default":false},"booking_mode":{"type":"string","enum":["appointment","drop_off"],"title":"Booking Mode","default":"appointment"},"intake_fields":{"items":{"$ref":"#/components/schemas/IntakeField"},"type":"array","maxItems":12,"title":"Intake Fields"}},"additionalProperties":false,"type":"object","required":["name","duration_minutes"],"title":"EventTypeInput","description":"Rules for future bookings; existing bookings retain their snapshot."},"EventTypeList":{"properties":{"workspace_slug":{"type":"string","title":"Workspace Slug"},"workspace_name":{"type":"string","title":"Workspace Name"},"timezone":{"type":"string","title":"Timezone"},"event_types":{"items":{"$ref":"#/components/schemas/PublicEventType"},"type":"array","title":"Event Types"}},"type":"object","required":["workspace_slug","workspace_name","timezone","event_types"],"title":"EventTypeList","description":"What this workspace can be booked for, and the zone its calendar runs in."},"EventTypeOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["id","slug","name","description"],"title":"EventTypeOut","description":"One thing this workspace can be booked for.\n\nThe list is what the model chooses from, which is the point: a tuner who\nadds \"Dyno session\" in the portal becomes offerable without a prompt change\nor a deploy, where a free-text ``service`` string meant the agent could only\never name the words somebody had written into its instructions.\n\n``slug`` is the parameter — it is what ``/slots`` takes. ``id`` is carried\nfor correlation with the portal and is never sent back to us."},"EventTypeRead":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"duration_minutes":{"type":"integer","maximum":1440.0,"minimum":5.0,"title":"Duration Minutes"},"buffer_before_minutes":{"type":"integer","maximum":1440.0,"minimum":0.0,"title":"Buffer Before Minutes","default":0},"buffer_after_minutes":{"type":"integer","maximum":1440.0,"minimum":0.0,"title":"Buffer After Minutes","default":0},"min_notice_minutes":{"type":"integer","maximum":525600.0,"minimum":0.0,"title":"Min Notice Minutes","default":120},"horizon_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Horizon Days","default":365},"max_per_day":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Max Per Day"},"granularity_minutes":{"type":"integer","maximum":1440.0,"minimum":5.0,"title":"Granularity Minutes","default":30},"location_kind":{"type":"string","enum":["video","phone","onsite"],"title":"Location Kind","default":"video"},"location_value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Location Value"},"auto_confirm":{"type":"boolean","title":"Auto Confirm","default":true},"reminder_offsets":{"items":{"type":"integer"},"type":"array","maxItems":6,"title":"Reminder Offsets"},"agent_bookable":{"type":"boolean","title":"Agent Bookable","default":true},"public_bookable":{"type":"boolean","title":"Public Bookable","default":true},"requires_email":{"type":"boolean","title":"Requires Email","default":true},"is_active":{"type":"boolean","title":"Is Active","default":true},"service_matches":{"items":{"$ref":"#/components/schemas/ServiceMatch"},"type":"array","maxItems":200,"title":"Service Matches"},"is_default_booking_type":{"type":"boolean","title":"Is Default Booking Type","default":false},"booking_mode":{"type":"string","enum":["appointment","drop_off"],"title":"Booking Mode","default":"appointment"},"intake_fields":{"items":{"$ref":"#/components/schemas/IntakeField"},"type":"array","maxItems":12,"title":"Intake Fields"},"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"is_platform_default":{"type":"boolean","title":"Is Platform Default","default":false}},"additionalProperties":false,"type":"object","required":["name","duration_minutes","id","slug"],"title":"EventTypeRead"},"EventTypes":{"properties":{"timezone":{"type":"string","title":"Timezone"},"event_types":{"items":{"$ref":"#/components/schemas/EventTypeRead"},"type":"array","title":"Event Types"}},"type":"object","required":["timezone","event_types"],"title":"EventTypes"},"ExcludedTuner":{"properties":{"tuner_user_id":{"type":"string","format":"uuid","title":"Tuner User Id"},"display_name":{"type":"string","title":"Display Name"},"reason":{"type":"string","enum":["not_in_rule","not_active","terms_not_signed","payouts_disabled","no_bidding_rights","open_strike","margin_below_minimum"],"title":"Reason"}},"type":"object","required":["tuner_user_id","display_name","reason"],"title":"ExcludedTuner"},"ExitAnswer":{"properties":{"reason":{"type":"string","enum":["stripe","pricing","dealers","need_help","just_looking","other"],"title":"Reason"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["reason"],"title":"ExitAnswer","description":"An answer to \"What's stopping you?\"."},"ExtraCosts":{"properties":{"delivery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery"},"service_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Fee"},"service_fee_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Fee Note"},"other_costs":{"items":{"type":"string"},"type":"array","title":"Other Costs"},"destination":{"type":"string","title":"Destination"},"destination_verified":{"type":"boolean","title":"Destination Verified","default":false},"currency":{"type":"string","const":"EUR","title":"Currency","default":"EUR"}},"type":"object","required":["destination"],"title":"ExtraCosts","description":"Internal observations, not a fabricated checkout total."},"FailRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"FailRequest"},"FamilyEcuRow":{"properties":{"ecu":{"$ref":"#/components/schemas/EcuRef"},"makes":{"items":{"type":"string"},"type":"array","title":"Makes"},"files":{"$ref":"#/components/schemas/Stat"},"median_min":{"$ref":"#/components/schemas/Stat"},"ftr_pct":{"$ref":"#/components/schemas/Stat"}},"type":"object","required":["ecu","makes","files","median_min","ftr_pct"],"title":"FamilyEcuRow"},"FamilyPage":{"properties":{"kind":{"type":"string","const":"family","title":"Kind","default":"family"},"family":{"$ref":"#/components/schemas/FamilyRef"},"manufacturer":{"$ref":"#/components/schemas/ManufacturerRef"},"indexed":{"type":"boolean","title":"Indexed"},"makes":{"items":{"type":"string"},"type":"array","title":"Makes"},"fuel":{"anyOf":[{"type":"string","enum":["petrol","diesel","mixed"]},{"type":"null"}],"title":"Fuel"},"stats":{"$ref":"#/components/schemas/ScopeStats"},"files_by_ecu":{"$ref":"#/components/schemas/RankedChart"},"ecus":{"items":{"$ref":"#/components/schemas/FamilyEcuRow"},"type":"array","title":"Ecus"},"ecus_total":{"type":"integer","title":"Ecus Total"},"tools":{"items":{"$ref":"#/components/schemas/ToolSupport"},"type":"array","title":"Tools"},"related":{"items":{"$ref":"#/components/schemas/FamilyRef"},"type":"array","title":"Related"},"curve":{"anyOf":[{"$ref":"#/components/schemas/DynoCurve"},{"type":"null"}]}},"type":"object","required":["family","manufacturer","indexed","makes","fuel","stats","files_by_ecu","ecus","ecus_total","tools","related"],"title":"FamilyPage"},"FamilyRef":{"properties":{"manufacturer_slug":{"type":"string","title":"Manufacturer Slug"},"manufacturer":{"type":"string","title":"Manufacturer"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"ecus":{"type":"integer","title":"Ecus"},"engines":{"type":"integer","title":"Engines"},"orders":{"type":"integer","title":"Orders"},"files":{"$ref":"#/components/schemas/Stat"},"indexed":{"type":"boolean","title":"Indexed"}},"type":"object","required":["manufacturer_slug","manufacturer","slug","name","path","ecus","engines","orders","files","indexed"],"title":"FamilyRef","description":"A family link. ``files`` is the family's files-written figure, the same\none its page shows (the sum of its ECUs' figures when sampled)."},"FavouriteAction":{"properties":{"kind":{"type":"string","const":"favourite","title":"Kind"}},"type":"object","required":["kind"],"title":"FavouriteAction"},"FileIdentificationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"original_file_id":{"type":"string","format":"uuid","title":"Original File Id"},"declared_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Tool"},"declared_read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Read Method"},"declared_master_slave":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Master Slave"},"declared_target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Target"},"detected_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Format"},"format_tool_mismatch":{"type":"boolean","title":"Format Tool Mismatch","default":false},"regions":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Regions"},"read_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Kind"},"identifiers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Identifiers"},"normalized_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalized Sha256"},"matches":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Matches"},"candidates":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Candidates"},"decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"reasons":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Reasons"},"resolved_ecu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Ecu Type"},"resolved_tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Tcu Type"},"resolved_hw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Hw"},"resolved_sw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Sw"},"resolved_plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Plate"},"plate_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Plate Confidence"},"plate_verified":{"type":"boolean","title":"Plate Verified","default":false},"plate_vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Vehicle"},"plate_engine_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plate Engine Node Id"},"filename_ecu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Ecu"},"filename_ecu_hw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Ecu Hw"},"filename_ecu_sw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Ecu Sw"},"filename_ecu_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Ecu Tier"},"filename_vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Vehicle"},"filename_vehicle_make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Vehicle Make"},"filename_vehicle_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Vehicle Model"},"filename_vehicle_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filename Vehicle Year"},"filename_vehicle_power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filename Vehicle Power Hp"},"filename_vehicle_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Vehicle Tier"},"filename_conflict":{"type":"boolean","title":"Filename Conflict","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organisation_id","original_file_id","created_at"],"title":"FileIdentificationRead","description":"API projection of one persisted ``file_identifications`` row.\n\nSurfaced to the wizard, which polls / subscribes for the identification result\nafter upload and routes on ``decision`` (AUTO_FILL / CONFIRM / ESCALATE)."},"FileServiceCreate":{"properties":{"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"selected_stage":{"type":"string","title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons","default":[]},"original_file_id":{"type":"string","format":"uuid","title":"Original File Id"},"price_credits":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Price Credits"},"funding":{"type":"string","enum":["credits","direct"],"title":"Funding","default":"credits"},"credit_kind":{"anyOf":[{"type":"string","enum":["slave","master","general"]},{"type":"null"}],"title":"Credit Kind"},"file_variant":{"anyOf":[{"type":"string","enum":["encrypted","editable"]},{"type":"null"}],"title":"File Variant"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"bill_to_invoice":{"type":"boolean","title":"Bill To Invoice","default":true},"override_price_cents":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Override Price Cents"},"plate":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Plate"},"vin":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Vin"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"read_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Tool"},"tool_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tool Id"},"hardware_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hardware Number"},"software_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software Number"},"ecu_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"on_dyno":{"type":"boolean","title":"On Dyno","default":false},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"dtc_codes":{"items":{},"type":"array","title":"Dtc Codes","default":[]},"attachments":{"items":{},"type":"array","title":"Attachments","default":[]}},"type":"object","required":["selected_stage","original_file_id","price_credits"],"title":"FileServiceCreate"},"FileServiceCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"funding":{"type":"string","title":"Funding"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"credit_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Kind"},"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"vehicle_status":{"type":"string","enum":["catalogue","unlisted","unspecified"],"title":"Vehicle Status","default":"catalogue"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"selected_stage":{"type":"string","title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"assigned_tuner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Tuner Id"},"first_order":{"type":"boolean","title":"First Order","default":false}},"type":"object","required":["id","status","funding","selected_stage","selected_addons","price_credits","submitted_at","delivered_at","accepted_at","assigned_tuner_id"],"title":"FileServiceCreated","description":"A just-placed order, plus whether it is the buyer's first — the browser\nreports that moment as ``first_order_placed``."},"FileServiceDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"funding":{"type":"string","title":"Funding"},"credit_kind":{"type":"string","title":"Credit Kind"},"origin":{"type":"string","title":"Origin","default":"dealer"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"file_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Variant"},"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"vehicle_status":{"type":"string","enum":["catalogue","unlisted","unspecified"],"title":"Vehicle Status","default":"catalogue"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"ecu_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Label"},"selected_stage":{"type":"string","title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"assigned_tuner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Tuner Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"read_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Tool"},"hardware_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hardware Number"},"software_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software Number"},"ecu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"on_dyno":{"type":"boolean","title":"On Dyno","default":false},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"dtc":{"items":{"$ref":"#/components/schemas/OrderDtc"},"type":"array","title":"Dtc","default":[]},"original_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Original File Id"},"original_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original File Name"},"original_file_checksum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original File Checksum"},"original_file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Original File Size"},"tool_vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Vendor"},"tool_slave_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Slave Ref"},"tool_decrypted":{"type":"boolean","title":"Tool Decrypted","default":false},"dealer":{"anyOf":[{"$ref":"#/components/schemas/OrderDealer"},{"type":"null"}]},"vehicle":{"anyOf":[{"$ref":"#/components/schemas/OrderVehicle"},{"type":"null"}]},"winols":{"anyOf":[{"$ref":"#/components/schemas/WinolsOrderInfo"},{"type":"null"}]},"events":{"items":{"$ref":"#/components/schemas/OrderEventRead"},"type":"array","title":"Events","default":[]},"revisions":{"items":{"$ref":"#/components/schemas/OrderRevisionRead"},"type":"array","title":"Revisions","default":[]},"revision_count":{"type":"integer","title":"Revision Count","default":0},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"ticket_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ticket Id"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"quote_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Quote Id"},"quote_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Status"},"quote_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quote Amount Cents"},"quote_from_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote From Org Name"}},"type":"object","required":["id","status","funding","credit_kind","selected_stage","selected_addons","price_credits","submitted_at","delivered_at","accepted_at","assigned_tuner_id"],"title":"FileServiceDetail","description":"Full order detail — every captured field plus resolved labels, the\noriginal-file metadata, the activity timeline, and support links."},"FileServiceListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"funding":{"type":"string","title":"Funding"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"credit_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Kind"},"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"vehicle_status":{"type":"string","enum":["catalogue","unlisted","unspecified"],"title":"Vehicle Status","default":"catalogue"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"selected_stage":{"type":"string","title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"assigned_tuner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Tuner Id"},"origin":{"type":"string","title":"Origin","default":"dealer"}},"type":"object","required":["id","status","funding","selected_stage","selected_addons","price_credits","submitted_at","delivered_at","accepted_at","assigned_tuner_id"],"title":"FileServiceListItem","description":"One row of an organisation's own order list. ``origin='winols'`` marks a\nfile bought in WinOLS, which the list labels instead of a car-status badge."},"FileServiceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"funding":{"type":"string","title":"Funding"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"credit_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Kind"},"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"vehicle_status":{"type":"string","enum":["catalogue","unlisted","unspecified"],"title":"Vehicle Status","default":"catalogue"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"selected_stage":{"type":"string","title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"assigned_tuner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Tuner Id"}},"type":"object","required":["id","status","funding","selected_stage","selected_addons","price_credits","submitted_at","delivered_at","accepted_at","assigned_tuner_id"],"title":"FileServiceRead","description":"An order as its lists show it.\n\n``billing_mode`` is the rail the order was placed on, which outranks\n``funding``: an on-invoice order keeps the ``credits`` its form defaulted to.\n``credit_kind`` names the wallet a credit-funded order spent."},"FinanceCurrencyTotals":{"properties":{"currency":{"type":"string","title":"Currency"},"total_revenue_cents":{"type":"integer","title":"Total Revenue Cents"},"dealer_revenue_cents":{"type":"integer","title":"Dealer Revenue Cents"},"pool_revenue_cents":{"type":"integer","title":"Pool Revenue Cents"},"cost_cents":{"type":"integer","title":"Cost Cents"},"dealer_cost_cents":{"type":"integer","title":"Dealer Cost Cents"},"pool_cost_cents":{"type":"integer","title":"Pool Cost Cents"},"bought_cents":{"type":"integer","title":"Bought Cents","default":0},"net_cents":{"type":"integer","title":"Net Cents","default":0},"vat_cents":{"type":"integer","title":"Vat Cents","default":0},"fees_cents":{"type":"integer","title":"Fees Cents","default":0},"fees_estimated_cents":{"type":"integer","title":"Fees Estimated Cents","default":0}},"type":"object","required":["currency","total_revenue_cents","dealer_revenue_cents","pool_revenue_cents","cost_cents","dealer_cost_cents","pool_cost_cents"],"title":"FinanceCurrencyTotals","description":"One currency's slice of the finance summary — never blended with others.\n\nRevenue is what buyers paid minus VAT minus payment fees, counted when they\npaid. ``fees_cents`` is those payment fees, ``fees_estimated_cents`` the\npart still estimated because the transfer (after the refund hold) has not\nrun. ``vat_cents`` is the VAT collected — not revenue, shown for reference."},"FinanceFlowPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"sold_cents":{"type":"integer","title":"Sold Cents"},"bought_cents":{"type":"integer","title":"Bought Cents"}},"type":"object","required":["bucket","sold_cents","bought_cents"],"title":"FinanceFlowPoint","description":"One bucket of the P&L flow: revenue sold in, outsourcing bought out."},"FinanceRevenuePoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"dealer_cents":{"type":"integer","title":"Dealer Cents"},"pool_cents":{"type":"integer","title":"Pool Cents"}},"type":"object","required":["bucket","dealer_cents","pool_cents"],"title":"FinanceRevenuePoint"},"FinanceSummary":{"properties":{"total_revenue_cents":{"type":"integer","title":"Total Revenue Cents"},"dealer_revenue_cents":{"type":"integer","title":"Dealer Revenue Cents"},"pool_revenue_cents":{"type":"integer","title":"Pool Revenue Cents"},"cost_cents":{"type":"integer","title":"Cost Cents"},"dealer_cost_cents":{"type":"integer","title":"Dealer Cost Cents"},"pool_cost_cents":{"type":"integer","title":"Pool Cost Cents"},"bought_cents":{"type":"integer","title":"Bought Cents","default":0},"net_cents":{"type":"integer","title":"Net Cents","default":0},"vat_cents":{"type":"integer","title":"Vat Cents","default":0},"fees_cents":{"type":"integer","title":"Fees Cents","default":0},"fees_estimated_cents":{"type":"integer","title":"Fees Estimated Cents","default":0},"by_currency":{"items":{"$ref":"#/components/schemas/FinanceCurrencyTotals"},"type":"array","title":"By Currency","default":[]}},"type":"object","required":["total_revenue_cents","dealer_revenue_cents","pool_revenue_cents","cost_cents","dealer_cost_cents","pool_cost_cents"],"title":"FinanceSummary","description":"The scalar fields are the EUR totals (the platform's primary currency);\n``by_currency`` carries every currency's slice, EUR included, so non-EUR\nrevenue is visible instead of silently blended into one number."},"FinanceWindow":{"type":"string","enum":["7d","30d","mtd","90d","1y","all"],"title":"FinanceWindow"},"FinanceWinols":{"properties":{"orders":{"type":"integer","title":"Orders"},"credits":{"type":"integer","title":"Credits"},"priced_orders":{"type":"integer","title":"Priced Orders"},"value_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"}},"type":"object","required":["orders","credits","priced_orders"],"title":"FinanceWinols","description":"Files the tuner's buyers bought in WinOLS within the window.\n\nNot revenue on top of the summary: the buyer paid with EVC credits, and the\nmoney for those came in — and is already counted — when the credits were\nsold. ``value_cents`` puts the credits used at what a WinOLS credit has\nbrought the tuner on average (EUR, take-home); None until a credit has been\nsold here. ``priced_orders`` is how many of ``orders`` we know the cost of —\nEVC reports none, so it is learnt from the buyer's balance."},"FinderAddonPublic":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"featured":{"type":"boolean","title":"Featured","default":false},"source":{"type":"string","enum":["platform","workspace"],"title":"Source","default":"platform"},"eligibility":{"anyOf":[{"type":"string","enum":["eligible","ineligible","verify"]},{"type":"null"}],"title":"Eligibility"}},"type":"object","required":["code","name","category"],"title":"FinderAddonPublic","description":"A public quote-finder add-on option (prices deliberately omitted).\n\nThe curated, engine-filtered options a tuner surfaces on their microsite's\nvehicle finder. The visitor picks options to signal intent and the tuner\nprices the final quote, so the price book never leaves the authed surfaces.\n``source`` marks a tuner's own service (``workspace``) vs the shared platform\ncatalogue; ``eligibility`` carries the per-engine gate (``verify`` when a\nhardware prerequisite can't be confirmed)."},"FinderField":{"properties":{"key":{"type":"string","maxLength":48,"pattern":"^[a-z0-9_]+$","title":"Key"},"label":{"type":"string","maxLength":120,"title":"Label"},"type":{"type":"string","enum":["checkbox","text","textarea","select"],"title":"Type","default":"text"},"options":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Options"},"required":{"type":"boolean","title":"Required","default":false},"help_text":{"type":"string","maxLength":200,"title":"Help Text","default":""},"placeholder":{"type":"string","maxLength":120,"title":"Placeholder","default":""},"position":{"type":"integer","title":"Position","default":0},"archived":{"type":"boolean","title":"Archived","default":false},"show_when":{"anyOf":[{"$ref":"#/components/schemas/FinderFieldCondition"},{"type":"null"}]}},"type":"object","required":["key","label"],"title":"FinderField","description":"One question a tuner or dealer added to their own vehicle-search form.\n\n``key`` is machine-generated and never re-used: answers already collected\nreference it, so renaming the ``label`` must leave old submissions readable\nrather than silently re-labelling what a customer actually answered.\n\n``archived`` rather than delete, for the same reason — removing a question\nmust not orphan the answers it has already gathered."},"FinderFieldCondition":{"properties":{"source":{"type":"string","enum":["stage","option","answer"],"title":"Source"},"key":{"anyOf":[{"type":"string","maxLength":48},{"type":"null"}],"title":"Key"},"any_of":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Any Of"}},"type":"object","required":["source"],"title":"FinderFieldCondition","description":"Ask a question only when an earlier decision matches.\n\nOne source and a set of accepted values. ``stage`` and ``option`` read the\ntune and services the visitor picked; ``answer`` reads an earlier question,\nwhich the editor restricts to one positioned before this — that ordering is\nwhat makes a cycle impossible without a dependency graph."},"FixItem":{"properties":{"key":{"type":"string","enum":["own_team_platform_sender","blocked_by_blocklist","dealer_bouncing","spam_reports","junk_suspected","delivery_rate_low","dkim","dkim_selector","return_path","spf","dmarc","dmarc_alignment","domain_not_verified"],"title":"Key"},"severity":{"type":"string","enum":["ok","info","warning","problem"],"title":"Severity"},"owner":{"type":"string","enum":["you","platform","dealer","done"],"title":"Owner"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"addresses":{"items":{"type":"string"},"type":"array","title":"Addresses"},"params":{"additionalProperties":{"type":"string"},"type":"object","title":"Params"},"link":{"type":"string","enum":["emails","dealers","sending_domain","none"],"title":"Link","default":"none"},"link_state":{"anyOf":[{"type":"string","enum":["pending","failed","sent","deferred","delivered","opened","clicked","unsubscribed","bounced","blocked","dropped","spam_reported"]},{"type":"null"}],"title":"Link State"}},"type":"object","required":["key","severity","owner"],"title":"FixItem","description":"One line of the \"Fix these\" list. ``key`` picks the copy; ``owner`` says\nwhose move it is; ``link`` where the fix lives."},"FlagAction":{"properties":{"action":{"type":"string","enum":["reject_listing","suspend_selling"],"title":"Action"},"note":{"type":"string","maxLength":2000,"minLength":1,"title":"Note"}},"type":"object","required":["action","note"],"title":"FlagAction"},"FlagRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source":{"type":"string","enum":["screening","report"],"title":"Source"},"target_type":{"type":"string","enum":["addon","stage","product","site","workspace"],"title":"Target Type"},"target_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"matched":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"reporter_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporter Email"},"status":{"type":"string","enum":["open","dismissed","actioned"],"title":"Status"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","source","target_type","status","created_at"],"title":"FlagRead"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"FtrTrend":{"properties":{"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"points":{"items":{"$ref":"#/components/schemas/TrendPoint"},"type":"array","title":"Points"}},"type":"object","required":["source","points"],"title":"FtrTrend"},"FundingBalance":{"properties":{"currency":{"type":"string","title":"Currency"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"available_cents":{"type":"integer","title":"Available Cents"}},"type":"object","required":["currency","available_cents"],"title":"FundingBalance","description":"One available balance: a currency on Stripe (per funding bucket) or on\nPayPal."},"FundingOverview":{"properties":{"stripe":{"items":{"$ref":"#/components/schemas/FundingBalance"},"type":"array","title":"Stripe"},"paypal":{"items":{"$ref":"#/components/schemas/FundingBalance"},"type":"array","title":"Paypal"},"pending":{"items":{"$ref":"#/components/schemas/FundingPending"},"type":"array","title":"Pending"},"top_ups":{"items":{"$ref":"#/components/schemas/FundingTopUp"},"type":"array","title":"Top Ups"},"transfer_source_type":{"type":"string","title":"Transfer Source Type"}},"type":"object","required":["stripe","paypal","pending","top_ups","transfer_source_type"],"title":"FundingOverview","description":"What a hand-made Stripe top-up has to cover: the platform's Stripe and\nPayPal balances, the PayPal-paid sales still waiting for their tuner\ntransfer, and the shortfall per currency."},"FundingPending":{"properties":{"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"purpose":{"type":"string","title":"Purpose"},"currency":{"type":"string","title":"Currency"},"amount_cents":{"type":"integer","title":"Amount Cents"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"due_at":{"type":"string","format":"date-time","title":"Due At"},"status":{"type":"string","enum":["waiting","due","disputed"],"title":"Status"}},"type":"object","required":["payment_id","tuner_workspace_id","purpose","currency","amount_cents","created_at","due_at","status"],"title":"FundingPending","description":"A PayPal-paid sale whose tuner transfer has not gone out yet."},"FundingTopUp":{"properties":{"currency":{"type":"string","title":"Currency"},"due_cents":{"type":"integer","title":"Due Cents"},"available_cents":{"type":"integer","title":"Available Cents"},"shortfall_cents":{"type":"integer","title":"Shortfall Cents"}},"type":"object","required":["currency","due_cents","available_cents","shortfall_cents"],"title":"FundingTopUp","description":"What the Stripe balance is short of to pay every due PayPal-paid sale."},"FunnelStages":{"properties":{"submitted":{"type":"integer","title":"Submitted"},"processing":{"type":"integer","title":"Processing"},"delivered":{"type":"integer","title":"Delivered"},"revisions":{"type":"integer","title":"Revisions"},"completed":{"type":"integer","title":"Completed"}},"type":"object","required":["submitted","processing","delivered","revisions","completed"],"title":"FunnelStages","description":"Order-lifecycle funnel counts within a window."},"GainPoint":{"properties":{"label":{"type":"string","title":"Label"},"power_stock":{"type":"integer","title":"Power Stock"},"power_stage1":{"type":"integer","title":"Power Stage1"}},"type":"object","required":["label","power_stock","power_stage1"],"title":"GainPoint"},"GiveBackRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"GiveBackRequest","description":"Why the partner hands the order back; shown to the delegating tuner."},"GoogleLocationRead":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"}},"type":"object","required":["name","title"],"title":"GoogleLocationRead"},"GoogleLocationSelect":{"properties":{"location":{"type":"string","title":"Location"}},"type":"object","required":["location"],"title":"GoogleLocationSelect"},"GoogleReviewPublic":{"properties":{"author_name":{"type":"string","title":"Author Name"},"author_photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Photo Url"},"rating":{"type":"integer","title":"Rating"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"google_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Uri"}},"type":"object","required":["author_name","rating","created_at"],"title":"GoogleReviewPublic","description":"One review as the public site renders it.\n\nEvery attribution Google requires is a required field here — author, the link\nto the review on Maps, and the time — so the block cannot be built without\nthem by accident."},"GoogleReviewsCallback":{"properties":{"code":{"type":"string","title":"Code"},"state":{"type":"string","title":"State"},"redirect_uri":{"type":"string","title":"Redirect Uri"}},"type":"object","required":["code","state","redirect_uri"],"title":"GoogleReviewsCallback"},"GoogleReviewsConnect":{"properties":{"redirect_uri":{"type":"string","title":"Redirect Uri"}},"type":"object","required":["redirect_uri"],"title":"GoogleReviewsConnect","description":"Where Google should return the tuner after consent."},"GoogleReviewsPublic":{"properties":{"rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rating"},"total_count":{"type":"integer","title":"Total Count"},"sort":{"type":"string","title":"Sort"},"reviews":{"items":{"$ref":"#/components/schemas/GoogleReviewPublic"},"type":"array","title":"Reviews"}},"type":"object","required":["total_count","sort","reviews"],"title":"GoogleReviewsPublic","description":"The block's payload: the summary, the reviews, and how they are ordered."},"GoogleReviewsStatus":{"properties":{"connected":{"type":"boolean","title":"Connected"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"location_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Label"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"last_validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Validated At"}},"type":"object","required":["connected"],"title":"GoogleReviewsStatus","description":"What the portal renders. Deliberately carries no token material."},"GrantCreditsRequest":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"kind":{"type":"string","enum":["slave","master","general"],"title":"Kind","default":"slave"},"reason":{"type":"string","title":"Reason","default":""},"buyer_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Buyer Workspace Id"}},"type":"object","required":["amount"],"title":"GrantCreditsRequest","description":"A tuner grants (amount > 0) or deducts (amount < 0) goodwill credits on one\nof their dealers' wallet WITH THIS TUNER. Zero is rejected. A grant sends the\ndealer the tuner-branded \"credits added\" email; a deduction is silent."},"GroupCreate":{"properties":{"name":{"type":"string","title":"Name"},"participant_user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Participant User Ids","default":[]}},"type":"object","required":["name"],"title":"GroupCreate","description":"Open a named group thread the caller owns, enrolling the given users."},"GuestBuyer":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"marketing_opt_in":{"type":"boolean","title":"Marketing Opt In","default":false},"terms_accepted":{"type":"boolean","title":"Terms Accepted","default":false}},"type":"object","required":["country"],"title":"GuestBuyer","description":"The guest's pre-checkout identity: country decides VAT before the Stripe\nsession exists (email is otherwise collected by Stripe)."},"GuestCheckoutRequest":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/CheckoutLine"},"type":"array","title":"Lines"},"buyer":{"$ref":"#/components/schemas/GuestBuyer"},"shipping_rate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipping Rate Id"},"provider":{"anyOf":[{"type":"string","enum":["stripe","paypal"]},{"type":"null"}],"title":"Provider"},"return_origin":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Return Origin"}},"type":"object","required":["lines","buyer"],"title":"GuestCheckoutRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthEmailPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/HealthEmailRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"HealthEmailPage"},"HealthEmailRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"address":{"type":"string","title":"Address"},"recipient_kind":{"type":"string","enum":["dealer","team","other"],"title":"Recipient Kind"},"recipient_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"state":{"type":"string","enum":["pending","failed","sent","deferred","delivered","opened","clicked","unsubscribed","bounced","blocked","dropped","spam_reported"],"title":"State"},"state_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"State At"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"trail":{"$ref":"#/components/schemas/DeliveryTrail"},"unopened_streak":{"type":"integer","title":"Unopened Streak"},"junk_suspected":{"type":"boolean","title":"Junk Suspected"}},"type":"object","required":["id","created_at","address","recipient_kind","recipient_name","category","subject","state","state_at","detail","trail","unopened_streak","junk_suspected"],"title":"HealthEmailRow","description":"One email sent under a workspace's name, as the tuner sees it. No provider\nplumbing and never a secret: auth-mail subjects are stored without codes."},"HeatCell":{"properties":{"day":{"type":"integer","title":"Day"},"hour":{"type":"integer","title":"Hour"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["day","hour","value"],"title":"HeatCell","description":"Median turnaround of orders queued on ``day`` (0 = Monday) at ``hour``."},"Heatmap":{"properties":{"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"hours":{"items":{"type":"integer"},"type":"array","title":"Hours"},"cells":{"items":{"$ref":"#/components/schemas/HeatCell"},"type":"array","title":"Cells"}},"type":"object","required":["source","hours","cells"],"title":"Heatmap"},"HeldAgentQuoteRead":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"},"line_refs":{"items":{"type":"string"},"type":"array","title":"Line Refs","default":[]},"explanation":{"type":"string","title":"Explanation","default":""},"cover_text":{"type":"string","title":"Cover Text","default":""},"cover_source":{"anyOf":[{"type":"string","enum":["pending_reply","sent_reply"]},{"type":"null"}],"title":"Cover Source"},"stage":{"type":"string","title":"Stage","default":""},"vehicle_label":{"type":"string","title":"Vehicle Label","default":""},"valid_days":{"type":"integer","title":"Valid Days","default":14},"options":{"items":{"type":"string"},"type":"array","title":"Options","default":[]},"answers":{"items":{"$ref":"#/components/schemas/CustomAnswerIn"},"type":"array","title":"Answers","default":[]},"lead_stage":{"type":"string","title":"Lead Stage","default":""},"lead_vehicle_label":{"type":"string","title":"Lead Vehicle Label","default":""}},"type":"object","required":["amount_cents"],"title":"HeldAgentQuoteRead","description":"A proposal waiting on the tuner, as the review dialog needs to see it.\n\n``cover_text`` is what the customer will read on the quote email if the\ntuner sends without touching it — the assistant's reply for this turn.\n``cover_source`` says where that text stands: ``pending_reply`` means the\nreply's own email has not left yet and :meth:`settle_agent_quote` folds it\ninto the quote (one email), ``sent_reply`` means the customer already has\nit as a reply and the quote repeats it unless the tuner rewrites it. None\nwhen the agent never wrote a plain reply on the thread. ``explanation`` is\nthe agent's reasoning for the number — for the tuner, never the customer.\n\n``stage`` / ``vehicle_label`` / ``valid_days`` / ``options`` / ``answers``\nare the values the quote will go out with — the tuner's saved edits where\nthere are any, otherwise what the agent and the lead established.\n``lead_stage`` / ``lead_vehicle_label`` are the lead's own selection, so a\nreviewer can see what an edit changed it from. Empty where the lead never\nchose one."},"HelpAdminArticleDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"locale":{"type":"string","title":"Locale"},"audience":{"type":"string","title":"Audience"},"visibility":{"type":"string","title":"Visibility"},"category":{"type":"string","title":"Category"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"source":{"type":"string","enum":["corpus","admin"],"title":"Source"},"chunk_count":{"type":"integer","title":"Chunk Count"},"helpful":{"type":"integer","title":"Helpful"},"unhelpful":{"type":"integer","title":"Unhelpful"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"body":{"type":"string","title":"Body"}},"type":"object","required":["id","slug","locale","audience","visibility","category","title","source","chunk_count","helpful","unhelpful","updated_at","body"],"title":"HelpAdminArticleDetail"},"HelpAdminArticleIn":{"properties":{"title":{"type":"string","maxLength":200,"minLength":3,"title":"Title"},"body":{"type":"string","maxLength":60000,"minLength":1,"title":"Body"},"slug":{"anyOf":[{"type":"string","maxLength":128,"pattern":"^[a-z0-9-]+$"},{"type":"null"}],"title":"Slug"},"audience":{"type":"string","enum":["dealer","tuner","both"],"title":"Audience","default":"both"},"visibility":{"type":"string","enum":["public","internal"],"title":"Visibility","default":"internal"},"category":{"type":"string","maxLength":64,"title":"Category","default":"general"},"locale":{"type":"string","enum":["en","nl","de","fr"],"title":"Locale","default":"en"},"summary":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Summary"}},"type":"object","required":["title","body"],"title":"HelpAdminArticleIn","description":"An admin-authored knowledge document.\n\nSlug optional on create (derived from the title); immutable after. These\ndocuments live only in the database (``source_path`` NULL) — the corpus\nsync never touches them — and are indexed through the exact pipeline git\narticles use, so the assistant retrieves them the moment they save."},"HelpAdminArticleRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"locale":{"type":"string","title":"Locale"},"audience":{"type":"string","title":"Audience"},"visibility":{"type":"string","title":"Visibility"},"category":{"type":"string","title":"Category"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"source":{"type":"string","enum":["corpus","admin"],"title":"Source"},"chunk_count":{"type":"integer","title":"Chunk Count"},"helpful":{"type":"integer","title":"Helpful"},"unhelpful":{"type":"integer","title":"Unhelpful"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","slug","locale","audience","visibility","category","title","source","chunk_count","helpful","unhelpful","updated_at"],"title":"HelpAdminArticleRow","description":"One knowledge-table row — corpus and admin documents side by side."},"HelpArticleRead":{"properties":{"article_id":{"type":"string","title":"Article Id"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"audience":{"type":"string","title":"Audience"},"category":{"type":"string","title":"Category"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"updated":{"type":"string","title":"Updated"},"body":{"type":"string","title":"Body"}},"type":"object","required":["article_id","title","audience","category","updated","body"],"title":"HelpArticleRead"},"HelpAssistantStatus":{"properties":{"client_id_configured":{"type":"boolean","title":"Client Id Configured"},"connector_key_configured":{"type":"boolean","title":"Connector Key Configured"},"upstream_connected":{"type":"boolean","title":"Upstream Connected","default":false},"upstream_paused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Upstream Paused"},"connector_credential_stored":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Connector Credential Stored"},"articles":{"type":"integer","title":"Articles"},"admin_articles":{"type":"integer","title":"Admin Articles"},"chunks":{"type":"integer","title":"Chunks"},"last_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Updated"},"last_mirrored_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Mirrored At"}},"type":"object","required":["client_id_configured","connector_key_configured","articles","admin_articles","chunks"],"title":"HelpAssistantStatus","description":"The integration, as one screen: what is configured on OUR side, what\nthe agent platform reports for the help client, and the index's shape."},"HelpChatHistoryOut":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/HelpChatMessage"},"type":"array","title":"Messages","default":[]}},"type":"object","title":"HelpChatHistoryOut","description":"The reader's conversation so far.\n\nThe panel keeps a per-tab transcript for liveness, but that dies with the\ntab while the conversation itself does not — it is one continuous thread per\nperson, upstream and in the admin inbox. Without this the panel opened blank\non every new tab and the reader could not see what they had already been\ntold, even though their next message would continue the same conversation."},"HelpChatMessage":{"properties":{"id":{"type":"string","title":"Id"},"author":{"type":"string","enum":["user","assistant"],"title":"Author"},"text":{"type":"string","title":"Text"}},"type":"object","required":["id","author","text"],"title":"HelpChatMessage","description":"One turn of the reader's own help conversation, as the panel renders it."},"HelpChatTurnIn":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"},"current_route":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Current Route"},"message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Message Id"}},"type":"object","required":["session_id","text"],"title":"HelpChatTurnIn","description":"One user turn from the portal panel. ``session_id`` is minted by the\nbrowser per panel session; it scopes the reply relay, never authorizes."},"HelpChatTurnOut":{"properties":{"status":{"type":"string","enum":["queued","unconfigured"],"title":"Status"}},"type":"object","required":["status"],"title":"HelpChatTurnOut","description":"``unconfigured`` tells the panel to degrade to search-only mode —\na first-class state, not an error."},"HelpDeflection":{"properties":{"days":{"type":"integer","title":"Days"},"window_hours":{"type":"integer","title":"Window Hours"},"answered":{"type":"integer","title":"Answered"},"deflected":{"type":"integer","title":"Deflected"}},"type":"object","required":["days","window_hours","answered","deflected"],"title":"HelpDeflection","description":"Reading instead of asking. A proxy — see the repository docstring."},"HelpFeedbackIn":{"properties":{"article_slug":{"type":"string","maxLength":128,"minLength":1,"title":"Article Slug"},"helpful":{"type":"boolean","title":"Helpful"},"comment":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Comment"},"path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Path"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"type":"object","required":["article_slug","helpful"],"title":"HelpFeedbackIn"},"HelpFeedbackOut":{"properties":{"status":{"type":"string","const":"recorded","title":"Status"}},"type":"object","required":["status"],"title":"HelpFeedbackOut"},"HelpFeedbackRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"article_slug":{"type":"string","title":"Article Slug"},"locale":{"type":"string","title":"Locale"},"helpful":{"type":"boolean","title":"Helpful"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"source":{"type":"string","title":"Source"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","article_slug","locale","helpful","source"],"title":"HelpFeedbackRow"},"HelpSearchClickIn":{"properties":{"search_id":{"type":"string","format":"uuid","title":"Search Id"},"article_slug":{"type":"string","maxLength":128,"minLength":1,"title":"Article Slug"}},"type":"object","required":["search_id","article_slug"],"title":"HelpSearchClickIn","description":"The reader opened a result. Ties an article to the query that found\nit — the difference between a search that worked and one that did not."},"HelpSearchGroupRow":{"properties":{"query":{"type":"string","title":"Query"},"searches":{"type":"integer","title":"Searches"},"misses":{"type":"integer","title":"Misses"},"no_click":{"type":"integer","title":"No Click"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"top_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Slug"},"last_seen":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen"}},"type":"object","required":["query","searches","misses","no_click"],"title":"HelpSearchGroupRow","description":"One normalized query, with what happened to every instance of it."},"HelpSearchResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/HelpSearchResult"},"type":"array","title":"Results"},"truncated":{"type":"boolean","title":"Truncated","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"answered_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answered Locale"},"search_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Search Id"}},"type":"object","required":["results"],"title":"HelpSearchResponse"},"HelpSearchResult":{"properties":{"article_id":{"type":"string","title":"Article Id"},"title":{"type":"string","title":"Title"},"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"},"text":{"type":"string","title":"Text"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"updated":{"type":"string","title":"Updated"},"score":{"type":"number","title":"Score"}},"type":"object","required":["article_id","title","text","updated","score"],"title":"HelpSearchResult"},"HelpSearchSummary":{"properties":{"days":{"type":"integer","title":"Days"},"searches":{"type":"integer","title":"Searches"},"misses":{"type":"integer","title":"Misses"},"no_click":{"type":"integer","title":"No Click"},"clicked":{"type":"integer","title":"Clicked"},"locale_fallbacks":{"type":"integer","title":"Locale Fallbacks"}},"type":"object","required":["days","searches","misses","no_click","clicked","locale_fallbacks"],"title":"HelpSearchSummary","description":"The window's headline numbers, as the console's status strip reads."},"HelpSyncReport":{"properties":{"scanned":{"type":"integer","title":"Scanned"},"upserted":{"type":"integer","title":"Upserted"},"unchanged":{"type":"integer","title":"Unchanged"},"deleted":{"type":"integer","title":"Deleted"},"chunks":{"type":"integer","title":"Chunks"},"embedded":{"type":"integer","title":"Embedded"},"synced_at":{"type":"string","format":"date-time","title":"Synced At"}},"type":"object","required":["scanned","upserted","unchanged","deleted","chunks","embedded","synced_at"],"title":"HelpSyncReport"},"HiddenItem":{"properties":{"item_type":{"type":"string","enum":["stage","addon"],"title":"Item Type"},"item_key":{"type":"string","title":"Item Key"}},"type":"object","required":["item_type","item_key"],"title":"HiddenItem","description":"One platform item a tuner has removed from their workspace: a stage label\n(``item_type=\"stage\"``) or an add-on code (``item_type=\"addon\"``)."},"HiddenItemWrite":{"properties":{"item_type":{"type":"string","enum":["stage","addon"],"title":"Item Type"},"item_key":{"type":"string","maxLength":64,"minLength":1,"title":"Item Key"}},"type":"object","required":["item_type","item_key"],"title":"HiddenItemWrite","description":"Hide a platform stage (by label) or add-on (by code) in this workspace."},"HistogramBin":{"properties":{"lo":{"type":"integer","title":"Lo"},"hi":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hi"},"pct":{"type":"number","title":"Pct"}},"type":"object","required":["lo","hi","pct"],"title":"HistogramBin","description":"Share of delivered files whose turnaround fell in ``[lo, hi)`` minutes."},"HistoryImportBatch":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"source_platform":{"type":"string","title":"Source Platform"},"source_file_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source File Key"},"status":{"type":"string","title":"Status"},"dry_run":{"type":"boolean","title":"Dry Run"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"},"checkpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","tuner_workspace_id","source_platform","status","dry_run","created_at"],"title":"HistoryImportBatch","description":"A history-import batch's lifecycle state — the FE poll target.\n\n``status`` walks ``queued -> staging -> validated -> loading -> completed``\n(or ``failed``); ``counts`` accumulates the running tallies\n(``orders_new`` / ``orders_skip`` / ``files_new`` / ``errors``)."},"HistoryImportCounts":{"properties":{"orders_new":{"type":"integer","title":"Orders New","default":0},"orders_skip":{"type":"integer","title":"Orders Skip","default":0},"files_new":{"type":"integer","title":"Files New","default":0},"errors":{"type":"integer","title":"Errors","default":0}},"type":"object","title":"HistoryImportCounts","description":"Running tallies of a dry-run or load, mirrored onto ``import_batches``."},"HistoryImportReport":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run"},"counts":{"$ref":"#/components/schemas/HistoryImportCounts"},"sample":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sample"},"errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Errors"}},"type":"object","required":["dry_run"],"title":"HistoryImportReport","description":"The outcome of a run: totals, a sample of planned orders, and errors."},"HistoryImportUploadRequest":{"properties":{"source_platform":{"type":"string","maxLength":64,"minLength":1,"title":"Source Platform"},"content_type":{"type":"string","title":"Content Type","default":"application/zip"}},"type":"object","required":["source_platform"],"title":"HistoryImportUploadRequest","description":"Open a history-import batch and ask for a presigned PUT for its bundle.\n\n``source_platform`` labels the export's origin and is pinned on the batch —\nthe bundle manifest must declare the same value or the run is rejected.\n``content_type`` is echoed into the presigned PUT, so the client's upload\nrequest must send the identical ``Content-Type`` header."},"HistoryImportUploadResult":{"properties":{"import_batch_id":{"type":"string","format":"uuid","title":"Import Batch Id"},"upload_url":{"type":"string","title":"Upload Url"},"storage_key":{"type":"string","title":"Storage Key"}},"type":"object","required":["import_batch_id","upload_url","storage_key"],"title":"HistoryImportUploadResult","description":"The created batch id plus the presigned PUT + object key for the bundle."},"HoldRead":{"properties":{"hold_id":{"type":"string","format":"uuid","title":"Hold Id"},"session_token":{"type":"string","title":"Session Token"},"event_type":{"type":"string","title":"Event Type"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"timezone":{"type":"string","title":"Timezone"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["hold_id","session_token","event_type","starts_at","timezone","expires_at"],"title":"HoldRead","description":"A slot held while the visitor fills in the form.\n\n``session_token`` is the hold's credential — keep it and send it back to\nmove the hold or to convert it into a booking. A hold carries no manage\ntoken; it is not yet an appointment."},"HoldRequest":{"properties":{"event_type":{"type":"string","maxLength":64,"title":"Event Type","default":"product-demo"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"session_token":{"anyOf":[{"type":"string","maxLength":64,"minLength":16},{"type":"null"}],"title":"Session Token"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["starts_at"],"title":"HoldRequest","description":"Take a slot off the board while the form is filled in."},"HomepageFeaturedWrite":{"properties":{"featured":{"type":"boolean","title":"Featured"}},"type":"object","required":["featured"],"title":"HomepageFeaturedWrite","description":"Admin toggle body for featuring a tuner on the public homepage strip."},"HostInput":{"properties":{"display_name":{"type":"string","maxLength":120,"minLength":1,"title":"Display Name"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"additionalProperties":false,"type":"object","required":["display_name"],"title":"HostInput","description":"A person or resource exposed on a workspace's appointment type."},"HostedSessionResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"HostedSessionResponse"},"HostedUrl":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"HostedUrl"},"HsnTsn":{"properties":{"hsn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hsn"},"tsn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tsn"}},"type":"object","title":"HsnTsn","description":"DACH HSN/TSN type-approval pair (§13.4); null outside DACH."},"IdentityFieldRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"required":{"type":"boolean","title":"Required"},"applies_to":{"type":"string","enum":["seller","buyer","both"],"title":"Applies To"},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern"},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"}},"type":"object","required":["key","label","required","applies_to"],"title":"IdentityFieldRead","description":"One country's identity field, as the profile forms need to render it.\n\nThe wire shape of ``data.config.identity_fields.FieldDef``. Served rather than\nduplicated in the frontend so adding a country to the registry reaches the\nforms, the validator and the invoice renderer at once."},"IdentityFormRead":{"properties":{"tax_id_label":{"type":"string","title":"Tax Id Label"},"has_vat":{"type":"boolean","title":"Has Vat"},"vies_checkable":{"type":"boolean","title":"Vies Checkable"},"tax_id_example":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id Example"},"fields":{"items":{"$ref":"#/components/schemas/IdentityFieldRead"},"type":"array","title":"Fields"}},"type":"object","required":["tax_id_label","has_vat","vies_checkable","fields"],"title":"IdentityFormRead","description":"What a company in one country (and state) states about itself.\n\nOne response rather than a bare list because the primary tax id's NAME is\ncountry-specific too — a US company has an EIN, not a VAT number — and a form\nthat got the fields from the server but hardcoded that label would still ask\na US company for VAT."},"IllustrationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"template":{"type":"string","title":"Template"},"template_version":{"type":"string","title":"Template Version"},"brand":{"type":"string","enum":["ttg","ttf"],"title":"Brand"},"theme":{"type":"string","enum":["light","dark"],"title":"Theme"},"size":{"type":"string","enum":["inline","og"],"title":"Size"},"props":{"additionalProperties":true,"type":"object","title":"Props"},"status":{"type":"string","enum":["queued","rendering","ready","failed"],"title":"Status"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"alt":{"type":"string","title":"Alt"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"rendered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rendered At"},"markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown","description":"The image as a Markdown line, ready to paste into an article.","readOnly":true}},"type":"object","required":["id","tuner_workspace_id","template","template_version","brand","theme","size","props","status","url","width","height","alt","error","created_at","rendered_at","markdown"],"title":"IllustrationRead","description":"A render and, once ``ready``, the public image it produced."},"IllustrationRequest":{"properties":{"template":{"type":"string","maxLength":64,"minLength":1,"title":"Template"},"props":{"additionalProperties":true,"type":"object","title":"Props"},"alt":{"type":"string","maxLength":300,"minLength":1,"title":"Alt"},"theme":{"type":"string","enum":["light","dark"],"title":"Theme","default":"light"},"size":{"type":"string","enum":["inline","og"],"title":"Size","default":"inline"},"brand":{"anyOf":[{"type":"string","enum":["ttg","ttf"]},{"type":"null"}],"title":"Brand"}},"type":"object","required":["template","alt"],"title":"IllustrationRequest","description":"What to draw: a template, its props, and the look and size to draw it in.\n\n``brand`` left out follows the workspace (TheTuningFiles' storefront draws\nas ``ttf``, everything else as ``ttg``)."},"ImpersonationSettings":{"properties":{"disabled":{"type":"boolean","title":"Disabled"},"active_sessions":{"type":"integer","title":"Active Sessions"}},"type":"object","required":["disabled","active_sessions"],"title":"ImpersonationSettings","description":"The platform-wide state of impersonation: switched off or not, and how\nmany sessions are live right now."},"ImpersonationSettingsUpdate":{"properties":{"disabled":{"type":"boolean","title":"Disabled"}},"type":"object","required":["disabled"],"title":"ImpersonationSettingsUpdate","description":"Flip the kill switch. Switching off also ends every live session."},"ImpersonationStartRequest":{"properties":{"reason":{"type":"string","title":"Reason"},"mode":{"type":"string","title":"Mode","default":"read_only"}},"type":"object","required":["reason"],"title":"ImpersonationStartRequest","description":"Admin request to impersonate a customer. A reason is mandatory (audit)."},"ImpersonationStartResponse":{"properties":{"target":{"$ref":"#/components/schemas/ImpersonationTarget"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"mode":{"type":"string","title":"Mode"}},"type":"object","required":["target","expires_at","mode"],"title":"ImpersonationStartResponse","description":"HTTP body returned when a session opens — the token stays in the cookie."},"ImpersonationTarget":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"role":{"type":"string","title":"Role"},"email":{"type":"string","title":"Email"}},"type":"object","required":["user_id","organisation_id","role","email"],"title":"ImpersonationTarget","description":"The customer being impersonated (surfaced to the admin's banner)."},"InboxLoginIn":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"}},"type":"object","title":"InboxLoginIn"},"InboxLoginOut":{"properties":{"status":{"anyOf":[{"type":"string","enum":["pending","active","email_taken","failed"]},{"type":"null"}],"title":"Status"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"inbox_url":{"type":"string","title":"Inbox Url"},"suggested_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Email"}},"type":"object","required":["inbox_url"],"title":"InboxLoginOut"},"IntakeAnswer":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["checkbox","text","textarea","select"],"title":"Type"},"value":{"anyOf":[{"type":"string"},{"type":"boolean"}],"title":"Value"}},"type":"object","required":["key","label","type","value"],"title":"IntakeAnswer","description":"A stored answer, self-describing so it renders without its question."},"IntakeAnswerIn":{"properties":{"key":{"type":"string","maxLength":48,"title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"boolean"}],"title":"Value","default":""}},"additionalProperties":false,"type":"object","required":["key"],"title":"IntakeAnswerIn","description":"What a booker submits: the key and the raw value — never the label or\ntype, which come from the server's definition of the question."},"IntakeField":{"properties":{"key":{"type":"string","maxLength":48,"pattern":"^[a-z0-9_]+$","title":"Key"},"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"type":{"type":"string","enum":["checkbox","text","textarea","select"],"title":"Type","default":"text"},"options":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Options"},"required":{"type":"boolean","title":"Required","default":false},"help_text":{"type":"string","maxLength":200,"title":"Help Text","default":""},"placeholder":{"type":"string","maxLength":120,"title":"Placeholder","default":""},"position":{"type":"integer","title":"Position","default":0},"archived":{"type":"boolean","title":"Archived","default":false}},"additionalProperties":false,"type":"object","required":["key","label"],"title":"IntakeField","description":"One question an appointment type asks whoever books it.\n\nThe site forms' custom-question shape, kept as its own model so the\ncalendar does not import the enquiry package: ``key`` is machine-made and\nnever reused, and a question is ``archived`` rather than deleted, so the\nanswers already stored under it stay readable with the label they were\ngiven under."},"InternalCostsRead":{"properties":{"search_id":{"type":"string","format":"uuid","title":"Search Id"},"costs":{"additionalProperties":{"$ref":"#/components/schemas/ExtraCosts"},"type":"object","title":"Costs"}},"type":"object","required":["search_id","costs"],"title":"InternalCostsRead","description":"Separate staff-only response keyed by listing SKU."},"InviteBrandPreview":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon"},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Color"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"}},"type":"object","required":["workspace_id","workspace_name"],"title":"InviteBrandPreview","description":"Public, brand-only view of a tuner workspace.\n\nPowers the invited dealer's auth pages (register/login/verify) so they see the\ninviting tuner's brand — who they're signing up with. Deliberately carries no\nsensitive data: only the workspace id + its public display name and visual\nbrand. ``workspace_id`` lets the client remember the tuner (cookie) so the\nbrand persists after the one-time invite token is consumed."},"InviteCreate":{"properties":{"email":{"type":"string","title":"Email"},"payment_mode":{"type":"string","enum":["per_file","credits","monthly_invoice"],"title":"Payment Mode","default":"per_file"},"net_terms_days":{"type":"integer","title":"Net Terms Days","default":14},"discount_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Discount Bps","default":0}},"type":"object","required":["email"],"title":"InviteCreate","description":"A tuner invites a dealer into their workspace by email.\n\n``payment_mode`` / ``net_terms_days`` fix how that dealer settles with this\ntuner; they default to pay-per-file with no terms. A tuner's own prices live\nin their price book (workspace-wide), not per dealer."},"InviteRequest":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["email"],"title":"InviteRequest"},"InviteResult":{"properties":{"token":{"type":"string","title":"Token"},"email":{"type":"string","title":"Email"},"state":{"type":"string","enum":["invited","pending_registration"],"title":"State"},"membership":{"anyOf":[{"$ref":"#/components/schemas/MembershipRead"},{"type":"null"}]}},"type":"object","required":["token","email","state"],"title":"InviteResult","description":"Outcome of an invite.\n\n``invited`` — the email mapped to an existing dealer org, so a membership row\nwas created immediately (see ``membership``). ``pending_registration`` — the\ndealer does not exist yet; the invite is staged against the token and the\nmembership materialises when they register and accept."},"InvoiceConsentConfig":{"properties":{"version":{"type":"string","title":"Version"},"prompt_enabled":{"type":"boolean","title":"Prompt Enabled"}},"type":"object","required":["version","prompt_enabled"],"title":"InvoiceConsentConfig","description":"The consent wording in force, and whether existing links are asked for it."},"InvoiceDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"status":{"type":"string","enum":["paid","partially_refunded","refunded","open","overdue","draft","expired","credit_note","issued"],"title":"Status","default":"issued"},"currency":{"type":"string","title":"Currency"},"total_cents":{"type":"integer","title":"Total Cents"},"country":{"type":"string","title":"Country"},"issued_at":{"type":"string","format":"date-time","title":"Issued At"},"kind":{"type":"string","enum":["credit_pack","order","credit_note","platform_saas","agent_usage"],"title":"Kind"},"type":{"type":"string","enum":["per_file","monthly","subscription","agent_usage","credit_pack","winols_credits","credit_note","partner"],"title":"Type"},"direction":{"type":"string","enum":["received","issued"],"title":"Direction"},"counterparty":{"$ref":"#/components/schemas/InvoiceParty"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"refunded_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refunded Cents"},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url"},"due_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due On"},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"order_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Label"},"lines":{"items":{"$ref":"#/components/schemas/InvoiceLineDetail"},"type":"array","title":"Lines"},"vat_breakdown":{"items":{"$ref":"#/components/schemas/InvoiceVatLine"},"type":"array","title":"Vat Breakdown"},"subtotal_cents":{"type":"integer","title":"Subtotal Cents"},"vat_total_cents":{"type":"integer","title":"Vat Total Cents"}},"type":"object","required":["id","number","currency","total_cents","country","issued_at","kind","type","direction","counterparty","lines","vat_breakdown","subtotal_cents","vat_total_cents"],"title":"InvoiceDetail","description":"Full invoice view: line items, VAT breakdown, totals, and what it paid\nfor (with a human label + order link for one-off order payments)."},"InvoiceLineDetail":{"properties":{"description":{"type":"string","title":"Description"},"quantity":{"type":"integer","title":"Quantity"},"unit_cents":{"type":"integer","title":"Unit Cents"},"vat_rate":{"type":"number","title":"Vat Rate"},"amount_cents":{"type":"integer","title":"Amount Cents"}},"type":"object","required":["description","quantity","unit_cents","vat_rate","amount_cents"],"title":"InvoiceLineDetail"},"InvoiceOrderLine":{"properties":{"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["amount_cents","currency"],"title":"InvoiceOrderLine","description":"One order inside an invoice — what the total is actually made of."},"InvoiceParty":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["platform","partner","dealer"],"title":"Kind"}},"type":"object","required":["name","kind"],"title":"InvoiceParty","description":"The other side of an invoice, relative to the viewer: the seller on a received\ninvoice, the buyer on an issued one. ``kind`` is that party's role from the\nviewer's seat — the platform, a partner tuner, or a dealer."},"InvoicePreviewRequest":{"properties":{"kind":{"type":"string","enum":["per_file","credits","monthly"],"title":"Kind","default":"per_file"},"terms":{"anyOf":[{"$ref":"#/components/schemas/BrandingInvoice"},{"type":"null"}]},"dealer_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer Org Id"}},"type":"object","title":"InvoicePreviewRequest","description":"Which sample invoice to render, and (optionally) the terms to render it\nwith — the editor sends its current, unsaved values so the tuner sees the\neffect before saving."},"InvoiceRefundRequest":{"properties":{"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"InvoiceRefundRequest","description":"Tuner/admin refund of a monthly cycle invoice. ``amount_cents=None`` refunds\nthe full remaining charge; otherwise the requested (partial) cents."},"InvoiceResendResult":{"properties":{"sent":{"type":"boolean","title":"Sent"},"status":{"type":"string","title":"Status"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},"type":"object","required":["sent","status"],"title":"InvoiceResendResult","description":"Outcome of re-emailing an invoice from the platform sender: whether it was\naccepted by the provider, the raw delivery status, and where it went."},"InvoiceRow":{"properties":{"number":{"type":"string","title":"Number"},"total":{"type":"string","title":"Total"},"status":{"type":"string","title":"Status"},"issued":{"type":"string","title":"Issued"},"type":{"type":"string","title":"Type"}},"type":"object","required":["number","total","status","issued","type"],"title":"InvoiceRow"},"InvoiceSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"status":{"type":"string","enum":["paid","partially_refunded","refunded","open","overdue","draft","expired","credit_note","issued"],"title":"Status","default":"issued"},"currency":{"type":"string","title":"Currency"},"total_cents":{"type":"integer","title":"Total Cents"},"country":{"type":"string","title":"Country"},"issued_at":{"type":"string","format":"date-time","title":"Issued At"},"kind":{"type":"string","enum":["credit_pack","order","credit_note","platform_saas","agent_usage"],"title":"Kind"},"type":{"type":"string","enum":["per_file","monthly","subscription","agent_usage","credit_pack","winols_credits","credit_note","partner"],"title":"Type"},"direction":{"type":"string","enum":["received","issued"],"title":"Direction"},"counterparty":{"$ref":"#/components/schemas/InvoiceParty"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"refunded_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refunded Cents"},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url"},"due_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due On"},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"}},"type":"object","required":["id","number","currency","total_cents","country","issued_at","kind","type","direction","counterparty"],"title":"InvoiceSummary","description":"One invoice in the billing ledger, typed by kind, direction and counterparty."},"InvoiceVatLine":{"properties":{"rate":{"type":"number","title":"Rate"},"base_cents":{"type":"integer","title":"Base Cents"},"vat_cents":{"type":"integer","title":"Vat Cents"}},"type":"object","required":["rate","base_cents","vat_cents"],"title":"InvoiceVatLine"},"KnowledgeTextIn":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"text":{"type":"string","minLength":1,"title":"Text"}},"type":"object","required":["filename","text"],"title":"KnowledgeTextIn","description":"Plain text pasted into the knowledge base, under a filename."},"KnowledgeUrlIn":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"}},"type":"object","required":["url"],"title":"KnowledgeUrlIn","description":"A public page to import; the platform fetches and strips it."},"KpiGroups":{"properties":{"all":{"$ref":"#/components/schemas/Kpis"},"transactional":{"$ref":"#/components/schemas/Kpis"},"campaigns":{"$ref":"#/components/schemas/Kpis"}},"type":"object","required":["all","transactional","campaigns"],"title":"KpiGroups"},"Kpis":{"properties":{"sent":{"type":"integer","title":"Sent","default":0},"delivered":{"type":"integer","title":"Delivered","default":0},"delivered_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delivered Rate"},"not_delivered":{"type":"integer","title":"Not Delivered","default":0},"not_delivered_addresses":{"type":"integer","title":"Not Delivered Addresses","default":0},"deferred":{"type":"integer","title":"Deferred","default":0},"opened":{"type":"integer","title":"Opened","default":0},"bounced":{"type":"integer","title":"Bounced","default":0},"blocked":{"type":"integer","title":"Blocked","default":0},"dropped":{"type":"integer","title":"Dropped","default":0},"spam_reported":{"type":"integer","title":"Spam Reported","default":0}},"type":"object","title":"Kpis","description":"Delivery numbers for one slice of a workspace's mail in a window."},"LastEmail":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"state":{"type":"string","enum":["pending","failed","sent","deferred","delivered","opened","clicked","unsubscribed","bounced","blocked","dropped","spam_reported"],"title":"State"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["at","category","subject","state"],"title":"LastEmail"},"LatestOrderCard":{"properties":{"tuner":{"$ref":"#/components/schemas/ShowcaseTuner"},"car":{"type":"string","title":"Car"},"tune_kind":{"type":"string","enum":["stage","service"],"title":"Tune Kind"},"tune_label":{"type":"string","title":"Tune Label"},"gains":{"anyOf":[{"$ref":"#/components/schemas/ShowcaseGains"},{"type":"null"}]},"gains_estimated":{"type":"boolean","title":"Gains Estimated","default":false},"ecu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu"},"services":{"items":{"type":"string"},"type":"array","title":"Services"},"status":{"type":"string","enum":["delivered","completed"],"title":"Status"},"delivered_at":{"type":"string","format":"date-time","title":"Delivered At"}},"type":"object","required":["tuner","car","tune_kind","tune_label","status","delivered_at"],"title":"LatestOrderCard","description":"One card in the public homepage \"latest orders\" strip.\n\nPUBLIC-SAFE ONLY — no buyer identity, plate, VIN, mileage, comments, prices,\nor file references ever appear here. ``gains_estimated`` marks a card whose\nfigures were synthesised (no measured stage row), so the UI can flag it."},"LatestOrders":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LatestOrderCard"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"LatestOrders","description":"The strip payload — newest-first, capped per tuner."},"LeadDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"channels":{"items":{"type":"string","enum":["website","whatsapp","ad_webhook","shop"]},"type":"array","title":"Channels"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"matched_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Matched Org Id"},"matched_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Kind"},"matched_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Org Name"},"matched_confirmed":{"type":"boolean","title":"Matched Confirmed"},"timeline":{"items":{"$ref":"#/components/schemas/LeadTimelineEntry"},"type":"array","title":"Timeline"},"vehicles":{"items":{"$ref":"#/components/schemas/LeadVehicle"},"type":"array","title":"Vehicles"}},"type":"object","required":["id","name","email","phone","channels","first_seen_at","last_activity_at","matched_org_id","matched_kind","matched_org_name","matched_confirmed","timeline","vehicles"],"title":"LeadDetail"},"LeadLinkIn":{"properties":{"organisation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"}},"type":"object","title":"LeadLinkIn","description":"Same contract as the enquiries thread link action: ``None`` unlinks."},"LeadList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"LeadList"},"LeadListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"channels":{"items":{"type":"string","enum":["website","whatsapp","ad_webhook","shop"]},"type":"array","title":"Channels"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"matched_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Matched Org Id"},"matched_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Kind"},"matched_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Org Name"},"matched_confirmed":{"type":"boolean","title":"Matched Confirmed"}},"type":"object","required":["id","name","email","phone","channels","first_seen_at","last_activity_at","matched_org_id","matched_kind","matched_org_name","matched_confirmed"],"title":"LeadListItem"},"LeadTimelineEntry":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["submission","message","order"],"title":"Kind"},"channel":{"type":"string","enum":["website","whatsapp","ad_webhook","shop"],"title":"Channel"},"at":{"type":"string","format":"date-time","title":"At"},"direction":{"anyOf":[{"type":"string","enum":["inbound","outbound"]},{"type":"null"}],"title":"Direction"},"title":{"type":"string","title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id","kind","channel","at","title"],"title":"LeadTimelineEntry","description":"One thing that happened, in the lead's own words where there are any.\n\n``kind`` says what KIND of record this came from (a form intake, a\nconversation message, an order) — ``channel`` says which door it came\nthrough. A guest order is always ``kind=\"order\"``/``channel=\"shop\"``; an\ninbound WhatsApp message and the tuner's outbound reply are both\n``kind=\"message\"``/``channel=\"whatsapp\"``, told apart by ``direction``."},"LeadVehicle":{"properties":{"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["plate","label"],"title":"LeadVehicle"},"LeadWebhookRead":{"properties":{"active":{"type":"boolean","title":"Active"},"enabled":{"type":"boolean","title":"Enabled","default":true},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"token_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Prefix"},"last_received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Received At"},"last_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Source"}},"type":"object","required":["active"],"title":"LeadWebhookRead","description":"The tuner-facing status of their lead webhook — the Connections card.\n\n``token`` is included whenever a webhook exists: unlike an auth secret,\nthis is a credential we mint for the tuner to hand to an external tool, so\nre-viewing it (to paste into a second Zapier zap, or after losing the\nfirst copy) is normal — never shown \"once only\"."},"LearningMetricsRead":{"properties":{"this_week":{"$ref":"#/components/schemas/WeekMetrics"},"last_week":{"$ref":"#/components/schemas/WeekMetrics"}},"type":"object","required":["this_week","last_week"],"title":"LearningMetricsRead"},"LearningProposalRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["formality","tone","general_knowledge","never_claim"],"title":"Kind"},"value":{"type":"string","title":"Value"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"evidence_count":{"type":"integer","title":"Evidence Count"},"status":{"type":"string","enum":["pending","accepted","rejected"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","value","rationale","evidence_count","status","created_at"],"title":"LearningProposalRead"},"ListCondition":{"properties":{"field":{"type":"string","enum":["dealer_country","dealer","vehicle_type","make","fuel","service","ecu_family","read_tool"],"title":"Field"},"op":{"type":"string","enum":["is","is_not"],"title":"Op"},"values":{"items":{"type":"string","maxLength":120,"minLength":1},"type":"array","maxItems":50,"minItems":1,"title":"Values"},"labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Labels"}},"type":"object","required":["field","op","values"],"title":"ListCondition","description":"A field compared with one or more values: ``is`` any of them / ``is_not``."},"LockedBlock":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["key","label","reason"],"title":"LockedBlock","description":"A block this email really contains that the tuner cannot change.\n\nReturned so the editor can SHOW it. A locked block that is simply absent\nfrom the list reads as a missing feature; shown and marked, it explains the\nshape of the email — and why the control they were looking for isn't there."},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LookupAuditRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source":{"type":"string","title":"Source"},"country":{"type":"string","title":"Country"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"succeeded":{"type":"boolean","title":"Succeeded"},"cached":{"type":"boolean","title":"Cached","default":false},"cost_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Cents"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Days"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","source","country","succeeded","created_at"],"title":"LookupAuditRow","description":"One row of the admin lookup audit (also drives GDPR/DSAR search)."},"LookupMetrics":{"properties":{"total":{"type":"integer","title":"Total"},"success_rate":{"type":"number","title":"Success Rate"},"cache_hit_rate":{"type":"number","title":"Cache Hit Rate"},"cost_cents_total":{"type":"integer","title":"Cost Cents Total"},"by_provider":{"items":{"$ref":"#/components/schemas/ProviderMetric"},"type":"array","title":"By Provider"}},"type":"object","required":["total","success_rate","cache_hit_rate","cost_cents_total","by_provider"],"title":"LookupMetrics","description":"Aggregate lookup KPIs. Cost/cache aren't tracked yet, so they read 0."},"LookupRequest":{"properties":{"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"region":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Region","description":"US plates only: the two-letter state the plate is registered in."},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"bill_to_invoice":{"type":"boolean","title":"Bill To Invoice","default":false}},"type":"object","title":"LookupRequest","description":"POST body for /vehicle-lookup. Supply ``plate`` (+ optional country) or a\n``vin``. Country is inferred from the plate format/locale when omitted.\n\n``workspace_id`` names the tuner whose tunes and options the match should\noffer — the workspace the order is headed for, which is not always the\ncaller's own (a tuner composing a partner order wants the PARTNER's). Omit it\nand the caller's own context workspace answers. ``bill_to_invoice`` picks the\ncurrency the money price is stated in, exactly as the catalogue routes do."},"LookupSeriesPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"total":{"type":"integer","title":"Total"},"succeeded":{"type":"integer","title":"Succeeded"}},"type":"object","required":["bucket","total","succeeded"],"title":"LookupSeriesPoint","description":"Daily lookup volume and success count."},"LookupSourceStat":{"properties":{"source":{"type":"string","title":"Source"},"total":{"type":"integer","title":"Total"},"succeeded":{"type":"integer","title":"Succeeded"}},"type":"object","required":["source","total","succeeded"],"title":"LookupSourceStat","description":"Per-source lookup volume and success count."},"LookupStats":{"properties":{"success_rate":{"type":"number","title":"Success Rate"},"total":{"type":"integer","title":"Total"},"by_source":{"items":{"$ref":"#/components/schemas/LookupSourceStat"},"type":"array","title":"By Source"},"series":{"items":{"$ref":"#/components/schemas/LookupSeriesPoint"},"type":"array","title":"Series"}},"type":"object","required":["success_rate","total","by_source","series"],"title":"LookupStats","description":"Aggregate lookup health: rate, totals, by-source and daily series."},"ManualContext":{"properties":{"kind":{"type":"string","const":"manual","title":"Kind","default":"manual"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"order":{"anyOf":[{"$ref":"#/components/schemas/OrderRef"},{"type":"null"}]}},"type":"object","required":["notes","order"],"title":"ManualContext","description":"What the owner wrote down, and the job it belongs to."},"ManufacturerGroup":{"properties":{"manufacturer":{"$ref":"#/components/schemas/ManufacturerRef"},"families":{"items":{"$ref":"#/components/schemas/FamilyRef"},"type":"array","title":"Families"}},"type":"object","required":["manufacturer","families"],"title":"ManufacturerGroup"},"ManufacturerPage":{"properties":{"manufacturer":{"$ref":"#/components/schemas/ManufacturerRef"},"indexed":{"type":"boolean","title":"Indexed"},"families":{"items":{"$ref":"#/components/schemas/FamilyRef"},"type":"array","title":"Families"},"other_ecus":{"items":{"$ref":"#/components/schemas/EcuRef"},"type":"array","title":"Other Ecus"},"files_by_family":{"$ref":"#/components/schemas/RankedChart"},"others":{"items":{"$ref":"#/components/schemas/ManufacturerRef"},"type":"array","title":"Others"}},"type":"object","required":["manufacturer","indexed","families","other_ecus","files_by_family","others"],"title":"ManufacturerPage"},"ManufacturerRef":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"families":{"type":"integer","title":"Families"},"ecus":{"type":"integer","title":"Ecus"},"engines":{"type":"integer","title":"Engines"},"orders":{"type":"integer","title":"Orders"},"indexed":{"type":"boolean","title":"Indexed"}},"type":"object","required":["slug","name","path","families","ecus","engines","orders","indexed"],"title":"ManufacturerRef"},"MarkInvoicePaidRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note"}},"type":"object","title":"MarkInvoicePaidRequest","description":"Record a cycle invoice as settled outside Stripe (a bank transfer)."},"MarketingContactPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MarketingContactRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"counts":{"$ref":"#/components/schemas/ContactCounts"}},"type":"object","required":["items","total","counts"],"title":"MarketingContactPage","description":"One page of the list; ``total`` counts every row behind the filter."},"MarketingContactRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"type":"string","enum":["pending","subscribed","unsubscribed"],"title":"Status"},"basis":{"type":"string","const":"opt_in","title":"Basis"},"source":{"type":"string","enum":["newsletter","form","shop","booking"],"title":"Source"},"notice_version":{"type":"string","title":"Notice Version"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"unsubscribed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unsubscribed At"}},"type":"object","required":["id","email","status","basis","source","notice_version","captured_at"],"title":"MarketingContactRead","description":"One contact on the dealer's list, as the Contacts page shows it."},"MatchedRule":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"position":{"type":"integer","title":"Position"},"is_default":{"type":"boolean","title":"Is Default"}},"type":"object","required":["id","name","position","is_default"],"title":"MatchedRule"},"McpCredentialCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["name"],"title":"McpCredentialCreate","description":"Mint a credential. ``scopes`` empty = the role's default set."},"McpCredentialMinted":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"key_hint":{"type":"string","title":"Key Hint"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"status":{"type":"string","title":"Status"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","organisation_id","user_id","name","key_hint","scopes","status","created_at","key"],"title":"McpCredentialMinted","description":"The one response that carries the plaintext key."},"McpCredentialRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"key_hint":{"type":"string","title":"Key Hint"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"status":{"type":"string","title":"Status"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"}},"type":"object","required":["id","organisation_id","user_id","name","key_hint","scopes","status","created_at"],"title":"McpCredentialRead"},"MembershipRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"payment_mode":{"type":"string","enum":["per_file","credits","monthly_invoice"],"title":"Payment Mode"},"net_terms_days":{"type":"integer","title":"Net Terms Days"},"discount_bps":{"type":"integer","title":"Discount Bps","default":0},"status":{"type":"string","enum":["invited","active","suspended","left"],"title":"Status"},"kind":{"type":"string","enum":["fileservice","winols","both","partner"],"title":"Kind","default":"fileservice"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuner Name"},"tuner_single_credit_type":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tuner Single Credit Type"},"tuner_order_vehicle_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tuner Order Vehicle Required"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"dealer_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Country"},"dealer_billing_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Billing Email"},"dealer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Email"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"invited_via_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited Via Token"}},"type":"object","required":["id","dealer_org_id","tuner_workspace_id","payment_mode","net_terms_days","status","created_at"],"title":"MembershipRead"},"MembershipUpdate":{"properties":{"payment_mode":{"anyOf":[{"type":"string","enum":["per_file","credits","monthly_invoice"]},{"type":"null"}],"title":"Payment Mode"},"net_terms_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Net Terms Days"},"discount_bps":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Discount Bps"},"status":{"anyOf":[{"type":"string","enum":["invited","active","suspended","left"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"MembershipUpdate","description":"A tuner edits how one dealer settles: payment mode, terms, or the\nmembership's standing (suspend / reactivate). A tuner's prices live in their\nprice book (workspace-wide), not per dealer.\n\nEvery field is optional — only supplied fields change."},"MentionRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["user_id","name"],"title":"MentionRead","description":"One tagged participant on a message — id plus the name snapshot captured at\nsend time, so the rendered @mention survives the user leaving the thread."},"MessageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"body":{"type":"string","title":"Body"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentMeta"},"type":"array","title":"Attachments"},"internal":{"type":"boolean","title":"Internal","default":false},"mentions":{"items":{"$ref":"#/components/schemas/MentionRead"},"type":"array","title":"Mentions","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","conversation_id","author_id","body","attachments","created_at"],"title":"MessageRead"},"MethodFeeRead":{"properties":{"method":{"type":"string","title":"Method"},"markup_bps":{"type":"integer","title":"Markup Bps","default":3000},"margin_bps":{"type":"integer","title":"Margin Bps"},"margin_fixed_cents":{"type":"integer","title":"Margin Fixed Cents"},"est_cost_bps":{"type":"integer","title":"Est Cost Bps"},"est_cost_fixed_cents":{"type":"integer","title":"Est Cost Fixed Cents"}},"type":"object","required":["method","margin_bps","margin_fixed_cents","est_cost_bps","est_cost_fixed_cents"],"title":"MethodFeeRead","description":"One method's markup + (legacy estimate) knobs, for the admin editor."},"MethodFeesWrite":{"properties":{"fees":{"items":{"$ref":"#/components/schemas/MethodFeeRead"},"type":"array","title":"Fees"}},"type":"object","required":["fees"],"title":"MethodFeesWrite","description":"The full per-method table the admin PUTs (upserted row by row)."},"MethodMixRow":{"properties":{"method":{"type":"string","title":"Method"},"currency":{"type":"string","title":"Currency","default":"EUR"},"count":{"type":"integer","title":"Count"},"gross_cents":{"type":"integer","title":"Gross Cents"},"margin_cents":{"type":"integer","title":"Margin Cents"},"stripe_fee_cents":{"type":"integer","title":"Stripe Fee Cents"},"effective_margin_cents":{"type":"integer","title":"Effective Margin Cents"}},"type":"object","required":["method","count","gross_cents","margin_cents","stripe_fee_cents","effective_margin_cents"],"title":"MethodMixRow","description":"Admin method-mix row: volume PLUS the platform's margin economics.\n\n``effective_margin_cents`` is the platform's real take after Stripe's cut\n(``margin_cents - stripe_fee_cents``); a value at or below zero means the\nmethod costs more to process than the flat margin covers."},"Money":{"properties":{"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"priced_for":{"type":"string","enum":["dealer","list"],"title":"Priced For","default":"list"},"display_amount":{"type":"string","title":"Display Amount","default":""},"display_includes_vat":{"type":"boolean","title":"Display Includes Vat","default":false}},"type":"object","required":["amount","currency"],"title":"Money","description":"A figure the agent may quote. ``amount`` is ALWAYS ex-VAT.\n\n``display_amount`` is what THIS caller's customer actually pays — the same\nex-VAT figure for a dealer, the VAT-inclusive total for anyone else — and it\nis the only number that should ever be said to a customer. The two used to\nbe one field, which is how a consumer came to be quoted a trade rate: the\ntune list handed out ex-VAT money with nothing to say it was ex-VAT, so a\nprivate customer was told a price a fifth short of their invoice.\n\nMirrors ``PriceOut`` deliberately, so one rule holds across every endpoint\nthat names money rather than one rule per endpoint."},"MonthSeries":{"properties":{"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"points":{"items":{"$ref":"#/components/schemas/MonthValue"},"type":"array","title":"Points"}},"type":"object","required":["source","points"],"title":"MonthSeries"},"MonthValue":{"properties":{"month":{"type":"string","title":"Month"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["month","value"],"title":"MonthValue"},"MoveInput":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"host_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Host Id"}},"type":"object","required":["starts_at"],"title":"MoveInput"},"NavItem":{"properties":{"label":{"type":"string","title":"Label"},"path":{"type":"string","title":"Path"},"children":{"anyOf":[{"items":{"$ref":"#/components/schemas/NavItem"},"type":"array"},{"type":"null"}],"title":"Children"}},"type":"object","required":["label","path"],"title":"NavItem","description":"One entry in the rendered site's navigation: a label + its served path.\n\n``children`` groups sibling pages under one dropdown category (set via\neach page's ``nav_group`` — see ``_nav_from_pages``) instead of every page\nsitting flat in the bar; absent/empty renders as a plain link, unchanged\nfrom before this field existed."},"NetworkScope":{"properties":{"orders":{"type":"integer","title":"Orders"},"delivered":{"type":"integer","title":"Delivered"},"tuners":{"type":"integer","title":"Tuners"},"window_months":{"type":"integer","title":"Window Months"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},"type":"object","required":["orders","delivered","tuners","window_months","since"],"title":"NetworkScope","description":"What the quality figures are counted over, for the method section."},"NodeCreate":{"properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"level":{"type":"string","title":"Level"},"name":{"type":"string","title":"Name"}},"type":"object","required":["level","name"],"title":"NodeCreate","description":"Create a catalogue node by hand — the admin escape hatch for cars no data\nfeed carries yet. ``level`` is one of type/make/model/generation/engine."},"NodeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"level":{"type":"string","title":"Level"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"year_begin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year Begin"},"year_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year End"},"supported":{"type":"boolean","title":"Supported","default":true},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Hp"}},"type":"object","required":["id","parent_id","level","name","slug"],"title":"NodeRead"},"NodeUpdate":{"properties":{"name":{"type":"string","title":"Name"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["name"],"title":"NodeUpdate","description":"Rename (and optionally re-parent) a catalogue node."},"NotificationListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NotificationRead"},"type":"array","title":"Data"},"unread_count":{"type":"integer","title":"Unread Count"}},"type":"object","required":["data","unread_count"],"title":"NotificationListResponse"},"NotificationPrefs":{"properties":{"email":{"type":"boolean","title":"Email","default":true},"push":{"type":"boolean","title":"Push","default":true},"whatsapp":{"type":"boolean","title":"Whatsapp","default":false},"sms":{"type":"boolean","title":"Sms","default":false},"whatsapp_opt_in_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Opt In At"},"categories":{"additionalProperties":{"additionalProperties":{"type":"boolean"},"type":"object"},"type":"object","title":"Categories","default":{}}},"type":"object","title":"NotificationPrefs","description":"Per-user notification preferences.\n\nThe top-level flags are the *global* channel masters (a channel off here is\noff everywhere). ``categories`` layers per-category overrides on top: a\n``{\"messages\": {\"email\": false}}`` entry mutes email for the messages\ncategory only. An absent category or channel means \"on\" — so an empty\n``categories`` behaves exactly like the channel-only model that preceded it."},"NotificationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"sender":{"anyOf":[{"$ref":"#/components/schemas/NotificationSender"},{"type":"null"}]},"is_read":{"type":"boolean","title":"Is Read"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","type","title","message","data","is_read","read_at","created_at"],"title":"NotificationRead"},"NotificationSender":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind","default":"brand"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["name"],"title":"NotificationSender","description":"Who the notification is from, snapshotted when it was created.\n\nRead straight off the stored payload — no lookup per row, and a later rename\nor a departed teammate never rewrites what the recipient was told."},"OnboardingLink":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"OnboardingLink"},"OnboardingPatch":{"properties":{"completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Completed"},"checklist_dismissed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Checklist Dismissed"},"tour_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tour Seen"},"task_done":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Done"},"reset":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reset"}},"type":"object","title":"OnboardingPatch","description":"A single onboarding progress update — each field is an independent op so\nthe client never has to read-modify-write the whole state.\n\n``reset`` clears everything (completed/dismissed/tours/tasks) so the guided\nonboarding replays from the top — the re-trigger primitive."},"OnboardingRead":{"properties":{"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"},"plan":{"$ref":"#/components/schemas/PlanStatus"},"exit_answered":{"type":"boolean","title":"Exit Answered"}},"type":"object","required":["booking_url","plan","exit_answered"],"title":"OnboardingRead","description":"What the setup checklist adds to the setup status."},"OnboardingState":{"properties":{"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"checklist_dismissed":{"type":"boolean","title":"Checklist Dismissed","default":false},"tours_seen":{"items":{"type":"string"},"type":"array","title":"Tours Seen","default":[]},"tasks_done":{"items":{"type":"string"},"type":"array","title":"Tasks Done","default":[]}},"type":"object","title":"OnboardingState","description":"The signed-in user's guided-onboarding progress.\n\n``completed_at`` marks the first-login welcome/setup as done (so it never\nre-runs). ``checklist_dismissed`` hides the dashboard getting-started card.\n``tours_seen`` / ``tasks_done`` are the ids of focused tours the user has\nfinished and checklist tasks they've explicitly completed."},"OnboardingStatus":{"properties":{"payout_type":{"type":"string","title":"Payout Type"},"has_account":{"type":"boolean","title":"Has Account"},"details_submitted":{"type":"boolean","title":"Details Submitted"},"payouts_enabled":{"type":"boolean","title":"Payouts Enabled"}},"type":"object","required":["payout_type","has_account","details_submitted","payouts_enabled"],"title":"OnboardingStatus"},"OpeningException":{"properties":{"date":{"type":"string","title":"Date"},"closed":{"type":"boolean","title":"Closed","default":false},"open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Open"},"close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["date"],"title":"OpeningException","description":"A single-date override: a full closure or a half-day."},"OpeningHoursCondition":{"properties":{"field":{"type":"string","const":"opening_hours","title":"Field"},"op":{"type":"string","enum":["within","outside"],"title":"Op"}},"type":"object","required":["field","op"],"title":"OpeningHoursCondition","description":"Whether the order was paid within or outside the storefront's hours."},"OpeningHoursConfigured":{"properties":{"configured":{"type":"boolean","title":"Configured"}},"type":"object","required":["configured"],"title":"OpeningHoursConfigured","description":"Whether a workspace filled in its own opening hours.\n\nThe schedule read falls back to the platform default, so it cannot tell an\nowner who set their hours from one who never opened the page; this can."},"OpeningHoursRead":{"properties":{"timezone":{"type":"string","title":"Timezone"},"enabled":{"type":"boolean","title":"Enabled"},"weekly":{"additionalProperties":{"items":{"items":{"type":"string"},"type":"array"},"type":"array"},"type":"object","title":"Weekly"},"exceptions":{"items":{"$ref":"#/components/schemas/OpeningException"},"type":"array","title":"Exceptions"},"closed_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed Message"}},"type":"object","required":["timezone","enabled"],"title":"OpeningHoursRead","description":"A resolved schedule (workspace override or platform default)."},"OpeningHoursWrite":{"properties":{"timezone":{"type":"string","title":"Timezone","default":"Europe/Amsterdam"},"enabled":{"type":"boolean","title":"Enabled","default":false},"weekly":{"additionalProperties":{"items":{"items":{"type":"string"},"type":"array"},"type":"array"},"type":"object","title":"Weekly"},"exceptions":{"items":{"$ref":"#/components/schemas/OpeningException"},"type":"array","title":"Exceptions"},"closed_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed Message"}},"type":"object","title":"OpeningHoursWrite","description":"The editable schedule payload (admin platform default or tuner override)."},"OpeningStatus":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"is_open":{"type":"boolean","title":"Is Open"},"label_key":{"type":"string","enum":["open_until","closed_opens_at","closed_today","disabled"],"title":"Label Key"},"timezone":{"type":"string","title":"Timezone"},"closes_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closes At"},"opens_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opens At"},"next_change":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Change"},"closed_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed Message"},"weekly":{"additionalProperties":{"items":{"items":{"type":"string"},"type":"array"},"type":"array"},"type":"object","title":"Weekly"},"exceptions_ahead":{"items":{"$ref":"#/components/schemas/OpeningException"},"type":"array","title":"Exceptions Ahead"},"now_in_zone":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Now In Zone"}},"type":"object","required":["enabled","is_open","label_key","timezone"],"title":"OpeningStatus","description":"The evaluated open/closed state for a schedule at a point in time.\n\n``label_key`` is an enum the client maps to a localized string; ``closes_at``,\n``opens_at`` and ``next_change`` are timezone-aware datetimes in ``timezone``\nso the client formats the wall-clock time (and weekday) without recomputing."},"OptionOut":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]}},"type":"object","required":["code","label"],"title":"OptionOut"},"OptionShare":{"properties":{"code":{"type":"string","title":"Code"},"pct":{"type":"number","title":"Pct"}},"type":"object","required":["code","pct"],"title":"OptionShare","description":"Share of orders with a stage (``STAGE_1``…) or an allow-listed option code."},"OptionsChart":{"properties":{"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"items":{"items":{"$ref":"#/components/schemas/OptionShare"},"type":"array","title":"Items"}},"type":"object","required":["source","items"],"title":"OptionsChart"},"OptionsOut":{"properties":{"options":{"items":{"$ref":"#/components/schemas/OptionOut"},"type":"array","title":"Options"},"dtc_delete":{"type":"boolean","title":"Dtc Delete","default":false},"total":{"type":"integer","title":"Total"}},"type":"object","required":["options","total"],"title":"OptionsOut"},"OrderCheckoutRequest":{"properties":{"return_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"},"provider":{"anyOf":[{"type":"string","enum":["stripe","paypal"]},{"type":"null"}],"title":"Provider"}},"type":"object","title":"OrderCheckoutRequest","description":"Optional checkout options. ``return_to`` overrides the post-payment landing\npage (internal path) — e.g. a tuner paying a partner-quote order returns to the\nquotes area, not the ``/orders`` portal which redirects tuners away."},"OrderDealer":{"properties":{"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"name":{"type":"string","title":"Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"routing":{"type":"string","title":"Routing"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_locked":{"type":"boolean","title":"Contact Locked","default":false},"contact_via_platform":{"type":"boolean","title":"Contact Via Platform","default":false}},"type":"object","required":["organisation_id","name","routing"],"title":"OrderDealer","description":"The dealer that placed the order, resolved for the tuner/admin detail view.\n\nCompany identity is always present; the personal contact (``contact_name`` /\n``contact_email``) is gated — populated only once the viewer owns/claimed the\norder, so an unclaimed pool order keeps the dealer's contact private\n(``contact_locked`` is then True to drive the \"shown once you claim it\" hint).\nOn a platform-pool order a tuner never gets the email, claimed or not\n(``contact_via_platform``): pool fulfilment is anonymous to the dealer."},"OrderDelegationView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"from_tuner_user_id":{"type":"string","format":"uuid","title":"From Tuner User Id"},"from_tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Tuner Name"},"to_tuner_user_id":{"type":"string","format":"uuid","title":"To Tuner User Id"},"to_tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Tuner Name"},"status":{"type":"string","title":"Status"},"payout_split_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payout Split Bps"},"accepted_split_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Accepted Split Bps"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"offered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Offered At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"broadcast":{"type":"boolean","title":"Broadcast","default":false},"offer_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offer Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","order_id","from_tuner_user_id","to_tuner_user_id","status","payout_split_bps","created_at"],"title":"OrderDelegationView","description":"The current delegation of one order, for the order detail page: who is\nhandling it, the agreed split, and where it is in the sub-tuning handoff."},"OrderDtc":{"properties":{"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["code"],"title":"OrderDtc","description":"A fault code selected on the order, with its reference description."},"OrderEventRead":{"properties":{"type":{"type":"string","title":"Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["type","created_at"],"title":"OrderEventRead","description":"One entry in an order's activity timeline."},"OrderRecipient":{"properties":{"membership_id":{"type":"string","format":"uuid","title":"Membership Id"},"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["dealer","partner"],"title":"Kind"},"net_terms_days":{"type":"integer","title":"Net Terms Days"},"discount_bps":{"type":"integer","title":"Discount Bps","default":0},"payment_mode":{"type":"string","enum":["per_file","credits","monthly_invoice"],"title":"Payment Mode"},"eligible":{"type":"boolean","title":"Eligible"}},"type":"object","required":["membership_id","dealer_org_id","name","kind","net_terms_days","payment_mode","eligible"],"title":"OrderRecipient","description":"A dealer or partner in the tuner's book, orderable or not.\n\nThe picker's row. ``kind`` says which of the two the tuner is looking at — a\npeer tuner is not a customer, and the two read differently in a list — while\n``net_terms_days`` and ``discount_bps`` are the terms the order will actually\ncarry, shown so the tuner is not guessing what they just committed to.\n\n``eligible`` is the server's verdict on whether this one can be ordered FOR,\nand ``payment_mode`` is the reason behind it. Ineligible rows are returned\nrather than filtered out because a tuner searching for a customer who is not\non invoice would otherwise find nothing and conclude the customer is missing\n— one workspace has 52 dealers and 3 on invoice, so silence is the common\ncase, not the edge one. The verdict travels with the row instead of being\nrecomputed client-side: the rule lives in ``on_behalf.py`` and must not be\nrestated anywhere it can drift."},"OrderRecipients":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/OrderRecipient"},"type":"array","title":"Recipients","default":[]},"total":{"type":"integer","title":"Total","default":0},"eligible_total":{"type":"integer","title":"Eligible Total","default":0}},"type":"object","title":"OrderRecipients","description":"The picker's whole answer, counts included.\n\n``eligible_total`` is what the Operations menu gates on, so it can disable\n\"For a customer\" with a reason without fetching the list on every render — an\nentry point that dead-ends at an empty picker is worse than one that says why\nit is closed. ``total`` counts the whole book, which is what lets the picker\ndistinguish \"you have no customers yet\" from \"none of your customers are on\ninvoice\" — two different problems with two different fixes."},"OrderRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ref":{"type":"string","title":"Ref"}},"type":"object","required":["id","ref"],"title":"OrderRef"},"OrderRefundRequest":{"properties":{"reason":{"type":"string","title":"Reason"},"credits":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Credits"}},"type":"object","required":["reason"],"title":"OrderRefundRequest","description":"Reverse an order on the rail it was paid on, in whole or in part.\n\n``credits`` refunds part of a credit-funded order; omitted, the whole\nremaining value goes back. The money rail takes an amount instead, through\n``/refund/money``, because there the unit the dealer understands is euros."},"OrderRefundRequestView":{"properties":{"viewer":{"type":"string","enum":["partner","owner","admin"],"title":"Viewer"},"request":{"anyOf":[{"$ref":"#/components/schemas/RefundRequestRead"},{"type":"null"}]},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"can_request":{"type":"boolean","title":"Can Request","default":false},"can_withdraw":{"type":"boolean","title":"Can Withdraw","default":false},"can_decide":{"type":"boolean","title":"Can Decide","default":false},"refundable":{"anyOf":[{"$ref":"#/components/schemas/RefundableRemainder"},{"type":"null"}]},"needs_admin":{"type":"boolean","title":"Needs Admin","default":false}},"type":"object","required":["viewer"],"title":"OrderRefundRequestView","description":"The refund-request state of one order as the viewer may act on it."},"OrderRevisionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision_no":{"type":"integer","title":"Revision No"},"kind":{"type":"string","title":"Kind"},"file_name":{"type":"string","title":"File Name"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"downloadable":{"type":"boolean","title":"Downloadable","default":true},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"integrity":{"anyOf":[{"$ref":"#/components/schemas/DeliveryIntegrityView"},{"type":"null"}]}},"type":"object","required":["id","revision_no","kind","file_name","created_at"],"title":"OrderRevisionRead","description":"One entry in the order's revision history: a delivered tune file or,\nwhen ``kind='requested'``, a dealer revision request carrying ``notes``."},"OrderRow":{"properties":{"order_id":{"type":"string","title":"Order Id"},"vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle"},"stage":{"type":"string","title":"Stage"},"status":{"type":"string","title":"Status"},"credits":{"type":"number","title":"Credits"},"submitted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted"}},"type":"object","required":["order_id","vehicle","stage","status","credits","submitted"],"title":"OrderRow"},"OrderSourcingRead":{"properties":{"shop_order_id":{"type":"string","format":"uuid","title":"Shop Order Id"},"lines":{"items":{"$ref":"#/components/schemas/SourcedLineRead"},"type":"array","title":"Lines"}},"type":"object","required":["shop_order_id","lines"],"title":"OrderSourcingRead","description":"The sourced parts on one shop order (empty for an ordinary order)."},"OrderStatusOut":{"properties":{"external_ref":{"type":"string","title":"External Ref"},"stage":{"type":"string","title":"Stage"},"ready_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ready Estimate"},"note":{"type":"string","title":"Note"}},"type":"object","required":["external_ref","stage","note"],"title":"OrderStatusOut"},"OrderStatusSlice":{"properties":{"status":{"type":"string","title":"Status"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status","count"],"title":"OrderStatusSlice","description":"Order count for one status, scoped to the tuner's own workspaces."},"OrderValueCondition":{"properties":{"field":{"type":"string","const":"order_value","title":"Field"},"op":{"type":"string","enum":["above","below"],"title":"Op"},"amount_cents":{"type":"integer","maximum":100000000.0,"minimum":0.0,"title":"Amount Cents"}},"type":"object","required":["field","op","amount_cents"],"title":"OrderValueCondition","description":"The sale price ex VAT, strictly above or below an amount."},"OrderVehicle":{"properties":{"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"generation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation"},"trim":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trim"},"engine_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Code"},"year_begin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year Begin"},"year_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year End"},"power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Hp"},"torque_nm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Nm"},"displacement_cc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Displacement Cc"},"cylinders":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cylinders"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"turbo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turbo"},"bore_stroke":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bore Stroke"},"compression_ratio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compression Ratio"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"gears":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gears"},"drivetrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivetrain"},"gearbox":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gearbox"},"body_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Type"}},"type":"object","title":"OrderVehicle","description":"Every vehicle fact resolved for the order's engine — identity, engine and\ndrivetrain specs. All optional: a sparse catalogue engine omits what it lacks."},"OrderVehicleSet":{"properties":{"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]}},"type":"object","title":"OrderVehicleSet","description":"A tuner naming the car on an order after the fact — a catalogue engine or\ncorrected typed-in details. One of the two is required: clearing the car is\nnot a correction anyone needs."},"OrdersSlice":{"properties":{"open_by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Open By Status"},"recent":{"items":{"$ref":"#/components/schemas/OrderRow"},"type":"array","title":"Recent"}},"type":"object","required":["open_by_status","recent"],"title":"OrdersSlice"},"OrdersUsage":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent"},"is_over":{"type":"boolean","title":"Is Over"},"overage_count":{"type":"integer","title":"Overage Count"},"overage_accrued_cents":{"type":"integer","title":"Overage Accrued Cents"}},"type":"object","required":["used","limit","percent","is_over","overage_count","overage_accrued_cents"],"title":"OrdersUsage","description":"The order-allotment meter row (§14.5). ``limit`` None = unlimited, so\n``percent`` is None and ``is_over`` False. ``overage_accrued_cents`` is the\noverage-order count times the resolved per-order rate (0 until a plan sets one)."},"OrgBillingUpdate":{"properties":{"billing_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Email"},"billing_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Billing Address"},"billing_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Currency"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Locale"}},"type":"object","title":"OrgBillingUpdate"},"OrgCreate":{"properties":{"name":{"type":"string","title":"Name"},"country":{"type":"string","title":"Country"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"type":{"type":"string","enum":["business","personal"],"title":"Type","default":"business"}},"type":"object","required":["name","country"],"title":"OrgCreate"},"OrgEvcCustomerUpdate":{"properties":{"evc_customer_number":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Evc Customer Number"}},"type":"object","title":"OrgEvcCustomerUpdate","description":"A dealer stating (or clearing) their WinOLS/EVC customer number.\n\nIts own request rather than a field on ``OrgSelfUpdate`` because the org PUT\nREPLACES the profile: the onboarding step reuses that PUT and sends only what\nit collects, so a number carried there would be silently wiped the next time\na dealer walked through onboarding."},"OrgRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"country":{"type":"string","title":"Country"},"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status","default":"active"},"default_locale":{"type":"string","title":"Default Locale"},"billing_currency":{"type":"string","title":"Billing Currency"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"vat_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Country"},"vat_status":{"type":"string","title":"Vat Status","default":"UNVERIFIED"}},"type":"object","required":["id","name","country","type","default_locale","billing_currency","vat_number","vat_country"],"title":"OrgRead"},"OrgSelfRead":{"properties":{"name":{"type":"string","title":"Name"},"country":{"type":"string","title":"Country"},"vat":{"type":"string","title":"Vat"},"vat_validated":{"type":"boolean","title":"Vat Validated","default":false},"vat_status":{"type":"string","title":"Vat Status","default":"UNVERIFIED"},"type":{"type":"string","title":"Type"},"billing_email":{"type":"string","title":"Billing Email"},"billing_address":{"type":"string","title":"Billing Address"},"billing_address_parts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Billing Address Parts"},"billing_currency":{"type":"string","title":"Billing Currency"},"supported_currencies":{"items":{"type":"string"},"type":"array","title":"Supported Currencies","default":["EUR","USD"]},"legal_identity":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Legal Identity"},"evc_customer_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evc Customer Number"}},"type":"object","required":["name","country","vat","type","billing_email","billing_address","billing_currency"],"title":"OrgSelfRead","description":"The dealer-facing view of their own organisation (account settings)."},"OrgSelfUpdate":{"properties":{"name":{"type":"string","title":"Name"},"country":{"type":"string","title":"Country"},"vat":{"type":"string","title":"Vat","default":""},"type":{"type":"string","enum":["business","personal"],"title":"Type","default":"business"},"billing_email":{"type":"string","title":"Billing Email","default":""},"billing_address":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}],"title":"Billing Address","default":""},"legal_identity":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Legal Identity"}},"type":"object","required":["name","country"],"title":"OrgSelfUpdate"},"OrgStatusUpdate":{"properties":{"status":{"type":"string","enum":["active","suspended"],"title":"Status"}},"type":"object","required":["status"],"title":"OrgStatusUpdate","description":"Admin change to an organisation's account standing."},"OriginalFileRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"file_name":{"type":"string","title":"File Name"},"checksum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checksum"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"used_in_order_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Used In Order Ids","default":[]}},"type":"object","required":["id","file_name","created_at"],"title":"OriginalFileRead"},"OriginalFileUploaded":{"properties":{"original_file_id":{"type":"string","format":"uuid","title":"Original File Id"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"}},"type":"object","required":["original_file_id"],"title":"OriginalFileUploaded","description":"Result of an API-proxied original-file upload (POST /file-services/upload).\n\n``file_name`` is the name as stored, which is shorter than the one sent when\nthat was past the 255-character column limit."},"OutgoingDelegationView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"from_tuner_user_id":{"type":"string","format":"uuid","title":"From Tuner User Id"},"to_tuner_user_id":{"type":"string","format":"uuid","title":"To Tuner User Id"},"to_tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Tuner Name"},"status":{"type":"string","title":"Status"},"broadcast":{"type":"boolean","title":"Broadcast","default":false},"payout_split_bps":{"type":"integer","title":"Payout Split Bps"},"accepted_split_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Accepted Split Bps"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"offered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Offered At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"fallback_of_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Fallback Of Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"time_in_state_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time In State Seconds"},"is_expiring_soon":{"type":"boolean","title":"Is Expiring Soon","default":false}},"type":"object","required":["id","order_id","from_tuner_user_id","to_tuner_user_id","status","payout_split_bps"],"title":"OutgoingDelegationView","description":"One row of A's outgoing delegation monitoring board: who is handling the\norder, where the handoff sits, and how long it has been there.\n\n``time_in_state_seconds`` is measured from when the delegation entered its\ncurrent state (``responded_at`` once B answered, else ``offered_at``).\n``is_expiring_soon`` flags an offer whose TTL is nearly up so A can nudge or\nre-send before it lapses."},"OverrideRead":{"properties":{"key":{"type":"string","title":"Key"},"type":{"type":"string","title":"Type"},"value":{"title":"Value"},"source":{"type":"string","title":"Source"},"effective_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Effective From"},"effective_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Effective Until"}},"type":"object","required":["key","type","source"],"title":"OverrideRead","description":"One per-tuner override row (value unwrapped from its ``{\"v\": ...}`` box)."},"OverrideWrite":{"properties":{"value":{"title":"Value"},"source":{"type":"string","title":"Source","default":"override"}},"type":"object","title":"OverrideWrite","description":"Set a single per-tuner entitlement override (§13.3c)."},"Overview":{"properties":{"currency":{"type":"string","title":"Currency"},"today_by_state":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["dispatching","bidding","offered","assigned","attention"]},"type":"object","title":"Today By State"},"orders_today":{"type":"integer","title":"Orders Today"},"median_time_to_assignment_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Median Time To Assignment S"},"revenue_today_cents":{"type":"integer","title":"Revenue Today Cents"},"margin_today_cents":{"type":"integer","title":"Margin Today Cents"},"late_orders":{"type":"integer","title":"Late Orders"},"attention_count":{"type":"integer","title":"Attention Count"}},"type":"object","required":["currency","today_by_state","orders_today","revenue_today_cents","margin_today_cents","late_orders","attention_count"],"title":"Overview"},"OwnershipTransfer":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"}},"type":"object","required":["user_id"],"title":"OwnershipTransfer","description":"Platform admin: the colleague who becomes the organisation's owner."},"PartQuoteRequest":{"properties":{"part_number":{"type":"string","maxLength":256,"title":"Part Number","default":""},"locale":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Locale"}},"type":"object","title":"PartQuoteRequest","description":"A visitor's lookup. Long input is accepted so it can be answered as\n``invalid`` rather than refused outright. ``locale`` picks the add-on\nlabels."},"PartQuoteResponse":{"properties":{"status":{"type":"string","enum":["found","not_found","invalid","error","searching","sold_out"],"title":"Status"},"part_number":{"type":"string","title":"Part Number"},"search_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Token"},"poll_after_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Poll After Ms"},"quote_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Quote Id"},"unit_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Price Cents"},"needs_shipping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Shipping"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"product":{"anyOf":[{"$ref":"#/components/schemas/PublicProduct"},{"type":"null"}]},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicOption"},"type":"array"},{"type":"null"}],"title":"Options"}},"type":"object","required":["status","part_number"],"title":"PartQuoteResponse","description":"What a visitor sees. ``found``: the product, the price to pay (ex VAT),\nthe add-ons and the quote to buy it with. ``searching``: an opaque token to\npoll. ``sold_out``: the catalogue part, without a price or a quote. Never\nthe base price, the cost, the margin or where the price came from."},"ParticipantsAdd":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"User Ids","default":[]}},"type":"object","title":"ParticipantsAdd","description":"Add users to a thread (owner only)."},"PartnerAccept":{"properties":{"invoice_consent":{"type":"boolean","title":"Invoice Consent","default":false}},"type":"object","title":"PartnerAccept","description":"Accepting a partnership; ``invoice_consent`` is the self-billing checkbox."},"PartnerBalanceCard":{"properties":{"role":{"type":"string","enum":["debtor","creditor"],"title":"Role"},"counterparty_name":{"type":"string","title":"Counterparty Name"},"counterparty_org_id":{"type":"string","format":"uuid","title":"Counterparty Org Id"},"partner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Partner Id"},"currency":{"type":"string","title":"Currency"},"open_cents":{"type":"integer","title":"Open Cents"},"max_owed_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Owed Cents"},"stripe_available_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stripe Available Cents"},"lines":{"items":{"$ref":"#/components/schemas/PartnerDebtLine"},"type":"array","title":"Lines"},"movements":{"items":{"$ref":"#/components/schemas/PartnerBalanceMovement"},"type":"array","title":"Movements"},"statements":{"items":{"$ref":"#/components/schemas/PartnerStatementSummary"},"type":"array","title":"Statements"}},"type":"object","required":["role","counterparty_name","counterparty_org_id","currency","open_cents"],"title":"PartnerBalanceCard","description":"What the viewer owes one partner (debtor) or is owed by one (creditor),\nin one currency."},"PartnerBalanceMovement":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"kind":{"type":"string","enum":["booked","held","extracted","repaid","paid_by_link","cancelled"],"title":"Kind"},"amount_cents":{"type":"integer","title":"Amount Cents"},"balance_after_cents":{"type":"integer","title":"Balance After Cents"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"}},"type":"object","required":["at","kind","amount_cents","balance_after_cents"],"title":"PartnerBalanceMovement","description":"One step of the running balance between A and B, oldest first."},"PartnerBillingUpdate":{"properties":{"allow_invoice_billing":{"type":"boolean","title":"Allow Invoice Billing"}},"type":"object","required":["allow_invoice_billing"],"title":"PartnerBillingUpdate","description":"B-side quote-billing consent: may A pay B's quotes on monthly invoice."},"PartnerConsentUpdate":{"properties":{"auto_accept_consented":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Accept Consented"},"auto_accept_floor_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Accept Floor Bps"},"min_payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Payout Cents"}},"type":"object","title":"PartnerConsentUpdate","description":"B-side pre-consent for auto-accepting an away tuner's work."},"PartnerCost":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"partner_name":{"type":"string","title":"Partner Name"},"currency":{"type":"string","title":"Currency","default":"EUR"},"cost_cents":{"type":"integer","title":"Cost Cents"},"invoice_count":{"type":"integer","title":"Invoice Count"}},"type":"object","required":["workspace_id","partner_name","cost_cents","invoice_count"],"title":"PartnerCost","description":"One partner tuner's slice of what this tuner spent outsourcing files — the\nbuy-side mirror of ``DealerRevenue``."},"PartnerCreditBalance":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"partner_name":{"type":"string","title":"Partner Name"},"held":{"type":"string","title":"Held"},"reserved":{"type":"string","title":"Reserved"},"open_orders":{"type":"integer","title":"Open Orders"},"value_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"}},"type":"object","required":["workspace_id","partner_name","held","reserved","open_orders"],"title":"PartnerCreditBalance","description":"Prepaid credit this tuner holds with one partner — money already paid that\nhas not become cost yet, so it is a point-in-time asset and carries no window.\n\n``reserved`` is the slice already committed to open orders with that partner;\n``held`` is the wallet after those reserves. When ``reserved`` exceeds\n``held`` the tuner's routed work will not clear without a top-up, which is\nthe one thing the finance dashboard cannot otherwise tell them."},"PartnerCreditLimitUpdate":{"properties":{"max_owed_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Owed Cents"}},"type":"object","title":"PartnerCreditLimitUpdate","description":"B-side credit limit: the most A may owe B on account, in minor units of\nthe order's currency. None removes the limit."},"PartnerCreditsRead":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"balances":{"additionalProperties":{"type":"number"},"type":"object","title":"Balances"}},"type":"object","required":["workspace_id"],"title":"PartnerCreditsRead","description":"What the OTHER tuner on a partnership holds in the VIEWER's workspace.\n\nThe mirror of the partner-credit card already on this page, which shows what\nthe viewer holds with them. Both directions exist because a partnership runs\nboth ways: each side can prepay the other for work.\n\nKeyed by credit kind rather than totalled, because the kinds are not\ninterchangeable — a slave balance cannot pay for an editable file, and ``evc``\nis not spendable on this platform at all."},"PartnerDebtLine":{"properties":{"debt_id":{"type":"string","format":"uuid","title":"Debt Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"order_ref":{"type":"string","title":"Order Ref"},"vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle"},"booked_at":{"type":"string","format":"date-time","title":"Booked At"},"currency":{"type":"string","title":"Currency"},"share_cents":{"type":"integer","title":"Share Cents"},"held_cents":{"type":"integer","title":"Held Cents"},"extracted_cents":{"type":"integer","title":"Extracted Cents"},"repaid_cents":{"type":"integer","title":"Repaid Cents"},"paid_by_link_cents":{"type":"integer","title":"Paid By Link Cents"},"cancelled_cents":{"type":"integer","title":"Cancelled Cents"},"open_cents":{"type":"integer","title":"Open Cents"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"status":{"type":"string","enum":["open","settled","cancelled"],"title":"Status"}},"type":"object","required":["debt_id","order_id","order_ref","booked_at","currency","share_cents","held_cents","extracted_cents","repaid_cents","paid_by_link_cents","cancelled_cents","open_cents","status"],"title":"PartnerDebtLine","description":"One partner leg and how B's share of it was covered."},"PartnerDirectOrdersUpdate":{"properties":{"allow_direct_orders":{"type":"boolean","title":"Allow Direct Orders"}},"type":"object","required":["allow_direct_orders"],"title":"PartnerDirectOrdersUpdate","description":"B-side consent: may A send direct orders (billed on monthly invoice)."},"PartnerDocuments":{"properties":{"issued":{"items":{"$ref":"#/components/schemas/InvoiceSummary"},"type":"array","title":"Issued"},"received":{"items":{"$ref":"#/components/schemas/InvoiceSummary"},"type":"array","title":"Received"}},"type":"object","required":["issued","received"],"title":"PartnerDocuments","description":"The partner invoices and credit notes between the viewer and one partner.\n\n``issued`` were issued in the viewer's name to the partner (work the viewer\ndid for them); ``received`` were issued to the viewer in the partner's name."},"PartnerInvite":{"properties":{"email":{"type":"string","title":"Email"},"to_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"To Workspace Id"}},"type":"object","required":["email"],"title":"PartnerInvite"},"PartnerInviteResult":{"properties":{"token":{"type":"string","title":"Token"},"state":{"type":"string","title":"State","default":"invited"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"partner":{"anyOf":[{"$ref":"#/components/schemas/PartnerRead"},{"type":"null"}]}},"type":"object","required":["token"],"title":"PartnerInviteResult"},"PartnerInvoiceCode":{"properties":{"code":{"type":"string","title":"Code"},"derived":{"type":"boolean","title":"Derived"},"locked":{"type":"boolean","title":"Locked"},"example":{"type":"string","title":"Example"}},"type":"object","required":["code","derived","locked","example"],"title":"PartnerInvoiceCode","description":"The code a seller's partner invoices are numbered with.\n\n``derived`` — not chosen yet; this is what the slug gives and what the first\ndocument will carry unless changed first. ``locked`` — documents already\ncarry it, so it can no longer change. ``example`` is what the next number\nlooks like."},"PartnerInvoiceCodeUpdate":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"PartnerInvoiceCodeUpdate"},"PartnerMemberRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"team_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Role"},"status":{"type":"string","enum":["active","pending"],"title":"Status"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["id","name","email","status"],"title":"PartnerMemberRead","description":"One person at the partner tuner — who to contact about the work.\n\nDeliberately WITHOUT last-login: a dealer is a account the tuner administers,\nbut a partner is a peer business, and when their staff last signed in is\ntheir own affair. Name, address and role are what routing work to them\nactually needs."},"PartnerOrderUpdate":{"properties":{"partner_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Partner Ids"}},"type":"object","required":["partner_ids"],"title":"PartnerOrderUpdate","description":"Bulk routing-order update: A's accepted partner ids, first-tried first."},"PartnerPendingInvite":{"properties":{"token":{"type":"string","title":"Token"},"email":{"type":"string","title":"Email"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["token","email"],"title":"PartnerPendingInvite","description":"One staged partner invite: an invited email with no tuner account yet.\n\nThese live only in Redis until the invitee registers, so this is the\ninviter's only window onto them — the partners page lists them with\nresend / copy-link. ``created_at`` is None for invites staged before the\ntimestamp existed."},"PartnerQuoteCounts":{"properties":{"outgoing_actionable":{"type":"integer","title":"Outgoing Actionable","default":0},"incoming_actionable":{"type":"integer","title":"Incoming Actionable","default":0}},"type":"object","title":"PartnerQuoteCounts","description":"Action-needed badge counts: quotes awaiting A (``quoted``) and requests\nawaiting B (``requested``)."},"PartnerQuoteCreate":{"properties":{"partner_id":{"type":"string","format":"uuid","title":"Partner Id"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"vehicle_unlisted":{"anyOf":[{"$ref":"#/components/schemas/UnlistedVehicle"},{"type":"null"}]},"selected_stage":{"type":"string","title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons","default":[]},"original_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Original File Id"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"read_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Tool"},"tool_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tool Id"},"ecu_type":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"hardware_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hardware Number"},"software_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software Number"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"dtc_codes":{"items":{},"type":"array","title":"Dtc Codes","default":[]}},"type":"object","required":["partner_id","selected_stage"],"title":"PartnerQuoteCreate","description":"A's quote request (or direct order): the target partnership plus the\nproject fields the order wizard captured.\n\nThe car is a catalogue engine (``catalogue_node_id``) or the typed-in\ndetails of one we do not list (``vehicle_unlisted``), never both. Neither is\n\"car not specified\", which only a partner whose workspace switched\n``order_vehicle_required`` off accepts — the service checks, since it alone\nresolves which workspace that is."},"PartnerQuoteDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"partner_id":{"type":"string","format":"uuid","title":"Partner Id"},"from_org_id":{"type":"string","format":"uuid","title":"From Org Id"},"from_user_id":{"type":"string","format":"uuid","title":"From User Id"},"to_workspace_id":{"type":"string","format":"uuid","title":"To Workspace Id"},"responded_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responded By User Id"},"accepted_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Accepted By User Id"},"status":{"type":"string","title":"Status"},"quote_round":{"type":"integer","title":"Quote Round"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"response_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Note"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"},"quoted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Quoted At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"order_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Status"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"from_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Org Name"},"to_workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Workspace Name"},"selected_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons","default":[]},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"read_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Tool"},"ecu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu Type"},"tcu_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tcu Type"},"hardware_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hardware Number"},"software_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software Number"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"dtc_codes":{"items":{},"type":"array","title":"Dtc Codes","default":[]},"original_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Original File Id"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"}},"type":"object","required":["id","order_id","partner_id","from_org_id","from_user_id","to_workspace_id","status","quote_round","created_at"],"title":"PartnerQuoteDetail","description":"Quote detail: the row plus the order's project summary so B can judge\nthe job (and A can review what they asked for) without opening the queue."},"PartnerQuoteRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"partner_id":{"type":"string","format":"uuid","title":"Partner Id"},"from_org_id":{"type":"string","format":"uuid","title":"From Org Id"},"from_user_id":{"type":"string","format":"uuid","title":"From User Id"},"to_workspace_id":{"type":"string","format":"uuid","title":"To Workspace Id"},"responded_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responded By User Id"},"accepted_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Accepted By User Id"},"status":{"type":"string","title":"Status"},"quote_round":{"type":"integer","title":"Quote Round"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"response_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Note"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"},"quoted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Quoted At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"billing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Mode"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"order_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Status"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"from_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Org Name"},"to_workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Workspace Name"}},"type":"object","required":["id","order_id","partner_id","from_org_id","from_user_id","to_workspace_id","status","quote_round","created_at"],"title":"PartnerQuoteRead","description":"One quote row plus joined convenience fields for the list/detail UIs."},"PartnerRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"from_tuner_org_id":{"type":"string","format":"uuid","title":"From Tuner Org Id"},"from_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"From Workspace Id"},"to_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"To Workspace Id"},"from_tuner_user_id":{"type":"string","format":"uuid","title":"From Tuner User Id"},"to_tuner_user_id":{"type":"string","format":"uuid","title":"To Tuner User Id"},"status":{"type":"string","title":"Status"},"auto_delegate_enabled":{"type":"boolean","title":"Auto Delegate Enabled","default":false},"routing_priority":{"type":"integer","title":"Routing Priority","default":100},"default_split_bps":{"type":"integer","title":"Default Split Bps","default":0},"auto_accept_consented":{"type":"boolean","title":"Auto Accept Consented","default":false},"auto_accept_floor_bps":{"type":"integer","title":"Auto Accept Floor Bps","default":0},"min_payout_cents":{"type":"integer","title":"Min Payout Cents","default":0},"min_payout_approved_cents":{"type":"integer","title":"Min Payout Approved Cents","default":0},"allow_invoice_billing":{"type":"boolean","title":"Allow Invoice Billing","default":false},"allow_direct_orders":{"type":"boolean","title":"Allow Direct Orders","default":false},"max_owed_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Owed Cents"},"owed_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Owed By Currency"},"invoice_consent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invoice Consent At"},"invoice_consent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Consent Version"},"to_tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Tuner Name"},"from_tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Tuner Name"},"to_tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"To Tuner Workspace Id"},"to_tuner_order_vehicle_required":{"type":"boolean","title":"To Tuner Order Vehicle Required","default":true},"invited_via_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited Via Token"},"to_tuner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Tuner Email"},"auto_delegate_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Delegate Blocked Reason"}},"type":"object","required":["id","from_tuner_org_id","from_tuner_user_id","to_tuner_user_id","status"],"title":"PartnerRead"},"PartnerRoutingUpdate":{"properties":{"auto_delegate_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Delegate Enabled"},"routing_priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Routing Priority"},"default_split_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Split Bps"},"min_payout_approved_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Payout Approved Cents"}},"type":"object","title":"PartnerRoutingUpdate","description":"A-side OOO routing controls for one accepted partner link."},"PartnerStatementDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"period":{"type":"string","title":"Period"},"issued_at":{"type":"string","format":"date-time","title":"Issued At"},"due_on":{"type":"string","format":"date","title":"Due On"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","enum":["open","paid","superseded"],"title":"Status"},"lines_total_cents":{"type":"integer","title":"Lines Total Cents"},"credit_applied_cents":{"type":"integer","title":"Credit Applied Cents"},"fee_net_cents":{"type":"integer","title":"Fee Net Cents"},"fee_vat_cents":{"type":"integer","title":"Fee Vat Cents"},"fee_vat_rate_bps":{"type":"integer","title":"Fee Vat Rate Bps"},"fee_reverse_charge":{"type":"boolean","title":"Fee Reverse Charge"},"fee_tax_note_code":{"type":"string","title":"Fee Tax Note Code"},"total_cents":{"type":"integer","title":"Total Cents"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"overdue":{"type":"boolean","title":"Overdue","default":false},"can_pay":{"type":"boolean","title":"Can Pay","default":false},"debtor_name":{"type":"string","title":"Debtor Name"},"debtor_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Debtor Vat Number"},"creditor_name":{"type":"string","title":"Creditor Name"},"creditor_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creditor Vat Number"},"platform_name":{"type":"string","title":"Platform Name"},"platform_vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Vat Number"},"fee_invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fee Invoice Number"},"lines":{"items":{"$ref":"#/components/schemas/PartnerStatementLine"},"type":"array","title":"Lines"}},"type":"object","required":["id","number","period","issued_at","due_on","currency","status","lines_total_cents","credit_applied_cents","fee_net_cents","fee_vat_cents","fee_vat_rate_bps","fee_reverse_charge","fee_tax_note_code","total_cents","debtor_name","creditor_name","platform_name"],"title":"PartnerStatementDetail","description":"A statement as a document: parties, B's invoices, the platform's fee."},"PartnerStatementLine":{"properties":{"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"invoice_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Invoice Date"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"order_ref":{"type":"string","title":"Order Ref"},"net_cents":{"type":"integer","title":"Net Cents"},"vat_cents":{"type":"integer","title":"Vat Cents"},"gross_cents":{"type":"integer","title":"Gross Cents"},"open_cents":{"type":"integer","title":"Open Cents"}},"type":"object","required":["order_id","order_ref","net_cents","vat_cents","gross_cents","open_cents"],"title":"PartnerStatementLine"},"PartnerStatementSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"period":{"type":"string","title":"Period"},"issued_at":{"type":"string","format":"date-time","title":"Issued At"},"due_on":{"type":"string","format":"date","title":"Due On"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","enum":["open","paid","superseded"],"title":"Status"},"lines_total_cents":{"type":"integer","title":"Lines Total Cents"},"credit_applied_cents":{"type":"integer","title":"Credit Applied Cents"},"fee_net_cents":{"type":"integer","title":"Fee Net Cents"},"fee_vat_cents":{"type":"integer","title":"Fee Vat Cents"},"fee_vat_rate_bps":{"type":"integer","title":"Fee Vat Rate Bps"},"fee_reverse_charge":{"type":"boolean","title":"Fee Reverse Charge"},"fee_tax_note_code":{"type":"string","title":"Fee Tax Note Code"},"total_cents":{"type":"integer","title":"Total Cents"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"overdue":{"type":"boolean","title":"Overdue","default":false},"can_pay":{"type":"boolean","title":"Can Pay","default":false}},"type":"object","required":["id","number","period","issued_at","due_on","currency","status","lines_total_cents","credit_applied_cents","fee_net_cents","fee_vat_cents","fee_vat_rate_bps","fee_reverse_charge","fee_tax_note_code","total_cents"],"title":"PartnerStatementSummary"},"PartsShopOptionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Labels"},"price_cents":{"type":"integer","title":"Price Cents"},"active":{"type":"boolean","title":"Active"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","name","labels","price_cents","active","position"],"title":"PartsShopOptionRead","description":"One add-on as the owner manages it."},"PartsShopOptionWrite":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"labels":{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["en","nl","de","fr","es"]},"type":"object","title":"Labels"},"price_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Price Cents"},"active":{"type":"boolean","title":"Active","default":true},"position":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Position"}},"type":"object","required":["name","price_cents"],"title":"PartsShopOptionWrite","description":"Create or edit one add-on. ``labels`` holds the visitor-facing wording\nper locale; ``name`` is the owner's wording and the fallback."},"PartsShopSettingsRead":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"margin_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Margin Cents"},"shipping_applies":{"type":"boolean","title":"Shipping Applies"},"list_enabled":{"type":"boolean","title":"List Enabled","default":true},"search_enabled":{"type":"boolean","title":"Search Enabled","default":false},"destination_country":{"type":"string","enum":["NL","BE","DE","FR","LT"],"title":"Destination Country","default":"NL"},"include_delivery":{"type":"boolean","title":"Include Delivery","default":true},"delivery_fallback_cents":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Delivery Fallback Cents","default":2500},"include_service_fee":{"type":"boolean","title":"Include Service Fee","default":true},"service_fee_fallback_cents":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Service Fee Fallback Cents","default":826},"vat_unknown_basis":{"type":"string","enum":["included","excluded"],"title":"Vat Unknown Basis","default":"excluded"},"excluded_conditions":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Excluded Conditions"},"max_source_price_cents":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Max Source Price Cents"},"display":{"$ref":"#/components/schemas/DisplaySettings"},"rrr_enabled":{"type":"boolean","title":"Rrr Enabled","default":false}},"type":"object","required":["enabled","margin_cents","shipping_applies"],"title":"PartsShopSettingsRead","description":"The saved settings (defaults until first saved). ``rrr_enabled`` is the\nadmin's switch, not the owner's: without it the page offers no RRR.lt\nsearch at all."},"PartsShopSettingsSave":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"margin_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Margin Cents"},"shipping_applies":{"type":"boolean","title":"Shipping Applies"},"list_enabled":{"type":"boolean","title":"List Enabled","default":true},"search_enabled":{"type":"boolean","title":"Search Enabled","default":false},"destination_country":{"type":"string","enum":["NL","BE","DE","FR","LT"],"title":"Destination Country","default":"NL"},"include_delivery":{"type":"boolean","title":"Include Delivery","default":true},"delivery_fallback_cents":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Delivery Fallback Cents","default":2500},"include_service_fee":{"type":"boolean","title":"Include Service Fee","default":true},"service_fee_fallback_cents":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Service Fee Fallback Cents","default":826},"vat_unknown_basis":{"type":"string","enum":["included","excluded"],"title":"Vat Unknown Basis","default":"excluded"},"excluded_conditions":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Excluded Conditions"},"max_source_price_cents":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Max Source Price Cents"},"display":{"$ref":"#/components/schemas/DisplaySettings"}},"type":"object","required":["enabled","margin_cents","shipping_applies"],"title":"PartsShopSettingsSave","description":"Everything the owner sets on the Parts shop page (amounts ex VAT)."},"PartsShopStatus":{"properties":{"shop_enabled":{"type":"boolean","title":"Shop Enabled"},"parts_shop_enabled":{"type":"boolean","title":"Parts Shop Enabled"},"catalogue_enabled":{"type":"boolean","title":"Catalogue Enabled"},"parts_on_sale":{"type":"integer","title":"Parts On Sale"},"search_enabled":{"type":"boolean","title":"Search Enabled"},"block_published":{"type":"boolean","title":"Block Published"},"payments_ready":{"type":"boolean","title":"Payments Ready"}},"type":"object","required":["shop_enabled","parts_shop_enabled","catalogue_enabled","parts_on_sale","search_enabled","block_published","payments_ready"],"title":"PartsShopStatus","description":"Whether the parts shop can sell right now, piece by piece, for the\nstatus line on the owner's page."},"PaymentFee":{"properties":{"method":{"type":"string","title":"Method"},"markup_bps":{"type":"integer","title":"Markup Bps"}},"type":"object","required":["method","markup_bps"],"title":"PaymentFee","description":"What the platform keeps on one payment method: the real Stripe fee for\nthe payment, marked up by ``markup_bps`` (3000 = the fee plus 30%)."},"PaymentMethodRead":{"properties":{"type":{"type":"string","title":"Type"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last4"},"exp_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Month"},"exp_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Year"}},"type":"object","required":["type"],"title":"PaymentMethodRead"},"PaymentProviders":{"properties":{"providers":{"items":{"type":"string","enum":["stripe","paypal"]},"type":"array","title":"Providers"}},"type":"object","required":["providers"],"title":"PaymentProviders","description":"Which adapters a checkout may offer right now, for the method choice a\nbuyer sees before any checkout exists. Stripe is always first."},"PaymentRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider":{"type":"string","title":"Provider"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"reference":{"type":"string","title":"Reference"},"reconciled":{"type":"boolean","title":"Reconciled"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","provider","amount_cents","currency","status","reference","reconciled","created_at"],"title":"PaymentRecord","description":"One payment for the cross-org admin payments ledger."},"PayoutLiability":{"properties":{"by_status":{"items":{"$ref":"#/components/schemas/PayoutStatusSlice"},"type":"array","title":"By Status"}},"type":"object","required":["by_status"],"title":"PayoutLiability","description":"Payout liability grouped by earning status."},"PayoutPolicyUpdate":{"properties":{"payout_type":{"type":"string","enum":["INTERNAL","EXTERNAL"],"title":"Payout Type"},"split_tuner_bps":{"type":"integer","title":"Split Tuner Bps","default":8000},"split_margin_bps":{"type":"integer","title":"Split Margin Bps","default":1500},"split_cost_bps":{"type":"integer","title":"Split Cost Bps","default":500}},"type":"object","required":["payout_type"],"title":"PayoutPolicyUpdate"},"PayoutRow":{"properties":{"id":{"type":"string","title":"Id"},"source":{"type":"string","title":"Source"},"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"dealer_name":{"type":"string","title":"Dealer Name"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"gross_cents":{"type":"integer","title":"Gross Cents"},"fee_cents":{"type":"integer","title":"Fee Cents"},"net_cents":{"type":"integer","title":"Net Cents"},"status":{"type":"string","title":"Status"},"currency":{"type":"string","title":"Currency"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","source","dealer_org_id","dealer_name","gross_cents","fee_cents","net_cents","status","currency","created_at"],"title":"PayoutRow"},"PayoutSlice":{"properties":{"blocked":{"type":"boolean","title":"Blocked"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"onboarding_complete":{"type":"boolean","title":"Onboarding Complete"}},"type":"object","required":["blocked","reason","onboarding_complete"],"title":"PayoutSlice"},"PayoutStatusSlice":{"properties":{"status":{"type":"string","title":"Status"},"amount_cents":{"type":"integer","title":"Amount Cents"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status","amount_cents","count"],"title":"PayoutStatusSlice","description":"Outstanding payout amount + count for one earning status."},"PendingInviteRead":{"properties":{"token":{"type":"string","title":"Token"},"email":{"type":"string","title":"Email"},"payment_mode":{"type":"string","enum":["per_file","credits","monthly_invoice"],"title":"Payment Mode","default":"per_file"},"net_terms_days":{"type":"integer","title":"Net Terms Days","default":14},"discount_bps":{"type":"integer","title":"Discount Bps","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["token","email"],"title":"PendingInviteRead","description":"One staged invite: an invited email with no account yet.\n\nThese live only in Redis until the invitee registers, so this is the tuner's\nonly window onto them — the dealers page lists them with resend / copy-link.\n``created_at`` is None for invites staged before the timestamp existed."},"PlanAssign":{"properties":{"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},"type":"object","title":"PlanAssign","description":"Directly assign a plan to a workspace (admin move, no Stripe checkout).\n\n``None`` clears the plan — the inverse of a comp, dropping the workspace back\nto the global entitlement floor."},"PlanAssignResult":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"}},"type":"object","required":["workspace_id"],"title":"PlanAssignResult","description":"The outcome of an admin assign-plan move.\n\n``subscription_status`` rides along because a comp changes it in the same\nmove (§14.2): the admin surfaces render the badge straight from this reply."},"PlanCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"eur"},"price_cents_by_currency":{"additionalProperties":{"type":"integer","maximum":10000000.0,"minimum":0.0},"type":"object","title":"Price Cents By Currency"},"interval":{"type":"string","title":"Interval","default":"month"},"entitlements":{"additionalProperties":true,"type":"object","title":"Entitlements"}},"type":"object","required":["code","name"],"title":"PlanCreate","description":"Create a new plan. ``code`` is create-only (§13.3a)."},"PlanQuoteResponse":{"properties":{"plan":{"type":"string","title":"Plan"},"currency":{"type":"string","title":"Currency"},"net_cents":{"type":"integer","title":"Net Cents"},"vat_cents":{"type":"integer","title":"Vat Cents"},"gross_cents":{"type":"integer","title":"Gross Cents"},"vat_rate_bps":{"type":"integer","title":"Vat Rate Bps"},"reverse_charge":{"type":"boolean","title":"Reverse Charge"},"note_code":{"type":"string","title":"Note Code"},"list_net_cents":{"type":"integer","title":"List Net Cents","default":0},"discount_cents":{"type":"integer","title":"Discount Cents","default":0},"discount_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Bps"}},"type":"object","required":["plan","currency","net_cents","vat_cents","gross_cents","vat_rate_bps","reverse_charge","note_code"],"title":"PlanQuoteResponse","description":"A plan priced for one tuner. ``net_cents`` is what is actually charged ex\nVAT — the list price (``list_net_cents``) less any discount — and\n``gross_cents`` is what the card is charged."},"PlanRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"audience":{"type":"string","enum":["tuner","dealer"],"title":"Audience","default":"tuner"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"},"interval":{"type":"string","title":"Interval"},"active":{"type":"boolean","title":"Active"},"stripe_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Price Id"},"price_sync_status":{"type":"string","enum":["ready","pending","failed","disabled","unconfigured"],"title":"Price Sync Status","default":"ready"},"price_sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Sync Error"},"entitlements":{"additionalProperties":true,"type":"object","title":"Entitlements"},"order_fees":{"additionalProperties":{"type":"integer"},"type":"object","title":"Order Fees"},"subscriber_count":{"type":"integer","title":"Subscriber Count","default":0}},"type":"object","required":["code","name","price_cents","currency","interval","active"],"title":"PlanRead","description":"A plan row + its entitlement map + live subscriber count (§13.3a)."},"PlanStatus":{"properties":{"state":{"type":"string","enum":["pending","trial","free","paid"],"title":"State"},"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"days_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Left"},"free_order_fee_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Order Fee Cents"},"free_order_fee_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Free Order Fee Currency"}},"type":"object","required":["state"],"title":"PlanStatus","description":"The plan step of the checklist."},"PlanSummaryPublic":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"},"interval":{"type":"string","title":"Interval"},"orders_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Orders Limit"},"overage_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overage Cents"},"per_order_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Order Cents"}},"type":"object","required":["code","name","price_cents","currency","interval"],"title":"PlanSummaryPublic","description":"The anonymous marketing projection of a plan: what it is called and what\nit costs, its file allowance included. No Stripe ids, entitlements or\nsubscriber counts — the public site writes its own feature copy per plan\ncode."},"PlanUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"price_cents_by_currency":{"anyOf":[{"additionalProperties":{"type":"integer","maximum":10000000.0,"minimum":0.0},"type":"object"},{"type":"null"}],"title":"Price Cents By Currency"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"entitlements":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Entitlements"},"order_fees":{"anyOf":[{"additionalProperties":{"type":"integer","maximum":100000.0,"minimum":0.0},"type":"object"},{"type":"null"}],"title":"Order Fees"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"PlanUpdate","description":"Live-edit a plan's metadata + entitlement map. Every field optional; only\nthe provided ones change. ``entitlements`` replaces the whole map (the matrix\neditor submits the full map), and so does ``order_fees`` — a currency left\nout of it charges no per-order fee."},"PlatformFeeConfigRead":{"properties":{"workspace_payment_fee_bps":{"type":"integer","title":"Workspace Payment Fee Bps"},"workspace_payment_fee_fixed_cents":{"type":"integer","title":"Workspace Payment Fee Fixed Cents"},"estimated_stripe_cost_bps":{"type":"integer","title":"Estimated Stripe Cost Bps"},"estimated_stripe_cost_fixed_cents":{"type":"integer","title":"Estimated Stripe Cost Fixed Cents"},"agent_usage_markup_bps":{"type":"integer","title":"Agent Usage Markup Bps"}},"type":"object","required":["workspace_payment_fee_bps","workspace_payment_fee_fixed_cents","estimated_stripe_cost_bps","estimated_stripe_cost_fixed_cents","agent_usage_markup_bps"],"title":"PlatformFeeConfigRead","description":"Platform-default Model B fee knobs, edited from the admin portal."},"PlatformFeeConfigWrite":{"properties":{"workspace_payment_fee_bps":{"type":"integer","title":"Workspace Payment Fee Bps"},"workspace_payment_fee_fixed_cents":{"type":"integer","title":"Workspace Payment Fee Fixed Cents"},"estimated_stripe_cost_bps":{"type":"integer","title":"Estimated Stripe Cost Bps"},"estimated_stripe_cost_fixed_cents":{"type":"integer","title":"Estimated Stripe Cost Fixed Cents"},"agent_usage_markup_bps":{"type":"integer","title":"Agent Usage Markup Bps"}},"type":"object","required":["workspace_payment_fee_bps","workspace_payment_fee_fixed_cents","estimated_stripe_cost_bps","estimated_stripe_cost_fixed_cents","agent_usage_markup_bps"],"title":"PlatformFeeConfigWrite"},"PlatformFinance":{"properties":{"currency":{"type":"string","title":"Currency"},"mrr_cents":{"type":"integer","title":"Mrr Cents"},"gross_mrr_cents":{"type":"integer","title":"Gross Mrr Cents"},"mrr_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Mrr By Currency"},"active_subscribers":{"type":"integer","title":"Active Subscribers"},"discounted_subscribers":{"type":"integer","title":"Discounted Subscribers"},"arpu_cents":{"type":"integer","title":"Arpu Cents"},"trialing":{"type":"integer","title":"Trialing"},"past_due":{"type":"integer","title":"Past Due"},"canceled":{"type":"integer","title":"Canceled"},"at_risk_mrr_cents":{"type":"integer","title":"At Risk Mrr Cents"},"plans":{"items":{"$ref":"#/components/schemas/PlatformFinancePlanRow"},"type":"array","title":"Plans"},"fees_total_cents":{"type":"integer","title":"Fees Total Cents","default":0},"fees_month_cents":{"type":"integer","title":"Fees Month Cents","default":0},"fees_ws_rail_cents":{"type":"integer","title":"Fees Ws Rail Cents","default":0},"fees_earnings_rail_cents":{"type":"integer","title":"Fees Earnings Rail Cents","default":0},"fees_stripe_cost_cents":{"type":"integer","title":"Fees Stripe Cost Cents","default":0},"fees_by_month":{"additionalProperties":{"type":"integer"},"type":"object","title":"Fees By Month","default":{}}},"type":"object","required":["currency","mrr_cents","gross_mrr_cents","mrr_by_currency","active_subscribers","discounted_subscribers","arpu_cents","trialing","past_due","canceled","at_risk_mrr_cents","plans"],"title":"PlatformFinance","description":"Server-authoritative platform recurring revenue from billed truth: the net\nmonthly recurring of currently-active subscriptions, the subscription funnel,\nand the per-plan mix.\n\nMRR counts ``subscription_status == 'active'`` only — trialing (not yet\nbilling) and canceled are excluded; past-due is still contracted but at risk,\nsurfaced separately as ``at_risk_mrr_cents``. Figures are reported in the\nprimary currency (the largest book); ``mrr_by_currency`` keeps every currency\nvisible. Trend / MRR-movement (new / expansion / churn over time) needs a\nperiodic MRR-snapshot store and is a follow-up, not derivable from a point-in-\ntime roster."},"PlatformFinancePlanRow":{"properties":{"plan":{"type":"string","title":"Plan"},"subscribers":{"type":"integer","title":"Subscribers"},"price_cents":{"type":"integer","title":"Price Cents"},"mrr_cents":{"type":"integer","title":"Mrr Cents"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["plan","subscribers","price_cents","mrr_cents","currency"],"title":"PlatformFinancePlanRow","description":"One plan's slice of the active recurring book. ``price_cents`` is the plan's\nlist price; ``mrr_cents`` is what its active subscribers actually bill after\nper-tuner discounts."},"PlatformProfileRead":{"properties":{"identity":{"$ref":"#/components/schemas/BrandingIdentity"},"visual":{"$ref":"#/components/schemas/BrandingVisual"},"invoice":{"$ref":"#/components/schemas/BrandingInvoice"}},"type":"object","title":"PlatformProfileRead","description":"The platform's company/branding/invoice profile for the admin UI — the\nidentity/visual/invoice sub-objects mirror the tuner branding form."},"PoolAction":{"properties":{"kind":{"type":"string","enum":["bidding","restricted_pool"],"title":"Kind"},"tuner_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Tuner Ids"}},"type":"object","required":["kind"],"title":"PoolAction"},"PortalCreate":{"properties":{"return_url":{"type":"string","title":"Return Url"}},"type":"object","required":["return_url"],"title":"PortalCreate"},"PortalIn":{"properties":{"return_url":{"type":"string","title":"Return Url"}},"type":"object","required":["return_url"],"title":"PortalIn"},"PresetCreate":{"properties":{"key":{"type":"string","maxLength":64,"minLength":1,"title":"Key"}},"type":"object","required":["key"],"title":"PresetCreate"},"PresetRead":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"trigger_event":{"type":"string","title":"Trigger Event"},"conditions":{"additionalProperties":true,"type":"object","title":"Conditions"},"delay_minutes":{"type":"integer","title":"Delay Minutes"},"send_at_local_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send At Local Time"},"action_kind":{"type":"string","enum":["whatsapp_template","email","team_notice","webhook"],"title":"Action Kind"},"action_config":{"additionalProperties":true,"type":"object","title":"Action Config"}},"type":"object","required":["key","name","description","trigger_event","conditions","delay_minutes","send_at_local_time","action_kind","action_config"],"title":"PresetRead"},"PriceBookItem":{"properties":{"item_type":{"type":"string","title":"Item Type"},"item_key":{"type":"string","title":"Item Key"},"name":{"type":"string","title":"Name"},"pool_credits":{"type":"number","title":"Pool Credits"},"pool_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pool Cents"},"pool_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Pool Cents By Currency","default":{}},"override_credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Override Credits"},"override_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Override Cents"},"override_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Override Cents By Currency","default":{}},"public_override_credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Public Override Credits"},"public_override_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Public Override Cents"},"public_override_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Public Override Cents By Currency","default":{}},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["item_type","item_key","name","pool_credits"],"title":"PriceBookItem","description":"One catalogue item: the pool's price beside this tuner's override.\n\nMoney is pinned per currency and never converted. The unsuffixed ``*_cents``\nfields are the base currency (EUR) — the amount held in the row's own integer\ncolumn — and the ``*_cents_by_currency`` maps carry every other currency:\n``{\"USD\": 24900}``. A currency missing from a map is not pinned there, so the\ndealer pays ``credits × that currency's rate`` instead."},"PriceBookOverrideUpdate":{"properties":{"price_credits":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Price Credits"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"price_cents_by_currency":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Price Cents By Currency"}},"type":"object","title":"PriceBookOverrideUpdate","description":"One item's whole override — the body replaces the row, it never merges.\n\n``price_cents`` is the base-currency (EUR) pin; ``price_cents_by_currency``\npins the others (``{\"USD\": 24900}``) and replaces that map wholesale, so a\ncurrency the tuner drops from it stops being pinned. A body with no price at\nall clears the override and the item falls back to the pool."},"PriceBookView":{"properties":{"rate_cents_per_credit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Cents Per Credit"},"rate_cents_per_credit_master":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Cents Per Credit Master"},"rate_cents_per_credit_evc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Cents Per Credit Evc"},"global_rate_cents_per_credit":{"type":"integer","title":"Global Rate Cents Per Credit"},"global_rate_cents_per_credit_master":{"type":"integer","title":"Global Rate Cents Per Credit Master"},"currency_rates":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Currency Rates"},"global_currency_rates":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Global Currency Rates"},"charge_currencies":{"items":{"type":"string"},"type":"array","title":"Charge Currencies"},"settlement_currency":{"type":"string","title":"Settlement Currency","default":"EUR"},"charge_in_buyer_currency":{"type":"boolean","title":"Charge In Buyer Currency","default":false},"dual_price_catalogue":{"type":"boolean","title":"Dual Price Catalogue","default":false},"base_currency":{"type":"string","title":"Base Currency","default":"EUR"},"supported_currencies":{"items":{"type":"string"},"type":"array","title":"Supported Currencies","default":["EUR","USD"]},"stages":{"items":{"$ref":"#/components/schemas/PriceBookItem"},"type":"array","title":"Stages"},"addons":{"items":{"$ref":"#/components/schemas/PriceBookItem"},"type":"array","title":"Addons"}},"type":"object","required":["rate_cents_per_credit","rate_cents_per_credit_master","rate_cents_per_credit_evc","global_rate_cents_per_credit","global_rate_cents_per_credit_master","currency_rates","global_currency_rates","charge_currencies","stages","addons"],"title":"PriceBookView","description":"The tuner's editable price book: their per-kind rates + every catalogue\nitem with its pool default beside the tuner's override (if any).\n\nThe unsuffixed rate is the slave (everyday) rate; ``_master`` prices\neditable-file orders. The global fields are the platform defaults shown as\ninput placeholders (master already collapsed to the slave default when the\nplatform hasn't split them)."},"PriceBreakdown":{"properties":{"total_credits":{"type":"number","title":"Total Credits"},"currency":{"type":"string","title":"Currency"},"direct_cents":{"type":"integer","title":"Direct Cents"},"slave_from_cents":{"type":"integer","title":"Slave From Cents"},"master_from_cents":{"type":"integer","title":"Master From Cents"},"general_from_cents":{"type":"integer","title":"General From Cents"},"discount_bps":{"type":"integer","title":"Discount Bps","default":0},"vat_percent":{"type":"integer","title":"Vat Percent"}},"type":"object","required":["total_credits","currency","direct_cents","slave_from_cents","master_from_cents","general_from_cents","vat_percent"],"title":"PriceBreakdown","description":"Euro prices for a credit total across the three buy modes (all DB-driven).\n\n``*_from_cents`` use the best (largest-bundle) per-credit rate for that credit\ntype; ``direct_cents`` is the no-commitment one-off rate. Amounts are ex-VAT in\nthe configured currency's minor units (cents)."},"PriceImportRequest":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PriceImportRow"},"type":"array","maxItems":1000,"title":"Rows"}},"type":"object","required":["rows"],"title":"PriceImportRequest"},"PriceImportResult":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PriceImportRowResult"},"type":"array","title":"Rows"},"updates":{"type":"integer","title":"Updates"},"unchanged":{"type":"integer","title":"Unchanged"},"errors":{"type":"integer","title":"Errors"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["rows","updates","unchanged","errors","currency"],"title":"PriceImportResult"},"PriceImportRow":{"properties":{"item_type":{"type":"string","maxLength":16,"title":"Item Type","default":""},"item":{"type":"string","maxLength":200,"title":"Item","default":""},"credits":{"type":"string","maxLength":32,"title":"Credits","default":""},"price":{"type":"string","maxLength":32,"title":"Price","default":""}},"type":"object","title":"PriceImportRow","description":"One spreadsheet row as the browser read it — raw text, not yet trusted."},"PriceImportRowResult":{"properties":{"index":{"type":"integer","title":"Index"},"outcome":{"type":"string","enum":["update","unchanged","error"],"title":"Outcome"},"error":{"anyOf":[{"type":"string","enum":["unknown_item","ambiguous_item","invalid_credits","invalid_price","nothing_to_set","duplicate"]},{"type":"null"}],"title":"Error"},"item_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Type"},"item_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"current_credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Credits"},"current_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Cents"},"credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credits"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"}},"type":"object","required":["index","outcome"],"title":"PriceImportRowResult","description":"What one row would do (or did)."},"PriceIn":{"properties":{"vehicle_ref":{"type":"string","title":"Vehicle Ref"},"tune_code":{"type":"string","title":"Tune Code"},"option_codes":{"items":{"type":"string"},"type":"array","title":"Option Codes"},"dtc_codes":{"items":{"type":"string"},"type":"array","title":"Dtc Codes"},"customer_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Ref"},"enquiry_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enquiry Ref"}},"type":"object","required":["vehicle_ref","tune_code"],"title":"PriceIn"},"PriceLine":{"properties":{"label":{"type":"string","title":"Label"},"credits":{"type":"number","title":"Credits"},"cents":{"type":"integer","title":"Cents","default":0}},"type":"object","required":["label","credits"],"title":"PriceLine","description":"One priced line item (a stage or an add-on) on a quote/order, in both\ncredits and euros (ex-VAT, minor units)."},"PriceLineOut":{"properties":{"description":{"type":"string","title":"Description"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["description","amount"],"title":"PriceLineOut"},"PriceListSubmission":{"properties":{"storage_key":{"type":"string","maxLength":255,"minLength":1,"title":"Storage Key"},"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"content_type":{"type":"string","maxLength":120,"title":"Content Type","default":"application/octet-stream"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["storage_key","filename"],"title":"PriceListSubmission","description":"A price list the tuner uploaded for the platform team to enter."},"PriceOut":{"properties":{"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"priced_for":{"type":"string","enum":["dealer","list"],"title":"Priced For"},"includes_vat":{"type":"boolean","title":"Includes Vat","default":false},"display_amount":{"type":"string","title":"Display Amount"},"display_includes_vat":{"type":"boolean","title":"Display Includes Vat"},"breakdown":{"items":{"$ref":"#/components/schemas/PriceLineOut"},"type":"array","title":"Breakdown"},"validity_days":{"type":"integer","title":"Validity Days","default":14}},"type":"object","required":["amount","currency","priced_for","display_amount","display_includes_vat"],"title":"PriceOut","description":"A priced selection. ``amount`` and every breakdown line are ALWAYS ex-VAT.\n\nVAT is ours to apply, not the agent's to carry. It used to ride back on\n``includes_vat`` and be re-applied — or not — from the value that returned\nthrough the agent on the commitment, which made a tax decision depend on a\nfield surviving a round trip through a model. Now the tax treatment is\nderived where the document is produced, from our own data, every time.\n\n``display_amount`` is what THIS customer pays, computed here so nobody\ndownstream has to know the rule: the same ex-VAT figure for a dealer (who is\nbilled ex-VAT) and the VAT-inclusive total for a private lead. It is the only\nnumber that should ever be said to a customer."},"PriceQuote":{"properties":{"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"EUR"},"currency_source":{"type":"string","enum":["tuner","buyer"],"title":"Currency Source","default":"buyer"},"list_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"List Price Cents"},"discount_bps":{"type":"integer","title":"Discount Bps","default":0},"lines":{"items":{"$ref":"#/components/schemas/PriceLine"},"type":"array","title":"Lines"}},"type":"object","required":["price_credits","lines"],"title":"PriceQuote","description":"Non-persisting price for a selection — drives the live wizard summary.\n\nUnlike ``create_quote`` this creates NO order; it only prices the current\nstage + add-ons (credits + euros) so the summary updates as the dealer edits."},"PricingConfigRead":{"properties":{"direct_cents_per_credit":{"type":"integer","title":"Direct Cents Per Credit"},"direct_cents_per_credit_master":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Direct Cents Per Credit Master"},"default_currency":{"type":"string","title":"Default Currency"},"vat_percent":{"type":"integer","title":"Vat Percent"},"dtc_price_credits":{"type":"number","title":"Dtc Price Credits"},"dtc_price_cents":{"type":"integer","title":"Dtc Price Cents"},"currency_rates":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Currency Rates","default":{}},"base_currency":{"type":"string","title":"Base Currency","description":"The currency held in the integer columns above, never in the map.","readOnly":true},"supported_currencies":{"items":{"type":"string"},"type":"array","title":"Supported Currencies","description":"Every currency the platform sells in, base included.\n\nServed with the config so the admin form renders one rate block per\ncurrency off the platform's own list — a hardcoded copy in the UI would\ndrift the moment a currency is switched on in ``pricing.currencies``.","readOnly":true}},"type":"object","required":["direct_cents_per_credit","default_currency","vat_percent","dtc_price_credits","dtc_price_cents","base_currency","supported_currencies"],"title":"PricingConfigRead","description":"Global money knobs edited from the admin portal. The unsuffixed rate is\nthe slave/base rate; ``_master`` (null = same as slave) prices editable-file\ndirect orders."},"PricingConfigWrite":{"properties":{"direct_cents_per_credit":{"type":"integer","title":"Direct Cents Per Credit"},"direct_cents_per_credit_master":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Direct Cents Per Credit Master"},"default_currency":{"type":"string","title":"Default Currency"},"vat_percent":{"type":"integer","title":"Vat Percent"},"dtc_price_credits":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Dtc Price Credits","default":"0"},"dtc_price_cents":{"type":"integer","title":"Dtc Price Cents","default":0},"currency_rates":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Currency Rates","default":{}}},"type":"object","required":["direct_cents_per_credit","default_currency","vat_percent"],"title":"PricingConfigWrite","description":"Edit of the global money knobs.\n\n``currency_rates`` is merged per currency, not replaced: naming ``USD``\nrewrites the USD entry and leaves every other currency alone, so a form that\nonly knows about some currencies cannot delete the rest. Blank/zero amounts\nare dropped rather than stored as a price of nothing, which also means an\nempty entry cannot express \"stop selling here\" — that is the dedicated\n``remove_currency_rate`` command."},"Product":{"properties":{"sku":{"type":"string","title":"Sku"},"source_url":{"type":"string","title":"Source Url"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image_urls":{"items":{"type":"string"},"type":"array","title":"Image Urls"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"currency":{"type":"string","const":"EUR","title":"Currency","default":"EUR"},"vat_status":{"type":"string","enum":["included","excluded","not_applicable","unknown"],"title":"Vat Status","default":"unknown"},"availability":{"type":"string","enum":["available","unavailable","unknown"],"title":"Availability","default":"unknown"},"manufacturer_codes":{"items":{"type":"string"},"type":"array","title":"Manufacturer Codes"},"oem_codes":{"items":{"type":"string"},"type":"array","title":"Oem Codes"},"other_codes":{"items":{"type":"string"},"type":"array","title":"Other Codes"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"seller":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seller"},"donor_vehicle":{"additionalProperties":{"type":"string"},"type":"object","title":"Donor Vehicle"},"match_type":{"type":"string","enum":["manufacturer","oem","other","similar"],"title":"Match Type","default":"similar"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["sku","source_url","title","checked_at"],"title":"Product","description":"Customer-safe product facts; sourcing costs deliberately live elsewhere."},"ProductCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"type":"string","enum":["physical","digital","license"],"title":"Kind"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"images":{"items":{"type":"string"},"type":"array","title":"Images"},"active":{"type":"boolean","title":"Active","default":true},"position":{"type":"integer","title":"Position","default":0},"sales_audience":{"type":"string","enum":["all","admin_only"],"title":"Sales Audience","default":"all"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"features":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFeature"},"type":"array"},{"type":"null"}],"title":"Features"},"specs":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductSpec"},"type":"array"},{"type":"null"}],"title":"Specs"},"how_it_works":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductStep"},"type":"array"},{"type":"null"}],"title":"How It Works"},"faq":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFaqItem"},"type":"array"},{"type":"null"}],"title":"Faq"},"compatible_brands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Compatible Brands"},"testimonials":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductTestimonial"},"type":"array"},{"type":"null"}],"title":"Testimonials"},"downloads":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductDownload"},"type":"array"},{"type":"null"}],"title":"Downloads"},"b2b_only":{"type":"boolean","title":"B2B Only","default":false},"terms_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Terms Url"},"variants":{"items":{"$ref":"#/components/schemas/VariantWrite"},"type":"array","title":"Variants"}},"type":"object","required":["slug","name","kind"],"title":"ProductCreate","description":"Create payload for a product with its first variants, saved together so\na refused variant never leaves a product without any behind."},"ProductDownload":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"url":{"type":"string","maxLength":500,"minLength":1,"title":"Url"},"kind":{"type":"string","enum":["file","link","video"],"title":"Kind","default":"link"}},"type":"object","required":["label","url"],"title":"ProductDownload","description":"One entry under \"Manuals & downloads\": an uploaded file (a PDF manual),\nan external page (the live compatibility list) or a video."},"ProductFaqItem":{"properties":{"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"}},"type":"object","required":["question","answer"],"title":"ProductFaqItem"},"ProductFeature":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"}},"type":"object","required":["title","body"],"title":"ProductFeature","description":"One feature-highlight card. ``icon`` is a named-icon key (see the\n``SpecCards`` Puck block's icon vocabulary) — a blank/unknown name just\nrenders no icon tile, same as that block."},"ProductMediaConfirm":{"properties":{"key":{"type":"string","title":"Key"}},"type":"object","required":["key"],"title":"ProductMediaConfirm","description":"Confirm a finished product-image upload; the server publishes it."},"ProductMediaResult":{"properties":{"public_url":{"type":"string","title":"Public Url"}},"type":"object","required":["public_url"],"title":"ProductMediaResult","description":"The durable public URL of a confirmed (world-readable) product image."},"ProductMediaUploadRequest":{"properties":{"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["content_type"],"title":"ProductMediaUploadRequest","description":"Ask for a presigned PUT to upload a product image or PDF manual (admin)."},"ProductMediaUploadResult":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"key":{"type":"string","title":"Key"}},"type":"object","required":["upload_url","key"],"title":"ProductMediaUploadResult","description":"A presigned PUT URL + the storage key to echo back on confirm."},"ProductRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"type":"string","title":"Kind"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"images":{"items":{},"type":"array","title":"Images"},"active":{"type":"boolean","title":"Active"},"position":{"type":"integer","title":"Position"},"sales_audience":{"type":"string","title":"Sales Audience","default":"all"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"variants":{"items":{"$ref":"#/components/schemas/VariantRead"},"type":"array","title":"Variants"},"features":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFeature"},"type":"array"},{"type":"null"}],"title":"Features"},"specs":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductSpec"},"type":"array"},{"type":"null"}],"title":"Specs"},"how_it_works":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductStep"},"type":"array"},{"type":"null"}],"title":"How It Works"},"faq":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFaqItem"},"type":"array"},{"type":"null"}],"title":"Faq"},"compatible_brands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Compatible Brands"},"testimonials":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductTestimonial"},"type":"array"},{"type":"null"}],"title":"Testimonials"},"downloads":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductDownload"},"type":"array"},{"type":"null"}],"title":"Downloads"},"b2b_only":{"type":"boolean","title":"B2B Only","default":false},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"},"review_status":{"type":"string","enum":["pending","approved","rejected"],"title":"Review Status","default":"approved"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"}},"type":"object","required":["id","slug","name","kind","images","active","position"],"title":"ProductRead"},"ProductSpec":{"properties":{"label":{"type":"string","title":"Label"},"value":{"type":"string","title":"Value"}},"type":"object","required":["label","value"],"title":"ProductSpec","description":"One label/value row in a plain specifications list."},"ProductStep":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"}},"type":"object","required":["title","body"],"title":"ProductStep","description":"One numbered step in a \"how it works\" sequence."},"ProductTestimonial":{"properties":{"author":{"type":"string","title":"Author"},"quote":{"type":"string","title":"Quote"}},"type":"object","required":["author","quote"],"title":"ProductTestimonial"},"ProductWrite":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"type":"string","enum":["physical","digital","license"],"title":"Kind"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"images":{"items":{"type":"string"},"type":"array","title":"Images"},"active":{"type":"boolean","title":"Active","default":true},"position":{"type":"integer","title":"Position","default":0},"sales_audience":{"type":"string","enum":["all","admin_only"],"title":"Sales Audience","default":"all"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"features":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFeature"},"type":"array"},{"type":"null"}],"title":"Features"},"specs":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductSpec"},"type":"array"},{"type":"null"}],"title":"Specs"},"how_it_works":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductStep"},"type":"array"},{"type":"null"}],"title":"How It Works"},"faq":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFaqItem"},"type":"array"},{"type":"null"}],"title":"Faq"},"compatible_brands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Compatible Brands"},"testimonials":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductTestimonial"},"type":"array"},{"type":"null"}],"title":"Testimonials"},"downloads":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductDownload"},"type":"array"},{"type":"null"}],"title":"Downloads"},"b2b_only":{"type":"boolean","title":"B2B Only","default":false},"terms_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Terms Url"}},"type":"object","required":["slug","name","kind"],"title":"ProductWrite","description":"Create/update payload for a product (admin).\n\n``tuner_workspace_id`` is NULL for the platform shop (MVP); tuner shops\n(phase 2) will set it through their own scoped routes."},"ProfileSlice":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","title":"Email"},"organisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation"},"role":{"type":"string","title":"Role"},"locale":{"type":"string","title":"Locale"}},"type":"object","required":["name","email","organisation","role","locale"],"title":"ProfileSlice"},"ProviderMetric":{"properties":{"provider":{"type":"string","title":"Provider"},"count":{"type":"integer","title":"Count"},"cost_cents":{"type":"integer","title":"Cost Cents","default":0}},"type":"object","required":["provider","count"],"title":"ProviderMetric","description":"Per-provider rollup for the admin lookup metrics card."},"PublicBlogAuthor":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"same_as":{"items":{"type":"string"},"type":"array","title":"Same As"}},"type":"object","required":["slug","name"],"title":"PublicBlogAuthor"},"PublicBlogCategory":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"}},"type":"object","required":["slug","name"],"title":"PublicBlogCategory"},"PublicBlogFeed":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"intro":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro"},"posts_per_page":{"type":"integer","title":"Posts Per Page"},"categories":{"items":{"$ref":"#/components/schemas/PublicBlogCategory"},"type":"array","title":"Categories"},"items":{"items":{"$ref":"#/components/schemas/PublicBlogFeedItem"},"type":"array","title":"Items"}},"type":"object","required":["posts_per_page","categories","items"],"title":"PublicBlogFeed","description":"Every live post — sitemaps, RSS and the \"latest posts\" blocks."},"PublicBlogFeedItem":{"properties":{"post_id":{"type":"string","format":"uuid","title":"Post Id"},"slug":{"type":"string","title":"Slug"},"locale":{"type":"string","enum":["en","nl","de","fr"],"title":"Locale"},"title":{"type":"string","title":"Title"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"category":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogCategory"},{"type":"null"}]},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Slug"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"noindex":{"type":"boolean","title":"Noindex","default":false}},"type":"object","required":["post_id","slug","locale","title","published_at","updated_at"],"title":"PublicBlogFeedItem"},"PublicBlogIndex":{"properties":{"template":{"type":"string","enum":["workshop_journal","case_study","news"],"title":"Template"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"intro":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro"},"blocks":{"additionalProperties":true,"type":"object","title":"Blocks"},"posts":{"items":{"$ref":"#/components/schemas/PublicBlogPostCard"},"type":"array","title":"Posts"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"},"per_page":{"type":"integer","title":"Per Page"},"blog_total":{"type":"integer","title":"Blog Total","default":0},"categories":{"items":{"$ref":"#/components/schemas/PublicBlogCategory"},"type":"array","title":"Categories"},"tags":{"items":{"$ref":"#/components/schemas/PublicBlogTag"},"type":"array","title":"Tags"},"category":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogCategory"},{"type":"null"}]},"tag":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogTag"},{"type":"null"}]},"author":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogAuthor"},{"type":"null"}]}},"type":"object","required":["template","blocks","posts","total","page","pages","per_page","categories"],"title":"PublicBlogIndex","description":"One page of the blog page, a category page, a tag page or an author page."},"PublicBlogPost":{"properties":{"slug":{"type":"string","title":"Slug"},"locale":{"type":"string","enum":["en","nl","de","fr"],"title":"Locale"},"title":{"type":"string","title":"Title"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"cover_alt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Alt"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"reading_minutes":{"type":"integer","title":"Reading Minutes"},"featured":{"type":"boolean","title":"Featured"},"category":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogCategory"},{"type":"null"}]},"author":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogAuthor"},{"type":"null"}]},"tags":{"items":{"$ref":"#/components/schemas/PublicBlogTag"},"type":"array","title":"Tags"},"body_blocks":{"additionalProperties":true,"type":"object","title":"Body Blocks"},"blog_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blog Title"},"template":{"type":"string","enum":["workshop_journal","case_study","news"],"title":"Template"},"seo_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Title"},"seo_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Description"},"og_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Og Image Url"},"social_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Social Title"},"social_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Social Description"},"noindex":{"type":"boolean","title":"Noindex","default":false},"canonical_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Url"},"alternates":{"additionalProperties":{"type":"string"},"type":"object","title":"Alternates"},"related":{"items":{"$ref":"#/components/schemas/PublicBlogPostCard"},"type":"array","title":"Related"}},"type":"object","required":["slug","locale","title","published_at","updated_at","reading_minutes","featured","body_blocks","template"],"title":"PublicBlogPost"},"PublicBlogPostCard":{"properties":{"slug":{"type":"string","title":"Slug"},"locale":{"type":"string","enum":["en","nl","de","fr"],"title":"Locale"},"title":{"type":"string","title":"Title"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"cover_alt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Alt"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"reading_minutes":{"type":"integer","title":"Reading Minutes"},"featured":{"type":"boolean","title":"Featured"},"category":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogCategory"},{"type":"null"}]},"author":{"anyOf":[{"$ref":"#/components/schemas/PublicBlogAuthor"},{"type":"null"}]},"tags":{"items":{"$ref":"#/components/schemas/PublicBlogTag"},"type":"array","title":"Tags"}},"type":"object","required":["slug","locale","title","published_at","updated_at","reading_minutes","featured"],"title":"PublicBlogPostCard"},"PublicBlogRedirect":{"properties":{"target":{"type":"string","enum":["index","post","gone"],"title":"Target"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"locale":{"anyOf":[{"type":"string","enum":["en","nl","de","fr"]},{"type":"null"}],"title":"Locale"}},"type":"object","required":["target"],"title":"PublicBlogRedirect","description":"Where an old article address sends a visitor: an article (by its current\nslug and language), the blog page, or nowhere."},"PublicBlogTag":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"}},"type":"object","required":["slug","name"],"title":"PublicBlogTag"},"PublicCollection":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"products":{"items":{"$ref":"#/components/schemas/PublicShopProduct"},"type":"array","title":"Products"}},"type":"object","required":["slug","name"],"title":"PublicCollection","description":"A collection as the site builder / a dedicated ``/collections/<slug>``\npage renders it — banner fields plus its member products, already\nprojected the same way ``PublicShop.products`` are (same price/stock\nrules, same audience filtering), so a collection and the main grid never\ndisagree about what's buyable."},"PublicCreditPack":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"credits":{"type":"integer","title":"Credits"},"cents":{"type":"integer","title":"Cents"}},"type":"object","required":["name","kind","credits","cents"],"title":"PublicCreditPack","description":"A credit bundle a tuner sells, projected for the public storefront."},"PublicEventType":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"location_kind":{"type":"string","title":"Location Kind"},"min_notice_minutes":{"type":"integer","title":"Min Notice Minutes"},"horizon_days":{"type":"integer","title":"Horizon Days"},"requires_email":{"type":"boolean","title":"Requires Email"},"auto_confirm":{"type":"boolean","title":"Auto Confirm"},"booking_mode":{"type":"string","title":"Booking Mode","default":"appointment"},"work_estimate_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Estimate Minutes"},"intake_fields":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Intake Fields","default":[]}},"type":"object","required":["slug","name","location_kind","min_notice_minutes","horizon_days","requires_email","auto_confirm"],"title":"PublicEventType","description":"One bookable appointment type as a website visitor sees it.\n\n``location_value`` is deliberately absent: a meeting room URL that anyone\ncan fetch is a meeting anyone can join."},"PublicOption":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"price_cents":{"type":"integer","title":"Price Cents"}},"type":"object","required":["id","label","price_cents"],"title":"PublicOption","description":"An add-on offered with a quote: its own cart line, priced per unit ex VAT."},"PublicPage":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"workspace_kind":{"type":"string","enum":["storefront","website_only"],"title":"Workspace Kind","default":"storefront"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon"},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Color"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"},"nav":{"items":{"$ref":"#/components/schemas/NavItem"},"type":"array","title":"Nav"},"footer_nav":{"items":{"$ref":"#/components/schemas/NavItem"},"type":"array","title":"Footer Nav"},"footer":{"additionalProperties":true,"type":"object","title":"Footer"},"header":{"additionalProperties":true,"type":"object","title":"Header"},"theme":{"additionalProperties":true,"type":"object","title":"Theme"},"company":{"anyOf":[{"$ref":"#/components/schemas/BrandingIdentity"},{"type":"null"}]},"analytics":{"$ref":"#/components/schemas/SiteAnalytics"},"code_injection":{"$ref":"#/components/schemas/SiteCodeInjection"},"consent":{"$ref":"#/components/schemas/SiteConsent"},"google_site_verification":{"items":{"type":"string"},"type":"array","title":"Google Site Verification"},"canonical_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Host"},"page":{"$ref":"#/components/schemas/SitePageContent"}},"type":"object","required":["workspace_id","workspace_name","nav","footer","page"],"title":"PublicPage","description":"The public, brand-scoped view one rendered tuner-site page is built from.\n\nCarries the workspace's visual brand, the derived navigation, the site-wide\nfooter, and the single resolved page — everything the public renderer needs\nfor one path, no sensitive data."},"PublicPageSummary":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"path":{"type":"string","title":"Path"},"hidden":{"type":"boolean","title":"Hidden","default":false},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["slug","title","path"],"title":"PublicPageSummary","description":"One published page in a site's page list — the sitemap/nav source.\n\n``path`` is the served route (``/`` for home, ``/<slug>`` otherwise);\n``hidden`` pages stay routable but are excluded from menus. ``updated_at``\nis when the page last went live with changed content; None until a publish\nhas stamped it."},"PublicPlanRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"},"interval":{"type":"string","title":"Interval"},"orders_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Orders Limit"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats"},"entitlements":{"additionalProperties":true,"type":"object","title":"Entitlements"},"order_fees":{"additionalProperties":{"type":"integer"},"type":"object","title":"Order Fees"}},"type":"object","required":["code","name","price_cents","currency","interval"],"title":"PublicPlanRead","description":"A tuner-facing plan card — price, the two headline limits, and the plan's\nown entitlement map so the subscription page can compare plans column by\ncolumn. Admin-only fields (subscriber count, Stripe price id) stay out. What\nships here is the capability list a tuner is being sold, so an edited price,\nlimit or feature reaches the comparison with no hardcoded fallback."},"PublicPriceLine":{"properties":{"label":{"type":"string","title":"Label"},"cents":{"type":"integer","title":"Cents"},"credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credits"}},"type":"object","required":["label","cents"],"title":"PublicPriceLine","description":"One line on the public pay-per-file menu: a stage or add-on and its price\n(ex-VAT, minor units) — the tuner's own resolved price, stated in the\nstorefront currency its ``PublicPricing`` names. ``credits`` is the same\nprice in credits, for a site that shows its prices that way."},"PublicPriceRow":{"properties":{"payg":{"type":"integer","title":"Payg"},"packs":{"items":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"array","title":"Packs"}},"type":"object","required":["payg","packs"],"title":"PublicPriceRow","description":"One line of the per-tool price list: what one file costs paid per file,\nand what it comes to inside each credit pack (aligned with\n``PublicToolPriceBook.packs``; None where the tool has no pack that size)."},"PublicPricing":{"properties":{"currency":{"type":"string","title":"Currency"},"vat_percent":{"type":"integer","title":"Vat Percent"},"credit_rate_cents":{"type":"integer","title":"Credit Rate Cents"},"pay_per_file":{"items":{"$ref":"#/components/schemas/PublicPriceLine"},"type":"array","title":"Pay Per File"},"credit_packs":{"items":{"$ref":"#/components/schemas/PublicCreditPack"},"type":"array","title":"Credit Packs"}},"type":"object","required":["currency","vat_percent","credit_rate_cents","pay_per_file","credit_packs"],"title":"PublicPricing","description":"A tuner's live pricing for their public microsite: the pay-per-file money\nmenu (stages + curated add-ons) and their credit packs (empty when none set).\n\nEverything here is what the tuner's dealers actually pay, resolved through the\ntuner's rate and price-book overrides — never the raw pool catalogue.\n``currency`` states which currency every ``cents`` field is in; it is the\nseller's, not the platform's, so renderers must format against it rather than\nassume euros."},"PublicProduct":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition"},"fits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fits"},"availability":{"anyOf":[{"type":"string","enum":["in_stock","sold_out"]},{"type":"null"}],"title":"Availability"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"codes":{"items":{"type":"string"},"type":"array","title":"Codes"},"vehicle":{"additionalProperties":{"type":"string"},"type":"object","title":"Vehicle"},"images":{"items":{"type":"string"},"type":"array","title":"Images"}},"type":"object","title":"PublicProduct","description":"The product a visitor sees: a catalogue part as the owner wrote it, or a\nsourced listing filtered by the shop's display settings. ``images`` are\npaths on our own API; none points at the source."},"PublicQuoteRead":{"properties":{"vehicle":{"type":"string","title":"Vehicle"},"plate":{"type":"string","title":"Plate"},"stage":{"type":"string","title":"Stage"},"power_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power After"},"torque_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque After"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"answers":{"items":{"$ref":"#/components/schemas/AnswerRow"},"type":"array","title":"Answers"},"price":{"type":"string","title":"Price"},"currency":{"type":"string","title":"Currency"},"amount_cents":{"type":"integer","title":"Amount Cents"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"},"note":{"type":"string","title":"Note","default":""},"expired":{"type":"boolean","title":"Expired","default":false},"accepted":{"type":"boolean","title":"Accepted","default":false},"first_name":{"type":"string","title":"First Name","default":""},"tuner_name":{"type":"string","title":"Tuner Name"},"locale":{"type":"string","title":"Locale","default":"en"},"brand_primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Primary Color"},"brand_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Logo Url"},"brand_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Website"},"booking_event_type":{"anyOf":[{"$ref":"#/components/schemas/QuoteBookingType"},{"type":"null"}]},"booking":{"anyOf":[{"$ref":"#/components/schemas/QuoteBookingRead"},{"type":"null"}]},"marketing_opt_in_offered":{"type":"boolean","title":"Marketing Opt In Offered","default":false}},"type":"object","required":["vehicle","plate","stage","price","currency","amount_cents","tuner_name"],"title":"PublicQuoteRead","description":"The account-less customer's view of a priced quote + tuner branding.\n\nServed to the anonymous \"accept & book\" page from the quote-accept email\nlink. Carries the quote facts (vehicle, tune, gains, options, price, validity)\nand just enough tuner brand to render a branded standalone page outside the\nmicrosite theme system."},"PublicShippingRate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"cents":{"type":"integer","title":"Cents"},"countries":{"items":{},"type":"array","title":"Countries"},"free_over_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Over Cents"},"min_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Days"},"max_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Days"}},"type":"object","required":["id","name","cents","countries"],"title":"PublicShippingRate"},"PublicShop":{"properties":{"currency":{"type":"string","title":"Currency"},"vat_percent":{"type":"integer","title":"Vat Percent"},"products":{"items":{"$ref":"#/components/schemas/PublicShopProduct"},"type":"array","title":"Products"},"shipping_rates":{"items":{"$ref":"#/components/schemas/PublicShippingRate"},"type":"array","title":"Shipping Rates"},"checkout_ready":{"type":"boolean","title":"Checkout Ready","default":true}},"type":"object","required":["currency","vat_percent","products"],"title":"PublicShop","description":"A storefront's live catalogue for the public microsite / dealer shop:\nactive products with their sellable variants at net prices, plus the\nshipping rates a cart can choose from. Mirrors ``PublicPricing``'s role for\nthe Pricing block."},"PublicShopProduct":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"type":"string","title":"Kind"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"images":{"items":{},"type":"array","title":"Images"},"from_cents":{"type":"integer","title":"From Cents"},"variants":{"items":{"$ref":"#/components/schemas/PublicShopVariant"},"type":"array","title":"Variants"},"features":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFeature"},"type":"array"},{"type":"null"}],"title":"Features"},"specs":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductSpec"},"type":"array"},{"type":"null"}],"title":"Specs"},"how_it_works":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductStep"},"type":"array"},{"type":"null"}],"title":"How It Works"},"faq":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductFaqItem"},"type":"array"},{"type":"null"}],"title":"Faq"},"compatible_brands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Compatible Brands"},"testimonials":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductTestimonial"},"type":"array"},{"type":"null"}],"title":"Testimonials"},"downloads":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductDownload"},"type":"array"},{"type":"null"}],"title":"Downloads"},"b2b_only":{"type":"boolean","title":"B2B Only","default":false},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"}},"type":"object","required":["slug","name","kind","images","from_cents","variants"],"title":"PublicShopProduct"},"PublicShopVariant":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sku":{"type":"string","title":"Sku"},"name":{"type":"string","title":"Name"},"cents":{"type":"integer","title":"Cents"},"compare_at_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare At Cents"},"in_stock":{"type":"boolean","title":"In Stock"}},"type":"object","required":["id","sku","name","cents","in_stock"],"title":"PublicShopVariant"},"PublicSlot":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At"}},"type":"object","required":["starts_at"],"title":"PublicSlot","description":"One offerable appointment start, rendered in the response's timezone.\n\nA start only: the type's duration sizes the slot on the calendar, and an\nend time shown to the visitor reads as a promise about when the work is\ndone. The same holds for every payload in this file a visitor can read."},"PublicToolPriceBook":{"properties":{"currency":{"type":"string","title":"Currency"},"packs":{"items":{"type":"integer"},"type":"array","title":"Packs"},"tools":{"additionalProperties":{"$ref":"#/components/schemas/PublicToolPrices"},"type":"object","title":"Tools"}},"type":"object","required":["currency","packs","tools"],"title":"PublicToolPriceBook","description":"A storefront's per-file price list for each read tool (slave and master),\nas a public pricing table shows it: pay per file at the tool's credit rate,\nand per file inside each credit pack the storefront sells. Every amount is in\nminor units of ``currency``, ex-VAT, resolved exactly as the order flow\nresolves it."},"PublicToolPrices":{"properties":{"stage1":{"$ref":"#/components/schemas/PublicPriceRow"},"stage2":{"$ref":"#/components/schemas/PublicPriceRow"},"option":{"$ref":"#/components/schemas/PublicPriceRow"}},"type":"object","required":["stage1","stage2","option"],"title":"PublicToolPrices","description":"One tool's price list: Stage 1, Stage 2 and a standalone option."},"PurchaseAvailability":{"properties":{"ok":{"type":"boolean","title":"Ok"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["ok"],"title":"PurchaseAvailability","description":"Whether this buyer can actually buy credits from a given tuner — resolved\nup front so the card shows the reason instead of offering packs that fail on\nclick. ``code``/``message`` mirror the block the purchase itself would raise\n(a VAT-compliance code, or a payments ``PurchaseBlockCode``)."},"PurchaseChecklist":{"properties":{"bought_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Bought At"},"source_order_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Order Ref"},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received At"},"unavailable_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unavailable At"}},"type":"object","title":"PurchaseChecklist","description":"The owner's purchasing steps for one sourced part on an order."},"PurchaseStepRequest":{"properties":{"step":{"type":"string","enum":["bought","received","unavailable"],"title":"Step"},"done":{"type":"boolean","title":"Done","default":true},"source_order_ref":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Source Order Ref"}},"type":"object","required":["step"],"title":"PurchaseStepRequest","description":"Tick (``done``) or untick one purchasing step; ``source_order_ref`` goes\nwith ``bought``."},"QualityPage":{"properties":{"indexed":{"type":"boolean","title":"Indexed"},"tiles":{"$ref":"#/components/schemas/QualityTiles"},"turnaround_trend":{"$ref":"#/components/schemas/MonthSeries"},"ftr_trend":{"$ref":"#/components/schemas/MonthSeries"},"heatmap":{"$ref":"#/components/schemas/Heatmap"},"families":{"$ref":"#/components/schemas/RankedChart"},"top_ecus":{"$ref":"#/components/schemas/RankedChart"},"network":{"$ref":"#/components/schemas/NetworkScope"}},"type":"object","required":["indexed","tiles","turnaround_trend","ftr_trend","heatmap","families","top_ecus","network"],"title":"QualityPage"},"QualityTiles":{"properties":{"median_min":{"$ref":"#/components/schemas/Stat"},"p90_min":{"$ref":"#/components/schemas/Stat"},"ftr_pct":{"$ref":"#/components/schemas/Stat"},"revision_pct":{"$ref":"#/components/schemas/Stat"},"files":{"$ref":"#/components/schemas/Stat"},"specialists_online":{"$ref":"#/components/schemas/Stat"},"specialists_total":{"$ref":"#/components/schemas/Stat"}},"type":"object","required":["median_min","p90_min","ftr_pct","revision_pct","files","specialists_online","specialists_total"],"title":"QualityTiles"},"QuoteAccept":{"properties":{"billing":{"type":"string","enum":["per_file","monthly_invoice","credits"],"title":"Billing"}},"type":"object","required":["billing"],"title":"QuoteAccept","description":"A's acceptance: how the converted order is paid. Credits are never an\noption for quote orders — money only."},"QuoteAcceptIn":{"properties":{"token":{"type":"string","maxLength":128,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"QuoteAcceptIn","description":"The accept-page's POST body — the opaque accept token from the email link."},"QuoteAcceptResult":{"properties":{"accepted":{"type":"boolean","title":"Accepted"},"already_accepted":{"type":"boolean","title":"Already Accepted"},"tuner_name":{"type":"string","title":"Tuner Name"},"booking_event_type":{"anyOf":[{"$ref":"#/components/schemas/QuoteBookingType"},{"type":"null"}]},"booking":{"anyOf":[{"$ref":"#/components/schemas/QuoteBookingRead"},{"type":"null"}]}},"type":"object","required":["accepted","already_accepted","tuner_name"],"title":"QuoteAcceptResult","description":"The outcome of a customer accepting a quote.\n\n``already_accepted`` is True when the quote was accepted on an earlier click —\nthe page shows the same confirmation and no second tuner notification fires.\n``booking_event_type`` names the appointment to book next, or None when the\ntuner arranges it by hand; ``booking`` is set once that appointment exists."},"QuoteBookIn":{"properties":{"token":{"type":"string","maxLength":128,"minLength":1,"title":"Token"},"slot_ref":{"type":"string","maxLength":512,"minLength":1,"title":"Slot Ref"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"marketing_opt_in":{"type":"boolean","title":"Marketing Opt In","default":false}},"type":"object","required":["token","slot_ref"],"title":"QuoteBookIn","description":"The accept page booking the slot it was offered."},"QuoteBookingRead":{"properties":{"booking_id":{"type":"string","format":"uuid","title":"Booking Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"timezone":{"type":"string","title":"Timezone"},"event_type":{"$ref":"#/components/schemas/QuoteBookingType"},"location_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Value"}},"type":"object","required":["booking_id","starts_at","timezone","event_type"],"title":"QuoteBookingRead","description":"The appointment a customer booked off their accepted quote.\n\nAlso the shape stored under ``fields.quote.booking``, so a revisit of the\naccept page renders the same confirmation without a second booking. Rows\nstored before the length was dropped still carry ``ends_at`` and a typed\n``duration_minutes``; pydantic's default ignores the unknown keys."},"QuoteBookingType":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"location_kind":{"type":"string","title":"Location Kind"},"booking_mode":{"type":"string","title":"Booking Mode","default":"appointment"},"work_estimate_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Estimate Minutes"}},"type":"object","required":["id","slug","name","location_kind"],"title":"QuoteBookingType","description":"The appointment an accepted quote books, as the anonymous accept page may\nshow it: a name and a kind of place — never the room URL or street address,\nwhich belong in the confirmation of a booking actually made, and never a\nlength, which sizes the slot on the tuner's calendar and is not a promise\nabout when the work is done."},"QuoteBuilderOptions":{"properties":{"addons":{"items":{"$ref":"#/components/schemas/FinderAddonPublic"},"type":"array","title":"Addons"},"questions":{"items":{"$ref":"#/components/schemas/FinderField"},"type":"array","title":"Questions"},"vat_rate_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vat Rate Bps"}},"type":"object","title":"QuoteBuilderOptions","description":"What a quote editor offers a tuner to pick from: the workspace's own\nadd-on catalogue, and every custom question configured on their site —\nboth regardless of whether THIS lead already touches them, so a tuner can\nadd either to a quote that never had them. Shared by the manual composer\nand the AI-suggest review dialog; neither computes a price from a pick,\nwhich stays the tuner's own typed total either way."},"QuoteContext":{"properties":{"kind":{"type":"string","const":"quote","title":"Kind","default":"quote"},"enquiry_id":{"type":"string","format":"uuid","title":"Enquiry Id"},"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"quote_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Number"},"vehicle":{"type":"string","title":"Vehicle"},"plate":{"type":"string","title":"Plate"},"stage":{"type":"string","title":"Stage"},"lines":{"items":{"$ref":"#/components/schemas/QuoteLine"},"type":"array","title":"Lines"},"power_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Before"},"power_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power After"},"torque_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Before"},"torque_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque After"},"price_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Label"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"message":{"type":"string","title":"Message"},"answers":{"items":{"$ref":"#/components/schemas/IntakeAnswer"},"type":"array","title":"Answers"}},"type":"object","required":["enquiry_id","thread_id","quote_number","vehicle","plate","stage","lines","power_before","power_after","torque_before","torque_after","price_label","amount_cents","currency","valid_until","sent_at","accepted_at","message","answers"],"title":"QuoteContext","description":"The quote a visitor accepted — the reason for a quote-booked visit."},"QuoteCreate":{"properties":{"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"addon_codes":{"items":{"type":"string"},"type":"array","title":"Addon Codes","default":[]},"dtc_codes":{"items":{"type":"string"},"type":"array","title":"Dtc Codes","default":[]},"credit_kind":{"type":"string","enum":["slave","master","general"],"title":"Credit Kind","default":"slave"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"bill_to_invoice":{"type":"boolean","title":"Bill To Invoice","default":false},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"}},"type":"object","title":"QuoteCreate","description":"No-upload Instant Quote (Flow B). Vehicle-first, no original file, no\ncredit reserve. Priced from the engine-level stage + the global add-ons.\n``credit_kind`` picks the per-kind rate deriving euros (master costs more).\n\n``catalogue_node_id`` is None for a car we do not list (or one not given):\nstages then price at the workspace or platform default and add-ons skip the\nengine-spec check — the tuner verifies on the file."},"QuoteDecline":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"QuoteDecline","description":"Optional reason attached to a decline (either side)."},"QuoteLine":{"properties":{"label":{"type":"string","title":"Label"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["label"],"title":"QuoteLine","description":"One row of the quote as the customer accepted it."},"QuoteOptionIn":{"properties":{"code":{"type":"string","maxLength":64,"title":"Code"},"name":{"type":"string","maxLength":128,"title":"Name","default":""}},"type":"object","required":["code"],"title":"QuoteOptionIn","description":"One option the visitor picked in the finder (code + display name)."},"QuoteOriginalDownload":{"properties":{"download_url":{"type":"string","title":"Download Url"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"}},"type":"object","required":["download_url"],"title":"QuoteOriginalDownload","description":"Presigned read of the request's original upload (B-side, pre-accept)."},"QuoteProvide":{"properties":{"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"}},"type":"object","required":["amount_cents"],"title":"QuoteProvide","description":"B's price for the project: EX-VAT minor units, an optional note and an\noptional validity end (defaults server-side to 14 days)."},"QuoteRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"is_quote":{"type":"boolean","title":"Is Quote"},"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"},"selected_stage":{"type":"string","title":"Selected Stage"},"selected_addons":{"items":{"type":"string"},"type":"array","title":"Selected Addons"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"lines":{"items":{"$ref":"#/components/schemas/PriceLine"},"type":"array","title":"Lines"}},"type":"object","required":["id","status","is_quote","selected_stage","selected_addons","price_credits","lines"],"title":"QuoteRead","description":"A saved Instant Quote (Flow B): the persisted draft plus its price breakdown."},"QuoteSendIn":{"properties":{"amount_cents":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount Cents"},"stage":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Stage"},"vehicle_label":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Vehicle Label"},"valid_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Valid Days"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"answers":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAnswerIn"},"type":"array"},{"type":"null"}],"title":"Answers"}},"type":"object","title":"QuoteSendIn"},"QuoteSlotFeed":{"properties":{"event_type":{"$ref":"#/components/schemas/QuoteBookingType"},"timezone":{"type":"string","title":"Timezone"},"slots":{"items":{"$ref":"#/components/schemas/QuoteSlotOut"},"type":"array","title":"Slots"},"bookable_until":{"type":"string","format":"date-time","title":"Bookable Until"}},"type":"object","required":["event_type","timezone","bookable_until"],"title":"QuoteSlotFeed"},"QuoteSlotOut":{"properties":{"slot_ref":{"type":"string","title":"Slot Ref"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"}},"type":"object","required":["slot_ref","starts_at"],"title":"QuoteSlotOut","description":"One offered start. ``slot_ref`` is signed over the workspace, the event\ntype and the instant, so the page can only book a time it was shown."},"RankedChart":{"properties":{"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"items":{"items":{"$ref":"#/components/schemas/RankedItem"},"type":"array","title":"Items"}},"type":"object","required":["source","items"],"title":"RankedChart"},"RankedItem":{"properties":{"label":{"type":"string","title":"Label"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"value":{"type":"number","title":"Value"}},"type":"object","required":["label","path","value"],"title":"RankedItem"},"RateUpdate":{"properties":{"rate_cents_per_credit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Cents Per Credit"},"rate_cents_per_credit_master":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Cents Per Credit Master"},"rate_cents_per_credit_evc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Cents Per Credit Evc"},"currency_rates":{"anyOf":[{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object"},{"type":"null"}],"title":"Currency Rates"}},"type":"object","title":"RateUpdate","description":"Per-kind rate patch — only fields present in the request are written\n(null clears that rate back to the platform default).\n\n``currency_rates`` carries the same per-kind rates for the tuner's non-EUR\ndealers, keyed by currency: ``{\"USD\": {\"slave\": 1200, \"master\": 1500}}``. A\ntuner selling into two currencies is not selling at one number converted —\neach currency is its own price — so there is no FX here, only rates they set.\nSending the whole map replaces it; ``{}`` clears every non-EUR rate."},"ReadMix":{"properties":{"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"rows":{"items":{"$ref":"#/components/schemas/ReadMixRow"},"type":"array","title":"Rows"}},"type":"object","required":["source","rows"],"title":"ReadMix"},"ReadMixRow":{"properties":{"tool":{"type":"string","title":"Tool"},"name":{"type":"string","title":"Name"},"obd":{"type":"number","title":"Obd"},"bench":{"type":"number","title":"Bench"},"boot":{"type":"number","title":"Boot"},"files":{"type":"integer","title":"Files"}},"type":"object","required":["tool","name","obd","bench","boot","files"],"title":"ReadMixRow","description":"How reads with one tool came in, as shares of that tool's reads."},"ReadToolAdminRead":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"read_methods":{"items":{"type":"string"},"type":"array","title":"Read Methods"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"id":{"type":"string","format":"uuid","title":"Id"},"expected_formats":{"items":{"type":"string"},"type":"array","title":"Expected Formats"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["slug","name","kind","id"],"title":"ReadToolAdminRead","description":"Admin projection — adds the id + editable notes/formats."},"ReadToolRead":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"read_methods":{"items":{"type":"string"},"type":"array","title":"Read Methods"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"}},"type":"object","required":["slug","name","kind"],"title":"ReadToolRead","description":"API projection of one ``ecu_read_tools`` reference row.\n\nSurfaced in the wizard \"ECU & read details\" step: the dealer picks a reading\ntool, and ``read_methods`` drives the available read-method options (cascade)."},"ReadToolWrite":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind","default":"tuning"},"read_methods":{"items":{"type":"string"},"type":"array","title":"Read Methods"},"expected_formats":{"items":{"type":"string"},"type":"array","title":"Expected Formats"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name"],"title":"ReadToolWrite","description":"Create/update payload for the admin tools registry (over ecu_read_tools)."},"RecipientCountRead":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"RecipientCountRead","description":"The audience-size preview for a segment."},"RecordCheck":{"properties":{"purpose":{"type":"string","enum":["spf","dkim","dmarc","return_path","brevo_code","inbound"],"title":"Purpose"},"type":{"type":"string","enum":["TXT","CNAME","MX"],"title":"Type"},"host":{"type":"string","title":"Host"},"status":{"type":"string","enum":["pending","verified","failed"],"title":"Status"},"published":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Published"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["purpose","type","host","status"],"title":"RecordCheck","description":"Per-record verification result — which exact DNS record resolved and matched.\n\n``verified`` = published and matches; ``pending`` = not found at DNS yet;\n``failed`` = a record is present but its value doesn't match what we expect.\n\n``published`` is our OWN DNS resolution of the record, independent of the\nESP's verdict: True/False when we looked it up, None when we didn't. A\n``published=True`` record still ``pending`` at the ESP means the tuner did\neverything right and the ESP simply hasn't confirmed yet — the UI can say so\ninstead of blaming their DNS. ``reason`` is the ESP's own failure message,\nwhen it gives one."},"RefundRequestApprove":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"RefundRequestApprove","description":"What the dealer reads as the refund's reason; the partner's own reason\nwhen left out."},"RefundRequestCreate":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"credits":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Credits"},"amount_cents":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount Cents"}},"type":"object","required":["order_id","reason"],"title":"RefundRequestCreate","description":"The partner asks for a refund: all of what is left (no amount), or part\nof it — ``credits`` on a credit-funded order, ``amount_cents`` on a card one."},"RefundRequestDecline":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"RefundRequestDecline","description":"Why the delegating tuner says no — the partner reads it."},"RefundRequestRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"status":{"type":"string","enum":["open","approved","declined","withdrawn"],"title":"Status"},"settlement":{"type":"string","enum":["card","credits","invoice"],"title":"Settlement"},"credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credits"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"reason":{"type":"string","title":"Reason"},"requested_by_user_id":{"type":"string","format":"uuid","title":"Requested By User Id"},"requested_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By Name"},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"},"decided_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Decided By User Id"},"decision_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Reason"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"order_refund_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Refund Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","order_id","status","settlement","currency","reason","requested_by_user_id","created_at"],"title":"RefundRequestRead","description":"One request and, once decided, its answer."},"RefundableCreditPurchase":{"properties":{"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"pack_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack Name"},"kind":{"type":"string","title":"Kind"},"purchased_credits":{"type":"integer","title":"Purchased Credits"},"refundable_credits":{"type":"integer","title":"Refundable Credits"},"amount_cents":{"type":"integer","title":"Amount Cents"},"refunded_amount_cents":{"type":"integer","title":"Refunded Amount Cents"},"refundable_cents":{"type":"integer","title":"Refundable Cents"},"currency":{"type":"string","title":"Currency"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["payment_id","kind","purchased_credits","refundable_credits","amount_cents","refunded_amount_cents","refundable_cents","currency","created_at"],"title":"RefundableCreditPurchase","description":"A paid credit-pack purchase with unspent credits still refundable — the\nadmin credit-purchase refund picker. Money and credits are refundable only for\nthe slice still sitting in the buyer's wallet."},"RefundableOrder":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"dealer_org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dealer Org Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"settlement":{"type":"string","enum":["card","credits","invoice"],"title":"Settlement","default":"card"},"amount_cents":{"type":"integer","title":"Amount Cents"},"refunded_amount_cents":{"type":"integer","title":"Refunded Amount Cents"},"remaining_cents":{"type":"integer","title":"Remaining Cents"},"currency":{"type":"string","title":"Currency"},"credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credits"},"refunded_credits":{"type":"number","title":"Refunded Credits","default":0},"refundable_credits":{"type":"number","title":"Refundable Credits","default":0},"credit_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Kind"},"invoice_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Period"},"invoice_billed":{"type":"boolean","title":"Invoice Billed","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["order_id","amount_cents","refunded_amount_cents","remaining_cents","currency","created_at"],"title":"RefundableOrder","description":"An order that can still be given back, and the rail it would travel on.\n\n``settlement`` is the load-bearing field. A card charge refunds money; a\ncredit-funded order returns credits to the dealer's wallet; an on-account order\nis a line on a monthly invoice, voidable until that cycle closes and a credit\nnote's job afterwards. A picker that only listed card charges showed a handful\nof orders out of hundreds, because most dealers never pay by card.\n\nThe money fields stay populated (and zero) off the card rail so a caller that\nonly knows about euros — the admin euro-refund picker — is unaffected."},"RefundableRemainder":{"properties":{"settlement":{"type":"string","enum":["card","credits","invoice"],"title":"Settlement"},"currency":{"type":"string","title":"Currency"},"refundable_credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Refundable Credits"},"remaining_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Cents"},"credit_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Kind"}},"type":"object","required":["settlement","currency"],"title":"RefundableRemainder","description":"What the order could still give back, for the partner's form.\n\nOn a sales-channel order the partner works for the channel and never sees\nwhat it sold the order for, so the amounts stay empty there and only a full\nrefund can be asked."},"RegisterRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"organisation_name":{"type":"string","title":"Organisation Name"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"vat":{"type":"string","title":"Vat","default":""},"legal_identity":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Legal Identity"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"invite":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite"},"partner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner"},"account_type":{"type":"string","enum":["dealer","tuner"],"title":"Account Type","default":"dealer"},"join":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Join"},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"attribution":{"anyOf":[{"$ref":"#/components/schemas/AttributionIn"},{"type":"null"}]},"signup_brand":{"anyOf":[{"type":"string","enum":["ttg","ttf"]},{"type":"null"}],"title":"Signup Brand"},"signup_intent":{"anyOf":[{"type":"string","enum":["buy","sell"]},{"type":"null"}],"title":"Signup Intent"}},"type":"object","required":["email","password","organisation_name","country"],"title":"RegisterRequest","description":"Self-service signup — creates a new organisation and its first user.\n\n``invite`` is an optional workspace-invite token from a ``/register?invite=…``\nlink: it is remembered against the new user and consumed on activation so the\ndealer is auto-linked to the inviting tuner's workspace."},"RejectDecision":{"properties":{"note":{"type":"string","maxLength":2000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"RejectDecision"},"RenderedPreview":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","title":"RenderedPreview"},"ReportCreate":{"properties":{"target_type":{"type":"string","enum":["addon","stage","product","site","workspace"],"title":"Target Type"},"target_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Url"},"reason":{"type":"string","enum":["illegal_service","counterfeit_or_pirated","stolen_goods","fraud","offensive","other"],"title":"Reason"},"details":{"type":"string","maxLength":2000,"minLength":10,"title":"Details"},"reporter_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Reporter Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","required":["target_type","reason","details"],"title":"ReportCreate","description":"A public report of a listing or a site. ``website`` is a honeypot a\nperson never fills in; a bot that does is accepted silently and dropped."},"RescheduleIn":{"properties":{"slot_ref":{"type":"string","title":"Slot Ref"}},"type":"object","required":["slot_ref"],"title":"RescheduleIn","description":"Names the newly offered instant to move onto — never a raw time.\n\nMirrors ``book_appointment``: the model calls ``find_appointment_slot``\nfirst, and only a slot freshly signed for the SAME event type this\nbooking is already on is accepted."},"RescheduleRequest":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["starts_at"],"title":"RescheduleRequest","description":"Move an existing booking to another offered time."},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest"},"RevenuePoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"credit_pack_cents":{"type":"integer","title":"Credit Pack Cents"},"order_cents":{"type":"integer","title":"Order Cents"}},"type":"object","required":["bucket","credit_pack_cents","order_cents"],"title":"RevenuePoint","description":"Settled revenue on a single day, split by purpose."},"ReviewDecision":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","title":"ReviewDecision"},"ReviewItem":{"properties":{"target_type":{"type":"string","enum":["addon","stage","product"],"title":"Target Type"},"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"name":{"type":"string","title":"Name"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"price_credits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Credits"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"review_status":{"type":"string","title":"Review Status"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["target_type","id","workspace_id","name","review_status","updated_at"],"title":"ReviewItem","description":"One seller listing waiting for an admin's decision."},"ReviewPublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author_name":{"type":"string","title":"Author Name"},"garage":{"type":"string","title":"Garage"},"city":{"type":"string","title":"City"},"quote":{"type":"string","title":"Quote"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","author_name","garage","city","quote","position"],"title":"ReviewPublic","description":"A published review with its quote resolved to one locale — for the\nmarketing site."},"ReviewRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"author_name":{"type":"string","title":"Author Name"},"garage":{"type":"string","title":"Garage"},"city":{"type":"string","title":"City"},"quotes":{"additionalProperties":{"type":"string"},"type":"object","title":"Quotes"},"published":{"type":"boolean","title":"Published"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","organisation_id","author_name","garage","city","quotes","published","position"],"title":"ReviewRead","description":"Full row, including every locale's quote — for the admin console."},"ReviewWrite":{"properties":{"author_name":{"type":"string","title":"Author Name"},"garage":{"type":"string","title":"Garage"},"city":{"type":"string","title":"City"},"quotes":{"additionalProperties":{"type":"string"},"type":"object","title":"Quotes"},"published":{"type":"boolean","title":"Published","default":false},"position":{"type":"integer","title":"Position","default":0}},"type":"object","required":["author_name","garage","city"],"title":"ReviewWrite","description":"Create/replace payload for the admin console. ``quotes`` is keyed by\nlocale (``en``/``nl``/``de``/``fr``); only the locales you provide are kept."},"RevisionRequest":{"properties":{"feedback":{"type":"string","maxLength":2000,"minLength":1,"title":"Feedback"}},"type":"object","required":["feedback"],"title":"RevisionRequest","description":"Dealer's request to change a delivered file — what needs fixing."},"RoutingRuleInput":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"conditions":{"items":{"oneOf":[{"$ref":"#/components/schemas/ListCondition"},{"$ref":"#/components/schemas/OrderValueCondition"},{"$ref":"#/components/schemas/OpeningHoursCondition"}],"discriminator":{"propertyName":"field","mapping":{"dealer":"#/components/schemas/ListCondition","dealer_country":"#/components/schemas/ListCondition","ecu_family":"#/components/schemas/ListCondition","fuel":"#/components/schemas/ListCondition","make":"#/components/schemas/ListCondition","opening_hours":"#/components/schemas/OpeningHoursCondition","order_value":"#/components/schemas/OrderValueCondition","read_tool":"#/components/schemas/ListCondition","service":"#/components/schemas/ListCondition","vehicle_type":"#/components/schemas/ListCondition"}}},"type":"array","maxItems":20,"title":"Conditions"},"action":{"oneOf":[{"$ref":"#/components/schemas/PoolAction"},{"$ref":"#/components/schemas/DirectAction"},{"$ref":"#/components/schemas/FavouriteAction"}],"title":"Action","discriminator":{"propertyName":"kind","mapping":{"bidding":"#/components/schemas/PoolAction","direct":"#/components/schemas/DirectAction","favourite":"#/components/schemas/FavouriteAction","restricted_pool":"#/components/schemas/PoolAction"}}},"alert_after_s":{"type":"integer","maximum":604800.0,"minimum":60.0,"title":"Alert After S","default":900},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name","action"],"title":"RoutingRuleInput"},"RoutingRuleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"position":{"type":"integer","title":"Position"},"name":{"type":"string","title":"Name"},"conditions":{"items":{"oneOf":[{"$ref":"#/components/schemas/ListCondition"},{"$ref":"#/components/schemas/OrderValueCondition"},{"$ref":"#/components/schemas/OpeningHoursCondition"}],"discriminator":{"propertyName":"field","mapping":{"dealer":"#/components/schemas/ListCondition","dealer_country":"#/components/schemas/ListCondition","ecu_family":"#/components/schemas/ListCondition","fuel":"#/components/schemas/ListCondition","make":"#/components/schemas/ListCondition","opening_hours":"#/components/schemas/OpeningHoursCondition","order_value":"#/components/schemas/OrderValueCondition","read_tool":"#/components/schemas/ListCondition","service":"#/components/schemas/ListCondition","vehicle_type":"#/components/schemas/ListCondition"}}},"type":"array","title":"Conditions"},"action":{"oneOf":[{"$ref":"#/components/schemas/PoolAction"},{"$ref":"#/components/schemas/DirectAction"},{"$ref":"#/components/schemas/FavouriteAction"}],"title":"Action","discriminator":{"propertyName":"kind","mapping":{"bidding":"#/components/schemas/PoolAction","direct":"#/components/schemas/DirectAction","favourite":"#/components/schemas/FavouriteAction","restricted_pool":"#/components/schemas/PoolAction"}}},"alert_after_s":{"type":"integer","title":"Alert After S"},"enabled":{"type":"boolean","title":"Enabled"},"is_default":{"type":"boolean","title":"Is Default"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","position","name","conditions","action","alert_after_s","enabled","is_default"],"title":"RoutingRuleRead"},"RoutingRuleUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"conditions":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/ListCondition"},{"$ref":"#/components/schemas/OrderValueCondition"},{"$ref":"#/components/schemas/OpeningHoursCondition"}],"discriminator":{"propertyName":"field","mapping":{"dealer":"#/components/schemas/ListCondition","dealer_country":"#/components/schemas/ListCondition","ecu_family":"#/components/schemas/ListCondition","fuel":"#/components/schemas/ListCondition","make":"#/components/schemas/ListCondition","opening_hours":"#/components/schemas/OpeningHoursCondition","order_value":"#/components/schemas/OrderValueCondition","read_tool":"#/components/schemas/ListCondition","service":"#/components/schemas/ListCondition","vehicle_type":"#/components/schemas/ListCondition"}}},"type":"array","maxItems":20},{"type":"null"}],"title":"Conditions"},"action":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/PoolAction"},{"$ref":"#/components/schemas/DirectAction"},{"$ref":"#/components/schemas/FavouriteAction"}],"discriminator":{"propertyName":"kind","mapping":{"bidding":"#/components/schemas/PoolAction","direct":"#/components/schemas/DirectAction","favourite":"#/components/schemas/FavouriteAction","restricted_pool":"#/components/schemas/PoolAction"}}},{"type":"null"}],"title":"Action"},"alert_after_s":{"anyOf":[{"type":"integer","maximum":604800.0,"minimum":60.0},{"type":"null"}],"title":"Alert After S"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"RoutingRuleUpdate"},"RuleChangeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"rule_name":{"type":"string","title":"Rule Name"},"kind":{"type":"string","enum":["created","updated","deleted","reordered","enabled","disabled"],"title":"Kind"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"changed_by_name":{"type":"string","title":"Changed By Name"},"before":{"anyOf":[{"$ref":"#/components/schemas/RoutingRuleRead"},{"type":"null"}]},"after":{"anyOf":[{"$ref":"#/components/schemas/RoutingRuleRead"},{"type":"null"}]}},"type":"object","required":["id","rule_id","rule_name","kind","changed_at","changed_by_name"],"title":"RuleChangeRead"},"RuleCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"trigger_event":{"type":"string","maxLength":64,"minLength":1,"title":"Trigger Event"},"conditions":{"additionalProperties":true,"type":"object","title":"Conditions"},"delay_minutes":{"type":"integer","maximum":86400.0,"minimum":0.0,"title":"Delay Minutes","default":0},"send_at_local_time":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Send At Local Time"},"action_kind":{"type":"string","enum":["whatsapp_template","email","team_notice","webhook"],"title":"Action Kind"},"action_config":{"additionalProperties":true,"type":"object","title":"Action Config"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name","trigger_event","action_kind"],"title":"RuleCreate"},"RuleOrderUpdate":{"properties":{"rule_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Rule Ids"}},"type":"object","required":["rule_ids"],"title":"RuleOrderUpdate","description":"Every non-default rule id, in the new order (the default stays last)."},"RuleTestResult":{"properties":{"matched":{"type":"boolean","title":"Matched"},"subject_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Label"},"rendered":{"anyOf":[{"$ref":"#/components/schemas/RenderedPreview"},{"type":"null"}]},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"}},"type":"object","required":["matched","subject_label","rendered","skip_reason"],"title":"RuleTestResult","description":"A dry run against the most recent matching subject."},"RuleUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"trigger_event":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Trigger Event"},"conditions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conditions"},"delay_minutes":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":0.0},{"type":"null"}],"title":"Delay Minutes"},"send_at_local_time":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Send At Local Time"},"action_kind":{"anyOf":[{"type":"string","enum":["whatsapp_template","email","team_notice","webhook"]},{"type":"null"}],"title":"Action Kind"},"action_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Config"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"RuleUpdate","description":"Partial update: only the fields present in the body change\n(``model_dump(exclude_unset=True)``); the resulting rule is validated whole."},"RuleWrite":{"properties":{"pattern":{"type":"string","maxLength":200,"minLength":2,"title":"Pattern"},"kind":{"type":"string","enum":["keyword","regex"],"title":"Kind","default":"keyword"},"scope":{"type":"string","enum":["listings","sites","both"],"title":"Scope","default":"both"},"active":{"type":"boolean","title":"Active","default":true},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["pattern"],"title":"RuleWrite"},"RunPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RunRead"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"RunPage"},"RunRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"subject_kind":{"type":"string","enum":["order","enquiry","booking","invoice","customer"],"title":"Subject Kind"},"subject_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Label"},"due_at":{"type":"string","format":"date-time","title":"Due At"},"status":{"type":"string","enum":["scheduled","processing","sent","skipped","failed","cancelled"],"title":"Status"},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"result":{"additionalProperties":true,"type":"object","title":"Result"}},"type":"object","required":["id","rule_id","subject_kind","subject_label","due_at","status","skip_reason","sent_at","result"],"title":"RunRead"},"ScopeStats":{"properties":{"files":{"$ref":"#/components/schemas/Stat"},"ftr_pct":{"$ref":"#/components/schemas/Stat"},"revision_pct":{"$ref":"#/components/schemas/Stat"},"median_min":{"$ref":"#/components/schemas/Stat"},"p90_min":{"$ref":"#/components/schemas/Stat"}},"type":"object","required":["files","ftr_pct","revision_pct","median_min","p90_min"],"title":"ScopeStats","description":"The headline figures of a scope over the counting window."},"ScrapeWebsiteIn":{"properties":{"url":{"type":"string","minLength":1,"title":"Url"}},"type":"object","required":["url"],"title":"ScrapeWebsiteIn","description":"The tuner's own website, for the platform's crawler to stage facts from."},"SearchConsoleCheck":{"properties":{"url":{"type":"string","title":"Url"},"reachable":{"type":"boolean","title":"Reachable"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"found":{"items":{"type":"string"},"type":"array","title":"Found","default":[]},"misplaced":{"items":{"type":"string"},"type":"array","title":"Misplaced","default":[]},"missing":{"items":{"type":"string"},"type":"array","title":"Missing","default":[]}},"type":"object","required":["url","reachable"],"title":"SearchConsoleCheck","description":"Where each code turned up on the live homepage."},"SearchConsoleCodesUpdate":{"properties":{"codes":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Codes"}},"type":"object","title":"SearchConsoleCodesUpdate","description":"The codes as pasted: meta tags or bare codes, one per entry."},"SearchConsoleStatus":{"properties":{"codes":{"items":{"type":"string"},"type":"array","title":"Codes","default":[]},"property_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Url"},"sitemap_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sitemap Url"},"published":{"type":"boolean","title":"Published","default":false},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Domain"}},"type":"object","title":"SearchConsoleStatus","description":"What the settings card shows.\n\n``property_url`` is the exact address to add as a URL-prefix property: the\none Google lands on, the active custom domain before any platform address.\nNone while the site has no public address. ``custom_domain`` is set only for\nan owned domain, the one case where a Domain property (DNS) is possible."},"SearchRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"part_number":{"type":"string","title":"Part Number"},"destination":{"type":"string","title":"Destination"},"category":{"type":"string","title":"Category"},"vehicle":{"type":"string","title":"Vehicle"},"max_results":{"type":"integer","title":"Max Results"},"status":{"type":"string","enum":["queued","running","completed","no_matches","partial","blocked","failed"],"title":"Status"},"total_found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Found"},"pages_scanned":{"type":"integer","title":"Pages Scanned"},"complete":{"type":"boolean","title":"Complete"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"products":{"items":{"$ref":"#/components/schemas/Product"},"type":"array","title":"Products"}},"type":"object","required":["id","part_number","destination","category","vehicle","max_results","status","total_found","pages_scanned","complete","reason","created_at","finished_at"],"title":"SearchRead","description":"Normal lookup response; internal costs cannot be serialized here."},"SearchRequest":{"properties":{"part_number":{"type":"string","maxLength":80,"minLength":3,"title":"Part Number"},"destination":{"type":"string","enum":["NL","BE","DE","FR","LT"],"title":"Destination","default":"NL"},"category":{"type":"string","maxLength":100,"title":"Category","default":""},"vehicle":{"type":"string","maxLength":100,"title":"Vehicle","default":""},"max_results":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Max Results","default":20},"first_match":{"type":"boolean","title":"First Match","default":false},"refresh":{"type":"boolean","title":"Refresh","default":false}},"type":"object","required":["part_number"],"title":"SearchRequest","description":"Only part identifiers, never arbitrary URLs, enter the browser worker."},"SearchSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"part_number":{"type":"string","title":"Part Number"},"destination":{"type":"string","title":"Destination"},"category":{"type":"string","title":"Category"},"vehicle":{"type":"string","title":"Vehicle"},"max_results":{"type":"integer","title":"Max Results"},"status":{"type":"string","enum":["queued","running","completed","no_matches","partial","blocked","failed"],"title":"Status"},"total_found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Found"},"pages_scanned":{"type":"integer","title":"Pages Scanned"},"complete":{"type":"boolean","title":"Complete"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","part_number","destination","category","vehicle","max_results","status","total_found","pages_scanned","complete","reason","created_at","finished_at"],"title":"SearchSummary","description":"Organisation-scoped history entry."},"SeatsUsage":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},"type":"object","required":["used","limit"],"title":"SeatsUsage","description":"The team-seat meter row — provisioned, so no overage. ``limit`` None =\nunlimited seats."},"SegmentPreviewRequest":{"properties":{"segment":{"additionalProperties":true,"type":"object","title":"Segment"}},"type":"object","required":["segment"],"title":"SegmentPreviewRequest","description":"Body of POST /campaigns/recipient-count-preview — any segment descriptor.\n\nUnlike the legacy GET (kind + sunset flag as query params), the POST body\ncarries the full descriptor, so ``filtered`` and ``audience`` segments can\nbe previewed too. Validation happens in the service (422 via\n``UnknownSegmentError``), not here — the descriptor vocabulary is the\nservice's contract."},"SellerReviewRow":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"kind":{"type":"string","title":"Kind"},"orders":{"type":"integer","title":"Orders"},"credits":{"type":"string","title":"Credits"},"cents":{"type":"integer","title":"Cents"},"last_reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reviewed At"},"last_review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Review Note"},"selling_suspended":{"type":"boolean","title":"Selling Suspended"}},"type":"object","required":["workspace_id","workspace_name","kind","orders","credits","cents","selling_suspended"],"title":"SellerReviewRow"},"SellerReviewWrite":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","title":"SellerReviewWrite"},"SellingSuspension":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"SellingSuspension"},"SenderIdentity":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"organisation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"}},"type":"object","required":["user_id","name","role"],"title":"SenderIdentity","description":"Who a message author is — for the messenger's per-sender labels so a\nmulti-party thread (dealer + one or more tuners + admin) shows who sent each\nmessage. ``org_name`` distinguishes two tuning companies with the same role;\n``organisation_id`` tells the viewer's colleagues apart from the other side."},"SendingDomainRow":{"properties":{"domain":{"type":"string","title":"Domain"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"sent":{"type":"integer","title":"Sent"},"delivered":{"type":"integer","title":"Delivered"},"delivered_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delivered Rate"},"blocked":{"type":"integer","title":"Blocked"},"bounced":{"type":"integer","title":"Bounced"},"dropped":{"type":"integer","title":"Dropped"},"spam_reported":{"type":"integer","title":"Spam Reported"},"dns_status":{"anyOf":[{"type":"string","enum":["ok","warning","broken","unknown"]},{"type":"string","const":"unchecked"}],"title":"Dns Status"},"dns_issues":{"items":{"type":"string"},"type":"array","title":"Dns Issues"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"type":"object","required":["domain","workspace_id","workspace_name","sent","delivered","delivered_rate","blocked","bounced","dropped","spam_reported","dns_status","dns_issues","checked_at"],"title":"SendingDomainRow","description":"One From domain across the platform in a window, with its DNS state."},"SendingIpRow":{"properties":{"ip":{"type":"string","title":"Ip"},"blocklists":{"items":{"type":"string"},"type":"array","title":"Blocklists"},"blocks":{"type":"integer","title":"Blocks"},"last_block_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Block At"},"recipient_domains":{"items":{"type":"string"},"type":"array","title":"Recipient Domains"},"delivered":{"type":"integer","title":"Delivered"}},"type":"object","required":["ip","blocklists","blocks","last_block_at","recipient_domains","delivered"],"title":"SendingIpRow","description":"Blocks by recipient blocklists, per sending IP."},"ServiceMatch":{"properties":{"item_type":{"type":"string","enum":["stage","addon"],"title":"Item Type"},"item_key":{"type":"string","maxLength":64,"minLength":1,"title":"Item Key"}},"additionalProperties":false,"type":"object","required":["item_type","item_key"],"title":"ServiceMatch","description":"One catalogue service an appointment type covers.\n\nThe same ``(item_type, item_key)`` pair the workspace price book is keyed\non — a stage label or an add-on code — so the settings form offers exactly\nthe services this tuner sells and nothing has to be typed."},"SetupIn":{"properties":{"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"}},"type":"object","required":["success_url","cancel_url"],"title":"SetupIn"},"SetupSlice":{"properties":{"live_ready":{"type":"boolean","title":"Live Ready"},"outstanding_required":{"items":{"type":"string"},"type":"array","title":"Outstanding Required"},"outstanding_optional":{"items":{"type":"string"},"type":"array","title":"Outstanding Optional"}},"type":"object","required":["live_ready","outstanding_required","outstanding_optional"],"title":"SetupSlice"},"SetupStatus":{"properties":{"stripe":{"type":"boolean","title":"Stripe"},"prices":{"type":"boolean","title":"Prices"},"dealer_invited":{"type":"boolean","title":"Dealer Invited"},"plan_chosen":{"type":"boolean","title":"Plan Chosen"},"currency_rates":{"type":"boolean","title":"Currency Rates"},"unpriced_currencies":{"items":{"type":"string"},"type":"array","title":"Unpriced Currencies","default":[]},"branding":{"type":"boolean","title":"Branding"},"email_domain":{"type":"boolean","title":"Email Domain"},"web_domain":{"type":"boolean","title":"Web Domain"},"published":{"type":"boolean","title":"Published"},"live_ready":{"type":"boolean","title":"Live Ready"},"has_paid_orders":{"type":"boolean","title":"Has Paid Orders"},"takes_card_payments":{"type":"boolean","title":"Takes Card Payments"},"required_done":{"type":"integer","title":"Required Done"},"required_total":{"type":"integer","title":"Required Total"},"total_done":{"type":"integer","title":"Total Done"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["stripe","prices","dealer_invited","plan_chosen","currency_rates","branding","email_domain","web_domain","published","live_ready","has_paid_orders","takes_card_payments","required_done","required_total","total_done","total"],"title":"SetupStatus","description":"Tuner activation checklist — each flag is derived live from real workspace\nstate, so the checklist can never drift out of sync. (``dealer_invited`` also\nreads the onboarding stamp, since an invitation to an address with no\naccount yet leaves no membership row behind.)\n\n``stripe`` and ``prices`` are the *required* go-live tasks (a tuner can't be\npaid or price work without them); the rest, ``currency_rates`` included, are\npolish. A foreign buyer is never blocked — an unpriced currency sells at the\ntuner's base numbers — so it prompts rather than gates. ``live_ready`` means\nthe workspace can receive and be paid for orders.\n\nOrdering itself never waits on payouts: a dealer spends credits the tuner\ngranted, or orders on account, with no Connect account at all. So the banner\nalso needs ``has_paid_orders`` (a real order already entered the queue paid\nfor) and ``takes_card_payments`` (card checkout, credit packs and invoice\npay-links work — a Connect account exists, even one still pending, or the\nstorefront settles on the platform's own account) to say what is actually\nblocked instead of claiming no orders arrive."},"ShipRequest":{"properties":{"tracking_carrier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Carrier"},"tracking_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Code"}},"type":"object","title":"ShipRequest"},"ShippingRateRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"},"name":{"type":"string","title":"Name"},"prices":{"additionalProperties":true,"type":"object","title":"Prices"},"countries":{"items":{},"type":"array","title":"Countries"},"free_over_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Over Cents"},"min_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Days"},"max_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Days"},"active":{"type":"boolean","title":"Active"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","name","prices","countries","active","position"],"title":"ShippingRateRead"},"ShippingRateWrite":{"properties":{"name":{"type":"string","title":"Name"},"prices":{"additionalProperties":{"type":"integer"},"type":"object","title":"Prices"},"countries":{"items":{"type":"string"},"type":"array","title":"Countries"},"free_over_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Over Cents"},"min_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Days"},"max_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Days"},"active":{"type":"boolean","title":"Active","default":true},"position":{"type":"integer","title":"Position","default":0},"tuner_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner Workspace Id"}},"type":"object","required":["name","prices","countries"],"title":"ShippingRateWrite","description":"``tuner_workspace_id`` mirrors ``ProductWrite`` — NULL is the platform\nshop's own rate; a workspace id scopes it to that tuner's shop (phase 2)."},"ShopOrderItemRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Id"},"product_variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Variant Id"},"shop_quote_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shop Quote Id"},"quote_option_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Quote Option Id"},"sku":{"type":"string","title":"Sku"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"qty":{"type":"integer","title":"Qty"},"unit_net_cents":{"type":"integer","title":"Unit Net Cents"},"net_cents":{"type":"integer","title":"Net Cents"},"vat_rate_bps":{"type":"integer","title":"Vat Rate Bps"},"fulfilled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fulfilled At"},"fulfilment_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fulfilment Payload"},"perks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Perks"}},"type":"object","required":["id","sku","name","kind","qty","unit_net_cents","net_cents","vat_rate_bps"],"title":"ShopOrderItemRead"},"ShopOrderRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reference":{"type":"string","title":"Reference"},"organisation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"},"status":{"type":"string","title":"Status"},"fulfilment_status":{"type":"string","title":"Fulfilment Status"},"currency":{"type":"string","title":"Currency"},"items_net_cents":{"type":"integer","title":"Items Net Cents"},"shipping_net_cents":{"type":"integer","title":"Shipping Net Cents"},"net_cents":{"type":"integer","title":"Net Cents"},"vat_cents":{"type":"integer","title":"Vat Cents"},"gross_cents":{"type":"integer","title":"Gross Cents"},"vat_rate_bps":{"type":"integer","title":"Vat Rate Bps"},"reverse_charge":{"type":"boolean","title":"Reverse Charge"},"tax_note_code":{"type":"string","title":"Tax Note Code"},"buyer":{"additionalProperties":true,"type":"object","title":"Buyer"},"shipping_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shipping Address"},"shipping_rate_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shipping Rate Snapshot"},"tracking_carrier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Carrier"},"tracking_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Code"},"shipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shipped At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"refunded_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refunded Cents"},"items":{"items":{"$ref":"#/components/schemas/ShopOrderItemRead"},"type":"array","title":"Items"}},"type":"object","required":["id","reference","status","fulfilment_status","currency","items_net_cents","shipping_net_cents","net_cents","vat_cents","gross_cents","vat_rate_bps","reverse_charge","tax_note_code","buyer","created_at"],"title":"ShopOrderRead"},"ShopPartImportResult":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/ShopPartImportRow"},"type":"array","title":"Rows"},"rows_truncated":{"type":"boolean","title":"Rows Truncated","default":false},"created":{"type":"integer","title":"Created","default":0},"updated":{"type":"integer","title":"Updated","default":0},"unchanged":{"type":"integer","title":"Unchanged","default":0},"errors":{"type":"integer","title":"Errors","default":0},"missing":{"type":"integer","title":"Missing","default":0},"deactivated":{"type":"integer","title":"Deactivated","default":0},"images":{"type":"integer","title":"Images","default":0},"file_error":{"anyOf":[{"type":"string","enum":["too_large","not_utf8","unreadable","empty","missing_columns","too_many_rows"]},{"type":"null"}],"title":"File Error"},"missing_columns":{"items":{"type":"string"},"type":"array","title":"Missing Columns"},"unknown_columns":{"items":{"type":"string"},"type":"array","title":"Unknown Columns"},"applied":{"type":"boolean","title":"Applied"}},"type":"object","required":["rows","applied"],"title":"ShopPartImportResult","description":"A previewed or applied upload. ``rows`` lists every error first-come and\nfills up with the other rows to a cap (``rows_truncated`` when cut); the\ncounts always cover the whole file. ``missing`` is how many active parts the\nfile does not name — taken off sale only when asked (``deactivated``)."},"ShopPartImportRow":{"properties":{"line":{"type":"integer","title":"Line"},"part_number":{"type":"string","title":"Part Number"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"availability":{"anyOf":[{"type":"string","enum":["in_stock","sold_out"]},{"type":"null"}],"title":"Availability"},"action":{"type":"string","enum":["create","update","unchanged","error"],"title":"Action"},"error":{"anyOf":[{"type":"string","enum":["invalid_part_number","missing_title","missing_price","invalid_price","invalid_code","too_many_codes","too_long","invalid_image_url","too_many_images","invalid_availability","invalid_yes_no","duplicate_in_file","code_in_file","code_in_use","image_limit"]},{"type":"null"}],"title":"Error"},"error_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Column"},"error_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Value"}},"type":"object","required":["line","part_number","action"],"title":"ShopPartImportRow","description":"One uploaded row and what importing it does (or why it cannot)."},"ShopPartList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ShopPartRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"ShopPartList","description":"One page of the catalogue and the total matching rows."},"ShopPartRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"part_number":{"type":"string","title":"Part Number"},"part_number_norm":{"type":"string","title":"Part Number Norm"},"alternative_codes":{"items":{"type":"string"},"type":"array","title":"Alternative Codes"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_cents":{"type":"integer","title":"Price Cents"},"customer_price_cents":{"type":"integer","title":"Customer Price Cents"},"currency":{"type":"string","title":"Currency"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition"},"fits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fits"},"image_urls":{"items":{"type":"string"},"type":"array","title":"Image Urls"},"images_copied":{"type":"integer","title":"Images Copied"},"images_failed":{"type":"integer","title":"Images Failed"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"availability":{"type":"string","enum":["in_stock","sold_out"],"title":"Availability"},"needs_shipping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Shipping"},"active":{"type":"boolean","title":"Active"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","part_number","part_number_norm","alternative_codes","title","price_cents","customer_price_cents","currency","image_urls","images_copied","images_failed","availability","active","updated_at"],"title":"ShopPartRead","description":"One catalogue part as the owner manages it, with the customer price its\nbase price yields under the current margin."},"ShopPartUpdate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"price_cents":{"type":"integer","maximum":100000000.0,"minimum":0.0,"title":"Price Cents"},"brand":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Brand"},"condition":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Condition"},"fits":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fits"},"alternative_codes":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Alternative Codes"},"image_urls":{"items":{"type":"string"},"type":"array","maxItems":6,"title":"Image Urls"},"availability":{"type":"string","enum":["in_stock","sold_out"],"title":"Availability","default":"in_stock"},"needs_shipping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Shipping"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["title","price_cents"],"title":"ShopPartUpdate","description":"Correct one catalogue part by hand. The primary part number is the\npart's identity and cannot change here; everything else can."},"ShopRefundRequest":{"properties":{"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"restock":{"type":"boolean","title":"Restock","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ShopRefundRequest","description":"Admin refund of a paid shop order; ``restock`` returns tracked stock (full\nrefunds only). ``amount_cents`` None = the full remaining charge."},"ShowcaseGains":{"properties":{"hp_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hp Before"},"hp_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hp After"},"nm_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nm Before"},"nm_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nm After"}},"type":"object","title":"ShowcaseGains","description":"Before→after figures for a card; any field may be absent (torque-only, etc.)."},"ShowcaseTuner":{"properties":{"name":{"type":"string","title":"Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"initials":{"type":"string","title":"Initials"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","required":["name","initials"],"title":"ShowcaseTuner","description":"Public identity of the tuner who did the work — brand only, never org PII."},"SimulateRequest":{"properties":{"order_ref":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Order Ref"},"dealer_country":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Dealer Country"},"vehicle_type":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Vehicle Type"},"make":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Make"},"fuel":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Fuel"},"service":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Service"},"ecu_family":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Ecu Family"},"read_tool":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Read Tool"},"order_value_cents":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Order Value Cents"}},"type":"object","title":"SimulateRequest","description":"\"Test with order\": an order reference, or a hypothetical order. A\nhypothetical order is matched against the opening hours as of now."},"SimulateResult":{"properties":{"matched_rule":{"$ref":"#/components/schemas/MatchedRule"},"action":{"oneOf":[{"$ref":"#/components/schemas/PoolAction"},{"$ref":"#/components/schemas/DirectAction"},{"$ref":"#/components/schemas/FavouriteAction"}],"title":"Action","discriminator":{"propertyName":"kind","mapping":{"bidding":"#/components/schemas/PoolAction","direct":"#/components/schemas/DirectAction","favourite":"#/components/schemas/FavouriteAction","restricted_pool":"#/components/schemas/PoolAction"}}},"currency":{"type":"string","title":"Currency"},"sale_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sale Price Cents"},"ceiling_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ceiling Cents"},"skipped_disabled":{"items":{"$ref":"#/components/schemas/SkippedRule"},"type":"array","title":"Skipped Disabled"},"eligible":{"items":{"$ref":"#/components/schemas/EligibleTuner"},"type":"array","title":"Eligible"},"excluded":{"items":{"$ref":"#/components/schemas/ExcludedTuner"},"type":"array","title":"Excluded"}},"type":"object","required":["matched_rule","action","currency"],"title":"SimulateResult"},"SiteAnalytics":{"properties":{"gtm_container_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gtm Container Id"},"ga4_measurement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ga4 Measurement Id"},"meta_pixel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Pixel Id"}},"type":"object","title":"SiteAnalytics","description":"Structured analytics IDs the public site expands into correct, consent-wired\nsnippets (Google Tag Manager, GA4, Meta Pixel). None/empty = not configured."},"SiteBriefDeskRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"status":{"type":"string","enum":["draft","submitted","building","delivered","accepted","changes_requested"],"title":"Status"},"photo_count":{"type":"integer","title":"Photo Count","default":0},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organisation_id","status","created_at"],"title":"SiteBriefDeskRow","description":"One row of the operator desk."},"SiteBriefDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"status":{"type":"string","enum":["draft","submitted","building","delivered","accepted","changes_requested"],"title":"Status"},"answers":{"additionalProperties":true,"type":"object","title":"Answers"},"photos":{"items":{"$ref":"#/components/schemas/BriefPhoto"},"type":"array","title":"Photos"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"operator_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator Notes"},"has_delivered_pages":{"type":"boolean","title":"Has Delivered Pages","default":false}},"type":"object","required":["id","organisation_id","status","created_at","updated_at"],"title":"SiteBriefDetail","description":"The operator's view — adds what the customer never sees."},"SiteBriefRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"status":{"type":"string","enum":["draft","submitted","building","delivered","accepted","changes_requested"],"title":"Status"},"answers":{"additionalProperties":true,"type":"object","title":"Answers"},"photos":{"items":{"$ref":"#/components/schemas/BriefPhoto"},"type":"array","title":"Photos"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organisation_id","status","created_at","updated_at"],"title":"SiteBriefRead","description":"A brief as its owner sees it. ``delivered_pages`` is deliberately absent:\nthe customer reviews the site in the editor, not as raw JSON."},"SiteBriefSave":{"properties":{"answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Answers"},"photos":{"anyOf":[{"items":{"$ref":"#/components/schemas/BriefPhoto"},"type":"array"},{"type":"null"}],"title":"Photos"}},"type":"object","title":"SiteBriefSave","description":"Save the customer's answers so far. Every field optional — the wizard\nsaves on each step so a half-finished brief survives a closed laptop."},"SiteCodeInjection":{"properties":{"head_html":{"type":"string","maxLength":16000,"title":"Head Html","default":""},"body_start_html":{"type":"string","maxLength":16000,"title":"Body Start Html","default":""},"body_end_html":{"type":"string","maxLength":16000,"title":"Body End Html","default":""}},"type":"object","title":"SiteCodeInjection","description":"Raw HTML the tuner injects into their OWN published site — the escape hatch\nfor anything the structured IDs don't cover (Hotjar, verification metas, custom\npixels). Size-capped; server-rendered on the published site only, never in the\neditor or another tenant."},"SiteConsent":{"properties":{"banner":{"type":"boolean","title":"Banner","default":false},"default":{"type":"string","enum":["denied","granted"],"title":"Default","default":"denied"}},"type":"object","title":"SiteConsent","description":"Cookie-consent config. ``default`` seeds Google Consent Mode v2 before any tag\nloads; ``banner`` shows the built-in consent banner that grants it."},"SiteFormAcknowledgeIn":{"properties":{"acknowledged":{"type":"boolean","title":"Acknowledged","default":true}},"type":"object","title":"SiteFormAcknowledgeIn","description":"The tuner settling (or re-opening) an enquiry's needs-reply state.\n\nSeparate from :class:`SiteFormStatusIn` because they answer different\nquestions: a status is where the deal ended up, this is only whose turn it\nis. ``acknowledged=False`` is the undo."},"SiteFormAttachmentDownloadIn":{"properties":{"storage_key":{"type":"string","maxLength":512,"minLength":1,"title":"Storage Key"},"filename":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Filename"}},"type":"object","required":["storage_key"],"title":"SiteFormAttachmentDownloadIn","description":"Ask for a short-lived download URL for one stored attachment."},"SiteFormMessageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"submission_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Submission Id"},"direction":{"type":"string","title":"Direction"},"from_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Email"},"to_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Email"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body":{"type":"string","title":"Body"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"status":{"type":"string","title":"Status","default":"ok"},"agent_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Agent Expires At"},"author_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Kind"},"attachments":{"items":{"$ref":"#/components/schemas/EnquiryAttachmentRead"},"type":"array","title":"Attachments","default":[]},"delivery_status":{"anyOf":[{"type":"string","enum":["sending","sent","delayed","delivered","opened","read","failed"]},{"type":"null"}],"title":"Delivery Status"},"delivery_status_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivery Status At"},"delivery_reason":{"anyOf":[{"type":"string","enum":["no_such_address","mailbox_full","blocked_by_recipient","spam_reported","suppressed","other"]},{"type":"null"}],"title":"Delivery Reason"},"delivery_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Detail"},"edited":{"type":"boolean","title":"Edited","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","direction","body","created_at"],"title":"SiteFormMessageRead","description":"One message in a two-way lead conversation (inbound or outbound)."},"SiteFormQuoteIn":{"properties":{"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"EUR"},"note":{"type":"string","maxLength":8000,"title":"Note","default":""},"valid_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Valid Days","default":14},"vehicle_label":{"type":"string","maxLength":160,"title":"Vehicle Label","default":""},"stage":{"type":"string","maxLength":80,"title":"Stage","default":""},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"answers":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAnswerIn"},"type":"array"},{"type":"null"}],"title":"Answers"}},"type":"object","required":["amount_cents"],"title":"SiteFormQuoteIn","description":"The tuner's priced answer to a request-quote lead.\n\n``amount_cents`` is the price in minor units **including VAT** — the single\neverything-in figure a private customer is quoted in the trade. The ex-VAT\nsubtotal and the VAT line on the quote are derived out of it, so the parts\nalways sum back to the number quoted. ``note`` is the optional covering\nmessage; ``valid_days`` sets how long the quote stands (defaults to 14).\n\n``vehicle_label`` and ``stage`` are the tuner's say over which car and\nwhich work the quote is for. Non-empty, they override the lead's own\nselection on the quote — the email, the PDF, the accept page and the\nbooking all name the quoted values — while the lead's request stays\nrecorded as what they asked for (see :func:`quoted_selection`). Empty\nkeeps whatever the standing quote already says."},"SiteFormReplyIn":{"properties":{"body":{"type":"string","maxLength":8000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"SiteFormReplyIn"},"SiteFormResendIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"SiteFormResendIn","description":"Send an undelivered email again, to the address the tuner corrected.\n\nThe same address is allowed — a full mailbox or a refusing server may\ntake it on a later try. Stored trimmed and lowercased, as threads are."},"SiteFormStatusIn":{"properties":{"status":{"type":"string","enum":["new","open","won","lost","closed"],"title":"Status"}},"type":"object","required":["status"],"title":"SiteFormStatusIn","description":"The tuner moving an enquiry to a new lifecycle state (inbox action)."},"SiteFormSubmissionList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SiteFormSubmissionRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"unread":{"type":"integer","title":"Unread"}},"type":"object","required":["items","total","unread"],"title":"SiteFormSubmissionList"},"SiteFormSubmissionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"page_path":{"type":"string","title":"Page Path"},"form_kind":{"type":"string","title":"Form Kind"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"},"source_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Host"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","page_path","form_kind","fields","read_at","archived_at","created_at"],"title":"SiteFormSubmissionRead"},"SiteFormSubmissionUpdate":{"properties":{"read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"}},"type":"object","title":"SiteFormSubmissionUpdate"},"SiteFormSubmitIn":{"properties":{"kind":{"type":"string","enum":["contact","quote","newsletter","ad_lead","part_request"],"title":"Kind","default":"contact"},"page_path":{"type":"string","maxLength":160,"title":"Page Path","default":"/"},"name":{"type":"string","maxLength":120,"title":"Name","default":""},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"phone":{"type":"string","maxLength":40,"title":"Phone","default":""},"plate":{"type":"string","maxLength":24,"title":"Plate","default":""},"part_number":{"type":"string","maxLength":40,"title":"Part Number","default":""},"message":{"type":"string","maxLength":4000,"title":"Message","default":""},"catalogue_node_id":{"type":"string","maxLength":64,"title":"Catalogue Node Id","default":""},"vehicle_label":{"type":"string","maxLength":200,"title":"Vehicle Label","default":""},"stage":{"type":"string","maxLength":64,"title":"Stage","default":""},"power_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power After"},"torque_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque After"},"options":{"items":{"$ref":"#/components/schemas/QuoteOptionIn"},"type":"array","maxItems":40,"title":"Options"},"lookup_id":{"type":"string","maxLength":64,"title":"Lookup Id","default":""},"country":{"type":"string","maxLength":2,"title":"Country","default":""},"estimate":{"type":"boolean","title":"Estimate","default":false},"custom":{"items":{"$ref":"#/components/schemas/CustomAnswerIn"},"type":"array","maxItems":12,"title":"Custom"},"embed_key":{"type":"string","maxLength":64,"title":"Embed Key","default":""},"locale":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Locale"},"marketing_opt_in":{"type":"boolean","title":"Marketing Opt In","default":false},"website":{"type":"string","maxLength":255,"title":"Website","default":""}},"type":"object","title":"SiteFormSubmitIn"},"SiteHealthEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"address":{"type":"string","title":"Address"},"address_kind":{"type":"string","title":"Address Kind"},"status":{"type":"string","title":"Status"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status"},"dns_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dns Ok"},"ssl_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ssl Ok"},"ssl_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ssl Expires At"},"apx_hit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Apx Hit"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"consecutive_failures":{"type":"integer","title":"Consecutive Failures"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"last_ok_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Ok At"},"workspace_name":{"type":"string","title":"Workspace Name"},"workspace_slug":{"type":"string","title":"Workspace Slug"}},"type":"object","required":["id","tuner_workspace_id","address","address_kind","status","http_status","dns_ok","ssl_ok","ssl_expires_at","apx_hit","error_message","consecutive_failures","last_checked_at","last_ok_at","workspace_name","workspace_slug"],"title":"SiteHealthEntry","description":"One row plus the workspace name/slug — what the admin health page\nrenders (it has no other reason to look up a workspace by id itself)."},"SiteMediaConfirm":{"properties":{"key":{"type":"string","title":"Key"},"crops":{"type":"boolean","title":"Crops","default":false}},"type":"object","required":["key"],"title":"SiteMediaConfirm","description":"Confirm a finished site-media upload; the server publishes it.\n\n``crops`` also writes 16:9, 4:3 and 1:1 centre crops (blog covers)."},"SiteMediaImport":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":12,"title":"Url"},"crops":{"type":"boolean","title":"Crops","default":false},"video":{"type":"boolean","title":"Video","default":false}},"type":"object","required":["url"],"title":"SiteMediaImport","description":"Import an image (or, with ``video``, an MP4/WebM video too) from a public\nhttps URL into the site media."},"SiteMediaResult":{"properties":{"public_url":{"type":"string","title":"Public Url"},"kind":{"type":"string","enum":["image","video","file"],"title":"Kind","default":"image"}},"type":"object","required":["public_url"],"title":"SiteMediaResult","description":"The durable public URL of a confirmed (world-readable) site image, video or\nPDF (``file``)."},"SiteMediaUploadRequest":{"properties":{"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["content_type"],"title":"SiteMediaUploadRequest","description":"Ask for a presigned PUT to upload a public site image or video (website builder)."},"SiteMediaUploadResult":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"key":{"type":"string","title":"Key"}},"type":"object","required":["upload_url","key"],"title":"SiteMediaUploadResult","description":"A presigned PUT URL + the storage key to echo back on confirm."},"SitePageContent":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"blocks":{"additionalProperties":true,"type":"object","title":"Blocks"},"seo":{"additionalProperties":true,"type":"object","title":"Seo"}},"type":"object","required":["slug","title","blocks","seo"],"title":"SitePageContent","description":"The resolved page a public request renders: its slug, title, Puck document\nand SEO metadata."},"SiteUpdate":{"properties":{"footer":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Footer"},"header":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Header"},"theme":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Theme"},"page":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Page"},"pages":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Pages"},"analytics":{"anyOf":[{"$ref":"#/components/schemas/SiteAnalytics"},{"type":"null"}]},"code_injection":{"anyOf":[{"$ref":"#/components/schemas/SiteCodeInjection"},{"type":"null"}]},"consent":{"anyOf":[{"$ref":"#/components/schemas/SiteConsent"},{"type":"null"}]},"variables":{"anyOf":[{"items":{"$ref":"#/components/schemas/SiteVariable"},"type":"array"},{"type":"null"}],"title":"Variables"}},"type":"object","title":"SiteUpdate","description":"PATCH the tuner's multi-page website builder DRAFT — every op optional.\n\nWrites only the working draft (``branding.site.pages``/``footer``); it never\ntouches the live site. Publishing is a separate step (``publish_site``) that\nsnapshots the draft into ``published_pages``/``published_footer``.\n\nFour independent operations, any subset supplied at once:\n- ``footer`` deep-merges into the draft ``footer``.\n- ``header`` deep-merges into the draft ``header`` (nav override, locale\n  switcher / theme toggle flags, CTA mode — site-wide chrome config).\n- ``page`` upserts ONE page by ``slug`` — its ``title``/``blocks``/``seo``\n  deep-merge into the matching draft page, or append a new page if none matches.\n- ``pages`` replaces the whole draft pages array wholesale (seeding / reordering)."},"SiteVariable":{"properties":{"key":{"type":"string","maxLength":40,"minLength":1,"title":"Key"},"value":{"type":"string","maxLength":500,"title":"Value","default":""},"values_by_locale":{"additionalProperties":{"type":"string"},"type":"object","title":"Values By Locale"}},"type":"object","required":["key"],"title":"SiteVariable","description":"One custom site variable: ``{key}`` in page text renders as its value.\n\n``values_by_locale`` overrides ``value`` for a page in that language. Keys\nmay not shadow the built-in company tokens or the ICU arguments blocks\nformat themselves (see ``services.workspace.site_variables``)."},"SiteVariablesStatus":{"properties":{"builtins":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Builtins"},"unresolved":{"items":{"$ref":"#/components/schemas/UnresolvedTokens"},"type":"array","title":"Unresolved"}},"type":"object","required":["builtins","unresolved"],"title":"SiteVariablesStatus","description":"What the settings card and the publish check need about site variables.\n\n``builtins`` maps every built-in company token to its current value from\nCompany Profile (None when that field is empty). ``unresolved`` lists draft\npages whose ``{tokens}`` neither a built-in nor a custom variable fills."},"SitemapEntry":{"properties":{"path":{"type":"string","title":"Path"},"kind":{"type":"string","enum":["index","manufacturer","family","ecu","tool","quality"],"title":"Kind"},"lastmod":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastmod"}},"type":"object","required":["path","kind"],"title":"SitemapEntry"},"SitemapRead":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/SitemapEntry"},"type":"array","title":"Entries"}},"type":"object","required":["entries"],"title":"SitemapRead"},"SkippedRule":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"SkippedRule"},"SlaJob":{"properties":{"id":{"type":"string","title":"Id"},"vehicle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Label"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"age_seconds":{"type":"integer","title":"Age Seconds"},"over_sla":{"type":"boolean","title":"Over Sla"}},"type":"object","required":["id","vehicle_label","priority","age_seconds","over_sla"],"title":"SlaJob","description":"An in-progress job with its age and whether it breached the SLA."},"SlotList":{"properties":{"event_type":{"type":"string","title":"Event Type"},"name":{"type":"string","title":"Name"},"location_kind":{"type":"string","title":"Location Kind"},"timezone":{"type":"string","title":"Timezone"},"workspace_timezone":{"type":"string","title":"Workspace Timezone"},"slots":{"items":{"$ref":"#/components/schemas/PublicSlot"},"type":"array","title":"Slots"},"bookable_until":{"type":"string","format":"date-time","title":"Bookable Until"},"booking_mode":{"type":"string","title":"Booking Mode","default":"appointment"},"work_estimate_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Estimate Minutes"},"intake_fields":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Intake Fields","default":[]}},"type":"object","required":["event_type","name","location_kind","timezone","workspace_timezone","slots","bookable_until"],"title":"SlotList","description":"Offered slots, with the zone their datetimes are expressed in named outright.\n\n``timezone`` is what ``starts_at`` below is rendered in — the\ncaller's ``tz`` when they named one, otherwise the workspace's own.\n``workspace_timezone`` is always the workshop's, so a visitor booking from\nanother country can be told whose morning they are taking.\n\nAn empty ``slots`` list is an answer, not an error: a workspace that has not\nenabled its opening hours offers nothing."},"SlotOut":{"properties":{"slot_ref":{"type":"string","title":"Slot Ref"},"starts_at":{"type":"string","title":"Starts At"},"event_type":{"type":"string","title":"Event Type"}},"type":"object","required":["slot_ref","starts_at","event_type"],"title":"SlotOut","description":"One offered start — the only time the agent may say out loud.\n\nNo end and no length, on purpose: the type's duration sizes the slot on\nthe calendar, and a customer told how long it takes hears a promise about\nwhen the work is done that the workshop cannot make."},"SlotRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"help":{"type":"string","title":"Help"},"placeholders":{"items":{"type":"string"},"type":"array","title":"Placeholders"},"multiline":{"type":"boolean","title":"Multiline"},"kind":{"type":"string","title":"Kind","default":"text"},"target":{"type":"string","title":"Target","default":""},"removable":{"type":"boolean","title":"Removable","default":false},"default_body":{"type":"string","title":"Default Body"},"default_template":{"type":"string","title":"Default Template","default":""},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["key","label","help","placeholders","multiline","default_body"],"title":"SlotRead","description":"One rewritable string, with what our copy says and what the tuner wrote."},"SourcedLineRead":{"properties":{"shop_quote_id":{"type":"string","format":"uuid","title":"Shop Quote Id"},"source":{"type":"string","title":"Source"},"part_number":{"type":"string","title":"Part Number"},"qty":{"type":"integer","title":"Qty"},"product":{"$ref":"#/components/schemas/PublicProduct"},"listing_sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Sku"},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"seller":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seller"},"match_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Type"},"destination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"},"quoted_at":{"type":"string","format":"date-time","title":"Quoted At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"breakdown":{"$ref":"#/components/schemas/SourcedPriceBreakdown"},"options":{"items":{"$ref":"#/components/schemas/SourcedOptionLine"},"type":"array","title":"Options"},"line_net_cents":{"type":"integer","title":"Line Net Cents"},"vat_rate_bps":{"type":"integer","title":"Vat Rate Bps"},"line_vat_cents":{"type":"integer","title":"Line Vat Cents"},"line_gross_cents":{"type":"integer","title":"Line Gross Cents"},"checklist":{"$ref":"#/components/schemas/PurchaseChecklist"}},"type":"object","required":["shop_quote_id","source","part_number","qty","product","quoted_at","expires_at","breakdown","line_net_cents","vat_rate_bps","line_vat_cents","line_gross_cents","checklist"],"title":"SourcedLineRead","description":"One part sold on an order, with everything the owner needs to buy it:\nthe product as the customer saw it, the listing behind it and the price\nworking. Owner and admins only — never on a buyer's page, email or invoice."},"SourcedOptionLine":{"properties":{"label":{"type":"string","title":"Label"},"qty":{"type":"integer","title":"Qty"},"unit_net_cents":{"type":"integer","title":"Unit Net Cents"}},"type":"object","required":["label","qty","unit_net_cents"],"title":"SourcedOptionLine","description":"An add-on bought with the part on this order."},"SourcedPriceBreakdown":{"properties":{"source_price_cents":{"type":"integer","title":"Source Price Cents"},"vat_basis":{"type":"string","title":"Vat Basis"},"vat_assumed":{"type":"boolean","title":"Vat Assumed","default":false},"vat_rate_bps":{"type":"integer","title":"Vat Rate Bps","default":0},"source_net_cents":{"type":"integer","title":"Source Net Cents"},"delivery_cents":{"type":"integer","title":"Delivery Cents","default":0},"delivery_estimated":{"type":"boolean","title":"Delivery Estimated","default":false},"service_fee_cents":{"type":"integer","title":"Service Fee Cents","default":0},"service_fee_estimated":{"type":"boolean","title":"Service Fee Estimated","default":false},"cost_cents":{"type":"integer","title":"Cost Cents"},"margin_cents":{"type":"integer","title":"Margin Cents"},"unit_net_cents":{"type":"integer","title":"Unit Net Cents"}},"type":"object","required":["source_price_cents","vat_basis","source_net_cents","cost_cents","margin_cents","unit_net_cents"],"title":"SourcedPriceBreakdown","description":"How a quote's unit price was built (owner-only, cents ex VAT unless\nnamed otherwise). ``source_price_cents`` is the listing's price as shown."},"SplitChangeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"changed_by_name":{"type":"string","title":"Changed By Name"},"from_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Bps"},"to_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Bps"}},"type":"object","required":["id","changed_at","changed_by_name"],"title":"SplitChangeRead"},"SplitPreview":{"properties":{"order_value_cents":{"type":"integer","title":"Order Value Cents"},"platform_fee_cents":{"type":"integer","title":"Platform Fee Cents"},"payout_split_bps":{"type":"integer","title":"Payout Split Bps"},"a_cents":{"type":"integer","title":"A Cents"},"b_cents":{"type":"integer","title":"B Cents"}},"type":"object","required":["order_value_cents","platform_fee_cents","payout_split_bps","a_cents","b_cents"],"title":"SplitPreview"},"SplitUpdate":{"properties":{"payout_split_bps":{"type":"integer","title":"Payout Split Bps"}},"type":"object","required":["payout_split_bps"],"title":"SplitUpdate"},"SpreadRefundLeg":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"refunded_cents":{"type":"integer","title":"Refunded Cents"}},"type":"object","required":["order_id","refunded_cents"],"title":"SpreadRefundLeg","description":"One order a spread refund drew on, and how much went back on it."},"SpreadRefundRequest":{"properties":{"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["dealer_org_id","amount_cents"],"title":"SpreadRefundRequest","description":"Refund a cash amount spread across a dealer's refundable orders (not tied\nto one order). ``amount_cents`` is capped at what's actually refundable."},"SpreadRefundResult":{"properties":{"refunded_cents":{"type":"integer","title":"Refunded Cents"},"orders":{"items":{"$ref":"#/components/schemas/SpreadRefundLeg"},"type":"array","title":"Orders"},"stopped_reason":{"anyOf":[{"type":"string","const":"refund_funds_unavailable"},{"type":"null"}],"title":"Stopped Reason"},"stopped_order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stopped Order Id"}},"type":"object","required":["refunded_cents","orders"],"title":"SpreadRefundResult","description":"What a spread refund moved, and where it stopped if it could not finish.\n\n``stopped_reason`` is set when an order's refund could not be funded: the\nwalk stops there, and the orders in ``orders`` are refunded and booked."},"StaffAnswerReviewIn":{"properties":{"status":{"type":"string","title":"Status"},"edited_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Text"}},"type":"object","required":["status"],"title":"StaffAnswerReviewIn"},"StaffAnswerSearchIn":{"properties":{"query":{"type":"string","title":"Query"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},"type":"object","required":["query"],"title":"StaffAnswerSearchIn"},"StaffAnswersSettingsIn":{"properties":{"mode":{"anyOf":[{"type":"string","enum":["off","suggest","auto"]},{"type":"null"}],"title":"Mode"},"half_life_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Half Life Days"},"semantic_weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Semantic Weight"},"stale_after_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stale After Days"},"max_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Results"}},"type":"object","title":"StaffAnswersSettingsIn"},"StaffConflictIn":{"properties":{"resolution":{"type":"string","title":"Resolution"}},"type":"object","required":["resolution"],"title":"StaffConflictIn"},"StaffQuestionAnswerIn":{"properties":{"answer":{"type":"string","minLength":1,"title":"Answer"},"promote":{"type":"boolean","title":"Promote","default":false}},"type":"object","required":["answer"],"title":"StaffQuestionAnswerIn","description":"The team's answer to one of the assistant's questions.\n\n``promote`` asks the platform to also learn the answer as a general one,\nreusable for other customers (handoff doc A3); a platform that does not\nread it yet ignores it."},"StageAdminList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/StageAdminRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"StageAdminList","description":"Paged stage registry result."},"StageAdminRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"catalogue_node_id":{"type":"string","format":"uuid","title":"Catalogue Node Id"},"vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle"},"source":{"type":"string","title":"Source"},"stage":{"type":"string","title":"Stage"},"power_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Before"},"power_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power After"},"torque_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Before"},"torque_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque After"},"price_credits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Credits"},"active":{"type":"boolean","title":"Active"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","required":["id","catalogue_node_id","source","stage","active"],"title":"StageAdminRead","description":"One tuning-stage row for the admin registry, with a vehicle label."},"StageCreate":{"properties":{"catalogue_node_id":{"type":"string","format":"uuid","title":"Catalogue Node Id"},"stage":{"type":"string","maxLength":64,"minLength":1,"title":"Stage"},"power_before":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Power Before"},"power_after":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Power After"},"torque_before":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Torque Before"},"torque_after":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Torque After"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Price Credits"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["catalogue_node_id","stage"],"title":"StageCreate","description":"Create a tuning stage for an engine node (admin/manual source)."},"StagePriceBulk":{"properties":{"stage":{"type":"string","maxLength":64,"minLength":1,"title":"Stage"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Price Credits"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["stage","price_credits"],"title":"StagePriceBulk","description":"Set the price for every stage with a given label (optionally one source)."},"StageUpdate":{"properties":{"stage":{"type":"string","maxLength":64,"minLength":1,"title":"Stage"},"power_before":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Power Before"},"power_after":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Power After"},"torque_before":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Torque Before"},"torque_after":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Torque After"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Price Credits"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["stage"],"title":"StageUpdate","description":"Edit an existing tuning stage (node + source are fixed)."},"StartPurchaseRequest":{"properties":{"pack_id":{"type":"string","format":"uuid","title":"Pack Id"},"method":{"type":"string","title":"Method","default":"card"},"return_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"},"provider":{"anyOf":[{"type":"string","enum":["stripe","paypal"]},{"type":"null"}],"title":"Provider"}},"type":"object","required":["pack_id"],"title":"StartPurchaseRequest"},"StartWhatsAppConversationIn":{"properties":{"template_name":{"type":"string","maxLength":64,"minLength":1,"title":"Template Name"},"template_variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Template Variables"},"phone_e164":{"type":"string","maxLength":20,"minLength":6,"title":"Phone E164"},"first_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Last Name"},"consent_confirmed":{"type":"boolean","title":"Consent Confirmed","description":"The tuner has confirmed this customer may be contacted about this on WhatsApp before this call is made."}},"type":"object","required":["template_name","phone_e164","consent_confirmed"],"title":"StartWhatsAppConversationIn"},"StartWhatsAppConversationOut":{"properties":{"thread_id":{"type":"string","format":"uuid","title":"Thread Id"},"submission_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Submission Id"}},"type":"object","required":["thread_id"],"title":"StartWhatsAppConversationOut"},"Stat":{"properties":{"value":{"type":"number","title":"Value"},"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},"type":"object","required":["value","source"],"title":"Stat"},"StatementPayResult":{"properties":{"status":{"type":"string","enum":["ready","paid","processing","unavailable"],"title":"Status"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"}},"type":"object","required":["status"],"title":"StatementPayResult"},"StatusCount":{"properties":{"status":{"type":"string","title":"Status"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status","count"],"title":"StatusCount","description":"Generic status -> count pair."},"StatusSlice":{"properties":{"status":{"type":"string","title":"Status"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status","count"],"title":"StatusSlice","description":"Order count for one status."},"StepUpResendRequest":{"properties":{"challenge_id":{"type":"string","title":"Challenge Id"}},"type":"object","required":["challenge_id"],"title":"StepUpResendRequest"},"StepUpVerifyRequest":{"properties":{"challenge_id":{"type":"string","title":"Challenge Id"},"code":{"type":"string","title":"Code"}},"type":"object","required":["challenge_id","code"],"title":"StepUpVerifyRequest"},"StockAdjustRequest":{"properties":{"delta":{"type":"integer","title":"Delta"}},"type":"object","required":["delta"],"title":"StockAdjustRequest","description":"Admin manual stock correction (delta may be negative)."},"StorefrontSlice":{"properties":{"new_orders":{"type":"integer","title":"New Orders"},"in_progress":{"type":"integer","title":"In Progress"},"revision_requested":{"type":"integer","title":"Revision Requested"},"escalated":{"type":"integer","title":"Escalated"},"orders_this_month":{"type":"integer","title":"Orders This Month"},"completed_this_month":{"type":"integer","title":"Completed This Month"},"active_dealers":{"type":"integer","title":"Active Dealers"},"revenue_this_month":{"type":"string","title":"Revenue This Month"},"pending_payout":{"type":"string","title":"Pending Payout"}},"type":"object","required":["new_orders","in_progress","revision_requested","escalated","orders_this_month","completed_this_month","active_dealers","revenue_this_month","pending_payout"],"title":"StorefrontSlice"},"SubjectExport":{"properties":{"generated_for_email":{"type":"string","title":"Generated For Email"},"user":{"additionalProperties":true,"type":"object","title":"User"},"organisation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Organisation"},"orders":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Orders","default":[]},"uploads":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Uploads","default":[]},"tickets":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tickets","default":[]},"invoices":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Invoices","default":[]},"notifications":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Notifications","default":[]},"not_included":{"items":{"type":"string"},"type":"array","title":"Not Included","default":[]}},"type":"object","required":["generated_for_email","user"],"title":"SubjectExport","description":"A read-only assembly of a subject's personal data across domains, for a\nsubject-access request. ``not_included`` names the domains this export version\ndoes not yet cover, so the omission is explicit rather than silent."},"SubjectSummary":{"properties":{"found":{"type":"boolean","title":"Found"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"organisation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","default":{}}},"type":"object","required":["found"],"title":"SubjectSummary","description":"The footprint of a data subject, found by email: their identity, their\norganisation, and how many records exist in each domain — so an operator can\nsee what a subject-access request will return before exporting it."},"SubscribeIn":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"SubscribeIn"},"SubscribeOut":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id"},"status":{"type":"string","title":"Status"},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url"}},"type":"object","required":["subscription_id","status"],"title":"SubscribeOut"},"SubscriptionCreate":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"SubscriptionCreate"},"SubscriptionDiscountWrite":{"properties":{"bps":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Bps"},"months":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Months"}},"type":"object","title":"SubscriptionDiscountWrite","description":"Set or clear a tuner's SaaS discount (admin). ``bps=None`` clears it."},"SubscriptionSetupComplete":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"SubscriptionSetupComplete","description":"The hosted setup session to reconcile, as returned in the success URL."},"SubscriptionSetupCreate":{"properties":{"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"}},"type":"object","required":["success_url","cancel_url"],"title":"SubscriptionSetupCreate"},"SubscriptionSlice":{"properties":{"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"active":{"type":"boolean","title":"Active"},"trial_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Plan"},"trial_ends":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Ends"},"effective_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Plan"}},"type":"object","required":["plan","status","active","trial_plan","trial_ends","effective_plan"],"title":"SubscriptionSlice","description":"Plan state without the Stripe subscription id — the id is an exclusion-\nlist field and nothing the assistant says ever needs it."},"SubscriptionStartResponse":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id"},"status":{"type":"string","title":"Status"},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url"}},"type":"object","required":["subscription_id","status"],"title":"SubscriptionStartResponse"},"SubscriptionStatusResponse":{"properties":{"subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"active":{"type":"boolean","title":"Active"},"payment_method":{"anyOf":[{"$ref":"#/components/schemas/PaymentMethodRead"},{"type":"null"}]},"billing_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Email"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"discount_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Bps"},"discount_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discount Until"},"trial_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Plan"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"effective_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Plan"},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url"},"currency":{"type":"string","title":"Currency","default":"EUR"}},"type":"object","required":["active"],"title":"SubscriptionStatusResponse"},"SupportedConnectCountries":{"properties":{"countries":{"items":{"type":"string"},"type":"array","title":"Countries"}},"type":"object","required":["countries"],"title":"SupportedConnectCountries"},"SuppressionInfo":{"properties":{"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"lift_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lift Requested At"}},"type":"object","required":["reason","created_at","lift_requested_at"],"title":"SuppressionInfo"},"SuppressionPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SuppressionRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"requested":{"type":"integer","title":"Requested"}},"type":"object","required":["items","total","requested"],"title":"SuppressionPage"},"SuppressionRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_problem_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Problem Detail"},"lift_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lift Requested At"},"lift_requested_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lift Requested By Name"},"lift_request_workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lift Request Workspace Name"},"lift_request_ticket_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lift Request Ticket Id"}},"type":"object","required":["id","email","reason","created_at","last_problem_detail","lift_requested_at","lift_requested_by_name","lift_request_workspace_name","lift_request_ticket_id"],"title":"SuppressionRow"},"SyncArticleFull":{"properties":{"article_id":{"type":"string","title":"Article Id"},"title":{"type":"string","title":"Title"},"locale":{"type":"string","title":"Locale"},"audience":{"anyOf":[{"type":"string","enum":["dealer","tuner"]},{"type":"null"}],"title":"Audience"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"updated":{"type":"string","title":"Updated"},"content_hash":{"type":"string","title":"Content Hash"},"body":{"type":"string","title":"Body"}},"type":"object","required":["article_id","title","locale","updated","content_hash","body"],"title":"SyncArticleFull"},"SyncArticleList":{"properties":{"articles":{"items":{"$ref":"#/components/schemas/SyncArticleMeta"},"type":"array","title":"Articles"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["articles"],"title":"SyncArticleList"},"SyncArticleMeta":{"properties":{"article_id":{"type":"string","title":"Article Id"},"title":{"type":"string","title":"Title"},"locale":{"type":"string","title":"Locale"},"audience":{"anyOf":[{"type":"string","enum":["dealer","tuner"]},{"type":"null"}],"title":"Audience"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"updated":{"type":"string","title":"Updated"},"content_hash":{"type":"string","title":"Content Hash"}},"type":"object","required":["article_id","title","locale","updated","content_hash"],"title":"SyncArticleMeta","description":"One catalogue row for the mirror's hash diff (SAAS_HELP_SYNC_ENDPOINTS).\n\n``article_id`` is the bare slug for ``en`` and ``slug.{locale}`` for\nvariants — their convention, so each locale document mirrors under its own\nidentity. ``audience`` speaks their vocabulary: ``both`` flattens to None."},"SyncChange":{"properties":{"article_id":{"type":"string","title":"Article Id"},"action":{"type":"string","enum":["upserted","deleted"],"title":"Action"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"source":{"type":"string","enum":["corpus","admin"],"title":"Source"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["article_id","action","source","occurred_at"],"title":"SyncChange","description":"One journal entry, in mirror terms (upserted into / deleted from the\npublic set). ``occurred_at`` is the paging key: pass the last one you\nprocessed back as ``since``."},"SyncChangesOut":{"properties":{"changes":{"items":{"$ref":"#/components/schemas/SyncChange"},"type":"array","title":"Changes"}},"type":"object","required":["changes"],"title":"SyncChangesOut"},"TeamInviteRequest":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"team_role":{"type":"string","enum":["admin","member"],"title":"Team Role","default":"member"}},"type":"object","required":["email"],"title":"TeamInviteRequest","description":"Invite a teammate into the tuner org (seat-cap enforced)."},"TeamMemberIn":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"role":{"type":"string","enum":["staff","client_admin"],"title":"Role","default":"staff"}},"type":"object","required":["email"],"title":"TeamMemberIn","description":"A colleague's login into the agent platform's inbox. The temporary\npassword is generated upstream and comes back exactly once."},"TeamMemberPatchIn":{"properties":{"role":{"anyOf":[{"type":"string","enum":["staff","client_admin"]},{"type":"null"}],"title":"Role"},"answer_review_mode":{"anyOf":[{"type":"string","enum":["inherit","auto","manual"]},{"type":"null"}],"title":"Answer Review Mode"},"disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disabled"}},"type":"object","title":"TeamMemberPatchIn","description":"Send only what changes; an omitted field is left as it is."},"TeamMemberRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"team_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Role"},"status":{"type":"string","enum":["active","pending"],"title":"Status"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"}},"type":"object","required":["id","email","status"],"title":"TeamMemberRead","description":"One team member for the CRM Team page: identity, role, and lifecycle."},"TeamRead":{"properties":{"members":{"items":{"$ref":"#/components/schemas/TeamMemberRead"},"type":"array","title":"Members"},"seats_used":{"type":"integer","title":"Seats Used"},"seats_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Limit"}},"type":"object","required":["members","seats_used"],"title":"TeamRead","description":"The org's team plus seat usage vs. the plan cap (``None`` = unlimited)."},"TeamRoleUpdate":{"properties":{"team_role":{"type":"string","enum":["admin","member"],"title":"Team Role"}},"type":"object","required":["team_role"],"title":"TeamRoleUpdate","description":"Change a teammate's intra-org role (owner-only; owner is transfer-only)."},"TemplateAITranslationIn":{"properties":{"language":{"type":"string","maxLength":8,"minLength":2,"title":"Language"}},"type":"object","required":["language"],"title":"TemplateAITranslationIn","description":"Ask the platform to translate a topic into one more language."},"TemplateButtonIn":{"properties":{"type":{"type":"string","enum":["QUICK_REPLY","URL","PHONE_NUMBER"],"title":"Type"},"text":{"type":"string","maxLength":25,"minLength":1,"title":"Text"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["type","text"],"title":"TemplateButtonIn","description":"One WhatsApp button: a quick reply, a link or a phone number."},"TemplateComposeIn":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"},"body":{"type":"string","minLength":1,"title":"Body"},"language":{"type":"string","title":"Language","default":"en"},"category":{"type":"string","enum":["utility","marketing","authentication"],"title":"Category","default":"utility"},"header_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Text"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"buttons":{"items":{"$ref":"#/components/schemas/TemplateButtonIn"},"type":"array","title":"Buttons"}},"type":"object","required":["name","body"],"title":"TemplateComposeIn","description":"A new message topic, written in one language; the platform translates\nit into the other kept languages as drafts to approve."},"TemplateLanguagesIn":{"properties":{"languages":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Languages"},"primary":{"type":"string","maxLength":8,"minLength":2,"title":"Primary"}},"type":"object","required":["languages","primary"],"title":"TemplateLanguagesIn","description":"The languages every message is kept in; ``primary`` is written first."},"TemplateRead":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version"},"description":{"type":"string","title":"Description","default":""},"sizes":{"additionalProperties":{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},"propertyNames":{"enum":["inline","og"]},"type":"object","title":"Sizes"},"props_schema":{"additionalProperties":true,"type":"object","title":"Props Schema"},"example":{"additionalProperties":true,"type":"object","title":"Example"},"usage":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Usage","default":""}},"type":"object","required":["name","version","sizes","props_schema"],"title":"TemplateRead","description":"One template's contract, as ``design/templates/<name>/template.json`` states it."},"TemplateStandardIn":{"properties":{"kind":{"type":"string","maxLength":64,"minLength":1,"title":"Kind"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["kind"],"title":"TemplateStandardIn","description":"Materialise the workspace's own copy of a standard message kind."},"TemplateTranslationIn":{"properties":{"language":{"type":"string","maxLength":8,"minLength":2,"title":"Language"},"body":{"type":"string","minLength":1,"title":"Body"},"header_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Text"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"buttons":{"items":{"$ref":"#/components/schemas/TemplateButtonIn"},"type":"array","title":"Buttons"}},"type":"object","required":["language","body"],"title":"TemplateTranslationIn","description":"A language written by hand for an existing topic."},"TemplateWordingIn":{"properties":{"body":{"type":"string","title":"Body","default":""},"language":{"type":"string","title":"Language","default":"en"},"header_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Text"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"buttons":{"items":{"$ref":"#/components/schemas/TemplateButtonIn"},"type":"array","title":"Buttons"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"TemplateWordingIn","description":"A message as the builder has it, unsaved — what validate and preview read."},"TemplateWordingPatchIn":{"properties":{"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"header_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Text"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"buttons":{"anyOf":[{"items":{"$ref":"#/components/schemas/TemplateButtonIn"},"type":"array"},{"type":"null"}],"title":"Buttons"},"category":{"anyOf":[{"type":"string","enum":["utility","marketing","authentication"]},{"type":"null"}],"title":"Category"}},"type":"object","title":"TemplateWordingPatchIn","description":"Only the fields sent are changed; ``null`` clears a header or footer."},"TestSendRequest":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"}},"type":"object","title":"TestSendRequest","description":"Optional test-send body: override the recipient (defaults to caller)."},"ThreadLinkIn":{"properties":{"organisation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organisation Id"}},"type":"object","title":"ThreadLinkIn"},"ThreadMessage":{"properties":{"direction":{"type":"string","enum":["inbound","outbound"],"title":"Direction"},"author":{"type":"string","enum":["customer","assistant","owner"],"title":"Author"},"body":{"type":"string","title":"Body"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"}},"type":"object","required":["direction","author","body","at"],"title":"ThreadMessage"},"ThroughputPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"created":{"type":"integer","title":"Created"},"delivered":{"type":"integer","title":"Delivered"}},"type":"object","required":["bucket","created","delivered"],"title":"ThroughputPoint","description":"Orders created vs delivered on a single day."},"TicketAssignee":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id"],"title":"TicketAssignee","description":"The support agent currently owning the ticket."},"TicketCreate":{"properties":{"subject":{"type":"string","title":"Subject"},"category":{"type":"string","enum":["order","refund","billing","account","technical","other"],"title":"Category","default":"order"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"urgency":{"type":"string","enum":["low","normal","high","critical"],"title":"Urgency","default":"normal"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["subject"],"title":"TicketCreate"},"TicketDealer":{"properties":{"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"organisation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"opener_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opener Name"},"opener_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opener Email"},"opener_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opener Role"}},"type":"object","required":["organisation_id"],"title":"TicketDealer","description":"Who opened the ticket — resolved org + opener for the admin view."},"TicketDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"category":{"type":"string","title":"Category"},"subject":{"type":"string","title":"Subject"},"status":{"type":"string","title":"Status"},"urgency":{"type":"string","title":"Urgency"},"opened_by":{"type":"string","format":"uuid","title":"Opened By"},"assigned_to":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/TicketMessageRead"},"type":"array","title":"Messages"}},"type":"object","required":["id","organisation_id","order_id","category","subject","status","urgency","opened_by","assigned_to","resolved_at","last_activity_at","created_at","messages"],"title":"TicketDetail"},"TicketMessageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"body":{"type":"string","title":"Body"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentMeta"},"type":"array","title":"Attachments"},"internal":{"type":"boolean","title":"Internal"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","author_id","body","attachments","internal","created_at"],"title":"TicketMessageRead"},"TicketOrderSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"selected_stage":{"type":"string","title":"Selected Stage"},"price_credits":{"type":"number","title":"Price Credits"}},"type":"object","required":["id","status","selected_stage","price_credits"],"title":"TicketOrderSummary","description":"The linked order at a glance (cross-org; admin-only)."},"TicketRequest":{"properties":{"target":{"type":"string","enum":["agents","manage"],"title":"Target"},"code":{"anyOf":[{"type":"string","pattern":"^\\d{6}$"},{"type":"null"}],"title":"Code"}},"type":"object","required":["target"],"title":"TicketRequest","description":"``code`` is a current authenticator-app code, sent when the admin's last\nverification is too old: it verifies them and opens the dashboard at once."},"TicketRow":{"properties":{"subject":{"type":"string","title":"Subject"},"status":{"type":"string","title":"Status"},"opened":{"type":"string","title":"Opened"}},"type":"object","required":["subject","status","opened"],"title":"TicketRow"},"TicketStats":{"properties":{"by_status":{"items":{"$ref":"#/components/schemas/StatusCount"},"type":"array","title":"By Status"},"by_urgency":{"items":{"$ref":"#/components/schemas/UrgencyCount"},"type":"array","title":"By Urgency"},"avg_resolution_seconds":{"type":"number","title":"Avg Resolution Seconds"}},"type":"object","required":["by_status","by_urgency","avg_resolution_seconds"],"title":"TicketStats","description":"Ticket distribution by status/urgency plus mean resolution time."},"ToolCell":{"properties":{"method":{"type":"string","enum":["obd","bench","boot"],"title":"Method"},"status":{"type":"string","enum":["files","supported","none"],"title":"Status"},"files":{"type":"integer","title":"Files"}},"type":"object","required":["method","status","files"],"title":"ToolCell","description":"One read method of one tool for a scope.\n\n``files``: we have counted reads this way for the scope. ``supported``: the\ntool offers the method, not yet confirmed for this scope. ``none``: the tool\ndoes not offer it."},"ToolCreate":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"subscription_expiry":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscription Expiry"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name","kind"],"title":"ToolCreate"},"ToolFamilyRow":{"properties":{"family":{"$ref":"#/components/schemas/FamilyRef"},"listed_engines":{"type":"integer","title":"Listed Engines"},"cells":{"items":{"$ref":"#/components/schemas/ToolCell"},"type":"array","title":"Cells"},"files":{"$ref":"#/components/schemas/Stat"},"ftr_pct":{"$ref":"#/components/schemas/Stat"}},"type":"object","required":["family","listed_engines","cells","files","ftr_pct"],"title":"ToolFamilyRow"},"ToolPage":{"properties":{"tool":{"$ref":"#/components/schemas/ToolRef"},"indexed":{"type":"boolean","title":"Indexed"},"stats":{"$ref":"#/components/schemas/ScopeStats"},"families":{"items":{"$ref":"#/components/schemas/ToolFamilyRow"},"type":"array","title":"Families"},"ftr_by_family":{"$ref":"#/components/schemas/RankedChart"},"files_per_month":{"$ref":"#/components/schemas/MonthSeries"},"ecus":{"items":{"$ref":"#/components/schemas/EcuRef"},"type":"array","title":"Ecus"},"others":{"items":{"$ref":"#/components/schemas/ToolRef"},"type":"array","title":"Others"},"curve":{"anyOf":[{"$ref":"#/components/schemas/DynoCurve"},{"type":"null"}]}},"type":"object","required":["tool","indexed","stats","families","ftr_by_family","files_per_month","ecus","others"],"title":"ToolPage"},"ToolRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"subscription_expiry":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscription Expiry"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","organisation_id","name","kind","subscription_expiry","notes"],"title":"ToolRead"},"ToolRef":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"maker":{"type":"string","title":"Maker"},"path":{"type":"string","title":"Path"},"designed":{"type":"boolean","title":"Designed"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"methods":{"items":{"type":"string","enum":["obd","bench","boot"]},"type":"array","title":"Methods"}},"type":"object","required":["slug","name","maker","path","designed","logo_url","methods"],"title":"ToolRef"},"ToolSupport":{"properties":{"tool":{"type":"string","title":"Tool"},"name":{"type":"string","title":"Name"},"maker":{"type":"string","title":"Maker"},"path":{"type":"string","title":"Path"},"listed":{"type":"boolean","title":"Listed"},"cells":{"items":{"$ref":"#/components/schemas/ToolCell"},"type":"array","title":"Cells"}},"type":"object","required":["tool","name","maker","path","listed","cells"],"title":"ToolSupport","description":"A designed tool's read routes for an ECU or family.\n\n``listed`` is whether the catalogue names the tool for engines on it."},"ToolUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"subscription_expiry":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscription Expiry"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ToolUpdate"},"TotpConfirmRequest":{"properties":{"code":{"type":"string","maxLength":10,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"TotpConfirmRequest"},"TotpDisableRequest":{"properties":{"code":{"type":"string","maxLength":10,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"TotpDisableRequest"},"TotpEnrollResponse":{"properties":{"otpauth_uri":{"type":"string","title":"Otpauth Uri"}},"type":"object","required":["otpauth_uri"],"title":"TotpEnrollResponse","description":"A staged enrolment — render ``otpauth_uri`` as a QR code, then confirm."},"Touch":{"properties":{"gclid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Gclid"},"gbraid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Gbraid"},"wbraid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Wbraid"},"fbclid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbclid"},"msclkid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Msclkid"},"utm_source":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Utm Campaign"},"utm_term":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Utm Term"},"utm_content":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Utm Content"},"landing_page":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Landing Page"},"referrer":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Referrer"},"brand":{"anyOf":[{"type":"string","enum":["ttg","ttf"]},{"type":"null"}],"title":"Brand"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"}},"type":"object","title":"Touch","description":"One campaign landing: the click ids and UTMs its URL carried."},"TrendPoint":{"properties":{"month":{"type":"string","title":"Month"},"scope":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scope"},"network":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Network"}},"type":"object","required":["month","scope","network"],"title":"TrendPoint"},"TriggerEventRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"subject_kind":{"type":"string","enum":["order","enquiry","booking","invoice","customer"],"title":"Subject Kind"},"variables":{"items":{"type":"string"},"type":"array","title":"Variables"},"conditions":{"items":{"type":"string"},"type":"array","title":"Conditions"},"is_sweep":{"type":"boolean","title":"Is Sweep"}},"type":"object","required":["key","label","subject_kind","variables","conditions","is_sweep"],"title":"TriggerEventRead"},"TuneOut":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"},"gains":{"additionalProperties":{"type":"string"},"type":"object","title":"Gains"},"estimated":{"type":"boolean","title":"Estimated","default":false},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]}},"type":"object","required":["code","label"],"title":"TuneOut"},"TunerCreditTotals":{"properties":{"outstanding":{"type":"string","title":"Outstanding"},"value_cents":{"type":"integer","title":"Value Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"},"holders":{"type":"integer","title":"Holders"},"dealer_outstanding":{"type":"string","title":"Dealer Outstanding"},"partner_outstanding":{"type":"string","title":"Partner Outstanding"},"sold":{"type":"string","title":"Sold"},"used":{"type":"string","title":"Used"},"granted":{"type":"string","title":"Granted"},"by_kind":{"items":{"$ref":"#/components/schemas/CreditKindSlice"},"type":"array","title":"By Kind"}},"type":"object","required":["outstanding","value_cents","holders","dealer_outstanding","partner_outstanding","sold","used","granted","by_kind"],"title":"TunerCreditTotals","description":"The liability side of the credit ledger: prepaid credit dealers and\npartners hold with this tuner — work already paid for but not yet done.\n\n``outstanding``/``value_cents`` are point-in-time and count only kinds\nspendable on this platform (evc is listed in ``by_kind`` but excluded from\nthe headline). ``sold``/``used``/``granted`` are the requested window's\nledger flow: pack purchases, order reserves net of credit refunds, and\nmanual grants."},"TunerDashboardSummary":{"properties":{"available_jobs":{"type":"integer","title":"Available Jobs"},"in_progress":{"type":"integer","title":"In Progress"},"delivered":{"type":"integer","title":"Delivered"},"completed_this_month":{"type":"integer","title":"Completed This Month"},"avg_turnaround_seconds":{"type":"number","title":"Avg Turnaround Seconds"},"earnings_month_cents":{"type":"integer","title":"Earnings Month Cents"},"pending_payout_cents":{"type":"integer","title":"Pending Payout Cents"},"next_release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Release At"}},"type":"object","required":["available_jobs","in_progress","delivered","completed_this_month","avg_turnaround_seconds","earnings_month_cents","pending_payout_cents","next_release_at"],"title":"TunerDashboardSummary","description":"The acting tuner's headline counts, earnings and next payout release."},"TunerEarningRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"tuner_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tuner User Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"currency":{"type":"string","title":"Currency"},"order_value_cents":{"type":"integer","title":"Order Value Cents"},"tuner_share_cents":{"type":"integer","title":"Tuner Share Cents"},"status":{"type":"string","title":"Status"},"payee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payee"},"hold_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hold Until"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","order_id","tuner_user_id","organisation_id","currency","order_value_cents","tuner_share_cents","status","hold_until","created_at"],"title":"TunerEarningRead","description":"A tuner's own earning row — deliberately WITHOUT the platform's split.\n\n``platform_margin_cents`` / ``platform_cost_cents`` are the platform's\nhidden take (models/billing.py calls the margin \"HIDDEN\" for a reason) and\nmust never ride a tuner-authenticated response. Admin oversight uses\n:class:`AdminTunerEarningRead`."},"TunerLeaderRow":{"properties":{"tuner_user_id":{"type":"string","title":"Tuner User Id"},"tuner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuner Name"},"completed":{"type":"integer","title":"Completed"},"earnings_cents":{"type":"integer","title":"Earnings Cents"},"avg_turnaround_seconds":{"type":"number","title":"Avg Turnaround Seconds"}},"type":"object","required":["tuner_user_id","tuner_name","completed","earnings_cents","avg_turnaround_seconds"],"title":"TunerLeaderRow","description":"One tuner's throughput, earnings and turnaround over a window."},"TunerMethodMixRow":{"properties":{"method":{"type":"string","title":"Method"},"currency":{"type":"string","title":"Currency","default":"EUR"},"count":{"type":"integer","title":"Count"},"gross_cents":{"type":"integer","title":"Gross Cents"}},"type":"object","required":["method","count","gross_cents"],"title":"TunerMethodMixRow","description":"A tuner's own sales volume per payment method — no economics.\n\nThe margin/fee columns are the PLATFORM's numbers (its hidden per-charge\ntake and Stripe's real cost) and must never ride a tuner response; the\nadmin monitoring card uses :class:`MethodMixRow`."},"TunerRefundRequest":{"properties":{"reason":{"type":"string","title":"Reason"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"}},"type":"object","required":["reason"],"title":"TunerRefundRequest"},"TunerStatusOut":{"properties":{"open_now":{"type":"boolean","title":"Open Now"},"hours_today":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hours Today"},"next_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Open"},"accepting_work":{"type":"boolean","title":"Accepting Work","default":true},"turnaround":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnaround"}},"type":"object","required":["open_now"],"title":"TunerStatusOut"},"TunerStorefrontSummary":{"properties":{"currency":{"type":"string","title":"Currency","default":"EUR"},"new_orders":{"type":"integer","title":"New Orders"},"in_progress":{"type":"integer","title":"In Progress"},"revision_requested":{"type":"integer","title":"Revision Requested"},"escalated":{"type":"integer","title":"Escalated"},"awaiting_accept":{"type":"integer","title":"Awaiting Accept"},"pool_available":{"type":"integer","title":"Pool Available"},"delegation_offers":{"type":"integer","title":"Delegation Offers"},"with_partners":{"type":"integer","title":"With Partners"},"orders_this_month":{"type":"integer","title":"Orders This Month"},"handed_off_this_month":{"type":"integer","title":"Handed Off This Month"},"completed_this_month":{"type":"integer","title":"Completed This Month"},"avg_turnaround_seconds":{"type":"number","title":"Avg Turnaround Seconds"},"revenue_dealer_month_cents":{"type":"integer","title":"Revenue Dealer Month Cents"},"revenue_pool_month_cents":{"type":"integer","title":"Revenue Pool Month Cents"},"revenue_month_cents":{"type":"integer","title":"Revenue Month Cents"},"pending_dealer_cents":{"type":"integer","title":"Pending Dealer Cents"},"pending_pool_cents":{"type":"integer","title":"Pending Pool Cents"},"pending_payout_cents":{"type":"integer","title":"Pending Payout Cents"},"active_dealers":{"type":"integer","title":"Active Dealers"},"new_dealers_this_month":{"type":"integer","title":"New Dealers This Month"}},"type":"object","required":["new_orders","in_progress","revision_requested","escalated","awaiting_accept","pool_available","delegation_offers","with_partners","orders_this_month","handed_off_this_month","completed_this_month","avg_turnaround_seconds","revenue_dealer_month_cents","revenue_pool_month_cents","revenue_month_cents","pending_dealer_cents","pending_pool_cents","pending_payout_cents","active_dealers","new_dealers_this_month"],"title":"TunerStorefrontSummary","description":"The tuner's STOREFRONT snapshot — their own workspaces + dealers (as opposed\nto ``TunerDashboardSummary`` which is the pool-worker view). Powers the\ndashboard's \"needs you now\" triage + business-KPI bands in one call."},"TunerThroughputPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"delivered":{"type":"integer","title":"Delivered"}},"type":"object","required":["bucket","delivered"],"title":"TunerThroughputPoint","description":"The tuner's deliveries on a single day."},"TunesOut":{"properties":{"tunes":{"items":{"$ref":"#/components/schemas/TuneOut"},"type":"array","title":"Tunes"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["tunes","total"],"title":"TunesOut"},"Turnaround":{"properties":{"source":{"type":"string","enum":["orders","estimate","sample"],"title":"Source"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"bins":{"items":{"$ref":"#/components/schemas/HistogramBin"},"type":"array","title":"Bins"},"median_min":{"type":"number","title":"Median Min"},"p90_min":{"type":"number","title":"P90 Min"}},"type":"object","required":["source","bins","median_min","p90_min"],"title":"Turnaround"},"TurnaroundPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"avg_seconds":{"type":"number","title":"Avg Seconds"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["bucket","avg_seconds","count"],"title":"TurnaroundPoint","description":"Average submitted->delivered seconds for one delivery day."},"UiHintIn":{"properties":{"directive_id":{"type":"string","maxLength":64,"minLength":1,"title":"Directive Id"},"action":{"type":"string","enum":["navigate","point"],"title":"Action"},"target":{"type":"string","maxLength":64,"minLength":1,"title":"Target"},"note":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["directive_id","action","target"],"title":"UiHintIn","description":"A pointing directive. ``target`` must name a registry entry — there is\nno way to pass a selector — and ``directive_id`` lets the browser dedupe\nthe at-least-once delivery."},"UiHintOut":{"properties":{"status":{"type":"string","const":"accepted","title":"Status"}},"type":"object","required":["status"],"title":"UiHintOut"},"UiLocateIn":{"properties":{"query":{"type":"string","maxLength":300,"minLength":1,"title":"Query"},"current_route":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Current Route"}},"additionalProperties":false,"type":"object","required":["query"],"title":"UiLocateIn"},"UiLocateMatch":{"properties":{"target_id":{"type":"string","title":"Target Id"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"route":{"type":"string","title":"Route"},"can_point":{"type":"boolean","title":"Can Point"}},"type":"object","required":["target_id","label","description","route","can_point"],"title":"UiLocateMatch"},"UiLocateOut":{"properties":{"matches":{"items":{"$ref":"#/components/schemas/UiLocateMatch"},"type":"array","title":"Matches"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["matches"],"title":"UiLocateOut"},"UnlistedVehicle":{"properties":{"make":{"type":"string","maxLength":64,"minLength":1,"title":"Make"},"model":{"type":"string","maxLength":64,"minLength":1,"title":"Model"},"engine":{"type":"string","maxLength":64,"minLength":1,"title":"Engine"},"year":{"type":"integer","maximum":2100.0,"minimum":1950.0,"title":"Year"},"fuel":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Fuel"},"power":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Power"},"ecu":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ecu"},"gearbox":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Gearbox"},"source":{"type":"string","enum":["plate","search","file","typed"],"title":"Source","default":"typed"}},"type":"object","required":["make","model","engine","year"],"title":"UnlistedVehicle","description":"A car the dealer typed in because we do not list it.\n\nFour fields are required — enough for a tuner to know which car the file is\nfor; the rest they read from the file. ``source`` records where the details\ncame from (the plate registry, the search words, the file's identification,\nor typed from scratch), so the catalogue team can tell a registry fact from\na guess when they add the car."},"UnlistedVehicleReportRow":{"properties":{"make":{"type":"string","title":"Make"},"model":{"type":"string","title":"Model"},"engine":{"type":"string","title":"Engine"},"orders":{"type":"integer","title":"Orders"},"first_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Year"},"last_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Year"},"last_ordered_at":{"type":"string","format":"date-time","title":"Last Ordered At"}},"type":"object","required":["make","model","engine","orders","last_ordered_at"],"title":"UnlistedVehicleReportRow","description":"One car dealers ordered for that we do not list — the admin report the\ncatalogue team works through, most-ordered first."},"UnpricedSearch":{"properties":{"part_number":{"type":"string","title":"Part Number"},"searches":{"type":"integer","title":"Searches"},"last_searched_at":{"type":"string","format":"date-time","title":"Last Searched At"}},"type":"object","required":["part_number","searches","last_searched_at"],"title":"UnpricedSearch","description":"A part number visitors looked up and could not buy."},"UnresolvedTokens":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"tokens":{"items":{"type":"string"},"type":"array","title":"Tokens"}},"type":"object","required":["tokens"],"title":"UnresolvedTokens","description":"Tokens on one draft page (``slug`` None = header/footer) nothing fills."},"UnsubscribeActionRequest":{"properties":{"action":{"type":"string","enum":["unsubscribe","resubscribe","unsubscribe_all"],"title":"Action"}},"type":"object","required":["action"],"title":"UnsubscribeActionRequest","description":"The landing page's confirm body — unsubscribe, undo it, or switch off\nall marketing email for the account (account-holder tokens only)."},"UnsubscribeContext":{"properties":{"email_masked":{"type":"string","title":"Email Masked"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"subscribed":{"type":"boolean","title":"Subscribed"},"can_unsubscribe_all":{"type":"boolean","title":"Can Unsubscribe All","default":false},"all_marketing_off":{"type":"boolean","title":"All Marketing Off","default":false}},"type":"object","required":["email_masked","subscribed"],"title":"UnsubscribeContext","description":"What the branded unsubscribe landing page shows for a valid token.\n\n``email_masked`` proves to the visitor which address the link is about\nwithout leaking it (the token may be forwarded); ``workspace_name`` /\n``logo_url`` carry the sender's brand (None = the platform newsletter).\n``subscribed`` reflects the CURRENT state for this sender so the page can\noffer the matching action (unsubscribe vs resubscribe).\n``can_unsubscribe_all`` is true for an account holder's token — only an\naccount has the \"all marketing\" switch; a dealer website's contact does\nnot. ``all_marketing_off`` is that switch's state: off means no sender\nmails this address, whatever ``subscribed`` says."},"UpdateTemplateIn":{"properties":{"body":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Body"},"label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Label"},"language":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Language"},"category":{"anyOf":[{"type":"string","enum":["utility","marketing","authentication"]},{"type":"null"}],"title":"Category"}},"type":"object","title":"UpdateTemplateIn"},"UploadConfirmRequest":{"properties":{"original_file_id":{"type":"string","format":"uuid","title":"Original File Id"}},"type":"object","required":["original_file_id"],"title":"UploadConfirmRequest"},"UploadUrlRequest":{"properties":{"content_type":{"type":"string","title":"Content Type","default":"application/octet-stream"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"}},"type":"object","title":"UploadUrlRequest"},"UploadUrlResponse":{"properties":{"original_file_id":{"type":"string","format":"uuid","title":"Original File Id"},"upload_url":{"type":"string","title":"Upload Url"},"storage_key":{"type":"string","title":"Storage Key"}},"type":"object","required":["original_file_id","upload_url","storage_key"],"title":"UploadUrlResponse"},"UrgencyCount":{"properties":{"urgency":{"type":"string","title":"Urgency"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["urgency","count"],"title":"UrgencyCount","description":"Generic urgency -> count pair."},"UsageLineRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"period":{"type":"string","title":"Period"},"invoiced_invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoiced Invoice Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","tuner_workspace_id","dealer_org_id","amount_cents","period","created_at"],"title":"UsageLineRead","description":"One accrued on-account usage line — a delivered monthly-invoice order."},"UserCreate":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"role":{"type":"string","title":"Role","default":"dealer"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","required":["email","password"],"title":"UserCreate"},"UserRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","organisation_id","email","role","full_name","locale","is_active"],"title":"UserRead"},"UserSelfRead":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"mobile_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"role":{"type":"string","title":"Role"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["email","full_name","phone","mobile_phone","locale","role"],"title":"UserSelfRead","description":"The signed-in user's own profile (account settings)."},"UserSelfUpdate":{"properties":{"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"mobile_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","title":"UserSelfUpdate","description":"A user editing their own profile. Email/role are not self-editable."},"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"},"VariantPerks":{"properties":{"credits":{"anyOf":[{"$ref":"#/components/schemas/CreditPerk"},{"type":"null"}]},"staff_note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Staff Note"}},"type":"object","title":"VariantPerks","description":"What buying one unit of a variant also brings. ``staff_note`` is the\nmanual step the seller owes (e.g. registering a slave tool on the master),\nprinted on the new-order email to the shop's staff."},"VariantRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"product_id":{"type":"string","format":"uuid","title":"Product Id"},"sku":{"type":"string","title":"Sku"},"name":{"type":"string","title":"Name"},"prices":{"additionalProperties":true,"type":"object","title":"Prices"},"stock_on_hand":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock On Hand"},"weight_grams":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weight Grams"},"fulfilment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fulfilment"},"compare_at_prices":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Compare At Prices"},"perks":{"anyOf":[{"$ref":"#/components/schemas/VariantPerks"},{"type":"null"}]},"active":{"type":"boolean","title":"Active"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","product_id","sku","name","prices","active","position"],"title":"VariantRead"},"VariantWrite":{"properties":{"sku":{"type":"string","title":"Sku"},"name":{"type":"string","title":"Name"},"prices":{"additionalProperties":{"type":"integer"},"type":"object","title":"Prices"},"stock_on_hand":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock On Hand"},"weight_grams":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weight Grams"},"fulfilment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fulfilment"},"compare_at_prices":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Compare At Prices"},"perks":{"anyOf":[{"$ref":"#/components/schemas/VariantPerks"},{"type":"null"}]},"active":{"type":"boolean","title":"Active","default":true},"position":{"type":"integer","title":"Position","default":0}},"type":"object","required":["sku","name","prices"],"title":"VariantWrite","description":"Create/update payload for a sellable SKU under a product."},"VatValidateRequest":{"properties":{"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},"type":"object","title":"VatValidateRequest","description":"What to validate. Absent means \"re-check what is already on file\"."},"VehicleCandidate":{"properties":{"vehicle_ref":{"type":"string","title":"Vehicle Ref"},"label":{"type":"string","title":"Label"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"}},"type":"object","required":["vehicle_ref","label"],"title":"VehicleCandidate"},"VehicleFacts":{"properties":{"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"},"model_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Year"},"engine":{"anyOf":[{"$ref":"#/components/schemas/EngineFacts"},{"type":"null"}]},"ecu":{"anyOf":[{"$ref":"#/components/schemas/EcuFacts"},{"type":"null"}]},"hsn_tsn":{"anyOf":[{"$ref":"#/components/schemas/HsnTsn"},{"type":"null"}]},"emission_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emission Class"},"first_registration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Registration"},"first_registration_nl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Registration Nl"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"type_approval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Approval"},"generation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"gears":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gears"},"drivetrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivetrain"},"body_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Type"},"torque_nm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Nm"}},"type":"object","title":"VehicleFacts","description":"The merged L1 + L2 + Car2DB vehicle object (§13.4 vehicle)."},"VehicleLookupResult":{"properties":{"source":{"type":"string","title":"Source"},"cached":{"type":"boolean","title":"Cached"},"vehicle":{"anyOf":[{"$ref":"#/components/schemas/VehicleFacts"},{"type":"null"}]},"catalog_match":{"anyOf":[{"$ref":"#/components/schemas/CatalogMatch"},{"type":"null"}]},"estimate":{"anyOf":[{"$ref":"#/components/schemas/EngineStageRead"},{"type":"null"}]},"confidence":{"type":"string","title":"Confidence"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"lookup_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lookup Id"}},"type":"object","required":["source","cached","vehicle","catalog_match","confidence","warnings","lookup_id"],"title":"VehicleLookupResult","description":"The full §13.4 response envelope. Both vehicle + match may be partial."},"VehicleResolveIn":{"properties":{"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"catalogue_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalogue Node Id"}},"type":"object","title":"VehicleResolveIn"},"VehicleResolveOut":{"properties":{"match":{"type":"string","enum":["ok","ambiguous","none"],"title":"Match"},"candidates":{"items":{"$ref":"#/components/schemas/VehicleCandidate"},"type":"array","title":"Candidates"},"total":{"type":"integer","title":"Total","default":0}},"type":"object","required":["match"],"title":"VehicleResolveOut"},"VehicleRow":{"properties":{"engine_id":{"type":"string","format":"uuid","title":"Engine Id"},"make":{"type":"string","title":"Make"},"model":{"type":"string","title":"Model"},"generation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation"},"engine":{"type":"string","title":"Engine"},"year_begin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year Begin"},"year_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year End"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"power_stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Stock"},"power_stage1":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Stage1"},"torque_stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Stock"},"torque_stage1":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Stage1"},"files":{"type":"integer","title":"Files"}},"type":"object","required":["engine_id","make","model","generation","engine","year_begin","year_end","fuel","power_stock","power_stage1","torque_stock","torque_stage1","files"],"title":"VehicleRow","description":"An engine on an ECU, with its catalogue Stage 1 figures.\n\nThe gains are the catalogue's typical figures, not measurements of ours.\n``files`` counts our orders for the engine."},"VehicleSearchResult":{"properties":{"catalogue_node_id":{"type":"string","format":"uuid","title":"Catalogue Node Id"},"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"generation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation"},"trim":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trim"},"power_hp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Power Hp"},"torque_nm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Torque Nm"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"drivetrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivetrain"},"body_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Type"},"year_begin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year Begin"},"year_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year End"},"score":{"type":"number","title":"Score"}},"type":"object","required":["catalogue_node_id","score"],"title":"VehicleSearchResult","description":"One hybrid (semantic + lexical) vehicle search hit, with key specs."},"WalletBalance":{"properties":{"supplier":{"type":"string","title":"Supplier"},"credits":{"type":"number","title":"Credits"},"by_kind":{"additionalProperties":{"type":"number"},"type":"object","title":"By Kind"}},"type":"object","required":["supplier","credits","by_kind"],"title":"WalletBalance","description":"One credit wallet. ``supplier`` names the tuner workspace it belongs to\n('Platform' for the pool wallet); credits are currency-less numbers."},"WebDomainDetail":{"properties":{"domain":{"type":"string","title":"Domain"},"status":{"type":"string","title":"Status"},"dns_a_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns A Ip"},"dns_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dns Ok"},"dns_pointed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Pointed At"},"ssl_active_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ssl Active Until"},"status_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Message"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"alias_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias Domain"}},"type":"object","required":["domain","status"],"title":"WebDomainDetail","description":"The persisted state of a workspace's custom website domain.\n\n``dns_a_ip`` is the cluster IP the tuner points their A record at; ``status``\ntracks provisioning (pending → active | error) and ``status_message`` carries\nthe provider's human-readable hint.\n\n``dns_ok`` says whether the domain reaches US, and ``dns_pointed_at`` says\nwhere it actually goes — so a mismatch can name both addresses instead of\nleaving an unexplained empty circle. ``ssl_active_until`` is the certificate's\nreal expiry: a lapsed cert used to render as \"issued\" because the provider\nreports one that merely EXISTS. All three are None on a plain GET (they come\nfrom a live verify poll)."},"WebDomainRegister":{"properties":{"domain":{"type":"string","title":"Domain"}},"type":"object","required":["domain"],"title":"WebDomainRegister","description":"Register a custom website domain for the tuner's storefront."},"WebsiteContext":{"properties":{"kind":{"type":"string","const":"website","title":"Kind","default":"website"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["message"],"title":"WebsiteContext","description":"A widget booking: the visitor's message, nothing more is known."},"WebsitePayments":{"properties":{"onboarding_status":{"type":"string","title":"Onboarding Status"},"can_take_payments":{"type":"boolean","title":"Can Take Payments"},"details_submitted":{"type":"boolean","title":"Details Submitted"},"payouts_enabled":{"type":"boolean","title":"Payouts Enabled"},"account_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Country"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"},"requirements_due":{"items":{"type":"string"},"type":"array","title":"Requirements Due","default":[]},"fees":{"items":{"$ref":"#/components/schemas/PaymentFee"},"type":"array","title":"Fees"},"transfer_hold_hours":{"type":"integer","title":"Transfer Hold Hours"}},"type":"object","required":["onboarding_status","can_take_payments","details_submitted","payouts_enabled","fees","transfer_hold_hours"],"title":"WebsitePayments","description":"The website shop's payout account, and what a sale through it costs.\n\n``can_take_payments`` is the shop's readiness: until it is true the public\nsite hides its buy buttons, because checkout would refuse the cart. The\nfee fields are the platform's actual terms, so the page can state them\nrather than paraphrase them."},"WebsiteState":{"properties":{"workspace":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceRead"},{"type":"null"}]},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"entitlements":{"additionalProperties":true,"type":"object","title":"Entitlements","default":{}},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"has_payment_method":{"type":"boolean","title":"Has Payment Method","default":false},"card_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Last4"},"payment_method_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method Type"},"payment_method_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method Email"},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url"},"currency":{"type":"string","title":"Currency","default":"EUR"}},"type":"object","title":"WebsiteState","description":"Everything the portal needs to decide what to show a dealer, in one read.\n\n``workspace`` is null before they have opened a site — which is the free\nplan, not an error, so this answers 200 with nulls rather than 404. The\nentitlement map rides along so the nav can lock the right entries without a\nsecond round-trip on every page load."},"WeekMetrics":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"drafts_reviewed":{"type":"integer","title":"Drafts Reviewed"},"approved_unchanged":{"type":"integer","title":"Approved Unchanged"},"edited":{"type":"integer","title":"Edited"},"discarded":{"type":"integer","title":"Discarded"},"own_replies":{"type":"integer","title":"Own Replies"},"approved_unchanged_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Approved Unchanged Share"},"mean_edit_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Edit Ratio"},"discard_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discard Rate"},"own_reply_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Own Reply Rate"}},"type":"object","required":["start","end","drafts_reviewed","approved_unchanged","edited","discarded","own_replies","approved_unchanged_share","mean_edit_ratio","discard_rate","own_reply_rate"],"title":"WeekMetrics","description":"What people did with the agent's replies over one seven-day window.\n\n``drafts_reviewed`` counts decisions on drafts (approved, edited,\ndiscarded); ``own_replies`` counts replies a person wrote themselves on a\nthread the agent was on. The shares are ``None`` when there is nothing to\ndivide by, so an empty week never reads as 0%."},"WhatsAppReplyIn":{"properties":{"text":{"type":"string","maxLength":4096,"minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"WhatsAppReplyIn"},"WhatsappTemplateOption":{"properties":{"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"status":{"type":"string","title":"Status"},"variables":{"items":{"type":"string"},"type":"array","title":"Variables"}},"type":"object","required":["name","language","status","variables"],"title":"WhatsappTemplateOption"},"WidgetLimits":{"properties":{"finder_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finder Per Day"},"plate_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Per Day"},"effective_finder_per_day":{"type":"integer","title":"Effective Finder Per Day"},"effective_plate_per_day":{"type":"integer","title":"Effective Plate Per Day"},"max_finder_per_day":{"type":"integer","title":"Max Finder Per Day"},"max_plate_per_day":{"type":"integer","title":"Max Plate Per Day"}},"type":"object","required":["effective_finder_per_day","effective_plate_per_day","max_finder_per_day","max_plate_per_day"],"title":"WidgetLimits","description":"What this tuner allows each of their dealers' widgets per day, plus the\nceiling they may raise it to.\n\n``finder_per_day`` covers the cheap browse/search calls; ``plate_per_day``\nthe plate lookup, which reaches an external provider. Both are NULL until the\ntuner sets a number, meaning \"follow the ceiling\" — so the read always\nreports an ``effective_*`` the caller can show without repeating the\nfallback. The ceilings come from ``limit:widget_*_daily`` (plan or admin\noverride), falling back to the platform default."},"WidgetLimitsUpdate":{"properties":{"finder_per_day":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Finder Per Day"},"plate_per_day":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Plate Per Day"}},"type":"object","title":"WidgetLimitsUpdate","description":"Tuner save. NULL on either field restores \"follow the ceiling\"; a value\nabove the ceiling is rejected rather than silently clamped, so the tuner is\nnever told they saved a number the widget will not honour."},"WinolsOrderInfo":{"properties":{"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"purchased_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Purchased At"},"evc_customer_number":{"type":"integer","title":"Evc Customer Number"},"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"},"credits_source":{"anyOf":[{"type":"string","enum":["reported","balance"]},{"type":"null"}],"title":"Credits Source"},"vehicle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle"},"ecu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecu"},"software":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software"},"project_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Type"}},"type":"object","required":["evc_customer_number"],"title":"WinolsOrderInfo","description":"The WinOLS purchase an order was made from (``origin='winols'``).\n\nThe buyer bought and downloaded the file in WinOLS, paying with EVC credits,\nso there is no file to download here and no invoice for the order itself.\n``credits`` is what it cost when we could tell (EVC reports no prices);\n``credits_source`` says how we know: ``reported`` by EVC, or ``balance`` —\nthe buyer's balance fell by exactly this much around this one purchase."},"WorkspaceAddonRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"price_credits":{"type":"number","title":"Price Credits"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency","default":{}},"active":{"type":"boolean","title":"Active"},"applicability":{"$ref":"#/components/schemas/AddonApplicability"},"review_status":{"type":"string","enum":["pending","approved","rejected"],"title":"Review Status","default":"approved"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"}},"type":"object","required":["id","code","name","category","price_credits","active"],"title":"WorkspaceAddonRead","description":"A tuner's own add-on row for their registry (includes id + inactive).\n\nSame shape as the platform admin read; the workspace scope is implicit in\nthe endpoint (``/workspaces/{id}/addons``), never client-supplied."},"WorkspaceAddonWrite":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"category":{"type":"string","maxLength":32,"minLength":1,"title":"Category"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Price Credits"},"price_cents":{"type":"integer","minimum":0.0,"title":"Price Cents","default":0},"price_cents_by_currency":{"additionalProperties":{"type":"integer"},"type":"object","title":"Price Cents By Currency"},"active":{"type":"boolean","title":"Active","default":true},"applicability":{"$ref":"#/components/schemas/AddonApplicability"}},"type":"object","required":["code","name","category","price_credits"],"title":"WorkspaceAddonWrite","description":"Create/update payload for a tuner's own add-on.\n\n``code`` is normalised to UPPER_SNAKE server-side; a code already meaning\nsomething in the workspace's view (global or own) is rejected with 409."},"WorkspaceConnections":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"connections":{"items":{"$ref":"#/components/schemas/ConnectionStatus"},"type":"array","title":"Connections"}},"type":"object","required":["workspace_id","connections"],"title":"WorkspaceConnections","description":"All provider connections for a workspace (configured or not)."},"WorkspaceCreate":{"properties":{"display_name":{"type":"string","title":"Display Name"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"kind":{"type":"string","enum":["storefront","website_only"],"title":"Kind","default":"storefront"}},"type":"object","required":["display_name"],"title":"WorkspaceCreate","description":"Open a new tuner workspace. Slug is derived from ``display_name``."},"WorkspaceDealerRead":{"properties":{"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"buyer_storefronts":{"items":{"$ref":"#/components/schemas/BuyerStorefrontRead"},"type":"array","title":"Buyer Storefronts"}},"type":"object","required":["dealer_org_id"],"title":"WorkspaceDealerRead","description":"A dealer the tuner has an active membership with, across their workspaces —\nthe creditable/refundable dealer set for the refunds page picker."},"WorkspaceDirectoryEntry":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"kind":{"type":"string","enum":["storefront","website_only"],"title":"Kind"},"platform_site":{"type":"boolean","title":"Platform Site"},"site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Url"},"blog_set_up":{"type":"boolean","title":"Blog Set Up"}},"type":"object","required":["workspace_id","name","slug","kind","platform_site","site_url","blog_set_up"],"title":"WorkspaceDirectoryEntry","description":"One of the caller's own workspaces as an agent chooses it: the id to pass\nas ``workspace_id``, its name, where its site lives, whether it is the\nplatform site and whether its blog is set up."},"WorkspaceEntitlementsRead":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"resolved":{"additionalProperties":true,"type":"object","title":"Resolved"},"overrides":{"items":{"$ref":"#/components/schemas/OverrideRead"},"type":"array","title":"Overrides"}},"type":"object","required":["workspace_id"],"title":"WorkspaceEntitlementsRead","description":"A workspace's resolved entitlement map beside its raw override rows (§13.3c)."},"WorkspaceInvoiceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tuner_workspace_id":{"type":"string","format":"uuid","title":"Tuner Workspace Id"},"dealer_org_id":{"type":"string","format":"uuid","title":"Dealer Org Id"},"dealer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealer Name"},"period":{"type":"string","title":"Period"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url"},"amount_cents":{"type":"integer","title":"Amount Cents"},"refunded_amount_cents":{"type":"integer","title":"Refunded Amount Cents","default":0},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"due_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due On"},"settlement_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Method"},"settled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Settled At"},"settlement_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","tuner_workspace_id","dealer_org_id","period","amount_cents","currency","status","created_at"],"title":"WorkspaceInvoiceRead","description":"A cycle-close monthly invoice header for a (dealer, period).\n\nLinks the aggregate accounting invoice, its collection payment, and the\ntuner-branded hosted Checkout URL the dealer pays."},"WorkspacePaymentFeeOverride":{"properties":{"payment_fee_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payment Fee Bps"},"payment_fee_fixed_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payment Fee Fixed Cents"}},"type":"object","title":"WorkspacePaymentFeeOverride","description":"Admin-only Model B per-workspace fee override (null = platform default)."},"WorkspaceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"owner_user_id":{"type":"string","format":"uuid","title":"Owner User Id"},"owner_org_id":{"type":"string","format":"uuid","title":"Owner Org Id"},"display_name":{"type":"string","title":"Display Name"},"slug":{"type":"string","title":"Slug"},"status":{"type":"string","enum":["active","suspended","closed"],"title":"Status"},"kind":{"type":"string","enum":["storefront","website_only"],"title":"Kind","default":"storefront"},"stripe_onboarding_status":{"type":"string","title":"Stripe Onboarding Status"},"stripe_account_type":{"type":"string","enum":["standard","express","custom"],"title":"Stripe Account Type"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"trial_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Plan"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"live_ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Live Ready At"},"branding":{"additionalProperties":true,"type":"object","title":"Branding"},"availability_status":{"type":"string","enum":["available","away"],"title":"Availability Status","default":"available"},"away_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Away From"},"away_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Away Until"},"away_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Away Message"},"auto_route_schedule":{"additionalProperties":true,"type":"object","title":"Auto Route Schedule"},"payout_blocked":{"type":"boolean","title":"Payout Blocked","default":false},"payout_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Blocked Reason"},"single_credit_type":{"type":"boolean","title":"Single Credit Type","default":false},"require_valid_vat":{"type":"boolean","title":"Require Valid Vat","default":false},"order_vehicle_required":{"type":"boolean","title":"Order Vehicle Required","default":true},"charge_in_buyer_currency":{"type":"boolean","title":"Charge In Buyer Currency","default":false},"shop_enabled":{"type":"boolean","title":"Shop Enabled","default":true},"dual_price_catalogue":{"type":"boolean","title":"Dual Price Catalogue","default":false},"rrr_enabled":{"type":"boolean","title":"Rrr Enabled","default":false},"selling_suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Selling Suspended At"},"selling_suspended_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selling Suspended Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","owner_user_id","owner_org_id","display_name","slug","status","stripe_onboarding_status","stripe_account_type","branding","created_at"],"title":"WorkspaceRead"},"WorkspaceRevenueRow":{"properties":{"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"purpose":{"type":"string","title":"Purpose"},"amount_cents":{"type":"integer","title":"Amount Cents"},"net_to_tuner_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net To Tuner Cents"},"refunded_amount_cents":{"type":"integer","title":"Refunded Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"transferred_to_tuner":{"type":"boolean","title":"Transferred To Tuner"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"credit_pack_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credit Pack Id"},"refundable_credits":{"type":"integer","title":"Refundable Credits","default":0},"refundable_cents":{"type":"integer","title":"Refundable Cents","default":0}},"type":"object","required":["payment_id","purpose","amount_cents","refunded_amount_cents","currency","status","transferred_to_tuner","created_at"],"title":"WorkspaceRevenueRow","description":"One workspace-rail sale in the tuner finance \"Sales\" feed.\n\nThe revenue a workspace tuner earns through ``payments`` (credit-pack top-ups,\nper-file orders, monthly cycle invoices) — invisible on the pool earnings rail.\n``net_to_tuner_cents`` is what actually reaches the tuner (None until the\ndeferred transfer settles); ``invoice_number`` links the accounting document.\n``refundable_credits`` is set (>0) only for a credit-pack still holding unspent\ncredits, so the UI shows a refund action only where one is possible."},"WorkspaceRrrWrite":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"WorkspaceRrrWrite","description":"Admin switch for a workspace's RRR.lt parts sourcing."},"WorkspaceStageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"stage":{"type":"string","title":"Stage"},"price_credits":{"type":"number","title":"Price Credits"},"position":{"type":"integer","title":"Position"},"active":{"type":"boolean","title":"Active"},"review_status":{"type":"string","enum":["pending","approved","rejected"],"title":"Review Status","default":"approved"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"}},"type":"object","required":["id","stage","price_credits","position","active"],"title":"WorkspaceStageRead","description":"A tuner's own default stage for their registry (includes id + inactive).\n\nSame shape as the platform default read; the workspace scope is implicit in\nthe endpoint (``/workspaces/{id}/stages``), never client-supplied."},"WorkspaceStageWrite":{"properties":{"stage":{"type":"string","maxLength":64,"minLength":1,"title":"Stage"},"price_credits":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Price Credits"},"position":{"type":"integer","minimum":0.0,"title":"Position","default":0},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["stage","price_credits"],"title":"WorkspaceStageWrite","description":"Create/update payload for a tuner's own default stage.\n\nA label already naming a stage in the workspace's view (a platform stage or\none of the tuner's own) is rejected with 409, so a label is never ambiguous."},"WorkspaceUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"availability_status":{"anyOf":[{"type":"string","enum":["available","away"]},{"type":"null"}],"title":"Availability Status"},"away_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Away From"},"away_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Away Until"},"away_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Away Message"},"auto_route_schedule":{"anyOf":[{"$ref":"#/components/schemas/AutoRouteSchedule"},{"type":"null"}]},"require_valid_vat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Valid Vat"},"order_vehicle_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Order Vehicle Required"},"charge_in_buyer_currency":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Charge In Buyer Currency"},"shop_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shop Enabled"},"dual_price_catalogue":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dual Price Catalogue"}},"type":"object","title":"WorkspaceUpdate","description":"Patch a workspace's top-level fields — all optional for PATCH semantics.\n\nThe Model B payment-fee override is intentionally NOT patchable here: it is the\nplatform's own application fee (its revenue), so a workspace owner (the tuner)\nmust not be able to set it. Only the admin endpoint\n``PUT /admin/workspaces/{id}/payment-fee`` may change it.\n\n``plan`` and ``status`` are likewise absent — ``update_workspace`` applies\nevery field it is handed, so carrying them here let any owner PATCH\nthemselves onto the top plan for free. Plans move only through the billing\nrail and the admin assign route (``/admin/workspaces/{id}/plan``); status\nonly through its own lifecycle commands."},"WorkspaceUsageSummary":{"properties":{"period":{"type":"string","title":"Period"},"cycle_start":{"type":"string","format":"date-time","title":"Cycle Start"},"cycle_end":{"type":"string","format":"date-time","title":"Cycle End"},"reset_at":{"type":"string","format":"date-time","title":"Reset At"},"orders":{"$ref":"#/components/schemas/OrdersUsage"},"seats":{"$ref":"#/components/schemas/SeatsUsage"},"campaign_recipients":{"anyOf":[{"$ref":"#/components/schemas/CampaignRecipientsUsage"},{"type":"null"}]},"agent_conversations":{"anyOf":[{"$ref":"#/components/schemas/AgentConversationsUsage"},{"type":"null"}]}},"type":"object","required":["period","cycle_start","cycle_end","reset_at","orders","seats"],"title":"WorkspaceUsageSummary","description":"Plan-usage meters for the tuner Usage page (§14.5). ``reset_at`` is the first\nday of next calendar month (when the calendar-month count rolls, §6)."},"services__agent_console__schemas__TicketRead":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"TicketRead"},"services__automation__schemas__RuleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"trigger_event":{"type":"string","title":"Trigger Event"},"conditions":{"additionalProperties":true,"type":"object","title":"Conditions"},"delay_minutes":{"type":"integer","title":"Delay Minutes"},"send_at_local_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send At Local Time"},"action_kind":{"type":"string","enum":["whatsapp_template","email","team_notice","webhook"],"title":"Action Kind"},"action_config":{"additionalProperties":true,"type":"object","title":"Action Config"},"last_fired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Fired At"},"fire_count":{"type":"integer","title":"Fire Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"sent_30d":{"type":"integer","title":"Sent 30D","default":0},"skipped_30d":{"type":"integer","title":"Skipped 30D","default":0},"delivery_state":{"type":"string","enum":["live","not_sending","off"],"title":"Delivery State","default":"off"},"blocked_reason":{"anyOf":[{"type":"string","enum":["agent_not_connected","template_not_approved"]},{"type":"null"}],"title":"Blocked Reason"}},"type":"object","required":["id","workspace_id","name","enabled","trigger_event","conditions","delay_minutes","send_at_local_time","action_kind","action_config","last_fired_at","fire_count","created_at","updated_at"],"title":"RuleRead"},"services__compliance__schemas__RuleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"pattern":{"type":"string","title":"Pattern"},"kind":{"type":"string","enum":["keyword","regex"],"title":"Kind"},"scope":{"type":"string","enum":["listings","sites","both"],"title":"Scope"},"active":{"type":"boolean","title":"Active"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","pattern","kind","scope","active"],"title":"RuleRead"},"services__messaging__schemas__MessageCreate":{"properties":{"body":{"type":"string","title":"Body"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentMeta"},"type":"array","title":"Attachments","default":[]},"internal":{"type":"boolean","title":"Internal","default":false},"mentioned_user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Mentioned User Ids","default":[]}},"type":"object","required":["body"],"title":"MessageCreate"},"services__messaging__schemas__StatusUpdate":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"StatusUpdate"},"services__payout__schemas__ConnectSwitchResult":{"properties":{"ok":{"type":"boolean","title":"Ok"},"pending_payouts":{"type":"integer","title":"Pending Payouts","default":0},"pending_earnings":{"type":"integer","title":"Pending Earnings","default":0}},"type":"object","required":["ok"],"title":"ConnectSwitchResult","description":"Outcome of a request to replace a tuner's connected payout account.\n\n``ok`` is False when in-flight money would be misrouted by the change; the\npending counts explain why so the UI can tell the tuner what to wait for."},"services__ticket__schemas__MessageCreate":{"properties":{"body":{"type":"string","title":"Body"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentMeta"},"type":"array","title":"Attachments","default":[]},"internal":{"type":"boolean","title":"Internal","default":false}},"type":"object","required":["body"],"title":"MessageCreate"},"services__ticket__schemas__StatusUpdate":{"properties":{"status":{"type":"string","enum":["open","pending","resolved","closed"],"title":"Status"}},"type":"object","required":["status"],"title":"StatusUpdate"},"services__ticket__schemas__TicketRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"category":{"type":"string","title":"Category"},"subject":{"type":"string","title":"Subject"},"status":{"type":"string","title":"Status"},"urgency":{"type":"string","title":"Urgency"},"opened_by":{"type":"string","format":"uuid","title":"Opened By"},"assigned_to":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organisation_id","order_id","category","subject","status","urgency","opened_by","assigned_to","resolved_at","last_activity_at","created_at"],"title":"TicketRead"},"services__workspace__schemas__ConnectSwitchResult":{"properties":{"ok":{"type":"boolean","title":"Ok"},"pending_payouts":{"type":"integer","title":"Pending Payouts","default":0},"pending_earnings":{"type":"integer","title":"Pending Earnings","default":0}},"type":"object","required":["ok"],"title":"ConnectSwitchResult","description":"Outcome of a request to replace a workspace's connected payout account.\n\n``ok`` is False when in-flight money would be misrouted by the change; the\npending counts explain what the tuner must wait for (an un-sent workspace\npayout, or an owed pool earning) so the UI can say so."}}}}