{"openapi":"3.1.0","info":{"title":"Dictate API","version":"0.1.0"},"paths":{"/admin/clients":{"get":{"tags":["admin"],"summary":"List Clients","description":"List all projects with status summary.","operationId":"list_clients_admin_clients_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientSummary"},"title":"Response List Clients Admin Clients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tasks/failed":{"get":{"tags":["admin"],"summary":"Admin List Failed Tasks","description":"List unresolved terminal Celery failures for ops inspection.","operationId":"admin_list_failed_tasks_admin_tasks_failed_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Failed Tasks Admin Tasks Failed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tasks/failed/{task_id}/resolve":{"post":{"tags":["admin"],"summary":"Admin Resolve Failed Task","description":"Mark a failed task as reviewed/resolved after operator action.","operationId":"admin_resolve_failed_task_admin_tasks_failed__task_id__resolve_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailedTaskResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resolve Failed Task Admin Tasks Failed  Task Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/manual-authority-buyer":{"post":{"tags":["admin"],"summary":"Create Manual Authority Buyer","operationId":"create_manual_authority_buyer_admin_clients_manual_authority_buyer_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualAuthorityBuyerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualAuthorityBuyerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/trigger-onboarding":{"post":{"tags":["admin"],"summary":"Admin Trigger Onboarding","description":"Manually trigger process_onboarding for a stuck project.","operationId":"admin_trigger_onboarding_admin_clients__project_id__trigger_onboarding_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Onboarding Admin Clients  Project Id  Trigger Onboarding Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/silas-enablement":{"post":{"tags":["admin"],"summary":"Admin Silas Enablement","description":"Flip projects.silas_portal_enabled for one project or all active clients.\n\nSince 2026-11-14 (``SILAS_PORTAL_ALL_CLIENTS_ENABLED``, default on) every\nproject this route's all_active selection would pick is open in code with\nno flip, so this route matters mostly for turning ONE project off:\n``enable=false`` writes the flag FALSE AND stamps\n``projects.silas_portal_disabled_at`` in one update (the explicit-off\nmarker the default respects); ``enable=true`` clears the marker.\n\nSafety contract:\n  * ``dry_run`` DEFAULTS to True — the default call lists what WOULD change\n    (id, client_name, current flag state) and writes nothing.\n  * ``scope=\"all_active\"`` selects active paying clients only: lifecycle\n    NOT in the canonical excluded set (complete/paused/abandoned), never\n    the Dictate platform project, never a test-fixture author registered in\n    waiting_new_content_excluded_emails. Fixture matching is belt and\n    braces: the linked Author's canonical email_normalized (the durable\n    identity) AND the legacy projects.client_email (which may go stale\n    after verified address changes) are both checked — a hit on EITHER\n    excludes. The allowlist and author reads FAIL CLOSED — if either\n    cannot be loaded, the bulk run is refused (503).\n  * ``scope=\"project\"`` targets one explicit id and bypasses those\n    exclusions (Day-1 rollout enables fixtures through exactly this path).\n  * Idempotent: projects already in the requested state are counted in\n    ``already_enabled`` and never re-written.\n  * Real runs report a READ-BACK: each changed row is re-queried and the\n    response carries the state the database now holds, never the intent.\n    A write failure is an ``errors`` entry; a write that landed whose\n    confirming re-read then failed goes in ``changed_unverified`` — the\n    flag IS changed, so it is never reported as \"failed\" (which would\n    invite a retry/manual flip) and never claimed as a verified state.\n  * Real runs are audited: the structlog event names the affected project\n    ids (capped inline) and each changed project gets a best-effort\n    project_events row tying X-Admin-Actor to the flip.\n\nAuth: router-level verify_admin_key (X-Admin-Key). This route can enable an\nAI surface for every paying client; it must never move out from under that\ndependency.","operationId":"admin_silas_enablement_admin_clients_silas_enablement_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasEnablementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasEnablementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/checkin-brief":{"post":{"tags":["admin"],"summary":"Admin Generate Checkin Brief","description":"Manually (re)generate the sales check-in brief from completed interviews.\n\nBypasses the check-in window gate so a brief can be produced on demand\nbefore a rep call even late in the project.","operationId":"admin_generate_checkin_brief_admin_clients__project_id__checkin_brief_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Generate Checkin Brief Admin Clients  Project Id  Checkin Brief Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}":{"get":{"tags":["admin"],"summary":"Get Client Detail","description":"Full project detail with interviews and chapters.","operationId":"get_client_detail_admin_clients__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/pipeline":{"get":{"tags":["admin"],"summary":"Get Pipeline Status","description":"Pipeline status showing progress through each stage.","operationId":"get_pipeline_status_admin_clients__project_id__pipeline_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/material-notes":{"get":{"tags":["admin"],"summary":"Get Client Material Notes","description":"Advisory policy notes on this author's uploads in use (GH #7228).","operationId":"get_client_material_notes_admin_clients__project_id__material_notes_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Client Material Notes Admin Clients  Project Id  Material Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/launch-plan":{"get":{"tags":["admin"],"summary":"Get Client Launch Plan","description":"Launch forecast for one project, plus the rep's read-aloud briefing.\n\nDark behind ``settings.book_launch_plan_enabled``: while the flag is off\nthis 404s, the same posture the author-facing portal surface takes, so ops\nand the author see the feature appear at the same moment.\n\nREAD-ONLY ON PURPOSE (standing decision 2026-08-31). There is deliberately\nno write route beside this one: a rep computes and recommends, and only the\nAUTHOR saves her own target, because the launch window is her public voice\nand not ours. Anyone hunting for an admin override is looking for something\nthat does not exist by design — walk her to the portal instead.\n\nThe payload itself is built by ``launch_plan_admin_payload`` and shared with\nthe ``/ops`` mirror, so an admin and a rep are never shown different dates.","operationId":"get_client_launch_plan_admin_clients__project_id__launch_plan_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Client Launch Plan Admin Clients  Project Id  Launch Plan Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/about-the-author":{"post":{"tags":["admin"],"summary":"Admin Set About The Author","description":"Print the author's own bio on the book's About the Author page.\n\nUnlike the publishing-metadata endpoint above, the details stay approved\n(her words are her approval, like a Book Matter edit), so the compiler\nprints it; when compiled files exist ONE book-file re-render starts and\nthe finish-line flow asks her to approve the updated files. ``dry_run``\nwrites nothing. Iolanda Johnson, 2026-10-16.","operationId":"admin_set_about_the_author_admin_clients__project_id__about_the_author_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AboutAuthorBioRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set About The Author Admin Clients  Project Id  About The Author Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/publishing-metadata":{"post":{"tags":["admin"],"summary":"Admin Update Publishing Metadata","description":"Ops entry point for publishing metadata (ISBN assignment, pricing).\n\nTHE pipeline mechanism for ops-assigned Dictate Press ISBNs (see\ndocs/publishing-ops-runbook.md): after registering an ISBN with Bowker,\nops inject it here. Works identically for every project — no per-book\nmanual steps.\n\nApproval cascade (deliberate choice): ops injection of metadata resets\npreviously approved metadata to 'draft' and bumps the version, exactly\nlike the portal PUT, so the author re-approves the final metadata\n(including the ISBN) before the next compile renders it into the book.","operationId":"admin_update_publishing_metadata_admin_clients__project_id__publishing_metadata_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsPublishingMetadataUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Update Publishing Metadata Admin Clients  Project Id  Publishing Metadata Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/products":{"post":{"tags":["admin"],"summary":"Admin Create Product","description":"Create a new product in the catalog.","operationId":"admin_create_product_admin_products_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"Admin List Products","description":"List all products (including inactive by default).","operationId":"admin_list_products_admin_products_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Inactive"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductListResponse"},"title":"Response Admin List Products Admin Products Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/products/{product_id}":{"get":{"tags":["admin"],"summary":"Admin Get Product","description":"Get a single product by ID.","operationId":"admin_get_product_admin_products__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Admin Update Product","description":"Update a product and invalidate the cache.","operationId":"admin_update_product_admin_products__product_id__put","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Admin Delete Product","description":"Soft-delete a product (set is_active=False) and invalidate the cache.","operationId":"admin_delete_product_admin_products__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-users":{"get":{"tags":["admin"],"summary":"Admin List Ops Users","operationId":"admin_list_ops_users_admin_ops_users_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpsUserResponse"},"title":"Response Admin List Ops Users Admin Ops Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Create Ops User","operationId":"admin_create_ops_user_admin_ops_users_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOpsUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-users/{user_id}/status":{"post":{"tags":["admin"],"summary":"Admin Update Ops User Status","operationId":"admin_update_ops_user_status_admin_ops_users__user_id__status_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsUserStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/init-ledger":{"post":{"tags":["admin"],"summary":"Admin Init Fulfillment Ledger","description":"Queue fulfillment ledger initialization for a project.\n\nDefaults to the project's own package_tier and package_version.\nPass explicit tier/version to override.","operationId":"admin_init_fulfillment_ledger_admin_clients__project_id__init_ledger_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InitLedgerRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Init Fulfillment Ledger Admin Clients  Project Id  Init Ledger Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/maintenance/resync-podcast-counts":{"post":{"tags":["admin"],"summary":"Admin Resync Podcast Counts","description":"Retroactively resync podcast_pitches counts to live entitlement caps.\n\nIterates active projects on the outreach-bearing tiers (authority_launch /\nauthority_engine / authority_command) and recounts each project's\n``podcast_pitches`` ledger metadata against its live entitlement cap. This\nis a metadata-only reconciliation — statuses are never changed. Defaults to\n``dry_run=true`` (reports staleness, writes nothing); pass\n``dry_run=false`` to persist the recount.","operationId":"admin_resync_podcast_counts_admin_maintenance_resync_podcast_counts_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Dry Run"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resync Podcast Counts Admin Maintenance Resync Podcast Counts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/ops-suppressions":{"post":{"tags":["admin"],"summary":"Admin Create Ops Suppression","description":"Stop ticketing one class (or every class) for this author for N days.\n\nA standing order: ``enqueue_ambiguity`` consults it before dedupe, so the\nmatching producers never mint a row. Money and unmapped-purchase classes are\nrefused (422). Capped at 90 days. Kill switch: OPS_TICKET_SUPPRESSIONS_ENABLED.","operationId":"admin_create_ops_suppression_admin_clients__project_id__ops_suppressions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsSuppressionCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Create Ops Suppression Admin Clients  Project Id  Ops Suppressions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"Admin List Ops Suppressions","description":"Active standing orders for this author (revoked and expired are omitted).","operationId":"admin_list_ops_suppressions_admin_clients__project_id__ops_suppressions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Ops Suppressions Admin Clients  Project Id  Ops Suppressions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/ops-suppressions/{suppression_id}":{"delete":{"tags":["admin"],"summary":"Admin Revoke Ops Suppression","description":"Revoke a standing order. Tickets for that class resume on the next producer run.","operationId":"admin_revoke_ops_suppression_admin_clients__project_id__ops_suppressions__suppression_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"suppression_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suppression Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Revoke Ops Suppression Admin Clients  Project Id  Ops Suppressions  Suppression Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/legal-profile/reminders/pause":{"post":{"tags":["admin"],"summary":"Admin Pause Legal Profile Reminders","description":"Stop asking this author for their business mailing address.\n\nTwo systems ask for it — the daily checklist ladder and the author-request\nladder — and before this route the only lever was a global kill switch. The\npause is written on the profile row both of them read, so an author who\nsays \"I already gave you that\" stops hearing it within one tick. Saving a\ncomplete address makes the pause moot; /resume clears it.","operationId":"admin_pause_legal_profile_reminders_admin_clients__project_id__legal_profile_reminders_pause_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalProfileReminderPauseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Pause Legal Profile Reminders Admin Clients  Project Id  Legal Profile Reminders Pause Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/legal-profile/reminders/resume":{"post":{"tags":["admin"],"summary":"Admin Resume Legal Profile Reminders","description":"Start asking this author for their mailing address again.\n\nClears the pause, its reason and its author together, so a stale reason can\nnever outlive the decision it explained.","operationId":"admin_resume_legal_profile_reminders_admin_clients__project_id__legal_profile_reminders_resume_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resume Legal Profile Reminders Admin Clients  Project Id  Legal Profile Reminders Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/request-from-author":{"post":{"tags":["admin"],"summary":"Admin Request From Author For Ticket","description":"Ask the author for one thing and park this ticket in waiting_author.\n\nSends through the notification pipeline (quiet hours, consent, timezone),\nreminds on the registry ladder, and returns the ticket to the person lane\nwhen the ladder is spent. Kill switches: AUTHOR_REQUESTS_ENABLED /\nAUTHOR_REQUESTS_DRY_RUN. 409 when the same ask is open, the author has 3\nopen asks, or the input is already supplied.","operationId":"admin_request_from_author_for_ticket_admin_ops_queue__item_id__request_from_author_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequestCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Request From Author For Ticket Admin Ops Queue  Item Id  Request From Author Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/{task_id}/request-from-author":{"post":{"tags":["admin"],"summary":"Admin Request From Author For Va Task","description":"Ask the author for the input a checklist row is waiting on; the row gets\na note now and moves to pending once the input lands.","operationId":"admin_request_from_author_for_va_task_admin_va_tasks__task_id__request_from_author_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequestCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Request From Author For Va Task Admin Va Tasks  Task Id  Request From Author Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/author-requests/templates":{"get":{"tags":["admin"],"summary":"Admin List Author Request Templates","description":"The picker's menu: every request type with its prompt, form kind and\nladder. Declared BEFORE the listing so a future `/author-requests/{id}` GET\ncannot swallow the literal path.","operationId":"admin_list_author_request_templates_admin_author_requests_templates_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Author Request Templates Admin Author Requests Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/author-requests":{"get":{"tags":["admin"],"summary":"Admin List Author Requests","description":"Requests tab: ``status`` = one status, ``open`` (sent+reminded), or omitted for all.","operationId":"admin_list_author_requests_admin_author_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Status"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Author Requests Admin Author Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/author-requests/{request_id}/remind":{"post":{"tags":["admin"],"summary":"Admin Remind Author Request","description":"Remind now (ignores the due time, never the ladder cap).","operationId":"admin_remind_author_request_admin_author_requests__request_id__remind_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Remind Author Request Admin Author Requests  Request Id  Remind Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/author-requests/{request_id}/cancel":{"post":{"tags":["admin"],"summary":"Admin Cancel Author Request","description":"Withdraw the ask; a parked ticket returns to the team with a system line.","operationId":"admin_cancel_author_request_admin_author_requests__request_id__cancel_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequestCancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Cancel Author Request Admin Author Requests  Request Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/author-requests/{request_id}/mark-fulfilled":{"post":{"tags":["admin"],"summary":"Admin Mark Author Request Fulfilled","description":"A person confirms the author supplied it (call, DM, paper).","operationId":"admin_mark_author_request_fulfilled_admin_author_requests__request_id__mark_fulfilled_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequestMarkFulfilledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Mark Author Request Fulfilled Admin Author Requests  Request Id  Mark Fulfilled Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/deliverables":{"get":{"tags":["admin"],"summary":"Admin Get Deliverables","description":"Fulfillment summary for a project — counts + deliverable list.\n\nEach deliverable row carries ``stuck``/``age_hours`` so VA/ops UIs can\nflag rows that sat in an active status past the threshold (WF2-D8).","operationId":"admin_get_deliverables_admin_clients__project_id__deliverables_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Deliverables Admin Clients  Project Id  Deliverables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/deliverables/{deliverable_id}/approve-asset":{"post":{"tags":["admin"],"summary":"Admin Approve Package Asset","description":"Approve a generated package/upgrade asset for client delivery.","operationId":"admin_approve_package_asset_admin_clients__project_id__deliverables__deliverable_id__approve_asset_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"approved_by","in":"query","required":false,"schema":{"type":"string","default":"admin","title":"Approved By"}},{"name":"notes","in":"query","required":false,"schema":{"type":"string","default":"","title":"Notes"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpsChecklistAttestation"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Approve Package Asset Admin Clients  Project Id  Deliverables  Deliverable Id  Approve Asset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/deliverables/{deliverable_id}/retry":{"post":{"tags":["admin"],"summary":"Admin Retry Deliverable","description":"Reset a failed deliverable to pending, increment attempt, and re-dispatch.","operationId":"admin_retry_deliverable_admin_clients__project_id__deliverables__deliverable_id__retry_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Retry Deliverable Admin Clients  Project Id  Deliverables  Deliverable Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/graphics-byline":{"post":{"tags":["admin"],"summary":"Admin Set Graphics Byline","description":"Save an author's exact graphics byline and re-render her graphics (GH #10739).","operationId":"admin_set_graphics_byline_admin_clients__project_id__graphics_byline_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphicsBylineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Graphics Byline Admin Clients  Project Id  Graphics Byline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/media-kit/rebuild-unreleased-draft":{"post":{"tags":["admin"],"summary":"Admin Rebuild Unreleased Media Kit","description":"Rebuild an early media kit no author has seen, on the current generator.\n\nOnly a silent, not client-ready, undelivered early draft is rebuilt; the\nrebuild stays silent (no author notice). Anything else is refused with a\nreason (409), so a released kit is never replaced from here.","operationId":"admin_rebuild_unreleased_media_kit_admin_clients__project_id__media_kit_rebuild_unreleased_draft_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaKitDraftRebuildRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Rebuild Unreleased Media Kit Admin Clients  Project Id  Media Kit Rebuild Unreleased Draft Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/deliverables/{deliverable_id}/diagnostics":{"get":{"tags":["admin"],"summary":"Admin Deliverable Diagnostics","description":"Diagnostics for a deliverable — QA result, retry eligibility, suggested action.","operationId":"admin_deliverable_diagnostics_admin_clients__project_id__deliverables__deliverable_id__diagnostics_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Deliverable Diagnostics Admin Clients  Project Id  Deliverables  Deliverable Id  Diagnostics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stranded-chapter-drafts":{"get":{"tags":["admin"],"summary":"Admin Stranded Chapter Drafts Report","description":"Report (dry run) every chapter draft stranded after its write (GH #9833).\n\nRead-only: lists rows the ``chapters.recover_stranded_drafts`` sweep would\nact on, plus idle in_progress rows it skips and why.","operationId":"admin_stranded_chapter_drafts_report_admin_stranded_chapter_drafts_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Stranded Chapter Drafts Report Admin Stranded Chapter Drafts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/deliverables/{deliverable_id}/recover-stranded":{"post":{"tags":["admin"],"summary":"Admin Recover Stranded Chapter Draft","description":"Report, resume or fail ONE stranded chapter draft (GH #9833 ops command).\n\n``resume`` re-enqueues the delivery step with the row's own dispatch claim\n(no re-write), ``fail`` marks the row failed so ``.../retry`` applies.\nRefuses (409) a row that is not stranded right now, with the reason.","operationId":"admin_recover_stranded_chapter_draft_admin_clients__project_id__deliverables__deliverable_id__recover_stranded_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StrandedChapterDraftRecoverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Recover Stranded Chapter Draft Admin Clients  Project Id  Deliverables  Deliverable Id  Recover Stranded Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deliverables/{project_id}/{deliverable_id}/set-status":{"post":{"tags":["admin"],"summary":"Admin Set Deliverable Status","description":"Manually close a stuck deliverable row to complete/skipped.\n\nCloses the \"perma-pending rows are unfixable without SQL\" gap. Guardrails:\n- only ``complete`` or ``skipped`` (enforced by the Pydantic model),\n- only for non-dispatchable types OR rows currently pending/in_progress,\n- never regresses a ``delivered`` row,\n- fully audit-logged (project event + metadata entry with actor/reason/ts).","operationId":"admin_set_deliverable_status_admin_deliverables__project_id___deliverable_id__set_status_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableSetStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Deliverable Status Admin Deliverables  Project Id   Deliverable Id  Set Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deliverables/failed":{"get":{"tags":["admin"],"summary":"Admin Failed Deliverables","description":"List all failed deliverables across projects with aggregated counts.","operationId":"admin_failed_deliverables_admin_deliverables_failed_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":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Failed Deliverables Admin Deliverables Failed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/deliverables/retry-all":{"post":{"tags":["admin"],"summary":"Admin Retry All Failed","description":"Retry all failed deliverables for a project.","operationId":"admin_retry_all_failed_admin_clients__project_id__deliverables_retry_all_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Retry All Failed Admin Clients  Project Id  Deliverables Retry All Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/reprocess-document":{"post":{"tags":["admin"],"summary":"Admin Reprocess Document","description":"Re-trigger Docling processing for an uploaded document.\n\nUse when a document upload succeeded (file is in R2) but the Celery\ntask was never enqueued or failed and exhausted retries.","operationId":"admin_reprocess_document_admin_clients__project_id__reprocess_document_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentReprocessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reprocess Document Admin Clients  Project Id  Reprocess Document Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/replan":{"post":{"tags":["admin"],"summary":"Admin Replan","description":"Re-plan a book outline, and say honestly which path was taken.\n\nThis used to unconditionally enqueue ``planning.run_pipeline`` and return\n``{\"status\": \"queued\"}``. That pipeline short-circuits the moment an outline\nand chapters exist, so on EVERY project past planning — i.e. every project an\noperator would ever want to re-plan — the route reported success and did\nnothing. The admin UI showed a queued task that was already a no-op.\n\nTwo real paths now, chosen by what the project actually needs:\n\n* no outline yet -> the initial pipeline, which is what it is for;\n* outline exists -> ``planning.regenerate_from_brief``, which re-plans\n  against the committed marketing profile through the revision rail.\n\n``mode`` forces one (``pipeline`` / ``brief``) for the rare case an operator\nknows better. The response always names the task that was actually enqueued.","operationId":"admin_replan_admin_clients__project_id__replan_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"auto","title":"Mode"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Replan Admin Clients  Project Id  Replan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/reprocess-interview/{interview_id}":{"post":{"tags":["admin"],"summary":"Admin Reprocess Interview","description":"Re-trigger the post-call pipeline for a specific interview.","operationId":"admin_reprocess_interview_admin_clients__project_id__reprocess_interview__interview_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reprocess Interview Admin Clients  Project Id  Reprocess Interview  Interview Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/voice-dna-update/{interview_id}":{"post":{"tags":["admin"],"summary":"Admin Voice Dna Update","description":"Re-trigger voice DNA update for a specific interview.","operationId":"admin_voice_dna_update_admin_clients__project_id__voice_dna_update__interview_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Voice Dna Update Admin Clients  Project Id  Voice Dna Update  Interview Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/launch-kit":{"post":{"tags":["admin"],"summary":"Admin Trigger Launch Kit","description":"Queue launch kit generation for a project.","operationId":"admin_trigger_launch_kit_admin_clients__project_id__launch_kit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Launch Kit Admin Clients  Project Id  Launch Kit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/graphics-package":{"post":{"tags":["admin"],"summary":"Admin Trigger Graphics Package","description":"Queue graphics package generation for a project.","operationId":"admin_trigger_graphics_package_admin_clients__project_id__graphics_package_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Graphics Package Admin Clients  Project Id  Graphics Package Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/aplus-checkout-link":{"post":{"tags":["admin"],"summary":"Admin Mint Aplus Checkout Link","description":"Mint a $399 A+ Content Pack Stripe checkout link for a project.\n\nThe portal route (``POST /api/checkout/aplus``) requires the author's\nproject JWT, so sales/ops cannot generate purchase links from it (codex\nA4-R1 P1: without this route the paid add-on has no reachable purchase\npath until a portal buy-button ships). Every entitlement/price guard lives\nin the shared builder, so the two surfaces cannot drift. The returned URL\nis Stripe-hosted and safe to send to the author directly.","operationId":"admin_mint_aplus_checkout_link_admin_clients__project_id__aplus_checkout_link_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Mint Aplus Checkout Link Admin Clients  Project Id  Aplus Checkout Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/aplus-pack":{"post":{"tags":["admin"],"summary":"Admin Trigger Aplus Pack","description":"Queue Amazon A+ Content Pack generation for a project.\n\nDark by default: 404s while ``aplus_pack_enabled`` is off (mirrors the\nanthology gate). The task itself also no-ops when the flag is off, so a\nstray retry never runs while the surface is dark.\n\nOptional JSON body ``{\"asin\": \"B0ABC1234D\"}`` supplies the live Amazon ASIN\n(normally absent — an ASIN does not exist until Amazon publishes the book).\nWhen present it overrides the catalog lookup for the pack/cowork ASIN.","operationId":"admin_trigger_aplus_pack_admin_clients__project_id__aplus_pack_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AplusPackTriggerRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Aplus Pack Admin Clients  Project Id  Aplus Pack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/ads-cowork/intake":{"post":{"tags":["admin"],"summary":"Admin Record Ads Cowork Intake","description":"Record the Amazon Ads Cowork intake and queue the kit build.\n\nThis is the step the runbook used to describe as a Python shell call. The\nVA (or a rep) supplies the author's budget comfort level, category, and\nASINs; the kit generator pulls keywords, prices and audience from the\ndata Dictate already persists. Returns ``queued`` with the Celery task id,\nor ``recorded`` when ``generate`` is false. 404s an unknown project and\n404s while the feature flag is off.","operationId":"admin_record_ads_cowork_intake_admin_clients__project_id__ads_cowork_intake_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsCoworkIntakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Record Ads Cowork Intake Admin Clients  Project Id  Ads Cowork Intake Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/ads-cowork":{"get":{"tags":["admin"],"summary":"Admin Get Ads Cowork","description":"Return the ads cowork kit row(s) for a project. 404s an unknown project.","operationId":"admin_get_ads_cowork_admin_clients__project_id__ads_cowork_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Ads Cowork Admin Clients  Project Id  Ads Cowork Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/asins":{"get":{"tags":["admin"],"summary":"Admin Get Asins","description":"Return the per-format ASINs recorded for a project.\n\n404s an unknown project. The stored ASINs are the single source of truth\nthat every A+ pack bakes in and the portal surfaces read-only.","operationId":"admin_get_asins_admin_clients__project_id__asins_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Asins Admin Clients  Project Id  Asins Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Record Asins","description":"Record a book's per-format ASINs (staff capture path).\n\nAdditive-only: a NEW format is added; an existing format's ASIN is never\nsilently overwritten (same format + different ASIN is a conflict returned to\nthe caller). ``force=true`` overwrites a conflicting format deliberately.\nReturns ``{recorded, conflicts, skipped, forced}``. 404s an unknown project.","operationId":"admin_record_asins_admin_clients__project_id__asins_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAsinsRecordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Record Asins Admin Clients  Project Id  Asins Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/published":{"post":{"tags":["admin"],"summary":"Admin Record Book Published","description":"Record that the book is on Amazon (finish line, staff path).\n\nWrites ``projects.published_at`` / ASIN / launch date, merges the ASIN into\n``publishing_metadata.asins`` and moves the manuscript files to delivered so\n``delivery -> complete`` can fire. Idempotent. 404s an unknown project.","operationId":"admin_record_book_published_admin_clients__project_id__published_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookPublishedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Record Book Published Admin Clients  Project Id  Published Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/finish-line-canary/start":{"post":{"tags":["admin"],"summary":"Admin Start Finish Line Canary","description":"Seed this week's finish-line test book now (idempotent per ISO week).","operationId":"admin_start_finish_line_canary_admin_finish_line_canary_start_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Start Finish Line Canary Admin Finish Line Canary Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/finish-line-canary/{project_id}/check":{"post":{"tags":["admin"],"summary":"Admin Check Finish Line Canary","description":"Run one canary check now: observed stages, author actions, result.","operationId":"admin_check_finish_line_canary_admin_finish_line_canary__project_id__check_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Check Finish Line Canary Admin Finish Line Canary  Project Id  Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/artifact-trio/{artifact_slug}":{"post":{"tags":["admin"],"summary":"Admin Trigger Artifact Trio","description":"Queue one Author Artifact Trio deliverable for a project (Plan 04).\n\nDark by default: 404s while the track's flag is off (mirrors the A+ gate).\nEach task also no-ops when its flag is off, so a stray retry never runs\nwhile the surface is dark.","operationId":"admin_trigger_artifact_trio_admin_clients__project_id__artifact_trio__artifact_slug__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"artifact_slug","in":"path","required":true,"schema":{"type":"string","title":"Artifact Slug"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Artifact Trio Admin Clients  Project Id  Artifact Trio  Artifact Slug  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/cover-vote-slug/rename":{"post":{"tags":["admin"],"summary":"Admin Rename Cover Vote Slug","description":"Rename a project's public cover-vote / pre-launch slug (title changed).\n\nThe slug is otherwise immutable. This is the one sanctioned mutation: the\noutgoing slug is retired into ``cover_vote_slug_aliases``, so every link\nalready shared keeps resolving and permanently redirects to the new URL.\nNothing else stores the slug string (R2 assets are keyed by project id), so\nno asset is orphaned.\n\n409 when another project already owns the requested slug (canonically or as\nan alias); 404 for an unknown project; 422 for a slug that normalizes away.\nSynchronous: two bounded DB round-trips, no AI, no Celery.","operationId":"admin_rename_cover_vote_slug_admin_projects__project_id__cover_vote_slug_rename_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverVoteSlugRenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Rename Cover Vote Slug Admin Projects  Project Id  Cover Vote Slug Rename Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/weekly-digest":{"post":{"tags":["admin"],"summary":"Admin Trigger Weekly Digest","description":"Queue weekly digest generation for a project (bypasses subscription gate).","operationId":"admin_trigger_weekly_digest_admin_clients__project_id__weekly_digest_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Weekly Digest Admin Clients  Project Id  Weekly Digest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/social-digest":{"post":{"tags":["admin"],"summary":"Admin Trigger Social Digest","description":"Operator-friendly alias for the recurring social digest recovery path.","operationId":"admin_trigger_social_digest_admin_clients__project_id__social_digest_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Social Digest Admin Clients  Project Id  Social Digest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/infographics":{"post":{"tags":["admin"],"summary":"Admin Trigger Infographics","description":"Queue infographics package generation for a project.","operationId":"admin_trigger_infographics_admin_clients__project_id__infographics_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Infographics Admin Clients  Project Id  Infographics Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companion/digest/run":{"post":{"tags":["admin"],"summary":"Admin Run Companion Digest","description":"Enqueue the companion morning digest (manual verification trigger).\n\nThe task itself no-ops when companion_digest_enabled is off or config is\nincomplete, so this is always safe to fire.","operationId":"admin_run_companion_digest_admin_companion_digest_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Run Companion Digest Admin Companion Digest Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/platform/daily-post":{"post":{"tags":["admin"],"summary":"Admin Trigger Platform Daily Post","description":"Manually trigger daily platform social post generation.","operationId":"admin_trigger_platform_daily_post_admin_platform_daily_post_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Platform Daily Post Admin Platform Daily Post Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/subscriptions":{"get":{"tags":["admin"],"summary":"Admin Project Subscriptions","description":"List all subscriptions for a project (any status).","operationId":"admin_project_subscriptions_admin_clients__project_id__subscriptions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Project Subscriptions Admin Clients  Project Id  Subscriptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscriptions/active":{"get":{"tags":["admin"],"summary":"Admin Active Subscriptions","description":"List all active subscriptions, optionally filtered by product_code.","operationId":"admin_active_subscriptions_admin_subscriptions_active_get","parameters":[{"name":"product_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Code"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Active Subscriptions Admin Subscriptions Active Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/metrics":{"get":{"tags":["admin"],"summary":"Admin Discovery Metrics","description":"Funnel metrics for the discovery pipeline.","operationId":"admin_discovery_metrics_admin_discovery_metrics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Discovery Metrics Admin Discovery Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ai-usage":{"get":{"tags":["admin"],"summary":"Admin Ai Usage Summary","description":"Recent AI usage and estimated spend for launch operators.","operationId":"admin_ai_usage_summary_admin_ai_usage_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ai Usage Summary Admin Ai Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/project-costs":{"get":{"tags":["admin"],"summary":"Admin Project Costs Index","description":"List projects with a COGS/profit rollup for the dashboard index.","operationId":"admin_project_costs_index_admin_project_costs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Project Costs Index Admin Project Costs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/project-costs/{project_id}":{"get":{"tags":["admin"],"summary":"Admin Project Cost Summary","description":"Full COGS/profit summary for a single project.","operationId":"admin_project_cost_summary_admin_project_costs__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Project Cost Summary Admin Project Costs  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/project-costs/{project_id}/events":{"get":{"tags":["admin"],"summary":"Admin Project Cost Events","description":"Event-level cost detail for a project (marker rows excluded).","operationId":"admin_project_cost_events_admin_project_costs__project_id__events_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Project Cost Events Admin Project Costs  Project Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/project-costs/{project_id}/human-time":{"post":{"tags":["admin"],"summary":"Admin Add Human Time","description":"Record a manual human-time cost event for founding-cohort analysis.","operationId":"admin_add_human_time_admin_project_costs__project_id__human_time_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanTimeEntry"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Add Human Time Admin Project Costs  Project Id  Human Time Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/project-costs/{project_id}/external-payment":{"post":{"tags":["admin"],"summary":"Admin Record External Payment","operationId":"admin_record_external_payment_admin_project_costs__project_id__external_payment_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalPaymentEntry"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Record External Payment Admin Project Costs  Project Id  External Payment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/leads":{"get":{"tags":["admin"],"summary":"Admin Discovery Leads","description":"List discovery leads with optional status filter.","operationId":"admin_discovery_leads_admin_discovery_leads_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Discovery Leads Admin Discovery Leads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/leads/{lead_id}/events":{"get":{"tags":["admin"],"summary":"Admin Lead Events","description":"Event timeline for a specific lead.","operationId":"admin_lead_events_admin_discovery_leads__lead_id__events_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Lead Events Admin Discovery Leads  Lead Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/sequences":{"get":{"tags":["admin"],"summary":"Admin Discovery Sequences","description":"Active sequence and touch summary.","operationId":"admin_discovery_sequences_admin_discovery_sequences_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Discovery Sequences Admin Discovery Sequences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/leads/{lead_id}/pricing-mode":{"patch":{"tags":["admin"],"summary":"Admin Set Lead Pricing Mode","description":"Toggle Silas pricing behavior for a specific lead.","operationId":"admin_set_lead_pricing_mode_admin_discovery_leads__lead_id__pricing_mode_patch","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingModeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Lead Pricing Mode Admin Discovery Leads  Lead Id  Pricing Mode Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/leads/{lead_id}/cta-variant":{"patch":{"tags":["admin"],"summary":"Admin Set Lead Cta Variant","description":"Toggle blueprint CTA variant for a specific lead.","operationId":"admin_set_lead_cta_variant_admin_discovery_leads__lead_id__cta_variant_patch","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CtaVariantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Lead Cta Variant Admin Discovery Leads  Lead Id  Cta Variant Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/test-call/{lead_id}":{"post":{"tags":["admin"],"summary":"Admin Trigger Test Call","description":"Trigger an outbound discovery call for a lead (admin test helper).","operationId":"admin_trigger_test_call_admin_discovery_test_call__lead_id__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"call_intent","in":"query","required":false,"schema":{"type":"string","default":"sales_discovery","title":"Call Intent"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Test Call Admin Discovery Test Call  Lead Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/leads/{lead_id}/blueprint-completion":{"get":{"tags":["admin"],"summary":"Admin Get Blueprint Completion","description":"Return the safe, transcript-free completion state for one lead.","operationId":"admin_get_blueprint_completion_admin_discovery_leads__lead_id__blueprint_completion_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Blueprint Completion Admin Discovery Leads  Lead Id  Blueprint Completion Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/blueprint-completion/{request_id}/dispatch":{"post":{"tags":["admin"],"summary":"Admin Dispatch Blueprint Completion","description":"Attempt the one consent-gated completion call for an existing request.\n\nThis endpoint cannot record consent or send written outreach.  It only\nreads the separate affirmative-consent ledger at dispatch time, preserving\nthe default-deny boundary between a quality marker and a customer dial.","operationId":"admin_dispatch_blueprint_completion_admin_discovery_blueprint_completion__request_id__dispatch_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Dispatch Blueprint Completion Admin Discovery Blueprint Completion  Request Id  Dispatch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/blueprint-completion/{request_id}/rearm":{"post":{"tags":["admin"],"summary":"Admin Rearm Blueprint Completion","description":"Put a legacy parked/refused completion request back on the AI ladder.\n\nKevin Speir's row (GH #4108) is the shape this exists for: attempt 1 of 1,\nparked by a single voicemail, with no automated path back. Re-arming raises\nthe budget to the configured value and schedules the next attempt into an\nafternoon dial window.\n\nThis dials nobody. It makes the request ELIGIBLE for the retry sweep, which\nre-runs the claim, the opt-out screen, the DNC check and quiet hours before\nanything reaches Vapi.","operationId":"admin_rearm_blueprint_completion_admin_discovery_blueprint_completion__request_id__rearm_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintCompletionRearmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintCompletionRearmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/silas-dial/repair":{"post":{"tags":["admin"],"summary":"Admin Repair Silas Dial","description":"Close out a Silas Marketing Blueprint booking stuck mid-dial (GH #4152).\n\n``manual_review_dial_in_progress`` and the stuck-dialing watchdog both tell\nops to resolve a booking by hand. Until this existed, \"by hand\" meant a\nservice-role SQL shell against ``marketing_onboarding_state``. This is the\nsupported path: close the block terminally (optionally fenced to one exact\nappointment + slot), optionally re-book it, then push the resulting state to\nGHL — the terminal writer does not push by itself.\n\nThis NEVER dials. ``dial_marketing_blueprint_call.delay()`` is deliberately\nnot called here: a re-booked row returns to ``scheduled`` and the\nevery-2-minute dispatcher picks it up behind its full fence (live GHL\nre-check, capacity budget, single-dial claim). Dialing from an admin route\nwould bypass every one of those.\n\nNothing invokes this automatically — not the stuck-dialing watchdog, not the\nbooking poller. An operator asks for it, every time. Send\n``expected_appointment_id`` + ``expected_scheduled_at`` whenever you can:\nthe writer's compare-and-set then refuses to close anything but that exact\nbooking, so a call that went live between your read and this request cannot\nbe cancelled out from under the customer. Omitting the pair closes whatever\nthe row currently holds.","operationId":"admin_repair_silas_dial_admin_projects__project_id__silas_dial_repair_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasDialRepairRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasDialRepairResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reps/slack-map":{"get":{"tags":["admin"],"summary":"Admin Get Rep Slack Map","description":"The GHL-rep -> Slack-user directory, with match provenance (#4109).","operationId":"admin_get_rep_slack_map_admin_reps_slack_map_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Rep Slack Map Admin Reps Slack Map Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reps/{rep_id}/slack-map":{"patch":{"tags":["admin"],"summary":"Admin Patch Rep Slack Map","description":"Correct one directory row by hand and pin it against the nightly sync.","operationId":"admin_patch_rep_slack_map_admin_reps__rep_id__slack_map_patch","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepSlackMapPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Patch Rep Slack Map Admin Reps  Rep Id  Slack Map Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reps/slack-map/sync":{"post":{"tags":["admin"],"summary":"Admin Sync Rep Slack Map","description":"Rebuild the directory from GHL + Slack right now.\n\nDeliberately NOT gated on ``rep_slack_map_sync_enabled``: that flag governs\nthe unattended nightly beat. The first run should be a human pressing this\nand reading the auto/ambiguous counts before anything runs on a schedule.","operationId":"admin_sync_rep_slack_map_admin_reps_slack_map_sync_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Sync Rep Slack Map Admin Reps Slack Map Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/redeliver-blueprint/{lead_id}":{"post":{"tags":["admin"],"summary":"Admin Redeliver Blueprint","description":"Re-render and re-deliver a blueprint for a lead.\n\nUse regenerate=true to re-run premium content generation (Claude + cover image).\nUse regenerate=false (default) to just re-render PDF and re-send email/SMS.","operationId":"admin_redeliver_blueprint_admin_discovery_redeliver_blueprint__lead_id__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"regenerate","in":"query","required":false,"schema":{"type":"boolean","description":"Re-run Claude + Gemini cover before delivery","default":false,"title":"Regenerate"},"description":"Re-run Claude + Gemini cover before delivery"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Redeliver Blueprint Admin Discovery Redeliver Blueprint  Lead Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/regenerate-blueprint/{lead_id}":{"post":{"tags":["admin"],"summary":"Admin Regenerate Blueprint From Corrections","description":"Rebuild a DELIVERED blueprint from the author's newest correction call.\n\nThis is the operator half of GH #2308, and it is deliberately NOT\n``redeliver-blueprint?regenerate=true``. That route hands\n``get_latest_call_by_lead()`` — the latest call of any intent — to the\ngeneration task, which rejects it as an anchor and falls back to the call\nthe blueprint was ORIGINALLY built from. It therefore faithfully reproduces\nthe document the author is complaining about.\n\nThis route resolves the newest grounding-eligible, substantive call that is\nstrictly newer than the blueprint's current grounding, and rebuilds from\nthat. The sufficiency gate, the dispatch lease and the send-fingerprint\ndedupe all still apply; an ineligible ``call_id`` is refused rather than\nhonoured.\n\nThe ``BLUEPRINT_CORRECTION_REGENERATION_ENABLED`` kill switch binds this route\ntoo, and returns 409 ``correction_regeneration_disabled`` (GH #2355). The\nswitch exists to make delivered blueprints immutable during an incident, so an\noperator path that still rebuilt and re-sent them would defeat its purpose.","operationId":"admin_regenerate_blueprint_from_corrections_admin_discovery_regenerate_blueprint__lead_id__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Correction call to rebuild from (defaults to the newest eligible one)","title":"Call Id"},"description":"Correction call to rebuild from (defaults to the newest eligible one)"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Regenerate Blueprint From Corrections Admin Discovery Regenerate Blueprint  Lead Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/leads/{lead_id}/blueprints":{"get":{"tags":["admin"],"summary":"Admin List Lead Blueprints","description":"Every blueprint a person has (one per book idea), oldest first.\n\n``is_current`` marks the one the CRM fields, the rep recap and an Authority\nbook's seed use. Read-only.","operationId":"admin_list_lead_blueprints_admin_discovery_leads__lead_id__blueprints_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Lead Blueprints Admin Discovery Leads  Lead Id  Blueprints Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/leads/{lead_id}/blueprints/{blueprint_id}/make-current":{"post":{"tags":["admin"],"summary":"Admin Make Blueprint Current","description":"Make one of a person's blueprints current (\"she's buying the book for THIS idea\").\n\nThe current blueprint seeds the Authority book at purchase and fills the\nrep's CRM fields. Nothing is regenerated or re-sent to the author. Ownership\nis checked: a blueprint of another lead is a 404.","operationId":"admin_make_blueprint_current_admin_discovery_leads__lead_id__blueprints__blueprint_id__make_current_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"blueprint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Blueprint Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Make Blueprint Current Admin Discovery Leads  Lead Id  Blueprints  Blueprint Id  Make Current Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/reset-regeneration-budget/{lead_id}":{"post":{"tags":["admin"],"summary":"Admin Reset Blueprint Regeneration Budget","description":"Return ONE lead's blueprint-regeneration budget, with a journalled reason.\n\nThe regeneration circuit breaker is keyed on the correction call, so a lead\nwhose two attempts were spent while we were grounding generation WRONG (GH\n#2366 — the correction leg alone, without the discovery leg it supplements)\ncan never be retried automatically. The breaker is working; the inputs\nchanged underneath it. This is the human authority to say \"re-run it under\nthe new logic\", and nothing in the automatic path can grant itself that.\n\nAdmin-key gated like every route on this router, attributed to\n``X-Admin-Actor``, and journalled to ``lead_events`` BEFORE the mutation — a\nfailed journal write refuses the reset. It also clears this lead's\nmanual-review refusal markers, because a ``model_verdict`` marker sits on the\ncorrection call itself and by design only a LATER call can resolve it, so the\nnext attempt would otherwise block on the very refusal the changed grounding\nis meant to overturn.\n\nNo guard is weakened: the next attempt runs the full sufficiency gate over\nthe blended material, the model keeps its refusal branch, and a fresh refusal\nwrites a fresh marker and spends the budget again.","operationId":"admin_reset_blueprint_regeneration_budget_admin_discovery_reset_regeneration_budget__lead_id__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintRegenerationBudgetResetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reset Blueprint Regeneration Budget Admin Discovery Reset Regeneration Budget  Lead Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discovery/backfill-silas-quiz/{lead_id}":{"post":{"tags":["admin"],"summary":"Admin Backfill Silas Quiz","description":"Backfill quiz_responses + blueprint_builder from Silas call data.\n\nUse to test the backfill for a lead that entered via Silas (no quiz).\nDefaults to async Celery task; use sync=true for immediate result.","operationId":"admin_backfill_silas_quiz_admin_discovery_backfill_silas_quiz__lead_id__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Specific call ID (uses latest if omitted)","title":"Call Id"},"description":"Specific call ID (uses latest if omitted)"},{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","description":"Run synchronously instead of via Celery","default":false,"title":"Sync"},"description":"Run synchronously instead of via Celery"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Backfill Silas Quiz Admin Discovery Backfill Silas Quiz  Lead Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-alerts/slack-posts":{"get":{"tags":["admin"],"summary":"Admin List Ops Slack Posts","description":"Alerts send_ops_alert delivered to Slack in the last ``hours``, oldest first.\n\nConsumer: dictate-ops ``run-gate.py`` (``slack_alert_posts``, merged in\ndictate-ops #72) and the hourly/deep sweep prompts. Page with ``offset``\nwhile a page returns ``limit`` rows.\n\nThe hourly autofix runner's gate reads this so every alert Mike sees is\nworked within the hour (Mike, 2026-10-28). Rows carry the event type,\nseverity, subject, project, channel and a ``kind:id`` entity_ref (ids only)\nthe runner traces to the row: no payload, no customer data.\n\nSince 2026-11-02 the feed also carries machine-worked alerts held off Slack\nfor the runner (``transport='held'``, ``slack_machine_alert_live_posts_enabled``):\nno transport filter here, so a held alert is worked exactly like a post.","operationId":"admin_list_ops_slack_posts_admin_ops_alerts_slack_posts_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"default":26,"title":"Hours"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Ops Slack Posts Admin Ops Alerts Slack Posts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue":{"get":{"tags":["admin"],"summary":"Admin List Ops Queue","description":"List ops queue items with optional filters.\n\n``mine=true`` has no meaning on this mirror: the admin identity is a\nself-attested header, not an authenticated session, so \"mine\" would be\nwhatever the caller typed. Filter by ``assigned_to_email`` instead — and\nthe self-attested actor still narrows ``next_actor=you`` for display.","operationId":"admin_list_ops_queue_admin_ops_queue_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"open","title":"Status"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"ambiguity_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ambiguity Class"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"work_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Status"}},{"name":"assigned_to_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Assigned To Email"}},{"name":"next_actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Next Actor"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Ops Queue Admin Ops Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/summary":{"get":{"tags":["admin"],"summary":"Admin Ops Queue Summary","description":"Open item counts grouped by ambiguity class.","operationId":"admin_ops_queue_summary_admin_ops_queue_summary_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ops Queue Summary Admin Ops Queue Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/counts":{"get":{"tags":["admin"],"summary":"Admin Ops Queue Counts","description":"Detailed counts for admin nav badges: total, high priority, by type/priority, oldest age.","operationId":"admin_ops_queue_counts_admin_ops_queue_counts_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ops Queue Counts Admin Ops Queue Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/work-inbox/counts":{"get":{"tags":["admin"],"summary":"Admin Work Inbox Counts","description":"One work area: how much is sitting on a person, in three piles.\n\nTickets, checklist rows and expired author asks live in three stores and\nused to be counted three different ways by whoever needed a badge. Every\nnumber here comes from the function that owns it — the same ones the daily\nSlack digest is built from — so the \"Needs a person\" tile and the morning\ndigest cannot report different mornings.","operationId":"admin_work_inbox_counts_admin_work_inbox_counts_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Work Inbox Counts Admin Work Inbox Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/triage":{"get":{"tags":["admin"],"summary":"Admin Ops Queue Triage","description":"Return lane counts plus one lightweight, server-paginated open lane.","operationId":"admin_ops_queue_triage_admin_ops_queue_triage_get","parameters":[{"name":"lane","in":"query","required":false,"schema":{"type":"string","default":"act_now","title":"Lane"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"ambiguity_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ambiguity Class"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"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"}},{"name":"work_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Status"}},{"name":"assigned_to_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Assigned To Email"}},{"name":"next_actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Next Actor"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ops Queue Triage Admin Ops Queue Triage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/stats":{"get":{"tags":["admin"],"summary":"Admin Ops Queue Stats","description":"AI-vs-human resolution scorecard over a rolling window (verifies the 90% goal).","operationId":"admin_ops_queue_stats_admin_ops_queue_stats_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ops Queue Stats Admin Ops Queue Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-dashboard":{"get":{"tags":["admin"],"summary":"Admin Ops Dashboard","description":"Client-centric command center for admin/ops triage.","operationId":"admin_ops_dashboard_admin_ops_dashboard_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/workspace":{"get":{"tags":["admin"],"summary":"Admin Client Workspace","operationId":"admin_client_workspace_admin_clients__project_id__workspace_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Client Workspace Admin Clients  Project Id  Workspace Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stripe-disputes":{"get":{"tags":["admin"],"summary":"Admin List Stripe Disputes","description":"List current Stripe dispute cases and their human-review status.","operationId":"admin_list_stripe_disputes_admin_stripe_disputes_get","parameters":[{"name":"review_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(pending|reviewed)$"},{"type":"null"}],"default":"pending","title":"Review Status"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Stripe Disputes Admin Stripe Disputes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stripe-disputes/{dispute_id}/decision":{"post":{"tags":["admin"],"summary":"Admin Apply Stripe Dispute Decision","description":"Record an admin decision and optional owner-approved author email.","operationId":"admin_apply_stripe_dispute_decision_admin_stripe_disputes__dispute_id__decision_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Dispute Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeDisputeDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Apply Stripe Dispute Decision Admin Stripe Disputes  Dispute Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stripe-disputes/{dispute_id}/auto-response-preview":{"get":{"tags":["admin"],"summary":"Admin Preview Stripe Dispute Auto Response","description":"Dry run: the accept/counter/escalate decision and the evidence that WOULD go.\n\nReads Stripe, the CRM and the database only. Never uploads, submits,\ncloses, changes a refund or sends an alert.","operationId":"admin_preview_stripe_dispute_auto_response_admin_stripe_disputes__dispute_id__auto_response_preview_get","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^(du|dp)_[A-Za-z0-9]+$","title":"Dispute Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Preview Stripe Dispute Auto Response Admin Stripe Disputes  Dispute Id  Auto Response Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stripe-disputes/{dispute_id}/auto-respond":{"post":{"tags":["admin"],"summary":"Admin Redrive Stripe Dispute Auto Response","description":"Re-run the automatic response for one dispute (the alert's unblock command).\n\nThe task re-reads the dispute and skips it unless it still needs a\nresponse, so a repeat call can never answer twice. ``rebuild=true`` (after\nMike rejected a back-end packet and the builder was fixed) builds a fresh\npacket and sends Mike a new Approve / Reject card.","operationId":"admin_redrive_stripe_dispute_auto_response_admin_stripe_disputes__dispute_id__auto_respond_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^(du|dp)_[A-Za-z0-9]+$","title":"Dispute Id"}},{"name":"rebuild","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Rebuild"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Redrive Stripe Dispute Auto Response Admin Stripe Disputes  Dispute Id  Auto Respond Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stripe-disputes/{dispute_id}/email-recovery":{"post":{"tags":["admin"],"summary":"Admin Recover Stripe Dispute Email","description":"Recover one failed approved email from its dedicated queue item.","operationId":"admin_recover_stripe_dispute_email_admin_stripe_disputes__dispute_id__email_recovery_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Dispute Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeDisputeEmailRecoveryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Recover Stripe Dispute Email Admin Stripe Disputes  Dispute Id  Email Recovery Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/audit":{"get":{"tags":["admin"],"summary":"Admin Ops Audit Log","description":"Audit log of resolved/dismissed ops queue items.\n\nMirror of ``/ops/ops-queue/audit``: same ``resolved_by_kind`` filter\n(applied in the database, before pagination) and the same serializer. It\nused to return ``model_dump``, which is why a closed ticket looked\ndifferent here than in the Closed tab.","operationId":"admin_ops_audit_log_admin_ops_queue_audit_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"resolved_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Resolved By"}},{"name":"resolved_by_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Resolved By Kind"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"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"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Ops Audit Log Admin Ops Queue Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/closed":{"get":{"tags":["admin"],"summary":"Admin List Closed Tickets","description":"Closed tickets, newest first, for the Closed tab.\n\n``mine=true`` resolves against the ``X-Admin-Actor`` header, and ONLY when\nthat header names a real person. The admin identity is self-attested, so an\nanonymous \"mine\" would be nobody's tickets dressed up as somebody's — the\nsame rule ``_admin_ticket_filters`` applies to ``next_actor=you``.","operationId":"admin_list_closed_tickets_admin_ops_queue_closed_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine"}},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":90,"minimum":1},{"type":"null"}],"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"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Closed Tickets Admin Ops Queue Closed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/learnings":{"get":{"tags":["admin"],"summary":"Admin List Learnings","description":"Advisory lessons the AI resolver reads. Mirror of the ops-token route.\n\nDeclared before ``/ops-queue/{item_id}`` so \"learnings\" never parses as an\nitem id.","operationId":"admin_list_learnings_admin_ops_queue_learnings_get","parameters":[{"name":"ambiguity_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Ambiguity Class"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":20,"default":"active","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Learnings Admin Ops Queue Learnings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/learnings/{learning_id}/retire":{"post":{"tags":["admin"],"summary":"Admin Retire Learning","description":"Stop the AI reading one lesson.\n\nRefuses an unnamed actor for the same reason ``/take`` does: \"retired by\nanonymous\" is a record nobody can follow up on, and this changes how the AI\nreasons about a whole ticket class.","operationId":"admin_retire_learning_admin_ops_queue_learnings__learning_id__retire_post","parameters":[{"name":"learning_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Learning Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsLearningRetireRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Retire Learning Admin Ops Queue Learnings  Learning Id  Retire Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/feedback":{"get":{"tags":["admin"],"summary":"Admin Get Ticket Feedback","description":"READ-ONLY mirror of a ticket's rep feedback.\n\nNo POST mirror on purpose: feedback is a named rep's judgment and the shared\nadmin key identifies nobody. An admin-key session sees the latest stored\nverdict and is told to sign in with an ops login to record one.","operationId":"admin_get_ticket_feedback_admin_ops_queue__item_id__feedback_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Ticket Feedback Admin Ops Queue  Item Id  Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}":{"get":{"tags":["admin"],"summary":"Admin Get Ops Item","description":"Get a single ops queue item.","operationId":"admin_get_ops_item_admin_ops_queue__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Ops Item Admin Ops Queue  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/updates":{"get":{"tags":["admin"],"summary":"Admin List Ticket Updates","description":"One page of a ticket's update thread, oldest first.\n\nRows written before the thread existed are read from the legacy notes array\nso a ticket never looks like nobody worked it.","operationId":"admin_list_ticket_updates_admin_ops_queue__item_id__updates_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item 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"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Ticket Updates Admin Ops Queue  Item Id  Updates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/take":{"post":{"tags":["admin"],"summary":"Admin Take Ticket","description":"Take ownership of a ticket as the self-attested admin actor.\n\nRefuses an unnamed actor for the same reason ``/claim`` does: a ticket\nowned by \"anonymous\" is a ticket owned by nobody, which is worse than an\nunowned ticket because it looks handled.","operationId":"admin_take_ticket_admin_ops_queue__item_id__take_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Take Ticket Admin Ops Queue  Item Id  Take Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/reply-to-author":{"post":{"tags":["admin"],"summary":"Admin Reply To Author","description":"Queue a message to the author from the ticket.\n\nReturns ``status: \"queued\"``: the ticket is parked on the author only when\nthe send is confirmed by the delivery leg. See the /ops mirror for why.","operationId":"admin_reply_to_author_admin_ops_queue__item_id__reply_to_author_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reply To Author Admin Ops Queue  Item Id  Reply To Author Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/note-to-team":{"post":{"tags":["admin"],"summary":"Admin Note To Team","description":"Add an internal note. No status change, no customer contact stamp.","operationId":"admin_note_to_team_admin_ops_queue__item_id__note_to_team_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Note To Team Admin Ops Queue  Item Id  Note To Team Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/flag-concierge":{"post":{"tags":["admin"],"summary":"Admin Flag For Concierge","description":"Park a ticket on concierge without taking it away from its owner.","operationId":"admin_flag_for_concierge_admin_ops_queue__item_id__flag_concierge_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketConciergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Flag For Concierge Admin Ops Queue  Item Id  Flag Concierge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/assign-concierge":{"post":{"tags":["admin"],"summary":"Admin Assign To Concierge","description":"Transfer the ticket to the client's concierge (GHL lead owner).","operationId":"admin_assign_to_concierge_admin_ops_queue__item_id__assign_concierge_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketAssignConciergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Assign To Concierge Admin Ops Queue  Item Id  Assign Concierge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/reopen":{"post":{"tags":["admin"],"summary":"Admin Reopen Ticket","description":"Bring a closed ticket back as open and In progress.","operationId":"admin_reopen_ticket_admin_ops_queue__item_id__reopen_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketReopenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reopen Ticket Admin Ops Queue  Item Id  Reopen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/apply-recommendation":{"post":{"tags":["admin"],"summary":"Admin Apply Ops Recommendation","description":"One-click apply of the AI resolver's stored recommendation for this item.","operationId":"admin_apply_ops_recommendation_admin_ops_queue__item_id__apply_recommendation_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpsQueueApplyRecommendationRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Apply Ops Recommendation Admin Ops Queue  Item Id  Apply Recommendation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/clear-ai-quarantine":{"post":{"tags":["admin"],"summary":"Admin Clear Ops Ai Quarantine","description":"Put a quarantined item back in front of the AI resolver.\n\nThe circuit breaker stops the resolver after the same attempt fails twice\nand emits ONE ops alert naming this endpoint. That alert is only honest if\nthe state it announces can actually be drained, so this is the drain: it\nbaselines the counted failure history and lets the next sweep judge the item\nagain. Resolving the item by hand is the other, more common exit.","operationId":"admin_clear_ops_ai_quarantine_admin_ops_queue__item_id__clear_ai_quarantine_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpsQueueClearQuarantineRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Clear Ops Ai Quarantine Admin Ops Queue  Item Id  Clear Ai Quarantine Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/resolve":{"post":{"tags":["admin"],"summary":"Admin Resolve Ops Item","description":"Resolve an ops queue item.","operationId":"admin_resolve_ops_item_admin_ops_queue__item_id__resolve_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resolve Ops Item Admin Ops Queue  Item Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/exclude-material":{"post":{"tags":["admin"],"summary":"Admin Exclude Ops Item Material","description":"Keep a policy-review ticket's material out of the book (author declined).","operationId":"admin_exclude_ops_item_material_admin_ops_queue__item_id__exclude_material_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueExcludeMaterialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Exclude Ops Item Material Admin Ops Queue  Item Id  Exclude Material Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/bulk-resolve":{"post":{"tags":["admin"],"summary":"Admin Bulk Resolve Ops Items","description":"Resolve many ops items at once. When ``project_id`` is supplied, items not\nin that project are rejected (tenant guard for 'resolve all of this client').","operationId":"admin_bulk_resolve_ops_items_admin_ops_queue_bulk_resolve_post","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueBulkResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Bulk Resolve Ops Items Admin Ops Queue Bulk Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/bulk-take":{"post":{"tags":["admin"],"summary":"Admin Bulk Take Ops Items","description":"Take many open tickets as the self-attested admin actor.\n\nRefuses an unnamed actor for the same reason ``/take`` does, and more so:\na batch owned by \"anonymous\" is a page of tickets that all look handled and\nnone of which are.\n\nAnswers 200 with a per-item envelope. A refusal on one ticket (\"Already\nwith Dana since 2 hours ago\") travels inside ``results`` rather than as the\nstatus of the whole request — the operator selected a page, not a\ntransaction.","operationId":"admin_bulk_take_ops_items_admin_ops_queue_bulk_take_post","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueBulkTakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Bulk Take Ops Items Admin Ops Queue Bulk Take Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/bulk-reassign":{"post":{"tags":["admin"],"summary":"Admin Bulk Reassign Ops Items","description":"Hand many open tickets to one named person.\n\nThe FORCE path, in bulk: like the single-item reassign this may overwrite\nan existing owner, which is exactly why it is on the admin router and why\nthe target address is validated against the active rosters before anything\nis written. An unknown address is one 422 for the whole request — half a\nselection moved to nobody is worse than none of it moved.","operationId":"admin_bulk_reassign_ops_items_admin_ops_queue_bulk_reassign_post","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueBulkReassignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Bulk Reassign Ops Items Admin Ops Queue Bulk Reassign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/escalate":{"post":{"tags":["admin"],"summary":"Admin Escalate Ops Item","description":"Escalate an ops queue item to higher priority.","operationId":"admin_escalate_ops_item_admin_ops_queue__item_id__escalate_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueEscalateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Escalate Ops Item Admin Ops Queue  Item Id  Escalate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/note":{"post":{"tags":["admin"],"summary":"Admin Add Ops Note","description":"Add a note to an ops queue item without resolving.","operationId":"admin_add_ops_note_admin_ops_queue__item_id__note_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueAddNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Add Ops Note Admin Ops Queue  Item Id  Note Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/request-approval":{"post":{"tags":["admin"],"summary":"Admin Request Ops Approval","description":"Record a request for an admin to approve an admin-gated action.","operationId":"admin_request_ops_approval_admin_ops_queue__item_id__request_approval_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueRequestApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Request Ops Approval Admin Ops Queue  Item Id  Request Approval Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue-playbooks":{"get":{"tags":["admin"],"summary":"Admin Ops Playbooks","description":"The per-class operator copy registry (single source of truth).","operationId":"admin_ops_playbooks_admin_ops_queue_playbooks_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ops Playbooks Admin Ops Queue Playbooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/editor-pass-complete":{"post":{"tags":["admin"],"summary":"Admin Complete Editor Pass","description":"Wave 4: the \"editor pass complete\" chapter_escalation resolution action.\nSee app/services/human_review_completion.py for ordering/atomicity.","operationId":"admin_complete_editor_pass_admin_ops_queue__item_id__editor_pass_complete_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueEditorPassCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Complete Editor Pass Admin Ops Queue  Item Id  Editor Pass Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/fix-with-ai":{"post":{"tags":["admin"],"summary":"Admin Fix Chapter Ticket With Ai","description":"Admin-key twin of ``POST /ops/ops-queue/{id}/fix-with-ai`` (2026-09-28).\n\nRuns the repair a chapter ticket names — see\napp/services/chapter_escalation_self_heal.py. No model call in the request.","operationId":"admin_fix_chapter_ticket_with_ai_admin_ops_queue__item_id__fix_with_ai_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Fix Chapter Ticket With Ai Admin Ops Queue  Item Id  Fix With Ai Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/redrive-author-ask":{"post":{"tags":["admin"],"summary":"Admin Redrive Author Ask","description":"Run the grounded-answer ladder again on an author ask a person holds.\n\nHumans last (2026-10-13): known answers, package-asset rewrites and told\ncapability gaps no longer need a rep. This releases the rep's claim and\ndispatches ``ops.answer_author_question``; no model call runs here.","operationId":"admin_redrive_author_ask_admin_ops_queue__item_id__redrive_author_ask_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Redrive Author Ask Admin Ops Queue  Item Id  Redrive Author Ask Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/claim":{"post":{"tags":["admin"],"summary":"Admin Claim Ops Item","description":"Advisory-claim an open, UNCLAIMED ops item as the self-attested actor.\n\nNot a lock — resolving without a claim stays allowed. See\napp/api/routes/ops.py for the VA/rep mirror (stamps the authenticated\ntoken email — a real, non-self-attested identity).\n\nAdversarial review batch 2 FIX 15: this used to accept ``claimed_by`` in\nthe request body — any admin-key holder could claim AS an arbitrary\nidentity, including impersonating a specific rep. ``claimed_by`` is now\nALWAYS the self-attested ``X-Admin-Actor`` header, matching the trust\nmodel the rest of this router already uses for attribution (fields like\n``resolved_by``/``escalated_by`` are body-supplied because THIS caller\nnames who acted; a claim is different — it must name THIS caller, not\nwhoever they type in). An anonymous/unnamed actor is refused (same\npattern as ``admin_mint_portal_link``) rather than claiming as\n\"anonymous\", which would make the claim meaningless. To assign a\nspecific OTHER person, use the explicit reassign endpoint, which is\nunambiguously a force-assign and keeps its body field.","operationId":"admin_claim_ops_item_admin_ops_queue__item_id__claim_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Claim Ops Item Admin Ops Queue  Item Id  Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/release":{"post":{"tags":["admin"],"summary":"Admin Release Ops Item","description":"Release the advisory claim on an ops item.\n\nFIX 35 (#3883): constrained to OPEN rows — a resolved item's\nclaimed_by/claimed_at is assignment history, not a live claim to clear.","operationId":"admin_release_ops_item_admin_ops_queue__item_id__release_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Release Ops Item Admin Ops Queue  Item Id  Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue/{item_id}/reassign":{"post":{"tags":["admin"],"summary":"Admin Reassign Ops Item","description":"Reassign the advisory claim to a specific staff/rep email.\n\nThe one explicit FORCE path (only_if_unclaimed=False) — this is the\nadmin-privileged router already (verify_admin_key), and reassigning to a\nnamed third party is unambiguously the intent of this specific route.","operationId":"admin_reassign_ops_item_admin_ops_queue__item_id__reassign_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueReassignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reassign Ops Item Admin Ops Queue  Item Id  Reassign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-reps":{"get":{"tags":["admin"],"summary":"Admin List Support Reps","description":"List the rep roster the round-robin rotator assigns from (all, not just active).","operationId":"admin_list_support_reps_admin_support_reps_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Support Reps Admin Support Reps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Create Support Rep","operationId":"admin_create_support_rep_admin_support_reps_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportRepCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Create Support Rep Admin Support Reps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-reps/checkin-calendar/preview":{"post":{"tags":["admin"],"summary":"Admin Preview Checkin Calendar","description":"Dry run for a rep who is NOT saved yet: what adding them would do in GHL.\n\nReads GHL (users, calendars) and writes nothing, so a second rep can be\nchecked before anyone is created.","operationId":"admin_preview_checkin_calendar_admin_support_reps_checkin_calendar_preview_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportRepCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Preview Checkin Calendar Admin Support Reps Checkin Calendar Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/checkin-calls/falloff-preview":{"get":{"tags":["admin"],"summary":"Admin Checkin Falloff Preview","description":"Dry run of Silas's check-in sweep: who would be booked, why, with whom, when.\n\nReads prod data and GHL free slots; writes nothing.","operationId":"admin_checkin_falloff_preview_admin_checkin_calls_falloff_preview_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Checkin Falloff Preview Admin Checkin Calls Falloff Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-reps/{rep_id}/checkin-calendar/close":{"post":{"tags":["admin"],"summary":"Admin Close Checkin Calendar","description":"Close a rep's check-in calendar to new bookings (retryable).","operationId":"admin_close_checkin_calendar_admin_support_reps__rep_id__checkin_calendar_close_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Close Checkin Calendar Admin Support Reps  Rep Id  Checkin Calendar Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-reps/{rep_id}/checkin-calendar":{"post":{"tags":["admin"],"summary":"Admin Provision Checkin Calendar","description":"Create/link this rep's GHL check-in calendar and push their hours (Retry).\n\n``rename=true`` also renames an existing calendar to its role's name\n(\"Book Launch Call w/ ...\" / \"Launch Setup Help w/ ...\"); a plain Retry\nnever renames, so a calendar named by hand in GHL keeps its name.","operationId":"admin_provision_checkin_calendar_admin_support_reps__rep_id__checkin_calendar_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"rename","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Rename"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Provision Checkin Calendar Admin Support Reps  Rep Id  Checkin Calendar Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-reps/{rep_id}":{"patch":{"tags":["admin"],"summary":"Admin Update Support Rep","operationId":"admin_update_support_rep_admin_support_reps__rep_id__patch","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportRepUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Update Support Rep Admin Support Reps  Rep Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Admin Delete Support Rep","operationId":"admin_delete_support_rep_admin_support_reps__rep_id__delete","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Delete Support Rep Admin Support Reps  Rep Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/portal-link":{"post":{"tags":["admin"],"summary":"Admin Mint Portal Link","description":"Mint an audited magic link into this author's own portal.\n\nSupport staff use this to SEE what the author sees. The minted session is\nindistinguishable from the author's own — anything done inside the portal\nis attributed to the author — so every mint writes an audit row naming who\nminted it for which project (``app/services/staff_portal_access.py``).\n\nFAIL CLOSED ON ATTRIBUTION. ``get_admin_actor`` is self-attested and\ndefaults to \"anonymous\", and the browser's ``admin_session`` cookie is an\nHMAC over the SHARED ``ADMIN_API_KEY`` with no person attached — so an\nadmin-UI mint would audit as \"anonymous\" and the audit trail, the only\ncontrol this feature has, would name nobody. Refuse rather than hand out an\nuntraceable customer session; the ops-token mirror carries a real\n``ops_users`` identity and is the supported path for humans.\n\nDeliberately scoped to THIS route: ~163 other admin routes share the same\nself-attested actor, and tightening all of them is a separate decision. This\nis the only one that hands out a customer's own session.","operationId":"admin_mint_portal_link_admin_clients__project_id__portal_link_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"redirect","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Redirect"}},{"name":"as_co_author","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"As Co Author"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Mint Portal Link Admin Clients  Project Id  Portal Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/materials/{project_id}/{material_id}/retraction-preview":{"get":{"tags":["admin"],"summary":"Admin Material Retraction Preview","description":"What removing this upload would take away. Read-only.\n\nUsed before touching a customer's book — the numbers here (chapters,\ntraining-data chunks, whether onboarding goes incomplete) are the ones the\nauthor sees in her own dialog.","operationId":"admin_material_retraction_preview_admin_materials__project_id___material_id__retraction_preview_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaterialRetractionPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/materials/{project_id}/{material_id}/retract":{"post":{"tags":["admin"],"summary":"Admin Retract Material","description":"Remove an upload on an author's behalf, or re-drive a failed removal.\n\nSame ledger, same task, same receipt as the portal button — only\n``requested_by`` differs, so a support-initiated removal is never\nindistinguishable from one the author made herself.\n\nAlso the documented unblock command: the exhaustion alert\n(``_escalate_exhausted`` in ``app.tasks.material_retraction``) names this\nroute, so a ``failed`` row is re-dispatched here rather than refused.","operationId":"admin_retract_material_admin_materials__project_id___material_id__retract_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRetractMaterialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetractMaterialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/materials/{project_id}/{material_id}/retractions/{retraction_id}/cancel":{"post":{"tags":["admin"],"summary":"Admin Cancel Material Retraction","description":"Stop a removal that has not destroyed anything yet, and release the hold.\n\nDeliberately NOT gated on ``MATERIAL_RETRACTION_ENABLED``. An unresolved\nrow freezes the whole project (chapters cannot be written or edited), and\nturning the feature off is exactly when a stuck row needs releasing — a\nkill switch that also disables the release valve is a trap.\n\nRefused once any destructive step has run: chapters, vectors and Docs are\nalready gone by then, and pretending otherwise would leave the project\nrunning against a book that no longer matches its own state.","operationId":"admin_cancel_material_retraction_admin_materials__project_id___material_id__retractions__retraction_id__cancel_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}},{"name":"retraction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Retraction Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRetractionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetractionState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/repair-options":{"get":{"tags":["admin"],"summary":"Admin Get Repair Options","description":"Return repair-console context and admin-available actions for a project.","operationId":"admin_get_repair_options_admin_clients__project_id__repair_options_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"source_ops_item_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Ops Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Repair Options Admin Clients  Project Id  Repair Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/repair-actions":{"post":{"tags":["admin"],"summary":"Admin Run Repair Action","description":"Run a repair-console action with admin privileges.","operationId":"admin_run_repair_action_admin_clients__project_id__repair_actions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsRepairActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Run Repair Action Admin Clients  Project Id  Repair Actions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-signoff/{project_id}/{gate}":{"get":{"tags":["admin"],"summary":"Admin Get Ops Signoff","description":"Get the current state for an ops signoff gate.","operationId":"admin_get_ops_signoff_admin_ops_signoff__project_id___gate__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"gate","in":"path","required":true,"schema":{"type":"string","title":"Gate"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Ops Signoff Admin Ops Signoff  Project Id   Gate  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-signoff/{project_id}/{gate}/approve":{"post":{"tags":["admin"],"summary":"Admin Approve Ops Signoff","description":"Approve an ops signoff gate and continue the blocked workflow.","operationId":"admin_approve_ops_signoff_admin_ops_signoff__project_id___gate__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"gate","in":"path","required":true,"schema":{"type":"string","title":"Gate"}},{"name":"approved_by","in":"query","required":false,"schema":{"type":"string","default":"admin","title":"Approved By"}},{"name":"notes","in":"query","required":false,"schema":{"type":"string","default":"","title":"Notes"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpsChecklistAttestation"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Approve Ops Signoff Admin Ops Signoff  Project Id   Gate  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/artifact-finalization":{"get":{"tags":["admin"],"summary":"Admin Get Artifact Finalization","description":"Return compiled/frozen/approved artifact state for ops.","operationId":"admin_get_artifact_finalization_admin_clients__project_id__artifact_finalization_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Artifact Finalization Admin Clients  Project Id  Artifact Finalization Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/distribution-readiness":{"get":{"tags":["admin"],"summary":"Admin Get Distribution Readiness","description":"Return KDP/Lulu distribution readiness for ops.","operationId":"admin_get_distribution_readiness_admin_clients__project_id__distribution_readiness_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Distribution Readiness Admin Clients  Project Id  Distribution Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/fulfillment-pipeline":{"get":{"tags":["admin"],"summary":"Admin Get Fulfillment Pipeline","description":"Return consolidated post-book fulfillment status for ops.","operationId":"admin_get_fulfillment_pipeline_admin_clients__project_id__fulfillment_pipeline_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Fulfillment Pipeline Admin Clients  Project Id  Fulfillment Pipeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/fulfillment-pipeline/seed":{"post":{"tags":["admin"],"summary":"Admin Seed Fulfillment Pipeline","description":"Seed and optionally dispatch missing post-book fulfillment work.","operationId":"admin_seed_fulfillment_pipeline_admin_clients__project_id__fulfillment_pipeline_seed_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentPipelineSeedRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Seed Fulfillment Pipeline Admin Clients  Project Id  Fulfillment Pipeline Seed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/fulfillment-pipeline/probe":{"get":{"tags":["admin"],"summary":"Admin Probe Fulfillment Pipeline","description":"Return who produces every deliverable this project's package plans.","operationId":"admin_probe_fulfillment_pipeline_admin_clients__project_id__fulfillment_pipeline_probe_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Probe Fulfillment Pipeline Admin Clients  Project Id  Fulfillment Pipeline Probe Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/whole-book-review/rerun":{"post":{"tags":["admin"],"summary":"Admin Rerun Whole Book Review","description":"Rerun the final whole-book review after fixes or author answers.","operationId":"admin_rerun_whole_book_review_admin_clients__project_id__whole_book_review_rerun_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Rerun Whole Book Review Admin Clients  Project Id  Whole Book Review Rerun Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/whole-book-review/author-response":{"post":{"tags":["admin"],"summary":"Admin Record Whole Book Review Author Response","description":"Attach an Ops-entered author answer to the active review block.","operationId":"admin_record_whole_book_review_author_response_admin_clients__project_id__whole_book_review_author_response_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WholeBookReviewAuthorResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Record Whole Book Review Author Response Admin Clients  Project Id  Whole Book Review Author Response Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/whole-book-review/blockers/{issue_id}/override":{"post":{"tags":["admin"],"summary":"Admin Override Whole Book Review Blocker","description":"Clear ONE final-review blocker instead of the whole set.\n\nThe all-or-nothing override below refuses unless the caller sends every\nblocking issue id, so an operator who could clear five of six blockers could\nclear none of them. Per Mike's 2026-08-28 directive, each blocker is worked\non its own; when the last open one closes, this resumes compilation exactly\nthe way the full override does.","operationId":"admin_override_whole_book_review_blocker_admin_clients__project_id__whole_book_review_blockers__issue_id__override_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","title":"Issue Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WholeBookReviewBlockerOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Override Whole Book Review Blocker Admin Clients  Project Id  Whole Book Review Blockers  Issue Id  Override Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/whole-book-review/blockers/{issue_id}/apply-fix":{"post":{"tags":["admin"],"summary":"Admin Apply Whole Book Review Blocker Fix","description":"Re-arm the AI resolver for one blocker without waiting for a sweep.","operationId":"admin_apply_whole_book_review_blocker_fix_admin_clients__project_id__whole_book_review_blockers__issue_id__apply_fix_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","title":"Issue Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WholeBookReviewBlockerFixRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Apply Whole Book Review Blocker Fix Admin Clients  Project Id  Whole Book Review Blockers  Issue Id  Apply Fix Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/whole-book-review/override":{"post":{"tags":["admin"],"summary":"Admin Override Whole Book Review Block","description":"Approve a blocked whole-book review and resume manuscript compilation.","operationId":"admin_override_whole_book_review_block_admin_clients__project_id__whole_book_review_override_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WholeBookReviewOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Override Whole Book Review Block Admin Clients  Project Id  Whole Book Review Override Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/materials/{project_id}/ai-review":{"get":{"tags":["admin"],"summary":"Admin List Material Ai Reviews","description":"List internal material policy review statuses for ops dashboard.","operationId":"admin_list_material_ai_reviews_admin_materials__project_id__ai_review_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Material Ai Reviews Admin Materials  Project Id  Ai Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/materials/{project_id}/full-draft-backfill":{"post":{"tags":["admin"],"summary":"Admin Backfill Author Full Drafts","description":"Queue the full-draft re-classification of one book's recent uploads.\n\nGH #12572 follow-up: uploads analyzed before the analyzer's full-draft\nverdict existed never reach the apply path. ``dry_run`` (default) only\nreports. Kill switch: ``AUTHOR_FULL_DRAFT_BACKFILL_ENABLED``.","operationId":"admin_backfill_author_full_drafts_admin_materials__project_id__full_draft_backfill_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Dry Run"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Backfill Author Full Drafts Admin Materials  Project Id  Full Draft Backfill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/materials/{material_id}/reassign":{"post":{"tags":["admin"],"summary":"Admin Reassign Material","description":"Reassign a material to a different chapter, preserving provenance.","operationId":"admin_reassign_material_admin_materials__material_id__reassign_post","parameters":[{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}},{"name":"chapter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"}},{"name":"target_chapter","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Chapter"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"","title":"Reason"}},{"name":"reassigned_by","in":"query","required":false,"schema":{"type":"string","default":"admin","title":"Reassigned By"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reassign Material Admin Materials  Material Id  Reassign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/escalations":{"get":{"tags":["admin"],"summary":"Admin List Chapter Escalations","description":"List open chapter escalations for a project.\n\nWF1-D108: chapter_escalations was a write-only dead-end — no route, UI, or\nnotification ever surfaced it (30 rows all open in production). This is the\nops read surface; the resolve endpoint below closes the loop.","operationId":"admin_list_chapter_escalations_admin_clients__project_id__escalations_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Chapter Escalations Admin Clients  Project Id  Escalations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/escalations/{escalation_id}/resolve":{"post":{"tags":["admin"],"summary":"Admin Resolve Chapter Escalation","description":"Resolve a single chapter escalation and release any chapters it blocked.\n\nProject-scoped per the Pattern B boundary: the escalation must belong to\n``project_id`` (admin auth is global, so the id is verified against the\npath) — a foreign escalation id 404s.","operationId":"admin_resolve_chapter_escalation_admin_clients__project_id__escalations__escalation_id__resolve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Escalation Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resolve Chapter Escalation Admin Clients  Project Id  Escalations  Escalation Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/figure-qa/repair":{"post":{"tags":["admin"],"summary":"Admin Repair Figure Qa","description":"Human review verdict on a produced visual asset's QA status (WF2-D27).\n\nThe vision QA reviewer flags figures for human review on failure; this is\nthe human pathway. ``approve`` marks the asset qa_status=approved;\n``replace`` points it at an ops-supplied R2 key and approves it. The repair\nis project-scoped at the service layer (a foreign asset id returns\nnot_found → 404) and re-syncs the chapter image plans so the compiler ships\nthe human verdict.","operationId":"admin_repair_figure_qa_admin_clients__project_id__figure_qa_repair_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FigureQaRepairRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Repair Figure Qa Admin Clients  Project Id  Figure Qa Repair Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/materials/{project_id}/policy-review/{material_id}/escalate":{"post":{"tags":["admin"],"summary":"Admin Escalate Material Policy Review","description":"Escalate a flagged material's policy review beyond the silent ops queue.\n\nWF1-D120: flagged materials previously waited on a JSON endpoint + the ops\ndashboard with no alert/escalation timer. This raises the priority of the\nopen material_policy_review ops item for the material (deduped by the\nmaterial id) and fires an ops alert so a human is actually paged.","operationId":"admin_escalate_material_policy_review_admin_materials__project_id__policy_review__material_id__escalate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaterialPolicyEscalateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Escalate Material Policy Review Admin Materials  Project Id  Policy Review  Material Id  Escalate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/publishing-assistance":{"post":{"tags":["admin"],"summary":"Admin Request Publishing Assistance","description":"Trigger assisted publishing fallback for a project.\n\nCreates an ops queue item and sends the author a notification.\nassistance_type: 'guided' (walk-through) or 'managed' (we do it).","operationId":"admin_request_publishing_assistance_admin_clients__project_id__publishing_assistance_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"platform","in":"query","required":true,"schema":{"type":"string","title":"Platform"}},{"name":"assistance_type","in":"query","required":false,"schema":{"type":"string","default":"guided","title":"Assistance Type"}},{"name":"issue","in":"query","required":false,"schema":{"type":"string","default":"","title":"Issue"}},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Request Publishing Assistance Admin Clients  Project Id  Publishing Assistance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/fallback/config":{"get":{"tags":["admin"],"summary":"Admin Fallback Config","description":"Current feature flag values for all fallback subsystems.","operationId":"admin_fallback_config_admin_fallback_config_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Fallback Config Admin Fallback Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/provider-events":{"get":{"tags":["admin"],"summary":"Admin Provider Events","description":"Provider-routing events from the project audit log.\n\nFilters project_events for fallback, provider-routing, and\nhigh-friction events. Read-only view — project_events remains\nthe canonical source of truth.","operationId":"admin_provider_events_admin_clients__project_id__provider_events_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Provider Events Admin Clients  Project Id  Provider Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/fallback/summary":{"get":{"tags":["admin"],"summary":"Admin Fallback Summary","description":"Aggregate fallback usage stats across all projects.\n\nScans project_events for provider-routing events in the given window\nand returns counts grouped by event type and provider.","operationId":"admin_fallback_summary_admin_fallback_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Fallback Summary Admin Fallback Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-health":{"get":{"tags":["admin"],"summary":"Admin Ops Health","description":"Evaluate all ops alert thresholds and return current health status.\n\nReturns:\n    {healthy: bool, alerts: [...], checked_at: ISO-8601}","operationId":"admin_ops_health_admin_ops_health_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ops Health Admin Ops Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/social/{project_id}/readiness":{"get":{"tags":["admin"],"summary":"Admin Social Readiness","description":"Social readiness state for a project — channels, GHL location/user, flags.","operationId":"admin_social_readiness_admin_social__project_id__readiness_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Social Readiness Admin Social  Project Id  Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-setup":{"get":{"tags":["admin"],"summary":"Admin Client Setup Queue","description":"List client setup areas that require ops attention.","operationId":"admin_client_setup_queue_admin_client_setup_get","parameters":[{"name":"workflow_state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientSetupSummary"},"title":"Response Admin Client Setup Queue Admin Client Setup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-setup/{project_id}":{"get":{"tags":["admin"],"summary":"Admin Client Setup Detail","description":"Detailed setup state for a single client project.","operationId":"admin_client_setup_detail_admin_client_setup__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSetupDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/social/{project_id}/ghl-oauth-install":{"get":{"tags":["admin"],"summary":"Admin Social Ghl Oauth Install","description":"Generate the client GHL OAuth install link for a project.","operationId":"admin_social_ghl_oauth_install_admin_social__project_id__ghl_oauth_install_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Social Ghl Oauth Install Admin Social  Project Id  Ghl Oauth Install Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/social/{project_id}/assets":{"get":{"tags":["admin"],"summary":"Admin Social Assets","description":"Per-asset detail for a project: tags, quality, selection ranking, and tier.\n\nSurfaces the data ops/support needs to explain why a particular image\nwas personalized, brand-only, or generic without reading logs.","operationId":"admin_social_assets_admin_social__project_id__assets_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Social Assets Admin Social  Project Id  Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/social/{project_id}/ghl-setup":{"post":{"tags":["admin"],"summary":"Admin Ghl Setup","description":"Ops endpoint to set per-project GHL identity (location + user).\n\nBody:\n    {\"ghl_location_id\": \"...\", \"ghl_user_id\": \"...\"}\n\nAt least one field is required. Sets the project's social_readiness\nrecord and advances state to awaiting_client_auth or ready_for_publish\ndepending on existing state.","operationId":"admin_ghl_setup_admin_social__project_id__ghl_setup_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminGHLSetupRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ghl Setup Admin Social  Project Id  Ghl Setup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/social/{project_id}/ghl-setup/paused-workflows":{"post":{"tags":["admin"],"summary":"Admin Ghl Setup Paused Workflows","description":"Record which snapshot workflows this client has paused ON PURPOSE.\n\nRead by ``ghl_setup_verify._read_paused_workflows`` (through\n``snapshot_workflow_state``): a listed workflow no longer fails the client's\nsetup row for sitting in Draft, and the browser agent that publishes drafts\nnever clicks it either. It is an allow-list of EXACT names, never a\nmute-all — anything not listed still fails, and a name outside the\n``DICTATE | `` prefix is inert because neither reader looks at those\nworkflows in the first place.\n\nDeliberately separate from ``POST .../ghl-setup``: that endpoint recomputes\nreadiness state and can COMPLETE the setup VA row. Noting a paused workflow\nmust never do either, so this writes the one metadata key and stops.","operationId":"admin_ghl_setup_paused_workflows_admin_social__project_id__ghl_setup_paused_workflows_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"actor_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Actor Email"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPausedWorkflowsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ghl Setup Paused Workflows Admin Social  Project Id  Ghl Setup Paused Workflows Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/social/{project_id}/posts":{"get":{"tags":["admin"],"summary":"Admin Social Posts","description":"Social post list for a project with optional status/channel filter.","operationId":"admin_social_posts_admin_social__project_id__posts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Social Posts Admin Social  Project Id  Posts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/social/{project_id}/video-assets":{"get":{"tags":["admin"],"summary":"Admin Video Assets","description":"Video deliverable assets for a project — status, download eligibility.","operationId":"admin_video_assets_admin_social__project_id__video_assets_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Video Assets Admin Social  Project Id  Video Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/research":{"get":{"tags":["admin"],"summary":"Get Research Status","description":"Get research brief status and summary for a project.","operationId":"get_research_status_admin_projects__project_id__research_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Research Status Admin Projects  Project Id  Research Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/research/trigger":{"post":{"tags":["admin"],"summary":"Trigger Research","description":"Manually trigger research for a project (admin).","operationId":"trigger_research_admin_projects__project_id__research_trigger_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","pattern":"^(book|chapter)$","default":"book","title":"Scope"}},{"name":"chapter_number","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Research Admin Projects  Project Id  Research Trigger Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/social-media/status":{"get":{"tags":["admin"],"summary":"Admin Social Media Status","description":"Comprehensive social/media readiness and status for a project.\n\nReturns subscription state, recent post stats, deliverable status for\nvideo/narration, publish failures, and blocked reasons.","operationId":"admin_social_media_status_admin_clients__project_id__social_media_status_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Social Media Status Admin Clients  Project Id  Social Media Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/video/render":{"post":{"tags":["admin"],"summary":"Admin Trigger Video Render","description":"Admin trigger for video render (bypasses subscription gate).","operationId":"admin_trigger_video_render_admin_clients__project_id__video_render_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"reels","title":"Channel"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Video Render Admin Clients  Project Id  Video Render Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/voice-lifecycle":{"get":{"tags":["admin"],"summary":"Admin Voice Lifecycle","description":"Comprehensive voice lifecycle diagnostic for admin/support.\n\nReturns profile state, failure history, narration readiness, asset counts,\nand a suggested next action for support staff.","operationId":"admin_voice_lifecycle_admin_clients__project_id__voice_lifecycle_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Voice Lifecycle Admin Clients  Project Id  Voice Lifecycle Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/voice-lifecycle/retry-clone":{"post":{"tags":["admin"],"summary":"Admin Retry Voice Clone","description":"Admin-triggered retry for a failed voice clone.\n\nOnly allowed when setup_state is ``clone_failed``. Resets the state to\n``consent_granted`` and re-dispatches the clone task.","operationId":"admin_retry_voice_clone_admin_clients__project_id__voice_lifecycle_retry_clone_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Retry Voice Clone Admin Clients  Project Id  Voice Lifecycle Retry Clone Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice-lifecycle/failed":{"get":{"tags":["admin"],"summary":"Admin List Failed Voice Profiles","description":"List all voice profiles in failed or blocked states across projects.\n\nUsed by the ops dashboard to monitor voice clone health and identify\nprojects that need support intervention.","operationId":"admin_list_failed_voice_profiles_admin_voice_lifecycle_failed_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Failed Voice Profiles Admin Voice Lifecycle Failed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/leads/{lead_id}/deliverables":{"get":{"tags":["admin"],"summary":"Admin Lead Deliverables","description":"Inspect all SLO deliverables for a lead with status breakdown.","operationId":"admin_lead_deliverables_admin_leads__lead_id__deliverables_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Lead Deliverables Admin Leads  Lead Id  Deliverables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/leads/{lead_id}/continuity-preview":{"get":{"tags":["admin"],"summary":"Admin Continuity Preview","description":"Preview the continuity payload that would carry into a project on conversion.\n\nShows SLO deliverables, discovery context, and enrichment data\nexactly as they would be copied during convert_lead_to_project().","operationId":"admin_continuity_preview_admin_leads__lead_id__continuity_preview_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Continuity Preview Admin Leads  Lead Id  Continuity Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-deliverables/failed":{"get":{"tags":["admin"],"summary":"Admin Failed Lead Deliverables","description":"List all failed lead deliverables across leads for ops triage.","operationId":"admin_failed_lead_deliverables_admin_lead_deliverables_failed_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Failed Lead Deliverables Admin Lead Deliverables Failed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-deliverables/stale":{"get":{"tags":["admin"],"summary":"Admin Stale Lead Deliverables","description":"List SLO deliverables stuck in 'generating' state past threshold.","operationId":"admin_stale_lead_deliverables_admin_lead_deliverables_stale_get","parameters":[{"name":"max_age_hours","in":"query","required":false,"schema":{"type":"integer","maximum":24,"minimum":1,"default":1,"title":"Max Age Hours"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Stale Lead Deliverables Admin Lead Deliverables Stale Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-deliverables/{deliverable_id}/retry":{"post":{"tags":["admin"],"summary":"Admin Retry Lead Deliverable","description":"Reset a failed lead deliverable to pending for re-processing.","operationId":"admin_retry_lead_deliverable_admin_lead_deliverables__deliverable_id__retry_post","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Retry Lead Deliverable Admin Lead Deliverables  Deliverable Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/webhooks/{webhook_event_id}/replay":{"post":{"tags":["admin"],"summary":"Admin Replay Webhook","description":"Replay a failed or stuck webhook event by re-enqueuing its Celery task.\n\nSupports GHL purchase webhooks, waiting-portal provisioning events, and a\nfail-closed SmartLead EMAIL_REPLY recovery. SmartLead recovery only stores\nthe inbound reply in the manual-review queue; it cannot classify, send,\nnotify, sync to GHL, or otherwise mutate an external provider.","operationId":"admin_replay_webhook_admin_webhooks__webhook_event_id__replay_post","parameters":[{"name":"webhook_event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WebhookReplayRequest"},{"type":"null"}],"title":"Replay"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Replay Webhook Admin Webhooks  Webhook Event Id  Replay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/backend-package-deposit":{"post":{"tags":["admin"],"summary":"Admin Record Backend Package Deposit","description":"Record a v6 package deposit whose money landed on another Stripe lane.\n\nFrom the 2026-08-25 Wilbur Belton incident: the buyer paid a $500 locking\ndeposit on the generic Stripe link, so no deposit webhook ever carried\npackage metadata and the commitment never landed. Recovery meant\nhand-calling the commit function against production. This action is that\nrecovery — it enqueues the SAME commit path the webhook uses, so the\nproject row, the marketing-profile commitment block, the unlock event, the\nGHL sequence push and the service-agreement tags all match a real deposit.\n\nRecording NEVER charges anything: the money leg already ran on the lane\nthat captured it (its processing-fee row was recorded there too). This only\nstamps the commitment the customer paid for.\n\nThe duplicate guard below is best-effort BY DESIGN. The task re-checks after\nthe queue hop, and a same-tier double-submit is a no-op via the commit's own\nalready-committed early return. Do not harden this into a distributed lock.","operationId":"admin_record_backend_package_deposit_admin_projects__project_id__backend_package_deposit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendPackageDepositRecordRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Record Backend Package Deposit Admin Projects  Project Id  Backend Package Deposit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waiting-deposits/{webhook_event_id}/repair":{"post":{"tags":["admin"],"summary":"Admin Repair Waiting Deposit","description":"Finish provisioning a Stripe waiting-portal deposit that was parked.\n\nWhen a deposit link's metadata cannot produce a usable waiting track (no\ntarget package, a tier that contradicts the payer's state, an invalid\npayload), the Stripe handler records the money, stores the provisioning\nattempt terminally as ``ignored`` and alerts. The generic replay endpoint\ndeliberately refuses those rows — replaying the same bad payload just\nre-mints the same rejection. This action is the way forward: it merges\nthese overrides over the LIVE Stripe session metadata and re-runs\nprovisioning.\n\nRepairing NEVER charges anything. The money leg already ran; this only\ncreates the waiting-portal enrollment the customer paid for.","operationId":"admin_repair_waiting_deposit_admin_waiting_deposits__webhook_event_id__repair_post","parameters":[{"name":"webhook_event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WaitingDepositRepairRequest"},{"type":"null"}],"title":"Repair"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Repair Waiting Deposit Admin Waiting Deposits  Webhook Event Id  Repair Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waiting-new-content-authors/{author_id}/coalesce":{"post":{"tags":["admin"],"summary":"Admin Coalesce Waiting New Content Signals","description":"Fold an author's never-attempted unlock days into the newest one.\n\nOnly rows that never reached GHL are touched. The survivor is left exactly\nas it was and the rest become `coalesced`, a receipt both the source\nselection and discovery honour — so the folded days are never re-inserted\nand the author gets ONE nudge covering them, not one per queued day.","operationId":"admin_coalesce_waiting_new_content_signals_admin_waiting_new_content_authors__author_id__coalesce_post","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Coalesce Waiting New Content Signals Admin Waiting New Content Authors  Author Id  Coalesce Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waiting-new-content-authors/{author_id}/remove-tag":{"post":{"tags":["admin"],"summary":"Admin Remove Waiting New Content Tag","description":"Remove the stuck shared GHL tag under the author recovery lock.\n\nRemoving a tag no workflow consumes unblocks the QUEUE; it does not deliver\nanything. Report the author as recovered only once the workflow's own\n`Dictate Waiting New Content Sent On` stamp (or a conversation entry) proves\na nudge actually went out.","operationId":"admin_remove_waiting_new_content_tag_admin_waiting_new_content_authors__author_id__remove_tag_post","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WaitingNewContentTagRemovalRequest"},{"type":"null"}],"title":"Removal"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Remove Waiting New Content Tag Admin Waiting New Content Authors  Author Id  Remove Tag Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waiting-new-content-signals/{signal_id}/recover":{"post":{"tags":["admin"],"summary":"Admin Recover Waiting New Content Signal","description":"Revive one tag-blocked dead letter without wiping its provider evidence.\n\nRefuses any row that actually reached GHL — use the generation-fenced\nrequeue RPC for those, after adjudicating the provider history.","operationId":"admin_recover_waiting_new_content_signal_admin_waiting_new_content_signals__signal_id__recover_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Signal Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Recover Waiting New Content Signal Admin Waiting New Content Signals  Signal Id  Recover Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/va-tasks":{"get":{"tags":["admin"],"summary":"Admin List Va Tasks","description":"List VA tasks for a project, optionally filtered by status.","operationId":"admin_list_va_tasks_admin_clients__project_id__va_tasks_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Va Tasks Admin Clients  Project Id  Va Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks":{"get":{"tags":["admin"],"summary":"Admin List All Va Tasks","description":"List VA tasks across all projects.\n\nEvery row carries ``journey_ready`` (``now`` | ``later`` | ``unknown``) —\nwhether the author has reached the point where a by-hand row is doable.\nIt is stamped in ``list_va_tasks``, BELOW this route and the ``/ops``\nmirror, so the checklist page reads the database's answer rather than\nre-deriving the stage map in TypeScript.","operationId":"admin_list_all_va_tasks_admin_va_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List All Va Tasks Admin Va Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/counts":{"get":{"tags":["admin"],"summary":"Admin Va Task Counts","description":"Count VA tasks by status for filter badges.","operationId":"admin_va_task_counts_admin_va_tasks_counts_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Va Task Counts Admin Va Tasks Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/by-client":{"get":{"tags":["admin"],"summary":"Admin Va Tasks By Client","description":"Per-client checklist progress: delivered vs owed, in ONE GROUP BY.\n\nThe by-client page folds a page of task rows in the browser today and has\nto say on screen that it only saw the oldest 400. This counts the whole\npopulation per project instead, so \"delivered 4 of 11\" is the real eleven.\n\n``waiting`` EXCLUDES ``upcoming`` here — a review row blocked on a\ndeliverable for a book still being written is not work anybody can do, and\nevery one of the 203 live blocked rows is exactly that. The split is\ndecided by ``va_task_readiness.PRE_SHIP_LIFECYCLE_STATES``, the same set\nthe per-row enricher reads, passed into the RPC so the two cannot drift.\n\nNOTE FOR THE UI (B5-ii): these counts are DISJOINT and sum to ``owed``.\n``TabBuckets`` in ``task-work.ts`` is deliberately different — there\n``waiting`` is the Waiting tab's row list and ``upcoming`` is a SLICE of\nit, because carving the rows out of the tab before the page can render\nthem would hide 203 rows of paid work. The two reconcile as\n``buckets.waiting.length - buckets.upcoming.length == clients[].waiting``.\n\nJOURNEY SPLIT (2026-09-15). ``needs_person`` is further split by whether\nthe AUTHOR has reached the point where the row is doable:\n``needs_person_now + queued_by_journey + journey_unknown ==\nneeds_person``, with ``needs_person_past_due`` a slice of\n``needs_person_now`` only. The rule is ``public.va_task_journey_ready``,\nread here through ``va_task_client_rollup_v2`` and by the per-row flag on\n``GET /admin/va-tasks`` — one definition, four readers. Rows come back\nordered by ``needs_person_now`` first: \"whose package is stalling\" is about\nwork somebody could be doing today.","operationId":"admin_va_tasks_by_client_admin_va_tasks_by_client_get","parameters":[{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Va Tasks By Client Admin Va Tasks By Client Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/assets/{deliverable_id}/review":{"get":{"tags":["admin"],"summary":"Admin Get Va Task Asset Review","description":"Readable review payload for a VA task's generated source asset.","operationId":"admin_get_va_task_asset_review_admin_va_tasks_assets__deliverable_id__review_get","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Va Task Asset Review Admin Va Tasks Assets  Deliverable Id  Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/assets/{deliverable_id}/request-rewrite":{"post":{"tags":["admin"],"summary":"Admin Request Va Task Asset Rewrite","description":"Request an AI rewrite for a generated VA source asset.","operationId":"admin_request_va_task_asset_rewrite_admin_va_tasks_assets__deliverable_id__request_rewrite_post","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATaskAssetRewriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Request Va Task Asset Rewrite Admin Va Tasks Assets  Deliverable Id  Request Rewrite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/va-tasks/summary":{"get":{"tags":["admin"],"summary":"Admin Va Task Summary","description":"Status summary of VA tasks for ops dashboards.","operationId":"admin_va_task_summary_admin_clients__project_id__va_tasks_summary_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Va Task Summary Admin Clients  Project Id  Va Tasks Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/va-tasks/init":{"post":{"tags":["admin"],"summary":"Admin Init Va Tasks","description":"Initialize VA tasks for a project based on its tier.\n\nIdempotent: active task templates are protected by a partial unique index.\n\n``restart=true`` re-admits templates whose task was completed or ops-skipped.\nIt defaults to false for the book-level tiers so that clicking this button on\na live project cannot reopen work a VA already closed; pass it explicitly\nwhen the work genuinely starts again.","operationId":"admin_init_va_tasks_admin_clients__project_id__va_tasks_init_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"restart","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Restart"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Init Va Tasks Admin Clients  Project Id  Va Tasks Init Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/{task_id}/start":{"post":{"tags":["admin"],"summary":"Admin Start Va Task","description":"Move a VA task from pending to in_progress.","operationId":"admin_start_va_task_admin_va_tasks__task_id__start_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Start Va Task Admin Va Tasks  Task Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/{task_id}/complete":{"post":{"tags":["admin"],"summary":"Admin Complete Va Task","description":"Mark a VA task as completed.","operationId":"admin_complete_va_task_admin_va_tasks__task_id__complete_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Complete Va Task Admin Va Tasks  Task Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/{task_id}/skip":{"post":{"tags":["admin"],"summary":"Admin Skip Va Task","description":"Skip a VA task with optional reason.","operationId":"admin_skip_va_task_admin_va_tasks__task_id__skip_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"","title":"Reason"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Skip Va Task Admin Va Tasks  Task Id  Skip Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/{task_id}/unblock":{"post":{"tags":["admin"],"summary":"Admin Unblock Va Task","description":"Manually unblock a VA task (override dependency).","operationId":"admin_unblock_va_task_admin_va_tasks__task_id__unblock_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Unblock Va Task Admin Va Tasks  Task Id  Unblock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/{task_id}/assign":{"post":{"tags":["admin"],"summary":"Admin Assign Va Task","description":"Assign or clear a VA task owner.","operationId":"admin_assign_va_task_admin_va_tasks__task_id__assign_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATaskAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Assign Va Task Admin Va Tasks  Task Id  Assign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/va-tasks/{task_id}/note":{"post":{"tags":["admin"],"summary":"Admin Add Va Task Note","description":"Add an operator note to a VA task.","operationId":"admin_add_va_task_note_admin_va_tasks__task_id__note_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATaskNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Add Va Task Note Admin Va Tasks  Task Id  Note Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/tokens":{"get":{"tags":["admin"],"summary":"Admin List Ghl Tokens","description":"List all known GHL OAuth token rows.","operationId":"admin_list_ghl_tokens_admin_ghl_tokens_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GHLOAuthTokenAdminResponse"},"title":"Response Admin List Ghl Tokens Admin Ghl Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/usage":{"get":{"tags":["admin"],"summary":"Admin Ghl Usage","description":"Top GHL consumers (task|METHOD path) for a UTC day, plus the quota reading (GH #12131).","operationId":"admin_ghl_usage_admin_ghl_usage_get","parameters":[{"name":"day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{8}$"},{"type":"null"}],"title":"Day"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ghl Usage Admin Ghl Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/agency-install-link":{"get":{"tags":["admin"],"summary":"Admin Get Ghl Agency Install Link","description":"Generate a signed install link for the agency provisioning app.","operationId":"admin_get_ghl_agency_install_link_admin_ghl_agency_install_link_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Ghl Agency Install Link Admin Ghl Agency Install Link Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/agency-tokens":{"get":{"tags":["admin"],"summary":"Admin List Ghl Agency Tokens","description":"List all known GHL agency OAuth token rows.","operationId":"admin_list_ghl_agency_tokens_admin_ghl_agency_tokens_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GHLOAuthTokenAdminResponse"},"title":"Response Admin List Ghl Agency Tokens Admin Ghl Agency Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/agency-tokens/{company_id}/refresh":{"post":{"tags":["admin"],"summary":"Admin Refresh Ghl Agency Token","description":"Force-refresh the agency provisioning token for a company.","operationId":"admin_refresh_ghl_agency_token_admin_ghl_agency_tokens__company_id__refresh_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Refresh Ghl Agency Token Admin Ghl Agency Tokens  Company Id  Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/agency-location-token/{location_id}":{"post":{"tags":["admin"],"summary":"Admin Mint Ghl Agency Location Token","description":"Mint a short-lived location-scoped access token via the agency installation.\n\nUsed by trusted internal automation (e.g. the Silas Slack bridge) to reach\nAppendment sub-accounts that have no standing private-integration token.\nMinted tokens are short-lived and intentionally never persisted.","operationId":"admin_mint_ghl_agency_location_token_admin_ghl_agency_location_token__location_id__post","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Mint Ghl Agency Location Token Admin Ghl Agency Location Token  Location Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/tokens/{location_id}":{"get":{"tags":["admin"],"summary":"Admin Get Ghl Tokens For Location","description":"List token rows for a single location.","operationId":"admin_get_ghl_tokens_for_location_admin_ghl_tokens__location_id__get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GHLOAuthTokenAdminResponse"},"title":"Response Admin Get Ghl Tokens For Location Admin Ghl Tokens  Location Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Admin Delete Ghl Tokens","description":"Delete GHL token rows for a location.","operationId":"admin_delete_ghl_tokens_admin_ghl_tokens__location_id__delete","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"app_domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Domain"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Delete Ghl Tokens Admin Ghl Tokens  Location Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl/tokens/{location_id}/refresh":{"post":{"tags":["admin"],"summary":"Admin Refresh Ghl Tokens","description":"Force-refresh GHL token rows for a location.","operationId":"admin_refresh_ghl_tokens_admin_ghl_tokens__location_id__refresh_post","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"app_domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Domain"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Refresh Ghl Tokens Admin Ghl Tokens  Location Id  Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/agency/{deliverable_type}/generate":{"post":{"tags":["admin"],"summary":"Admin Trigger Agency Deliverable","description":"Manually trigger generation of an agency deliverable.\n\nEnqueues the matching Celery task for the deliverable type.","operationId":"admin_trigger_agency_deliverable_admin_clients__project_id__agency__deliverable_type__generate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_type","in":"path","required":true,"schema":{"type":"string","title":"Deliverable Type"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Trigger Agency Deliverable Admin Clients  Project Id  Agency  Deliverable Type  Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reconciliation":{"get":{"tags":["admin"],"summary":"Run Reconciliation Scan","description":"Run a full stuck-state reconciliation scan.\n\nReturns all detected stuck items across lead deliverables, GHL sync,\nupload tokens, continuity copy, webhooks, and project deliverables.\nSafe to call frequently — all detection functions are read-only.","operationId":"run_reconciliation_scan_admin_reconciliation_get","parameters":[{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a specific stuck-state family","title":"Family"},"description":"Filter to a specific stuck-state family"},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a minimum severity (critical, high, medium, low)","title":"Severity"},"description":"Filter to a minimum severity (critical, high, medium, low)"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Reconciliation Scan Admin Reconciliation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/voice-readiness":{"get":{"tags":["admin"],"summary":"Admin Get Voice Readiness","description":"Full voice readiness: raw score, sub-scores, band, deferred chapters.","operationId":"admin_get_voice_readiness_admin_clients__project_id__voice_readiness_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Voice Readiness Admin Clients  Project Id  Voice Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/voice-readiness/recompute":{"post":{"tags":["admin"],"summary":"Admin Recompute Voice Readiness","description":"Force recompute voice readiness for a project.","operationId":"admin_recompute_voice_readiness_admin_clients__project_id__voice_readiness_recompute_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Recompute Voice Readiness Admin Clients  Project Id  Voice Readiness Recompute Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/voice-readiness/override":{"post":{"tags":["admin"],"summary":"Admin Set Voice Override","description":"Admin override to allow deferred chapters to proceed.\n\nChapter-specific, permanent until cleared after successful write.","operationId":"admin_set_voice_override_admin_clients__project_id__voice_readiness_override_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Voice Override Admin Clients  Project Id  Voice Readiness Override Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/voice-evidence":{"get":{"tags":["admin"],"summary":"Admin List Voice Evidence","description":"Detailed view of all voice evidence items with analysis.","operationId":"admin_list_voice_evidence_admin_clients__project_id__voice_evidence_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Voice Evidence Admin Clients  Project Id  Voice Evidence Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/resource-page":{"get":{"tags":["admin"],"summary":"Admin Get Resource Page","description":"Admin: view resource page status, assets, and opt-in count.","operationId":"admin_get_resource_page_admin_clients__project_id__resource_page_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/resource-page/publish":{"post":{"tags":["admin"],"summary":"Admin Publish Resource Page","description":"Admin: publish a resource page.","operationId":"admin_publish_resource_page_admin_clients__project_id__resource_page_publish_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/resource-page/regenerate":{"post":{"tags":["admin"],"summary":"Admin Regenerate Assets","description":"Admin: regenerate companion assets for a project.\n\nforce=True rebuilds complete assets too — without it the task only picks\nup ``pending`` rows, so \"regenerate\" silently re-stamped the manifest\naround a stale PDF instead of regenerating it.","operationId":"admin_regenerate_assets_admin_clients__project_id__resource_page_regenerate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/optins":{"get":{"tags":["admin"],"summary":"Admin Get Optins","description":"Admin: view opt-in analytics for a project.","operationId":"admin_get_optins_admin_clients__project_id__optins_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/course":{"get":{"tags":["admin"],"summary":"Admin Get Course Status","description":"Course pipeline status for admin dashboard.","operationId":"admin_get_course_status_admin_clients__project_id__course_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Course Status Admin Clients  Project Id  Course Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/course/advance":{"post":{"tags":["admin"],"summary":"Admin Advance Course","description":"Advance or retry the course pipeline from current status.","operationId":"admin_advance_course_admin_clients__project_id__course_advance_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Advance Course Admin Clients  Project Id  Course Advance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/course/unblock":{"post":{"tags":["admin"],"summary":"Admin Unblock Course","description":"Unblock a stuck course project with audit trail.","operationId":"admin_unblock_course_admin_clients__project_id__course_unblock_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"target_status","in":"query","required":true,"schema":{"type":"string","title":"Target Status"}},{"name":"reason","in":"query","required":true,"schema":{"type":"string","title":"Reason"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Unblock Course Admin Clients  Project Id  Course Unblock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/chapters/{chapter_number}/reopen":{"post":{"tags":["admin"],"summary":"Admin Reopen Chapter","description":"Reopen an approved chapter so the author can comment and edit again.\n\nApproval had no way back, so every author request to change an approved\nchapter became an ops ticket. Refused (409) once the chapter is published,\nthe interior is frozen, or the final book is approved. Kill switch:\n``CHAPTER_REOPEN_ENABLED``.","operationId":"admin_reopen_chapter_admin_clients__project_id__chapters__chapter_number__reopen_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_number","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Number"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterReopenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reopen Chapter Admin Clients  Project Id  Chapters  Chapter Number  Reopen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/chapters/{chapter_number}/redraft":{"post":{"tags":["admin"],"summary":"Admin Redraft Chapter","description":"Re-draft ONE drafted chapter from the corpus; its text stays until the new draft lands.\n\nGH #14509. Refused (409) for an approved, published or in-flight chapter,\nwhile the author edits it, or while a restructure runs. Kill switch:\n``CHAPTER_SINGLE_REDRAFT_ENABLED``.","operationId":"admin_redraft_chapter_admin_clients__project_id__chapters__chapter_number__redraft_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_number","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Number"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterReopenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Redraft Chapter Admin Clients  Project Id  Chapters  Chapter Number  Redraft Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/comms-pause":{"get":{"tags":["admin"],"summary":"Admin Get Comms Pause","description":"The author's active communications pause, if any.","operationId":"admin_get_comms_pause_admin_clients__project_id__comms_pause_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Comms Pause Admin Clients  Project Id  Comms Pause Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Set Comms Pause","description":"Set, extend or lift an author's communications pause.\n\nWhile paused, no email, text or call reaches the author (replies to her\nown messages excepted), the book is held, and the GHL contact carries\nDND. Kill switch: ``AUTHOR_COMMS_PAUSE_ENABLED``.","operationId":"admin_set_comms_pause_admin_clients__project_id__comms_pause_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorCommsPauseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Comms Pause Admin Clients  Project Id  Comms Pause Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/away-window":{"post":{"tags":["admin"],"summary":"Admin Set Away Window","description":"Schedule \"the author is away from <day> through <day>\" (GH #12229).\n\nOnly reminders and stall notices defer, and only inside the window; work\non the book goes on. Kill switch: ``AUTHOR_AWAY_WINDOWS_ENABLED``.","operationId":"admin_set_away_window_admin_clients__project_id__away_window_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorAwayWindowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Away Window Admin Clients  Project Id  Away Window Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/author-hold":{"get":{"tags":["admin"],"summary":"Admin Get Author Hold","description":"The author's active \"do not move anything forward\" holds.","operationId":"admin_get_author_hold_admin_clients__project_id__author_hold_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Author Hold Admin Clients  Project Id  Author Hold Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Set Author Hold","description":"Record or lift an author's hold (no automatic approval while held).\n\nThe same rows the inbound responder and the Silas tools write\n(``app/services/author_progress_hold.py``). Kill switch:\n``AUTHOR_PROGRESS_HOLD_ENABLED``.","operationId":"admin_set_author_hold_admin_clients__project_id__author_hold_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorProgressHoldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Author Hold Admin Clients  Project Id  Author Hold Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/chapters/{chapter_number}/create-doc":{"post":{"tags":["admin"],"summary":"Admin Create Chapter Doc","description":"Create a Google Doc for a chapter and trigger the review notification.\n\nEnqueues the standard create_chapter_doc_task which:\n1. Creates a Google Doc with the chapter draft content\n2. Runs line editing quality gate\n3. Shares the doc with the client\n4. Sets chapter_review_state to pending_review\n5. Sends email + SMS notification with the Google Doc link","operationId":"admin_create_chapter_doc_admin_clients__project_id__chapters__chapter_number__create_doc_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_number","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Number"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Create Chapter Doc Admin Clients  Project Id  Chapters  Chapter Number  Create Doc Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/sync-google-docs":{"post":{"tags":["admin"],"summary":"Admin Sync Google Docs","description":"Sync chapter Google Docs back into draft_content for a project.","operationId":"admin_sync_google_docs_admin_clients__project_id__sync_google_docs_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Sync Google Docs Admin Clients  Project Id  Sync Google Docs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/replay-inbound-email/{email_id}":{"post":{"tags":["admin"],"summary":"Admin Replay Inbound Email","description":"Re-enqueue an inbound email for processing by Resend email_id.\n\nThe Resend API fetch happens inside the Celery task (replay_inbound_email_task),\nnot in this handler, to avoid blocking the request thread.","operationId":"admin_replay_inbound_email_admin_replay_inbound_email__email_id__post","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Replay Inbound Email Admin Replay Inbound Email  Email Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/chapters/{chapter_id}/run-edit":{"post":{"tags":["admin"],"summary":"Admin Run Batched Edit","description":"Directly dispatch the batched edit task for a chapter.","operationId":"admin_run_batched_edit_admin_clients__project_id__chapters__chapter_id__run_edit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Run Batched Edit Admin Clients  Project Id  Chapters  Chapter Id  Run Edit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/chapters/{chapter_id}/withheld-drafts":{"get":{"tags":["admin"],"summary":"Admin List Withheld Chapter Drafts","description":"Wave 4 item 5: \"the AI wrote this but the gate withheld it\" — read-only.\n\n404s (not empty-list) for a chapter that does not belong to project_id,\nsame as reset-feedback-ratchet just above — a foreign chapter_id must\nnever leak whether it exists in another project.","operationId":"admin_list_withheld_chapter_drafts_admin_clients__project_id__chapters__chapter_id__withheld_drafts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Withheld Chapter Drafts Admin Clients  Project Id  Chapters  Chapter Id  Withheld Drafts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/chapters/{chapter_id}/reset-feedback-ratchet":{"post":{"tags":["admin"],"summary":"Admin Reset Chapter Feedback Ratchet","description":"Re-arm a chapter's bounded auto-revision budget.\n\n``chapters.feedback_revision_count`` is otherwise a one-way ratchet: once it\nreaches ``MAX_FEEDBACK_AUTO_REVISIONS`` every further author note escalates to\na human editor forever, with no reset path (Robert Blake, 2026-07-28). Authors\ncan now self-serve via the Google-Doc apply; this is the operator equivalent\nfor chapters with no Doc, or after an editor has made the pass by hand.\n\nWave 4: the read-modify-write itself now lives in\n``app.services.chapter_feedback.reset_chapter_feedback_ratchet`` so the\n\"editor pass complete\" completion action reuses it instead of a second\ncopy of this logic (see app/services/human_review_completion.py).","operationId":"admin_reset_chapter_feedback_ratchet_admin_clients__project_id__chapters__chapter_id__reset_feedback_ratchet_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reset Chapter Feedback Ratchet Admin Clients  Project Id  Chapters  Chapter Id  Reset Feedback Ratchet Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waiting-shelf-items":{"get":{"tags":["admin"],"summary":"Admin List Waiting Shelf Items","description":"All shelf items, every shelf, inactive included.","operationId":"admin_list_waiting_shelf_items_admin_waiting_shelf_items_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Waiting Shelf Items Admin Waiting Shelf Items Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Create Waiting Shelf Item","operationId":"admin_create_waiting_shelf_item_admin_waiting_shelf_items_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShelfItemCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Create Waiting Shelf Item Admin Waiting Shelf Items Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waiting-shelf-items/{item_id}":{"patch":{"tags":["admin"],"summary":"Admin Update Waiting Shelf Item","operationId":"admin_update_waiting_shelf_item_admin_waiting_shelf_items__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShelfItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Update Waiting Shelf Item Admin Waiting Shelf Items  Item Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audiobook-requests":{"get":{"tags":["admin"],"summary":"List Audiobook Requests","description":"The ops queue: every audiobook a buyer has paid for and is waiting on.","operationId":"list_audiobook_requests_admin_audiobook_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Audiobook Requests Admin Audiobook Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audiobook-requests/{project_id}/status":{"post":{"tags":["admin"],"summary":"Set Audiobook Request Status","description":"Advance one request. Refuses illegal transitions and lost updates.","operationId":"set_audiobook_request_status_admin_audiobook_requests__project_id__status_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Audiobook Request Status Admin Audiobook Requests  Project Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audiobooks":{"get":{"tags":["admin"],"summary":"List Audiobook Orders","description":"Audiobook orders with narrator choice, ACX status and package state.","operationId":"list_audiobook_orders_admin_audiobooks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Audiobook Orders Admin Audiobooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audiobooks/narrators":{"get":{"tags":["admin"],"summary":"List Audiobook Narrators Admin","description":"The full narrator team, staff terms included, with presigned media.","operationId":"list_audiobook_narrators_admin_admin_audiobooks_narrators_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Audiobook Narrators Admin Admin Audiobooks Narrators Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audiobooks/{project_id}/order-package":{"post":{"tags":["admin"],"summary":"Get Audiobook Order Package","description":"A download link for the order package, building it when needed.\n\nBuilds synchronously when there is no package for the current narrator\n(or ``rebuild``): no AI calls, just reads, a ZIP and one upload. This is\nthe recovery path for a build task that never ran.","operationId":"get_audiobook_order_package_admin_audiobooks__project_id__order_package_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"rebuild","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Rebuild"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audiobook Order Package Admin Audiobooks  Project Id  Order Package Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/journey-snapshots":{"get":{"tags":["admin"],"summary":"Admin List Journey Snapshots","description":"One page of a week's journey-snapshot index — no snapshot bodies.\n\nReturns the friction-signal count and identity fields so the analysis\nsession can rank before it reads, plus ``total_count`` and ``has_more`` so\nit knows whether it is ranking the whole week or a slice of it. Bodies come\nfrom ``GET /admin/journey-snapshots/{id}``.","operationId":"admin_list_journey_snapshots_admin_journey_snapshots_get","parameters":[{"name":"week_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"description":"Monday of the week to read, YYYY-MM-DD. Defaults to the latest week on record.","title":"Week Start"},"description":"Monday of the week to read, YYYY-MM-DD. Defaults to the latest week on record."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Journey Snapshots Admin Journey Snapshots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/journey-snapshots/{snapshot_id}":{"get":{"tags":["admin"],"summary":"Admin Get Journey Snapshot","description":"One full journey snapshot. 404 when the id does not exist.","operationId":"admin_get_journey_snapshot_admin_journey_snapshots__snapshot_id__get","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Snapshot Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Journey Snapshot Admin Journey Snapshots  Snapshot Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/originality/{project_id}/scan":{"post":{"tags":["admin"],"summary":"Admin Submit Originality Scan","description":"Queue a Copyleaks plagiarism scan of this book (works while the feature is dark).","operationId":"admin_submit_originality_scan_admin_originality__project_id__scan_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginalityScanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Submit Originality Scan Admin Originality  Project Id  Scan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/originality/{project_id}/scans":{"get":{"tags":["admin"],"summary":"Admin List Originality Scans","description":"Recent originality scans for this book, newest first.","operationId":"admin_list_originality_scans_admin_originality__project_id__scans_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Originality Scans Admin Originality  Project Id  Scans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/staff-home":{"get":{"tags":["admin"],"summary":"Admin Staff Home","description":"Admin-key mirror of ``GET /ops/home``: preview any staff member's home.\n\nUsed by the full-admin session (which has no ops token) and by live\nverification. Without ``as_email`` it is the full view (job ``all``) for\nthe key holder. Reads only.","operationId":"admin_staff_home_admin_staff_home_get","parameters":[{"name":"as_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"As Email"}},{"name":"job","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Job"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Staff Home Admin Staff Home Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/chapter-split":{"post":{"tags":["admin"],"summary":"Admin Chapter Split","description":"Queue an author-requested split, or preview without writes or model calls.","operationId":"admin_chapter_split_admin_projects__project_id__chapter_split_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterSplitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/launch-entitlement":{"post":{"tags":["admin"],"summary":"Grant Project Launch Entitlement","operationId":"grant_project_launch_entitlement_admin_projects__project_id__launch_entitlement_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchEntitlementGrantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Grant Project Launch Entitlement Admin Projects  Project Id  Launch Entitlement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors":{"get":{"tags":["admin"],"summary":"Admin List Authors","operationId":"admin_list_authors_admin_launch_director_authors_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Authors Admin Launch Director Authors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}":{"get":{"tags":["admin"],"summary":"Admin Author Card","operationId":"admin_author_card_admin_launch_director_authors__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Author Card Admin Launch Director Authors  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/files/{deliverable_id}":{"get":{"tags":["admin"],"summary":"Admin File Download","operationId":"admin_file_download_admin_launch_director_authors__project_id__files__deliverable_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin File Download Admin Launch Director Authors  Project Id  Files  Deliverable Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/book-files/{artifact_type}":{"get":{"tags":["admin"],"summary":"Admin Book File Download","operationId":"admin_book_file_download_admin_launch_director_authors__project_id__book_files__artifact_type__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"artifact_type","in":"path","required":true,"schema":{"type":"string","title":"Artifact Type"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Book File Download Admin Launch Director Authors  Project Id  Book Files  Artifact Type  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/kdp-folder/build":{"post":{"tags":["admin"],"summary":"Admin Build Kdp Folder","operationId":"admin_build_kdp_folder_admin_launch_director_authors__project_id__kdp_folder_build_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Build Kdp Folder Admin Launch Director Authors  Project Id  Kdp Folder Build Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/checklist/{item_key}":{"patch":{"tags":["admin"],"summary":"Admin Tick Checklist","operationId":"admin_tick_checklist_admin_launch_director_authors__project_id__checklist__item_key__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"item_key","in":"path","required":true,"schema":{"type":"string","title":"Item Key"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__launch_director__ChecklistTickRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Tick Checklist Admin Launch Director Authors  Project Id  Checklist  Item Key  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/crm-connector/verify":{"post":{"tags":["admin"],"summary":"Admin Verify Crm Connector","operationId":"admin_verify_crm_connector_admin_launch_director_authors__project_id__crm_connector_verify_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Verify Crm Connector Admin Launch Director Authors  Project Id  Crm Connector Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/director":{"patch":{"tags":["admin"],"summary":"Admin Assign Director","operationId":"admin_assign_director_admin_launch_director_authors__project_id__director_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectorAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Assign Director Admin Launch Director Authors  Project Id  Director Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/texting-handoff":{"post":{"tags":["admin"],"summary":"Admin Texting Handoff","operationId":"admin_texting_handoff_admin_launch_director_authors__project_id__texting_handoff_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextingHandoffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Texting Handoff Admin Launch Director Authors  Project Id  Texting Handoff Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/checklist/refresh":{"post":{"tags":["admin"],"summary":"Admin Refresh Checklists","description":"Re-detect every live author's launch checklist now (the backfill).\n\nDetection only: Silas's nudges run on the hourly tick, never from here.\nReturns the counts (social connected, CRM app authorized, waiting items).","operationId":"admin_refresh_checklists_admin_launch_director_checklist_refresh_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Refresh Checklists Admin Launch Director Checklist Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/socials-not-connected":{"get":{"tags":["admin"],"summary":"Admin Socials Not Connected","operationId":"admin_socials_not_connected_admin_launch_director_socials_not_connected_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Socials Not Connected Admin Launch Director Socials Not Connected Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/book-fix/preview":{"post":{"tags":["admin"],"summary":"Admin Preview Book Fix","operationId":"admin_preview_book_fix_admin_launch_director_authors__project_id__book_fix_preview_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookFixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Preview Book Fix Admin Launch Director Authors  Project Id  Book Fix Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-director/authors/{project_id}/book-fix":{"post":{"tags":["admin"],"summary":"Admin Confirm Book Fix","operationId":"admin_confirm_book_fix_admin_launch_director_authors__project_id__book_fix_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookFixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Confirm Book Fix Admin Launch Director Authors  Project Id  Book Fix Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors":{"get":{"tags":["ops"],"summary":"Ops List Authors","operationId":"ops_list_authors_ops_launch_director_authors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ops List Authors Ops Launch Director Authors Get"}}}}}}},"/ops/launch-director/socials-not-connected":{"get":{"tags":["ops"],"summary":"Ops Socials Not Connected","description":"Demi's list: who still has to connect a social account (launch directors only).","operationId":"ops_socials_not_connected_ops_launch_director_socials_not_connected_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ops Socials Not Connected Ops Launch Director Socials Not Connected Get"}}}}}}},"/ops/launch-director/authors/{project_id}":{"get":{"tags":["ops"],"summary":"Ops Author Card","operationId":"ops_author_card_ops_launch_director_authors__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Author Card Ops Launch Director Authors  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/files/{deliverable_id}":{"get":{"tags":["ops"],"summary":"Ops File Download","operationId":"ops_file_download_ops_launch_director_authors__project_id__files__deliverable_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops File Download Ops Launch Director Authors  Project Id  Files  Deliverable Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/book-files/{artifact_type}":{"get":{"tags":["ops"],"summary":"Ops Book File Download","operationId":"ops_book_file_download_ops_launch_director_authors__project_id__book_files__artifact_type__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"artifact_type","in":"path","required":true,"schema":{"type":"string","title":"Artifact Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Book File Download Ops Launch Director Authors  Project Id  Book Files  Artifact Type  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/kdp-folder/build":{"post":{"tags":["ops"],"summary":"Ops Build Kdp Folder","operationId":"ops_build_kdp_folder_ops_launch_director_authors__project_id__kdp_folder_build_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Build Kdp Folder Ops Launch Director Authors  Project Id  Kdp Folder Build Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/checklist/{item_key}":{"patch":{"tags":["ops"],"summary":"Ops Tick Checklist","operationId":"ops_tick_checklist_ops_launch_director_authors__project_id__checklist__item_key__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"item_key","in":"path","required":true,"schema":{"type":"string","title":"Item Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__launch_director__ChecklistTickRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Tick Checklist Ops Launch Director Authors  Project Id  Checklist  Item Key  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/crm-connector/verify":{"post":{"tags":["ops"],"summary":"Ops Verify Crm Connector","operationId":"ops_verify_crm_connector_ops_launch_director_authors__project_id__crm_connector_verify_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Verify Crm Connector Ops Launch Director Authors  Project Id  Crm Connector Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/director":{"patch":{"tags":["ops"],"summary":"Ops Assign Director","operationId":"ops_assign_director_ops_launch_director_authors__project_id__director_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectorAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Assign Director Ops Launch Director Authors  Project Id  Director Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/texting-handoff":{"post":{"tags":["ops"],"summary":"Ops Texting Handoff","operationId":"ops_texting_handoff_ops_launch_director_authors__project_id__texting_handoff_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextingHandoffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Texting Handoff Ops Launch Director Authors  Project Id  Texting Handoff Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/book-fix/preview":{"post":{"tags":["ops"],"summary":"Ops Preview Book Fix","operationId":"ops_preview_book_fix_ops_launch_director_authors__project_id__book_fix_preview_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookFixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Preview Book Fix Ops Launch Director Authors  Project Id  Book Fix Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-director/authors/{project_id}/book-fix":{"post":{"tags":["ops"],"summary":"Ops Confirm Book Fix","operationId":"ops_confirm_book_fix_ops_launch_director_authors__project_id__book_fix_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookFixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Confirm Book Fix Ops Launch Director Authors  Project Id  Book Fix Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-readiness/{project_id}":{"get":{"tags":["admin"],"summary":"Admin Staff View","operationId":"admin_staff_view_admin_launch_readiness__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Staff View Admin Launch Readiness  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-readiness/{project_id}/verify":{"post":{"tags":["admin"],"summary":"Admin Verify Step","operationId":"admin_verify_step_admin_launch_readiness__project_id__verify_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Verify Step Admin Launch Readiness  Project Id  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-readiness/{project_id}":{"get":{"tags":["ops"],"summary":"Ops Staff View","operationId":"ops_staff_view_ops_launch_readiness__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Staff View Ops Launch Readiness  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/launch-readiness/{project_id}/verify":{"post":{"tags":["ops"],"summary":"Ops Verify Step","operationId":"ops_verify_step_ops_launch_readiness__project_id__verify_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Verify Step Ops Launch Readiness  Project Id  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ops-queue-by-person":{"get":{"tags":["admin"],"summary":"Admin Ops Queue By Person","description":"Per-person open-ticket totals over the whole open queue.","operationId":"admin_ops_queue_by_person_admin_ops_queue_by_person_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ops Queue By Person Admin Ops Queue By Person Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue-by-person":{"get":{"tags":["ops"],"summary":"Ops Ops Queue By Person","description":"Same totals for a manager's JWT session (admin or ops_manager only).","operationId":"ops_ops_queue_by_person_ops_ops_queue_by_person_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ops Ops Queue By Person Ops Ops Queue By Person Get"}}}}}}},"/portal/final-book-approval/{project_id}/compliance-cards/{card_id}":{"post":{"tags":["portal"],"summary":"Answer Compliance Card","operationId":"answer_compliance_card_portal_final_book_approval__project_id__compliance_cards__card_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"card_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Card Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceCardAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Compliance Card Portal Final Book Approval  Project Id  Compliance Cards  Card Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/final-book-approval/{project_id}/looked-at":{"post":{"tags":["portal"],"summary":"Remember Looked At","description":"Her \"Looks good\" tap on one part, kept so it follows her to another device (GH #14387).\n\nA mark approves nothing (``app/services/approve_walkthrough_marks.py``).","operationId":"remember_looked_at_portal_final_book_approval__project_id__looked_at_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookedAt"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remember Looked At Portal Final Book Approval  Project Id  Looked At Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/final-book-approval/{project_id}/signoff-cards/{ref}":{"post":{"tags":["portal"],"summary":"Answer Signoff Card","operationId":"answer_signoff_card_portal_final_book_approval__project_id__signoff_cards__ref__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignoffCardAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Signoff Card Portal Final Book Approval  Project Id  Signoff Cards  Ref  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/whole-draft/{project_id}":{"get":{"tags":["portal"],"summary":"Whole Draft Offer","operationId":"whole_draft_offer_portal_whole_draft__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whole Draft Offer Portal Whole Draft  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/whole-draft/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Whole Draft","operationId":"approve_whole_draft_portal_whole_draft__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WholeDraftApproval"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Whole Draft Portal Whole Draft  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/listen":{"post":{"tags":["portal"],"summary":"Chapter Listen","operationId":"chapter_listen_portal_chapters__project_id___chapter_id__listen_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Chapter Listen Portal Chapters  Project Id   Chapter Id  Listen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/listen/played":{"post":{"tags":["portal"],"summary":"Chapter Listen Played","operationId":"chapter_listen_played_portal_chapters__project_id___chapter_id__listen_played_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenPlayed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Chapter Listen Played Portal Chapters  Project Id   Chapter Id  Listen Played Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/rewrite-requests":{"get":{"tags":["portal"],"summary":"Get Rewrite List","operationId":"get_rewrite_list_portal_chapters__project_id___chapter_id__rewrite_requests_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Rewrite List Portal Chapters  Project Id   Chapter Id  Rewrite Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Add Rewrite Request","operationId":"add_rewrite_request_portal_chapters__project_id___chapter_id__rewrite_requests_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewriteRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Rewrite Request Portal Chapters  Project Id   Chapter Id  Rewrite Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/rewrite-requests/{request_id}":{"patch":{"tags":["portal"],"summary":"Edit Rewrite Request","operationId":"edit_rewrite_request_portal_chapters__project_id___chapter_id__rewrite_requests__request_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"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/RewriteRequestEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Rewrite Request Portal Chapters  Project Id   Chapter Id  Rewrite Requests  Request Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal"],"summary":"Remove Rewrite Request","operationId":"remove_rewrite_request_portal_chapters__project_id___chapter_id__rewrite_requests__request_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Rewrite Request Portal Chapters  Project Id   Chapter Id  Rewrite Requests  Request Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/rewrite-requests/submit":{"post":{"tags":["portal"],"summary":"Submit Rewrite List","operationId":"submit_rewrite_list_portal_chapters__project_id___chapter_id__rewrite_requests_submit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewriteSubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Rewrite List Portal Chapters  Project Id   Chapter Id  Rewrite Requests Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/rewrite-requests/rounds/{round_id}/touched/{index}":{"post":{"tags":["portal"],"summary":"Resolve Touched Line","operationId":"resolve_touched_line_portal_chapters__project_id___chapter_id__rewrite_requests_rounds__round_id__touched__index__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"round_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Round Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TouchedAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Touched Line Portal Chapters  Project Id   Chapter Id  Rewrite Requests Rounds  Round Id  Touched  Index  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/rewrite-requests/{project_id}/counts":{"get":{"tags":["portal"],"summary":"Rewrite List Counts","operationId":"rewrite_list_counts_portal_rewrite_requests__project_id__counts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rewrite List Counts Portal Rewrite Requests  Project Id  Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/audio-file":{"post":{"tags":["portal"],"summary":"Chapter Audio File","operationId":"chapter_audio_file_portal_chapters__project_id___chapter_id__audio_file_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioFileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Chapter Audio File Portal Chapters  Project Id   Chapter Id  Audio File Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/listen-pause-mode/{project_id}":{"get":{"tags":["portal"],"summary":"Get Listen Pause Mode","operationId":"get_listen_pause_mode_portal_listen_pause_mode__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Listen Pause Mode Portal Listen Pause Mode  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Put Listen Pause Mode","operationId":"put_listen_pause_mode_portal_listen_pause_mode__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseModeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Listen Pause Mode Portal Listen Pause Mode  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/free-guides/{project_id}":{"get":{"tags":["portal"],"summary":"List Free Guides","operationId":"list_free_guides_portal_free_guides__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Free Guides Portal Free Guides  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/free-guides/{project_id}/{asset_id}/download":{"get":{"tags":["portal"],"summary":"Download Free Guide","operationId":"download_free_guide_portal_free_guides__project_id___asset_id__download_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Free Guide Portal Free Guides  Project Id   Asset Id  Download Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/free-guides/{project_id}/{asset_id}":{"post":{"tags":["portal"],"summary":"Free Guide Feedback","operationId":"free_guide_feedback_portal_free_guides__project_id___asset_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreeGuideFeedback"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Free Guide Feedback Portal Free Guides  Project Id   Asset Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}/{matter_type}/tidy":{"post":{"tags":["portal-book-matter-voice"],"summary":"Tidy Page","description":"Queue a tidy of what she typed; poll for the result.","operationId":"tidy_page_portal_front_back_matter__project_id___matter_type__tidy_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"matter_type","in":"path","required":true,"schema":{"type":"string","title":"Matter Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TidyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStarted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}/{matter_type}/speak":{"post":{"tags":["portal-book-matter-voice"],"summary":"Speak Page","description":"Stage her recording, then queue its transcription and tidy.","operationId":"speak_page_portal_front_back_matter__project_id___matter_type__speak_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"matter_type","in":"path","required":true,"schema":{"type":"string","title":"Matter Type"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_speak_page_portal_front_back_matter__project_id___matter_type__speak_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStarted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}/speak-or-tidy/{task_id}":{"get":{"tags":["portal-book-matter-voice"],"summary":"Poll Speak Or Tidy","description":"The task's result, only to the book that started it.","operationId":"poll_speak_or_tidy_portal_front_back_matter__project_id__speak_or_tidy__task_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakOrTidyResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/guided":{"get":{"tags":["portal-guided-review"],"summary":"Guided Summary","operationId":"guided_summary_portal_chapters__project_id___chapter_id__guided_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Guided Summary Portal Chapters  Project Id   Chapter Id  Guided Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/guided/chips":{"get":{"tags":["portal-guided-review"],"summary":"Guided Chips","operationId":"guided_chips_portal_chapters__project_id___chapter_id__guided_chips_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Guided Chips Portal Chapters  Project Id   Chapter Id  Guided Chips Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/guided/bigger-changes":{"post":{"tags":["portal-guided-review"],"summary":"Guided Bigger Changes","operationId":"guided_bigger_changes_portal_chapters__project_id___chapter_id__guided_bigger_changes_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BiggerChanges"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Guided Bigger Changes Portal Chapters  Project Id   Chapter Id  Guided Bigger Changes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/guided/carry-forward":{"post":{"tags":["portal-guided-review"],"summary":"Guided Carry Forward","operationId":"guided_carry_forward_portal_chapters__project_id___chapter_id__guided_carry_forward_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarryForward"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Guided Carry Forward Portal Chapters  Project Id   Chapter Id  Guided Carry Forward Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/guided/events":{"post":{"tags":["portal-guided-review"],"summary":"Guided Event","operationId":"guided_event_portal_chapters__project_id___chapter_id__guided_events_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuidedEventIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Guided Event Portal Chapters  Project Id   Chapter Id  Guided Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-setup/{project_id}/webinarkit":{"get":{"tags":["admin-webinarkit"],"summary":"Admin Webinarkit Status","operationId":"admin_webinarkit_status_admin_client_setup__project_id__webinarkit_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarKitStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-setup/{project_id}/webinarkit/retry":{"post":{"tags":["admin-webinarkit"],"summary":"Admin Webinarkit Retry","operationId":"admin_webinarkit_retry_admin_client_setup__project_id__webinarkit_retry_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarKitStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-setup/{project_id}/webinarkit/credentials":{"post":{"tags":["admin-webinarkit"],"summary":"Admin Webinarkit Credentials","operationId":"admin_webinarkit_credentials_admin_client_setup__project_id__webinarkit_credentials_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/authority-plans/{offer_id}/payment-split":{"post":{"tags":["admin-authority-plans"],"summary":"Split Payment Plan","description":"Plan (dry run) or apply a two-payments-a-month split for one plan.","operationId":"split_payment_plan_admin_authority_plans__offer_id__payment_split_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSplitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSplitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-authority-plans"],"summary":"Read Payment Plan Split","description":"Read back the split and both legs' live Stripe state.","operationId":"read_payment_plan_split_admin_authority_plans__offer_id__payment_split_get","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Payment Plan Split Admin Authority Plans  Offer Id  Payment Split Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/billing-facts":{"get":{"tags":["admin-billing-facts"],"summary":"Get Billing Facts","operationId":"get_billing_facts_admin_projects__project_id__billing_facts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"history","in":"query","required":false,"schema":{"type":"boolean","description":"Read the recent Stripe invoices too","default":true,"title":"History"},"description":"Read the recent Stripe invoices too"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Billing Facts Admin Projects  Project Id  Billing Facts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/dispute-holds":{"get":{"tags":["admin"],"summary":"List Dispute Holds","operationId":"list_dispute_holds_admin_dispute_holds_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":320,"title":"Email"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Dispute Holds Admin Dispute Holds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/dispute-holds/check":{"get":{"tags":["admin"],"summary":"Check Dispute Hold","operationId":"check_dispute_hold_admin_dispute_holds_check_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Dispute Hold Admin Dispute Holds Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/dispute-holds/lock":{"post":{"tags":["admin"],"summary":"Lock Dispute Hold","operationId":"lock_dispute_hold_admin_dispute_holds_lock_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Lock Dispute Hold Admin Dispute Holds Lock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/dispute-holds/{hold_id}/unlock":{"post":{"tags":["admin"],"summary":"Unlock Dispute Hold","operationId":"unlock_dispute_hold_admin_dispute_holds__hold_id__unlock_post","parameters":[{"name":"hold_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Hold Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unlock Dispute Hold Admin Dispute Holds  Hold Id  Unlock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/book-guests/{project_id}":{"get":{"tags":["admin-book-guests"],"summary":"Get Book Guests","operationId":"get_book_guests_admin_book_guests__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Book Guests Admin Book Guests  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/book-guests/{project_id}/invite":{"post":{"tags":["admin-book-guests"],"summary":"Invite Book Guest Route","operationId":"invite_book_guest_route_admin_book_guests__project_id__invite_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookGuestInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite Book Guest Route Admin Book Guests  Project Id  Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/book-guests/{project_id}/{contributor_id}/revoke":{"post":{"tags":["admin-book-guests"],"summary":"Revoke Book Guest","operationId":"revoke_book_guest_admin_book_guests__project_id___contributor_id__revoke_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contributor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contributor Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Book Guest Admin Book Guests  Project Id   Contributor Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/book-guests/{project_id}/{contributor_id}/ingest":{"post":{"tags":["admin-book-guests"],"summary":"Reingest Book Guest","description":"Re-drive. ``?assent_verified=true`` only after listening to the call:\nit files a call whose spoken yes the transcript reader could not read.","operationId":"reingest_book_guest_admin_book_guests__project_id___contributor_id__ingest_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contributor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contributor Id"}},{"name":"assent_verified","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Assent Verified"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reingest Book Guest Admin Book Guests  Project Id   Contributor Id  Ingest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/co-authors/{project_id}/invite":{"post":{"tags":["admin-co-authors"],"summary":"Invite Co Author Route","operationId":"invite_co_author_route_admin_co_authors__project_id__invite_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__admin_co_authors__CoAuthorInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite Co Author Route Admin Co Authors  Project Id  Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-board":{"get":{"tags":["admin-pipeline-board"],"summary":"Get Pipeline Board","operationId":"get_pipeline_board_admin_pipeline_board_get","parameters":[{"name":"rep","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9 ._@'-]{1,80}$"},{"type":"null"}],"title":"Rep"}},{"name":"pipeline","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9 ._@'-]{1,80}$"},{"type":"null"}],"title":"Pipeline"}},{"name":"include_abandoned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Abandoned"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineBoardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-board/stage-probabilities":{"get":{"tags":["admin-pipeline-board"],"summary":"Get Stage Probabilities","operationId":"get_stage_probabilities_admin_pipeline_board_stage_probabilities_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Stage Probabilities Admin Pipeline Board Stage Probabilities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-board/writeback/run":{"post":{"tags":["admin-pipeline-board"],"summary":"Run Writeback","operationId":"run_writeback_admin_pipeline_board_writeback_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WritebackRunRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Writeback Admin Pipeline Board Writeback Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-board/writeback/events":{"get":{"tags":["admin-pipeline-board"],"summary":"List Writeback Events","operationId":"list_writeback_events_admin_pipeline_board_writeback_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Writeback Events Admin Pipeline Board Writeback Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-board/scoreboard-preview":{"get":{"tags":["admin-pipeline-board"],"summary":"Scoreboard Preview","operationId":"scoreboard_preview_admin_pipeline_board_scoreboard_preview_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Scoreboard Preview Admin Pipeline Board Scoreboard Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sales-cockpit":{"get":{"tags":["admin-sales-cockpit"],"summary":"Get Sales Cockpit","operationId":"get_sales_cockpit_admin_sales_cockpit_get","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sales Cockpit Admin Sales Cockpit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sales-cockpit/what-if":{"get":{"tags":["admin-sales-cockpit"],"summary":"Get What If","operationId":"get_what_if_admin_sales_cockpit_what_if_get","parameters":[{"name":"daily_spend","in":"query","required":true,"schema":{"type":"number","maximum":20000.0,"minimum":0,"title":"Daily Spend"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get What If Admin Sales Cockpit What If Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/episodes/{episode_id}/audio-revision-recovery":{"post":{"tags":["admin-podcast-seasons"],"summary":"Recover Audio Revision","description":"Record human review and reopen only the exact author-requested revision.","operationId":"recover_audio_revision_admin_podcast_seasons__season_id__episodes__episode_id__audio_revision_recovery_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioRevisionRecoveryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recover Audio Revision Admin Podcast Seasons  Season Id  Episodes  Episode Id  Audio Revision Recovery Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/pronunciation-reviews":{"get":{"tags":["admin-podcast-seasons"],"summary":"List Stock Pronunciation Reviews","description":"Discover exact pronunciation work without database inspection.","operationId":"list_stock_pronunciation_reviews_admin_podcast_seasons_pronunciation_reviews_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["pending","completed","cancelled"],"type":"string","default":"pending","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Stock Pronunciation Reviews Admin Podcast Seasons Pronunciation Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/episodes/{episode_id}/pronunciation-review":{"get":{"tags":["admin-podcast-seasons"],"summary":"Get Stock Pronunciation Review","description":"Show staff the exact stock-voice substitutions awaiting attestation.","operationId":"get_stock_pronunciation_review_admin_podcast_seasons__season_id__episodes__episode_id__pronunciation_review_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Stock Pronunciation Review Admin Podcast Seasons  Season Id  Episodes  Episode Id  Pronunciation Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-podcast-seasons"],"summary":"Approve Stock Pronunciation Review","description":"Permit stock TTS only after a separate human reviews the exact aliases.","operationId":"approve_stock_pronunciation_review_admin_podcast_seasons__season_id__episodes__episode_id__pronunciation_review_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockPronunciationReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Stock Pronunciation Review Admin Podcast Seasons  Season Id  Episodes  Episode Id  Pronunciation Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/staff-consent":{"post":{"tags":["admin-podcast-seasons"],"summary":"Record Staff Signed Consent","operationId":"record_staff_signed_consent_admin_podcast_seasons_staff_consent_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffConsentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Staff Signed Consent Admin Podcast Seasons Staff Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/launch-stop":{"post":{"tags":["admin-podcast-seasons"],"summary":"Record Launch Stop","description":"Record only that an operator reached a mandatory final-click STOP.","operationId":"record_launch_stop_admin_podcast_seasons__season_id__launch_stop_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchStopRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Launch Stop Admin Podcast Seasons  Season Id  Launch Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/hosting":{"post":{"tags":["admin-podcast-seasons"],"summary":"Verify Podcast Hosting","operationId":"verify_podcast_hosting_admin_podcast_seasons__season_id__hosting_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyHostingRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Podcast Hosting Admin Podcast Seasons  Season Id  Hosting Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/provider-marker-cleanup":{"post":{"tags":["admin-podcast-seasons"],"summary":"Queue Provider Marker Cleanup","description":"Queue removal of the internal create marker from published episode summaries.\n\nOnly verified Dictate episodes whose provider summary is exactly the approved\nsummary plus the marker change; human edits at the provider are reported and\nleft untouched.","operationId":"queue_provider_marker_cleanup_admin_podcast_seasons__season_id__provider_marker_cleanup_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderMarkerCleanupRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Queue Provider Marker Cleanup Admin Podcast Seasons  Season Id  Provider Marker Cleanup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/directories-submitted":{"post":{"tags":["admin-podcast-seasons"],"summary":"Confirm Directory Submissions","operationId":"confirm_directory_submissions_admin_podcast_seasons__season_id__directories_submitted_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryConfirmationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Directory Submissions Admin Podcast Seasons  Season Id  Directories Submitted Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/projects/{project_id}/seasons":{"get":{"tags":["admin-podcast-seasons"],"summary":"List Team Handoff Seasons","description":"Seasons for one client with intake summary and team bundle status.","operationId":"list_team_handoff_seasons_admin_podcast_seasons_projects__project_id__seasons_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Team Handoff Seasons Admin Podcast Seasons Projects  Project Id  Seasons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/team-bundle":{"post":{"tags":["admin-podcast-seasons"],"summary":"Request Team Bundle","description":"Enqueue the deterministic team bundle build (safe to repeat).","operationId":"request_team_bundle_admin_podcast_seasons__season_id__team_bundle_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamBundleRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Team Bundle Admin Podcast Seasons  Season Id  Team Bundle Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-podcast-seasons"],"summary":"Get Team Bundle","description":"Bundle status plus a short-lived presigned download link when ready.","operationId":"get_team_bundle_admin_podcast_seasons__season_id__team_bundle_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Team Bundle Admin Podcast Seasons  Season Id  Team Bundle Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/directory-links/sync":{"post":{"tags":["admin-podcast-seasons"],"summary":"Request Directory Link Sync","description":"Enqueue one read-only Transistor sync for this season (safe to repeat).","operationId":"request_directory_link_sync_admin_podcast_seasons__season_id__directory_links_sync_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryLinkSyncRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Directory Link Sync Admin Podcast Seasons  Season Id  Directory Links Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-seasons/{season_id}/directory-links/manual":{"post":{"tags":["admin-podcast-seasons"],"summary":"Record Manual Directory Link","description":"Store a human-pasted show link (audited) after proving it loads (HTTP 200).","operationId":"record_manual_directory_link_admin_podcast_seasons__season_id__directory_links_manual_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualDirectoryLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Manual Directory Link Admin Podcast Seasons  Season Id  Directory Links Manual Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-kb/drafts":{"get":{"tags":["admin"],"summary":"Admin List Kb Drafts","operationId":"admin_list_kb_drafts_admin_support_kb_drafts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"draft","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportKbDraftListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-kb/drafts/{draft_id}/approve":{"post":{"tags":["admin"],"summary":"Admin Approve Kb Draft","operationId":"admin_approve_kb_draft_admin_support_kb_drafts__draft_id__approve_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SupportKbDraftApproveRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportKbDraftReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-kb/drafts/{draft_id}/reject":{"post":{"tags":["admin"],"summary":"Admin Reject Kb Draft","operationId":"admin_reject_kb_draft_admin_support_kb_drafts__draft_id__reject_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportKbDraftRejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportKbDraftReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/support-kb/drafts":{"get":{"tags":["ops"],"summary":"Ops List Kb Drafts","operationId":"ops_list_kb_drafts_ops_support_kb_drafts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"draft","title":"Status"}},{"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/SupportKbDraftListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/support-kb/drafts/{draft_id}/approve":{"post":{"tags":["ops"],"summary":"Ops Approve Kb Draft","operationId":"ops_approve_kb_draft_ops_support_kb_drafts__draft_id__approve_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SupportKbDraftApproveRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportKbDraftReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/support-kb/drafts/{draft_id}/reject":{"post":{"tags":["ops"],"summary":"Ops Reject Kb Draft","operationId":"ops_reject_kb_draft_ops_support_kb_drafts__draft_id__reject_post","parameters":[{"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/SupportKbDraftRejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportKbDraftReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/support-responses/{event_id}/redrive":{"post":{"tags":["admin"],"summary":"Redrive Support Response","operationId":"redrive_support_response_admin_support_responses__event_id__redrive_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedriveQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{project_id}/messages":{"get":{"tags":["admin"],"summary":"Admin Client Messages","operationId":"admin_client_messages_admin_clients__project_id__messages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/messages":{"get":{"tags":["admin"],"summary":"Ops Client Messages","operationId":"ops_client_messages_ops_clients__project_id__messages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"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":{"$ref":"#/components/schemas/ClientMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/training/reps":{"get":{"tags":["admin-training"],"summary":"Admin List Reps","description":"List all sales reps with progress counts. Optionally filter by status.","operationId":"admin_list_reps_admin_training_reps_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RepResponse"},"title":"Response Admin List Reps Admin Training Reps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-training"],"summary":"Admin Create Rep","description":"Create a new sales rep account with initial password. Status defaults to 'pending'.","operationId":"admin_create_rep_admin_training_reps_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/training/reps/export":{"get":{"tags":["admin-training"],"summary":"Admin Export Reps Csv","description":"Export all sales reps as a CSV file.","operationId":"admin_export_reps_csv_admin_training_reps_export_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/training/reps/{rep_id}":{"get":{"tags":["admin-training"],"summary":"Admin Get Rep","description":"Get a rep's full detail including all progress and quiz attempts.","operationId":"admin_get_rep_admin_training_reps__rep_id__get","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-training"],"summary":"Admin Update Rep Status","description":"Update a sales rep's status (pending, active, deactivated).","operationId":"admin_update_rep_status_admin_training_reps__rep_id__patch","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRepStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/training/reps/{rep_id}/reset-password":{"post":{"tags":["admin-training"],"summary":"Admin Reset Rep Password","description":"Reset a sales rep's password.","operationId":"admin_reset_rep_password_admin_training_reps__rep_id__reset_password_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRepPasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/training/reps/{rep_id}/ministry-rate":{"patch":{"tags":["admin-training"],"summary":"Admin Update Rep Ministry Rate Access","description":"Retired. Ministry pricing is available to every certified rep.","operationId":"admin_update_rep_ministry_rate_access_admin_training_reps__rep_id__ministry_rate_patch","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRepMinistryRateAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/training/companion-videos":{"get":{"tags":["admin-training"],"summary":"Admin Companion Training Videos","description":"Presigned media URLs for the Companion Training page (admin-key auth).\n\nSame payload as GET /ops/training/companion-videos; this variant serves\nadmin_session users whose server-side page fetch authenticates with\nX-Admin-Key (router-level verify_admin_key dependency).","operationId":"admin_companion_training_videos_admin_training_companion_videos_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Companion Training Videos Admin Training Companion Videos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/training/quiz-attempts/{attempt_id}/reset":{"post":{"tags":["admin-training"],"summary":"Reset Quiz Attempt","description":"Unlock the locked quiz this attempt belongs to (idempotent).","operationId":"reset_quiz_attempt_admin_training_quiz_attempts__attempt_id__reset_post","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attempt Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QuizAttemptResetRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizAttemptResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-rotator":{"get":{"tags":["admin-lead-rotator"],"summary":"Get Lead Rotator","description":"Everything the page shows: GHL users, roster, Slack map, fallback.","operationId":"get_lead_rotator_admin_lead_rotator_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Lead Rotator Admin Lead Rotator Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-rotator/members":{"post":{"tags":["admin-lead-rotator"],"summary":"Add Member","description":"Put a GHL user on the roster (switched ON).","operationId":"add_member_admin_lead_rotator_members_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Member Admin Lead Rotator Members Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-rotator/members/{ghl_user_id}":{"patch":{"tags":["admin-lead-rotator"],"summary":"Update Member","description":"Switch a roster member ON/OFF, or toggle their channel copy.","operationId":"update_member_admin_lead_rotator_members__ghl_user_id__patch","parameters":[{"name":"ghl_user_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Ghl User Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Member Admin Lead Rotator Members  Ghl User Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-lead-rotator"],"summary":"Remove Member","description":"Take a GHL user off the roster entirely.","operationId":"remove_member_admin_lead_rotator_members__ghl_user_id__delete","parameters":[{"name":"ghl_user_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Ghl User Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Member Admin Lead Rotator Members  Ghl User Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-rotator/slack-map/{ghl_user_id}":{"put":{"tags":["admin-lead-rotator"],"summary":"Map Slack","description":"Point a GHL user at their Slack account (pinned against the nightly sync).","operationId":"map_slack_admin_lead_rotator_slack_map__ghl_user_id__put","parameters":[{"name":"ghl_user_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Ghl User Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackMapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Map Slack Admin Lead Rotator Slack Map  Ghl User Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-rotator/settings":{"put":{"tags":["admin-lead-rotator"],"summary":"Update Settings","description":"Choose (or clear) the fallback assignee.","operationId":"update_settings_admin_lead_rotator_settings_put","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Settings Admin Lead Rotator Settings Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding":{"get":{"tags":["admin-rep-onboarding"],"summary":"List Reps","operationId":"list_reps_admin_rep_onboarding_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Reps Admin Rep Onboarding Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-rep-onboarding"],"summary":"Create","operationId":"create_admin_rep_onboarding_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NewRep"},{"$ref":"#/components/schemas/AdoptRep"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/unenrolled":{"get":{"tags":["admin-rep-onboarding"],"summary":"Unenrolled","operationId":"unenrolled_admin_rep_onboarding_unenrolled_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unenrolled Admin Rep Onboarding Unenrolled Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/{rep_id}":{"get":{"tags":["admin-rep-onboarding"],"summary":"Get","operationId":"get_admin_rep_onboarding__rep_id__get","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-rep-onboarding"],"summary":"Update","operationId":"update_admin_rep_onboarding__rep_id__patch","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRep"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/{rep_id}/refresh":{"post":{"tags":["admin-rep-onboarding"],"summary":"Refresh","operationId":"refresh_admin_rep_onboarding__rep_id__refresh_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/{rep_id}/steps/{key}/run":{"post":{"tags":["admin-rep-onboarding"],"summary":"Run Step","operationId":"run_step_admin_rep_onboarding__rep_id__steps__key__run_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Key"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/{rep_id}/go-live":{"post":{"tags":["admin-rep-onboarding"],"summary":"Go Live","operationId":"go_live_admin_rep_onboarding__rep_id__go_live_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoLive"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/{rep_id}/pause":{"post":{"tags":["admin-rep-onboarding"],"summary":"Pause","operationId":"pause_admin_rep_onboarding__rep_id__pause_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pause"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/{rep_id}/resume":{"post":{"tags":["admin-rep-onboarding"],"summary":"Resume","operationId":"resume_admin_rep_onboarding__rep_id__resume_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-onboarding/{rep_id}/archive":{"post":{"tags":["admin-rep-onboarding"],"summary":"Archive","operationId":"archive_admin_rep_onboarding__rep_id__archive_post","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepOnboarding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/forecast":{"get":{"tags":["admin-forecast"],"summary":"Get Forecast","operationId":"get_forecast_admin_forecast_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Forecast Admin Forecast Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/forecast/run":{"post":{"tags":["admin-forecast"],"summary":"Run Forecast","operationId":"run_forecast_admin_forecast_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__api__routes__admin_forecast__RunRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Forecast Admin Forecast Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/forecast/what-if":{"get":{"tags":["admin-forecast"],"summary":"What If","operationId":"what_if_admin_forecast_what_if_get","parameters":[{"name":"daily_spend","in":"query","required":true,"schema":{"type":"number","maximum":20000.0,"minimum":0,"title":"Daily Spend"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response What If Admin Forecast What If Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/forecast/deal-ai-reads/run":{"post":{"tags":["admin-forecast"],"summary":"Run Deal Ai Reads","description":"Queue the AI deal reader now (409 while DEAL_AI_READS_ENABLED is off).","operationId":"run_deal_ai_reads_admin_forecast_deal_ai_reads_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DealAiReadsRunRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Deal Ai Reads Admin Forecast Deal Ai Reads Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/forecast/deal-ai-reads":{"get":{"tags":["admin-forecast"],"summary":"Get Deal Ai Reads","description":"Newest read per deal over the last ``days``: counts, spend and the rows.","operationId":"get_deal_ai_reads_admin_forecast_deal_ai_reads_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":120,"minimum":1,"default":7,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deal Ai Reads Admin Forecast Deal Ai Reads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/funding-cases":{"get":{"tags":["admin-funding-cases"],"summary":"List Funding Cases","operationId":"list_funding_cases_admin_funding_cases_get","parameters":[{"name":"partner","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z0-9_]{1,40}$"},{"type":"null"}],"title":"Partner"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^(sent|contacted|applied|approved|declined|funded|paid|withdrawn|no_response)$"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Funding Cases Admin Funding Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/funding-reps":{"get":{"tags":["admin-funding-reps"],"summary":"List Funding Reps","operationId":"list_funding_reps_admin_funding_reps_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Funding Reps Admin Funding Reps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-funding-reps"],"summary":"Add Funding Rep","operationId":"add_funding_rep_admin_funding_reps_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingRepCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Funding Rep Admin Funding Reps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/funding-reps/{rep_id}":{"patch":{"tags":["admin-funding-reps"],"summary":"Edit Funding Rep","operationId":"edit_funding_rep_admin_funding_reps__rep_id__patch","parameters":[{"name":"rep_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rep Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingRepUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Funding Rep Admin Funding Reps  Rep Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ad-set-scorecard":{"get":{"tags":["admin-ad-set-scorecard"],"summary":"Get Scorecard","operationId":"get_scorecard_admin_ad_set_scorecard_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Scorecard Admin Ad Set Scorecard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ad-set-scorecard/run":{"post":{"tags":["admin-ad-set-scorecard"],"summary":"Run Scorecard","operationId":"run_scorecard_admin_ad_set_scorecard_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__api__routes__admin_ad_set_scorecard__RunRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Scorecard Admin Ad Set Scorecard Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-coaching-digest/run":{"post":{"tags":["admin-rep-coaching-digest"],"summary":"Run Digest","operationId":"run_digest_admin_rep_coaching_digest_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__api__routes__admin_rep_coaching_digest__RunRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Digest Admin Rep Coaching Digest Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-coaching-digest/dry-run":{"get":{"tags":["admin-rep-coaching-digest"],"summary":"Get Dry Run","operationId":"get_dry_run_admin_rep_coaching_digest_dry_run_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dry Run Admin Rep Coaching Digest Dry Run Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bot-gaps":{"get":{"tags":["admin-bot-gaps"],"summary":"List Bot Gaps","operationId":"list_bot_gaps_admin_bot_gaps_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["open","answered","all"],"type":"string","default":"open","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Bot Gaps Admin Bot Gaps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bot-gaps/{gap_id}/answer":{"post":{"tags":["admin-bot-gaps"],"summary":"Answer Bot Gap","operationId":"answer_bot_gap_admin_bot_gaps__gap_id__answer_post","parameters":[{"name":"gap_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Gap Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAnswer"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Bot Gap Admin Bot Gaps  Gap Id  Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bot-gaps/{gap_id}/retry":{"post":{"tags":["admin-bot-gaps"],"summary":"Retry Bot Gap","operationId":"retry_bot_gap_admin_bot_gaps__gap_id__retry_post","parameters":[{"name":"gap_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Gap Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Bot Gap Admin Bot Gaps  Gap Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bot-gaps/capabilities":{"get":{"tags":["admin-bot-gaps"],"summary":"List Capabilities","operationId":"list_capabilities_admin_bot_gaps_capabilities_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Capabilities Admin Bot Gaps Capabilities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bot-gaps/capabilities/{capability_id}/shipped":{"post":{"tags":["admin-bot-gaps"],"summary":"Capability Shipped","operationId":"capability_shipped_admin_bot_gaps_capabilities__capability_id__shipped_post","parameters":[{"name":"capability_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Capability Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Capability Shipped Admin Bot Gaps Capabilities  Capability Id  Shipped Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bot-gaps/known-answers":{"get":{"tags":["admin-bot-gaps"],"summary":"List Known Answers","operationId":"list_known_answers_admin_bot_gaps_known_answers_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Known Answers Admin Bot Gaps Known Answers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/bot-gaps/sweep":{"post":{"tags":["admin-bot-gaps"],"summary":"Run Sweep","operationId":"run_sweep_admin_bot_gaps_sweep_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Sweep Admin Bot Gaps Sweep Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/staff-call-digest/preview":{"get":{"tags":["admin-staff-call-digest"],"summary":"Preview Digest","operationId":"preview_digest_admin_staff_call_digest_preview_get","parameters":[{"name":"staff","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Staff"}},{"name":"day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Day"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Digest Admin Staff Call Digest Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/feature-requests/preview":{"get":{"tags":["admin-feature-requests"],"summary":"Preview Card","operationId":"preview_card_admin_feature_requests_preview_get","parameters":[{"name":"capability_gap_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Capability Gap Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Card Admin Feature Requests Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/feature-requests/backfill":{"post":{"tags":["admin-feature-requests"],"summary":"Backfill","operationId":"backfill_admin_feature_requests_backfill_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":30,"title":"Limit"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Backfill Admin Feature Requests Backfill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/feature-requests/{approval_id}/redrive":{"post":{"tags":["admin-feature-requests"],"summary":"Redrive","operationId":"redrive_admin_feature_requests__approval_id__redrive_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Redrive Admin Feature Requests  Approval Id  Redrive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/measures":{"get":{"tags":["admin-measures"],"summary":"Get Measures","operationId":"get_measures_admin_measures_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":52,"minimum":1,"default":12,"title":"Limit"}},{"name":"live","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Live"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Measures Admin Measures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/measures/snapshot":{"post":{"tags":["admin-measures"],"summary":"Queue Snapshot","operationId":"queue_snapshot_admin_measures_snapshot_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Queue Snapshot Admin Measures Snapshot Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/duplicate-purchases":{"get":{"tags":["admin-duplicate-purchases"],"summary":"List Duplicate Purchases","operationId":"list_duplicate_purchases_admin_duplicate_purchases_get","parameters":[{"name":"lookback_days","in":"query","required":false,"schema":{"type":"integer","maximum":3650,"minimum":1,"default":60,"title":"Lookback Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Duplicate Purchases Admin Duplicate Purchases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/author-site-forms/refresh":{"post":{"tags":["admin-author-site-forms"],"summary":"Queue Refresh","operationId":"queue_refresh_admin_author_site_forms_refresh_post","parameters":[{"name":"smoke","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Smoke"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Queue Refresh Admin Author Site Forms Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-author-site-forms"],"summary":"Last Refresh","operationId":"last_refresh_admin_author_site_forms_refresh_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Last Refresh Admin Author Site Forms Refresh Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-hygiene":{"get":{"tags":["admin-pipeline-hygiene"],"summary":"Get View","operationId":"get_view_admin_pipeline_hygiene_get","parameters":[{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get View Admin Pipeline Hygiene Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-hygiene/veto":{"post":{"tags":["admin-pipeline-hygiene"],"summary":"Veto Deal","operationId":"veto_deal_admin_pipeline_hygiene_veto_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VetoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Veto Deal Admin Pipeline Hygiene Veto Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-hygiene/revert/{run_id}":{"post":{"tags":["admin-pipeline-hygiene"],"summary":"Revert","operationId":"revert_admin_pipeline_hygiene_revert__run_id__post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revert Admin Pipeline Hygiene Revert  Run Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/pipeline-hygiene/run":{"post":{"tags":["admin-pipeline-hygiene"],"summary":"Run Now","operationId":"run_now_admin_pipeline_hygiene_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__api__routes__admin_pipeline_hygiene__RunRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Now Admin Pipeline Hygiene Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/review-booking-rescue/preview":{"get":{"tags":["admin-review-booking-rescue"],"summary":"Preview","operationId":"preview_admin_review_booking_rescue_preview_get","parameters":[{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"}},{"name":"ignore_quiet_hours","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ignore Quiet Hours"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Admin Review Booking Rescue Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/review-booking-rescue/reps":{"get":{"tags":["admin-review-booking-rescue"],"summary":"Reps","operationId":"reps_admin_review_booking_rescue_reps_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reps Admin Review Booking Rescue Reps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/magic-link":{"post":{"tags":["auth"],"summary":"Request Magic Link","description":"Send a magic link to the given email. Always returns 200 to prevent email enumeration.","operationId":"request_magic_link_auth_magic_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify":{"post":{"tags":["auth"],"summary":"Verify Token","description":"Verify a magic link token. Sets an httpOnly JWT cookie on success.\n\nUses an atomic consume_auth_token RPC that performs a single\nUPDATE WHERE used = false AND expires_at > now() RETURNING *,\neliminating the read-then-write race window.","operationId":"verify_token_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh Session","description":"Re-mint a project session with a fresh idle window.\n\nCalled by the Next middleware (server side, bearer token) when the portal\ncookie is valid but more than a day old. The new token keeps the ORIGINAL\nsession_issued_at, so the absolute cap and the training-demo cutoff still\napply, and its exp never passes the cap.\n\n- 401: not a valid project session (expired, over a limit, bad signature,\n  wrong type). Middleware clears the cookie and sends the author to /login.\n- 409: refresh does not apply — the kill switch is on (idle window <= 1 day)\n  or this is a training-demo session. Middleware leaves the cookie alone.","operationId":"refresh_session_auth_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshSessionResponse"}}}}}}},"/auth/magic-link/recover":{"post":{"tags":["auth"],"summary":"Recover Magic Link","description":"Email a fresh single-use link to the address the ORIGINAL link went to.\n\nThe token row (used, or expired within 30 days) is proof of identity, never\nauthorization: this route signs nobody in, it only queues a new magic link\nthrough the normal send path. The project (or, for a waiting-room link,\nthe author) and email come from the row and are re-validated against the\nlive login identity; a client-supplied project hint is ignored. Rate-limited per IP (limiter / client_ip) and per\ntoken. Every outcome returns the same neutral response.","operationId":"recover_magic_link_auth_magic_link_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRecoverRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/signin-code/send":{"post":{"tags":["auth"],"summary":"Send Signin Code","description":"Send a 6-digit code for the book a used or expired link names.\n\nProof of identity is the original link (its auth_tokens row, used or\nexpired within 30 days), exactly like /auth/magic-link/recover; the code\ngoes to the book's CURRENT login email (and phone when texts are allowed)\nand only when that email still matches the one the link went to. Rate\nlimited per IP (limiter / client_ip) and per link. Always neutral.","operationId":"send_signin_code_auth_signin_code_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigninCodeSendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigninCodeSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/signin-code/verify":{"post":{"tags":["auth"],"summary":"Verify Signin Code","description":"Sign in with the 6-digit code sent for this link. One use, five tries.","operationId":"verify_signin_code_auth_signin_code_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigninCodeVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Clear the session cookie server-side (HttpOnly cookies can't be cleared by JS).","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/checkout/approved/{token}":{"get":{"tags":["approved-offer"],"summary":"Open Approved Offer","description":"Resolve an approved-offer link to a fresh Stripe Checkout Session.","operationId":"open_approved_offer_checkout_approved__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/approved-offers":{"post":{"tags":["approved-offer"],"summary":"Mint Approved Offer Link","description":"Mint a signed approved-offer link (admin key). Creates no Stripe object.","operationId":"mint_approved_offer_link_api_admin_approved_offers_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovedOfferMintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovedOfferMintResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/r/{token}":{"get":{"tags":["rep-durable-link"],"summary":"Open Rep Link","description":"Resolve a rep's 30-day link to a Stripe Checkout Session.","operationId":"open_rep_link_pay_r__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/restart/{token}":{"get":{"tags":["plan-restart-link"],"summary":"Open Plan Restart","operationId":"open_plan_restart_pay_restart__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/restart/{token}/done":{"get":{"tags":["plan-restart-link"],"summary":"Finish Plan Restart","operationId":"finish_plan_restart_pay_restart__token__done_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"cs","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cs"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/switch-to-financing":{"post":{"tags":["checkout"],"summary":"Switch Direct Package Checkout To Financing","description":"Retire a matching open package Session before the finance review opens.","operationId":"switch_direct_package_checkout_to_financing_api_checkout_switch_to_financing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancingPackageCheckoutSwitchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Switch Direct Package Checkout To Financing Api Checkout Switch To Financing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/talk-your-book/contract":{"get":{"tags":["checkout"],"summary":"Get Talk Your Book Checkout Contract","description":"Advertise the exact contract supported by this Railway deployment.\n\nVercel may deploy first. A new browser must confirm these values before it\nasks Stripe for a session, so an older backend cannot silently record a v2\nassent as a frozen v1 sale. The enrollment flag remains the kill switch.","operationId":"get_talk_your_book_checkout_contract_api_checkout_talk_your_book_contract_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkYourBookCheckoutContractResponse"}}}}}}},"/api/checkout/create-session":{"post":{"tags":["checkout"],"summary":"Create Checkout Session Legacy","description":"Create a Stripe Checkout Session (legacy endpoint for frontend/blueprint flow).","operationId":"create_checkout_session_legacy_api_checkout_create_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/authority-plan":{"post":{"tags":["checkout"],"summary":"Authority Plan Checkout","operationId":"authority_plan_checkout_api_checkout_authority_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityPlanCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Authority Plan Checkout Api Checkout Authority Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/authority-book-launch":{"post":{"tags":["checkout"],"summary":"Create Authority Book Launch Checkout","operationId":"create_authority_book_launch_checkout_api_checkout_authority_book_launch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityBookLaunchCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/session":{"post":{"tags":["checkout"],"summary":"Create Checkout Session","description":"Create a Stripe Checkout Session for a one-time package purchase.\n\nLogic lives in app/services/payments.create_checkout_session (PLAN-04\nextraction) — same contract, same status codes, same session shape.","operationId":"create_checkout_session_api_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/session/talk-your-book/v2":{"post":{"tags":["checkout"],"summary":"Create Talk Your Book V2 Checkout Session","description":"Fence v2 assent from a rolling-deploy v1 replica before any charge.","operationId":"create_talk_your_book_v2_checkout_session_api_checkout_session_talk_your_book_v2_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/talk-your-book/access-link":{"post":{"tags":["checkout"],"summary":"Request Talk Your Book Access Link","description":"Email a capability without revealing whether a blueprint email exists.","operationId":"request_talk_your_book_access_link_api_checkout_talk_your_book_access_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkYourBookAccessLinkRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkYourBookAccessLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/talk-your-book/access":{"get":{"tags":["checkout"],"summary":"Open Talk Your Book Blueprint Access","description":"Move emailed buyer authority into a cookie before tracked rendering.","operationId":"open_talk_your_book_blueprint_access_api_checkout_talk_your_book_access_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":4096,"title":"Token"}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","default":"full","title":"Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/talk-your-book/quote":{"get":{"tags":["checkout"],"summary":"Open Talk Your Book Rep Quote","description":"Move a buyer-bound advisor quote into scoped checkout cookies.","operationId":"open_talk_your_book_rep_quote_api_checkout_talk_your_book_quote_get","parameters":[{"name":"quote_token","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":4096,"title":"Quote Token"}},{"name":"access_token","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":4096,"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/talk-your-book/share":{"get":{"tags":["checkout"],"summary":"Open Talk Your Book Sales Link","description":"Consume a reusable bearer link before rendering any tracked page.","operationId":"open_talk_your_book_sales_link_api_checkout_talk_your_book_share_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":4096,"title":"Token"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"book","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book"}},{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Next"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}},{"name":"reveal","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Reveal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/talk-your-book/diy-presentation/reveal":{"get":{"tags":["checkout"],"summary":"Get Diy Presentation Reveal","description":"Return the stored 72-hour clock start for a normalized viewer email.","operationId":"get_diy_presentation_reveal_api_checkout_talk_your_book_diy_presentation_reveal_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":320,"title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyPresentationRevealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["checkout"],"summary":"Record Diy Presentation Reveal","description":"Start the 72-hour clock. The first write for an email wins.","operationId":"record_diy_presentation_reveal_api_checkout_talk_your_book_diy_presentation_reveal_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyPresentationRevealRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyPresentationRevealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/talk-your-book/diy-presentation/checkout":{"post":{"tags":["checkout"],"summary":"Start Diy Presentation Checkout","description":"Mint a Blueprint-bound checkout URL, or email the existing access link.","operationId":"start_diy_presentation_checkout_api_checkout_talk_your_book_diy_presentation_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyPresentationCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyPresentationCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/split":{"post":{"tags":["checkout"],"summary":"Create Split Pay Checkout","description":"Create a Stripe Checkout Session for the 2-pay split payment plan.\n\nSeparate page from full-pay checkout. No order bump — the audiobook is\nbundled into the payment amount ($3,000×2 vs $2,500×2).\nUses Stripe subscription mode with cancel_at set to auto-cancel after 2 payments.","operationId":"create_split_pay_checkout_api_checkout_split_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitPayCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/recover":{"post":{"tags":["checkout"],"summary":"Recreate Failed Checkout","description":"Recreate one failed 2-pay checkout from a signed, server-owned SKU.\n\nThe browser supplies no Price id, amount, email, success URL, or product\nmetadata.  All purchase authority is recovered from the signed capability,\nthe original Stripe session, and the server configuration.","operationId":"recreate_failed_checkout_api_checkout_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRecoveryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/upgrade":{"post":{"tags":["checkout"],"summary":"Create Upgrade Checkout","description":"Create a Stripe Checkout Session for a back-end upgrade purchase.\n\nRequires JWT auth — only the project owner can trigger an upgrade.\nOnly available for existing authority_book projects upgrading to a higher tier.","operationId":"create_upgrade_checkout_api_checkout_upgrade_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/audiobook":{"post":{"tags":["checkout"],"summary":"Create Audiobook Checkout","description":"Create a Stripe Checkout Session for the AI Audiobook add-on.\n\nPost-purchase path: an existing project owner who skipped the audiobook at\nfirst checkout (e.g. bought the book only) can add it later from the portal\nVoice Studio. Requires JWT auth — only the project owner can purchase.","operationId":"create_audiobook_checkout_api_checkout_audiobook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/aplus":{"post":{"tags":["checkout"],"summary":"Create Aplus Checkout","description":"Create a Stripe Checkout Session for the Amazon A+ Content Pack add-on.\n\nMirrors ``create_audiobook_checkout`` (same JWT surface, same durable\npre-charge reservation). Authority tiers v3+ bundle the pack in\nentitlements; this is the paid path for everyone else (DIY authors and\npre-v3 tiers). Until a portal buy-button ships, sales mints links via the\nadmin route (``/admin/clients/{id}/aplus-checkout-link``).","operationId":"create_aplus_checkout_api_checkout_aplus_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AplusCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/press":{"post":{"tags":["checkout"],"summary":"Create Press Checkout","description":"Stripe Checkout for a press upgrade, bought from the portal's Press &\nMedia card. Same JWT surface and durable pre-charge reservation as the A+\nadd-on. A token for another project gets 404.","operationId":"create_press_checkout_api_checkout_press_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PressCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/subscription":{"post":{"tags":["checkout"],"summary":"Create Subscription Checkout","description":"Create a Stripe Checkout Session for a subscription product.\n\nRequires JWT auth — only authenticated project owners can add subscriptions.\n\nRate-limit decision (Task 263): This endpoint is already gated by JWT auth,\nso anonymous abuse is not possible. The 10/minute IP-based rate limit is\nadded as defense-in-depth against credential-stuffing or compromised tokens.","operationId":"create_subscription_checkout_api_checkout_subscription_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/diy-kickoff-link":{"get":{"tags":["checkout"],"summary":"Get Diy Kickoff Link","description":"The DIY Kickoff booking link for a buyer who returned without a session.\n\nPayva sends DIY buyers back to the thank-you page with no Stripe session,\nso the page asks for the checkout email. A recent DIY buyer whose routing\nnames a rep gets that rep's own calendar; everyone else the round-robin.\nThe link never carries the buyer's name. Never errors: a failed decision\nis the round-robin, which the kickoff poller later moves to the rep.","operationId":"get_diy_kickoff_link_api_checkout_diy_kickoff_link_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":254,"title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyKickoffLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/session-status/{session_id}":{"get":{"tags":["checkout"],"summary":"Get Checkout Session Status","description":"Resolve a Stripe checkout session to a provisioned project.\n\nProject authorization fails closed unless the durable row is bound to this\nexact session ID. Provider verification problems return status=\"unknown\"\nso the frontend can fall back to the pre-existing /login behavior.","operationId":"get_checkout_session_status_api_checkout_session_status__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":{"$ref":"#/components/schemas/CheckoutSessionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-native/create-intent":{"post":{"tags":["checkout-native"],"summary":"Create Intent","description":"Create (or idempotently reuse) the checkout PaymentIntent for a funnel.","operationId":"create_intent_api_checkout_native_create_intent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-native/update-bump":{"post":{"tags":["checkout-native"],"summary":"Update Bump","description":"Add/remove the order bump on a pending order and re-price the PI.","operationId":"update_bump_api_checkout_native_update_bump_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBumpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBumpResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-native/order-status/{order_id}":{"get":{"tags":["checkout-native"],"summary":"Order Status","description":"Return the bridge status for an order (polled by order-bridge.ts).\n\n``{status: pending_payment|ready|provisioning|unknown, next_step_slug}``.","operationId":"order_status_api_checkout_native_order_status__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":{"type":"object","additionalProperties":true,"title":"Response Order Status Api Checkout Native Order Status  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-native/upsell/nonce":{"post":{"tags":["checkout-native"],"summary":"Upsell Nonce","description":"Mint (or return the already-minted) single-use nonce for an upsell step.\n\nIdempotent per (order, step) so a page reload keeps a usable nonce; the\nnonce is consumed exactly once at accept/decline.","operationId":"upsell_nonce_api_checkout_native_upsell_nonce_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsellNonceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsellNonceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-native/upsell/accept":{"post":{"tags":["checkout-native"],"summary":"Upsell Accept","description":"Accept an upsell: charge the saved PM off-session (one-pay or installment\n#1). DB-first claim + single-use nonce guard against double-charges.","operationId":"upsell_accept_api_checkout_native_upsell_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsellAcceptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsellAcceptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-native/upsell/decline":{"post":{"tags":["checkout-native"],"summary":"Upsell Decline","description":"Decline an upsell: consume the nonce, return the decline_next_step slug.","operationId":"upsell_decline_api_checkout_native_upsell_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsellDeclineRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsellDeclineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-native/funnel-config/{slug}":{"get":{"tags":["checkout-native"],"summary":"Funnel Config","description":"Public display config for an active funnel: steps + display prices.\n\nThe frontend fetches this server-side to fill ``{price}`` placeholders — no\ndollar amounts are ever hardcoded in JSX. Cached ``s-maxage=60`` so price\nedits (funnel_prices rows) take effect within ~60s with no deploy. 404 when\nthe funnel is missing or inactive (or when native checkout is dark).","operationId":"funnel_config_api_checkout_native_funnel_config__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Funnel Config Api Checkout Native Funnel Config  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cover-votes/{identifier}":{"get":{"tags":["cover-vote"],"summary":"Get Cover Vote Page","description":"Return public cover-vote page data. Accepts project UUID or slug.\n\n404s both when the project is missing and when its title is not\nauthor-approved (an unapproved title must never reach a public page or a\npermanent public URL).","operationId":"get_cover_vote_page_api_cover_votes__identifier__get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverVotePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cover-vote"],"summary":"Submit Cover Vote","description":"Submit a cover vote and return live percentages. Accepts project UUID or slug.","operationId":"submit_cover_vote_api_cover_votes__identifier__post","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverVoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverVoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cover-votes/{identifier}/headshot":{"get":{"tags":["cover-vote"],"summary":"Get Cover Vote Headshot","description":"Serve the author headshot through the API (same-origin-safe).\n\nRaw R2 presigned URLs from the uploads bucket carry no CORS headers and\nwere blocked in visitors' browsers (WF2-D41). Streaming through the API\nputs the image behind the app's CORS middleware and a stable URL.","operationId":"get_cover_vote_headshot_api_cover_votes__identifier__headshot_get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cover-votes/{identifier}/results":{"get":{"tags":["cover-vote"],"summary":"Get Cover Vote Results","description":"Return vote results for the author dashboard. Accepts project UUID or slug.\n\nWARNING: Unauthenticated. The slug is guessable (book title slugified, e.g.\n\"talk-your-book-into-existence\") — it is NOT a capability token. Rate-limited\nat 30/min. Data exposed is only aggregate vote counts (no PII). Accepted risk\nfor now; tracked as ROADMAP item G for proper auth.","operationId":"get_cover_vote_results_api_cover_votes__identifier__results_get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverVoteResultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cover-votes/{identifier}/form":{"post":{"tags":["cover-vote"],"summary":"Submit Cover Vote Form","description":"Cover-vote submit from an author-site page (urlencoded, CORS simple).","operationId":"submit_cover_vote_form_api_cover_votes__identifier__form_post","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverVoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cowork/asins/{token}":{"post":{"tags":["cowork"],"summary":"Cowork Writeback Asins","description":"Record ASINs a Cowork operator encountered, bound to the token's project.\n\nFail-closed on a bad/expired token (opaque 404 — no oracle for which projects\nexist). Additive-only: an existing format's ASIN is never overwritten (same\nformat + different ASIN is reported as a conflict, not written). Returns\n``{recorded, conflicts, skipped}``.","operationId":"cowork_writeback_asins_cowork_asins__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoworkAsinWriteback"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cowork Writeback Asins Cowork Asins  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cowork/published/{token}":{"post":{"tags":["cowork"],"summary":"Cowork Record Book Published","description":"The KDP Cowork bundle reports the book is queued, with its ASIN.\n\nA purpose-scoped signed token (not the A+ ASIN token; no cookie;\npossession is the grant). The bundle never clicks Publish: it calls this\nafter the HUMAN queued the book and KDP shows the ASIN. This records the\nbook as QUEUED (ASIN + launch date); it becomes published only when the\nlisting probe reads the Amazon page live. Opaque 404 on a bad token.","operationId":"cowork_record_book_published_cowork_published__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookPublishedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cowork Record Book Published Cowork Published  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cowork/identifiers/{token}":{"post":{"tags":["cowork"],"summary":"Cowork Record Kdp Identifiers","description":"The KDP Cowork bundle reports an identifier the moment KDP shows it.\n\nThe free paperback ISBN right after \"Assign ISBN\", and each format's ASIN\nonce the Bookshelf shows one (Mike, 2026-10-16). Same purpose-scoped token\nas ``/cowork/published``; possession is the grant; opaque 404 on a bad\ntoken. Data capture only: nothing on Amazon changes and the book is not\nmarked published.","operationId":"cowork_record_kdp_identifiers_cowork_identifiers__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KdpIdentifiersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cowork Record Kdp Identifiers Cowork Identifiers  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support-calls/outcome":{"get":{"tags":["support-call-outcome"],"summary":"Confirm Outcome Page","description":"Confirm page. Writes nothing.","operationId":"confirm_outcome_page_support_calls_outcome_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}},{"name":"o","in":"query","required":false,"schema":{"type":"string","default":"","title":"O"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["support-call-outcome"],"summary":"Record Outcome Post","operationId":"record_outcome_post_support_calls_outcome_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_record_outcome_post_support_calls_outcome_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/reply/{token}":{"get":{"tags":["linkedin-reply"],"summary":"Reply Form","operationId":"reply_form_linkedin_reply__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["linkedin-reply"],"summary":"Reply Submit","operationId":"reply_submit_linkedin_reply__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_reply_submit_linkedin_reply__token__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/reply/{token}/result/{row_id}":{"get":{"tags":["linkedin-reply"],"summary":"Reply Result","operationId":"reply_result_linkedin_reply__token__result__row_id__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/not-booked/{token}":{"get":{"tags":["linkedin-reply"],"summary":"Not Booked Page","operationId":"not_booked_page_linkedin_not_booked__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"","title":"Format"}},{"name":"url","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":100,"title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/nudge/{token}":{"post":{"tags":["linkedin-reply"],"summary":"Nudge Submit","operationId":"nudge_submit_linkedin_nudge__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_nudge_submit_linkedin_nudge__token__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/results/{token}":{"get":{"tags":["linkedin-reply"],"summary":"Results Page","operationId":"results_page_linkedin_results__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"","title":"Format"}},{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Weeks"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/api/reply":{"post":{"tags":["linkedin-reply"],"summary":"Api Reply","operationId":"api_reply_linkedin_api_reply_post","parameters":[{"name":"wait","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":0,"default":0,"title":"Wait"}},{"name":"x-linkedin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":65},{"type":"null"}],"title":"X-Linkedin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PositiveReplyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/api/reply/{row_id}":{"get":{"tags":["linkedin-reply"],"summary":"Api Reply Result","operationId":"api_reply_result_linkedin_api_reply__row_id__get","parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"x-linkedin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":65},{"type":"null"}],"title":"X-Linkedin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/api/not-booked":{"post":{"tags":["linkedin-reply"],"summary":"Api Not Booked","operationId":"api_not_booked_linkedin_api_not_booked_post","parameters":[{"name":"x-linkedin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":65},{"type":"null"}],"title":"X-Linkedin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotBookedIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/api/event":{"post":{"tags":["linkedin-reply"],"summary":"Api Event","operationId":"api_event_linkedin_api_event_post","parameters":[{"name":"x-linkedin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":65},{"type":"null"}],"title":"X-Linkedin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyEventIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/api/results":{"get":{"tags":["linkedin-reply"],"summary":"Api Results","operationId":"api_results_linkedin_api_results_get","parameters":[{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Weeks"}},{"name":"x-linkedin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":65},{"type":"null"}],"title":"X-Linkedin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/run-report/{token}":{"get":{"tags":["linkedin-reply"],"summary":"Run Report Form","operationId":"run_report_form_linkedin_run_report__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["linkedin-reply"],"summary":"Run Report Submit","operationId":"run_report_submit_linkedin_run_report__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_run_report_submit_linkedin_run_report__token__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linkedin/api/run-report":{"post":{"tags":["linkedin-reply"],"summary":"Api Run Report","operationId":"api_run_report_linkedin_api_run_report_post","parameters":[{"name":"x-linkedin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":65},{"type":"null"}],"title":"X-Linkedin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunReportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/attribution/visitor":{"post":{"tags":["attribution"],"summary":"Record Visitor","operationId":"record_visitor_api_attribution_visitor_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorAttributionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorAttributionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/attribution/answers":{"post":{"tags":["attribution"],"summary":"Record Answers","operationId":"record_answers_api_attribution_answers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadAttributionAnswersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadAttributionAnswersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/attribution/front-end-buyers":{"get":{"tags":["admin-attribution"],"summary":"Front End Buyers","operationId":"front_end_buyers_admin_attribution_front_end_buyers_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":366,"minimum":1,"default":28,"title":"Days"}},{"name":"ghl","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Ghl"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Front End Buyers Admin Attribution Front End Buyers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/experiments/active":{"get":{"tags":["experiments"],"summary":"Active Experiments","description":"Tiny public payload of RUNNING experiments for edge bucketing.\n\nCDN-cacheable (``s-maxage=60, stale-while-revalidate=30``) so ops changes\npropagate within ~60s. Generously rate-limited (the edge caches in-process\nfor 60s, so real traffic is low). Never leaks hypotheses or draft/stopped\nexperiments.","operationId":"active_experiments_api_experiments_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ActiveExperiment"},"type":"array","title":"Response Active Experiments Api Experiments Active Get"}}}}}}},"/api/experiments/expose":{"post":{"tags":["experiments"],"summary":"Expose","description":"Record a variant exposure. Server-resolves the authoritative variant.\n\nIdempotency: the ASSIGNMENT is idempotent (ON CONFLICT read-back — a visitor\nseen twice yields one assignment row). Exposures are an append-only log, so\nthe same visitor twice legitimately produces two exposure rows. Returns 204\nregardless of whether the experiment is running (a stopped experiment simply\nno-ops) so the client fire-and-forget never sees an error.","operationId":"expose_api_experiments_expose_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExposeRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/experiments/convert":{"post":{"tags":["experiments"],"summary":"Convert Lead","description":"Record a LEAD conversion for every running experiment bound to a surface.\n\nCalled server-to-server by the Next.js lead route, never by a browser, so it\nis gated on the shared ``X-Dictate-Edge-Secret`` header (constant-time\ncompared in ``valid_edge_secret``). FAIL CLOSED: an unset secret makes\n``valid_edge_secret`` return False, so the endpoint 403s rather than becoming\nan open conversion-injection surface on a mis-provisioned deploy.\n\nEXACTLY ONE experiment is credited: the MOST SPECIFIC surface match, using\nthe same ``len(surface)`` tie-break as ``resolveSurfaceExperiment`` (which\npicks what the page DISPLAYS and what ``ExposureTracker`` records) and\n``_variant_for_surface`` in payments_native (which picks what checkout\nCHARGES). Crediting every match instead would give a site-wide experiment\nconversions with NO matching exposures whenever a more specific experiment\nshadowed it on the page — an inflated conversion rate on a denominator that\nwas never incremented, i.e. a fabricated winner.\n\nThe caller never names a variant. We parse THAT experiment's signed cookie\nentry and resolve via ``resolve_existing_assignment``: a persisted row, or a\nvalidly-signed cookie (which is then persisted). We deliberately do NOT fall\nthrough to bucketing a fresh visitor — minting an assignment at conversion\ntime would enroll someone at the exact moment they converted, creating a\nphantom cohort that converts at 100% and inflating whichever arm the hash\npicked. No enrollment evidence ⇒ they were never in the experiment ⇒ skip.\n\nINTENT TO TREAT: once a visitor IS enrolled, their lead is credited\nunconditionally. A missing exposure row is recorded as a diagnostic\n(``lead_without_exposure``) but never suppresses the conversion. Gating on it\nwould drop the leads of fast form-submitters and ad-blocked visitors while\nleaving them in the assignment denominator — converters silently recounted as\nnon-converters. That bias is DIFFERENTIAL if beacon loss correlates with the\narm (a heavier treatment loses more beacons), and SRM stays green throughout\nbecause allocation was never the problem, so nothing would flag it.\n\nBest-effort semantics: every failure is captured to Sentry and skipped, and\nthe endpoint returns 200 with whatever succeeded. A lead has ALREADY been\naccepted by the CRM webhook when this runs — attribution telemetry must never\nturn a captured lead into a caller-visible error or a retry storm.","operationId":"convert_lead_api_experiments_convert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadConversionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadConversionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/experiments":{"get":{"tags":["experiments-ops"],"summary":"List Experiments Route","description":"List all experiments (every status), newest first.","operationId":"list_experiments_route_api_ops_experiments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ExperimentResponse"},"type":"array","title":"Response List Experiments Route Api Ops Experiments Get"}}}}}},"post":{"tags":["experiments-ops"],"summary":"Create Experiment Route","description":"Create a draft experiment. Variant keys must be unique; total weight > 0.","operationId":"create_experiment_route_api_ops_experiments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExperimentRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/experiments/settings":{"get":{"tags":["experiments-ops"],"summary":"Experiment Settings Route","description":"The split-test ENV flags, read-only — the portal's autonomy panel.\n\nDeclared BEFORE the ``/{key}`` routes so ``/settings`` can never be captured\nas an experiment key by a future path-parameter route added above it.\n\nRead-only ON PURPOSE. Every flag here is an environment variable on Railway,\nread once at process start by the api, both workers, and beat. A DB-backed\nportal toggle would let this panel claim an autonomy mode the running\nprocesses do not actually have — and the failure is silent in the worst\ndirection (the panel says \"propose only\" while the beat task is stopping\nlive experiments, or vice versa). Showing the truth plus \"here is where to\nchange it\" is the only version of this that cannot lie.","operationId":"experiment_settings_route_api_ops_experiments_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentSettingsResponse"}}}}}}},"/api/ops/experiments/{key}":{"patch":{"tags":["experiments-ops"],"summary":"Update Experiment Status Route","description":"Transition an experiment's lifecycle status (draft→running→stopped/won).\n\n``won`` requires a ``winner_variant`` that is a real arm. Starting an\nexperiment stamps ``started_at``; ending it (stopped/won) stamps\n``ended_at``. A config_version bump is NOT triggered here — status changes\ndon't alter variant/weight config; a winner is applied downstream by editing\nthe funnel_prices/config to the winning variant.","operationId":"update_experiment_status_route_api_ops_experiments__key__patch","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateExperimentStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["experiments-ops"],"summary":"Delete Experiment Route","description":"Delete a DRAFT experiment. Drafts only — 409 for anything else.\n\nExists for one workflow: the operator reading a suggester proposal in the\nportal and deciding it is not worth running. A draft has no assignments, no\nexposures and no conversions, so removing it destroys no evidence.\n\nA ``running``/``stopped``/``won`` experiment is refused. Those rows are the\nonly explanation for their own exposure, conversion, and decision rows, and\na portal that can silently orphan them turns \"why did revenue move on the\n9th?\" into an unanswerable question. Stopping is the lifecycle action for a\ntest that should end; there is deliberately no delete for it.","operationId":"delete_experiment_route_api_ops_experiments__key__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/experiments/{key}/decisions":{"get":{"tags":["experiments-ops"],"summary":"Experiment Decisions Route","description":"The nightly decision-engine judgements for one experiment, newest first.\n\nThin read for the Phase 5 workbench: 30 rows is roughly a month of nightly\nruns, which is the span over which \"when did this flip, and on what\nnumbers?\" is actually asked.","operationId":"experiment_decisions_route_api_ops_experiments__key__decisions_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExperimentDecisionResponse"},"title":"Response Experiment Decisions Route Api Ops Experiments  Key  Decisions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/experiments/{key}/decision-preview":{"get":{"tags":["experiments-ops"],"summary":"Experiment Decision Preview Route","description":"Run the REAL decision policy against a fresh matured report. Read-only.\n\nThe portal needs the matured numbers and the gate checklist, and there must\nbe exactly one implementation of that judgement — so it asks the backend to\nrun :func:`decide` rather than re-deriving \"is it 14 days old with 25\nconversions per arm?\" in TypeScript. Nothing is recorded and nothing is\napplied: the nightly beat task remains the only writer of\n``experiment_decisions`` and the only thing that may stop an experiment.\n\nAvailable for any experiment that has ever STARTED. A draft has no matured\ncohort (and no ``started_at``), so it 409s rather than returning a verdict\ncomputed on an empty population, which would read as ``insufficient_data``\nand look like a measurement rather than a category error.","operationId":"experiment_decision_preview_route_api_ops_experiments__key__decision_preview_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentDecisionPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/experiments/{key}/report":{"get":{"tags":["experiments-ops"],"summary":"Experiment Report Route","description":"Per-variant funnel report + Bayesian P(beat control).","operationId":"experiment_report_route_api_ops_experiments__key__report_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/experiments/suggest":{"post":{"tags":["experiments-ops"],"summary":"Suggest Experiments Route","description":"Enqueue the AI test suggester now — the workbench's \"Get new test ideas\".\n\n202 + enqueue, never inline. The suggester makes an LLM call over the whole\nexperiment history and then writes rows; running that inside a request\nhandler is the pattern this codebase bans outright (CLAUDE.md: never run AI\nagent calls in FastAPI handlers). The operator gets the result where every\nother split-test result lands — the Slack digest.\n\nThe task carries its own per-ISO-week once-key, so mashing this button posts\nONE digest per week rather than one per click, and the second click is a\nno-op rather than a second paid model call. It is also gated by\n``experiment_suggester_enabled`` independently of this route: an operator\nwith the button cannot turn the feature on. When that flag is off we SAY so\nwith a 409 instead of returning a cheerful 202 for a task that will no-op —\na silent no-op is the failure mode that costs somebody an afternoon of \"why\ndid no digest ever arrive?\".","operationId":"suggest_experiments_route_api_ops_experiments_suggest_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Suggest Experiments Route Api Ops Experiments Suggest Post"}}}}}}},"/f/{token}":{"get":{"tags":["files"],"summary":"Redirect To File","description":"Resolve a signed file token to a fresh presigned URL and 302-redirect.\n\nThe token never changes; the redirect target is re-signed on every hit, so\nthe public link is effectively permanent.","operationId":"redirect_to_file_f__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/materials/{token}":{"get":{"tags":["materials-page"],"summary":"Get Materials Page","description":"Return one lead's blueprint materials and bonus guides.","operationId":"get_materials_page_api_materials__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/MaterialsPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}":{"get":{"tags":["blueprint-page"],"summary":"Get Door","description":"Which screen this browser sees. Reads only: a GET never claims a device.","operationId":"get_door_api_blueprint_page_door__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/DoorStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/claim":{"post":{"tags":["blueprint-page"],"summary":"Claim Door","description":"She tapped \"open my blueprint\": claims this browser with the first tap or a one-time key.","operationId":"claim_door_api_blueprint_page_door__token__claim_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoorStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/sign-in-link":{"post":{"tags":["blueprint-page"],"summary":"Send Sign In Link","description":"Send a one-time link + code to the phone or email ON FILE, and say truthfully whether it went.","operationId":"send_sign_in_link_api_blueprint_page_door__token__sign_in_link_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/sign-in-code":{"post":{"tags":["blueprint-page"],"summary":"Submit Sign In Code","description":"The 6-digit code from the sign-in message, typed on the browser that asked for it.","operationId":"submit_sign_in_code_api_blueprint_page_door__token__sign_in_code_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoorStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/page":{"get":{"tags":["blueprint-page"],"summary":"Get Page","operationId":"get_page_api_blueprint_page_door__token__page_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Page Api Blueprint Page Door  Token  Page Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/pdf":{"get":{"tags":["blueprint-page"],"summary":"Get Pdf","operationId":"get_pdf_api_blueprint_page_door__token__pdf_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Pdf Api Blueprint Page Door  Token  Pdf Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/activity":{"post":{"tags":["blueprint-page"],"summary":"Post Activity","operationId":"post_activity_api_blueprint_page_door__token__activity_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/favourite-cover":{"post":{"tags":["blueprint-page"],"summary":"Set Favourite Cover","operationId":"set_favourite_cover_api_blueprint_page_door__token__favourite_cover_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/photo":{"post":{"tags":["blueprint-page"],"summary":"Upload Photo","operationId":"upload_photo_api_blueprint_page_door__token__photo_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_photo_api_blueprint_page_door__token__photo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/author-picture/hide":{"post":{"tags":["blueprint-page"],"summary":"Hide Author Picture","description":"Her \"This doesn't look like me\" on one of the pictures made from her photo (wave BP8).","operationId":"hide_author_picture_api_blueprint_page_door__token__author_picture_hide_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PictureBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/note":{"post":{"tags":["blueprint-page"],"summary":"Save Note","operationId":"save_note_api_blueprint_page_door__token__note_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/note-audio":{"post":{"tags":["blueprint-page"],"summary":"Save Note Audio","operationId":"save_note_audio_api_blueprint_page_door__token__note_audio_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_save_note_audio_api_blueprint_page_door__token__note_audio_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/cover-name":{"post":{"tags":["blueprint-page"],"summary":"Change Cover Name","description":"Her typed name for her covers: queued for Jev's check and the redraw (no AI call here).","operationId":"change_cover_name_api_blueprint_page_door__token__cover_name_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Cover Name Api Blueprint Page Door  Token  Cover Name Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blueprint-page"],"summary":"Cover Name Status","operationId":"cover_name_status_api_blueprint_page_door__token__cover_name_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cover Name Status Api Blueprint Page Door  Token  Cover Name Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/dedication":{"post":{"tags":["blueprint-page"],"summary":"Save Dedication","description":"Her typed dedication: queued for Jev's check and the save (no AI call here).","operationId":"save_dedication_api_blueprint_page_door__token__dedication_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedicationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Dedication Api Blueprint Page Door  Token  Dedication Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blueprint-page"],"summary":"Dedication Status","operationId":"dedication_status_api_blueprint_page_door__token__dedication_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dedication Status Api Blueprint Page Door  Token  Dedication Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/steps/chapter":{"post":{"tags":["blueprint-page"],"summary":"Pick Chapter","operationId":"pick_chapter_api_blueprint_page_door__token__steps_chapter_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pick Chapter Api Blueprint Page Door  Token  Steps Chapter Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/steps/names":{"post":{"tags":["blueprint-page"],"summary":"Save Copy Names","operationId":"save_copy_names_api_blueprint_page_door__token__steps_names_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamesBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Copy Names Api Blueprint Page Door  Token  Steps Names Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/steps/cover-name":{"post":{"tags":["blueprint-page"],"summary":"Confirm Cover Name","operationId":"confirm_cover_name_api_blueprint_page_door__token__steps_cover_name_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Cover Name Api Blueprint Page Door  Token  Steps Cover Name Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/steps/signature":{"post":{"tags":["blueprint-page"],"summary":"Save Author Signature","description":"Her drawn signature: re-encoded, stored and queued (the PDF is re-made in the background; no send).","operationId":"save_author_signature_api_blueprint_page_door__token__steps_signature_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_save_author_signature_api_blueprint_page_door__token__steps_signature_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Author Signature Api Blueprint Page Door  Token  Steps Signature Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blueprint-page"],"summary":"Author Signature Status","operationId":"author_signature_status_api_blueprint_page_door__token__steps_signature_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Author Signature Status Api Blueprint Page Door  Token  Steps Signature Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/share":{"get":{"tags":["blueprint-page"],"summary":"Get Share Status","operationId":"get_share_status_api_blueprint_page_door__token__share_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Share Status Api Blueprint Page Door  Token  Share Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["blueprint-page"],"summary":"Turn Sharing On","operationId":"turn_sharing_on_api_blueprint_page_door__token__share_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareOptions"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Turn Sharing On Api Blueprint Page Door  Token  Share Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/door/{token}/share/off":{"post":{"tags":["blueprint-page"],"summary":"Turn Sharing Off","operationId":"turn_sharing_off_api_blueprint_page_door__token__share_off_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Turn Sharing Off Api Blueprint Page Door  Token  Share Off Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/share/{share_token}":{"get":{"tags":["blueprint-page"],"summary":"Get Shared Blueprint","operationId":"get_shared_blueprint_api_blueprint_page_share__share_token__get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Shared Blueprint Api Blueprint Page Share  Share Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/share/{share_token}/cover":{"get":{"tags":["blueprint-page"],"summary":"Shared Cover","description":"The share page's preview picture at a stable address (lane BP3C): a redirect to a\nfresh short-lived signed URL on every fetch, so a post's preview never breaks when one\nexpires. Keyed by the SHARE token only; switched off = 404. Never counts as a view.","operationId":"shared_cover_api_blueprint_page_share__share_token__cover_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/share/{share_token}/book-out":{"post":{"tags":["blueprint-page"],"summary":"Tell Me When It Is Out","operationId":"tell_me_when_it_is_out_api_blueprint_page_share__share_token__book_out_post","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookOutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Tell Me When It Is Out Api Blueprint Page Share  Share Token  Book Out Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/share/{share_token}/own-book":{"post":{"tags":["blueprint-page"],"summary":"I Have A Book Too","operationId":"i_have_a_book_too_api_blueprint_page_share__share_token__own_book_post","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response I Have A Book Too Api Blueprint Page Share  Share Token  Own Book Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/staff/{ref}":{"get":{"tags":["blueprint-page"],"summary":"Get Staff View","operationId":"get_staff_view_api_blueprint_page_staff__ref__get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Staff View Api Blueprint Page Staff  Ref  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-page/staff/{ref}/pdf":{"get":{"tags":["blueprint-page"],"summary":"Get Staff Pdf","operationId":"get_staff_pdf_api_blueprint_page_staff__ref__pdf_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Staff Pdf Api Blueprint Page Staff  Ref  Pdf Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diy-upgrade/{token}":{"get":{"tags":["diy-upgrade-page"],"summary":"Get Diy Upgrade Page","description":"Return one DIY buyer's personal upgrade page.","operationId":"get_diy_upgrade_page_api_diy_upgrade__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/DiyUpgradePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/diy-upgrade-links":{"post":{"tags":["diy-upgrade-page"],"summary":"Mint Diy Upgrade Link Admin","description":"Mint a DIY buyer's upgrade page link (admin key).","operationId":"mint_diy_upgrade_link_admin_api_admin_diy_upgrade_links_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeMintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeMintResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/diy-upgrade-links":{"post":{"tags":["diy-upgrade-page"],"summary":"Mint Diy Upgrade Link Ops","description":"Mint a DIY buyer's upgrade page link (signed-in strategist or ops).","operationId":"mint_diy_upgrade_link_ops_api_ops_diy_upgrade_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeMintRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeMintResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diy-upgrade/{token}/checkout":{"get":{"tags":["diy-upgrade-page"],"summary":"Open Diy Upgrade Checkout","description":"Open (or resume) the buyer's pay-the-difference checkout and redirect.\n\n``?addon=audiobook`` is option 2: the upgrade plus the $997\nhuman-narrated audiobook. Any other add-on value is a 422.","operationId":"open_diy_upgrade_checkout_api_diy_upgrade__token__checkout_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"addon","in":"query","required":false,"schema":{"anyOf":[{"const":"audiobook","type":"string"},{"type":"null"}],"title":"Addon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/diy-upgrade-checkout":{"post":{"tags":["diy-upgrade-page"],"summary":"Create Diy Upgrade Checkout Admin","description":"A DIY buyer's upgrade checkout link (admin key).","operationId":"create_diy_upgrade_checkout_admin_api_admin_diy_upgrade_checkout_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/diy-upgrade-checkout":{"post":{"tags":["diy-upgrade-page"],"summary":"Create Diy Upgrade Checkout Ops","description":"A DIY buyer's upgrade checkout link (signed-in strategist or ops).","operationId":"create_diy_upgrade_checkout_ops_api_ops_diy_upgrade_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/diy-upgrade-link":{"post":{"tags":["diy-upgrade-page"],"summary":"Ghl Diy Upgrade Link Webhook","description":"Fill a DIY buyer's upgrade link + deadline fields, then answer.\n\n200 ``{\"ready\": true, \"status\": \"minted\" | \"existing\", \"url\",\n\"expires_at\"}`` when the fields hold the current link; 409 ``{\"ready\":\nfalse, \"status\": \"window_ended\" | \"already_upgraded\" | \"not_diy\" |\n\"order_not_this_contact\" | \"refused\" | ...}`` when nothing was written and nothing must be sent;\n401 bad secret; 503 not configured or switched off; 502 a transient GHL /\ndatabase failure (nothing recorded; GHL may retry).","operationId":"ghl_diy_upgrade_link_webhook_webhooks_ghl_diy_upgrade_link_post","parameters":[{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watch-links/{token}":{"get":{"tags":["watch-links"],"summary":"Get Watch Link","description":"Return one watch link's state (active, expired, or scheduled).","operationId":"get_watch_link_api_watch_links__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/WatchLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watch-links/{token}/progress":{"post":{"tags":["watch-links"],"summary":"Report Watch Progress","description":"Record how far a fast-track viewer got. 204 whether or not it moved.","operationId":"report_watch_progress_api_watch_links__token__progress_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchProgressRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watch-links/{token}/calendar.ics":{"get":{"tags":["watch-links"],"summary":"Watch Link Calendar","description":"The viewing as a calendar event (fast-track links only).","operationId":"watch_link_calendar_api_watch_links__token__calendar_ics_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/watch-links":{"post":{"tags":["watch-links"],"summary":"Mint Watch Link Admin","description":"Mint a private watch link for one class video (admin key).","operationId":"mint_watch_link_admin_admin_watch_links_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchLinkMintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchLinkMintResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/watch-link":{"post":{"tags":["watch-links"],"summary":"Ghl Watch Link Webhook","description":"Write a fresh on-demand watch link to a GHL contact, then answer.\n\n200 ``{\"ready\": true, \"url\", \"expires_at\", \"video_key\"}`` once the field\nholds the link; 422 ``{\"ready\": false, \"status\": \"bad_request\" |\n\"unknown_video\"}`` when nothing was written and nothing must be sent; 401\nbad secret; 503 switched off or not configured; 502 GHL refused the write\n(GHL may retry).","operationId":"ghl_watch_link_webhook_webhooks_ghl_watch_link_post","parameters":[{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/talk-your-book/webinar-offer/advertised":{"get":{"tags":["spoken-webinar"],"summary":"Get Advertised Webinar Offer","description":"The webinar price the offer page shows up front (GH #10078).\n\nRead from the same plan registry checkout charges, so a price change can\nnever leave the page advertising the old price. No personal data, the\nsame for every visitor.","operationId":"get_advertised_webinar_offer_talk_your_book_webinar_offer_advertised_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertisedOfferResponse"}}}}}}},"/talk-your-book/webinar-offer":{"get":{"tags":["spoken-webinar"],"summary":"Get Webinar Offer","description":"The price this email pays right now.\n\nA signed link (``t``) gets the email's own quote. A typed email (``e``,\nwhile the gate is on) is looked up the same way for every address, and\nonly an open registration window changes the answer: anything else\n(unregistered, expired) is the one regular-price offer, so the response\nnever says who registered (GH #9902).","operationId":"get_webinar_offer_talk_your_book_webinar_offer_get","parameters":[{"name":"e","in":"query","required":false,"schema":{"type":"string","maxLength":320,"default":"","title":"E"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","maxLength":1024,"default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarOfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/talk-your-book/webinar-offer/click":{"post":{"tags":["spoken-webinar"],"summary":"Record Webinar Offer Click","description":"Queue the click tag. The task tags only a registrant's EXISTING GHL\ncontact and writes nothing for any other address (GH #9902), and the\nanswer is the same either way (the lookup runs in the task).","operationId":"record_webinar_offer_click_talk_your_book_webinar_offer_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarOfferClickRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Record Webinar Offer Click Talk Your Book Webinar Offer Click Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/talk-your-book/webinar-offer/send-link":{"post":{"tags":["spoken-webinar"],"summary":"Send Webinar Offer Link","description":"Mail the signed offer link to this email if it registered.\n\nThe answer is the same for every address and the lookup runs in a task,\nso neither the body nor the timing says who registered.","operationId":"send_webinar_offer_link_talk_your_book_webinar_offer_send_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarOfferSendLinkRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Webinar Offer Link Talk Your Book Webinar Offer Send Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/talk-your-book/webinar-checkout":{"post":{"tags":["spoken-webinar"],"summary":"Create Webinar Checkout","operationId":"create_webinar_checkout_talk_your_book_webinar_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blueprint-review/{token}":{"get":{"tags":["blueprint-review-page"],"summary":"Get Blueprint Review Page","description":"Already booked (when + rep) or the calendar to book on.","operationId":"get_blueprint_review_page_api_blueprint_review__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/BlueprintReviewPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/told-us/{token}":{"get":{"tags":["told-us-page"],"summary":"Get Told Us Page","description":"What the author told our sales rep, played back to them.","operationId":"get_told_us_page_api_told_us__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/ToldUsPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/freebie/{download_token}":{"get":{"tags":["freebie"],"summary":"Download Freebie","description":"Redirect a public download token to a short-lived presigned R2 URL.","operationId":"download_freebie_freebie__download_token__get","parameters":[{"name":"download_token","in":"path","required":true,"schema":{"type":"string","title":"Download Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/quiz/submit":{"post":{"tags":["funnel"],"summary":"Submit Funnel Quiz","description":"Process a funnel quiz submission (9 active questions).\n\nPublic endpoint. Rate limited to 10/minute per IP.\nCreates/updates a lead, creates quiz_response with server-side scores,\npushes data to GHL, and sets a response cookie with the lead UUID.","operationId":"submit_funnel_quiz_api_funnel_quiz_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelQuizSubmission"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelQuizResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/quiz/{author_id}":{"get":{"tags":["funnel"],"summary":"Get Funnel Quiz Data","description":"Return quiz data for results page.\n\nPublic read-only endpoint — the author_id UUID (v4, 122-bit entropy)\nis unguessable and sufficient authorization for this low-sensitivity\ndata (name, book type, quiz answers).  Cookie check intentionally\nremoved so results URLs work when opened on a different device/browser.\nRate limited to 30/min.  See Sprint 91 iteration 3 decision log.\n# SECURITY-REVIEWED: cookie auth removed by design — do not re-add.","operationId":"get_funnel_quiz_data_api_funnel_quiz__author_id__get","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","title":"Author Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelQuizDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/builder/save":{"post":{"tags":["funnel"],"summary":"Save Builder Answer","description":"Autosave individual builder answers.\n\nPublic endpoint. Rate limited to 60/minute per IP.\nValidates field_name against allowed builder fields.\nRequires dictate_aid cookie to match author_id (if cookie present).","operationId":"save_builder_answer_api_funnel_builder_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuilderSaveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuilderSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/builder/submit":{"post":{"tags":["funnel"],"summary":"Submit Builder","description":"Mark builder complete and wait for purchase-triggered generation.\n\nPublic endpoint. Rate limited to 5/minute per IP.\nRequires dictate_aid cookie to match author_id (if cookie present).","operationId":"submit_builder_api_funnel_builder_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuilderSubmitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuilderSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/builder/audio":{"post":{"tags":["funnel"],"summary":"Transcribe Builder Audio","description":"Accept optional audio input for a builder field and queue transcription.","operationId":"transcribe_builder_audio_api_funnel_builder_audio_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_transcribe_builder_audio_api_funnel_builder_audio_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuilderAudioResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/builder-init":{"get":{"tags":["funnel"],"summary":"Builder Init","description":"Bootstrap the HttpOnly auth cookie for direct builder entry.\n\nCalled by the frontend when a user arrives with ?aid=<uuid> but no\nexisting dictate_aid cookie. Validates the UUID, verifies the lead\nexists, and sets the HttpOnly cookie so subsequent builder requests\npass _require_cookie_ownership.\n\nRate limited to 30/minute per IP.","operationId":"builder_init_api_funnel_builder_init_get","parameters":[{"name":"aid","in":"query","required":false,"schema":{"type":"string","default":"","title":"Aid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/builder/{author_id}":{"get":{"tags":["funnel"],"summary":"Get Builder Data","description":"Return saved builder answers.\n\nRequires dictate_aid cookie. Rate limited to 30/minute per IP.","operationId":"get_builder_data_api_funnel_builder__author_id__get","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","title":"Author Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/deliverables/{author_id}":{"get":{"tags":["funnel"],"summary":"Get Deliverables","description":"Return deliverable status and URLs for a lead.\n\nRequires dictate_aid cookie. Rate limited to 30/minute per IP.","operationId":"get_deliverables_api_funnel_deliverables__author_id__get","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","title":"Author Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverablesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/email/generate-nurture":{"post":{"tags":["funnel"],"summary":"Generate Nurture Email","description":"GHL webhook trigger for AI-generated nurture email field sync.","operationId":"generate_nurture_email_api_funnel_email_generate_nurture_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NurtureEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/sms/generate-nurture":{"post":{"tags":["funnel"],"summary":"Generate Nurture Sms","description":"GHL webhook trigger for AI SMS field sync.","operationId":"generate_nurture_sms_api_funnel_sms_generate_nurture_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NurtureSMSRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/email/status/{author_id}":{"get":{"tags":["funnel"],"summary":"Get Email Status","description":"Return email send history for a lead.\n\nRequires dictate_aid cookie. Rate limited to 30/minute per IP.","operationId":"get_email_status_api_funnel_email_status__author_id__get","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","title":"Author Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/guest-blueprint-optin":{"post":{"tags":["funnel"],"summary":"Guest Blueprint Optin","description":"Upsert the podcast-guest lead and apply ``podcast-dm-outreach`` via GHL OAuth.\n\nAuth is the installed Dictate CRM OAuth app on Railway (token provider),\nnot a static API key. Called from the Vercel funnel after form submit.","operationId":"guest_blueprint_optin_api_funnel_guest_blueprint_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestBlueprintOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestBlueprintOptInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/projects":{"post":{"tags":["financing"],"summary":"Rep Eligible Package Projects","description":"Return EVERY buyer-owned book, with a reason when one is not eligible.\n\nThis authenticated selector makes multi-book choice explicit without\ntrusting a client UUID. Link creation repeats the same ownership and\neligibility checks because a lookup result can go stale before a rep acts.\n\nIneligible books are returned rather than dropped: silently filtering them\nleft the rep looking at an empty list with nothing to say to the buyer on\nthe phone. The console decides what is pickable; the API decides what is\ntrue.","operationId":"rep_eligible_package_projects_financing_rep_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepEligibleProjectChoicesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepEligibleProjectChoicesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/diy-blueprint-readiness":{"post":{"tags":["financing"],"summary":"Rep Diy Blueprint Readiness","description":"Tell an AUTHENTICATED rep whether this buyer can finish a DIY checkout.\n\nDIY checkout needs an approved, unconverted Dictate Book Blueprint for the\nbuyer's email. A rep who cannot see that answer sends a financing link that\ndead-ends in the buyer's inbox. The reason sentence is the one the DIY\nsystem itself would raise — missing blueprint, already converted, wrong\nowner — so the rep knows whether to send the free blueprint first.\n\nRep-authenticated ONLY. On the public intake this answer would let anyone\nenumerate which email addresses own a blueprint, which is exactly what the\naccess-link route refuses to reveal.","operationId":"rep_diy_blueprint_readiness_financing_rep_diy_blueprint_readiness_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepDiyBlueprintReadinessRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Rep Diy Blueprint Readiness Financing Rep Diy Blueprint Readiness Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/links":{"post":{"tags":["financing"],"summary":"Create Link","operationId":"create_link_financing_rep_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFinancingLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancingLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/intakes/{token}":{"get":{"tags":["financing"],"summary":"Get Intake","operationId":"get_intake_financing_intakes__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/FinancingIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["financing"],"summary":"Submit Intake","operationId":"submit_intake_financing_intakes__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancingSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancingIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/intakes/{token}/whop-checkout":{"post":{"tags":["financing"],"summary":"Private Whop Checkout","description":"Open the checkout reserved for this buyer, book, product, and version.","operationId":"private_whop_checkout_financing_intakes__token__whop_checkout_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/intakes/{token}/stripe-checkout":{"post":{"tags":["financing"],"summary":"Private Stripe Checkout","description":"Create or resume the only Stripe Session owned by this intake.\n\nTalk Your Book DIY branches here and never reaches the Stripe reservation:\nDIY's own commerce system owns its checkout, and its identity proof is an\ninbox-delivered capability the financing rail must not mint.","operationId":"private_stripe_checkout_financing_intakes__token__stripe_checkout_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/prefill/{token}":{"get":{"tags":["financing"],"summary":"Prefill","operationId":"prefill_financing_prefill__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Prefill Financing Prefill  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/intakes":{"post":{"tags":["financing"],"summary":"Create Public Intake","operationId":"create_public_intake_financing_intakes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFinancingIntakeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancingIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/intakes/{intake_id}/outcomes":{"post":{"tags":["financing"],"summary":"Report Outcome","operationId":"report_outcome_financing_intakes__intake_id__outcomes_post","parameters":[{"name":"intake_id","in":"path","required":true,"schema":{"type":"string","title":"Intake Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportFinancingOutcomeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancingIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/approvals/{approval_outcome_id}/reconcile":{"post":{"tags":["financing"],"summary":"Reconcile Approval","description":"Record that an approval never funded, without unlocking a payment plan.","operationId":"reconcile_approval_financing_rep_approvals__approval_outcome_id__reconcile_post","parameters":[{"name":"approval_outcome_id","in":"path","required":true,"schema":{"type":"string","title":"Approval Outcome Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileFinancingApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Reconcile Approval Financing Rep Approvals  Approval Outcome Id  Reconcile Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/outcomes/{outcome_id}/verify":{"patch":{"tags":["financing"],"summary":"Verify Decline","operationId":"verify_decline_financing_rep_outcomes__outcome_id__verify_patch","parameters":[{"name":"outcome_id","in":"path","required":true,"schema":{"type":"string","title":"Outcome Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VerifyFinancingDeclineRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Verify Decline Financing Rep Outcomes  Outcome Id  Verify Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/dashboard":{"get":{"tags":["financing"],"summary":"Rep Dashboard","operationId":"rep_dashboard_financing_rep_dashboard_get","parameters":[{"name":"track","in":"query","required":true,"schema":{"type":"string","title":"Track"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rep Dashboard Financing Rep Dashboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/internal-plan-links":{"post":{"tags":["financing"],"summary":"Internal Plan Link","description":"Authorize the handoff, never a generic self-serve payment plan.\n\nThe returned route is the existing certified-rep builder, which still\nrecalculates and creates the buyer-bound Stripe offer server-side.","operationId":"internal_plan_link_financing_rep_internal_plan_links_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Internal Plan Link Financing Rep Internal Plan Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/financing/rep/lookup":{"post":{"tags":["financing"],"summary":"Rep Lookup","operationId":"rep_lookup_financing_rep_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepFinancingLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Rep Lookup Financing Rep Lookup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/live":{"get":{"summary":"Liveness","description":"Liveness probe — proves the process is alive. No external calls.","operationId":"liveness_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Liveness Health Live Get"}}}}}},"head":{"summary":"Liveness","description":"Liveness probe — proves the process is alive. No external calls.","operationId":"liveness_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Liveness Health Live Get"}}}}}}},"/health/version":{"get":{"summary":"Version","description":"Running-build identity (GH #3195) — always 200, no external calls.\n\nReports the deployed commit with an honest ``source`` marker\n(build_info_file > railway_git_sha > sentry_release_env > unknown) so a\npost-wave verifier can distinguish \"proven from the build context\" from\n\"asserted by a hand-set env var\". Diagnostic only: an unknown identity is\nnot an outage, so this never returns 503.","operationId":"version_health_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Version Health Version Get"}}}}}},"head":{"summary":"Version","description":"Running-build identity (GH #3195) — always 200, no external calls.\n\nReports the deployed commit with an honest ``source`` marker\n(build_info_file > railway_git_sha > sentry_release_env > unknown) so a\npost-wave verifier can distinguish \"proven from the build context\" from\n\"asserted by a hand-set env var\". Diagnostic only: an unknown identity is\nnot an outage, so this never returns 503.","operationId":"version_health_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Version Health Version Get"}}}}}}},"/health/beat":{"get":{"summary":"Beat Liveness","description":"Beat scheduler liveness — beat-independent, tri-state.\n\nReads TWO Redis signals (mirrors the in-process probe in\n``app/tasks/beat_entrypoint.py``):\n\n  * ``ops:beat:dispatch_heartbeat`` — written by the beat PROCESS on every\n    (throttled) task publish. Proves the beat mainloop is alive.\n  * ``ops:beat:heartbeat`` — written only when a WORKER executes\n    ``ops.beat_heartbeat``. Proves the end-to-end pipeline (dispatch + a\n    worker draining the default queue) is healthy.\n\nStates (see ``beat_health_state``):\n  * ``ok`` (200)                 — both fresh.\n  * ``workers_backlogged`` (200) — dispatch fresh, end-to-end stale. Beat is\n    healthy; workers are behind. Returned 200 on purpose so UptimeRobot does\n    NOT page a beat death for a worker backlog (the queue-backlog watchdog in\n    the beat process raises the ops alert for that).\n  * ``down`` (503)               — dispatch stale: beat is wedged/dead.\n\nServed by the API, which stays up regardless of beat.","operationId":"beat_liveness_health_beat_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Beat Liveness Health Beat Get"}}}}}},"head":{"summary":"Beat Liveness","description":"Beat scheduler liveness — beat-independent, tri-state.\n\nReads TWO Redis signals (mirrors the in-process probe in\n``app/tasks/beat_entrypoint.py``):\n\n  * ``ops:beat:dispatch_heartbeat`` — written by the beat PROCESS on every\n    (throttled) task publish. Proves the beat mainloop is alive.\n  * ``ops:beat:heartbeat`` — written only when a WORKER executes\n    ``ops.beat_heartbeat``. Proves the end-to-end pipeline (dispatch + a\n    worker draining the default queue) is healthy.\n\nStates (see ``beat_health_state``):\n  * ``ok`` (200)                 — both fresh.\n  * ``workers_backlogged`` (200) — dispatch fresh, end-to-end stale. Beat is\n    healthy; workers are behind. Returned 200 on purpose so UptimeRobot does\n    NOT page a beat death for a worker backlog (the queue-backlog watchdog in\n    the beat process raises the ops alert for that).\n  * ``down`` (503)               — dispatch stale: beat is wedged/dead.\n\nServed by the API, which stays up regardless of beat.","operationId":"beat_liveness_health_beat_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Beat Liveness Health Beat Get"}}}}}}},"/health":{"get":{"summary":"Readiness","description":"Readiness probe — verifies DB and Redis with timeouts.\n\nReturns 503 when degraded so orchestrators (Railway, k8s) detect unhealthy state.","operationId":"readiness_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Health Get"}}}}}},"head":{"summary":"Readiness","description":"Readiness probe — verifies DB and Redis with timeouts.\n\nReturns 503 when degraded so orchestrators (Railway, k8s) detect unhealthy state.","operationId":"readiness_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Health Get"}}}}}}},"/health/ready":{"get":{"summary":"Readiness","description":"Readiness probe — verifies DB and Redis with timeouts.\n\nReturns 503 when degraded so orchestrators (Railway, k8s) detect unhealthy state.","operationId":"readiness_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Health Ready Get"}}}}}},"head":{"summary":"Readiness","description":"Readiness probe — verifies DB and Redis with timeouts.\n\nReturns 503 when degraded so orchestrators (Railway, k8s) detect unhealthy state.","operationId":"readiness_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Health Ready Get"}}}}}}},"/internal/ghl/location-token/{location_id}":{"post":{"tags":["internal"],"summary":"Mint Ghl Location Token","description":"Resolve a location-scoped GHL access token for trusted automation.\n\nPreference order: a stored per-location OAuth row (the \"Dictate Platform\"\nsub-account app, manually installed on client sub-accounts — auto-refreshed\nby the platform), then an agency-minted short-lived token. Stored rows are\nresolved with allow_fallback=False so this path never double-fires the\nprovider's own env/agency fallbacks or their ops alerts.\n\nReturns 409 (not 5xx) when neither source works: a 5xx would be swallowed\nby Cloudflare's error page and needlessly page ops; this is an expected\n\"app not installed on that sub-account\" state.","operationId":"mint_ghl_location_token_internal_ghl_location_token__location_id__post","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"x-mint-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Mint-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mint Ghl Location Token Internal Ghl Location Token  Location Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ghl/appointments/dedupe":{"post":{"tags":["ghl-appointments"],"summary":"Dedupe Double Booking","description":"Accept one double-booking signal and queue the cancellation.","operationId":"dedupe_double_booking_api_ghl_appointments_dedupe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dedupe Double Booking Api Ghl Appointments Dedupe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lead-upload/upload":{"post":{"tags":["lead-upload"],"summary":"Public Lead Upload","description":"Upload a file using a lead upload token (public, no auth required).\n\nThe caller must provide a valid, non-expired upload token issued after\npurchase. The token determines the lead, artifact type, and upload limit.\n\nThis endpoint is intentionally separate from /onboarding/upload which\nrequires JWT project authentication.","operationId":"public_lead_upload_lead_upload_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_public_lead_upload_lead_upload_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lead-upload/trigger-generation":{"post":{"tags":["lead-upload"],"summary":"Trigger Delayed Generation","description":"Manually trigger generation for a delayed-delivery product.\n\nThe buyer calls this when they've finished uploading samples but haven't\nused all their upload slots. This allows them to say \"I'm done, generate\nnow\" without having to fill all slots.","operationId":"trigger_delayed_generation_lead_upload_trigger_generation_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_trigger_delayed_generation_lead_upload_trigger_generation_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Trigger Delayed Generation Lead Upload Trigger Generation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lead-upload/status":{"get":{"tags":["lead-upload"],"summary":"Get Upload Status","description":"Check the status of an upload token and list uploaded samples.\n\nPublic endpoint — no auth required. Token value serves as the credential.","operationId":"get_upload_status_lead_upload_status_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUploadStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/form":{"post":{"tags":["onboarding"],"summary":"Submit Onboarding Form","description":"Submit onboarding questionnaire. Upserts client_preferences.","operationId":"submit_onboarding_form_onboarding_form_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingFormSubmit"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingFormResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/questionnaire-draft":{"post":{"tags":["onboarding"],"summary":"Save Questionnaire Draft","description":"Autosave the questionnaire in progress. A DRAFT only.\n\nUnlike ``POST /onboarding/form`` this never writes client_preferences,\nnever confirms funnel-seeded answers, never enqueues planning, and never\nnotifies anyone (Heidi Nguyen, 2026-09-29: answers held only in browser\nstorage were lost when it was cleared).","operationId":"save_questionnaire_draft_onboarding_questionnaire_draft_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireDraftSave"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/questionnaire-draft/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Questionnaire Draft Route","description":"Return the autosaved questionnaire draft so the page can restore it.","operationId":"get_questionnaire_draft_route_onboarding_questionnaire_draft__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/upload":{"post":{"tags":["onboarding"],"summary":"Upload Onboarding File","description":"Upload a writing sample or reference document to R2.\n\n``?request_id=`` names an open request-from-author (Track 2 B4) this file\nanswers; an upload-kind request for a matching category is closed as\n``portal_upload``. Best-effort: it never fails the upload.","operationId":"upload_onboarding_file_onboarding_upload_post","parameters":[{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_onboarding_file_onboarding_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/status/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Onboarding Status","description":"Check onboarding completion — form submitted + files uploaded.","operationId":"get_onboarding_status_onboarding_status__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/marketing-sequence/{project_id}/milestone":{"post":{"tags":["onboarding"],"summary":"Record Marketing Sequence Milestone","description":"Author self-stamp for non-verifiable sequence steps (intro/choose_path).\n\n404-dark for legacy projects: the marketing-first surface simply does not\nexist for them, and a differing response would leak the cohort marker.","operationId":"record_marketing_sequence_milestone_onboarding_marketing_sequence__project_id__milestone_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorMilestoneRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Marketing Sequence Milestone Onboarding Marketing Sequence  Project Id  Milestone Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/saved/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Saved Preferences","description":"Return saved onboarding preferences for pre-filling the wizard on resume.","operationId":"get_saved_preferences_onboarding_saved__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClientPreferencesResponse"},{"type":"object","additionalProperties":true}],"title":"Response Get Saved Preferences Onboarding Saved  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/prefill/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Onboarding Prefill","description":"Return onboarding suggestions from discovery blueprint seed + discovery context.\n\nPrecedence rules:\n- Discovery blueprint fields are labeled 'suggested' (draft seed)\n- Author-submitted onboarding fields override as 'confirmed'\n- First paid planning call can supersede both (handled by Task 155)","operationId":"get_onboarding_prefill_onboarding_prefill__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPrefillResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/social/assets":{"post":{"tags":["onboarding"],"summary":"Upload Social Asset","description":"Upload a social-specific asset (headshot, reference image) with vision auto-tagging.\n\nThe uploaded file is stored in R2 and tracked in project_assets.\nVision auto-tagging runs in Celery (WF1-D44) — the route returns\nimmediately and ``onboarding.tag_social_asset`` backfills\n``metadata.auto_tags`` on the asset row.","operationId":"upload_social_asset_onboarding_social_assets_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_social_asset_onboarding_social_assets_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload Social Asset Onboarding Social Assets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/social/consent":{"post":{"tags":["onboarding"],"summary":"Record Social Consent","description":"Record likeness and social publishing consent for a project.\n\nBody: {\"project_id\": \"...\", \"likeness_consent\": true, \"social_publish_consent\": true}","operationId":"record_social_consent_onboarding_social_consent_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Record Social Consent Onboarding Social Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/social/readiness/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Social Readiness Status","description":"Get social onboarding readiness for a project.\n\nReturns readiness state, consent flags, asset counts, and what's still needed.","operationId":"get_social_readiness_status_onboarding_social_readiness__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Social Readiness Status Onboarding Social Readiness  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/profile/{project_id}":{"put":{"tags":["onboarding"],"summary":"Put Author Profile","description":"Persist day-1 confirms / partial profile updates (write-through).\n\nPartial semantics are load-bearing: the scheduling step sends\n``{transcription_terms}`` alone and the portal checklist card sends\n``{kdp_account_status}`` alone. Absent fields are no-ops and absent/false\nconfirm flags never un-confirm (write_through_from_project upserts with\nexclude_none and only stamps *_confirmed_at for flags sent as true).","operationId":"put_author_profile_onboarding_profile__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorProfileSubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["onboarding"],"summary":"Get Author Profile Route","description":"Profile + prefill: Stripe checkout phone/name back the empty fields.","operationId":"get_author_profile_route_onboarding_profile__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/checklist/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Onboarding Checklist","description":"Live computed checklist (registry in app/services/onboarding_checklist.py).","operationId":"get_onboarding_checklist_onboarding_checklist__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/journey/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Onboarding Journey","description":"\"What to expect\" shelf (P1-D) + the milestone rail.\n\nMilestones come from the launch-plan engine behind\n``book_launch_plan_enabled`` and from the legacy day offsets otherwise or\nwhenever the engine has nothing to say (see ``_journey_milestones``).\n\nUnlock math mirrors the waiting portal: an item counts days from\nmax(project.created_at, item.available_from) so content published after\nthe project started drips instead of dumping. Locked items are returned\ntitle-only (content gated server-side, like the waiting shelf).","operationId":"get_onboarding_journey_onboarding_journey__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/tour/{project_id}/complete":{"post":{"tags":["onboarding"],"summary":"Complete Portal Tour","description":"Stamp portal_tour_completed_at author-level (P1-E).\n\nNever-fail by design: the tour is cosmetic, so a missing author identity\nor a write hiccup returns 200 (the frontend also keeps a localStorage\nfallback) rather than blocking the portal.","operationId":"complete_portal_tour_onboarding_tour__project_id__complete_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourCompleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding-checklist/{project_id}":{"get":{"tags":["admin"],"summary":"Admin Onboarding Checklist","description":"Support view: full checklist + author-profile state for one project.","operationId":"admin_onboarding_checklist_admin_onboarding_checklist__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Onboarding Checklist Admin Onboarding Checklist  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/products/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Owned Products","description":"Owned back-end products + live readiness + gated shelf + responses.\n\nEmpty products list means the frontend hides the panel entirely.","operationId":"get_owned_products_onboarding_products__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductOnboardingList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/products/{project_id}/{product_code}/responses":{"put":{"tags":["onboarding"],"summary":"Put Product Responses","description":"Store inline onboarding answers for an OWNED product.\n\n404 when the project does not own product_code — this route never creates\nownership (P3-A). Keys are allowlisted per product via the readiness\nregistry (inline_response items only — podcast_booking's calendar_url).","operationId":"put_product_responses_onboarding_products__project_id___product_code__responses_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"product_code","in":"path","required":true,"schema":{"type":"string","title":"Product Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponsesSubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponsesEcho"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/product-onboarding/grant":{"post":{"tags":["admin"],"summary":"Admin Grant Product","description":"Grant ownership for sales-conversation products (P3-A path two).\n\n201 created / 409 duplicate / 422 unknown catalog code / 404 project.","operationId":"admin_grant_product_admin_product_onboarding_grant_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGrantRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGrantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/product-onboarding":{"get":{"tags":["admin"],"summary":"Admin Ops Board","description":"Ops board: pending (not-yet-ready) ownerships, oldest purchase first.","operationId":"admin_ops_board_admin_product_onboarding_get","parameters":[{"name":"ready","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ready"}},{"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":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Ops Board Admin Product Onboarding Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/product-onboarding/{project_id}":{"get":{"tags":["admin"],"summary":"Admin Project Detail","description":"Full per-project detail: ownerships + live readiness + raw responses.","operationId":"admin_project_detail_admin_product_onboarding__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Project Detail Admin Product Onboarding  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/author-pathway/{project_id}":{"get":{"tags":["portal"],"summary":"Get Author Pathway","description":"Prefill the questionnaire. Unstarted projects get an all-null payload.","operationId":"get_author_pathway_portal_author_pathway__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorPathwayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Put Author Pathway","description":"Save the answers, compute the rep-facing fit, queue the GHL push.\n\nThe save is the contract: a broker failure on the sync enqueue records a\ndurable pending retry and still returns 200. Losing the author's answers\nbecause Redis blinked would be the worse failure by far.","operationId":"put_author_pathway_portal_author_pathway__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorPathwaySubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorPathwayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/sources/{project_id}":{"get":{"tags":["onboarding"],"summary":"Get Sources","description":"Sources + pack status + dismissal flag (empty view for legacy\nauthorless projects — never an error on the read side).","operationId":"get_sources_onboarding_sources__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["onboarding"],"summary":"Post Source","description":"Add a source: attestation gate -> SSRF gate -> cap -> dedupe -> enqueue.","operationId":"post_source_onboarding_sources__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/sources/{project_id}/{source_id}":{"delete":{"tags":["onboarding"],"summary":"Delete Source","description":"Soft-remove (status='removed'); 404 on author mismatch (no\ncross-author existence leak). Triggers a debounced pack refresh.","operationId":"delete_source_onboarding_sources__project_id___source_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/sources/{project_id}/dismiss":{"post":{"tags":["onboarding"],"summary":"Dismiss Sources Intake","description":"Skip-once-never-nag stamp (idempotent; first timestamp preserved).","operationId":"dismiss_sources_intake_onboarding_sources__project_id__dismiss_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/author-sources/{author_id}/refresh-pack":{"post":{"tags":["admin"],"summary":"Admin Refresh Pack","description":"Support action: force an immediate context-pack refresh for an author.\n\nDeliberately bypasses the Redis debounce (an operator asked for it NOW);\nthe task's sources_fingerprint no-op check still prevents wasted distills.","operationId":"admin_refresh_pack_admin_author_sources__author_id__refresh_pack_post","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Refresh Pack Admin Author Sources  Author Id  Refresh Pack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/auth/login":{"post":{"tags":["ops"],"summary":"Ops Login","operationId":"ops_login_ops_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/auth/me":{"get":{"tags":["ops"],"summary":"Ops Me","operationId":"ops_me_ops_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ops Me Ops Auth Me Get"}}}}}}},"/ops/auth/logout":{"post":{"tags":["ops"],"summary":"Ops Logout","description":"Ops auth is header-based (X-Support-Key), not cookie-based — no server-side session to clear.","operationId":"ops_logout_ops_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ops/auth/password-reset/request":{"post":{"tags":["ops"],"summary":"Ops Request Password Reset","description":"Email a reset link if the address belongs to a live ops account.\n\nAlways 202 with the same body. Revealing whether an address exists would\nturn this into an account directory for anyone who can reach the API.","operationId":"ops_request_password_reset_ops_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/auth/password-reset/validate":{"post":{"tags":["ops"],"summary":"Ops Validate Password Reset","description":"Check a reset link before the page asks for a new password.\n\nPOST rather than GET so the token stays out of access logs — see\nStaffPasswordResetValidate.","operationId":"ops_validate_password_reset_ops_auth_password_reset_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetValidate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/auth/password-reset/confirm":{"post":{"tags":["ops"],"summary":"Ops Confirm Password Reset","description":"Redeem a reset token and set the new ops password.","operationId":"ops_confirm_password_reset_ops_auth_password_reset_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/client-setup":{"get":{"tags":["ops"],"summary":"Ops Client Setup Queue","operationId":"ops_client_setup_queue_ops_client_setup_get","parameters":[{"name":"workflow_state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientSetupSummary"},"title":"Response Ops Client Setup Queue Ops Client Setup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-dashboard":{"get":{"tags":["ops"],"summary":"Ops Dashboard","description":"Client-centric command center for scoped VA/Ops users.","operationId":"ops_dashboard_ops_ops_dashboard_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"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/OpsDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/workspace":{"get":{"tags":["ops"],"summary":"Ops Client Workspace","operationId":"ops_client_workspace_ops_clients__project_id__workspace_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Client Workspace Ops Clients  Project Id  Workspace Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/access":{"get":{"tags":["ops"],"summary":"Ops Client Access","description":"Whether THIS staff login may work this client (same rule as the workspace).\n\nThe admin client page proxies some launch actions with the server-held\nadmin key; it asks here first so an ops login can only act on a client it\nis assigned to (current role + status, never the token snapshot).","operationId":"ops_client_access_ops_clients__project_id__access_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Client Access Ops Clients  Project Id  Access Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/material-notes":{"get":{"tags":["ops"],"summary":"Ops Client Material Notes","description":"Ops-token mirror of ``/admin/clients/{id}/material-notes`` (GH #7228).\n\nSame workspace access rule as the launch-plan mirror: a project outside the\nrep's workspace answers 404, never its data.","operationId":"ops_client_material_notes_ops_clients__project_id__material_notes_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Client Material Notes Ops Clients  Project Id  Material Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/launch-plan":{"get":{"tags":["ops"],"summary":"Ops Client Launch Plan","description":"The ops-token mirror of ``/admin/clients/{id}/launch-plan``.\n\nA rep on a call needs the launch forecast in the same workspace they already\nhave open, and most reps hold an ops token rather than the admin key\n(decision 2026-09-01). Same builder as the admin route, so the two doors can\nnever quote different dates for one author.\n\nDark behind ``book_launch_plan_enabled`` and gated BEFORE any project read,\nmatching the admin route and the author-facing portal: while the flag is off\nthis 404s without touching the database, so ops and the author see the\nfeature appear at the same moment.\n\nREAD-ONLY, like its admin twin (standing decision 2026-08-31): only the\nAUTHOR saves her own launch target. There is deliberately no write mirror.","operationId":"ops_client_launch_plan_ops_clients__project_id__launch_plan_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Client Launch Plan Ops Clients  Project Id  Launch Plan Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/communications":{"get":{"tags":["ops"],"summary":"List Client Communications","operationId":"list_client_communications_ops_clients__project_id__communications_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Client Communications Ops Clients  Project Id  Communications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/communications/drafts":{"post":{"tags":["ops"],"summary":"Create Client Communication Draft","operationId":"create_client_communication_draft_ops_clients__project_id__communications_drafts_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCommunicationDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Client Communication Draft Ops Clients  Project Id  Communications Drafts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/communications/{communication_id}/send":{"post":{"tags":["ops"],"summary":"Review And Send Client Communication","operationId":"review_and_send_client_communication_ops_clients__project_id__communications__communication_id__send_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"communication_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Communication Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCommunicationSendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review And Send Client Communication Ops Clients  Project Id  Communications  Communication Id  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/stripe-disputes":{"get":{"tags":["ops"],"summary":"Ops List Stripe Disputes","description":"List exact dispute occurrences awaiting or carrying human review.","operationId":"ops_list_stripe_disputes_ops_stripe_disputes_get","parameters":[{"name":"review_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(pending|reviewed)$"},{"type":"null"}],"default":"pending","title":"Review Status"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Ops List Stripe Disputes Ops Stripe Disputes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/stripe-disputes/{dispute_id}/decision":{"post":{"tags":["ops"],"summary":"Ops Apply Stripe Dispute Decision","description":"Record the authenticated operator's decision and optional approved email.","operationId":"ops_apply_stripe_dispute_decision_ops_stripe_disputes__dispute_id__decision_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Dispute Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeDisputeDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Apply Stripe Dispute Decision Ops Stripe Disputes  Dispute Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/stripe-disputes/{dispute_id}/email-recovery":{"post":{"tags":["ops"],"summary":"Ops Recover Stripe Dispute Email","description":"Recover one failed approved email from its dedicated queue item.","operationId":"ops_recover_stripe_dispute_email_ops_stripe_disputes__dispute_id__email_recovery_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Dispute Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeDisputeEmailRecoveryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Recover Stripe Dispute Email Ops Stripe Disputes  Dispute Id  Email Recovery Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue":{"get":{"tags":["ops"],"summary":"Ops List Ops Queue","description":"List ops queue items for scoped VA/Ops users.","operationId":"ops_list_ops_queue_ops_ops_queue_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"open","title":"Status"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"ambiguity_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ambiguity Class"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"work_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Status"}},{"name":"assigned_to_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Assigned To Email"}},{"name":"next_actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Next Actor"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Ops List Ops Queue Ops Ops Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/counts":{"get":{"tags":["ops"],"summary":"Ops Queue Counts","description":"Detailed open issue counts for scoped VA/Ops dashboards.","operationId":"ops_queue_counts_ops_ops_queue_counts_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Queue Counts Ops Ops Queue Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/triage":{"get":{"tags":["ops"],"summary":"Ops Queue Triage","description":"Return lane counts plus one lightweight page for scoped ops users.","operationId":"ops_queue_triage_ops_ops_queue_triage_get","parameters":[{"name":"lane","in":"query","required":false,"schema":{"type":"string","default":"act_now","title":"Lane"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"ambiguity_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ambiguity Class"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"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"}},{"name":"work_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Status"}},{"name":"assigned_to_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Assigned To Email"}},{"name":"next_actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Next Actor"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Queue Triage Ops Ops Queue Triage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/stats":{"get":{"tags":["ops"],"summary":"Ops Queue Stats","description":"AI-vs-human resolution scorecard for scoped VA/Ops dashboards.","operationId":"ops_queue_stats_ops_ops_queue_stats_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Queue Stats Ops Ops Queue Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/audit":{"get":{"tags":["ops"],"summary":"Ops Queue Audit Log","description":"Audit log of resolved/dismissed items for scoped VA/Ops users.\n\n``resolved_by`` and ``resolved_by_kind`` both filter in the database before\npagination so the AI Handled lane pages over matching rows only.\n``resolved_by_kind`` (``ai`` / ``automated``) is the one to use: naming a\nsingle identity misses the cleared-state probe and the grounded answerer.\nAn unrecognised kind is DROPPED rather than guessed — see\n``postgrest_filter_for_kind``.\n\nDeclared before the ``/ops-queue/{item_id}`` route so \"audit\" never parses\nas an item id. Rows go through the SAME serializer the Closed tab uses, so\nthe two views of one closed ticket cannot disagree.","operationId":"ops_queue_audit_log_ops_ops_queue_audit_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"resolved_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Resolved By"}},{"name":"resolved_by_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Resolved By Kind"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"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":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Ops Queue Audit Log Ops Ops Queue Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/closed":{"get":{"tags":["ops"],"summary":"Ops List Closed Tickets","description":"Closed tickets, newest first, for the Closed tab.\n\n``mine=true`` means \"tickets I owned OR closed\", and WHO THAT IS COMES FROM\nTHE TOKEN — never from a query parameter. An email in the query string\nwould let anyone read anyone else's week by editing one string.\n\n``days`` bounds the window, because \"recently closed\" with no bound is the\nnewest 50 rows of all time: a rep who closed nothing this week would see\nlast month's and think it was today's.\n\nDeclared before ``/ops-queue/{item_id}`` so \"closed\" never parses as an id.","operationId":"ops_list_closed_tickets_ops_ops_queue_closed_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine"}},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":90,"minimum":1},{"type":"null"}],"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":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Ops List Closed Tickets Ops Ops Queue Closed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/learnings":{"get":{"tags":["ops"],"summary":"Ops List Learnings","description":"Advisory lessons the AI resolver reads before it judges a ticket.\n\nManager surface: a lesson shapes how the AI reasons about a whole class, so\nreading and retiring them is not rep work. Declared before\n``/ops-queue/{item_id}`` so \"learnings\" never parses as an item id.","operationId":"ops_list_learnings_ops_ops_queue_learnings_get","parameters":[{"name":"ambiguity_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Ambiguity Class"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":20,"default":"active","title":"Status"}},{"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":{"type":"object","additionalProperties":true},"title":"Response Ops List Learnings Ops Ops Queue Learnings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/learnings/{learning_id}/retire":{"post":{"tags":["ops"],"summary":"Ops Retire Learning","description":"Stop the AI reading one lesson. Idempotent, and it names who did it.","operationId":"ops_retire_learning_ops_ops_queue_learnings__learning_id__retire_post","parameters":[{"name":"learning_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Learning Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsLearningRetireRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Retire Learning Ops Ops Queue Learnings  Learning Id  Retire Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}":{"get":{"tags":["ops"],"summary":"Ops Get Ops Item","description":"Get a single ops queue item for scoped VA/Ops users.","operationId":"ops_get_ops_item_ops_ops_queue__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Get Ops Item Ops Ops Queue  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/updates":{"get":{"tags":["ops"],"summary":"Ops List Ticket Updates","description":"One page of a ticket's update thread, oldest first.\n\nRows written before the thread existed are read from the legacy notes array\nso a ticket never looks like nobody worked it.","operationId":"ops_list_ticket_updates_ops_ops_queue__item_id__updates_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item 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":"object","additionalProperties":true,"title":"Response Ops List Ticket Updates Ops Ops Queue  Item Id  Updates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/take":{"post":{"tags":["ops"],"summary":"Ops Take Ticket","description":"Take ownership of a ticket as the authenticated rep.\n\nThe owner is ALWAYS the token's email — like claim, never client input.\nTaking a ticket someone else holds is refused with their name, not\noverwritten; the admin-only reassign endpoint is the force path.","operationId":"ops_take_ticket_ops_ops_queue__item_id__take_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Take Ticket Ops Ops Queue  Item Id  Take Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/reply-to-author":{"post":{"tags":["ops"],"summary":"Ops Reply To Author","description":"Queue a message to the author from the ticket.\n\nReturns ``status: \"queued\"`` — the broker accepted it, the author has not\nreceived it yet. The ticket is parked on the author (and time-to-first-\ncontact stamped) only when the send is CONFIRMED, by the delivery leg; a\nleg that dies writes a \"not delivered\" line instead. Copy on this action\nshould say \"sending\", never \"sent\".\n\nA ticket-center reply is part of working the ticket, not a mass send.\nQueue roles (ops, ops_manager, admin) may do it; the actor is always the\ntoken email. Payment-dispute tickets still refuse author contact in the\nticketing service.","operationId":"ops_reply_to_author_ops_ops_queue__item_id__reply_to_author_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Reply To Author Ops Ops Queue  Item Id  Reply To Author Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/note-to-team":{"post":{"tags":["ops"],"summary":"Ops Note To Team","description":"Add an internal note. No status change, no customer contact stamp.","operationId":"ops_note_to_team_ops_ops_queue__item_id__note_to_team_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Note To Team Ops Ops Queue  Item Id  Note To Team Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/flag-concierge":{"post":{"tags":["ops"],"summary":"Ops Flag For Concierge","description":"Park a ticket on concierge without taking it away from its owner.","operationId":"ops_flag_for_concierge_ops_ops_queue__item_id__flag_concierge_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketConciergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Flag For Concierge Ops Ops Queue  Item Id  Flag Concierge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/assign-concierge":{"post":{"tags":["ops"],"summary":"Ops Assign To Concierge","description":"Transfer the ticket to the client's concierge (GHL lead owner).","operationId":"ops_assign_to_concierge_ops_ops_queue__item_id__assign_concierge_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketAssignConciergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Assign To Concierge Ops Ops Queue  Item Id  Assign Concierge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/reopen":{"post":{"tags":["ops"],"summary":"Ops Reopen Ticket","description":"Bring a closed ticket back as open and In progress.","operationId":"ops_reopen_ticket_ops_ops_queue__item_id__reopen_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketReopenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Reopen Ticket Ops Ops Queue  Item Id  Reopen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/apply-recommendation":{"post":{"tags":["ops"],"summary":"Ops Apply Ops Recommendation","description":"Apply the AI resolver's stored recommendation as the scoped VA/Ops user.\n\n``resolved_by`` is stamped from the authenticated token (not client input).\n\n``expected_evaluated_at`` is the GENERATION FENCE: the frontend sends back\nthe timestamp of the recommendation it rendered, so a re-read that landed\nwhile the rep was reading refuses the apply instead of committing a verdict\nnobody looked at. The body is optional — an older frontend posts none and\nkeeps the previous behaviour.","operationId":"ops_apply_ops_recommendation_ops_ops_queue__item_id__apply_recommendation_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpsQueueApplyRecommendationRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Apply Ops Recommendation Ops Ops Queue  Item Id  Apply Recommendation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/resolve":{"post":{"tags":["ops"],"summary":"Ops Resolve Ops Item","description":"Resolve an ops queue item as the scoped VA/Ops user.","operationId":"ops_resolve_ops_item_ops_ops_queue__item_id__resolve_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Resolve Ops Item Ops Ops Queue  Item Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/exclude-material":{"post":{"tags":["ops"],"summary":"Ops Exclude Ops Item Material","description":"Keep a policy-review ticket's material out of the book, as the ops user.","operationId":"ops_exclude_ops_item_material_ops_ops_queue__item_id__exclude_material_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueExcludeMaterialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Exclude Ops Item Material Ops Ops Queue  Item Id  Exclude Material Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/bulk-resolve":{"post":{"tags":["ops"],"summary":"Ops Bulk Resolve Ops Items","description":"Bulk-resolve ops items as the scoped VA/Ops user. When ``project_id`` is\nsupplied, foreign items are rejected (tenant guard).","operationId":"ops_bulk_resolve_ops_items_ops_ops_queue_bulk_resolve_post","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueBulkResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Bulk Resolve Ops Items Ops Ops Queue Bulk Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/bulk-take":{"post":{"tags":["ops"],"summary":"Ops Bulk Take Ops Items","description":"Take many open tickets as the authenticated rep.\n\nThe owner is ALWAYS the token's email — like the single-item take, never\nclient input. Tickets somebody else holds come back refused INSIDE the\nper-item envelope, with their names, rather than failing the request.","operationId":"ops_bulk_take_ops_items_ops_ops_queue_bulk_take_post","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueBulkTakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Bulk Take Ops Items Ops Ops Queue Bulk Take Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/bulk-reassign":{"post":{"tags":["ops"],"summary":"Ops Bulk Reassign Ops Items","description":"Hand many open tickets to one named person.\n\nAdmin-only, exactly like the single-item mirror: this is the one path that\nmay take work away from whoever holds it, and doing that to a whole page at\nonce is not a generic queue-role action.","operationId":"ops_bulk_reassign_ops_items_ops_ops_queue_bulk_reassign_post","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueBulkReassignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Bulk Reassign Ops Items Ops Ops Queue Bulk Reassign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/escalate":{"post":{"tags":["ops"],"summary":"Ops Escalate Ops Item","description":"Escalate an ops queue item as the scoped VA/Ops user.","operationId":"ops_escalate_ops_item_ops_ops_queue__item_id__escalate_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueEscalateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Escalate Ops Item Ops Ops Queue  Item Id  Escalate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/note":{"post":{"tags":["ops"],"summary":"Ops Add Ops Note","description":"Add a note to an ops queue item as the scoped VA/Ops user.","operationId":"ops_add_ops_note_ops_ops_queue__item_id__note_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueAddNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Add Ops Note Ops Ops Queue  Item Id  Note Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/request-approval":{"post":{"tags":["ops"],"summary":"Ops Request Ops Approval","description":"Ask an admin to approve an admin-gated action, as the scoped ops user.\n\n``requested_by`` is stamped from the authenticated token — the request body\nvalue is ignored on this mirror, like every identity field on /ops routes.","operationId":"ops_request_ops_approval_ops_ops_queue__item_id__request_approval_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueRequestApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Request Ops Approval Ops Ops Queue  Item Id  Request Approval Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue-playbooks":{"get":{"tags":["ops"],"summary":"Ops Ops Playbooks","description":"The per-class operator copy registry, for the scoped VA/Ops UI.","operationId":"ops_ops_playbooks_ops_ops_queue_playbooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ops Ops Playbooks Ops Ops Queue Playbooks Get"}}}}}}},"/ops/clients/{project_id}/chapters/{chapter_id}/withheld-drafts":{"get":{"tags":["ops"],"summary":"Ops List Withheld Chapter Drafts","description":"Wave 4 item 5: read-only \"the AI wrote this but the gate withheld it\"\npanel for the ops-queue drawer. See admin.py's twin route for the 404\ncontract (a foreign chapter_id must not leak existence).","operationId":"ops_list_withheld_chapter_drafts_ops_clients__project_id__chapters__chapter_id__withheld_drafts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops List Withheld Chapter Drafts Ops Clients  Project Id  Chapters  Chapter Id  Withheld Drafts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/editor-pass-complete":{"post":{"tags":["ops"],"summary":"Ops Complete Editor Pass","description":"Wave 4: the \"editor pass complete\" chapter_escalation resolution action.\n\nResets the chapter's revision ratchet, notifies the author, best-effort\nflags downstream drafted chapters for a consistency re-check, and\nresolves the item — see app/services/human_review_completion.py for the\nexact ordering and atomicity guarantees.","operationId":"ops_complete_editor_pass_ops_ops_queue__item_id__editor_pass_complete_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueEditorPassCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Complete Editor Pass Ops Ops Queue  Item Id  Editor Pass Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/fix-with-ai":{"post":{"tags":["ops"],"summary":"Ops Fix Chapter Ticket With Ai","description":"Let the AI run the repair this chapter ticket names (2026-09-28).\n\nRe-runs a stalled revision, re-drives an author's manuscript edit (with\ntheir answer folded in), or puts a correction on the author's rail — see\napp/services/chapter_escalation_self_heal.py. Deterministic: no model call\nruns in this request; the revision itself is a Celery task. The result's\n``message`` is the plain-English sentence the ticket shows.","operationId":"ops_fix_chapter_ticket_with_ai_ops_ops_queue__item_id__fix_with_ai_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Fix Chapter Ticket With Ai Ops Ops Queue  Item Id  Fix With Ai Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/chapters/{chapter_id}/reset-feedback-ratchet":{"post":{"tags":["ops"],"summary":"Ops Reset Chapter Feedback Ratchet","description":"Staff-token twin of the admin \"Reset AI revision rounds\" (2026-09-28).\n\nThe ops-queue button used to demand the shared admin key, so a staff admin\n(Ryan's ops role is ``admin``) was refused on a chapter ticket. The role is\nread from the verified token: ``admin`` and ``ops_manager`` only — the same\ntwo roles the Workbench's ``reset_revision_rounds`` tool allows. A foreign\nchapter_id 404s without leaking that it exists.","operationId":"ops_reset_chapter_feedback_ratchet_ops_clients__project_id__chapters__chapter_id__reset_feedback_ratchet_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Reset Chapter Feedback Ratchet Ops Clients  Project Id  Chapters  Chapter Id  Reset Feedback Ratchet Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/claim":{"post":{"tags":["ops"],"summary":"Ops Claim Ops Item","description":"Advisory-claim an open, UNCLAIMED ops item as the authenticated staff/rep.\n\nNot a lock — resolving without claiming stays allowed (see\n``/ops-queue/{item_id}/resolve``). ``claimed_by`` is ALWAYS the\nauthenticated actor's own email, never client input (adversarial review\nbatch 2 FIX 15 — accepting an arbitrary identity here would let any ops\ntoken claim AS someone else). Guarded on ``claimed_by IS NULL`` too\n(batch 1 FIX 7): claiming an item someone else already holds 409s —\nstealing a claim is what the explicit, admin-privileged reassign\nendpoint is for.","operationId":"ops_claim_ops_item_ops_ops_queue__item_id__claim_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Claim Ops Item Ops Ops Queue  Item Id  Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/release":{"post":{"tags":["ops"],"summary":"Ops Release Ops Item","description":"Release the advisory claim on an ops item.\n\nAdversarial review batch 1 FIX 12: restricted to the claimant or an\nadmin — any ops token releasing any claim let one rep silently steal\nanother's queue. Releasing an item that has no claim at all (no-op) is\nallowed for anyone; there is nothing to steal or lose there.","operationId":"ops_release_ops_item_ops_ops_queue__item_id__release_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Release Ops Item Ops Ops Queue  Item Id  Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/reassign":{"post":{"tags":["ops"],"summary":"Ops Reassign Ops Item","description":"Reassign the advisory claim to a specific staff/rep email.\n\nAdmin-only (adversarial review batch 1 FIX 12): this is the ONE\nexplicit \"force\" path that may overwrite an existing claim — claim/\nrelease stay ops/VA-accessible but cannot steal or reassign to a third\nparty.","operationId":"ops_reassign_ops_item_ops_ops_queue__item_id__reassign_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsQueueReassignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Reassign Ops Item Ops Ops Queue  Item Id  Reassign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/whole-book-review/blockers/{issue_id}/override":{"post":{"tags":["ops"],"summary":"Ops Override Whole Book Review Blocker","description":"Ops mirror of the per-blocker override.\n\nQueue roles may work a blocked manuscript. The actor is stamped from the\ntoken — never from client input, because the override note is the audit\nrecord for overruling a quality gate.","operationId":"ops_override_whole_book_review_blocker_ops_clients__project_id__whole_book_review_blockers__issue_id__override_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","title":"Issue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsWholeBookBlockerOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Override Whole Book Review Blocker Ops Clients  Project Id  Whole Book Review Blockers  Issue Id  Override Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/whole-book-review/blockers/{issue_id}/apply-fix":{"post":{"tags":["ops"],"summary":"Ops Apply Whole Book Review Blocker Fix","description":"Ops mirror: re-arm the AI resolver for one blocker.","operationId":"ops_apply_whole_book_review_blocker_fix_ops_clients__project_id__whole_book_review_blockers__issue_id__apply_fix_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","title":"Issue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Apply Whole Book Review Blocker Fix Ops Clients  Project Id  Whole Book Review Blockers  Issue Id  Apply Fix Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/whole-book-review/author-response":{"post":{"tags":["ops"],"summary":"Ops Record Whole Book Review Author Response","description":"Ops mirror: attach an answer the author gave off-thread (call, DM).\n\n``force=True`` matches the admin mirror: a person is deliberately attaching\nthis answer, so the topical-relevance gate that guards untargeted inbound\nemail/SMS must not second-guess them.","operationId":"ops_record_whole_book_review_author_response_ops_clients__project_id__whole_book_review_author_response_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsWholeBookAuthorResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Record Whole Book Review Author Response Ops Clients  Project Id  Whole Book Review Author Response Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/deliverables/{deliverable_id}/approve-asset":{"post":{"tags":["ops"],"summary":"Ops Approve Package Asset","description":"Ops mirror of package-asset approval. Actor is the token, never the query.","operationId":"ops_approve_package_asset_ops_clients__project_id__deliverables__deliverable_id__approve_asset_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"notes","in":"query","required":false,"schema":{"type":"string","default":"","title":"Notes"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpsChecklistAttestation"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Approve Package Asset Ops Clients  Project Id  Deliverables  Deliverable Id  Approve Asset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/ops-suppressions":{"post":{"tags":["ops"],"summary":"Ops Create Ops Suppression","description":"Ops mirror of the standing-order create. Actor is the token, never the body.","operationId":"ops_create_ops_suppression_ops_clients__project_id__ops_suppressions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsSuppressionCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Create Ops Suppression Ops Clients  Project Id  Ops Suppressions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ops"],"summary":"Ops List Ops Suppressions","description":"Ops mirror of the standing-order listing.","operationId":"ops_list_ops_suppressions_ops_clients__project_id__ops_suppressions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Ops List Ops Suppressions Ops Clients  Project Id  Ops Suppressions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/ops-suppressions/{suppression_id}":{"delete":{"tags":["ops"],"summary":"Ops Revoke Ops Suppression","description":"Ops mirror of the standing-order revoke. Actor is the token.","operationId":"ops_revoke_ops_suppression_ops_clients__project_id__ops_suppressions__suppression_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"suppression_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suppression Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Revoke Ops Suppression Ops Clients  Project Id  Ops Suppressions  Suppression Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/request-from-author":{"post":{"tags":["ops"],"summary":"Ops Request From Author For Ticket","description":"Ops mirror of the ticket request-from-author. Actor is the token.","operationId":"ops_request_from_author_for_ticket_ops_ops_queue__item_id__request_from_author_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequestCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Request From Author For Ticket Ops Ops Queue  Item Id  Request From Author Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/{task_id}/request-from-author":{"post":{"tags":["ops"],"summary":"Ops Request From Author For Va Task","description":"Ops mirror of the checklist request-from-author. Actor is the token.","operationId":"ops_request_from_author_for_va_task_ops_va_tasks__task_id__request_from_author_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequestCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Request From Author For Va Task Ops Va Tasks  Task Id  Request From Author Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/author-requests/templates":{"get":{"tags":["ops"],"summary":"Ops List Author Request Templates","description":"Ops mirror of the request-type picker.","operationId":"ops_list_author_request_templates_ops_author_requests_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Ops List Author Request Templates Ops Author Requests Templates Get"}}}}}}},"/ops/author-requests":{"get":{"tags":["ops"],"summary":"Ops List Author Requests","description":"Ops mirror of the Requests tab listing.","operationId":"ops_list_author_requests_ops_author_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Status"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Ops List Author Requests Ops Author Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/author-requests/{request_id}/remind":{"post":{"tags":["ops"],"summary":"Ops Remind Author Request","operationId":"ops_remind_author_request_ops_author_requests__request_id__remind_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":{"type":"object","additionalProperties":true,"title":"Response Ops Remind Author Request Ops Author Requests  Request Id  Remind Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/author-requests/{request_id}/cancel":{"post":{"tags":["ops"],"summary":"Ops Cancel Author Request","operationId":"ops_cancel_author_request_ops_author_requests__request_id__cancel_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/AuthorRequestCancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Cancel Author Request Ops Author Requests  Request Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/author-requests/{request_id}/mark-fulfilled":{"post":{"tags":["ops"],"summary":"Ops Mark Author Request Fulfilled","operationId":"ops_mark_author_request_fulfilled_ops_author_requests__request_id__mark_fulfilled_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/AuthorRequestMarkFulfilledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Mark Author Request Fulfilled Ops Author Requests  Request Id  Mark Fulfilled Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-signoff/{project_id}/{gate}/approve":{"post":{"tags":["ops"],"summary":"Ops Approve Ops Signoff","description":"Ops mirror of signoff-gate approval. Actor is the token, never the query.","operationId":"ops_approve_ops_signoff_ops_ops_signoff__project_id___gate__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"gate","in":"path","required":true,"schema":{"type":"string","title":"Gate"}},{"name":"notes","in":"query","required":false,"schema":{"type":"string","default":"","title":"Notes"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpsChecklistAttestation"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Approve Ops Signoff Ops Ops Signoff  Project Id   Gate  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/portal-link":{"post":{"tags":["ops"],"summary":"Ops Mint Portal Link","description":"Mint an audited magic link into this author's own portal.\n\nMirror of ``POST /admin/clients/{project_id}/portal-link`` for ops-token\nsessions. Queue roles (ops, ops_manager, admin) may open the chapter they\nare working; the mint is attributed to the authenticated ops user, never to\nclient-supplied input.\n\nThe role is re-read from the DB rather than trusted from the 24h token: this\nendpoint hands out a session as a paying customer, so a staff member whose\nrole was just downgraded (or whose account was disabled between requests)\nmust lose it immediately, not when their token expires. Same reasoning as\n``require_workbench_access`` in staff_workbench.py.","operationId":"ops_mint_portal_link_ops_clients__project_id__portal_link_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"redirect","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Redirect"}},{"name":"as_co_author","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"As Co Author"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Mint Portal Link Ops Clients  Project Id  Portal Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/repair-options":{"get":{"tags":["ops"],"summary":"Ops Get Repair Options","description":"Return repair-console context for scoped VA/Ops users.","operationId":"ops_get_repair_options_ops_clients__project_id__repair_options_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"source_ops_item_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Ops Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Get Repair Options Ops Clients  Project Id  Repair Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/repair-actions":{"post":{"tags":["ops"],"summary":"Ops Run Repair Action","description":"Run a scoped repair action as the authenticated Ops user.","operationId":"ops_run_repair_action_ops_clients__project_id__repair_actions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsRepairActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Run Repair Action Ops Clients  Project Id  Repair Actions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/client-setup/{project_id}":{"get":{"tags":["ops"],"summary":"Ops Client Setup Detail","operationId":"ops_client_setup_detail_ops_client_setup__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSetupDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/social/{project_id}/ghl-oauth-install":{"get":{"tags":["ops"],"summary":"Ops Generate Ghl Oauth Install Link","description":"Generate a project-scoped GHL install link for an Ops user.","operationId":"ops_generate_ghl_oauth_install_link_ops_social__project_id__ghl_oauth_install_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Generate Ghl Oauth Install Link Ops Social  Project Id  Ghl Oauth Install Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/social/{project_id}/ghl-setup":{"post":{"tags":["ops"],"summary":"Ops Ghl Setup","operationId":"ops_ghl_setup_ops_social__project_id__ghl_setup_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminGHLSetupRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Ghl Setup Ops Social  Project Id  Ghl Setup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks":{"get":{"tags":["ops"],"summary":"Ops List Va Tasks","operationId":"ops_list_va_tasks_ops_va_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops List Va Tasks Ops Va Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/counts":{"get":{"tags":["ops"],"summary":"Ops Va Task Counts","operationId":"ops_va_task_counts_ops_va_tasks_counts_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Va Task Counts Ops Va Tasks Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/work-inbox/counts":{"get":{"tags":["ops"],"summary":"Ops Work Inbox Counts","description":"Ops mirror of the work-inbox counts.\n\nBOTH gates, not one. The inbox stacks ticket rows and checklist rows on one\npage, so a role that may see the number must be allowed on both surfaces.\nThe two sets happen to be identical today; calling both means narrowing\neither one narrows this endpoint with it, instead of quietly leaking a\ncount of work the caller may not open.","operationId":"ops_work_inbox_counts_ops_work_inbox_counts_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Work Inbox Counts Ops Work Inbox Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/by-client":{"get":{"tags":["ops"],"summary":"Ops Va Tasks By Client","description":"Ops mirror of the admin per-client checklist rollup.","operationId":"ops_va_tasks_by_client_ops_va_tasks_by_client_get","parameters":[{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Va Tasks By Client Ops Va Tasks By Client Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/assets/{deliverable_id}/review":{"get":{"tags":["ops"],"summary":"Ops Get Va Task Asset Review","operationId":"ops_get_va_task_asset_review_ops_va_tasks_assets__deliverable_id__review_get","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Get Va Task Asset Review Ops Va Tasks Assets  Deliverable Id  Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/assets/{deliverable_id}/request-rewrite":{"post":{"tags":["ops"],"summary":"Ops Request Va Task Asset Rewrite","operationId":"ops_request_va_task_asset_rewrite_ops_va_tasks_assets__deliverable_id__request_rewrite_post","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATaskAssetRewriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Request Va Task Asset Rewrite Ops Va Tasks Assets  Deliverable Id  Request Rewrite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/{task_id}/start":{"post":{"tags":["ops"],"summary":"Ops Start Va Task","operationId":"ops_start_va_task_ops_va_tasks__task_id__start_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Start Va Task Ops Va Tasks  Task Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/{task_id}/complete":{"post":{"tags":["ops"],"summary":"Ops Complete Va Task","operationId":"ops_complete_va_task_ops_va_tasks__task_id__complete_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Complete Va Task Ops Va Tasks  Task Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/{task_id}/skip":{"post":{"tags":["ops"],"summary":"Ops Skip Va Task","description":"Ops mirror of the admin skip (Track 2 B5-ii).\n\nThe checklist page gained a Skip control in B5-ii and the people who work\nthat page hold ops tokens, so an admin-only skip would have shipped a\nbutton that 404s for every VA. Same handler, same terminal-status guard,\nthe actor's own email on the note.","operationId":"ops_skip_va_task_ops_va_tasks__task_id__skip_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"","title":"Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Skip Va Task Ops Va Tasks  Task Id  Skip Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/{task_id}/unblock":{"post":{"tags":["ops"],"summary":"Ops Unblock Va Task","operationId":"ops_unblock_va_task_ops_va_tasks__task_id__unblock_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Unblock Va Task Ops Va Tasks  Task Id  Unblock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/assignees":{"get":{"tags":["ops"],"summary":"Ops List Va Task Assignees","description":"Who a checklist row may be handed to, for a NON-admin ops session.\n\nThe admin mirror of this list is ``GET /admin/ops-users``, which needs the\nadmin key. Without an ops-side copy the assignee picker could only ever be\nrendered for an admin — which is how 33 of the 41 live rows ended up with\nnobody on them: the people who work the queue could take a row but could\nnot give one to the VA whose job it is.\n\nActive users only, and only the three fields the picker renders. It is the\nsame staff directory the ops queue already shows these roles as ticket\nassignees, not a new disclosure.","operationId":"ops_list_va_task_assignees_ops_va_tasks_assignees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Ops List Va Task Assignees Ops Va Tasks Assignees Get"}}}}}}},"/ops/va-tasks/{task_id}/assign":{"post":{"tags":["ops"],"summary":"Ops Assign Va Task","description":"Assign a checklist row, or clear it.\n\nOPS MAY HAND A ROW TO SOMEBODY ELSE (2026-09-15). Until now a non-admin\nsession could only ever assign a row to itself, so draining the queue —\n\"these five GHL rows are Leo's\" — needed an admin, and mostly did not\nhappen. A VA task's ``assigned_to`` is an owner field, not an advisory\nclaim somebody can be robbed of; the ops-queue rule that reassignment is\nfull-admin (``_ensure_admin_role`` on ``/ops-queue/{id}/reassign``) is\nabout stealing another rep's claim on a live customer ticket and is\ndeliberately not copied here.\n\nThe target is VALIDATED for a non-admin: an active ops user, or the caller\nthemselves, or empty to unassign. An admin keeps the free-text field —\nchecklist rows are assigned to addresses that are not always ops logins.","operationId":"ops_assign_va_task_ops_va_tasks__task_id__assign_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATaskAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Assign Va Task Ops Va Tasks  Task Id  Assign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/{task_id}/note":{"post":{"tags":["ops"],"summary":"Ops Add Va Task Note","operationId":"ops_add_va_task_note_ops_va_tasks__task_id__note_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATaskNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Add Va Task Note Ops Va Tasks  Task Id  Note Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/va-tasks/{task_id}/commerce-confirm":{"post":{"tags":["ops"],"summary":"Ops Confirm Va Task Commerce","description":"Record one structured commerce confirmation on a VA task.\n\nGoHighLevel exposes no read that proves a payment processor is connected, a\ncheckout is wired, an order bump exists, or a funnel domain resolves — every\none of those is a dashboard action settled with the client's own credential.\nThis is the evidence channel for all of them, and it is deliberately\nstructured: an enum key plus an optional reference URL, never a note. The\nauthor-input predicates in ``author_input_registry`` read these keys back.\n\nSee ``docs/ghl-snapshots/15-commerce-ownership-matrix.md``.","operationId":"ops_confirm_va_task_commerce_ops_va_tasks__task_id__commerce_confirm_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATaskCommerceConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Confirm Va Task Commerce Ops Va Tasks  Task Id  Commerce Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/training/companion-videos":{"get":{"tags":["ops"],"summary":"Ops Companion Training Videos","description":"Presigned media URLs for the Companion Training page (ops-token auth).\n\nThe R2 keys are a server-side allowlist — no client input reaches the\npresigner. Mirrors the VA-task asset review presign pattern.","operationId":"ops_companion_training_videos_ops_training_companion_videos_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ops Companion Training Videos Ops Training Companion Videos Get"}}}}}}},"/ops/ops-queue/{item_id}/feedback":{"get":{"tags":["ops"],"summary":"Ops Get Ticket Feedback","description":"This rep's stored verdict for one ticket (null when they have not judged it).","operationId":"ops_get_ticket_feedback_ops_ops_queue__item_id__feedback_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Get Ticket Feedback Ops Ops Queue  Item Id  Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ops"],"summary":"Ops Submit Ticket Feedback","description":"Record how a rep judges the handling of one ticket.\n\nOPS-JWT ONLY, with no ``/admin`` mirror: feedback is a NAMED rep's judgment\nand the shared admin key identifies nobody. Accepted on open AND resolved\ntickets — the most useful verdict is usually formed after the close.","operationId":"ops_submit_ticket_feedback_ops_ops_queue__item_id__feedback_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsTicketFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Submit Ticket Feedback Ops Ops Queue  Item Id  Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/drafts/{draft_id}/send":{"post":{"tags":["ops"],"summary":"Ops Send Ticket Draft","description":"Send a drafted author reply. Delivers once; a second click is a 409.","operationId":"ops_send_ticket_draft_ops_ops_queue__item_id__drafts__draft_id__send_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Send Ticket Draft Ops Ops Queue  Item Id  Drafts  Draft Id  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/drafts/{draft_id}/close":{"post":{"tags":["ops"],"summary":"Ops Close Ticket From Draft","description":"Close the ticket using a drafted resolution. Closes once.","operationId":"ops_close_ticket_from_draft_ops_ops_queue__item_id__drafts__draft_id__close_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Close Ticket From Draft Ops Ops Queue  Item Id  Drafts  Draft Id  Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/ops-queue/{item_id}/drafts/{draft_id}/cancel":{"post":{"tags":["ops"],"summary":"Ops Cancel Ticket Draft","description":"Discard a draft. Deliberately cannot touch a send already in flight.","operationId":"ops_cancel_ticket_draft_ops_ops_queue__item_id__drafts__draft_id__cancel_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Cancel Ticket Draft Ops Ops Queue  Item Id  Drafts  Draft Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/ads-cowork/intake":{"post":{"tags":["ops"],"summary":"Ops Record Ads Cowork Intake","description":"Ops mirror of ``POST /admin/clients/{project_id}/ads-cowork/intake``.\n\nThe VA who runs the install call records the author's budget, category and\nASINs here instead of asking engineering for a Python shell. Same body,\nsame 404 semantics, gated by the ops-queue role.","operationId":"ops_record_ads_cowork_intake_ops_clients__project_id__ads_cowork_intake_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsCoworkIntakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Record Ads Cowork Intake Ops Clients  Project Id  Ads Cowork Intake Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/fulfillment-pipeline/probe":{"get":{"tags":["ops"],"summary":"Ops Probe Fulfillment Pipeline","description":"Ops mirror of ``GET /admin/clients/{project_id}/fulfillment-pipeline/probe``.\n\nRead-only: the person working the checklist can see who produces each\ndeliverable, what the author still owes, and which rows have no producer,\nwithout asking engineering for a Python shell. Same 404 semantics, gated by\nthe ops-queue role.","operationId":"ops_probe_fulfillment_pipeline_ops_clients__project_id__fulfillment_pipeline_probe_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Probe Fulfillment Pipeline Ops Clients  Project Id  Fulfillment Pipeline Probe Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/clients/{project_id}/ads-cowork":{"get":{"tags":["ops"],"summary":"Ops Get Ads Cowork","description":"Ops mirror of ``GET /admin/clients/{project_id}/ads-cowork``.","operationId":"ops_get_ads_cowork_ops_clients__project_id__ads_cowork_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Get Ads Cowork Ops Clients  Project Id  Ads Cowork Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/home":{"get":{"tags":["ops"],"summary":"Ops Home","description":"One person's work, and nothing else (``app.services.staff_home``).\n\n``as_email`` lets an ``admin`` preview another staff member's home; ``job``\nlets an admin preview a job without being that person. Sales roles have\nno home here: their work reaches them on Slack and in the CRM.","operationId":"ops_home_ops_home_get","parameters":[{"name":"as_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"As Email"}},{"name":"job","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Job"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Home Ops Home Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/client-setup/{project_id}/webinarkit":{"get":{"tags":["ops-webinarkit"],"summary":"Ops Webinarkit Status","operationId":"ops_webinarkit_status_ops_client_setup__project_id__webinarkit_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarKitStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/client-setup/{project_id}/webinarkit/retry":{"post":{"tags":["ops-webinarkit"],"summary":"Ops Webinarkit Retry","operationId":"ops_webinarkit_retry_ops_client_setup__project_id__webinarkit_retry_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarKitStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/client-setup/{project_id}/webinarkit/credentials":{"post":{"tags":["ops-webinarkit"],"summary":"Ops Webinarkit Credentials","operationId":"ops_webinarkit_credentials_ops_client_setup__project_id__webinarkit_credentials_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/config":{"get":{"tags":["staff-workbench"],"summary":"Workbench Config","description":"Runtime flag probe. Safe for any authenticated ops user — reveals only\nwhether the caller may enter, never why.","operationId":"workbench_config_ops_workbench_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchConfigResponse"}}}}}}},"/ops/workbench/conversations":{"get":{"tags":["staff-workbench"],"summary":"List My Conversations","operationId":"list_my_conversations_ops_workbench_conversations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List My Conversations Ops Workbench Conversations Get"}}}}}},"post":{"tags":["staff-workbench"],"summary":"Start Conversation","operationId":"start_conversation_ops_workbench_conversations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWorkbenchConversationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/customers/search":{"get":{"tags":["staff-workbench"],"summary":"Search Customers Endpoint","description":"Type-ahead customer search for the workbench (name/email/phone/title).\n\nRole-scoped: assignment-scoped callers only ever see their assigned\nprojects — the scope filter is applied inside search_projects BEFORE any\nrow is returned, so a scoped user can't enumerate foreign customers.","operationId":"search_customers_endpoint_ops_workbench_customers_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Customers Endpoint Ops Workbench Customers Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/clients/{project_id}/card":{"get":{"tags":["staff-workbench"],"summary":"Workbench Client Card","description":"The stage facts for the customer a chat is pinned to.\n\nWHY A WORKBENCH ROUTE AND NOT A LINK TO THE CLIENT WORKSPACE. A `sales` rep\nholds an ops token whose role the admin app's middleware 403s out of\n`/admin/clients/{id}`, so the only way they could find out why a book was\nstuck was to ask the assistant and hope it called the right tool. This is\nthe same read, scoped the same way, rendered inline.\n\nSCOPE IS CHECKED HERE, BEFORE ANY DATA READ (Pattern B — the application is\nthe security boundary; RLS will not catch a missing check). The 404 is\nbyte-identical for \"no such project\" and \"exists but not yours\", exactly as\n``start_conversation`` does it: a differing body lets a scoped caller\nenumerate foreign tenants from a browser tab.","operationId":"workbench_client_card_ops_workbench_clients__project_id__card_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchClientCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/clients/{project_id}/book-files":{"get":{"tags":["staff-workbench"],"summary":"Workbench Book Files","description":"The files the author would upload to KDP today, with QA flags and fixes.\n\nSame scope rule as the client card: checked BEFORE any read, and the 404\nnever tells a scoped rep whether a foreign project exists. Preview links\nare short-lived and for staff eyes; the author's links are minted only by\nthe release route.","operationId":"workbench_book_files_ops_workbench_clients__project_id__book_files_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchBookFilesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/clients/{project_id}/book-files/release":{"post":{"tags":["staff-workbench"],"summary":"Workbench Book Files Release","description":"\"Send updated files to author\" — the panel's one button.\n\nSame send as the chat tool ``release_book_file_update``: one message\nthrough the normal author channel with permanent links, the note and the\nCowork prompt, recorded on the book's history. Audited as that tool so the\naudit log reads the same whichever surface pressed it. Refusals are 409\nwith the service's own sentence.","operationId":"workbench_book_files_release_ops_workbench_clients__project_id__book_files_release_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchBookFileReleaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchBookFileReleaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/playbooks":{"get":{"tags":["staff-workbench"],"summary":"List Workbench Playbooks","description":"The problem buttons the caller's CURRENT role may press.\n\nThe role comes from the DB (``require_workbench_access`` re-reads it), and\na playbook is listed only when that role may use every tool it names — so\na button never offers a fix its presser's tools would refuse.","operationId":"list_workbench_playbooks_ops_workbench_playbooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchPlaybookListResponse"}}}}}}},"/ops/workbench/playbooks/{playbook_id}/request":{"post":{"tags":["staff-workbench"],"summary":"Build Workbench Playbook Request","description":"Turn a filled-in playbook form into the chat message to send.\n\nSends nothing and changes nothing: the browser posts the returned text\nthrough the ordinary ``/messages`` route, where every tool call is still\nrole-checked, tenant-scoped and audited. The checks here exist so the text\ncan never name a book the caller may not see:\n\n* a playbook outside the caller's role is a 404, like an unknown one;\n* the project is scope-checked BEFORE it is read, and \"not yours\" and\n  \"does not exist\" are the same byte-identical 404 (Pattern B).","operationId":"build_workbench_playbook_request_ops_workbench_playbooks__playbook_id__request_post","parameters":[{"name":"playbook_id","in":"path","required":true,"schema":{"type":"string","title":"Playbook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchPlaybookBuildRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchPlaybookBuildResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/clients/{project_id}/billing-link":{"post":{"tags":["staff-workbench"],"summary":"Workbench Billing Link","description":"One button on the client card: get this author a safe billing link.\n\nSCOPE IS CHECKED HERE, BEFORE ANY READ, and the 404 is byte-identical for\n\"no such project\" and \"exists but not yours\" — the same rule the client\ncard follows, for the same reason (Pattern B: the application is the\nsecurity boundary; a differing body lets a scoped rep enumerate tenants).\n\nThis is NOT modelled on the offer-approval routes. Those use a global-scope\nemail allowlist with no assignment check, which is the wrong shape for a\nper-book action: here a sales or support rep may act on the books they are\nassigned, and on no others.\n\nWhat comes back is a link and nothing else — no card details, no payment\nmethod ids. The card link can only change the saved card (Stripe\nconfiguration with cancel/plan-change/pause switched off) and records the\nsame subscription-scoped intent an author's own link does, so a card saved\nfrom it reaches the right subscription.","operationId":"workbench_billing_link_ops_workbench_clients__project_id__billing_link_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchBillingLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchBillingLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/clients/{project_id}/downgrade-to-diy":{"post":{"tags":["staff-workbench"],"summary":"Workbench Downgrade To Diy","description":"Convert one book from its payment plan to DIY, crediting what was paid.\n\nSCOPE IS CHECKED HERE, BEFORE ANY READ, and the 404 is byte-identical for\n\"no such project\" and \"exists but not yours\" — the same rule the client\ncard and the billing link follow (Pattern B: the application is the\nsecurity boundary; a differing body lets a scoped rep enumerate tenants).\n\nNothing about the money comes from the request. The credit is summed from\nthe PAID Stripe invoices on this project's own plan, the DIY price comes\nfrom the immutable plan table, and the balance is the difference. What the\nrep chooses is only WHEN and IN HOW MANY PARTS the balance is paid.\n\nRefusals are 409 with the service's own sentence, because every one of them\nmeans the rep must do something different — not that the server broke.","operationId":"workbench_downgrade_to_diy_ops_workbench_clients__project_id__downgrade_to_diy_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchDowngradeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchDowngradeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/conversations/{conversation_id}/messages":{"get":{"tags":["staff-workbench"],"summary":"Conversation History","operationId":"conversation_history_ops_workbench_conversations__conversation_id__messages_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/WorkbenchHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/messages":{"post":{"tags":["staff-workbench"],"summary":"Post Message","operationId":"post_message_ops_workbench_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/messages/{task_id}":{"get":{"tags":["staff-workbench"],"summary":"Poll Message","operationId":"poll_message_ops_workbench_messages__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchPollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/offers":{"get":{"tags":["staff-workbench"],"summary":"List Offers","operationId":"list_offers_ops_workbench_offers_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":{"$ref":"#/components/schemas/OfferDraftListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/offers/{draft_id}/approve":{"post":{"tags":["staff-workbench"],"summary":"Approve Offer","description":"Admin approval — the human click that creates the real Payment Link.\n\nIdempotent: re-approving a draft that already has a link returns it;\ndouble-clicks race on a status-fenced UPDATE and both converge on the\nsame idempotency-keyed Stripe objects.","operationId":"approve_offer_ops_workbench_offers__draft_id__approve_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/offers/{draft_id}/cancel":{"post":{"tags":["staff-workbench"],"summary":"Cancel Offer","operationId":"cancel_offer_ops_workbench_offers__draft_id__cancel_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/marketing-sequence/{project_id}":{"get":{"tags":["staff-workbench"],"summary":"Get Marketing Sequence","description":"Read-only sequence view for the ops drawer panel (404-dark).","operationId":"get_marketing_sequence_ops_workbench_marketing_sequence__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingSequenceActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/marketing-sequence/{project_id}/override":{"post":{"tags":["staff-workbench"],"summary":"Apply Marketing Sequence Override","description":"Rep override: unlock step / mark milestone / skip sequence / unlock book.\n\nFail-closed two-phase audit (staff_tools convention): the in-flight audit\nrow lands BEFORE the mutation, so no override can exist without a row; if\nthe audit store is down, the override is refused and nothing changes.","operationId":"apply_marketing_sequence_override_ops_workbench_marketing_sequence__project_id__override_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingSequenceActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingSequenceActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/assignments":{"get":{"tags":["staff-workbench"],"summary":"List Assignments","operationId":"list_assignments_ops_workbench_assignments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAssignmentsResponse"}}}}}},"post":{"tags":["staff-workbench"],"summary":"Create Assignment","operationId":"create_assignment_ops_workbench_assignments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAssignmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAssignmentRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["staff-workbench"],"summary":"Delete Assignment","operationId":"delete_assignment_ops_workbench_assignments_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAssignmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Delete Assignment Ops Workbench Assignments Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/assignments/staff-users":{"get":{"tags":["staff-workbench"],"summary":"List Assignable Staff","operationId":"list_assignable_staff_ops_workbench_assignments_staff_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Assignable Staff Ops Workbench Assignments Staff Users Get"}}}}}}},"/ops/workbench/assignments/primary-owner":{"post":{"tags":["staff-workbench"],"summary":"Assign Primary Owner","description":"Atomically transfer a project's one primary owner.","operationId":"assign_primary_owner_ops_workbench_assignments_primary_owner_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAssignmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffAssignmentRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/workbench/audit":{"get":{"tags":["staff-workbench"],"summary":"Audit Log","operationId":"audit_log_ops_workbench_audit_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":"object","additionalProperties":true,"title":"Response Audit Log Ops Workbench Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/config":{"get":{"tags":["sales-plans"],"summary":"Get Sales Plan Config","operationId":"get_sales_plan_config_training_sales_plans_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesPlanConfigResponse"}}}}}}},"/training/sales-plans/media/{asset}":{"get":{"tags":["sales-plans"],"summary":"Get Sales Plan Training Media","operationId":"get_sales_plan_training_media_training_sales_plans_media__asset__get","parameters":[{"name":"asset","in":"path","required":true,"schema":{"enum":["video","captions"],"type":"string","title":"Asset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Sales Plan Training Media Training Sales Plans Media  Asset  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/quote":{"post":{"tags":["sales-plans"],"summary":"Quote Sales Plan","operationId":"quote_sales_plan_training_sales_plans_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomQuoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanQuote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/book-deposit":{"post":{"tags":["sales-plans"],"summary":"Lookup Book Deposit","description":"The buyer's paid Book Deposit an Authority Book plan can credit.\n\nJeff Hilbrecht, 2026-11-02: a buyer pays a Book Deposit, goes to funding,\nis denied, and the rep needs a plan for the balance. The builder asks here\nbefore pricing; the quote and the offer read the same deposit again.","operationId":"lookup_book_deposit_training_sales_plans_book_deposit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookDepositLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookDepositLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/affordability":{"post":{"tags":["sales-plans"],"summary":"Generate Affordability Options","operationId":"generate_affordability_options_training_sales_plans_affordability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffordabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffordabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/link-capability":{"post":{"tags":["sales-plans"],"summary":"Mint Payment Link Capability","description":"Mint the author capability for the shared v6 Stripe payment links.\n\nThe links themselves are generic, so a paid session can only say which\nemail the buyer typed — and Stripe never proves they own it. Appending this\nsigned value as ``client_reference_id`` names the exact book the payment\nmay fulfill, which is what lets the webhook commit the package instead of\nholding the money for a human.","operationId":"mint_payment_link_capability_training_sales_plans_link_capability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkCapabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkCapabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/package-deposit-link":{"post":{"tags":["sales-plans"],"summary":"Mint Custom Package Deposit Link","description":"Return a ready-to-send, package-locking custom deposit link.\n\nThis intentionally has no payment-plan inputs. The buyer enters the agreed\ndeposit at Stripe; the signed client reference means the paid amount is\ncredited only to this buyer's selected package.","operationId":"mint_custom_package_deposit_link_training_sales_plans_package_deposit_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDepositLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkCapabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans":{"post":{"tags":["sales-plans"],"summary":"Create Sales Plan Offer","operationId":"create_sales_plan_offer_training_sales_plans_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSalesPlanOfferRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesPlanOfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sales-plans"],"summary":"List Sales Plan Offers","operationId":"list_sales_plan_offers_training_sales_plans_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesPlanOfferListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/{offer_id}/send":{"post":{"tags":["sales-plans"],"summary":"Send Sales Plan Offer","operationId":"send_sales_plan_offer_training_sales_plans__offer_id__send_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSalesPlanOfferRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSalesPlanOfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/sales-plans/{offer_id}/archive":{"post":{"tags":["sales-plans"],"summary":"Archive Sales Plan Offer","description":"Withdraw an unpaid plan link the calling rep built.\n\nReps build a second link for the same buyer routinely; the superseded one\nused to stay live for its whole token TTL and could still open a Checkout\nand mint a SECOND subscription. Archiving retires the row and expires any\nhosted Checkout URL already handed out. A paid plan is never archivable —\nthat is a support/refund question, not a link question.","operationId":"archive_sales_plan_offer_training_sales_plans__offer_id__archive_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveSalesPlanOfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/checkout/plan/{token}":{"get":{"tags":["sales-plans"],"summary":"Get Public Sales Plan Offer","operationId":"get_public_sales_plan_offer_checkout_plan__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/PublicSalesPlanOfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/checkout/plan/{token}/session":{"post":{"tags":["sales-plans"],"summary":"Create Public Sales Plan Checkout","operationId":"create_public_sales_plan_checkout_checkout_plan__token__session_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesPlanCheckoutSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesPlanCheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/sales-report/talk-your-book-diy-training/{asset}":{"get":{"tags":["sales-report"],"summary":"Get Talk Your Book Diy Finance Training Media","description":"Serve the finance/ops walkthrough behind the live report role gate.","operationId":"get_talk_your_book_diy_finance_training_media_ops_sales_report_talk_your_book_diy_training__asset__get","parameters":[{"name":"asset","in":"path","required":true,"schema":{"enum":["video","captions"],"type":"string","title":"Asset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Talk Your Book Diy Finance Training Media Ops Sales Report Talk Your Book Diy Training  Asset  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/sales-report":{"get":{"tags":["sales-report"],"summary":"Get Sales Report","description":"Netted, rep-attributed sales for one semi-monthly pay period.\n\nOmit year/month/half to get the CURRENT period. All three must be provided\ntogether for an explicit period (else it falls back to current).","operationId":"get_sales_report_ops_sales_report_get","parameters":[{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":2020},{"type":"null"}],"title":"Year"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":12,"minimum":1},{"type":"null"}],"title":"Month"}},{"name":"half","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2,"minimum":1},{"type":"null"}],"title":"Half"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesPeriodReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/sales-report/talk-your-book-quote":{"post":{"tags":["sales-report"],"summary":"Create Talk Your Book Quote","description":"Issue a seven-day, buyer-bound rep offer from an authenticated staff row.","operationId":"create_talk_your_book_quote_ops_sales_report_talk_your_book_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkYourBookQuoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkYourBookQuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/uploads":{"post":{"tags":["invoice-check"],"summary":"Create Upload Ticket","description":"Mint a server-keyed presigned PUT and the ledger row that authorizes it.\n\nThe client never chooses the key. The size is signed into the URL so R2\nrejects a larger body, and the parse task re-checks the real bytes anyway.","operationId":"create_upload_ticket_ops_invoice_check_uploads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTicketRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTicketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices":{"post":{"tags":["invoice-check"],"summary":"Create Invoice","description":"Record an invoice and enqueue its parse.\n\nPDFs are NOT deduped here: no server-side bytes exist yet, and trusting a\nclient hash would let a caller collide onto somebody else's invoice. The\nparse task downloads, checks the magic bytes and the real size, hashes, and\nonly then dedupes. Pasted text IS deduped here — the server holds the bytes.","operationId":"create_invoice_ops_invoice_check_invoices_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["invoice-check"],"summary":"List Invoices","operationId":"list_invoices_ops_invoice_check_invoices_get","parameters":[{"name":"review_status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","approved","disputed","void"],"type":"string"},{"type":"null"}],"title":"Review Status"}},{"name":"period_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":2020},{"type":"null"}],"title":"Period Year"}},{"name":"period_month","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":12,"minimum":1},{"type":"null"}],"title":"Period Month"}},{"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":"object","additionalProperties":true,"title":"Response List Invoices Ops Invoice Check Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}":{"get":{"tags":["invoice-check"],"summary":"Get Invoice Detail","operationId":"get_invoice_detail_ops_invoice_check_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":{"type":"object","additionalProperties":true,"title":"Response Get Invoice Detail Ops Invoice Check Invoices  Invoice Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/reparse":{"post":{"tags":["invoice-check"],"summary":"Reparse Invoice","description":"Re-run the parse — the drain for a ``parse_failed`` invoice.","operationId":"reparse_invoice_ops_invoice_check_invoices__invoice_id__reparse_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/SimpleStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/reverify":{"post":{"tags":["invoice-check"],"summary":"Reverify Invoice","operationId":"reverify_invoice_ops_invoice_check_invoices__invoice_id__reverify_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/SimpleStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/lines/{line_id}/decision":{"post":{"tags":["invoice-check"],"summary":"Decide Line","description":"Accept, push back on, manually match, or un-decide one line.","operationId":"decide_line_ops_invoice_check_invoices__invoice_id__lines__line_id__decision_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"line_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Line Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Line Ops Invoice Check Invoices  Invoice Id  Lines  Line Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/lines/{line_id}/attest":{"post":{"tags":["invoice-check"],"summary":"Attest Payout","description":"Record what a Payva payout actually was.\n\nDeliberately not a confirm button. No system of ours holds a Payva payout\nfigure, so counting one toward the basis requires a person to type the\namount, the date and the reference off the dashboard or bank statement —\nauditable attestation, explicitly not independent verification.","operationId":"attest_payout_ops_invoice_check_invoices__invoice_id__lines__line_id__attest_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"line_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Line Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestPayoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Attest Payout Ops Invoice Check Invoices  Invoice Id  Lines  Line Id  Attest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/lines/{line_id}/financing":{"post":{"tags":["invoice-check"],"summary":"Answer Line Financing","description":"Record a person's answer: did this payment use a financing partner?\n\nCloses the line's \"confirm financing\" question without touching anything\nelse on it. Unlike ``decision: accepted`` it does not sign off the line's\nother open questions (product rule, missing payment, rep), which the\nengine keeps asking about. The answer outranks a CRM link-sent tag; a\nre-verify folds it in.","operationId":"answer_line_financing_ops_invoice_check_invoices__invoice_id__lines__line_id__financing_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"line_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Line Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancingAnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Line Financing Ops Invoice Check Invoices  Invoice Id  Lines  Line Id  Financing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/approve":{"post":{"tags":["invoice-check"],"summary":"Approve Invoice","description":"Approve a verified invoice for payment.\n\nFour conditions, each a 409 with a reason. Approval is a claim about a\nspecific run's evidence, so a stale run id, an undecided line, or an\nestimated-fee basis stops it — the last two only until somebody says, on\nthe record, that they meant it.","operationId":"approve_invoice_ops_invoice_check_invoices__invoice_id__approve_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveInvoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Invoice Ops Invoice Check Invoices  Invoice Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/record-outside-payment":{"post":{"tags":["invoice-check"],"summary":"Record Outside Payment","description":"Approve an invoice and record a payment already made outside the flow.\n\nThe normal path approves, emails finance a payment instruction, and books\nthe payment only when finance replies \"Paid\" — which emails finance and the\nvendor again. When the money already moved by hand (Reed #20664, paid\n$5,982.54 after a manual line-by-line verification), that path has nothing\nleft to do but send mail about it. This one writes the same approval and\nline reservations, a payment instruction flagged ``recorded_outside_flow``,\none ``kind='paid'`` row and one audit event, in a single transaction, and\nqueues no email and no conversation task.\n\nIt keeps every approve-gate refusal and adds two acknowledgements only an\noutside payment needs: an amount that differs from the engine's commission\n(with the written reason in ``note``), and a payment another approved\ninvoice already reserves.","operationId":"record_outside_payment_ops_invoice_check_invoices__invoice_id__record_outside_payment_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordOutsidePaymentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Outside Payment Ops Invoice Check Invoices  Invoice Id  Record Outside Payment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/dispute":{"post":{"tags":["invoice-check"],"summary":"Dispute Invoice","operationId":"dispute_invoice_ops_invoice_check_invoices__invoice_id__dispute_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeInvoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dispute Invoice Ops Invoice Check Invoices  Invoice Id  Dispute Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/pushback-draft":{"get":{"tags":["invoice-check"],"summary":"Get Pushback Draft","description":"A deterministic pushback note + the per-line recap email.\n\nNo model call — both texts go to a vendor. ``recap_email`` is the long\nform Rebecca sends when the submission does not match our payout: what we\npaid on each line and why (Mike, 2026-08-27).","operationId":"get_pushback_draft_ops_invoice_check_invoices__invoice_id__pushback_draft_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"first_invoice","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"First Invoice"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Pushback Draft Ops Invoice Check Invoices  Invoice Id  Pushback Draft Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/remittances":{"get":{"tags":["invoice-check"],"summary":"List Remittances","description":"The financing-partner payment queue, with each partner's own steps.","operationId":"list_remittances_ops_invoice_check_remittances_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["due","paid","waived","disputed","billed_via_vendor"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"partner_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Partner Code"}},{"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":"object","additionalProperties":true,"title":"Response List Remittances Ops Invoice Check Remittances Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/remittances/{remittance_id}/mark-paid":{"post":{"tags":["invoice-check"],"summary":"Mark Remittance Paid","description":"Settle one partner debt. A second attempt 409s rather than overwriting.","operationId":"mark_remittance_paid_ops_invoice_check_remittances__remittance_id__mark_paid_post","parameters":[{"name":"remittance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Remittance Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkRemittancePaidRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Remittance Paid Ops Invoice Check Remittances  Remittance Id  Mark Paid Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/activity":{"get":{"tags":["invoice-check"],"summary":"Get Activity","description":"The filterable audit stream — what did finance actually do, and when.","operationId":"get_activity_ops_invoice_check_activity_get","parameters":[{"name":"actor_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Actor Email"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Event Type"}},{"name":"invoice_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"}},{"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","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Activity Ops Invoice Check Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/email-inbox":{"get":{"tags":["invoice-check"],"summary":"Invoice Email Inbox","operationId":"invoice_email_inbox_ops_invoice_check_email_inbox_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Invoice Email Inbox Ops Invoice Check Email Inbox Get"}}}}}}},"/ops/invoice-check/email-inbox/{receipt_id}/retry":{"post":{"tags":["invoice-check"],"summary":"Retry Invoice Email","operationId":"retry_invoice_email_ops_invoice_check_email_inbox__receipt_id__retry_post","parameters":[{"name":"receipt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Receipt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Invoice Email Ops Invoice Check Email Inbox  Receipt Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/invoice-check/invoices/{invoice_id}/reopen-payment":{"post":{"tags":["invoice-check"],"summary":"Reopen Payment","operationId":"reopen_payment_ops_invoice_check_invoices__invoice_id__reopen_payment_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReopenPaymentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reopen Payment Ops Invoice Check Invoices  Invoice Id  Reopen Payment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/quickbooks/status":{"get":{"tags":["cfo"],"summary":"Get Status","operationId":"get_status_ops_cfo_quickbooks_status_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QBOConnectionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/quickbooks/connect-url":{"get":{"tags":["cfo"],"summary":"Get Connect Url","operationId":"get_connect_url_ops_cfo_quickbooks_connect_url_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QBOConnectUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/quickbooks/disconnect":{"post":{"tags":["cfo"],"summary":"Disconnect","description":"Revoke the live connection for the configured environment at Intuit.","operationId":"disconnect_ops_cfo_quickbooks_disconnect_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QBODisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/quickbooks/chart-of-accounts":{"get":{"tags":["cfo"],"summary":"Get Chart Plan","description":"Read-only plan: which accounts exist, which would be created.","operationId":"get_chart_plan_ops_cfo_quickbooks_chart_of_accounts_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QBOChartPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/quickbooks/chart-of-accounts/apply":{"post":{"tags":["cfo"],"summary":"Apply Chart Plan","description":"Queue the idempotent create of the missing accounts (Celery).","operationId":"apply_chart_plan_ops_cfo_quickbooks_chart_of_accounts_apply_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QBOChartPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/quickbooks/books/post-stripe-payouts":{"post":{"tags":["cfo"],"summary":"Post Stripe Payouts Now","description":"Queue the Stripe payout posting now instead of waiting for 12:10 UTC.","operationId":"post_stripe_payouts_now_ops_cfo_quickbooks_books_post_stripe_payouts_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Stripe Payouts Now Ops Cfo Quickbooks Books Post Stripe Payouts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/quickbooks/connect":{"get":{"tags":["quickbooks"],"summary":"Quickbooks Connect","description":"Trade the admin's signed ticket for a browser-binding cookie, then go\nto Intuit's consent screen.","operationId":"quickbooks_connect_integrations_quickbooks_connect_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/integrations/quickbooks/callback":{"get":{"tags":["quickbooks"],"summary":"Quickbooks Callback","operationId":"quickbooks_callback_integrations_quickbooks_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/integrations/quickbooks/disconnected":{"get":{"tags":["quickbooks"],"summary":"Quickbooks Disconnected","description":"Intuit's Disconnect URL. Unauthenticated, so it never revokes anything\nitself: it queues a forced token refresh, and a grant the company really\nrevoked fails with invalid_grant and is marked for re-connect.","operationId":"quickbooks_disconnected_integrations_quickbooks_disconnected_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/quickbooks":{"post":{"tags":["quickbooks"],"summary":"Quickbooks Webhook","operationId":"quickbooks_webhook_webhooks_quickbooks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Quickbooks Webhook Webhooks Quickbooks Post"}}}}}}},"/ops/cfo/commitments":{"get":{"tags":["cfo"],"summary":"Get Commitments","operationId":"get_commitments_ops_cfo_commitments_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitmentsView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/commitments/refresh":{"post":{"tags":["cfo"],"summary":"Refresh Commitments","operationId":"refresh_commitments_ops_cfo_commitments_refresh_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refresh Commitments Ops Cfo Commitments Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/commitments/audiobooks/{project_id}":{"post":{"tags":["cfo"],"summary":"Set Audiobook Commitment","operationId":"set_audiobook_commitment_ops_cfo_commitments_audiobooks__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitmentOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookCommitment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/reports/{kind}/preview":{"get":{"tags":["cfo"],"summary":"Preview Report","operationId":"preview_report_ops_cfo_reports__kind__preview_get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["weekly","monthly"],"type":"string","title":"Kind"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Report Ops Cfo Reports  Kind  Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/cfo/reports/{kind}/send":{"post":{"tags":["cfo"],"summary":"Send Report Now","operationId":"send_report_now_ops_cfo_reports__kind__send_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["weekly","monthly"],"type":"string","title":"Kind"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Report Now Ops Cfo Reports  Kind  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/snapshot":{"get":{"tags":["exec-team"],"summary":"Get Snapshot","operationId":"get_snapshot_ops_exec_snapshot_get","parameters":[{"name":"week_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Monday the week starts on (ET)","title":"Week Start"},"description":"Monday the week starts on (ET)"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Snapshot Ops Exec Snapshot Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/echo/observations":{"post":{"tags":["exec-team"],"summary":"Post Observations","operationId":"post_observations_admin_exec_echo_observations_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarvestBatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Observations Admin Exec Echo Observations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/echo/session-recaps":{"post":{"tags":["exec-team"],"summary":"Post Session Recaps","operationId":"post_session_recaps_admin_exec_echo_session_recaps_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecapBatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Session Recaps Admin Exec Echo Session Recaps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/echo/observations/route":{"post":{"tags":["exec-team"],"summary":"Route Observations Now","operationId":"route_observations_now_admin_exec_echo_observations_route_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Route Observations Now Admin Exec Echo Observations Route Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/echo/observations/summary":{"get":{"tags":["exec-team"],"summary":"Observations Summary","operationId":"observations_summary_admin_exec_echo_observations_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Observations Summary Admin Exec Echo Observations Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/deploy-events":{"post":{"tags":["exec-cto"],"summary":"Post Deploy Event","operationId":"post_deploy_event_admin_exec_deploy_events_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployEventIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Deploy Event Admin Exec Deploy Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/fleet-stats":{"post":{"tags":["exec-cto"],"summary":"Post Fleet Stats","operationId":"post_fleet_stats_admin_exec_fleet_stats_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetStatsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Fleet Stats Admin Exec Fleet Stats Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/server-health":{"post":{"tags":["exec-cto"],"summary":"Post Server Health","operationId":"post_server_health_admin_exec_server_health_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerHealthIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Server Health Admin Exec Server Health Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/deploy-train-events":{"post":{"tags":["exec-cto"],"summary":"Post Deploy Train Events","operationId":"post_deploy_train_events_admin_exec_deploy_train_events_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployTrainBatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Deploy Train Events Admin Exec Deploy Train Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/cto/feeds":{"get":{"tags":["exec-cto"],"summary":"Get Cto Feeds","operationId":"get_cto_feeds_admin_exec_cto_feeds_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Cto Feeds Admin Exec Cto Feeds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deploy-drain":{"get":{"tags":["deploy-drain"],"summary":"Get Deploy Drain","operationId":"get_deploy_drain_admin_deploy_drain_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deploy Drain Admin Deploy Drain Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["deploy-drain"],"summary":"Post Deploy Drain","operationId":"post_deploy_drain_admin_deploy_drain_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployDrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Deploy Drain Admin Deploy Drain Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deploy-drain"],"summary":"Delete Deploy Drain","operationId":"delete_deploy_drain_admin_deploy_drain_delete","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Deploy Drain Admin Deploy Drain Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/worker-running-tasks":{"get":{"tags":["deploy-drain"],"summary":"Get Worker Running Tasks","operationId":"get_worker_running_tasks_admin_worker_running_tasks_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Worker Running Tasks Admin Worker Running Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deploy-canary":{"post":{"tags":["deploy-canary"],"summary":"Post Deploy Canary","operationId":"post_deploy_canary_admin_deploy_canary_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployCanaryEnqueueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Deploy Canary Admin Deploy Canary Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deploy-canary/{run_id}":{"get":{"tags":["deploy-canary"],"summary":"Get Deploy Canary","operationId":"get_deploy_canary_admin_deploy_canary__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$","title":"Run Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deploy Canary Admin Deploy Canary  Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/team":{"get":{"tags":["exec-console"],"summary":"Console Team","operationId":"console_team_ops_exec_console_team_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Team Ops Exec Console Team Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/roles/{role}":{"get":{"tags":["exec-console"],"summary":"Console Role","operationId":"console_role_ops_exec_console_roles__role__get","parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Role Ops Exec Console Roles  Role  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/roles/{role}/thread":{"get":{"tags":["exec-console"],"summary":"Console Thread","operationId":"console_thread_ops_exec_console_roles__role__thread_get","parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Thread Ops Exec Console Roles  Role  Thread Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/roles/{role}/messages":{"post":{"tags":["exec-console"],"summary":"Console Post","operationId":"console_post_ops_exec_console_roles__role__messages_post","parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleMessageRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Post Ops Exec Console Roles  Role  Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/ask-all":{"post":{"tags":["exec-console"],"summary":"Console Ask All","operationId":"console_ask_all_ops_exec_console_ask_all_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleMessageRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Ask All Ops Exec Console Ask All Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/groups/{group_id}":{"get":{"tags":["exec-console"],"summary":"Console Group","operationId":"console_group_ops_exec_console_groups__group_id__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Group Ops Exec Console Groups  Group Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/roles/{role}/artifacts/{artifact_id}":{"get":{"tags":["exec-console"],"summary":"Console Artifact","operationId":"console_artifact_ops_exec_console_roles__role__artifacts__artifact_id__get","parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artifact Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Artifact Ops Exec Console Roles  Role  Artifacts  Artifact Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/decisions/{decision_id}":{"post":{"tags":["exec-console"],"summary":"Console Decide","operationId":"console_decide_ops_exec_console_decisions__decision_id__post","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Decision Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Decide Ops Exec Console Decisions  Decision Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/console/actions/{action_id}/confirm":{"post":{"tags":["exec-console"],"summary":"Console Confirm","operationId":"console_confirm_ops_exec_console_actions__action_id__confirm_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Action Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Console Confirm Ops Exec Console Actions  Action Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/console/runner/claim":{"post":{"tags":["exec-console-runner"],"summary":"Runner Claim","operationId":"runner_claim_admin_exec_console_runner_claim_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerClaimRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Runner Claim Admin Exec Console Runner Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/console/runner/messages/{message_id}/answer":{"post":{"tags":["exec-console-runner"],"summary":"Runner Answer","operationId":"runner_answer_admin_exec_console_runner_messages__message_id__answer_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerAnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Runner Answer Admin Exec Console Runner Messages  Message Id  Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/console/runner/messages/{message_id}/fail":{"post":{"tags":["exec-console-runner"],"summary":"Runner Fail","operationId":"runner_fail_admin_exec_console_runner_messages__message_id__fail_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerFailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Runner Fail Admin Exec Console Runner Messages  Message Id  Fail Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/console/runner/actions/claim":{"post":{"tags":["exec-console-runner"],"summary":"Runner Claim Action","operationId":"runner_claim_action_admin_exec_console_runner_actions_claim_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerClaimRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Runner Claim Action Admin Exec Console Runner Actions Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/console/runner/actions/{action_id}/result":{"post":{"tags":["exec-console-runner"],"summary":"Runner Action Result","operationId":"runner_action_result_admin_exec_console_runner_actions__action_id__result_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Action Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerActionResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Runner Action Result Admin Exec Console Runner Actions  Action Id  Result Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/backlog":{"get":{"tags":["admin-exec-backlog"],"summary":"List Backlog","operationId":"list_backlog_admin_exec_backlog_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Status"}},{"name":"item_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Item Type"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Source"}},{"name":"owner_role","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Owner Role"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"include_test","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test"}},{"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","maximum":10000,"minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Backlog Admin Exec Backlog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/backlog/summary":{"get":{"tags":["admin-exec-backlog"],"summary":"Backlog Summary","operationId":"backlog_summary_admin_exec_backlog_summary_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Backlog Summary Admin Exec Backlog Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/backlog/{item_id}":{"get":{"tags":["admin-exec-backlog"],"summary":"Get Backlog Item","operationId":"get_backlog_item_admin_exec_backlog__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Backlog Item Admin Exec Backlog  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/backlog/{item_id}/decision":{"post":{"tags":["admin-exec-backlog"],"summary":"Decide Backlog Item","operationId":"decide_backlog_item_admin_exec_backlog__item_id__decision_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BacklogDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Backlog Item Admin Exec Backlog  Item Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/decisions":{"post":{"tags":["admin-exec"],"summary":"Exec Decisions","operationId":"exec_decisions_admin_exec_decisions_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Exec Decisions Admin Exec Decisions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/agenda":{"get":{"tags":["admin-exec"],"summary":"Exec Agenda","operationId":"exec_agenda_admin_exec_agenda_get","parameters":[{"name":"week_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Week Start"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Exec Agenda Admin Exec Agenda Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/council/{kind}":{"post":{"tags":["admin-exec"],"summary":"Exec Council","operationId":"exec_council_admin_exec_council__kind__post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["ask","debate","challenge","vote"],"type":"string","title":"Kind"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouncilRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Exec Council Admin Exec Council  Kind  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/council/{council_id}":{"get":{"tags":["admin-exec"],"summary":"Exec Council Result","operationId":"exec_council_result_admin_exec_council__council_id__get","parameters":[{"name":"council_id","in":"path","required":true,"schema":{"type":"string","title":"Council Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Exec Council Result Admin Exec Council  Council Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exec/run":{"post":{"tags":["admin-exec"],"summary":"Exec Run","operationId":"exec_run_admin_exec_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__exec_meeting__RunRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Exec Run Admin Exec Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ops/exec/{role}/preview":{"get":{"tags":["ops-exec"],"summary":"Exec Preview","operationId":"exec_preview_ops_exec__role__preview_get","parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}},{"name":"week_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Week Start"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Exec Preview Ops Exec  Role  Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/orders":{"get":{"tags":["audiobook-ops"],"summary":"List Orders","description":"Every open audiobook order (add ``include_done`` for delivered/cancelled).","operationId":"list_orders_audiobook_ops_orders_get","parameters":[{"name":"include_done","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Done"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Orders Audiobook Ops Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/assignees":{"get":{"tags":["audiobook-ops"],"summary":"List Assignees","description":"Active staff who can own an order.","operationId":"list_assignees_audiobook_ops_assignees_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Assignees Audiobook Ops Assignees Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/orders/{project_id}":{"patch":{"tags":["audiobook-ops"],"summary":"Update Order","description":"Record staff work on an order: assignee, narrator money details, stages.","operationId":"update_order_audiobook_ops_orders__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookOpsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Order Audiobook Ops Orders  Project Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/orders/{project_id}/package":{"post":{"tags":["audiobook-ops"],"summary":"Order Package","description":"Download link for the ACX order package (built on demand when stale).","operationId":"order_package_audiobook_ops_orders__project_id__package_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"rebuild","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Rebuild"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Order Package Audiobook Ops Orders  Project Id  Package Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/orders/{project_id}/cover":{"post":{"tags":["audiobook-ops"],"summary":"Regenerate Cover","description":"Queue a fresh square audiobook cover (optionally with a design note).","operationId":"regenerate_cover_audiobook_ops_orders__project_id__cover_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AudiobookCoverRegenerate"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Regenerate Cover Audiobook Ops Orders  Project Id  Cover Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/orders/{project_id}/picks/{narrator_slug}":{"patch":{"tags":["audiobook-ops"],"summary":"Update Pick","description":"Record one picked narrator's reply (by email, never ACX).","operationId":"update_pick_audiobook_ops_orders__project_id__picks__narrator_slug__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"narrator_slug","in":"path","required":true,"schema":{"type":"string","title":"Narrator Slug"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookCandidateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Pick Audiobook Ops Orders  Project Id  Picks  Narrator Slug  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/orders/{project_id}/book":{"post":{"tags":["audiobook-ops"],"summary":"Book Narrator","description":"Book one of the author's picks: it becomes THE narrator for this order.","operationId":"book_narrator_audiobook_ops_orders__project_id__book_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookBookNarrator"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Book Narrator Audiobook Ops Orders  Project Id  Book Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/narrators":{"get":{"tags":["audiobook-ops"],"summary":"List Team","description":"The narrator team with staff terms and the staff availability toggle.","operationId":"list_team_audiobook_ops_narrators_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Team Audiobook Ops Narrators Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audiobook-ops/narrators/{narrator_slug}/availability":{"patch":{"tags":["audiobook-ops"],"summary":"Set Team Availability","description":"Mark a narrator unavailable (or available again) without deleting them.","operationId":"set_team_availability_audiobook_ops_narrators__narrator_slug__availability_patch","parameters":[{"name":"narrator_slug","in":"path","required":true,"schema":{"type":"string","title":"Narrator Slug"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookNarratorAvailability"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Team Availability Audiobook Ops Narrators  Narrator Slug  Availability Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients":{"post":{"tags":["podcast-ops"],"summary":"Create Client","operationId":"create_client_admin_podcast_ops_clients_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastClientCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastClient"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["podcast-ops"],"summary":"List Clients","operationId":"list_clients_admin_podcast_ops_clients_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastClient"},"title":"Response List Clients Admin Podcast Ops Clients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}":{"get":{"tags":["podcast-ops"],"summary":"Get Client","operationId":"get_client_admin_podcast_ops_clients__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastClient"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["podcast-ops"],"summary":"Update Client","operationId":"update_client_admin_podcast_ops_clients__client_id__patch","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastClientUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastClient"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/ghl-install-link":{"get":{"tags":["podcast-ops"],"summary":"Get Client Ghl Install Link","description":"Generate the per-client GHL OAuth install link (podcast_crm domain).\n\nThe client connects their GHL location via this link; the shared OAuth\ncallback then stores a podcast_crm token for that location, which the reply\nhandoff resolves with fallback disabled. Without this, a positive-reply sync\nfails closed (no isolated token to resolve).","operationId":"get_client_ghl_install_link_admin_podcast_ops_clients__client_id__ghl_install_link_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Client Ghl Install Link Admin Podcast Ops Clients  Client Id  Ghl Install Link Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/authors":{"post":{"tags":["podcast-ops"],"summary":"Create Author","operationId":"create_author_admin_podcast_ops_clients__client_id__authors_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastAuthorCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastAuthor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["podcast-ops"],"summary":"List Authors","operationId":"list_authors_admin_podcast_ops_clients__client_id__authors_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastAuthor"},"title":"Response List Authors Admin Podcast Ops Clients  Client Id  Authors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/authors/from-project":{"post":{"tags":["podcast-ops"],"summary":"Create Author From Project","description":"Onboard an author from a Dictate project (dossier + outline + contact data).\n\nPrior podcast/media appearances captured during enrichment flow automatically into\nthe author's prior_appearances_json — no manual PATCH.\n\nTenant scope (Pattern B): the source is ALWAYS the client's own linked project. A\nproject_id in the body is an optional assertion that MUST equal the client's linked\nproject_id — a foreign id is rejected (404) so one client can never be onboarded\nfrom another client's project data.","operationId":"create_author_from_project_admin_podcast_ops_clients__client_id__authors_from_project_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorFromProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastAuthor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/authors/{author_id}":{"get":{"tags":["podcast-ops"],"summary":"Get Author","operationId":"get_author_admin_podcast_ops_clients__client_id__authors__author_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastAuthor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["podcast-ops"],"summary":"Update Author","operationId":"update_author_admin_podcast_ops_clients__client_id__authors__author_id__patch","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastAuthorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastAuthor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns":{"post":{"tags":["podcast-ops"],"summary":"Create Campaign","operationId":"create_campaign_admin_podcast_ops_clients__client_id__campaigns_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCampaignCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCampaign"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["podcast-ops"],"summary":"List Campaigns","operationId":"list_campaigns_admin_podcast_ops_clients__client_id__campaigns_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastCampaign"},"title":"Response List Campaigns Admin Podcast Ops Clients  Client Id  Campaigns Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}":{"get":{"tags":["podcast-ops"],"summary":"Get Campaign","operationId":"get_campaign_admin_podcast_ops_clients__client_id__campaigns__campaign_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCampaign"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["podcast-ops"],"summary":"Update Campaign","operationId":"update_campaign_admin_podcast_ops_clients__client_id__campaigns__campaign_id__patch","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCampaignUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCampaign"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/import":{"post":{"tags":["podcast-ops"],"summary":"Import Csv","description":"Import podcast leads from CSV text (parse + 5-key dedupe + insert).\n\nRuns the ingest SERVICE inline (no AI, no external calls — just parsing and\ninserts). Fit scoring / enrichment / personalization run later as Celery tasks.","operationId":"import_csv_admin_podcast_ops_clients__client_id__campaigns__campaign_id__import_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/discover":{"post":{"tags":["podcast-ops"],"summary":"Discover Listennotes","description":"Discover podcasts via Listen Notes and ingest them as campaign leads.\n\nRuns inline (bounded by payload.limit ≤ 200, same as CSV import). Tenant-scoped:\na foreign campaign/author 404s. Records a listennotes_api import batch.\n\nOperator note (GH #617): the author's show_preferences_json — preferred_show_types,\ntarget_listener_profile, show_size_preference — should SHAPE the search query the\noperator supplies here (e.g. a solopreneur-leaning author -> solopreneur/business\nqueries). run_listennotes_discovery itself is unchanged; the preferences inform the\nhuman-authored `query` string, they are not auto-applied to the Listen Notes call.","operationId":"discover_listennotes_admin_podcast_ops_clients__client_id__campaigns__campaign_id__discover_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenNotesDiscoverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenNotesDiscoverResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/score":{"post":{"tags":["podcast-ops"],"summary":"Score Campaign","description":"Enqueue fit scoring for the campaign's leads (deterministic + AI refine).\n\nThe scorer chunks + self-requeues so a large campaign never hits the Celery\nhard time limit (GH #598). Pass ``{\"force\": true}`` to rescore already-scored\nleads; the default resumes (skips leads that already have a fit_score).","operationId":"score_campaign_admin_podcast_ops_clients__client_id__campaigns__campaign_id__score_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScoreCampaignRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Score Campaign Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Score Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/enrich":{"post":{"tags":["podcast-ops"],"summary":"Enrich Campaign Leads","description":"Enqueue contact enrichment + email validation for the campaign's leads.\n\nGated by the campaign's enable_apollo/leadmagic flags + the hard cost cap — a\nno-op unless those are configured. Enriches/validates leads that already carry\nan email; it does NOT discover a missing email from a website (the providers\ntake an email as input).","operationId":"enrich_campaign_leads_admin_podcast_ops_clients__client_id__campaigns__campaign_id__enrich_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enrich Campaign Leads Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Enrich Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/backfill-artwork":{"post":{"tags":["podcast-ops"],"summary":"Backfill Campaign Artwork","description":"Enqueue the Listen Notes artwork backfill for pre-existing leads.\n\nNew discoveries store artwork at ingest; this one-off sweep fills\nartwork_url for leads created before the column existed (portal lead cards).\nBounded per run; costs ~1 Listen Notes quota unit per lead.","operationId":"backfill_campaign_artwork_admin_podcast_ops_clients__client_id__campaigns__campaign_id__backfill_artwork_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Backfill Campaign Artwork Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Backfill Artwork Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/push":{"post":{"tags":["podcast-ops"],"summary":"Push Campaign","description":"Enqueue the Smartlead push: create the NON-SENDING campaign (auto-registers\nthe reply webhook), generate + compliance-check per-lead copy, and load approved\nleads. Never starts the campaign / never sends (no senders attached).\n\nFor a client on a Managed Podcast Tour the sold commitment is checked HERE,\nsynchronously, so the operator gets an immediate explained refusal rather than a\nbackground job that silently loads nothing. The task re-checks and re-clamps\nindependently (it is also reachable by direct enqueue and by its own self-chain),\nso this is a UX gate, not the enforcement point. Campaigns with no tour are\nunaffected and stay uncapped.","operationId":"push_campaign_admin_podcast_ops_clients__client_id__campaigns__campaign_id__push_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Push Campaign Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Push Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/leads":{"get":{"tags":["podcast-ops"],"summary":"List Leads","operationId":"list_leads_admin_podcast_ops_clients__client_id__campaigns__campaign_id__leads_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"pipeline_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Status"}},{"name":"approved","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approved"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastLead"},"title":"Response List Leads Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Leads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/leads/{lead_id}/approval":{"post":{"tags":["podcast-ops"],"summary":"Set Lead Approval","operationId":"set_lead_approval_admin_podcast_ops_clients__client_id__leads__lead_id__approval_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastLead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/import-batches":{"get":{"tags":["podcast-ops"],"summary":"List Import Batches","operationId":"list_import_batches_admin_podcast_ops_clients__client_id__campaigns__campaign_id__import_batches_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastImportBatch"},"title":"Response List Import Batches Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Import Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/replies":{"get":{"tags":["podcast-ops"],"summary":"List Replies","operationId":"list_replies_admin_podcast_ops_clients__client_id__campaigns__campaign_id__replies_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastReply"},"title":"Response List Replies Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Replies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/events":{"get":{"tags":["podcast-ops"],"summary":"List Events","operationId":"list_events_admin_podcast_ops_clients__client_id__events_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastEventLog"},"title":"Response List Events Admin Podcast Ops Clients  Client Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/report":{"get":{"tags":["podcast-ops"],"summary":"Client Report","description":"Fulfillment + pipeline funnel rolled up across the client's campaigns.","operationId":"client_report_admin_podcast_ops_clients__client_id__report_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Client Report Admin Podcast Ops Clients  Client Id  Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/report":{"get":{"tags":["podcast-ops"],"summary":"Campaign Report","description":"Fulfillment + pipeline funnel for one campaign (booked/positive/reply rates).","operationId":"campaign_report_admin_podcast_ops_clients__client_id__campaigns__campaign_id__report_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Campaign Report Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/senders":{"get":{"tags":["podcast-ops"],"summary":"List Senders","description":"Inbox pool health + live/projected capacity report (workspace-wide, ops view).","operationId":"list_senders_admin_podcast_ops_senders_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Senders Admin Podcast Ops Senders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/capacity":{"get":{"tags":["podcast-ops"],"summary":"Capacity Forecast","description":"Forward capacity forecast: today vs +lookahead days and the buy-by date.\n\nRead-only. Same numbers the weekly ops alert carries (GET, never buys anything).","operationId":"capacity_forecast_admin_podcast_ops_capacity_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Capacity Forecast Admin Podcast Ops Capacity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/senders/enforce-caps":{"post":{"tags":["podcast-ops"],"summary":"Enforce Sender Caps","description":"Pin every inbox to the per-inbox daily cap (idempotent; only writes drift).\n\nReturns 502 if ANY cap write fails, so a caller never reads success while some\ninboxes remain above the ceiling.","operationId":"enforce_sender_caps_admin_podcast_ops_senders_enforce_caps_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enforce Sender Caps Admin Podcast Ops Senders Enforce Caps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/autopilot-activate":{"post":{"tags":["podcast-ops"],"summary":"Autopilot Activate","description":"Capacity-gated client autopilot self-activation (admin drives onboarding).\n\nThe client picks their tier + review/auto mode; this computes the NEW committed\ndaily demand if this campaign activates at its resolved target and gates it against\nthe send-ready inbox pool. If the pool has headroom -> autopilot goes LIVE now\n(status 'active'). Otherwise -> queued (status 'capacity_pending'), autopilot stays\noff, and Michael is alerted with how many inboxes/domains to add. When capacity is\nlater warmed, the daily committed-capacity audit flips queued campaigns to active.\n\nSee docs/outreach/phase3-client-onboarding-runbook.md for how a client's onboarding\nselection maps to this call.","operationId":"autopilot_activate_admin_podcast_ops_clients__client_id__campaigns__campaign_id__autopilot_activate_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutopilotActivateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutopilotActivateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/attach-senders":{"post":{"tags":["podcast-ops"],"summary":"Attach Senders","description":"Attach all send-ready inboxes to this campaign's Smartlead campaign.\n\nAttaching senders to a not-yet-started (loaded_to_smartlead) campaign does NOT send\n(START is separately gated). Attaching to an ALREADY-sending campaign is an immediate\nsend path, so it's gated on the send flag — and inactive/terminal campaigns are\nrejected before any Smartlead call.","operationId":"attach_senders_admin_podcast_ops_clients__client_id__campaigns__campaign_id__attach_senders_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Attach Senders Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Attach Senders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/start":{"post":{"tags":["podcast-ops"],"summary":"Start Campaign","description":"Start a campaign's Smartlead sending. GATED: fails closed unless the global\nsending flag (podcast_ops_sending_enabled) is on — the deliberate go-live switch.\n\nAlso fails closed (409) for inactive client/campaign lifecycle states so a stale or\nmanual request can never start sending for a paused/terminal/not-yet-loaded campaign.","operationId":"start_campaign_admin_podcast_ops_clients__client_id__campaigns__campaign_id__start_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Campaign Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/podcast-ops/clients/{client_id}/campaigns/{campaign_id}/go-live":{"post":{"tags":["podcast-ops"],"summary":"Request Campaign Go Live","description":"One call instead of four: request the automatic go-live for this campaign.\n\nFor standalone clients (no portal approval) and for ops re-driving a stuck tour.\nRecords the request and runs a pass now; the hourly podcast.go_live_sweep keeps\nre-driving it (activate autopilot -> first push -> attach senders -> START) and\nalerts once if it is still blocked after podcast_go_live_alert_after_hours.\nRefuses a campaign still awaiting the author's approval or paused by the author.","operationId":"request_campaign_go_live_admin_podcast_ops_clients__client_id__campaigns__campaign_id__go_live_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Campaign Go Live Admin Podcast Ops Clients  Client Id  Campaigns  Campaign Id  Go Live Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns":{"post":{"tags":["guest-prospecting"],"summary":"Create Campaign","operationId":"create_campaign_admin_guest_prospecting_campaigns_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCampaignCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCampaign"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["guest-prospecting"],"summary":"List Campaigns","operationId":"list_campaigns_admin_guest_prospecting_campaigns_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GuestCampaign"},"title":"Response List Campaigns Admin Guest Prospecting Campaigns Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}":{"get":{"tags":["guest-prospecting"],"summary":"Get Campaign","operationId":"get_campaign_admin_guest_prospecting_campaigns__campaign_id__get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCampaign"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["guest-prospecting"],"summary":"Update Campaign","operationId":"update_campaign_admin_guest_prospecting_campaigns__campaign_id__patch","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCampaignUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCampaign"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}/discover":{"post":{"tags":["guest-prospecting"],"summary":"Discover Guests","description":"Queue Listen Notes EPISODE discovery for a campaign (mine episodes for guests).\n\nDiscovery makes a per-episode guest_extractor AI call, so it MUST run in Celery\n(never AI in a request handler). This handler validates, opens a guest_batches row,\nenqueues `guest.discover_via_listennotes`, and returns the batch id immediately.\nPoll the batch / prospects list for results.","operationId":"discover_guests_admin_guest_prospecting_campaigns__campaign_id__discover_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestDiscoverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestDiscoverResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}/enrich":{"post":{"tags":["guest-prospecting"],"summary":"Enrich Contacts","description":"Queue the contact-discovery waterfall for a campaign's un-bucketed prospects.\n\nRuns paid provider calls, so it MUST run in Celery. Returns immediately; poll the\nprospects list (filter by contact_channel) for the email/DM buckets.","operationId":"enrich_contacts_admin_guest_prospecting_campaigns__campaign_id__enrich_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestEnrichResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}/push":{"post":{"tags":["guest-prospecting"],"summary":"Push Campaign","description":"Queue copy generation + loading approved prospects into a DRAFTED Smartlead\ncampaign. AI copy gen runs in Celery. Never sends (START is separately gated).","operationId":"push_campaign_admin_guest_prospecting_campaigns__campaign_id__push_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestEnrichResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}/attach-senders":{"post":{"tags":["guest-prospecting"],"summary":"Attach Senders","description":"Attach the send-ready GUEST-pool inboxes to this campaign's Smartlead campaign.\n\nFirewalled to the guest sending domains only. Attaching to a not-yet-started campaign\ndoesn't send (START is separately gated); attaching to an already-sending campaign is\na send path, so when sending is off we verify the upstream campaign is non-sending.","operationId":"attach_senders_admin_guest_prospecting_campaigns__campaign_id__attach_senders_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Attach Senders Admin Guest Prospecting Campaigns  Campaign Id  Attach Senders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}/start":{"post":{"tags":["guest-prospecting"],"summary":"Start Campaign","description":"Start the campaign's Smartlead sending. GATED: fails closed (403) unless\nguest_prospecting_sending_enabled — the deliberate go-live switch.","operationId":"start_campaign_admin_guest_prospecting_campaigns__campaign_id__start_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Campaign Admin Guest Prospecting Campaigns  Campaign Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}/prospects":{"get":{"tags":["guest-prospecting"],"summary":"List Prospects","operationId":"list_prospects_admin_guest_prospecting_campaigns__campaign_id__prospects_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"pipeline_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Status"}},{"name":"contact_channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Channel"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"include_low_fit","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Low Fit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GuestProspect"},"title":"Response List Prospects Admin Guest Prospecting Campaigns  Campaign Id  Prospects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/guest-prospecting/campaigns/{campaign_id}/prospects/{prospect_id}/approval":{"post":{"tags":["guest-prospecting"],"summary":"Set Prospect Approval","operationId":"set_prospect_approval_admin_guest_prospecting_campaigns__campaign_id__prospects__prospect_id__approval_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prospect Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestProspectApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestProspect"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/experience/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Experience","description":"Which portal this project bought — the ONE thing the shell needs to paint.\n\nDeliberately the cheapest read in this module (a single project row). The\nportal shell awaits it before it renders the navigation, so a DIY author\nnever sees the managed nav flash by (#6600). ``/portal/project/{id}`` would\nanswer the same question, but it assembles the whole dashboard — outline,\nchapters, preferences, the title ladder — and blocking every portal page on\nthat is exactly the latency that made the flash 3.5s long.\n\nSession policy is deliberately unchanged: ``get_current_project`` runs\n``assert_session_ready`` here exactly as it does on every other portal\nroute, so a DIY project whose paid setup is still being prepared gets the\nsame 409 it gets everywhere else. The shell reads any non-200 as \"unknown\"\nand renders the tier-NEUTRAL navigation — which is still an improvement on\nthe managed nav that window used to show, and keeps this endpoint from\nbecoming a hole in a posture the rest of the portal enforces.","operationId":"get_portal_experience_portal_experience__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Experience Portal Experience  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/nav-entitlements/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Nav Entitlements","description":"The portal menu's paid-feature links (Voice Studio, Course) and tier.\n\nThe menu used to ask ``/portal/project/{id}`` (the whole dashboard, 1-2s)\nand then ``/portal/voice-setup/{id}`` (consent, assets, samples) on every\nportal page load, to answer three booleans. This answers the same three\nfrom one project row. Same session policy as every portal route\n(``get_current_project``). PORTAL_NAV_ENTITLEMENTS_ENABLED=false -> 404,\nand the menu falls back to the two old reads.","operationId":"get_portal_nav_entitlements_portal_nav_entitlements__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Nav Entitlements Portal Nav Entitlements  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/project/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Project","description":"Get project overview for the client portal.","operationId":"get_portal_project_portal_project__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalProjectDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Chapters","description":"Get chapter list with statuses and Google Doc links.","operationId":"get_portal_chapters_portal_chapters__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalChapterResponse"},"title":"Response Get Portal Chapters Portal Chapters  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/left-out":{"get":{"tags":["portal"],"summary":"Get Portal Left Out Chapters","description":"The chapters she left out of her book (GH #15244), each with Put it back.","operationId":"get_portal_left_out_chapters_portal_chapters__project_id__left_out_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeftOutChapterOut"},"title":"Response Get Portal Left Out Chapters Portal Chapters  Project Id  Left Out Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/put-back":{"post":{"tags":["portal"],"summary":"Put Back Portal Chapter","description":"Put a chapter she left out back in her book, exactly as it was (GH #15244).","operationId":"put_back_portal_chapter_portal_chapters__project_id___chapter_id__put_back_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Back Portal Chapter Portal Chapters  Project Id   Chapter Id  Put Back Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/planning/{project_id}":{"get":{"tags":["portal"],"summary":"Get Planning Review","description":"Fetch the current planning packet and approval state.","operationId":"get_planning_review_portal_planning__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalPlanningResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/planning/{project_id}/review":{"post":{"tags":["portal"],"summary":"Submit Planning Review","description":"Approve planning or request changes via the portal.\n\nDelegates to the shared planning_approval service so all channels\n(portal, email, SMS) use the same state machine.","operationId":"submit_planning_review_portal_planning__project_id__review_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanningReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Planning Review Portal Planning  Project Id  Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/planning/{project_id}/packet":{"get":{"tags":["portal"],"summary":"Get Planning Review Packet","description":"Return the full planning review packet for author presentation.","operationId":"get_planning_review_packet_portal_planning__project_id__packet_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Planning Review Packet Portal Planning  Project Id  Packet Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}":{"get":{"tags":["portal"],"summary":"Get Project Materials","description":"List batched materials for a project or chapter.\n\nEvery row carries its removal state, resolved in ONE ledger read for the\nwhole list. A removed upload stays listed with its \"Removed on ...\" state\nrather than vanishing: an upload that disappears from Your Materials reads\nas lost work, which is the exact doubt this page exists to settle.","operationId":"get_project_materials_portal_materials__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalMaterialResponse"},"title":"Response Get Project Materials Portal Materials  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Add Project Material","description":"Capture general project material from the portal.","operationId":"add_project_material_portal_materials__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMaterialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Project Material Portal Materials  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/retraction-preview":{"get":{"tags":["portal"],"summary":"Get Material Retraction Preview","description":"Exactly what removing this upload would take away, before she decides.\n\nRead-only. Nothing is claimed, frozen or deleted here — the dialog renders\nthis, the author reads it, and only a POST to ``/retract`` starts anything.","operationId":"get_material_retraction_preview_portal_materials__project_id___material_id__retraction_preview_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaterialRetractionPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/retract":{"post":{"tags":["portal"],"summary":"Retract Project Material","description":"Remove one upload and everything we built from it.\n\nPOST, not DELETE, deliberately. This call REQUIRES a body — the typed word\nand the acknowledgement are the two gates — and a body on DELETE is\noptional in HTTP: proxies, some clients and some gateways strip it. A\nstripped body would arrive as a confusing 422 today and, the day anyone\nrelaxed the gates, as an unconfirmed destructive call. The verb is worth\nless than the confirmation.\n\nReturns as soon as the job is on the ledger. The removal itself runs in a\nworker (it deletes chapters, vectors, Docs and objects in a fixed order),\nand the author gets an email receipt when it finishes.","operationId":"retract_project_material_portal_materials__project_id___material_id__retract_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetractMaterialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetractMaterialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/confirm":{"post":{"tags":["portal"],"summary":"Confirm Project Material Routing","description":"Confirm the exact chapter for one held material owned by this project.","operationId":"confirm_project_material_routing_portal_materials__project_id___material_id__confirm_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmMaterialRoutingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Project Material Routing Portal Materials  Project Id   Material Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/caption":{"patch":{"tags":["portal"],"summary":"Set Project Material Caption","description":"Her caption for one of her pictures (GH #14387 B). Hers always prints over ours.\n\n403 for a foreign token, 404 for a material that is not this project's picture (the\nscoped read cannot see another tenant's row), 404 while the switch is off. The plan\nsync carries it into the book in a Celery task.","operationId":"set_project_material_caption_portal_materials__project_id___material_id__caption_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPhotoCaptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalMaterialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/photo-section/fill":{"post":{"tags":["portal"],"summary":"Fill Photo Section","description":"Every picture of hers with no chapter goes in the photo section, in one tap (GH #14387 A).\n\n403 for a foreign token; 404 while the switch is off. Returns how many went in and how\nmany did not fit.","operationId":"fill_photo_section_portal_materials__project_id__photo_section_fill_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fill Photo Section Portal Materials  Project Id  Photo Section Fill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/photo-section":{"patch":{"tags":["portal"],"summary":"Set Material Photo Section","description":"Put one of her pictures in the photo section, or take it out (GH #14387 A).\n\n403 for a foreign token, 404 for a material that is not this book's picture (the scoped\nread cannot see another tenant's row) or while the switch is off.","operationId":"set_material_photo_section_portal_materials__project_id___material_id__photo_section_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoSectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalMaterialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/photo-section/bulk":{"post":{"tags":["portal"],"summary":"Set Photo Section Bulk","description":"Several of her pictures at once (GH #14387 B): into the photo section or onto a\npage, or out. 403 for a foreign token, 404 while off. A picture that is not this\nbook's (the scoped read cannot see another tenant's row) is skipped and counted.","operationId":"set_photo_section_bulk_portal_materials__project_id__photo_section_bulk_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoSectionBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Photo Section Bulk Portal Materials  Project Id  Photo Section Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/photo-section/title":{"put":{"tags":["portal"],"summary":"Set Photo Section Title","description":"The photo section's title she chooses (GH #14387 B); empty = \"Photographs\".","operationId":"set_photo_section_title_portal_materials__project_id__photo_section_title_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoSectionTitleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Photo Section Title Portal Materials  Project Id  Photo Section Title Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/chapter":{"patch":{"tags":["portal"],"summary":"Change Project Material Chapter","description":"Move one received, still-unused material to the chapter the author picked.\n\n403 for a foreign token, 404 for a material that is not in this project\n(the scoped read cannot see another tenant's row), 409 with an\nauthor-readable sentence when the material's state does not allow a move\n(already written into a chapter, with the writer, removed, waiting on the\nquestion card). On success it re-queues the material into that chapter's\nbatch and closes any open uncertain_chapter_routing ticket for it.","operationId":"change_project_material_chapter_portal_materials__project_id___material_id__chapter_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeMaterialChapterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalMaterialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/rights-decision":{"post":{"tags":["portal"],"summary":"Decide Material Rights","description":"The author's copyright/ownership call on one upload (Mike, 2026-09-24).\n\nInclude / background only / quote keep the upload in use; leave it out and\ndescribe it in words take it out of the book through the same exclusion an\nemailed answer uses. 403 for a foreign token, 404 for a material that is not\nin this project or carries no question, 409 when the upload changed.","operationId":"decide_material_rights_portal_materials__project_id___material_id__rights_decision_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalMaterialRightsDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Material Rights Portal Materials  Project Id   Material Id  Rights Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/collision-answer":{"post":{"tags":["portal"],"summary":"Answer Manuscript Collision Route","description":"Record her Replace / Add after answer for a corrected manuscript (GH #13511).","operationId":"answer_manuscript_collision_route_portal_materials__project_id___material_id__collision_answer_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManuscriptCollisionAnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Manuscript Collision Route Portal Materials  Project Id   Material Id  Collision Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/confirm-split":{"post":{"tags":["portal"],"summary":"Confirm Manuscript Split Route","description":"Apply the author's answer to the chapter list we found in her manuscript.\n\nUntil she answers, nothing is created from the file. ``confirm`` starts the\nimport of exactly the boundaries she was shown; ``different_count`` records\nher own number and asks again; ``reference_only`` keeps the file as\nbackground and never builds a chapter from it.","operationId":"confirm_manuscript_split_route_portal_materials__project_id___material_id__confirm_split_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmManuscriptSplitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Manuscript Split Route Portal Materials  Project Id   Material Id  Confirm Split Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/url":{"post":{"tags":["portal"],"summary":"Add Project Url Material","description":"Capture a URL as project material and enqueue extraction.","operationId":"add_project_url_material_portal_materials__project_id__url_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUrlMaterialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Project Url Material Portal Materials  Project Id  Url Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/upload":{"post":{"tags":["portal"],"summary":"Upload Project Material","description":"Upload project material from the portal.\n\nThe usage intent is the author's choice when she made one; \"Let Silas\ndecide\" (``\"auto\"`` or blank) infers it from the file type. The portal\nsends a multi-file batch one file at a time through this route, so the\nlimit is per project and sized for a 300-photo batch (2026-10-19).","operationId":"upload_project_material_portal_materials__project_id__upload_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_project_material_portal_materials__project_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Project Material Portal Materials  Project Id  Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/freebie-sets":{"post":{"tags":["portal"],"summary":"Create Freebie Set Endpoint","description":"Group uploaded materials into a downloadable freebie/lead-magnet set.","operationId":"create_freebie_set_endpoint_portal_materials__project_id__freebie_sets_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreebieSetCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreebieSetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal"],"summary":"List Freebie Sets Endpoint","description":"List a project's freebie sets with presigned download + QR URLs.","operationId":"list_freebie_sets_endpoint_portal_materials__project_id__freebie_sets_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreebieSetResponse"},"title":"Response List Freebie Sets Endpoint Portal Materials  Project Id  Freebie Sets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/freebie-sets/{set_id}":{"patch":{"tags":["portal"],"summary":"Update Freebie Set Endpoint","description":"Update a freebie set; re-package if its contents or format changed.","operationId":"update_freebie_set_endpoint_portal_materials__project_id__freebie_sets__set_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"set_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Set Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreebieSetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreebieSetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/materials":{"post":{"tags":["portal"],"summary":"Add Chapter Material","description":"Capture chapter material without immediately triggering revision.","operationId":"add_chapter_material_portal_chapters__project_id___chapter_id__materials_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMaterialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Chapter Material Portal Chapters  Project Id   Chapter Id  Materials Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/ideas":{"get":{"tags":["portal"],"summary":"List Portal Chapter Ideas","description":"The author's saved ideas, by chapter number (\"Your ideas for this chapter\").","operationId":"list_portal_chapter_ideas_portal_chapters__project_id__ideas_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Portal Chapter Ideas Portal Chapters  Project Id  Ideas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/ideas":{"post":{"tags":["portal"],"summary":"Add Portal Chapter Idea","description":"Save an idea for one chapter, planned, drafted or approved (P.W., 10-26).","operationId":"add_portal_chapter_idea_portal_chapters__project_id___chapter_id__ideas_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterIdeaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Portal Chapter Idea Portal Chapters  Project Id   Chapter Id  Ideas Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/done":{"post":{"tags":["portal"],"summary":"Release Chapter Materials","description":"Release a chapter material batch or request verification when fuzzy.","operationId":"release_chapter_materials_portal_chapters__project_id___chapter_id__done_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseMaterialsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Release Chapter Materials Portal Chapters  Project Id   Chapter Id  Done Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/comments/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Comments","description":"Get synced comment log across all project chapters.","operationId":"get_portal_comments_portal_comments__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalCommentResponse"},"title":"Response Get Portal Comments Portal Comments  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/review/{project_id}/complete":{"post":{"tags":["portal"],"summary":"Release Review Queue","description":"Release all currently open review comments into editing.","operationId":"release_review_queue_portal_review__project_id__complete_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Release Review Queue Portal Review  Project Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/review/complete":{"post":{"tags":["portal"],"summary":"Release Chapter Review Queue","description":"Release review comments for one chapter into editing.","operationId":"release_chapter_review_queue_portal_chapters__project_id___chapter_id__review_complete_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Release Chapter Review Queue Portal Chapters  Project Id   Chapter Id  Review Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Portal Chapter","description":"Approve a clean chapter draft from the author portal.\n\n``expected_draft_version`` (review F8): the draft the page showed. A newer draft\nis refused with \"this chapter changed, please read it again\" instead of being\napproved unseen. An older page that sends no body approves as before.","operationId":"approve_portal_chapter_portal_chapters__project_id___chapter_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApproveChapterRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Portal Chapter Portal Chapters  Project Id   Chapter Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/reopen":{"post":{"tags":["portal"],"summary":"Reopen Portal Chapter","description":"The author reopens her own approved chapter (wave AJ telemetry-1, chapters-4).\n\nBacks the reader's \"Reopen this chapter\" button and the Undo after Approve.\nSame service as the admin route and the Silas tool, so a published, frozen\nor final-approved book is always refused. A chapter of another book is 404.","operationId":"reopen_portal_chapter_portal_chapters__project_id___chapter_id__reopen_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reopen Portal Chapter Portal Chapters  Project Id   Chapter Id  Reopen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/evidence":{"get":{"tags":["portal"],"summary":"Read Chapter Evidence","description":"Source snapshots for the current draft; ownership precedes every read.","operationId":"read_chapter_evidence_portal_chapters__project_id___chapter_id__evidence_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Chapter Evidence Portal Chapters  Project Id   Chapter Id  Evidence Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/word":{"get":{"tags":["portal"],"summary":"Download Chapter Word","description":"The chapter as an editable .docx with Track Changes on (2026-11-02).\n\nOwnership precedes every read; a chapter with no draft, or one from\nanother project, 404s. The file carries the version marker, so her marked-up\ncopy uploaded back is applied as her edit (``chapter_word_copies``).","operationId":"download_chapter_word_portal_chapters__project_id___chapter_id__word_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/outlines/{project_id}/word":{"get":{"tags":["portal"],"summary":"Download Outline Word","description":"Download the current book plan when a legacy ledger row has no artifact.","operationId":"download_outline_word_portal_outlines__project_id__word_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/read":{"get":{"tags":["portal"],"summary":"Read Portal Chapter","description":"Return one chapter's current draft for the in-portal reader.\n\nOwnership-checked (Pattern B — application code is the boundary): a foreign\ntoken 403s; a chapter that is not in this project 404s.","operationId":"read_portal_chapter_portal_chapters__project_id___chapter_id__read_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/editing":{"post":{"tags":["portal"],"summary":"Mark Portal Chapter Editing","description":"The author has unsaved typing in this chapter: hold automatic rewrites.\n\nThe editor calls this about once a minute while it holds recent unsaved\nchanges. See ``app.services.chapter_editing_lease``.","operationId":"mark_portal_chapter_editing_portal_chapters__project_id___chapter_id__editing_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal"],"summary":"Clear Portal Chapter Editing","description":"The author saved or closed the editor: automatic rewrites may run.","operationId":"clear_portal_chapter_editing_portal_chapters__project_id___chapter_id__editing_delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/draft":{"put":{"tags":["portal"],"summary":"Put Portal Chapter Draft","description":"Store an author's direct edit of a chapter draft (editor edit mode).\n\nThe author's serialized light-markdown becomes the new draft. Ownership is\nthe security boundary (Pattern B): a foreign token 403s, a chapter outside\nthe project 404s. The write holds a transient CAS-claim on the chapter's\nexclusive ``under_review`` state so it cannot interleave with an AI revision\n(or a second edit); the claim is released back to a reviewable state in a\nfinally block so a mid-write error never strands the chapter.","operationId":"put_portal_chapter_draft_portal_chapters__project_id___chapter_id__draft_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutChapterDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/revisions":{"get":{"tags":["portal"],"summary":"List Portal Chapter Revisions","description":"List the non-destructive draft snapshots for a chapter (metadata only).","operationId":"list_portal_chapter_revisions_portal_chapters__project_id___chapter_id__revisions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterRevisionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/revisions/{version}":{"get":{"tags":["portal"],"summary":"Get Portal Chapter Revision","description":"Return one draft snapshot with its full text.","operationId":"get_portal_chapter_revision_portal_chapters__project_id___chapter_id__revisions__version__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","maximum":1000000,"minimum":1,"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterRevisionDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/revisions/{version}/restore":{"post":{"tags":["portal"],"summary":"Restore Portal Chapter Revision","description":"\"Use this version\": an earlier saved version becomes the draft again (chapters-5).\n\na7248538 (10-20): her own 6,350-word edit was rewritten to 3,475 words and\nher \"all my edits are gone\" replies became 4 tickets for a person. The\nrestore is one more saved version (source ``manual``), never a deletion:\nevery version stays in the history. It goes through the same claim and\nfenced write as her own edits, fenced on the version she was reading.","operationId":"restore_portal_chapter_revision_portal_chapters__project_id___chapter_id__revisions__version__restore_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","maximum":1000000,"minimum":1,"title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreChapterRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/comments":{"get":{"tags":["portal"],"summary":"List Portal Chapter Comments","description":"List the inline anchored comments for a chapter.\n\nReturns at most the newest 200 comments (``list_comments`` default limit) so\nthe payload stays bounded.","operationId":"list_portal_chapter_comments_portal_chapters__project_id___chapter_id__comments_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterCommentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Submit Portal Chapter Comments","description":"Submit a batch of inline anchored comments as one bounded revision round.\n\nMirrors ``submit_portal_chapter_feedback``: the batch becomes ONE pending\n``author_feedback_log`` entry (channel ``portal_inline``), the chapter moves\ninto ``under_review``, and the same revision + distillation tasks run. The\nwhole batch counts as ONE revision against the shared 2-auto-revision cap.","operationId":"submit_portal_chapter_comments_portal_chapters__project_id___chapter_id__comments_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitInlineCommentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitInlineCommentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/flags/{flag_id}/confirm":{"post":{"tags":["portal"],"summary":"Confirm Portal Chapter Flag","description":"The author says a flagged detail is right as written (\"This is correct\").\n\nNothing about the chapter changes and no revision round is spent: the flag\nis marked answered so the reader shows it as done and the next gate run\ndoes not ask again. \"Fix it\" and \"Remove this\" do NOT come through here —\nthey are ordinary inline notes carrying ``flag_id`` on the existing submit\nroute, so they reach the reviser through the one revision pipeline.","operationId":"confirm_portal_chapter_flag_portal_chapters__project_id___chapter_id__flags__flag_id__confirm_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InlineCommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/flags/{flag_id}/system-change":{"post":{"tags":["portal"],"summary":"Answer System Change Card","description":"Her answer on a \"We changed this\" card, on an approved chapter too (GH #14387 round 3).\n\n\"Looks right\" records it. \"Put it back\" restores the word she said in that one\nsentence through the fenced literal edit path (no model); the chapter keeps its state.","operationId":"answer_system_change_card_portal_chapters__project_id___chapter_id__flags__flag_id__system_change_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"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/SystemChangeAnswerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InlineCommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/flags/{flag_id}/dropped-offer":{"post":{"tags":["portal"],"summary":"Answer Dropped Offer Card","description":"Her answer on the \"free extras\" card, on an approved chapter too (GH #14096 item 4).\n\nRecorded here; code applies it literally to every chapter the card lists in\na task right after (no reviser, no model writing text). The chapter stays\napproved. One path only: this card never goes through the notes queue.","operationId":"answer_dropped_offer_card_portal_chapters__project_id___chapter_id__flags__flag_id__dropped_offer_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"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/DroppedOfferAnswerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InlineCommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/flags/{flag_id}/dropped-offer/preview":{"get":{"tags":["portal"],"summary":"Preview Dropped Offer Card","description":"Each listed chapter as it reads now and exactly as each answer would make it read (the same code that\napplies it, on today's text). \"Fix it\" is shown only for an address that passes the public-address check.","operationId":"preview_dropped_offer_card_portal_chapters__project_id___chapter_id__flags__flag_id__dropped_offer_preview_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}},{"name":"address","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DroppedOfferPreviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/flags/{flag_id}/dropped-offer/undo":{"post":{"tags":["portal"],"summary":"Undo Dropped Offer Card","description":"Her chapters back as they were before her answer, and the card open again (literal, no model).","operationId":"undo_dropped_offer_card_portal_chapters__project_id___chapter_id__flags__flag_id__dropped_offer_undo_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InlineCommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/fact-check":{"get":{"tags":["portal"],"summary":"Get Portal Chapter Fact Check","description":"The deck's saved (not yet sent) answers for this chapter.","operationId":"get_portal_chapter_fact_check_portal_chapters__project_id___chapter_id__fact_check_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactCheckStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/fact-check/answers/{flag_id}":{"put":{"tags":["portal"],"summary":"Put Portal Chapter Fact Answer","description":"Save one answer. Nothing in the chapter changes until she submits.","operationId":"put_portal_chapter_fact_answer_portal_chapters__project_id___chapter_id__fact_check_answers__flag_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"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/FactAnswerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactAnswerOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal"],"summary":"Delete Portal Chapter Fact Answer","description":"Withdraw a waiting answer (Back / change my mind).","operationId":"delete_portal_chapter_fact_answer_portal_chapters__project_id___chapter_id__fact_check_answers__flag_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/fact-check/submit":{"post":{"tags":["portal"],"summary":"Submit Portal Chapter Fact Check","description":"Apply every waiting answer (plus queued inline notes) in one go.\n\nyes -> answered \"correct\"; edit -> her exact words in ONE fenced draft\nwrite; tell/remove (+ her notes) -> one inline-notes revision batch.","operationId":"submit_portal_chapter_fact_check_portal_chapters__project_id___chapter_id__fact_check_submit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactCheckSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactCheckSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/fact-check/events":{"post":{"tags":["portal"],"summary":"Post Portal Chapter Fact Check Event","description":"Deck metrics: opened / closed (completion and seconds-per-fact).","operationId":"post_portal_chapter_fact_check_event_portal_chapters__project_id___chapter_id__fact_check_events_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactCheckEventIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/feedback":{"post":{"tags":["portal"],"summary":"Submit Portal Chapter Feedback","description":"Record structured \"not quite\" chapter feedback and trigger a revision.\n\nIntegrates with the chapter state machine the same way \"release comments\"\ndoes: the chapter enters ``under_review`` (the \"being revised\" state) and a\nbounded auto-revision is enqueued. Every submission also enqueues style\ndistillation so the feedback improves all future chapters. Ownership-checked.","operationId":"submit_portal_chapter_feedback_portal_chapters__project_id___chapter_id__feedback_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Portal Chapter Feedback Portal Chapters  Project Id   Chapter Id  Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reorganization/{project_id}":{"get":{"tags":["portal"],"summary":"Get Reorganization","description":"Fetch pending reorganization plan for client review.","operationId":"get_reorganization_portal_reorganization__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Reorganization Portal Reorganization  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reorganization/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Reorganization","description":"Client approves reorganization plan — triggers chapter changes.","operationId":"approve_reorganization_portal_reorganization__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveReorganizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Reorganization Portal Reorganization  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/living-people/{project_id}/acknowledgement":{"get":{"tags":["portal"],"summary":"Get Living People Acknowledgement","description":"The terms to display, and whether this author has already accepted them.\n\n``required`` is what the portal keys off: it is False for every project\nthat does not have the ``living_people_review`` entitlement, and False when\nthe feature is off, so no non-memoir author is ever asked.","operationId":"get_living_people_acknowledgement_portal_living_people__project_id__acknowledgement_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Living People Acknowledgement Portal Living People  Project Id  Acknowledgement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Accept Living People Acknowledgement","description":"Record the author's acknowledgement. This is what clears the band-2 gate.\n\nA version/digest mismatch is a 409, not a 500: the guard REFUSING is the\nguard working (the form was stale), and the client's remedy is to reload\nand read the current terms.","operationId":"accept_living_people_acknowledgement_portal_living_people__project_id__acknowledgement_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivingPeopleAcknowledgementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Living People Acknowledgement Portal Living People  Project Id  Acknowledgement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/deliverables/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Deliverables","description":"List deliverables for the portal delivery center.","operationId":"get_portal_deliverables_portal_deliverables__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalDeliverableWithAging"},"title":"Response Get Portal Deliverables Portal Deliverables  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/delivery-summary/{project_id}":{"get":{"tags":["portal"],"summary":"Get Delivery Summary","description":"Delivery center summary for the portal — overall status and guidance.","operationId":"get_delivery_summary_portal_delivery_summary__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Delivery Summary Portal Delivery Summary  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/projects/{project_id}/disclosures":{"get":{"tags":["portal"],"summary":"Get Portal Disclosures","description":"The book's suggested front-matter disclosures and the author's choices.","operationId":"get_portal_disclosures_portal_projects__project_id__disclosures_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Disclosures Portal Projects  Project Id  Disclosures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/projects/{project_id}/disclosures/{disclosure_key}":{"put":{"tags":["portal"],"summary":"Put Portal Disclosure","description":"Keep, edit, remove or restore one disclosure; the next compile uses it.","operationId":"put_portal_disclosure_portal_projects__project_id__disclosures__disclosure_key__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"disclosure_key","in":"path","required":true,"schema":{"type":"string","title":"Disclosure Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisclosureDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Portal Disclosure Portal Projects  Project Id  Disclosures  Disclosure Key  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/final-book-approval/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Final Book Approval","description":"Return the author final compiled-book approval gate.","operationId":"get_portal_final_book_approval_portal_final_book_approval__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Final Book Approval Portal Final Book Approval  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/final-book-approval/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Portal Final Book","description":"Author approves the final compiled book and releases post-book fulfillment.","operationId":"approve_portal_final_book_portal_final_book_approval__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FinalBookApprovalRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Portal Final Book Portal Final Book Approval  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/final-book-approval/{project_id}/request-revision":{"post":{"tags":["portal"],"summary":"Request Portal Final Book Revision","description":"Author requests final compiled-book revisions.","operationId":"request_portal_final_book_revision_portal_final_book_approval__project_id__request_revision_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalBookRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Portal Final Book Revision Portal Final Book Approval  Project Id  Request Revision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/deliverables/{project_id}/{deliverable_id}/review":{"get":{"tags":["portal"],"summary":"Review Portal Deliverable","description":"Return a readable generated-asset review payload for author approval.","operationId":"review_portal_deliverable_portal_deliverables__project_id___deliverable_id__review_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Portal Deliverable Portal Deliverables  Project Id   Deliverable Id  Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/deliverables/{project_id}/{deliverable_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Portal Deliverable","description":"Author approves an Ops-reviewed generated asset for VA implementation.","operationId":"approve_portal_deliverable_portal_deliverables__project_id___deliverable_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PortalAssetApprovalRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Portal Deliverable Portal Deliverables  Project Id   Deliverable Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/deliverables/{project_id}/{deliverable_id}/request-revision":{"post":{"tags":["portal"],"summary":"Request Portal Deliverable Revision","description":"Author requests revisions to an Ops-reviewed generated asset.\n\nA note on a launch page that is actually a RETITLE (\"Title: ...\") is routed\nto the title-change flow (GH #1861): the author's own words become the book\ntitle through the gate-respecting cascade and the page is regenerated\nagainst it. A note that ASKS us something is routed to a human as an\n``author_question`` ops item (GH #1888) — before that, this box fed a rewrite\npipeline and only a rewrite pipeline, so a question typed into it was marked\nexecuted and discarded.\n\nBoth readings need an agent call, so they go to a Celery task — never this\nhandler. All this handler does is decide, deterministically and for free,\nwhether the note is worth classifying.","operationId":"request_portal_deliverable_revision_portal_deliverables__project_id___deliverable_id__request_revision_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalAssetRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Portal Deliverable Revision Portal Deliverables  Project Id   Deliverable Id  Request Revision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/deliverables/{project_id}/{deliverable_id}/retained/{version_id}":{"get":{"tags":["portal"],"summary":"Download Retained Deliverable","description":"Download an immutable, previously approved copy during regeneration.","operationId":"download_retained_deliverable_portal_deliverables__project_id___deliverable_id__retained__version_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Retained Deliverable Portal Deliverables  Project Id   Deliverable Id  Retained  Version Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/deliverables/{project_id}/{deliverable_id}/download":{"get":{"tags":["portal"],"summary":"Download Deliverable","description":"Generate a signed download URL for a deliverable artifact.","operationId":"download_deliverable_portal_deliverables__project_id___deliverable_id__download_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Deliverable Portal Deliverables  Project Id   Deliverable Id  Download Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book/{project_id}/interior-pdf":{"get":{"tags":["portal"],"summary":"Get Interior Pdf","description":"Return a signed URL for the book's typeset interior PDF (read-only preview).\n\nBacks the \"See it as a book\" viewer: the author flips through the real\ncompiled print interior. Additive and read-only, never blocks approve or\nfeedback. Ownership-checked (Pattern B): a foreign token 403s; a project\nwith no laid-out interior yet 404s with a warm, author-facing message.","operationId":"get_interior_pdf_portal_book__project_id__interior_pdf_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Interior Pdf Portal Book  Project Id  Interior Pdf Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book/{project_id}/print":{"get":{"tags":["portal"],"summary":"Get Book Print","description":"The whole book as the author prints it at home (DIY and Authority).\n\nEvery chapter with readable draft text, in chapter order, cleaned exactly\nas the reader cleans it, with its finished pictures. Ownership-checked\n(Pattern B): a foreign token 403s and every read below is scoped to the\ntoken's own project. Chapters without text are left out, so a book with\nnothing drafted returns an empty list (the page shows an empty state).\n\n``chapter_id`` narrows the answer to one chapter (the single-chapter print\npage reads the book title and byline from here). A chapter id that is not\nin this book 404s.","operationId":"get_book_print_portal_book__project_id__print_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookPrintResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/availability":{"get":{"tags":["portal"],"summary":"Get Interview Availability","description":"Return the narrow, canonical gate for general self-serve interviews.\n\nThis is intentionally separate from the upcoming-call list: navigation and\npost-cancellation UI need to know whether a *new general* call may be\nadvertised even while an existing appointment is still present. Targeted\nplanning/final-review actions remain driven by ``next_action`` and their\nexplicit interview types.","operationId":"get_interview_availability_portal_interviews__project_id__availability_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalInterviewAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/upcoming":{"get":{"tags":["portal"],"summary":"Get Upcoming Interviews","description":"Get upcoming scheduled interviews for the portal.","operationId":"get_upcoming_interviews_portal_interviews__project_id__upcoming_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalInterviewResponse"},"title":"Response Get Upcoming Interviews Portal Interviews  Project Id  Upcoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/fiction-calls":{"get":{"tags":["portal"],"summary":"Get Fiction Story Calls","description":"A fiction book's four story partner calls by name, and which one is next (2026-12-03).\n\nBook the next one with ``POST /interviews/{project_id}/schedule`` (the type is\nserver-derived: a fiction book only books its story call) and move a booked one with\n``POST /interviews/{project_id}/{interview_id}/reschedule``. ``fiction_book`` is\nFalse for every other book; ``open`` False carries a plain ``message``.","operationId":"get_fiction_story_calls_portal_interviews__project_id__fiction_calls_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Fiction Story Calls Portal Interviews  Project Id  Fiction Calls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/{interview_id}/confirm":{"post":{"tags":["portal"],"summary":"Confirm Interview Endpoint","description":"Confirm a scheduled interview from the portal.","operationId":"confirm_interview_endpoint_portal_interviews__project_id___interview_id__confirm_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Interview Endpoint Portal Interviews  Project Id   Interview Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/{interview_id}/reschedule":{"post":{"tags":["portal"],"summary":"Reschedule Interview Endpoint","description":"Reschedule a scheduled interview from the portal.","operationId":"reschedule_interview_endpoint_portal_interviews__project_id___interview_id__reschedule_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRescheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reschedule Interview Endpoint Portal Interviews  Project Id   Interview Id  Reschedule Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/{interview_id}/cancel":{"post":{"tags":["portal"],"summary":"Cancel Interview Endpoint","description":"Cancel a scheduled interview from the portal.","operationId":"cancel_interview_endpoint_portal_interviews__project_id___interview_id__cancel_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewCancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Interview Endpoint Portal Interviews  Project Id   Interview Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/detail/{interview_id}":{"get":{"tags":["portal"],"summary":"Get Interview Detail","description":"Return a single interview's details for the portal.","operationId":"get_interview_detail_portal_interviews__project_id__detail__interview_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Interview Detail Portal Interviews  Project Id  Detail  Interview Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-sample/{project_id}":{"get":{"tags":["portal"],"summary":"Get Voice Sample Endpoint","description":"Return the author's early voice-sample passage + their current reaction.\n\nOwnership-checked (Pattern B): a foreign project_id 403s. Reads the latest\n``voice_sample`` artifact for THIS project only.","operationId":"get_voice_sample_endpoint_portal_voice_sample__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSampleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-sample/{project_id}/feedback":{"post":{"tags":["portal"],"summary":"Voice Sample Feedback Endpoint","description":"Record the author's reaction to their voice sample.\n\nOn a negative reaction, the note is stored where the Voice DNA pipeline can\nsee it (the voice_dna row's anti_patterns) and ops gets visibility so the\nvoice can be tuned before full chapters are written. Ownership-checked: a\nforeign project_id 403s (Pattern B — application code is the boundary).","operationId":"voice_sample_feedback_endpoint_portal_voice_sample__project_id__feedback_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSampleFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSampleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/call-now":{"post":{"tags":["portal"],"summary":"Call Me Now Endpoint","description":"\"Silas, call me now\": the author presses it, Silas calls in a few minutes.\n\nSilas-first onboarding (Mike, 2026-11-08). The author's own press is the\nconsent (Silas never calls unprompted). Books through the EXISTING quick\ncallback path, so hours, cadence and the marketing gate all still apply,\nand an existing future booking is moved up rather than doubled.","operationId":"call_me_now_endpoint_portal_interviews__project_id__call_now_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Call Me Now Endpoint Portal Interviews  Project Id  Call Now Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/schedule":{"post":{"tags":["portal"],"summary":"Schedule Interview Endpoint","description":"Schedule a new interview from the portal.","operationId":"schedule_interview_endpoint_portal_interviews__project_id__schedule_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Schedule Interview Endpoint Portal Interviews  Project Id  Schedule Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/history":{"get":{"tags":["portal"],"summary":"Get Interview History","description":"Get completed interview history for the portal.","operationId":"get_interview_history_portal_interviews__project_id__history_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalInterviewHistoryEntry"},"title":"Response Get Interview History Portal Interviews  Project Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/recap-follow-ups/{follow_up_id}/complete":{"post":{"tags":["portal"],"summary":"Complete Interview Recap Follow Up","description":"Explicitly complete one exact-current recap checklist.","operationId":"complete_interview_recap_follow_up_portal_interviews__project_id__recap_follow_ups__follow_up_id__complete_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"follow_up_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Follow Up Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteInterviewRecapFollowUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteInterviewRecapFollowUpResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/timeline/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Timeline","description":"Return a unified activity timeline for the author portal.","operationId":"get_portal_timeline_portal_timeline__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"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/PortalTimelineEntry"},"title":"Response Get Portal Timeline Portal Timeline  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing-metadata/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Publishing Metadata","description":"Get publishing metadata for the portal.","operationId":"get_portal_publishing_metadata_portal_publishing_metadata__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Publishing Metadata Portal Publishing Metadata  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Update Portal Publishing Metadata","description":"Update publishing metadata from the portal.\n\nIf metadata was previously approved, editing resets status to 'draft'.","operationId":"update_portal_publishing_metadata_portal_publishing_metadata__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishingMetadataUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Portal Publishing Metadata Portal Publishing Metadata  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/timezone/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Timezone","description":"Return the author's stored timezone and the timezone picker options.","operationId":"get_portal_timezone_portal_timezone__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Timezone Portal Timezone  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Set Portal Timezone","description":"Set the author's timezone. Accepts IANA timezone string.\n\nFrontend should auto-detect via Intl.DateTimeFormat().resolvedOptions().timeZone\nand display it for confirmation. If detection fails, show the picker.","operationId":"set_portal_timezone_portal_timezone__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTimezoneRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Portal Timezone Portal Timezone  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/transcription-terms/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Transcription Terms","description":"Return the author's custom vocabulary / names & terms for voice calls.","operationId":"get_portal_transcription_terms_portal_transcription_terms__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Transcription Terms Portal Transcription Terms  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Set Portal Transcription Terms","description":"Replace the author's custom vocabulary used to bias the voice transcriber.\n\nThese names/terms (proper nouns, brand terms, unusual spellings) are merged\ninto the DeepGram transcriber keywords when building the interview assistant\nso they transcribe correctly. The request model bounds + de-dupes the list.","operationId":"set_portal_transcription_terms_portal_transcription_terms__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTranscriptionTermsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Portal Transcription Terms Portal Transcription Terms  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/term-flags/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Term Flags","description":"Return this author's open suspected-garbled-term flags to confirm.\n\nPR 3.1 detects these (``app/services/garbled_terms.py``) and files them on\n``transcript_term_flags``; this is the author-facing surface for them\n(\"Spellings to confirm\"). Shows both ``pending`` and ``asked`` flags,\noldest first, so the \"Confirm Name Spellings\" link in the PR 3.2 email\nbridge always lands on a page that still has something to act on.","operationId":"get_portal_term_flags_portal_term_flags__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Term Flags Portal Term Flags  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/term-flags/{project_id}/{flag_id}":{"post":{"tags":["portal"],"summary":"Resolve Portal Term Flag","description":"Author confirms or rejects one suspected garbled transcription term.\n\nConfirm: validates the spelling with the SAME rules as the transcription-\nterms editor (``normalize_term`` / ``sounds_like_rejection``), then\nappends it to ``projects.transcription_terms`` and resolves the flag via\nthe shared, race-safe :func:`apply_confirmed_spelling` (case-insensitive\ndedupe, 100-term bound, optimistic-concurrency CAS so two confirms\nsubmitted at once can never drop each other's append). Reject is\npermanent — the flag moves to ``rejected`` and ``upsert_flag`` (PR 3.1)\nnever re-opens a resolved term. Either action also closes out the PR 3.2\nemail bridge's outstanding question once every flag it bundled is\nresolved, so the author never gets a nudge for something they already\ndid in the portal.","operationId":"resolve_portal_term_flag_portal_term_flags__project_id___flag_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"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/ConfirmTermFlagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Portal Term Flag Portal Term Flags  Project Id   Flag Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/profile/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Profile","description":"Return the author's full profile view (identity, contact, book).","operationId":"get_portal_profile_portal_profile__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Profile Portal Profile  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Set Portal Profile","description":"Apply a partial author-profile update (see services.portal_profile).\n\nEverything an author can correct about themselves and their book: display\nname, name-in-print byline, voice-only spoken name, phone/timezone,\nbio/links, and book title/subtitle — each synced to the rows the\ngenerators actually read. Email is not editable here — it is the identity\nkey across billing/CRM/auth, so changes go through support.","operationId":"set_portal_profile_portal_profile__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPortalProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Portal Profile Portal Profile  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/prelaunch-intake/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Prelaunch Intake","description":"Return the author's pre-launch questionnaire answers + page status.\n\nNon-blocking upgrade surface: the public page generates with defaults, this\nform lets the author sharpen it. Also surfaces the live public page URL and\nwhether the Chapter-1 sample has been rendered yet.","operationId":"get_portal_prelaunch_intake_portal_prelaunch_intake__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Prelaunch Intake Portal Prelaunch Intake  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Set Portal Prelaunch Intake","description":"Save the author's pre-launch questionnaire answers.\n\nPersists the launch window + intake JSONB (merge-write), then fires two\nguarded, non-blocking side effects: (a) re-generate the page copy so the new\nhighlights/launch-window land, and (b) if the sample-chapter opt-in is on and\nChapter 1 already has a usable draft, render the sample PDF now.","operationId":"set_portal_prelaunch_intake_portal_prelaunch_intake__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrelaunchIntakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Portal Prelaunch Intake Portal Prelaunch Intake  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing-metadata/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Portal Publishing Metadata","description":"Author approves publishing metadata — locks it for cover/publishing.\n\n``expected_version`` (optional) is the row version the author is looking\nat; if the details changed since, approval is refused with 409 so she\nnever approves values she has not seen. The approval itself (preflight,\nlock, cover/prelaunch catch-up, receipt, handoffs) lives in\n``publishing_metadata_author_approval`` so a spoken approval on a staff\ncall runs the exact same steps.","operationId":"approve_portal_publishing_metadata_portal_publishing_metadata__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"expected_version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000000,"minimum":1},{"type":"null"}],"title":"Expected Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Portal Publishing Metadata Portal Publishing Metadata  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing-metadata/{project_id}/request-revision":{"post":{"tags":["portal"],"summary":"Request Publishing Metadata Revision","description":"Author requests revision of publishing metadata with notes.","operationId":"request_publishing_metadata_revision_portal_publishing_metadata__project_id__request_revision_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishingMetadataRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Publishing Metadata Revision Portal Publishing Metadata  Project Id  Request Revision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}":{"get":{"tags":["portal"],"summary":"Get Front Back Matter","description":"Return all front/back matter sections for a project.","operationId":"get_front_back_matter_portal_front_back_matter__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Front Back Matter Portal Front Back Matter  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}/{matter_type}":{"put":{"tags":["portal"],"summary":"Update Front Back Matter","description":"Update content for a front/back matter section.","operationId":"update_front_back_matter_portal_front_back_matter__project_id___matter_type__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"matter_type","in":"path","required":true,"schema":{"type":"string","title":"Matter Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFrontBackMatterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Front Back Matter Portal Front Back Matter  Project Id   Matter Type  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}/{matter_type}/remove-picture":{"post":{"tags":["portal"],"summary":"Remove Front Back Matter Picture","description":"Her \"Remove this picture\" on her own page (GH #15244): the picture leaves the page.","operationId":"remove_front_back_matter_picture_portal_front_back_matter__project_id___matter_type__remove_picture_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"matter_type","in":"path","required":true,"schema":{"type":"string","title":"Matter Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Front Back Matter Picture Portal Front Back Matter  Project Id   Matter Type  Remove Picture Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}/{matter_type}/submit":{"post":{"tags":["portal"],"summary":"Submit Front Back Matter","description":"Mark a front/back matter section as submitted.","operationId":"submit_front_back_matter_portal_front_back_matter__project_id___matter_type__submit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"matter_type","in":"path","required":true,"schema":{"type":"string","title":"Matter Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Front Back Matter Portal Front Back Matter  Project Id   Matter Type  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/front-back-matter/{project_id}/{matter_type}/skip":{"post":{"tags":["portal"],"summary":"Skip Front Back Matter","description":"Mark an optional front/back matter section as intentionally omitted.","operationId":"skip_front_back_matter_portal_front_back_matter__project_id___matter_type__skip_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"matter_type","in":"path","required":true,"schema":{"type":"string","title":"Matter Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Skip Front Back Matter Portal Front Back Matter  Project Id   Matter Type  Skip Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/sources/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Sources","description":"Return source citations and research brief status for the portal.","operationId":"get_portal_sources_portal_sources__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Sources Portal Sources  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/reference-images":{"post":{"tags":["portal"],"summary":"Upload Cover Reference Image","description":"Upload a reference cover image to guide a redesign (e.g. prior books).","operationId":"upload_cover_reference_image_portal_covers__project_id__reference_images_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_cover_reference_image_portal_covers__project_id__reference_images_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Cover Reference Image Portal Covers  Project Id  Reference Images Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal"],"summary":"List Cover Reference Images","description":"List a project's reference cover images with presigned URLs.","operationId":"list_cover_reference_images_portal_covers__project_id__reference_images_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Cover Reference Images Portal Covers  Project Id  Reference Images Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal"],"summary":"Delete Cover Reference Image","description":"Remove a reference cover image from the brief.","operationId":"delete_cover_reference_image_portal_covers__project_id__reference_images_delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"r2_key","in":"query","required":true,"schema":{"type":"string","title":"R2 Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Cover Reference Image Portal Covers  Project Id  Reference Images Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}":{"get":{"tags":["portal"],"summary":"Get Cover Review","description":"Return cover review state for the portal — concepts, selection, previews.","operationId":"get_cover_review_portal_covers__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Cover Review Portal Covers  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/select":{"post":{"tags":["portal"],"summary":"Select Cover Concept","description":"Author selects a cover concept as the direction to proceed with.","operationId":"select_cover_concept_portal_covers__project_id__select_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverConceptSelectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Select Cover Concept Portal Covers  Project Id  Select Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/request-changes":{"post":{"tags":["portal"],"summary":"Request Cover Changes","description":"Author requests changes to the current cover direction.","operationId":"request_cover_changes_portal_covers__project_id__request_changes_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Cover Changes Portal Covers  Project Id  Request Changes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/none-of-these":{"post":{"tags":["portal"],"summary":"Covers None Of These","description":"None of the offered covers felt right: start a fresh round from her words.","operationId":"covers_none_of_these_portal_covers__project_id__none_of_these_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverNoneOfTheseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Covers None Of These Portal Covers  Project Id  None Of These Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/finalize-vote-page":{"post":{"tags":["portal"],"summary":"Finalize Cover Vote Page","description":"Author selects up to 8 covers for their public vote page.\n\nTriggers share kit generation (voice-matched social posts, share image,\nSMS text) delivered via email.","operationId":"finalize_cover_vote_page_portal_covers__project_id__finalize_vote_page_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeVotePageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Finalize Cover Vote Page Portal Covers  Project Id  Finalize Vote Page Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Cover","description":"Author gives final approval for the cover — locks it for publishing.","operationId":"approve_cover_portal_covers__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Cover Portal Covers  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/history":{"get":{"tags":["portal"],"summary":"Get Cover History","description":"Return version history for all cover artifacts.","operationId":"get_cover_history_portal_covers__project_id__history_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Cover History Portal Covers  Project Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/kdp-package":{"post":{"tags":["portal"],"summary":"Generate Kdp Export","description":"Queue KDP preparation and return its durable handoff state.","operationId":"generate_kdp_export_portal_publishing__project_id__kdp_package_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Kdp Export Portal Publishing  Project Id  Kdp Package Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal"],"summary":"Get Kdp Package Status","description":"Check KDP package status and download manifest.","operationId":"get_kdp_package_status_portal_publishing__project_id__kdp_package_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Kdp Package Status Portal Publishing  Project Id  Kdp Package Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/audiobook-guide":{"post":{"tags":["portal"],"summary":"Generate Audiobook Guide","description":"Generate the two-track audiobook publishing guide package.\n\nGated on author final book approval (409 via DistributionReadinessError)\nand audiobook access (403 via AudiobookAccessError). Synchronous like the\nKDP package: the guide is text-only and never bundles the audio binaries.","operationId":"generate_audiobook_guide_portal_publishing__project_id__audiobook_guide_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Audiobook Guide Portal Publishing  Project Id  Audiobook Guide Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal"],"summary":"Get Audiobook Guide Status","description":"Check audiobook-guide status and download the bundle (1h presigned).","operationId":"get_audiobook_guide_status_portal_publishing__project_id__audiobook_guide_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audiobook Guide Status Portal Publishing  Project Id  Audiobook Guide Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/audiobook-request":{"post":{"tags":["portal"],"summary":"Request Audiobook","description":"Record \"I'm ready for my audiobook\" and hand it to a human.\n\nEvery tier is narrated by a professional human voice talent (2026-08-10), so\nthis starts no pipeline: it stores a durable request and then alerts Mike to\ntake the production over. Idempotent — a second press returns the first\nrequest rather than producing a second handoff.","operationId":"request_audiobook_portal_publishing__project_id__audiobook_request_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AudiobookRequestCreate"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Audiobook Portal Publishing  Project Id  Audiobook Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal"],"summary":"Get Audiobook Request","description":"Whether this author has already asked for their audiobook.","operationId":"get_audiobook_request_portal_publishing__project_id__audiobook_request_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audiobook Request Portal Publishing  Project Id  Audiobook Request Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/narrators":{"get":{"tags":["portal"],"summary":"Get Audiobook Narrator Team","description":"The narrator team, this author's choice, and whether they can choose now.","operationId":"get_audiobook_narrator_team_portal_audiobook__project_id__narrators_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audiobook Narrator Team Portal Audiobook  Project Id  Narrators Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/narrator":{"put":{"tags":["portal"],"summary":"Choose Audiobook Narrator","description":"Record the author's narrator choice (first choice = the audiobook request).","operationId":"choose_audiobook_narrator_portal_audiobook__project_id__narrator_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookNarratorChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Choose Audiobook Narrator Portal Audiobook  Project Id  Narrator Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/kindle":{"put":{"tags":["portal"],"summary":"Update Audiobook Kindle Live","description":"The author confirming their Kindle book is live on Amazon, with its link.","operationId":"update_audiobook_kindle_live_portal_audiobook__project_id__kindle_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookKindleLiveUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Audiobook Kindle Live Portal Audiobook  Project Id  Kindle Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/cover-feedback":{"put":{"tags":["portal"],"summary":"Request Audiobook Cover Change","description":"The author asking for a change to the square audiobook cover (AI redraw).","operationId":"request_audiobook_cover_change_portal_audiobook__project_id__cover_feedback_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookCoverFeedback"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Audiobook Cover Change Portal Audiobook  Project Id  Cover Feedback Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/acx-account":{"put":{"tags":["portal"],"summary":"Update Audiobook Acx Account","description":"The author confirming (or not yet) their own ACX account.","operationId":"update_audiobook_acx_account_portal_audiobook__project_id__acx_account_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookAcxAccountUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Audiobook Acx Account Portal Audiobook  Project Id  Acx Account Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/print-proof":{"post":{"tags":["portal"],"summary":"Order Print Proof","description":"Order a print proof copy via Lulu Print API.","operationId":"order_print_proof_portal_publishing__project_id__print_proof_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintProofRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Order Print Proof Portal Publishing  Project Id  Print Proof Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal"],"summary":"Get Print Proof Status","description":"Check print proof order status.","operationId":"get_print_proof_status_portal_publishing__project_id__print_proof_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Print Proof Status Portal Publishing  Project Id  Print Proof Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/legal-profile/{project_id}":{"get":{"tags":["portal"],"summary":"Get Legal Profile","description":"The author's business mailing address and their own legal page URLs.","operationId":"get_legal_profile_portal_legal_profile__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Legal Profile Portal Legal Profile  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Put Legal Profile","description":"Save the address US law requires in the author's marketing emails.\n\nCollected from the AUTHOR rather than filled by a VA because nobody at\nDictate knows an author's business address, and a guessed one is published\nto their entire reading list in every email footer.\n\nA partial save is accepted on purpose: an author who types their street and\nleaves to find their postcode keeps what they typed. The value only reaches\nGoHighLevel once every required part is present\n(``author_legal_profile.format_postal_address`` returns '' otherwise, and\nthe sync never writes empties), so a half-typed address can never be\npublished.","operationId":"put_legal_profile_portal_legal_profile__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Legal Profile Portal Legal Profile  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/shipping-address":{"get":{"tags":["portal"],"summary":"Get Shipping Address","description":"Return the stored shipping address for this project's printed copies.","operationId":"get_shipping_address_portal_publishing__project_id__shipping_address_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Shipping Address Portal Publishing  Project Id  Shipping Address Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal"],"summary":"Put Shipping Address","description":"Persist the author's shipping address, validated against Lulu.\n\nThe address is collected here rather than at checkout because the keepsake\ncopies ship months after the sale (a checkout-time address is stale) and\nStripe's shipping collection never captures the phone number Lulu requires.\n\nThe save runs a Lulu print-job COST CALCULATION as a dry run so \"is this\naddress printable\" is answered by the provider that will ship it. A\nrejection does NOT discard the author's typing: the row is saved with\n``validated_at`` left NULL and the provider's detail returned.","operationId":"put_shipping_address_portal_publishing__project_id__shipping_address_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingAddressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Shipping Address Portal Publishing  Project Id  Shipping Address Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/keepsake-order":{"get":{"tags":["portal"],"summary":"Get Keepsake Order Status","description":"Status of the family keepsake copies for this project.\n\nWhile the order has not been placed, this also answers \"may I order yet?\"\nso the portal can say what has to happen FIRST instead of offering a button\nthat 409s. Ten copies going to family are not recallable, so the gate is\nreal; hiding the reason behind a click is what makes it feel arbitrary.","operationId":"get_keepsake_order_status_portal_publishing__project_id__keepsake_order_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Keepsake Order Status Portal Publishing  Project Id  Keepsake Order Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Order Keepsake Copies Route","description":"Order the author's entitled keepsake copies.\n\nThere is no request body. The quantity comes from the tier entitlement and\nthe address from the stored shipping-address row, so neither can be\nsupplied — or inflated — by the client.","operationId":"order_keepsake_copies_route_portal_publishing__project_id__keepsake_order_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Order Keepsake Copies Route Portal Publishing  Project Id  Keepsake Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/status":{"get":{"tags":["portal"],"summary":"Get Publishing Channel Status","description":"Return publishing channel status overview for the portal.","operationId":"get_publishing_channel_status_portal_publishing__project_id__status_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Publishing Channel Status Portal Publishing  Project Id  Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/request-help":{"post":{"tags":["portal"],"summary":"Request Publishing Help","description":"Author requests help with a publishing platform.\n\nBody: {\"platform\": \"kdp_ebook\", \"issue\": \"optional description\"}","operationId":"request_publishing_help_portal_publishing__project_id__request_help_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishingHelpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Publishing Help Portal Publishing  Project Id  Request Help Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/wizard":{"get":{"tags":["portal"],"summary":"Get Portal Publishing Wizard","description":"Get the full publishing wizard with per-platform steps and copy-paste fields.","operationId":"get_portal_publishing_wizard_portal_publishing__project_id__wizard_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Publishing Wizard Portal Publishing  Project Id  Wizard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/wizard/progress":{"post":{"tags":["portal"],"summary":"Update Publishing Wizard Progress","description":"Author reports publishing progress for a specific platform.\n\nBody: {\"platform\": \"kdp_ebook\", \"status\": \"submitted\"|\"live\"|\"skipped\"}","operationId":"update_publishing_wizard_progress_portal_publishing__project_id__wizard_progress_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishingWizardProgressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Publishing Wizard Progress Portal Publishing  Project Id  Wizard Progress Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/distribution":{"get":{"tags":["portal"],"summary":"Get Distribution Readiness","description":"Return distribution readiness across all providers, gated by entitlement.","operationId":"get_distribution_readiness_portal_publishing__project_id__distribution_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Distribution Readiness Portal Publishing  Project Id  Distribution Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/publishing/{project_id}/distribution/{provider_name}":{"post":{"tags":["portal"],"summary":"Submit Distribution","description":"Submit or prepare distribution for a specific provider.","operationId":"submit_distribution_portal_publishing__project_id__distribution__provider_name__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Distribution Portal Publishing  Project Id  Distribution  Provider Name  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/feedback-guidance/{project_id}":{"get":{"tags":["portal"],"summary":"Get Feedback Guidance","description":"Return feedback channel guidance for the portal UI.","operationId":"get_feedback_guidance_portal_feedback_guidance__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chapter State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Feedback Guidance Portal Feedback Guidance  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-brief/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Cover Brief","description":"Return the latest cover brief for the portal.","operationId":"get_portal_cover_brief_portal_cover_brief__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__models__portal__CoverBriefResponse"},{"type":"null"}],"title":"Response Get Portal Cover Brief Portal Cover Brief  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Create Or Update Cover Brief","description":"Queue cover brief creation or update with author preferences.\n\nThe worker merges author input with book context to generate a creative direction.","operationId":"create_or_update_cover_brief_portal_cover_brief__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverBriefInput"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverBriefJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-brief/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Portal Cover Brief","description":"Approve the cover brief — locks preferences for concept generation.","operationId":"approve_portal_cover_brief_portal_cover_brief__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Portal Cover Brief Portal Cover Brief  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/generate":{"post":{"tags":["portal"],"summary":"Trigger Cover Generation","description":"Trigger cover concept generation from the approved brief.\n\nOptional body: {\"count\": 4} to override default concept count.","operationId":"trigger_cover_generation_portal_covers__project_id__generate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TriggerCoverGenerationRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Cover Generation Portal Covers  Project Id  Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/covers/{project_id}/iterate/{concept_id}":{"post":{"tags":["portal"],"summary":"Iterate Cover Concept","description":"Generate a variation of an existing concept (\"more like this\").\n\nOptional body: {\"feedback\": \"...\", \"style\": \"minimalist\"}","operationId":"iterate_cover_concept_portal_covers__project_id__iterate__concept_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"concept_id","in":"path","required":true,"schema":{"type":"string","title":"Concept Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IterateCoverConceptRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Iterate Cover Concept Portal Covers  Project Id  Iterate  Concept Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/freeze-status/{project_id}":{"get":{"tags":["portal"],"summary":"Get Freeze Status","description":"Return interior freeze and cover lock status.","operationId":"get_freeze_status_portal_freeze_status__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Freeze Status Portal Freeze Status  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/freeze/{project_id}/interior":{"post":{"tags":["portal"],"summary":"Freeze Interior Endpoint","description":"Freeze the interior manuscript for print prep.\n\nOptional body: {\"page_count\": 250} to override auto-detected count.","operationId":"freeze_interior_endpoint_portal_freeze__project_id__interior_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FreezeInteriorRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Freeze Interior Endpoint Portal Freeze  Project Id  Interior Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/freeze/{project_id}/unfreeze":{"post":{"tags":["portal"],"summary":"Unfreeze Interior Endpoint","description":"Unfreeze the interior — also invalidates cover lock.","operationId":"unfreeze_interior_endpoint_portal_freeze__project_id__unfreeze_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnfreezeInteriorRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unfreeze Interior Endpoint Portal Freeze  Project Id  Unfreeze Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/freeze/{project_id}/lock-covers":{"post":{"tags":["portal"],"summary":"Lock Covers Endpoint","description":"Lock covers for publishing — requires interior freeze.","operationId":"lock_covers_endpoint_portal_freeze__project_id__lock_covers_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Lock Covers Endpoint Portal Freeze  Project Id  Lock Covers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}":{"get":{"tags":["portal"],"summary":"Get Social Post Queue","description":"Return pending approval posts for the social autopilot dashboard.","operationId":"get_social_post_queue_portal_social_posts__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PostQueueResponse"},"title":"Response Get Social Post Queue Portal Social Posts  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/history":{"get":{"tags":["portal"],"summary":"Get Social Post History","description":"Return recent post history across all statuses.","operationId":"get_social_post_history_portal_social_posts__project_id__history_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PostQueueResponse"},"title":"Response Get Social Post History Portal Social Posts  Project Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/{post_id}/action":{"post":{"tags":["portal"],"summary":"Process Social Post Action","description":"Approve or reject a queued social post.\n\nOn approval, enqueues an immediate publish task.","operationId":"process_social_post_action_portal_social_posts__project_id___post_id__action_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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/PostApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Process Social Post Action Portal Social Posts  Project Id   Post Id  Action Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/{post_id}/edit-request":{"post":{"tags":["portal"],"summary":"Request Social Post Edit","description":"Author requests a targeted regeneration of one queued piece (§4.2).\n\nThe revision cap (2 per piece) is checked synchronously so the author gets\nan immediate 409; the paid regeneration itself runs in a Celery task (no\nagent calls in request handlers).","operationId":"request_social_post_edit_portal_social_posts__project_id___post_id__edit_request_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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/EditRequestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Social Post Edit Portal Social Posts  Project Id   Post Id  Edit Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/generate":{"post":{"tags":["portal"],"summary":"Generate Manual Social Post","description":"Generate one-off social post drafts from an author prompt.\n\nUses Voice DNA and project context for grounding, plus freshness memory\nfrom the weekly automation to avoid repeating recent content.  Posts are\ninserted into the same approval queue as weekly digest drafts but tagged\nwith ``generation_source: manual``.","operationId":"generate_manual_social_post_portal_social_posts__project_id__generate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/newsletter/{project_id}/readiness":{"get":{"tags":["portal"],"summary":"Get Newsletter Readiness Status","description":"Get newsletter delivery readiness for a project.\n\nReturns delivery mode (resend_direct / draft_only / export_only),\nindividual prerequisite checks, and blocked reasons.","operationId":"get_newsletter_readiness_status_portal_newsletter__project_id__readiness_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Newsletter Readiness Status Portal Newsletter  Project Id  Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/newsletter/{project_id}/{newsletter_id}/send":{"post":{"tags":["portal"],"summary":"Send Newsletter Draft","description":"Approve and send a previously generated draft newsletter.\n\nUsed in the draft-first workflow where the author reviews the newsletter\nin the portal before triggering the actual email send.","operationId":"send_newsletter_draft_portal_newsletter__project_id___newsletter_id__send_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"newsletter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Newsletter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Newsletter Draft Portal Newsletter  Project Id   Newsletter Id  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-setup/{project_id}":{"get":{"tags":["portal"],"summary":"Get Voice Setup Status","description":"Get media voice setup readiness for a project.\n\nReturns setup state, consent flags, sample counts, and what's still needed.\nSeparate from social onboarding — this is the voice clone / narration surface.","operationId":"get_voice_setup_status_portal_voice_setup__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Voice Setup Status Portal Voice Setup  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-setup/{project_id}/upload":{"post":{"tags":["portal"],"summary":"Upload Voice Sample","description":"Upload a voice sample (MP3, WAV, M4A, etc.) for voice cloning.\n\nAccepts multipart/form-data with a 'file' field and optional 'source' field\n(defaults to 'upload', can be 'recording' for in-portal recordings).","operationId":"upload_voice_sample_portal_voice_setup__project_id__upload_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_voice_sample_portal_voice_setup__project_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Voice Sample Portal Voice Setup  Project Id  Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-setup/{project_id}/upload/presign":{"post":{"tags":["portal"],"summary":"Presign Voice Sample Upload","description":"Presign a direct-to-R2 PUT for a voice sample.\n\nMulti-minute recordings routinely exceed Vercel's 4.5MB serverless body\ncap, which made the server-action upload path hang forever for long takes.\nThe browser PUTs the audio straight to R2 (15-minute URL, staged under a\ntemporary namespace) and then confirms via the companion endpoint, which\nvalidates the exact bytes before any sample row exists.","operationId":"presign_voice_sample_upload_portal_voice_setup__project_id__upload_presign_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSamplePresignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSamplePresignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-setup/{project_id}/upload/confirm":{"post":{"tags":["portal"],"summary":"Confirm Voice Sample Upload","description":"Confirm a staged voice-sample upload and create the sample record.\n\nVerifies the object exists inside this project's own staging prefix,\ndownloads and validates the exact bytes (magic-byte + audio-quality\nanalysis, same gates as the multipart route), copies them to the final\nvoice-samples namespace, and only then persists the sample row.","operationId":"confirm_voice_sample_upload_portal_voice_setup__project_id__upload_confirm_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSampleConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Voice Sample Upload Portal Voice Setup  Project Id  Upload Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-setup/{project_id}/consent":{"post":{"tags":["portal"],"summary":"Record Voice Consent","description":"Record or revoke purpose-specific voice authorization for this book.","operationId":"record_voice_consent_portal_voice_setup__project_id__consent_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordVoiceConsentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Voice Consent Portal Voice Setup  Project Id  Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-setup/{project_id}/consent-video":{"post":{"tags":["portal"],"summary":"Presign Consent Video Upload","description":"Presign a direct-to-R2 PUT for the author's consent video.\n\nThe consent video is the enforced likeness-consent artifact for avatar\nrenders (D4). Returns a 15-minute presigned PUT URL plus the R2 key the\nbrowser must PUT to, then confirm via the companion endpoint.","operationId":"presign_consent_video_upload_portal_voice_setup__project_id__consent_video_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentVideoPresignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentVideoPresignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-setup/{project_id}/consent-video/confirm":{"post":{"tags":["portal"],"summary":"Confirm Consent Video Upload","description":"Confirm the consent-video upload and record likeness consent (D4).\n\nVerifies the object exists in R2 and that its key lives inside this\nproject's prefix, then records ``clone_consent`` + the consent text and\nstores ``metadata.consent_video_r2_key`` as the enforced consent artifact.","operationId":"confirm_consent_video_upload_portal_voice_setup__project_id__consent_video_confirm_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentVideoConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Consent Video Upload Portal Voice Setup  Project Id  Consent Video Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-verification/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Voice Verification","description":"Author-facing approval of the pending clone verification clip (D4).\n\nTransitions ``pending_verification`` -> ``clone_ready``. On success, if the\nauthor has a headshot AND recorded consent, auto-triggers avatar creation\n(tolerating its absence — the avatar can be created later).","operationId":"approve_voice_verification_portal_voice_verification__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Voice Verification Portal Voice Verification  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-verification/{project_id}/reject":{"post":{"tags":["portal"],"summary":"Reject Voice Verification","description":"Author-facing rejection of the pending clone verification clip (D4).\n\nThe author says the clone doesn't sound like them: transition back to\n``samples_ready`` and record the reason so they can record more and rebuild.","operationId":"reject_voice_verification_portal_voice_verification__project_id__reject_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceVerificationRejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Voice Verification Portal Voice Verification  Project Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-clone/{project_id}":{"post":{"tags":["portal"],"summary":"Create Voice Clone","description":"Create an ElevenLabs voice clone from uploaded audio samples.\n\nRequires audiobook/narration delivery or an active Premium Video\nsubscription. Premium Video unlocks clone setup only; audiobook delivery\nremains separately gated.\nReturns 200 immediately and enqueues a Celery task.","operationId":"create_voice_clone_portal_voice_clone__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCloneRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCloneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/video-avatar/{project_id}/create":{"post":{"tags":["portal"],"summary":"Portal Create Video Avatar","description":"Create a HeyGen Photo Avatar from the author's headshot.\n\nRequires recorded likeness consent (the consent video artifact) before any\navatar carrying the author's likeness is created. Uses the first headshot\nfrom project assets. Fully backend — author never sees HeyGen.","operationId":"portal_create_video_avatar_portal_video_avatar__project_id__create_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Portal Create Video Avatar Portal Video Avatar  Project Id  Create Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/narration/{project_id}":{"post":{"tags":["portal"],"summary":"Generate Narration","description":"Generate narration audio from a script using a cloned voice.\n\nPremium-media-only: requires ``voice_narration``, ``audiobook``, or the\naudiobook add-on.\nReturns 200 immediately and enqueues a Celery task.","operationId":"generate_narration_portal_narration__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NarrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NarrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/narration/{project_id}/readiness":{"get":{"tags":["portal"],"summary":"Get Narration Readiness Status","description":"Check narration readiness for a project.\n\nReturns clone state, blocked reasons, and existing narration assets.","operationId":"get_narration_readiness_status_portal_narration__project_id__readiness_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Narration Readiness Status Portal Narration  Project Id  Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/narration/{project_id}/assets":{"get":{"tags":["portal"],"summary":"List Narration Assets Endpoint","description":"List completed narration audio assets for a project.\n\nReturns narration deliverables that can be reused by later media steps.","operationId":"list_narration_assets_endpoint_portal_narration__project_id__assets_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Narration Assets Endpoint Portal Narration  Project Id  Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/sample":{"post":{"tags":["portal"],"summary":"Render Audiobook Sample","description":"Render the opening-passage SAMPLE in the author's cloned voice.\n\nStep 1 of the sample-and-approve loop. Provider-charging but bounded to one\nchapter. Returns 200 immediately and enqueues a Celery task; the sample row\nmoves to 'rendered' (playable) when done. Audiobook-package only.","operationId":"render_audiobook_sample_portal_audiobook__project_id__sample_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Render Audiobook Sample Portal Audiobook  Project Id  Sample Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal"],"summary":"Get Audiobook Sample","description":"Get the latest sample render state + a presigned URL to PLAY it.\n\nStep 2 of the loop (play). Returns the current state machine state, and a\nshort-lived presigned audio URL when the sample is 'rendered'.","operationId":"get_audiobook_sample_portal_audiobook__project_id__sample_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audiobook Sample Portal Audiobook  Project Id  Sample Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/sample/approve":{"post":{"tags":["portal"],"summary":"Approve Audiobook Sample","description":"APPROVE the latest sample — the client decision that unlocks full book.\n\nStep 3 of the loop. Only a 'rendered' sample with playable audio can be\napproved (server-enforced). This is the single gate that flips\n``sample_passed`` True for full-book synthesis.","operationId":"approve_audiobook_sample_portal_audiobook__project_id__sample_approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Audiobook Sample Portal Audiobook  Project Id  Sample Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/audiobook/{project_id}/sample/re-record":{"post":{"tags":["portal"],"summary":"Reject Audiobook Sample","description":"REJECT the latest sample (re-record). Step 3-alt of the loop.\n\nMoves the current sample to 'rejected'; the author can record again and a\nfresh sample render supersedes it. Does not unlock full-book synthesis.","operationId":"reject_audiobook_sample_portal_audiobook__project_id__sample_re_record_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiobookSampleRejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Audiobook Sample Portal Audiobook  Project Id  Sample Re Record Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/video/{project_id}/render":{"post":{"tags":["portal"],"summary":"Trigger Video Render","description":"Trigger a short-form video render for a project.\n\nPremium-video subscription required. Accepts optional strategy override\nand target channel (reels or tiktok).","operationId":"trigger_video_render_portal_video__project_id__render_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TriggerVideoRenderRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Video Render Portal Video  Project Id  Render Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/video/{project_id}/assets":{"get":{"tags":["portal"],"summary":"List Video Assets","description":"List completed video deliverables for a project.","operationId":"list_video_assets_portal_video__project_id__assets_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Video Assets Portal Video  Project Id  Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/video/{project_id}/regenerate/{deliverable_id}":{"post":{"tags":["portal"],"summary":"Regenerate Video","description":"Re-render a video asset. Requires premium video subscription.\n\nAccepts optional channel override (reels/tiktok).","operationId":"regenerate_video_portal_video__project_id__regenerate__deliverable_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RegenerateVideoRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Regenerate Video Portal Video  Project Id  Regenerate  Deliverable Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/video/{project_id}/{deliverable_id}/review":{"post":{"tags":["portal"],"summary":"Review Video Asset","description":"Approve or reject a rendered video asset.\n\nBody: {\"action\": \"approve\" | \"reject\", \"reject_reason\": \"optional\"}\n\nApproved videos are marked 'delivered'. Rejected videos are marked 'failed'\nwith the reject reason, signaling the author wants a different version.","operationId":"review_video_asset_portal_video__project_id___deliverable_id__review_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewVideoAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Video Asset Portal Video  Project Id   Deliverable Id  Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/toolkit/{project_id}":{"get":{"tags":["portal"],"summary":"Get Toolkit Assets","description":"Get author toolkit assets for the portal.","operationId":"get_toolkit_assets_portal_toolkit__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Toolkit Assets Portal Toolkit  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/toolkit/{project_id}/{deliverable_id}/download":{"get":{"tags":["portal"],"summary":"Download Toolkit Asset","description":"Generate a fresh signed download URL for a toolkit asset.\n\nFetched on click so the URL is never stale. Prefers a customer_exports\nformatted file over the raw JSON artifact when present.","operationId":"download_toolkit_asset_portal_toolkit__project_id___deliverable_id__download_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Toolkit Asset Portal Toolkit  Project Id   Deliverable Id  Download Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/content-posts/{project_id}":{"get":{"tags":["portal"],"summary":"Get Content Posts","description":"Get recent content engine posts for the portal.","operationId":"get_content_posts_portal_content_posts__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Content Posts Portal Content Posts  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-samples/{project_id}/upload":{"post":{"tags":["portal"],"summary":"Upload Voice Sample Evidence","description":"Upload an audio file or writing sample for voice evidence.","operationId":"upload_voice_sample_evidence_portal_voice_samples__project_id__upload_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_voice_sample_evidence_portal_voice_samples__project_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Voice Sample Evidence Portal Voice Samples  Project Id  Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-samples/{project_id}/youtube":{"post":{"tags":["portal"],"summary":"Submit Youtube Url","description":"Submit a YouTube URL for voice evidence ingestion.","operationId":"submit_youtube_url_portal_voice_samples__project_id__youtube_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitYoutubeUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Youtube Url Portal Voice Samples  Project Id  Youtube Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-readiness/{project_id}":{"get":{"tags":["portal"],"summary":"Get Voice Readiness Portal","description":"Get voice readiness for portal display (banded, no raw score).","operationId":"get_voice_readiness_portal_portal_voice_readiness__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/voice-evidence/{project_id}":{"get":{"tags":["portal"],"summary":"List Voice Evidence Portal","description":"List voice evidence items for portal display.","operationId":"list_voice_evidence_portal_portal_voice_evidence__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/tasks/{project_id}":{"get":{"tags":["portal"],"summary":"List Author Tasks","description":"List author send-material tasks for the portal task page.","operationId":"list_author_tasks_portal_tasks__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalTaskResponse"},"title":"Response List Author Tasks Portal Tasks  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/requests/{project_id}":{"get":{"tags":["portal"],"summary":"List Portal Author Requests","description":"Open \"we need one thing from you\" requests for the author's own book.\n\nEach item carries ``portal_form`` (upload | text | confirm | choice) so the\ntasks page renders the right control; uploads go through the existing\nupload route with ``request_id``. Empty while the feature is off.","operationId":"list_portal_author_requests_portal_requests__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Portal Author Requests Portal Requests  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/requests/{project_id}/{request_id}/fulfill":{"post":{"tags":["portal"],"summary":"Fulfill Portal Author Request","description":"The author answers a text / confirm / choice request. A request that\nbelongs to another project reads as not found.","operationId":"fulfill_portal_author_request_portal_requests__project_id___request_id__fulfill_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"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/PortalAuthorRequestFulfillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fulfill Portal Author Request Portal Requests  Project Id   Request Id  Fulfill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/offer-draft/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Offer Draft","description":"The AI-drafted front-end offer for the author's own book (or none yet).","operationId":"get_portal_offer_draft_portal_offer_draft__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Portal Offer Draft Portal Offer Draft  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/offer-draft/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Portal Offer Draft","description":"The author approves her offer, with any change she made. Her price stands.","operationId":"approve_portal_offer_draft_portal_offer_draft__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalOfferApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Portal Offer Draft Portal Offer Draft  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/diy/{project_id}/recording-guide":{"get":{"tags":["portal"],"summary":"Get Diy Recording Guide","description":"Project-scoped guided recording sections for Talk Your Book DIY.","operationId":"get_diy_recording_guide_portal_diy__project_id__recording_guide_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Diy Recording Guide Portal Diy  Project Id  Recording Guide Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/diy/{project_id}/recording/{chapter_id}/typed":{"post":{"tags":["portal"],"summary":"Save Diy Recording Typed Answer","description":"Save a direct typed answer from the authenticated DIY recorder.\n\nThis is intentionally distinct from the general materials endpoint.  The\nroute derives both placement and provenance after authenticating the\nproject/chapter pair, so a generic portal paste, upload, or URL cannot\nmanufacture quote-attributable recording evidence by supplying metadata.","operationId":"save_diy_recording_typed_answer_portal_diy__project_id__recording__chapter_id__typed_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DIYRecordingTextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Diy Recording Typed Answer Portal Diy  Project Id  Recording  Chapter Id  Typed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/tasks/{project_id}/{question_id}/complete":{"post":{"tags":["portal"],"summary":"Complete Author Task","description":"Mark an author task as complete, optionally with pasted text.","operationId":"complete_author_task_portal_tasks__project_id___question_id__complete_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Question Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Author Task Portal Tasks  Project Id   Question Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/tasks/{project_id}/{question_id}/upload":{"post":{"tags":["portal"],"summary":"Upload Task Material","description":"Upload a file for an author task, routing through material intake.\n\nAccepts documents, images, audio (voice memos), and video. Audio/image/video\nroute through the shared material-processing dispatcher (audio → Whisper\ntranscription); documents keep the legacy ``task_material`` Docling path so\ndownstream final-review attachment handling is unchanged.","operationId":"upload_task_material_portal_tasks__project_id___question_id__upload_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Question Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_task_material_portal_tasks__project_id___question_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Task Material Portal Tasks  Project Id   Question Id  Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/conversion-recommendations/{project_id}":{"get":{"tags":["portal"],"summary":"Get Conversion Recommendations","description":"Return AI-generated conversion asset recommendations for author approval.","operationId":"get_conversion_recommendations_portal_conversion_recommendations__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/conversion-recommendations/{project_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Conversion Recommendations","description":"Approve selected conversion asset recommendations.\n\nBody: {\"selected_slugs\": [\"checklist-slug\", \"template-slug\"], \"recommendations\": [...]}","operationId":"approve_conversion_recommendations_portal_conversion_recommendations__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/resource-page/{project_id}":{"get":{"tags":["portal"],"summary":"Get Resource Page Status","description":"Return resource page status, URL, and opt-in count for the portal.","operationId":"get_resource_page_status_portal_resource_page__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/companion-assets/{project_id}/{asset_id}/download":{"get":{"tags":["portal"],"summary":"Download Companion Asset","description":"Generate a signed download URL for a companion asset PDF.\n\nSeparate from the deliverable download endpoint because companion assets\nlive in the book_conversion_assets table, not the deliverable_ledger.","operationId":"download_companion_asset_portal_companion_assets__project_id___asset_id__download_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Companion Asset Portal Companion Assets  Project Id   Asset Id  Download Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/headshots/{project_id}":{"get":{"tags":["portal"],"summary":"Get Author Headshots","description":"Return all uploaded headshots with presigned download URLs.","operationId":"get_author_headshots_portal_headshots__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Author Headshots Portal Headshots  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/support-request/{project_id}":{"post":{"tags":["portal"],"summary":"Create Portal Support Request","description":"The author asks for help, and a real ticket comes out the other end.\n\nUntil Wave 4 the portal's support page ended in a ``mailto:`` link. That is\na dead end in the literal sense: the message leaves the product, lands in an\ninbox with no queue behind it, and nothing in Dictate knows the author is\nwaiting. This route replaces it with a ticket a rep owns and an SLA clock\nthat starts.\n\n403 BEFORE existence, as every project-scoped portal route does: a token for\nanother project must not learn whether this one exists.","operationId":"create_portal_support_request_portal_support_request__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalSupportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Portal Support Request Portal Support Request  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/progress/{project_id}":{"get":{"tags":["portal"],"summary":"Get Portal Progress","description":"The portal home's one progress line (Finish Line plan item 7).\n\n\"Chapter X of Y drafted · about N calls left · estimated finish <date>\",\nfrom narrow project-scoped reads. The finish date is null whenever the\nauthor's own pace cannot honestly support one (see\n``app.services.portal_progress``). Separate from ``/project`` so the home\npage fetches it in parallel instead of making the slowest read slower.","operationId":"get_portal_progress_portal_progress__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalProgressSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/{project_id}/launch-entitlement":{"get":{"tags":["portal"],"summary":"Get Launch Entitlement","operationId":"get_launch_entitlement_portal__project_id__launch_entitlement_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Launch Entitlement Portal  Project Id  Launch Entitlement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/add-screenshot":{"post":{"tags":["portal"],"summary":"Add Screenshot To Book","description":"Her one tap: a screenshot kept in Your photos goes into her book where it was going\n(GH #14387 sp-captions). 403 for a foreign token; 404 for another book's material.","operationId":"add_screenshot_to_book_portal_materials__project_id___material_id__add_screenshot_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Screenshot To Book Portal Materials  Project Id   Material Id  Add Screenshot Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/screenshot-choice":{"post":{"tags":["portal"],"summary":"Choose Screenshot Picture","description":"Her tap on a screenshot with a photo inside: use the cropped picture, keep the whole\nscreenshot, or leave it out (GH #14387 sp-photos3). 403 for a foreign token; 404 for another\nbook's material; 409 when that choice is not on offer.","operationId":"choose_screenshot_picture_portal_materials__project_id___material_id__screenshot_choice_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenshotChoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Choose Screenshot Picture Portal Materials  Project Id   Material Id  Screenshot Choice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-questions/{project_id}":{"get":{"tags":["portal"],"summary":"List Photo Questions","description":"Her open \"Where should this photo go?\" questions, with the choices as taps (GH #14387\nsp-captions). Empty while ``photo_place_by_words`` is off. 403 for a foreign token.","operationId":"list_photo_questions_portal_photo_questions__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Photo Questions Portal Photo Questions  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-questions/{project_id}/{question_id}/answer":{"post":{"tags":["portal"],"summary":"Answer Photo Question","description":"Her tap answers our photo question: the photo goes there now (GH #14387 sp-captions).\n403 for a foreign token; 404 for another book's or an answered question; 409 with one plain\nsentence when it cannot be done.","operationId":"answer_photo_question_portal_photo_questions__project_id___question_id__answer_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Question Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoQuestionTapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Photo Question Portal Photo Questions  Project Id   Question Id  Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/materials/{project_id}/{material_id}/place":{"post":{"tags":["portal"],"summary":"Place Project Photo","description":"Put one of her photos where she wants it (GH #14387 B 3): the top or end of a chapter,\nafter a paragraph she names, the photo section, a front or back page, or out.\n\n403 for a foreign token; 404 while the switch is off or for another book's material\n(the scoped read cannot see it); 409 with one plain sentence when it cannot be done.","operationId":"place_project_photo_portal_materials__project_id___material_id__place_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacePhotoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Place Project Photo Portal Materials  Project Id   Material Id  Place Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/billing":{"get":{"tags":["portal-billing"],"summary":"Get Portal Billing","operationId":"get_portal_billing_portal_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Portal Billing Portal Billing Get"}}}}}}},"/portal/billing/defer-month":{"post":{"tags":["portal-billing"],"summary":"Defer Portal Month","operationId":"defer_portal_month_portal_billing_defer_month_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonthDeferralRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Defer Portal Month Portal Billing Defer Month Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/billing/portal-session":{"post":{"tags":["portal-billing"],"summary":"Create Portal Billing Session","operationId":"create_portal_billing_session_portal_billing_portal_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Create Portal Billing Session Portal Billing Portal Session Post"}}}}}}},"/portal/billing/pay":{"post":{"tags":["portal-billing"],"summary":"Get Portal Pay Url","operationId":"get_portal_pay_url_portal_billing_pay_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Get Portal Pay Url Portal Billing Pay Post"}}}}}}},"/portal/billing/portal-return":{"post":{"tags":["portal-billing"],"summary":"Reconcile Portal Return","description":"Apply a card the author just saved, without waiting for the webhook.\n\nIdempotent and scoped: it reconciles only the open intent belonging to THIS\nsession's own Stripe customer, and the shared reconciliation refuses\nanything it cannot prove (card unchanged, card not attached, subscription\nno longer this project's). Failures are reported as ``pending`` rather than\nas errors, because the webhook is the durable path and the author does not\nneed to know which one ran.","operationId":"reconcile_portal_return_portal_billing_portal_return_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Reconcile Portal Return Portal Billing Portal Return Post"}}}}}}},"/portal/billing/books":{"get":{"tags":["portal-billing"],"summary":"Get Portal Billing Books","operationId":"get_portal_billing_books_portal_billing_books_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Portal Billing Books Portal Billing Books Get"}}}}}}},"/portal/billing/books/switch":{"post":{"tags":["portal-billing"],"summary":"Switch Portal Billing Book","operationId":"switch_portal_billing_book_portal_billing_books_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingSwitchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Switch Portal Billing Book Portal Billing Books Switch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/recover/{token}":{"get":{"tags":["portal-billing"],"summary":"Get Signed Billing Recovery","operationId":"get_signed_billing_recovery_billing_recover__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Signed Billing Recovery Billing Recover  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/recover/{token}/portal-session":{"post":{"tags":["portal-billing"],"summary":"Create Signed Billing Portal Session","operationId":"create_signed_billing_portal_session_billing_recover__token__portal_session_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Create Signed Billing Portal Session Billing Recover  Token  Portal Session Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/recover/{token}/pay":{"post":{"tags":["portal-billing"],"summary":"Get Signed Billing Pay Url","operationId":"get_signed_billing_pay_url_billing_recover__token__pay_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Signed Billing Pay Url Billing Recover  Token  Pay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/agreement/{project_id}":{"get":{"tags":["portal-agreement"],"summary":"Get Portal Agreement","description":"The author's own signed agreement, read-only.","operationId":"get_portal_agreement_portal_agreement__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalAgreementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agreements/sign/{token}":{"get":{"tags":["agreement-signing"],"summary":"Get Agreement For Signing","operationId":"get_agreement_for_signing_agreements_sign__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":128,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementSignView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agreement-signing"],"summary":"Sign Agreement","operationId":"sign_agreement_agreements_sign__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":128,"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementSignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementSignResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/agreements/{agreement_id}/void":{"post":{"tags":["admin-service-agreements"],"summary":"Void Project Agreement","operationId":"void_project_agreement_admin_projects__project_id__agreements__agreement_id__void_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidAgreementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Void Project Agreement Admin Projects  Project Id  Agreements  Agreement Id  Void Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agreements/{agreement_id}/void":{"post":{"tags":["admin-service-agreements"],"summary":"Void Unlinked Agreement","description":"Only buyers without a project; cannot bypass project scoping.","operationId":"void_unlinked_agreement_admin_agreements__agreement_id__void_post","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidAgreementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Void Unlinked Agreement Admin Agreements  Agreement Id  Void Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/agreements/{agreement_id}/effects/reconcile":{"post":{"tags":["admin-service-agreements"],"summary":"Reconcile Project Effect","operationId":"reconcile_project_effect_admin_projects__project_id__agreements__agreement_id__effects_reconcile_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileEffectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reconcile Project Effect Admin Projects  Project Id  Agreements  Agreement Id  Effects Reconcile Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agreements/{agreement_id}/effects/reconcile":{"post":{"tags":["admin-service-agreements"],"summary":"Reconcile Unlinked Effect","operationId":"reconcile_unlinked_effect_admin_agreements__agreement_id__effects_reconcile_post","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileEffectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reconcile Unlinked Effect Admin Agreements  Agreement Id  Effects Reconcile Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agreements/{agreement_id}/attach":{"post":{"tags":["admin-service-agreements"],"summary":"Attach Signed Agreement","description":"Link an already-signed, unlinked agreement to the book built for it (GH #14244).\n\nRefused (409, nothing linked) unless the buyer email, tier and verified\npayment all match the book. Links a record only; no money moves.","operationId":"attach_signed_agreement_admin_agreements__agreement_id__attach_post","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachAgreementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Attach Signed Agreement Admin Agreements  Agreement Id  Attach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/replan":{"post":{"tags":["admin-manuscript-replan"],"summary":"Start Project Replan","operationId":"start_project_replan_admin_projects__project_id__replan_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__admin_manuscript_replan__ReplanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Project Replan Admin Projects  Project Id  Replan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/replan/undo":{"post":{"tags":["admin-manuscript-replan"],"summary":"Undo Project Replan","operationId":"undo_project_replan_admin_projects__project_id__replan_undo_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Undo Project Replan Admin Projects  Project Id  Replan Undo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/chapters/{chapter_id}/merge-back":{"post":{"tags":["admin-chapter-merge-back"],"summary":"Start Chapter Merge Back","operationId":"start_chapter_merge_back_admin_projects__project_id__chapters__chapter_id__merge_back_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeBackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Chapter Merge Back Admin Projects  Project Id  Chapters  Chapter Id  Merge Back Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/authors/{author_id}/bundle-remap":{"post":{"tags":["admin-bundle-remap"],"summary":"Remap Bundle","operationId":"remap_bundle_admin_authors__author_id__bundle_remap_post","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleRemapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remap Bundle Admin Authors  Author Id  Bundle Remap Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/covers/select-number":{"post":{"tags":["admin-cover-select"],"summary":"Select Cover By Number","operationId":"select_cover_by_number_admin_projects__project_id__covers_select_number_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectCoverByNumberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Select Cover By Number Admin Projects  Project Id  Covers Select Number Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/epigraph":{"post":{"tags":["admin-epigraph"],"summary":"Set Project Epigraph","operationId":"set_project_epigraph_admin_projects__project_id__epigraph_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetEpigraphRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Project Epigraph Admin Projects  Project Id  Epigraph Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/authors/{author_id}/books-concurrency":{"get":{"tags":["admin-book-concurrency"],"summary":"Get Books Concurrency","operationId":"get_books_concurrency_admin_authors__author_id__books_concurrency_get","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Books Concurrency Admin Authors  Author Id  Books Concurrency Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/authors/{author_id}/max-concurrent-books":{"put":{"tags":["admin-book-concurrency"],"summary":"Put Max Concurrent Books","operationId":"put_max_concurrent_books_admin_authors__author_id__max_concurrent_books_put","parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Author Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetMaxConcurrentBooksRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Max Concurrent Books Admin Authors  Author Id  Max Concurrent Books Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email-content-check":{"post":{"tags":["admin-email-content-check"],"summary":"Post Email Content Check","operationId":"post_email_content_check_admin_email_content_check_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailContentCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailContentCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email-content-check/suggestions/{task_id}":{"get":{"tags":["admin-email-content-check"],"summary":"Get Email Content Suggestions","operationId":"get_email_content_suggestions_admin_email_content_check_suggestions__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"Task Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailContentSuggestionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email-reputation/run":{"post":{"tags":["admin-email-reputation"],"summary":"Post Email Reputation Run","operationId":"post_email_reputation_run_admin_email_reputation_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailReputationRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email-reputation/latest":{"get":{"tags":["admin-email-reputation"],"summary":"Get Email Reputation Latest","operationId":"get_email_reputation_latest_admin_email_reputation_latest_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailReputationLatestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email-health/preview":{"get":{"tags":["admin-email-health"],"summary":"Get Email Health Preview","operationId":"get_email_health_preview_admin_email_health_preview_get","parameters":[{"name":"week_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Monday the exec week starts on (ET)","title":"Week Start"},"description":"Monday the exec week starts on (ET)"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailHealthPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email-health/run":{"post":{"tags":["admin-email-health"],"summary":"Post Email Health Run","operationId":"post_email_health_run_admin_email_health_run_post","parameters":[{"name":"week_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Monday the exec week starts on (ET)","title":"Week Start"},"description":"Monday the exec week starts on (ET)"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailHealthRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/marketing-email/plays-status":{"get":{"tags":["admin-marketing-plays"],"summary":"Get Plays Status","operationId":"get_plays_status_admin_marketing_email_plays_status_get","parameters":[{"name":"include_engaged","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Engaged"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Preview another ET day (read only)","title":"As Of"},"description":"Preview another ET day (read only)"},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Plays Status Admin Marketing Email Plays Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/marketing-email/plays":{"post":{"tags":["admin-marketing-plays"],"summary":"Post Register Play","operationId":"post_register_play_admin_marketing_email_plays_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPlayRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Register Play Admin Marketing Email Plays Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/marketing-email/plays/{campaign_key}/approve":{"post":{"tags":["admin-marketing-plays"],"summary":"Post Approve Play","operationId":"post_approve_play_admin_marketing_email_plays__campaign_key__approve_post","parameters":[{"name":"campaign_key","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[A-Za-z0-9_-]+$","title":"Campaign Key"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovePlayRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Approve Play Admin Marketing Email Plays  Campaign Key  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/marketing-email/plays/{campaign_key}/batches":{"post":{"tags":["admin-marketing-plays"],"summary":"Post Play Batch","operationId":"post_play_batch_admin_marketing_email_plays__campaign_key__batches_post","parameters":[{"name":"campaign_key","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[A-Za-z0-9_-]+$","title":"Campaign Key"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/marketing-email/plays/{campaign_key}":{"get":{"tags":["admin-marketing-plays"],"summary":"Get Play","operationId":"get_play_admin_marketing_email_plays__campaign_key__get","parameters":[{"name":"campaign_key","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[A-Za-z0-9_-]+$","title":"Campaign Key"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Play Admin Marketing Email Plays  Campaign Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sms-links/mint":{"post":{"tags":["admin-sms-short-links"],"summary":"Post Mint","operationId":"post_mint_admin_sms_links_mint_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Mint Admin Sms Links Mint Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sms-links/report":{"get":{"tags":["admin-sms-short-links"],"summary":"Get Report","operationId":"get_report_admin_sms_links_report_get","parameters":[{"name":"utm_campaign","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"title":"Utm Campaign"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Report Admin Sms Links Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/chapters/{chapter_id}/literal-edit":{"post":{"tags":["admin-ticket-actions"],"summary":"Literal Chapter Edit","operationId":"literal_chapter_edit_admin_projects__project_id__chapters__chapter_id__literal_edit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiteralEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Literal Chapter Edit Admin Projects  Project Id  Chapters  Chapter Id  Literal Edit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/author-questions/{question_id}/bind-answer":{"post":{"tags":["admin-ticket-actions"],"summary":"Bind Author Answer","operationId":"bind_author_answer_admin_projects__project_id__author_questions__question_id__bind_answer_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Question Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindAnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bind Author Answer Admin Projects  Project Id  Author Questions  Question Id  Bind Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/author-questions/{question_id}/withdraw":{"post":{"tags":["admin-ticket-actions"],"summary":"Withdraw Author Question","operationId":"withdraw_author_question_admin_projects__project_id__author_questions__question_id__withdraw_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Question Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawQuestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Withdraw Author Question Admin Projects  Project Id  Author Questions  Question Id  Withdraw Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/projects/{project_id}/account-email-change":{"post":{"tags":["admin-ticket-actions"],"summary":"Start Account Email Change","operationId":"start_account_email_change_admin_projects__project_id__account_email_change_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__admin_ticket_actions__EmailChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Account Email Change Admin Projects  Project Id  Account Email Change Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/subscriptions/included":{"get":{"tags":["portal-subscriptions"],"summary":"List Included Subscriptions","description":"The project's package-included Author Platform subscription(s).\n\nPowers the portal subscriptions page: the included-period end date (the\nfirst-charge date) and the one-click cancel affordance.","operationId":"list_included_subscriptions_portal_subscriptions_included_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncludedSubscriptionsResponse"}}}}}}},"/portal/subscriptions/{stripe_subscription_id}/cancel":{"post":{"tags":["portal-subscriptions"],"summary":"Cancel Portal Subscription","description":"Cancel the author's subscription at period end (one click).\n\nDuring the included 60-day trial this means Stripe never charges the card.","operationId":"cancel_portal_subscription_portal_subscriptions__stripe_subscription_id__cancel_post","parameters":[{"name":"stripe_subscription_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Stripe Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__portal_subscriptions__CancelSubscriptionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/subscriptions/platform-offer":{"get":{"tags":["portal-subscriptions"],"summary":"Get Platform Offer","description":"The Author Platform Basic offer card, only for an author it fits.\n\n``available`` is False (with no detail) whenever the kill switch is off or\nthe author has not reached the value moment (site live + CRM provisioned)\nor already holds a platform plan.","operationId":"get_platform_offer_portal_subscriptions_platform_offer_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformOfferResponse"}}}}}}},"/portal/subscriptions/platform-offer/start":{"post":{"tags":["portal-subscriptions"],"summary":"Start Platform Offer","description":"Start Author Platform Basic after the author's explicit consent click.","operationId":"start_platform_offer_portal_subscriptions_platform_offer_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPlatformOfferRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPlatformOfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/subscriptions/platform-offer/card":{"post":{"tags":["portal-subscriptions"],"summary":"Platform Offer Card Setup","description":"A Stripe-hosted page to add a card before starting (nothing is charged).","operationId":"platform_offer_card_setup_portal_subscriptions_platform_offer_card_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardSetupResponse"}}}}}}},"/portal/books":{"get":{"tags":["portal-books"],"summary":"List Books","description":"All of the logged-in author's books, oldest first.","operationId":"list_books_portal_books_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BooksListResponse"}}}}}}},"/portal/books/switch":{"post":{"tags":["portal-books"],"summary":"Switch Session Book","description":"Re-scope the portal session to another of the author's own books.\n\nThe target is matched against the author's enumerated books — a foreign\nproject_id 404s (indistinguishable from nonexistent, no oracle).","operationId":"switch_session_book_portal_books_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchBookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchBookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/books/start-next":{"post":{"tags":["portal-books"],"summary":"Start Next Book","description":"Start the author's next book — resume, redeem, buy, or record interest.\n\nFive ordered branches, first match wins:\n\n  a. a book is in production → blocked (the single-active-book rule),\n     unless MULTI_BOOK_CONCURRENCY_ENABLED is on and the author is under\n     her concurrency cap, in which case the branches below run as usual;\n  b. a paid-but-unstarted book exists → resume it, spend nothing;\n  c. the author holds a credit (a book already paid for) → create the\n     book and consume the credit, with no Stripe call at all;\n  d. no credit and the offer is open → hand back a Stripe Checkout URL;\n     nothing is created until the money lands and the webhook runs;\n  e. no credit and the offer is dark (``next_book_enabled`` off) →\n     today's behaviour, record the interest for the concierge team.\n\n(b) deliberately precedes (c): an author who already has an unstarted book\nmust be sent to it rather than spending a second credit on a third one.\n\n(c) deliberately precedes the ``next_book_enabled`` check: that flag opens\nNEW sales, and a credit is a book already bought. A Three-Book Series buyer\nmust be able to start book two even while Next Book sales are dark.","operationId":"start_next_book_portal_books_start_next_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartNextBookResponse"}}}}}}},"/portal/books/continue-series-look":{"post":{"tags":["portal-books"],"summary":"Continue Series Look","description":"Copy book N's final cover into the session book's series references.\n\nServer-side copy (no re-upload): the source's final front cover is copied\nfrom the books bucket into the uploads bucket and appended to the session\nbook's ``reference_image_keys``, so the next cover generation runs the\nGemini reference-bytes series path. Flag-gated on Cover Studio.\n\nOwnership: both the source and the target (session) book are matched against\nthe author's OWN enumerated books — a foreign source_project_id 404s.","operationId":"continue_series_look_portal_books_continue_series_look_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinueSeriesLookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinueSeriesLookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/books/chip":{"get":{"tags":["portal-books"],"summary":"Book Chip","description":"The header book chip: every book not abandoned, for authors with 2+.\n\nFlag off answers ``enabled: false`` before any read of the author's books.","operationId":"book_chip_portal_books_chip_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookChipResponse"}}}}}}},"/portal/books/deep-link":{"post":{"tags":["portal-books"],"summary":"Deep Link Switch","description":"``?book=<project_id>`` on a portal URL: re-mint the session for that book.\n\nThe middleware calls this server side and sets the returned cookie, so the\npage renders the right book on the first load. A book the author does not\nown 404s (the middleware shows a not-found page, never a silent switch).\n409 = not applicable (flag off, or a sales demo session).","operationId":"deep_link_switch_portal_books_deep_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeepLinkSwitchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/books/{project_id}/silas-contact.vcf":{"get":{"tags":["portal-books"],"summary":"Silas Contact Card","description":"\"Save contact\": a vCard for the Silas number of one of the author's books.","operationId":"silas_contact_card_portal_books__project_id__silas_contact_vcf_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/books/setup":{"post":{"tags":["portal-books"],"summary":"Save Book Setup","description":"The new-book setup card: nickname, voice, series and matching covers.\n\nThe voice answer (\"same voice as <book>\" or \"its own voice\") is saved only\nwhile MULTI_BOOK_VOICE_MODES_ENABLED is on, the same switch that makes the\nwriter honor projects.voice_dna_mode, so the card never promises a choice\nthe writer ignores.","operationId":"save_book_setup_portal_books_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookSetupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/longer-book":{"get":{"tags":["portal-longer-book"],"summary":"Get Longer Book Offer","description":"The Longer Book card for this book; ``available`` False hides the offer.","operationId":"get_longer_book_offer_portal_longer_book_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongerBookOfferResponse"}}}}}}},"/portal/longer-book/replan":{"post":{"tags":["portal-longer-book"],"summary":"Replan For Longer Book","description":"Start the outline re-plan for an upgrade paid after approval.","operationId":"replan_for_longer_book_portal_longer_book_replan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__longer_book_upgrade__ReplanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Replan For Longer Book Portal Longer Book Replan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/co-author-addon":{"get":{"tags":["portal-co-author-addon"],"summary":"Get Card","description":"``checkout_session``: the Stripe session the buyer is back from (Stripe fills it\ninto the return link). Its receipt is read from our own record of the paid\nwebhook, scoped to this book; anything else reads as pending.","operationId":"get_card_portal_co_author_addon_get","parameters":[{"name":"checkout_session","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Checkout Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoAuthorAddonCard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/co-author-addon/checkout":{"post":{"tags":["portal-co-author-addon"],"summary":"Start Checkout","description":"The account holder's own checkout. Charges nothing by itself.","operationId":"start_checkout_portal_co_author_addon_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoAuthorSeatCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoAuthorSeatCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/co-author-addon/invite":{"post":{"tags":["portal-co-author-addon"],"summary":"Invite","description":"Invite one co-author into a free seat (the invite service enforces the cap).","operationId":"invite_portal_co_author_addon_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__portal_co_author_addon__CoAuthorInviteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoAuthorInviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/longer-book-upgrades/{upgrade_id}/bind":{"post":{"tags":["admin"],"summary":"Bind Longer Book Upgrade","description":"Attach a paid, unmatched upgrade to the payer's book and apply it.","operationId":"bind_longer_book_upgrade_admin_longer_book_upgrades__upgrade_id__bind_post","parameters":[{"name":"upgrade_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upgrade Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bind Longer Book Upgrade Admin Longer Book Upgrades  Upgrade Id  Bind Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/longer-book-upgrades/{upgrade_id}/retry":{"post":{"tags":["admin"],"summary":"Retry Longer Book Upgrade","description":"Re-arm a stuck re-plan (attempts back to zero) and finish the upgrade.","operationId":"retry_longer_book_upgrade_admin_longer_book_upgrades__upgrade_id__retry_post","parameters":[{"name":"upgrade_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upgrade Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Longer Book Upgrade Admin Longer Book Upgrades  Upgrade Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/longer-book-upgrades/{upgrade_id}/approve":{"post":{"tags":["admin"],"summary":"Approve Longer Book Upgrade","description":"Apply a ``needs_review`` payment as ``tier`` (Mike's approval only).","operationId":"approve_longer_book_upgrade_admin_longer_book_upgrades__upgrade_id__approve_post","parameters":[{"name":"upgrade_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upgrade Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Longer Book Upgrade Admin Longer Book Upgrades  Upgrade Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/longer-book-upgrades/link-check":{"get":{"tags":["admin"],"summary":"Check Longer Book Links","description":"Read all six Payment Links and Prices from Stripe; store and alert nothing.","operationId":"check_longer_book_links_admin_longer_book_upgrades_link_check_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Longer Book Links Admin Longer Book Upgrades Link Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/admired-books/{project_id}":{"get":{"tags":["portal-admired-books"],"summary":"List Admired Books Endpoint","operationId":"list_admired_books_endpoint_portal_admired_books__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdmiredBooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-admired-books"],"summary":"Add Admired Book Endpoint","operationId":"add_admired_book_endpoint_portal_admired_books__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdmiredBookAddRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdmiredBookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/admired-books/{project_id}/search":{"get":{"tags":["portal-admired-books"],"summary":"Search Books Endpoint","operationId":"search_books_endpoint_portal_admired_books__project_id__search_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":120,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/admired-books/{project_id}/{book_id}/add":{"post":{"tags":["portal-admired-books"],"summary":"Add Suggestion Endpoint","operationId":"add_suggestion_endpoint_portal_admired_books__project_id___book_id__add_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"book_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Book Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdmiredBookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/admired-books/{project_id}/{book_id}":{"delete":{"tags":["portal-admired-books"],"summary":"Remove Admired Book Endpoint","description":"Remove a book or dismiss a suggestion. Kept as 'dismissed' so it is\nnever suggested again.","operationId":"remove_admired_book_endpoint_portal_admired_books__project_id___book_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"book_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Book Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdmiredBookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/admired-books/{project_id}/suggestions":{"post":{"tags":["portal-admired-books"],"summary":"More Suggestions Endpoint","description":"\"Show me more\" — queue another verified batch (at most every 10 minutes).","operationId":"more_suggestions_endpoint_portal_admired_books__project_id__suggestions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdmiredBooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/finish-line/{project_id}/published":{"get":{"tags":["portal-finish-line"],"summary":"Get Book Published","description":"Is the book on Amazon yet? ASIN, launch date and the Amazon link.","operationId":"get_book_published_portal_finish_line__project_id__published_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Book Published Portal Finish Line  Project Id  Published Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-finish-line"],"summary":"Record Book Published By Author","description":"The author tells us her book is live (or on pre-order) on Amazon.","operationId":"record_book_published_by_author_portal_finish_line__project_id__published_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookPublishedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Book Published By Author Portal Finish Line  Project Id  Published Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/finish-line/{project_id}/book-summary":{"get":{"tags":["portal-finish-line"],"summary":"Get Book Summary","description":"What \"Approve my book\" covers: the book, its publishing details and,\nwith the walk-through on, every other end decision (wave AJ ideas-3).","operationId":"get_book_summary_portal_finish_line__project_id__book_summary_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Book Summary Portal Finish Line  Project Id  Book Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/finish-line/{project_id}/upgrade-invite":{"get":{"tags":["portal-finish-line"],"summary":"Get Finalize Upgrade Invite","description":"The \"talk upgrades with your rep before you finalize\" pop-up (Mike, 2026-11-13).\n\n``eligible`` false means the approve button approves straight away. A\nforeign project is a 404 (no existence leak). Kill switch:\n``FINALIZE_UPGRADE_INVITE_ENABLED``.","operationId":"get_finalize_upgrade_invite_portal_finish_line__project_id__upgrade_invite_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Finalize Upgrade Invite Portal Finish Line  Project Id  Upgrade Invite Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/author-stats/{project_id}":{"get":{"tags":["portal-author-stats"],"summary":"Get Author Stats","description":"The author's stats page: live numbers plus the latest snapshot's labels.","operationId":"get_author_stats_portal_author_stats__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Author Stats Portal Author Stats  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/author-stats/{project_id}/preferences":{"post":{"tags":["portal-author-stats"],"summary":"Set Author Stats Preferences","description":"Hide or show stats. Returns the same body as the GET.","operationId":"set_author_stats_preferences_portal_author_stats__project_id__preferences_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorStatsPreferences"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Author Stats Preferences Portal Author Stats  Project Id  Preferences Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/author-stats/{project_id}/persona/regenerate":{"post":{"tags":["portal-author-stats"],"summary":"Regenerate Author Persona","description":"Queue a fresh persona (3 a day per book).","operationId":"regenerate_author_persona_portal_author_stats__project_id__persona_regenerate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Regenerate Author Persona Portal Author Stats  Project Id  Persona Regenerate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/author-stats/{project_id}/persona-card":{"post":{"tags":["portal-author-stats"],"summary":"Create Persona Card","description":"The author consents and asks for her card; the worker draws it.","operationId":"create_persona_card_portal_author_stats__project_id__persona_card_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaCardRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Persona Card Portal Author Stats  Project Id  Persona Card Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/author-stats/{project_id}/persona-card/{card_id}":{"get":{"tags":["portal-author-stats"],"summary":"Get Persona Card","description":"Card status, both image URLs, the caption and the share link.","operationId":"get_persona_card_portal_author_stats__project_id__persona_card__card_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"card_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Card Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Persona Card Portal Author Stats  Project Id  Persona Card  Card Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/status":{"get":{"tags":["portal-launch-readiness"],"summary":"Get Launch Readiness Status","description":"Whether the checklist is showing and where the author stands. Never 404s.","operationId":"get_launch_readiness_status_portal_launch_readiness__project_id__status_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Launch Readiness Status Portal Launch Readiness  Project Id  Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/kdp-prefill":{"get":{"tags":["portal-launch-readiness"],"summary":"Get Kdp Prefill Sheet","description":"Legal name, address and business name for the KDP account, plus what to have\nready for Amazon's tax and payment pages. Never a tax id or a bank number.","operationId":"get_kdp_prefill_sheet_portal_launch_readiness__project_id__kdp_prefill_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Kdp Prefill Sheet Portal Launch Readiness  Project Id  Kdp Prefill Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/crm-connector":{"get":{"tags":["portal-launch-readiness"],"summary":"Get Crm Connector Steps","description":"The \"use your CRM from Claude / ChatGPT\" steps, so the author can redo them.","operationId":"get_crm_connector_steps_portal_launch_readiness__project_id__crm_connector_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Crm Connector Steps Portal Launch Readiness  Project Id  Crm Connector Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/connect-accounts":{"get":{"tags":["portal-launch-readiness"],"summary":"Get Connect Accounts","description":"The \"Connect your accounts\" card: social networks + the CRM app. 404 = hide it.","operationId":"get_connect_accounts_portal_launch_readiness__project_id__connect_accounts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Connect Accounts Portal Launch Readiness  Project Id  Connect Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/connect-accounts/recheck":{"post":{"tags":["portal-launch-readiness"],"summary":"Recheck Connect Accounts","description":"The author connected something: ask the CRM again now.","operationId":"recheck_connect_accounts_portal_launch_readiness__project_id__connect_accounts_recheck_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recheck Connect Accounts Portal Launch Readiness  Project Id  Connect Accounts Recheck Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/items":{"post":{"tags":["portal-launch-readiness"],"summary":"Confirm Launch Readiness Item","operationId":"confirm_launch_readiness_item_portal_launch_readiness__project_id__items_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchReadinessItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Launch Readiness Item Portal Launch Readiness  Project Id  Items Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/tests/extension/start":{"post":{"tags":["portal-launch-readiness"],"summary":"Start Extension Test","operationId":"start_extension_test_portal_launch_readiness__project_id__tests_extension_start_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Extension Test Portal Launch Readiness  Project Id  Tests Extension Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/tests/extension/submit":{"post":{"tags":["portal-launch-readiness"],"summary":"Submit Extension Test","operationId":"submit_extension_test_portal_launch_readiness__project_id__tests_extension_submit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtensionCodeSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Extension Test Portal Launch Readiness  Project Id  Tests Extension Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/tests/desktop/start":{"post":{"tags":["portal-launch-readiness"],"summary":"Start Desktop Test","operationId":"start_desktop_test_portal_launch_readiness__project_id__tests_desktop_start_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Desktop Test Portal Launch Readiness  Project Id  Tests Desktop Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/tests/desktop/file":{"get":{"tags":["portal-launch-readiness"],"summary":"Download Desktop Test File","description":"The text file the author drops into her desktop AI app.","operationId":"download_desktop_test_file_portal_launch_readiness__project_id__tests_desktop_file_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/tests/desktop/submit":{"post":{"tags":["portal-launch-readiness"],"summary":"Submit Desktop Test","operationId":"submit_desktop_test_portal_launch_readiness__project_id__tests_desktop_submit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesktopPhraseSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Desktop Test Portal Launch Readiness  Project Id  Tests Desktop Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/tests/kdp/submit":{"post":{"tags":["portal-launch-readiness"],"summary":"Submit Kdp Test","operationId":"submit_kdp_test_portal_launch_readiness__project_id__tests_kdp_submit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KdpBookshelfSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Kdp Test Portal Launch Readiness  Project Id  Tests Kdp Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/booking":{"post":{"tags":["portal-launch-readiness"],"summary":"Record Booking Click","description":"The author asked to book: returns the right calendar and records the route.","operationId":"record_booking_click_portal_launch_readiness__project_id__booking_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Booking Click Portal Launch Readiness  Project Id  Booking Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-readiness/{project_id}/launch-list-consent":{"get":{"tags":["portal-launch-readiness"],"summary":"Get Launch List Consent","operationId":"get_launch_list_consent_portal_launch_readiness__project_id__launch_list_consent_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Launch List Consent Portal Launch Readiness  Project Id  Launch List Consent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-launch-readiness"],"summary":"Confirm Launch List Consent","operationId":"confirm_launch_list_consent_portal_launch_readiness__project_id__launch_list_consent_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchListConfirmationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Launch List Consent Portal Launch Readiness  Project Id  Launch List Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-setup/{project_id}":{"get":{"tags":["portal-launch-setup"],"summary":"Get Setup Page","description":"Every self-serve step with Done / To do. 404 = no setup page for this book.","operationId":"get_setup_page_portal_launch_setup__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Setup Page Portal Launch Setup  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-setup/{project_id}/recheck":{"post":{"tags":["portal-launch-setup"],"summary":"Recheck Setup Page","description":"The author finished something: read every step again now.","operationId":"recheck_setup_page_portal_launch_setup__project_id__recheck_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recheck Setup Page Portal Launch Setup  Project Id  Recheck Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-setup/{project_id}/events":{"post":{"tags":["portal-launch-setup"],"summary":"Record Setup Event","description":"The author opened a step (CRM sign-in, billing, domain...). For measurement.","operationId":"record_setup_event_portal_launch_setup__project_id__events_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Setup Event Portal Launch Setup  Project Id  Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-setup/{project_id}/social/start":{"post":{"tags":["portal-launch-setup"],"summary":"Start Social Connect","description":"The network's sign-in URL for the author's own CRM, to open in a popup.","operationId":"start_social_connect_portal_launch_setup__project_id__social_start_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Social Connect Portal Launch Setup  Project Id  Social Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-setup/{project_id}/social/accounts":{"post":{"tags":["portal-launch-setup"],"summary":"List Social Accounts","description":"The pages/profiles this sign-in can connect.","operationId":"list_social_accounts_portal_launch_setup__project_id__social_accounts_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAccountsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Social Accounts Portal Launch Setup  Project Id  Social Accounts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-setup/{project_id}/social/attach":{"post":{"tags":["portal-launch-setup"],"summary":"Attach Social Account","description":"Connect the page/profile she picked, then return the refreshed page.","operationId":"attach_social_account_portal_launch_setup__project_id__social_attach_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAttachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Attach Social Account Portal Launch Setup  Project Id  Social Attach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-connect/{project_id}":{"get":{"tags":["portal-social-connect"],"summary":"Get Status","description":"The card: eligible, connected, posts waiting.","operationId":"get_status_portal_social_connect__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Status Portal Social Connect  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-connect/{project_id}/page":{"get":{"tags":["portal-social-connect"],"summary":"Get Page","description":"The connect page: the status plus every network's Connect button.","operationId":"get_page_portal_social_connect__project_id__page_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Page Portal Social Connect  Project Id  Page Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-connect/{project_id}/recheck":{"post":{"tags":["portal-social-connect"],"summary":"Recheck","description":"She connected something (maybe in her CRM): ask GHL again now.","operationId":"recheck_portal_social_connect__project_id__recheck_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recheck Portal Social Connect  Project Id  Recheck Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-connect/{project_id}/start":{"post":{"tags":["portal-social-connect"],"summary":"Start","description":"The network's sign-in URL for her own CRM, to open in a popup.","operationId":"start_portal_social_connect__project_id__start_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__portal_social_connect__StartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Portal Social Connect  Project Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-connect/{project_id}/accounts":{"post":{"tags":["portal-social-connect"],"summary":"Accounts","description":"The pages/profiles this sign-in can connect.","operationId":"accounts_portal_social_connect__project_id__accounts_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accounts Portal Social Connect  Project Id  Accounts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-connect/{project_id}/attach":{"post":{"tags":["portal-social-connect"],"summary":"Attach","description":"Connect the page/profile she picked, mirror it, return the fresh status.","operationId":"attach_portal_social_connect__project_id__attach_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Attach Portal Social Connect  Project Id  Attach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-setup/self-serve-stats":{"get":{"tags":["admin"],"summary":"Get Self Serve Stats","description":"How many authors finished the setup steps alone versus on the Kickoff.","operationId":"get_self_serve_stats_admin_launch_setup_self_serve_stats_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Self Serve Stats Admin Launch Setup Self Serve Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai-check/{token}":{"get":{"tags":["ai-check"],"summary":"Public Ai Check Code","description":"The one-time code for the AI-check page (called by the page's JavaScript).","operationId":"public_ai_check_code_api_ai_check__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Ai Check Code Api Ai Check  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-studio/{project_id}/brief":{"put":{"tags":["portal-cover-studio"],"summary":"Put Cover Brief","description":"Save the author's free-text cover vision (<=2000 chars).","operationId":"put_cover_brief_portal_cover_studio__project_id__brief_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverBriefRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__cover_studio__CoverBriefResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-studio/{project_id}/brief/upload":{"post":{"tags":["portal-cover-studio"],"summary":"Upload Cover Brief Asset","description":"Upload a brief asset into one of the three lanes.\n\nSeries predecessors and brand assets require an ownership attestation (the\nauthor owns them). Inspiration images require the lighter \"sharing as\ninspiration only\" attestation and are stored REFERENCE-ONLY.","operationId":"upload_cover_brief_asset_portal_cover_studio__project_id__brief_upload_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_cover_brief_asset_portal_cover_studio__project_id__brief_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__cover_studio__CoverBriefResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-studio/{project_id}/own-cover":{"post":{"tags":["portal-cover-studio"],"summary":"Upload Own Cover","description":"The author's own front cover becomes a cover concept.\n\nAlways used: size, shape and text problems come back as plain advisory\nflags, never a refusal. Only a file we cannot open is refused.","operationId":"upload_own_cover_portal_cover_studio__project_id__own_cover_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_own_cover_portal_cover_studio__project_id__own_cover_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnCoverUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-studio/{project_id}/concepts/{concept_id}/refine":{"post":{"tags":["portal-cover-studio"],"summary":"Refine Cover Concept","description":"Refine a cover concept with an edit instruction (enqueues Celery).","operationId":"refine_cover_concept_portal_cover_studio__project_id__concepts__concept_id__refine_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"concept_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Concept Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverRefineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverRefineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-studio/{project_id}/concepts/{concept_id}/url":{"get":{"tags":["portal-cover-studio"],"summary":"Get Cover Concept Url","description":"Return a short-lived presigned URL for a cover concept image.\n\nThe frontend proxies this same-origin (the books bucket emits no CORS\nheaders). Project-scoped: a foreign concept 404s. The URL is derived\nserver-side from the authenticated project_id, so there is no IDOR/SSRF.","operationId":"get_cover_concept_url_portal_cover_studio__project_id__concepts__concept_id__url_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"concept_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Concept Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/cover-studio/{project_id}/versions/{concept_id}":{"get":{"tags":["portal-cover-studio"],"summary":"Get Cover Versions","description":"Return a concept's full lineage FAMILY (oldest -> newest) for the strip.\n\nA refinement creates a CHILD of the supplied concept, so an ancestor-only\nwalk never shows the paid result. We instead: (1) walk UP from the requested\nconcept to the family root, then (2) breadth-first collect every descendant\nof that root, so siblings and children of the requested concept all appear.\nThe requested concept is flagged ``is_current``. Family sorted by\n``created_at`` (oldest first).\n\nAny family member is selectable via the existing\n``POST /portal/covers/{project_id}/select`` endpoint, which is how a revert\nworks. Flag-gated read so the dark surface stays fully closed.","operationId":"get_cover_versions_portal_cover_studio__project_id__versions__concept_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"concept_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Concept Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverVersionHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/offers/{project_id}":{"get":{"tags":["portal-offers"],"summary":"Get Portal Offers","description":"Offers a rep has sent this author and they have not acted on yet.","operationId":"get_portal_offers_portal_offers__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalOffersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/home/{project_id}":{"get":{"tags":["portal-home"],"summary":"Get Portal Home","description":"Every read the portal home makes up front, in one round trip.","operationId":"get_portal_home_portal_home__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"progress","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Progress"}},{"name":"voice_readiness","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Voice Readiness"}},{"name":"products","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Products"}},{"name":"voice_setup","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Voice Setup"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/prime-call/{project_id}":{"get":{"tags":["prime-partner"],"summary":"Get Prime Call Card","operationId":"get_prime_call_card_portal_prime_call__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrimeCallCard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prime/book/{token}":{"get":{"tags":["prime-partner"],"summary":"Prime Booking Redirect","operationId":"prime_booking_redirect_prime_book__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/prime/booking":{"post":{"tags":["prime-partner"],"summary":"Prime Booking Webhook","operationId":"prime_booking_webhook_webhooks_prime_booking_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Prime Booking Webhook Webhooks Prime Booking Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions":{"post":{"tags":["portal-import"],"summary":"Create Import Session","description":"Create the project's guided import session (one non-terminal at a time).","operationId":"create_import_session_portal_import__project_id__sessions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImportSessionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/new-book":{"post":{"tags":["portal-import"],"summary":"Start Import As New Book","description":"Spend one of the author's prepaid credits on a new book for this import.\n\nThe Blueprint-seeded book is left untouched. The credit is always the\nsession author's own oldest unspent one, picked server-side, so no client\nid can reach another author's credit. No offer (a cleared credit, no seed,\nthe kill switch off) is a 404 and the wizard falls back to the in-place\nimport.","operationId":"start_import_as_new_book_portal_import__project_id__new_book_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartNextBookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}":{"get":{"tags":["portal-import"],"summary":"Get Import Session","description":"Session status + ordered files + proposed map (when ready).","operationId":"get_import_session_portal_import__project_id__sessions__session_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}/files":{"post":{"tags":["portal-import"],"summary":"Upload Import File","description":"Add one manuscript file to an open session (multipart upload).","operationId":"upload_import_file_portal_import__project_id__sessions__session_id__files_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_import_file_portal_import__project_id__sessions__session_id__files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}/google-docs":{"post":{"tags":["portal-import"],"summary":"Register Import Google Doc","description":"Register a Google Doc shared with the service account (no fetch yet).","operationId":"register_import_google_doc_portal_import__project_id__sessions__session_id__google_docs_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterGoogleDocRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}/files/{file_id}":{"patch":{"tags":["portal-import"],"summary":"Update Import File","description":"Reorder or remove a file — only while the session is still open.","operationId":"update_import_file_portal_import__project_id__sessions__session_id__files__file_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateImportFileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Import File Portal Import  Project Id  Sessions  Session Id  Files  File Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}/scope":{"post":{"tags":["portal-import"],"summary":"Set Import Scope","description":"Set the author's scope selection; computes + persists the stage plan.","operationId":"set_import_scope_portal_import__project_id__sessions__session_id__scope_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetScopeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}/map":{"patch":{"tags":["portal-import"],"summary":"Edit Import Map","description":"Persist the author-edited book map (only in map_ready; CAS on\nmap_version — a stale expected_map_version returns 409).","operationId":"edit_import_map_portal_import__project_id__sessions__session_id__map_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}/map/approve":{"post":{"tags":["portal-import"],"summary":"Approve Import Map","description":"The confirmation gate: approve the pinned map version and enqueue\nmaterialization. Requires map_ready + all files terminal + zero\nunclassified sections + acknowledged near-duplicate warnings.","operationId":"approve_import_map_portal_import__project_id__sessions__session_id__map_approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveMapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/import/{project_id}/sessions/{session_id}/process":{"post":{"tags":["portal-import"],"summary":"Start Import Processing","description":"Freeze the session (open -> processing) and enqueue normalization.","operationId":"start_import_processing_portal_import__project_id__sessions__session_id__process_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/catalog":{"get":{"tags":["portal-images"],"summary":"Get Safe Chart Catalog","description":"Author-friendly chart/diagram menu (static, from SAFE_CHART_CATALOG).","operationId":"get_safe_chart_catalog_portal_images_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeChartCatalogResponse"}}}}}}},"/portal/images/{project_id}/assets/{asset_id}/url":{"get":{"tags":["portal-images"],"summary":"Get Placement Asset Url","description":"Presign an image asset for the same-origin proxy (R2 has no CORS).\n\nRead-only and NOT flag-gated: an image already produced must stay viewable\neven if new authoring is turned off. The presigned URL is derived server-side\nfrom the authenticated project id (Pattern B: a foreign asset id reads as a\nplain 404), so there is no SSRF/IDOR surface — the client never supplies a\nkey or a bucket.","operationId":"get_placement_asset_url_portal_images__project_id__assets__asset_id__url_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/chapters/{chapter_id}/placements":{"get":{"tags":["portal-images"],"summary":"List Chapter Placements","description":"List a chapter's image placements (presign-free asset descriptors).","operationId":"list_chapter_placements_portal_images__project_id__chapters__chapter_id__placements_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-images"],"summary":"Create Chapter Placement","description":"Create an image placement anchored to a passage in the current draft.","operationId":"create_chapter_placement_portal_images__project_id__chapters__chapter_id__placements_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlacementRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/upload":{"post":{"tags":["portal-images"],"summary":"Upload Placement Image","description":"Upload an author-owned image for a placement (immutable original +\nvalidated derivative). Requires an ownership attestation.","operationId":"upload_placement_image_portal_images__project_id__placements__placement_id__upload_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_placement_image_portal_images__project_id__placements__placement_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/sketch":{"post":{"tags":["portal-images"],"summary":"Redraw Placement Sketch","description":"The author's own drawing for this spot, redrawn as a professional\ngraphic (``sketch_redraw``). The drawing is kept as the spot's source; the\ngraphic lands as a preview she approves.","operationId":"redraw_placement_sketch_portal_images__project_id__placements__placement_id__sketch_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_redraw_placement_sketch_portal_images__project_id__placements__placement_id__sketch_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/generate":{"post":{"tags":["portal-images"],"summary":"Generate Placement Image","description":"Describe-an-image: persist the description and enqueue generation.","operationId":"generate_placement_image_portal_images__project_id__placements__placement_id__generate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDescribedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/chart":{"post":{"tags":["portal-images"],"summary":"Generate Placement Chart","description":"Safe-catalog chart/diagram: enqueue a deterministic render.","operationId":"generate_placement_chart_portal_images__project_id__placements__placement_id__chart_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateChartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/refine":{"post":{"tags":["portal-images"],"summary":"Refine Placement Image","description":"Refine the placement's current image with an edit instruction.","operationId":"refine_placement_image_portal_images__project_id__placements__placement_id__refine_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefinePlacementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/metadata":{"patch":{"tags":["portal-images"],"summary":"Save Picture Copy","operationId":"save_picture_copy_portal_images__project_id__placements__placement_id__metadata_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlacementMetadataRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/approve":{"post":{"tags":["portal-images"],"summary":"Approve Placement Route","description":"Move a placement to ``placed`` — re-enforces the hard placed-gate.","operationId":"approve_placement_route_portal_images__project_id__placements__placement_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}":{"delete":{"tags":["portal-images"],"summary":"Remove Placement Route","description":"Soft-remove a placement (status ``removed``).\n\nFor a placement materialized from ops-approved author media (#1563), the\nSOURCE MATERIAL is flipped to ``do_not_use`` FIRST and fatally: without it\nthe material still reads as approved, and the reconciler — which restores a\nremoved placement whose material was re-approved — would put the picture\nstraight back on the author's next sync.","operationId":"remove_placement_route_portal_images__project_id__placements__placement_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/placements/{placement_id}/move":{"post":{"tags":["portal-images"],"summary":"Move Placement Route","description":"TRUE move: re-anchor an existing picture to a new spot (asset kept).\n\nRebuilds the anchor server-side against the placement's current chapter draft\nexactly like create. Allowed only from preview/placed/orphaned-with-asset;\nrefused (409) otherwise. The picture is never lost.","operationId":"move_placement_route_portal_images__project_id__placements__placement_id__move_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"placement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Placement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovePlacementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/chapters/{chapter_id}/figures":{"get":{"tags":["portal-images"],"summary":"List Chapter Figures Route","description":"List a chapter's image_plan figures for the reposition panel.\n\nRead-only and NOT flag-gated: authors can always SEE their figures. The move\nand remove writes below are the gated affordances.","operationId":"list_chapter_figures_route_portal_images__project_id__chapters__chapter_id__figures_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterFigureListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/chapters/{chapter_id}/figures/{figure_id}/move":{"post":{"tags":["portal-images"],"summary":"Move Chapter Figure Route","description":"Reposition an image_plan figure to a new paragraph index.\n\nSUPERSEDED for the common case (#1563): author media is materialized into\n``chapter_image_placements``, so the author moves it inline in the reader via\nthe placements move endpoint. This route stays live because the plan is what\nthe Google Doc and the compiler read — it re-anchors the backing PLACEMENT\n(the durable source), rewrites the derived plan entry so the doc/compiler see\nthe move now, and makes a best-effort surgical Google Doc move. Figures with\nno placement row yet fall back to the legacy material-hint write.","operationId":"move_chapter_figure_route_portal_images__project_id__chapters__chapter_id__figures__figure_id__move_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"figure_id","in":"path","required":true,"schema":{"type":"string","title":"Figure Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveFigureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FigureMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/chapters/{chapter_id}/figures/{figure_id}/remove":{"post":{"tags":["portal-images"],"summary":"Remove Chapter Figure Route","description":"Durably remove an image_plan figure from the book.\n\nSUPERSEDED for the common case (#1563) by the inline placement remove; see\nthe move route above. Soft-removes the backing PLACEMENT and flips the source\nmaterial to ``do_not_use`` (so neither the legacy projection nor the\nreconciler can resurrect it), drops the derived plan entry, then makes a\nbest-effort surgical Google Doc delete (comment-anchor safe).","operationId":"remove_chapter_figure_route_portal_images__project_id__chapters__chapter_id__figures__figure_id__remove_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"figure_id","in":"path","required":true,"schema":{"type":"string","title":"Figure Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FigureMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/chapters/{chapter_id}/delegation":{"patch":{"tags":["portal-images"],"summary":"Set Chapter Delegation","description":"Decide-for-me toggle: delegate figures to the AI, or manage them here.","operationId":"set_chapter_delegation_portal_images__project_id__chapters__chapter_id__delegation_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDelegationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/images-disabled":{"get":{"tags":["portal-images"],"summary":"Get Book Images Disabled","description":"Current book-level \"no images\" state (for the settings toggle).","operationId":"get_book_images_disabled_portal_images__project_id__images_disabled_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesDisabledResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal-images"],"summary":"Set Book Images Disabled","description":"Book-level \"no images at all\" opt-out (default for every chapter).","operationId":"set_book_images_disabled_portal_images__project_id__images_disabled_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetBookImagesDisabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesDisabledResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/images/{project_id}/chapters/{chapter_id}/images-disabled":{"put":{"tags":["portal-images"],"summary":"Set Chapter Images Disabled","description":"Per-chapter image opt-out override (None = inherit the book default).","operationId":"set_chapter_images_disabled_portal_images__project_id__chapters__chapter_id__images_disabled_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetChapterImagesDisabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesDisabledResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-plate/{project_id}":{"get":{"tags":["portal-photo-plate"],"summary":"Get Photo Plate","description":"Plate contents plus the page cost, shown to the author BEFORE compile.","operationId":"get_photo_plate_portal_photo_plate__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-plate/{project_id}/upload/presign":{"post":{"tags":["portal-photo-plate"],"summary":"Presign Photo Plate Upload","description":"Presign a direct-to-R2 PUT for one photo-insert scan.","operationId":"presign_photo_plate_upload_portal_photo_plate__project_id__upload_presign_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlatePresignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlatePresignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-plate/{project_id}/upload/confirm":{"post":{"tags":["portal-photo-plate"],"summary":"Confirm Photo Plate Upload","description":"Validate a staged scan and record it as a plate photo.","operationId":"confirm_photo_plate_upload_portal_photo_plate__project_id__upload_confirm_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-plate/{project_id}/order":{"put":{"tags":["portal-photo-plate"],"summary":"Reorder Photo Plate","description":"Rewrite the FULL plate order in one call.\n\nTakes the complete ordered id list, not a pair to swap: per-row swaps\ncollide against the partial unique index on ``(project_id, sort_order)``.","operationId":"reorder_photo_plate_portal_photo_plate__project_id__order_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateReorderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-plate/{project_id}/images/{image_id}":{"patch":{"tags":["portal-photo-plate"],"summary":"Update Photo Plate Image Route","description":"Edit a caption, or override a resolution exclusion.","operationId":"update_photo_plate_image_route_portal_photo_plate__project_id__images__image_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Image Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal-photo-plate"],"summary":"Remove Photo Plate Image Route","description":"Tombstone one photo (frees its order slot, keeps the R2 provenance).","operationId":"remove_photo_plate_image_route_portal_photo_plate__project_id__images__image_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/photo-plate/{project_id}/captions/suggest":{"post":{"tags":["portal-photo-plate"],"summary":"Suggest Photo Plate Captions","description":"Queue grounded caption drafts for photos still lacking a caption.\n\nENQUEUES; it does not generate. The pass sends each photograph to a vision\nmodel with the author's description, and AI agent calls never run inside a\nrequest handler in this codebase. The portal polls ``GET /{project_id}``\nuntil ``caption_candidates`` appears.\n\nSuggestions only. Nothing is ever written into ``caption``, and a photo the\nauthor has already captioned is left alone — a later run must never quietly\nreplace their own words.","operationId":"suggest_photo_plate_captions_portal_photo_plate__project_id__captions_suggest_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPlateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/plan-update/{project_id}":{"get":{"tags":["portal-plan-update"],"summary":"Get Plan Update","operationId":"get_plan_update_portal_plan_update__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanUpdateView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/plan-update/{project_id}/keep":{"post":{"tags":["portal-plan-update"],"summary":"Keep My Plan","operationId":"keep_my_plan_portal_plan_update__project_id__keep_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanUpdateChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanUpdateChoiceResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/plan-update/{project_id}/use-new":{"post":{"tags":["portal-plan-update"],"summary":"Use The New Plan","operationId":"use_the_new_plan_portal_plan_update__project_id__use_new_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanUpdateChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanUpdateChoiceResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-map/{project_id}":{"get":{"tags":["portal-book-map"],"summary":"Get Book Map","operationId":"get_book_map_portal_book_map__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookMapView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-map/{project_id}/chapter":{"post":{"tags":["portal-book-map"],"summary":"Request Book Map Chapter","operationId":"request_book_map_chapter_portal_book_map__project_id__chapter_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookMapChapterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookMapChapterResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/markup-scans/{project_id}/upload/presign":{"post":{"tags":["portal-markup-scans"],"summary":"Presign Markup Scan Upload","description":"Presign a direct-to-R2 PUT for one photographed or scanned page.\n\n``client_batch_id`` names the upload batch this page belongs to. It goes\ninto the staged key and marks the batch active, so the abandoned-upload\nsweep never deletes an earlier page of a batch still uploading.","operationId":"presign_markup_scan_upload_portal_markup_scans__project_id__upload_presign_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"client_batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9-]{8,64}$"},{"type":"null"}],"title":"Client Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanPresignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanPresignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/markup-scans/{project_id}/scans":{"post":{"tags":["portal-markup-scans"],"summary":"Submit Markup Scan","description":"Turn a set of staged uploads into one scan job and queue the read.","operationId":"submit_markup_scan_portal_markup_scans__project_id__scans_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal-markup-scans"],"summary":"List Markup Scans Route","description":"Recent open batches (so a reloaded page picks up where it was).","operationId":"list_markup_scans_route_portal_markup_scans__project_id__scans_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/markup-scans/{project_id}/scans/{scan_id}":{"get":{"tags":["portal-markup-scans"],"summary":"Get Markup Scan Route","description":"One batch's status and, once read, the items to confirm.","operationId":"get_markup_scan_route_portal_markup_scans__project_id__scans__scan_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal-markup-scans"],"summary":"Dismiss Markup Scan","description":"\"Never mind\": stop reading (if it still is) and remove the photos.","operationId":"dismiss_markup_scan_portal_markup_scans__project_id__scans__scan_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/markup-scans/{project_id}/scans/{scan_id}/apply":{"post":{"tags":["portal-markup-scans"],"summary":"Apply Markup Scan","description":"Send the author's confirmed items to her writer in one revision round.\n\nAnchored items go as inline comments; a note that points at no passage\ngoes in the SAME send as a note about the chapter (GH #10251): with the\ncomments when there are some, or through the ordinary chapter feedback\npath when it is all she ticked.","operationId":"apply_markup_scan_portal_markup_scans__project_id__scans__scan_id__apply_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanApplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkupScanApplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-changes/{project_id}":{"post":{"tags":["portal-book-changes"],"summary":"Submit Book Change Request","operationId":"submit_book_change_request_portal_book_changes__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookChangeRequestCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Book Change Request Portal Book Changes  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-changes/{project_id}/latest":{"get":{"tags":["portal-book-changes"],"summary":"Latest Book Change Request","operationId":"latest_book_change_request_portal_book_changes__project_id__latest_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Latest Book Change Request Portal Book Changes  Project Id  Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-changes/{project_id}/{request_id}":{"get":{"tags":["portal-book-changes"],"summary":"Get Book Change Request","operationId":"get_book_change_request_portal_book_changes__project_id___request_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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 Get Book Change Request Portal Book Changes  Project Id   Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-changes/{project_id}/{request_id}/items/{item_id}/pages":{"get":{"tags":["portal-book-changes"],"summary":"Book Change Item Pages","description":"Pictures of the page a change is on now and the page it goes to (30-minute links).","operationId":"book_change_item_pages_portal_book_changes__project_id___request_id__items__item_id__pages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{1,3}$","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Book Change Item Pages Portal Book Changes  Project Id   Request Id  Items  Item Id  Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-changes/{project_id}/{request_id}/confirm":{"post":{"tags":["portal-book-changes"],"summary":"Confirm Book Change Request","operationId":"confirm_book_change_request_portal_book_changes__project_id___request_id__confirm_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookChangeConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Book Change Request Portal Book Changes  Project Id   Request Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/book-changes/{project_id}/{request_id}/cancel":{"post":{"tags":["portal-book-changes"],"summary":"Cancel Book Change Request","operationId":"cancel_book_change_request_portal_book_changes__project_id___request_id__cancel_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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 Cancel Book Change Request Portal Book Changes  Project Id   Request Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/marketing-blueprint/{project_id}":{"get":{"tags":["portal-marketing-blueprint"],"summary":"Get Portal Marketing Blueprint","description":"The delivered Marketing Blueprint, as the author's own document.","operationId":"get_portal_marketing_blueprint_portal_marketing_blueprint__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingBlueprintResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/memoir-family/{project_id}":{"get":{"tags":["portal-memoir-family"],"summary":"Get Family Status","description":"Contributors, their call state, and the sidebars awaiting a decision.","operationId":"get_family_status_portal_memoir_family__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Family Status Portal Memoir Family  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/memoir-family/{project_id}/contributors":{"post":{"tags":["portal-memoir-family"],"summary":"Invite Family Contributor","description":"Invite one relative. Note the absence of a phone field on the body.","operationId":"invite_family_contributor_portal_memoir_family__project_id__contributors_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoirContributorCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite Family Contributor Portal Memoir Family  Project Id  Contributors Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/memoir-family/{project_id}/contributors/{contributor_id}/revoke":{"post":{"tags":["portal-memoir-family"],"summary":"Revoke Family Contributor","description":"Author-side withdrawal. Same teardown as the contributor's own link.","operationId":"revoke_family_contributor_portal_memoir_family__project_id__contributors__contributor_id__revoke_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contributor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contributor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Family Contributor Portal Memoir Family  Project Id  Contributors  Contributor Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/memoir-family/{project_id}/contributors/{contributor_id}/excerpts":{"get":{"tags":["portal-memoir-family"],"summary":"Get Contributor Excerpts","description":"The contributor's own words, so the author can build a sidebar from them.\n\nThis is the deliberate substitute for automated sidebar drafting: the\nauthor reads what their relative actually said and chooses the passage.\nEvery excerpt is a human-speaker segment of the contributor's transcript, so\na sidebar's ``evidence_basis`` can point at real spoken text rather than a\nmodel's paraphrase.","operationId":"get_contributor_excerpts_portal_memoir_family__project_id__contributors__contributor_id__excerpts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contributor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contributor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Contributor Excerpts Portal Memoir Family  Project Id  Contributors  Contributor Id  Excerpts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/memoir-family/{project_id}/sidebars":{"post":{"tags":["portal-memoir-family"],"summary":"Create Family Sidebar","description":"Create one DRAFT sidebar. It still needs an explicit approval to compile.\n\nThe author writes the passage, so its prose is theirs to choose. What is NOT\ntheirs to choose is whose interview it claims to come from: Pattern B means\nthe ownership check lives here, so a foreign ``contributor_id`` or\n``source_interview_id`` cannot be attached to this project's book and end up\nnaming another author's relative as the source of a quote.","operationId":"create_family_sidebar_portal_memoir_family__project_id__sidebars_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoirSidebarCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Family Sidebar Portal Memoir Family  Project Id  Sidebars Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/memoir-family/{project_id}/sidebars/{sidebar_id}/decision":{"post":{"tags":["portal-memoir-family"],"summary":"Decide Family Sidebar","description":"Approve or reject one sidebar. Approval is the ONLY route into the book.","operationId":"decide_family_sidebar_portal_memoir_family__project_id__sidebars__sidebar_id__decision_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"sidebar_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sidebar Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoirSidebarDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Family Sidebar Portal Memoir Family  Project Id  Sidebars  Sidebar Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/family/{token}":{"get":{"tags":["memoir-family"],"summary":"Get Family Context","description":"Render the invite context and the canonical release. Consumes nothing.","operationId":"get_family_context_api_family__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Family Context Api Family  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/family/{token}/schedule":{"post":{"tags":["memoir-family"],"summary":"Schedule Family Call","description":"Book the call. The contributor's phone and consent arrive together.","operationId":"schedule_family_call_api_family__token__schedule_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamilyScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Schedule Family Call Api Family  Token  Schedule Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/family/{token}/withdraw":{"post":{"tags":["memoir-family"],"summary":"Withdraw Family Contributor","description":"Withdraw: cancels any scheduled call and deletes the contributor's traces.\n\nReachable both before and after booking — the booking does not burn the\ntoken, precisely so a relative who changes their mind still has a working\nlink. Revocation DOES burn it, so this is idempotent from the caller's side\n(a second attempt sees the same 404 as an unknown link).","operationId":"withdraw_family_contributor_api_family__token__withdraw_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Withdraw Family Contributor Api Family  Token  Withdraw Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/co-author/email/unsubscribe":{"get":{"tags":["co-author"],"summary":"Co Author Unsubscribe Page","operationId":"co_author_unsubscribe_page_api_co_author_email_unsubscribe_get","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":900,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["co-author"],"summary":"Co Author Unsubscribe","operationId":"co_author_unsubscribe_api_co_author_email_unsubscribe_post","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":900,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/co-author/call-move/answer":{"get":{"tags":["co-author"],"summary":"Joint Call Move Page","operationId":"joint_call_move_page_api_co_author_call_move_answer_get","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":900,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["co-author"],"summary":"Joint Call Move Answer","operationId":"joint_call_move_answer_api_co_author_call_move_answer_post","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":900,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/co-author/{token}":{"get":{"tags":["co-author"],"summary":"Get Co Author Invite","operationId":"get_co_author_invite_api_co_author__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Co Author Invite Api Co Author  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/co-author/{token}/accept":{"post":{"tags":["co-author"],"summary":"Accept Co Author Invite","operationId":"accept_co_author_invite_api_co_author__token__accept_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoAuthorAcceptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Co Author Invite Api Co Author  Token  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/co-author/{token}/decline":{"post":{"tags":["co-author"],"summary":"Decline Co Author Invite","operationId":"decline_co_author_invite_api_co_author__token__decline_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decline Co Author Invite Api Co Author  Token  Decline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapter-share/{project_id}/{chapter_id}/links":{"get":{"tags":["portal-chapter-share"],"summary":"List Chapter Share Links","operationId":"list_chapter_share_links_portal_chapter_share__project_id___chapter_id__links_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterShareLinksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-chapter-share"],"summary":"Create Chapter Share Link","operationId":"create_chapter_share_link_portal_chapter_share__project_id___chapter_id__links_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChapterShareLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterShareLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapter-share/{project_id}/links/{link_id}/revoke":{"post":{"tags":["portal-chapter-share"],"summary":"Revoke Chapter Share Link","operationId":"revoke_chapter_share_link_portal_chapter_share__project_id__links__link_id__revoke_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterShareLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapter-share/{project_id}/{chapter_id}/feedback":{"get":{"tags":["portal-chapter-share"],"summary":"List Chapter Share Feedback","operationId":"list_chapter_share_feedback_portal_chapter_share__project_id___chapter_id__feedback_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"mark_seen","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mark Seen"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterShareFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapter-share/{project_id}/feedback/{feedback_id}/accept":{"post":{"tags":["portal-chapter-share"],"summary":"Accept Chapter Share Suggestion","operationId":"accept_chapter_share_suggestion_portal_chapter_share__project_id__feedback__feedback_id__accept_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterShareFeedbackActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapter-share/{project_id}/feedback/{feedback_id}/dismiss":{"post":{"tags":["portal-chapter-share"],"summary":"Dismiss Chapter Share Feedback","operationId":"dismiss_chapter_share_feedback_portal_chapter_share__project_id__feedback__feedback_id__dismiss_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterShareFeedbackActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/arc-readers/{project_id}":{"get":{"tags":["portal-arc-readers"],"summary":"Get Arc Readers","operationId":"get_arc_readers_portal_arc_readers__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArcReadersOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/arc-readers/{project_id}/invite":{"post":{"tags":["portal-arc-readers"],"summary":"Invite Arc Reader","operationId":"invite_arc_reader_portal_arc_readers__project_id__invite_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteArcReaderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArcReaderView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/arc-readers/{project_id}/testimonials/{testimonial_id}/approve":{"post":{"tags":["portal-arc-readers"],"summary":"Approve Arc Testimonial","operationId":"approve_arc_testimonial_portal_arc_readers__project_id__testimonials__testimonial_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveTestimonialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArcTestimonialView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/arc-readers/{project_id}/testimonials/{testimonial_id}/hide":{"post":{"tags":["portal-arc-readers"],"summary":"Hide Arc Testimonial","operationId":"hide_arc_testimonial_portal_arc_readers__project_id__testimonials__testimonial_id__hide_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArcTestimonialView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/arc-readers/{project_id}/launch-pack":{"get":{"tags":["portal-arc-readers"],"summary":"Get Arc Launch Pack","operationId":"get_arc_launch_pack_portal_arc_readers__project_id__launch_pack_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArcLaunchPack"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/novel":{"get":{"tags":["portal-fiction"],"summary":"Get Novel","operationId":"get_novel_portal_fiction_novel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Novel Portal Fiction Novel Get"}}}}}}},"/portal/fiction/novel/pages/{artifact_id}":{"get":{"tags":["portal-fiction"],"summary":"Get Novel Page","operationId":"get_novel_page_portal_fiction_novel_pages__artifact_id__get","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Novel Page Portal Fiction Novel Pages  Artifact Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/answers/taste":{"post":{"tags":["portal-fiction"],"summary":"Answer Taste","operationId":"answer_taste_portal_fiction_answers_taste_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasteAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Taste Portal Fiction Answers Taste Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/answers/premise":{"post":{"tags":["portal-fiction"],"summary":"Answer Premise","operationId":"answer_premise_portal_fiction_answers_premise_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PremiseAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Premise Portal Fiction Answers Premise Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/answers/read-back":{"post":{"tags":["portal-fiction"],"summary":"Answer Read Back","operationId":"answer_read_back_portal_fiction_answers_read_back_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadBackAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Read Back Portal Fiction Answers Read Back Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/answers/outline":{"post":{"tags":["portal-fiction"],"summary":"Answer Outline","operationId":"answer_outline_portal_fiction_answers_outline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutlineAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Outline Portal Fiction Answers Outline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/answers/style-sample":{"post":{"tags":["portal-fiction"],"summary":"Answer Style Sample","operationId":"answer_style_sample_portal_fiction_answers_style_sample_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StyleSampleAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Style Sample Portal Fiction Answers Style Sample Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/answers/chapter":{"post":{"tags":["portal-fiction"],"summary":"Answer Chapter","operationId":"answer_chapter_portal_fiction_answers_chapter_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Chapter Portal Fiction Answers Chapter Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/fiction/answers/final":{"post":{"tags":["portal-fiction"],"summary":"Answer Final","operationId":"answer_final_portal_fiction_answers_final_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Final Portal Fiction Answers Final Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}":{"get":{"tags":["chapter-share"],"summary":"Get Chapter Share Page","operationId":"get_chapter_share_page_api_chapter_share__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"count_view","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Count View"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/unlock":{"post":{"tags":["chapter-share"],"summary":"Unlock Chapter Share","description":"The reader confirms the email the author invited them with.","operationId":"unlock_chapter_share_api_chapter_share__token__unlock_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareUnlockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareUnlockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/read":{"post":{"tags":["chapter-share"],"summary":"Mark Chapter Share Read","description":"The reader reached the end of the chapter (one record per reader).","operationId":"mark_chapter_share_read_api_chapter_share__token__read_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/photo":{"get":{"tags":["chapter-share"],"summary":"Get Chapter Share Photo","operationId":"get_chapter_share_photo_api_chapter_share__token__photo_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/cover":{"get":{"tags":["chapter-share"],"summary":"Get Chapter Share Cover","operationId":"get_chapter_share_cover_api_chapter_share__token__cover_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/feedback":{"post":{"tags":["chapter-share"],"summary":"Post Chapter Share Feedback","operationId":"post_chapter_share_feedback_api_chapter_share__token__feedback_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/launch-list":{"post":{"tags":["chapter-share"],"summary":"Join Chapter Share Launch List","description":"\"Tell me when the book is out\": the book's own pre-launch signup.","operationId":"join_chapter_share_launch_list_api_chapter_share__token__launch_list_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrelaunchSubscribeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/book":{"get":{"tags":["arc-readers"],"summary":"Get Reading Room","operationId":"get_reading_room_api_chapter_share__token__book_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookReadingRoomResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/book/chapters/{chapter_id}":{"get":{"tags":["arc-readers"],"summary":"Get Book Chapter","operationId":"get_book_chapter_api_chapter_share__token__book_chapters__chapter_id__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookChapterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/book/chapters/{chapter_id}/read":{"post":{"tags":["arc-readers"],"summary":"Mark Book Chapter Read","operationId":"mark_book_chapter_read_api_chapter_share__token__book_chapters__chapter_id__read_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/book/chapters/{chapter_id}/feedback":{"post":{"tags":["arc-readers"],"summary":"Post Book Chapter Feedback","operationId":"post_book_chapter_feedback_api_chapter_share__token__book_chapters__chapter_id__feedback_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/book/testimonial":{"post":{"tags":["arc-readers"],"summary":"Post Book Testimonial","description":"The end-of-book reaction. Consent is recorded as an append-only receipt.","operationId":"post_book_testimonial_api_chapter_share__token__book_testimonial_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_post_book_testimonial_api_chapter_share__token__book_testimonial_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChapterShareFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chapter-share/{token}/book/testimonial/withdraw":{"post":{"tags":["arc-readers"],"summary":"Withdraw Book Testimonial","description":"The reader takes their words, name and photo back. Works on an ended link\nand with the feature switched off.","operationId":"withdraw_book_testimonial_api_chapter_share__token__book_testimonial_withdraw_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-reader-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Reader-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawTestimonialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/arc-readers/unsubscribe":{"get":{"tags":["arc-readers"],"summary":"Unsubscribe Page","operationId":"unsubscribe_page_arc_readers_unsubscribe_get","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":600,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["arc-readers"],"summary":"Unsubscribe Confirm","operationId":"unsubscribe_confirm_arc_readers_unsubscribe_post","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":600,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/silas-prep/{token}":{"get":{"tags":["silas-precall"],"summary":"Get Precall Form","description":"Form context: the author's first name, their saved answers, and the questions.","operationId":"get_precall_form_api_silas_prep__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Precall Form Api Silas Prep  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["silas-precall"],"summary":"Save Precall Form","description":"Save (or overwrite) the author's notes. Everything is optional.","operationId":"save_precall_form_api_silas_prep__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasPrecallNotesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Precall Form Api Silas Prep  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/mount":{"get":{"tags":["portal-silas"],"summary":"Silas Mount","description":"Narrow gate probe for the portal-wide dock mount.\n\nUnlike the feature routes (which 404 when disabled so a disabled project\nis indistinguishable from a missing one), this endpoint ANSWERS\nenabled=false: the frontend needs a cheap yes/no on every portal page and\npreviously proxied the full dashboard payload for it (a large per-view\nquery fan-out). It leaks nothing beyond the caller's OWN flag state.\nOne project-row read; no status computation.","operationId":"silas_mount_portal_silas_mount_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasMountResponse"}}}}}}},"/portal/silas/voice":{"post":{"tags":["portal-silas"],"summary":"Transcribe Voice Note","description":"Stage a short voice note in R2 and enqueue its transcription.\n\nThe transcription (Whisper) happens in Celery — never in this handler\n(CLAUDE.md rule). Poll GET /voice/{task_id} for the text, which lands in\nthe author's EDITABLE composer client-side.","operationId":"transcribe_voice_note_portal_silas_voice_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_transcribe_voice_note_portal_silas_voice_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasVoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/voice/{task_id}":{"get":{"tags":["portal-silas"],"summary":"Poll Voice Note","description":"Poll for the transcription produced by the enqueued voice task.","operationId":"poll_voice_note_portal_silas_voice__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasVoicePollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/conversations":{"get":{"tags":["portal-silas"],"summary":"List Conversations Route","description":"The author's past Silas chats (newest-active first) — powers a 'past\nchats' picker so they can start fresh threads instead of one giant one.\nProject-scoped: only the authenticated project's conversations are listed.","operationId":"list_conversations_route_portal_silas_conversations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasConversationListResponse"}}}}}},"post":{"tags":["portal-silas"],"summary":"Start Conversation","description":"Open a new project-scoped conversation (a co-author's own, on a co-authored book).","operationId":"start_conversation_portal_silas_conversations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartConversationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/messages":{"post":{"tags":["portal-silas"],"summary":"Post Message","description":"Persist a client turn (logged), enqueue the Silas reply task, return echo.\n\nNo agent call here — the AI runs in the Celery task (CLAUDE.md rule).","operationId":"post_message_portal_silas_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskSilasRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskSilasResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/brainstorm":{"post":{"tags":["portal-silas"],"summary":"Post Brainstorm","description":"Enqueue a read-only brainstorm (book or chapter); poll for ideas via\nGET /messages/{task_id}. No agent call here (CLAUDE.md rule).","operationId":"post_brainstorm_portal_silas_brainstorm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainstormRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainstormResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/messages/{task_id}":{"get":{"tags":["portal-silas"],"summary":"Poll Message","description":"Poll for the Silas reply produced by the enqueued task.","operationId":"poll_message_portal_silas_messages__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasPollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/conversations/latest":{"get":{"tags":["portal-silas"],"summary":"Get Latest Conversation Route","description":"Return the author's most recent conversation id + last ~30 turns.\n\nPowers reload continuity: the dock hydrates from here so history survives a\nrefresh (and late replies appear). Project-scoped like every other route —\nonly the authenticated project's own conversations are read. Returns an\nempty payload (conversation_id=None) for a brand-new author.","operationId":"get_latest_conversation_route_portal_silas_conversations_latest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasLatestConversationResponse"}}}}}}},"/portal/silas/thread/{conversation_id}":{"get":{"tags":["portal-silas"],"summary":"Get Thread","description":"Return the durable, project-scoped conversation thread (the author's own).","operationId":"get_thread_portal_silas_thread__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/SilasThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/talking-points":{"get":{"tags":["portal-silas"],"summary":"Get Talking Points","description":"List the author's PENDING talking points (newest first): only their own.","operationId":"get_talking_points_portal_silas_talking_points_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkingPointListResponse"}}}}}},"post":{"tags":["portal-silas"],"summary":"Save Talking Point","description":"Save a brainstorm idea as a talking point for the author's next call.\n\nAuthor-initiated WRITE: the ownership/flag check IS the security boundary\n(Pattern B). The project_id is server-derived; there is no project_id body\nfield to forge.","operationId":"save_talking_point_portal_silas_talking_points_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveTalkingPointRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkingPoint"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/silas/talking-points/{point_id}":{"delete":{"tags":["portal-silas"],"summary":"Remove Talking Point","description":"Dismiss a talking point — scoped to the owner; a foreign id 404s.","operationId":"remove_talking_point_portal_silas_talking_points__point_id__delete","parameters":[{"name":"point_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Point Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkingPoint"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/talkback":{"get":{"tags":["portal-voice-talkback"],"summary":"Talkback Probe","description":"Whether the Talk button shows on this chapter (flag on + chapter editable).","operationId":"talkback_probe_portal_chapters__project_id___chapter_id__talkback_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Talkback Probe Portal Chapters  Project Id   Chapter Id  Talkback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-voice-talkback"],"summary":"Upload Talkback Clip","description":"Stage her spoken note in R2 and start the transcribe-and-plan task.","operationId":"upload_talkback_clip_portal_chapters__project_id___chapter_id__talkback_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_talkback_clip_portal_chapters__project_id___chapter_id__talkback_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Talkback Clip Portal Chapters  Project Id   Chapter Id  Talkback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/talkback/text":{"post":{"tags":["portal-voice-talkback"],"summary":"Submit Typed Note","description":"\"Type it instead\": the same plan from typed words (mic blocked or a mis-hearing).","operationId":"submit_typed_note_portal_chapters__project_id___chapter_id__talkback_text_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypedNoteRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Typed Note Portal Chapters  Project Id   Chapter Id  Talkback Text Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/talkback/{talk_id}":{"get":{"tags":["portal-voice-talkback"],"summary":"Poll Talkback","operationId":"poll_talkback_portal_chapters__project_id___chapter_id__talkback__talk_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"talk_id","in":"path","required":true,"schema":{"type":"string","title":"Talk Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Poll Talkback Portal Chapters  Project Id   Chapter Id  Talkback  Talk Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/talkback/{talk_id}/apply":{"post":{"tags":["portal-voice-talkback"],"summary":"Apply Talkback","description":"Do it: apply the plan she saw. A second tap returns the first result.","operationId":"apply_talkback_portal_chapters__project_id___chapter_id__talkback__talk_id__apply_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"talk_id","in":"path","required":true,"schema":{"type":"string","title":"Talk Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Talkback Portal Chapters  Project Id   Chapter Id  Talkback  Talk Id  Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/talkback/{talk_id}/undo":{"post":{"tags":["portal-voice-talkback"],"summary":"Undo Talkback","description":"Undo a word-for-word change, only while the chapter is as Do it left it.","operationId":"undo_talkback_portal_chapters__project_id___chapter_id__talkback__talk_id__undo_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"talk_id","in":"path","required":true,"schema":{"type":"string","title":"Talk Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Undo Talkback Portal Chapters  Project Id   Chapter Id  Talkback  Talk Id  Undo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/line-edits":{"get":{"tags":["portal-line-edit"],"summary":"Line Edit Probe","description":"Whether Say it / Ask for a change use the fast paragraph edit on this chapter.","operationId":"line_edit_probe_portal_chapters__project_id___chapter_id__line_edits_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Line Edit Probe Portal Chapters  Project Id   Chapter Id  Line Edits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-line-edit"],"summary":"Start Line Edit","description":"Ask for a change (typed words or a chip) to the paragraph she paused on.","operationId":"start_line_edit_portal_chapters__project_id___chapter_id__line_edits_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineEditRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Line Edit Portal Chapters  Project Id   Chapter Id  Line Edits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/line-edits/voice":{"post":{"tags":["portal-line-edit"],"summary":"Start Spoken Line Edit","description":"Say it: stage the clip; the task transcribes it, then edits like a typed request.","operationId":"start_spoken_line_edit_portal_chapters__project_id___chapter_id__line_edits_voice_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_start_spoken_line_edit_portal_chapters__project_id___chapter_id__line_edits_voice_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Spoken Line Edit Portal Chapters  Project Id   Chapter Id  Line Edits Voice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/line-edits/transcribe":{"post":{"tags":["portal-line-edit"],"summary":"Transcribe Clip","description":"Say it on a fact card: just the words (she sends them as that fact's fix).","operationId":"transcribe_clip_portal_chapters__project_id___chapter_id__line_edits_transcribe_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_transcribe_clip_portal_chapters__project_id___chapter_id__line_edits_transcribe_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transcribe Clip Portal Chapters  Project Id   Chapter Id  Line Edits Transcribe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/line-edits/{job_id}":{"get":{"tags":["portal-line-edit"],"summary":"Poll Line Edit","operationId":"poll_line_edit_portal_chapters__project_id___chapter_id__line_edits__job_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Poll Line Edit Portal Chapters  Project Id   Chapter Id  Line Edits  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/line-edits/{job_id}/undo":{"post":{"tags":["portal-line-edit"],"summary":"Undo Line Edit","description":"Put her own words back, only while the chapter is as the edit left it.","operationId":"undo_line_edit_portal_chapters__project_id___chapter_id__line_edits__job_id__undo_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Undo Line Edit Portal Chapters  Project Id   Chapter Id  Line Edits  Job Id  Undo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/line-edits/{job_id}/retry":{"post":{"tags":["portal-line-edit"],"summary":"Retry Line Edit","description":"Try again: the same request on her original words, on the other model first.","operationId":"retry_line_edit_portal_chapters__project_id___chapter_id__line_edits__job_id__retry_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Line Edit Portal Chapters  Project Id   Chapter Id  Line Edits  Job Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/line-edits/typed":{"post":{"tags":["portal-line-edit"],"summary":"Learn From Typed Edit","description":"Type it saved her words (the fenced direct-edit path): count it as style evidence.","operationId":"learn_from_typed_edit_portal_chapters__project_id___chapter_id__line_edits_typed_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypedEditRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Learn From Typed Edit Portal Chapters  Project Id   Chapter Id  Line Edits Typed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/style-lessons/not-me":{"post":{"tags":["portal-line-edit"],"summary":"Style Lesson Not Me","description":"\"Not me\": drop a lesson from what we carry into every chapter, and never re-learn it.","operationId":"style_lesson_not_me_portal_chapters__project_id___chapter_id__style_lessons_not_me_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotMeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Style Lesson Not Me Portal Chapters  Project Id   Chapter Id  Style Lessons Not Me Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/quick-checks":{"get":{"tags":["portal-quick-checks"],"summary":"Get Quick Checks","description":"The deck: details to check and unheard stories, in reading order.","operationId":"get_quick_checks_portal_chapters__project_id___chapter_id__quick_checks_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Quick Checks Portal Chapters  Project Id   Chapter Id  Quick Checks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/quick-checks/{flag_id}/answer":{"post":{"tags":["portal-quick-checks"],"summary":"Answer Quick Check","description":"Apply one answer now. A moved sentence comes back as 409 with the fresh cards.","operationId":"answer_quick_check_portal_chapters__project_id___chapter_id__quick_checks__flag_id__answer_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"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/QuickAnswerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Quick Check Portal Chapters  Project Id   Chapter Id  Quick Checks  Flag Id  Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/quick-checks/jobs/{job_id}":{"get":{"tags":["portal-quick-checks"],"summary":"Poll Quick Check","description":"A \"Note for us\" fix in progress; settled jobs carry the fresh cards.","operationId":"poll_quick_check_portal_chapters__project_id___chapter_id__quick_checks_jobs__job_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Poll Quick Check Portal Chapters  Project Id   Chapter Id  Quick Checks Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/quick-checks/jobs/{job_id}/undo":{"post":{"tags":["portal-quick-checks"],"summary":"Undo Quick Check","description":"Undo one answer: her text comes back and the card opens again.","operationId":"undo_quick_check_portal_chapters__project_id___chapter_id__quick_checks_jobs__job_id__undo_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Undo Quick Check Portal Chapters  Project Id   Chapter Id  Quick Checks Jobs  Job Id  Undo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/expert-forewords/{project_id}":{"get":{"tags":["portal-expert-forewords"],"summary":"List Expert Forewords","operationId":"list_expert_forewords_portal_expert_forewords__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertForewordsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-expert-forewords"],"summary":"Create Expert Foreword Invite","operationId":"create_expert_foreword_invite_portal_expert_forewords__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExpertForewordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertForewordInvite"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/expert-forewords/{project_id}/{foreword_id}/new-link":{"post":{"tags":["portal-expert-forewords"],"summary":"New Expert Foreword Link","operationId":"new_expert_foreword_link_portal_expert_forewords__project_id___foreword_id__new_link_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"foreword_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Foreword Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertForewordInvite"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/expert-forewords/{project_id}/{foreword_id}/revoke":{"post":{"tags":["portal-expert-forewords"],"summary":"Revoke Expert Foreword","operationId":"revoke_expert_foreword_portal_expert_forewords__project_id___foreword_id__revoke_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"foreword_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Foreword Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertForewordInvite"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/expert-forewords/{project_id}/{foreword_id}/accept":{"post":{"tags":["portal-expert-forewords"],"summary":"Accept Expert Foreword","description":"Put an expert-approved foreword into this book's Foreword page.","operationId":"accept_expert_foreword_portal_expert_forewords__project_id___foreword_id__accept_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"foreword_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Foreword Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptExpertForewordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptExpertForewordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/expert-forewords/{project_id}/byline/clear":{"post":{"tags":["portal-expert-forewords"],"summary":"Clear Expert Foreword Byline","description":"Remove the \"Foreword by ...\" line from the book's Foreword page.","operationId":"clear_expert_foreword_byline_portal_expert_forewords__project_id__byline_clear_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearBylineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}":{"get":{"tags":["expert-foreword"],"summary":"Get Expert Foreword Page","operationId":"get_expert_foreword_page_api_foreword__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"count_view","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Count View"}},{"name":"x-expert-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Expert-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertForewordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/photo":{"get":{"tags":["expert-foreword"],"summary":"Get Expert Foreword Photo","operationId":"get_expert_foreword_photo_api_foreword__token__photo_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/cover":{"get":{"tags":["expert-foreword"],"summary":"Get Expert Foreword Cover","operationId":"get_expert_foreword_cover_api_foreword__token__cover_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/unlock":{"post":{"tags":["expert-foreword"],"summary":"Unlock Expert Foreword","description":"The expert confirms the email the author invited them with.","operationId":"unlock_expert_foreword_api_foreword__token__unlock_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertUnlockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertUnlockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/draft":{"post":{"tags":["expert-foreword"],"summary":"Submit Expert Foreword Draft","description":"Door 1: the expert typed or pasted the foreword.","operationId":"submit_expert_foreword_draft_api_foreword__token__draft_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-expert-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Expert-Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertOkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/recording":{"post":{"tags":["expert-foreword"],"summary":"Submit Expert Foreword Recording","description":"Door 2: the expert recorded it in the browser.","operationId":"submit_expert_foreword_recording_api_foreword__token__recording_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-expert-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Expert-Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_expert_foreword_recording_api_foreword__token__recording_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertOkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/start-over":{"post":{"tags":["expert-foreword"],"summary":"Start Expert Foreword Over","operationId":"start_expert_foreword_over_api_foreword__token__start_over_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-expert-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Expert-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertOkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/approve":{"post":{"tags":["expert-foreword"],"summary":"Approve Expert Foreword","description":"The expert approves their final words and signs the attribution release.","operationId":"approve_expert_foreword_api_foreword__token__approve_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-expert-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Expert-Session"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"User-Agent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertOkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/call":{"post":{"tags":["expert-foreword"],"summary":"Request Expert Foreword Call","description":"Door 3: \"Call me now\". The expert types THEIR OWN phone; Silas calls it\na few minutes later (9am their time when it is late where they are).","operationId":"request_expert_foreword_call_api_foreword__token__call_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-expert-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Expert-Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicExpertCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForewordCallView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foreword/{token}/call/cancel":{"post":{"tags":["expert-foreword"],"summary":"Cancel Expert Foreword Call","description":"The expert no longer wants the call (before Silas dials).","operationId":"cancel_expert_foreword_call_api_foreword__token__call_cancel_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-expert-session","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"X-Expert-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForewordCallView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/me/coach":{"get":{"tags":["ai-course-coach"],"summary":"Get Coach Home","description":"Coach status (days remaining, caps) and the learner's conversations.","operationId":"get_coach_home_ai_course_me_coach_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachConversationListResponse"}}}}}}},"/ai-course/me/coach/conversations":{"post":{"tags":["ai-course-coach"],"summary":"Start Coach Conversation","description":"Start a new chat with the coach (optionally tied to the current lesson).","operationId":"start_coach_conversation_ai_course_me_coach_conversations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachStartConversationRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachConversationSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/me/coach/conversations/{conversation_id}":{"get":{"tags":["ai-course-coach"],"summary":"Get Coach Thread","description":"The whole thread; the page polls this while a reply is pending.","operationId":"get_coach_thread_ai_course_me_coach_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/CoachThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/me/coach/conversations/{conversation_id}/messages":{"post":{"tags":["ai-course-coach"],"summary":"Send Coach Message","description":"Ask the coach a question. Returns 202; the reply arrives via the thread.","operationId":"send_coach_message_ai_course_me_coach_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/CoachSendMessageRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachSendMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/status":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Podcast Tour Status","description":"Is the logged-in author a podcast author, and where do their leads land?","operationId":"get_podcast_tour_status_portal_podcast_tour_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourStatusResponse"}}}}}}},"/portal/podcast-tour/cowork-package":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Cowork Package","description":"Stream the author's personalized Cowork booking kit as a ZIP download.\n\nSame podcast-author gate as ``/status``: a non-podcast author 404s (the kit\ndoes not exist for them). Pure templating plus one bounded, best-effort\nheadshot fetch — no AI in the handler.","operationId":"get_cowork_package_portal_podcast_tour_cowork_package_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/portal/podcast-tour/overview":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Tour Overview","description":"Fulfillment overview: pitched vs package target, replies, bookings.","operationId":"get_tour_overview_portal_podcast_tour_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/portal/podcast-tour/leads":{"get":{"tags":["portal-podcast-tour"],"summary":"List Tour Leads","description":"The shows on the author's tour: targeted, pitched, replied, booked.\n\n``needs_attention=true`` returns ONLY the leads whose thread awaits the\nauthor's reply, independent of stage filter and pagination. The board's\n\"Needs your attention\" section fetches this directly so it can never\ndisagree with the overview banner count (dead-click bug, 2026-07-23:\nthe section was filtered from the CURRENT page of leads, so a stage\nfilter or a lead beyond page 1 made the banner's scroll target vanish).","operationId":"list_tour_leads_portal_podcast_tour_leads_get","parameters":[{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"needs_attention","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Needs Attention"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"recent","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/leads/{lead_id}/conversation":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Lead Conversation","description":"One show's full email thread + the waiting-on-you reply, if any.","operationId":"get_lead_conversation_portal_podcast_tour_leads__lead_id__conversation_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/replies/{reply_id}/respond":{"post":{"tags":["portal-podcast-tour"],"summary":"Respond To Reply","description":"Queue the author's own reply onto a waiting host thread (edge cases).\n\nThe handler only validates ownership + claims the single-flight send slot;\nsanitization, the compliance battery (an AI call — never in a handler), and\nthe actual SmartLead send happen in the Celery task. The portal polls the\nconversation endpoint for the outcome (manual_send_status).","operationId":"respond_to_reply_portal_podcast_tour_replies__reply_id__respond_post","parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Reply Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourRespondRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/profile":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Guest Profile","description":"The author's own editable guest-profile fields.","operationId":"get_guest_profile_portal_podcast_tour_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["portal-podcast-tour"],"summary":"Update Guest Profile","description":"Author-editable guest profile: website, book, socials + follower counts.\n\nThis is how an author gets missing grounding data (the \"what's your website /\nfollowing\" answers) to Dictate: the saved fields feed reply drafting on the\nnext host reply, and a changed website re-runs the grounding summary task.","operationId":"update_guest_profile_portal_podcast_tour_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourProfileUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/press":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Guest Kit Press","description":"Guest-kit preview of the \"As featured on\" press block.\n\nThe same live, verified placements the public guest page and the guest\nmedia kit show. Project comes from the session token (tenant-safe).","operationId":"get_guest_kit_press_portal_podcast_tour_press_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PressSummaryResponse"}}}}}}},"/portal/podcast-tour/booking-calendar":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Booking Calendar","description":"The author's podcast booking link and how to connect their own calendar.","operationId":"get_booking_calendar_portal_podcast_tour_booking_calendar_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastBookingCalendarResponse"}}}}}}},"/portal/podcast-tour/booking-calendar/connected":{"post":{"tags":["portal-podcast-tour"],"summary":"Confirm Booking Calendar Connected","description":"The author clicked \"I've connected it\": stop the calendar reminders.","operationId":"confirm_booking_calendar_connected_portal_podcast_tour_booking_calendar_connected_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastBookingCalendarResponse"}}}}}}},"/portal/podcast-tour/booking-calendar/auto-book":{"post":{"tags":["portal-podcast-tour"],"summary":"Set Booking Calendar Auto Book","description":"The author's own \"Let Dictate book podcast recordings on my calendar\" switch.\n\nGH #13273. Logged on every change (who, when, on or off). Turning it off stops\nfuture auto-bookings at once; bookings already made stay.","operationId":"set_booking_calendar_auto_book_portal_podcast_tour_booking_calendar_auto_book_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastAutoBookUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastBookingCalendarResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/booking-calendar/request":{"post":{"tags":["portal-podcast-tour"],"summary":"Request Dictate Booking Calendar","description":"The author wants a Dictate calendar in their own CRM instead of their link.\n\nThe GHL work runs in Celery; the card shows the new link once it lands.","operationId":"request_dictate_booking_calendar_portal_podcast_tour_booking_calendar_request_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastBookingCalendarRequestResponse"}}}}}}},"/portal/podcast-tour/offer":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Listener Offer","operationId":"get_listener_offer_portal_podcast_tour_offer_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOfferPortalResponse"}}}}}},"put":{"tags":["portal-podcast-tour"],"summary":"Save Listener Offer","operationId":"save_listener_offer_portal_podcast_tour_offer_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastListenerOfferRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOfferPortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/offer/pages/{page_id}/slug":{"patch":{"tags":["portal-podcast-tour"],"summary":"Update Listener Offer Slug","operationId":"update_listener_offer_slug_portal_podcast_tour_offer_pages__page_id__slug_patch","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOfferSlugRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOfferPageSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/offer/pages/{page_id}/approve-email":{"post":{"tags":["portal-podcast-tour"],"summary":"Approve Listener Offer Email","operationId":"approve_listener_offer_email_portal_podcast_tour_offer_pages__page_id__approve_email_post","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/leads/{lead_id}/stage":{"post":{"tags":["portal-podcast-tour"],"summary":"Set Lead Stage","description":"Mark a show as booked / recorded from the portal (mirrors GHL best-effort).","operationId":"set_lead_stage_portal_podcast_tour_leads__lead_id__stage_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/PodcastTourStageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/approvals":{"get":{"tags":["portal-podcast-tour"],"summary":"List Pending Approvals","description":"Hosts that passed our quality gates and wait on the author's call.","operationId":"list_pending_approvals_portal_podcast_tour_approvals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourApprovalsResponse"}}}}}}},"/portal/podcast-tour/approvals/settings":{"put":{"tags":["portal-podcast-tour"],"summary":"Set Approval Settings","description":"The author's approval mode: approve all / approve none / fit threshold.","operationId":"set_approval_settings_portal_podcast_tour_approvals_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourApprovalSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourApprovalSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/approvals/{lead_id}":{"post":{"tags":["portal-podcast-tour"],"summary":"Decide Approval","description":"Approve a host for pitching, or pass on them (terminal, never re-queued).","operationId":"decide_approval_portal_podcast_tour_approvals__lead_id__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/PodcastTourApprovalDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourApprovalDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/form-outreach":{"get":{"tags":["portal-podcast-tour"],"summary":"List Form Outreach","description":"Shows reachable only through their website form, waiting on the author.","operationId":"list_form_outreach_portal_podcast_tour_form_outreach_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastTourFormLeadsResponse"}}}}}}},"/portal/podcast-tour/form-outreach/{lead_id}/submitted":{"post":{"tags":["portal-podcast-tour"],"summary":"Mark Form Submitted","description":"The author submitted the show's contact form — record the outreach.\n\nCAS contact_found -> outreach_sent so a concurrent sweep can't be\nclobbered; from there the show rides the normal board (the author marks\nBooked when the host replies). Idempotent on an already-advanced lead.","operationId":"mark_form_submitted_portal_podcast_tour_form_outreach__lead_id__submitted_post","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/PodcastTourFormSubmittedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/season-plan":{"get":{"tags":["portal-podcast-tour"],"summary":"Get Season Plan","description":"The season plan the author approves before any host is pitched.","operationId":"get_season_plan_portal_podcast_tour_season_plan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastSeasonPlanResponse"}}}}}}},"/portal/podcast-tour/season-plan/{campaign_id}/approve":{"post":{"tags":["portal-podcast-tour"],"summary":"Approve Season Plan Route","description":"Approve the plan and let outreach start.","operationId":"approve_season_plan_route_portal_podcast_tour_season_plan__campaign_id__approve_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/PodcastSeasonPlanDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/season-plan/{campaign_id}/request-changes":{"post":{"tags":["portal-podcast-tour"],"summary":"Request Season Plan Changes Route","description":"Ask for changes. The campaign stays parked; the AI applies the edit (F12).","operationId":"request_season_plan_changes_route_portal_podcast_tour_season_plan__campaign_id__request_changes_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/PodcastSeasonPlanChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastSeasonPlanDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/season-plan/{campaign_id}/pause":{"post":{"tags":["portal-podcast-tour"],"summary":"Pause Season Outreach Route","description":"Stop new pitches. Conversations already open are untouched.","operationId":"pause_season_outreach_route_portal_podcast_tour_season_plan__campaign_id__pause_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/PodcastSeasonPlanDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-tour/season-plan/{campaign_id}/resume":{"post":{"tags":["portal-podcast-tour"],"summary":"Resume Season Outreach Route","description":"Start pitching again after a pause. Never re-opens the approval gate.","operationId":"resume_season_outreach_route_portal_podcast_tour_season_plan__campaign_id__resume_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/PodcastSeasonPlanDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/status":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Season Status","operationId":"podcast_season_status_portal_podcast_season_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Podcast Season Status Portal Podcast Season Status Get"}}}}}}},"/portal/podcast-season/overview":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Season Overview","operationId":"podcast_season_overview_portal_podcast_season_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Podcast Season Overview Portal Podcast Season Overview Get"}}}}}}},"/portal/podcast-season/seasons/{season_id}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Season Detail","description":"Return one season only through the JWT project's ownership scope.","operationId":"podcast_season_detail_portal_podcast_season_seasons__season_id__get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Podcast Season Detail Portal Podcast Season Seasons  Season Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/review-rounds/{request_id}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Review Round Detail","description":"Resolve one exact author-visible review round beyond bounded overviews.","operationId":"podcast_review_round_detail_portal_podcast_season_seasons__season_id__review_rounds__request_id__get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"kind","in":"query","required":true,"schema":{"enum":["direction","outline"],"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Podcast Review Round Detail Portal Podcast Season Seasons  Season Id  Review Rounds  Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/cover-rounds/{round_id}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Cover Round Detail","description":"Resolve one exact author-visible cover round beyond bounded overviews.","operationId":"podcast_cover_round_detail_portal_podcast_season_seasons__season_id__cover_rounds__round_id__get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"round_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Round Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Podcast Cover Round Detail Portal Podcast Season Seasons  Season Id  Cover Rounds  Round Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/restart-receipt":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Script Stage Restart Receipt","description":"Return only the author-safe receipt for one archived self-serve restart.\n\nCovers both the setup-stage and script-stage restarts (either quarantine\nmarker). Normal season detail intentionally hides replacement-authorized\narchives. This narrow resolver lets a durable notification remain exact after\na new season exists without exposing the archive key or operator diagnostics.","operationId":"podcast_script_stage_restart_receipt_portal_podcast_season_seasons__season_id__restart_receipt_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Podcast Script Stage Restart Receipt Portal Podcast Season Seasons  Season Id  Restart Receipt Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Episode Detail","description":"Resolve one exact episode to its owned season, including old history.","operationId":"podcast_episode_detail_portal_podcast_season_episodes__episode_id__get","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Podcast Episode Detail Portal Podcast Season Episodes  Episode Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/setup-cover/{concept_id}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Setup Cover Preview","operationId":"podcast_setup_cover_preview_portal_podcast_season_seasons__season_id__setup_cover__concept_id__get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"concept_id","in":"path","required":true,"schema":{"type":"string","title":"Concept Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/cover-preview/{concept_id}/{image_sha256}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Cover Round Preview","description":"Stream one owned cover-round option (or the current preview) by digest.","operationId":"podcast_cover_round_preview_portal_podcast_season_seasons__season_id__cover_preview__concept_id___image_sha256__get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"concept_id","in":"path","required":true,"schema":{"type":"string","title":"Concept Id"}},{"name":"image_sha256","in":"path","required":true,"schema":{"type":"string","title":"Image Sha256"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/social-pack":{"get":{"tags":["portal-podcast-season"],"summary":"Get Podcast Social Pack","description":"Return the author-safe social launch pack manifest (never raw R2 keys).","operationId":"get_podcast_social_pack_portal_podcast_season_seasons__season_id__social_pack_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Podcast Social Pack Portal Podcast Season Seasons  Season Id  Social Pack Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/social-image/{image_sha256}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Social Image","description":"Stream one owned social-image asset by digest (sha must be in manifest).","operationId":"podcast_social_image_portal_podcast_season_seasons__season_id__social_image__image_sha256__get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"image_sha256","in":"path","required":true,"schema":{"type":"string","title":"Image Sha256"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/intro-music/{style_id}":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Intro Music Preview","description":"Stream only a curated tracked preview to an entitled portal author.","operationId":"podcast_intro_music_preview_portal_podcast_season_intro_music__style_id__get","parameters":[{"name":"style_id","in":"path","required":true,"schema":{"type":"string","title":"Style Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/stock-voices/{voice_id}/preview":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Stock Voice Preview","description":"Redirect an entitled author to one immutable, no-spend voice sample.","operationId":"podcast_stock_voice_preview_portal_podcast_season_stock_voices__voice_id__preview_get","parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons":{"post":{"tags":["portal-podcast-season"],"summary":"Create Podcast Season","operationId":"create_podcast_season_portal_podcast_season_seasons_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSeasonRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Podcast Season Portal Podcast Season Seasons Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/restart-from-scratch":{"post":{"tags":["portal-podcast-season"],"summary":"Restart Podcast Season From Scratch","description":"Archive the active pre-spend season and enqueue one author restart credit.\n\nThe archive R2 writes never run in the request path — this handler validates\nauthor-safe preconditions, dispatches the Celery task, and returns the exact\nread-back so the portal can immediately offer setting up the new show.","operationId":"restart_podcast_season_from_scratch_portal_podcast_season_seasons__season_id__restart_from_scratch_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestartFromScratchRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Restart Podcast Season From Scratch Portal Podcast Season Seasons  Season Id  Restart From Scratch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/resume-pilot-script":{"post":{"tags":["portal-podcast-season"],"summary":"Resume Podcast Pilot Script","description":"Reopen a failed pilot draft in the SAME season and queue one new draft.\n\nFree to the author: no purchase, charge, or season credit is used, and the\napproved plan, setup, and approvals are left exactly as saved. Works both for\na visible quality pause and for a season the former automatic restart\narchived. Every precondition is re-validated under row locks by the RPC.","operationId":"resume_podcast_pilot_script_portal_podcast_season_seasons__season_id__resume_pilot_script_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Podcast Pilot Script Portal Podcast Season Seasons  Season Id  Resume Pilot Script Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/resume-episode-scripts":{"post":{"tags":["portal-podcast-season"],"summary":"Resume Podcast Season Episode Scripts","description":"Write one more draft for each held episode of an authorized full season.\n\nFree to the author and offered only after our automatic rewrites are used\nup. Approved episodes, the pilot, setup, voice and consent are untouched;\nresume_podcast_season_episode_scripting re-validates everything under row\nlocks.","operationId":"resume_podcast_season_episode_scripts_portal_podcast_season_seasons__season_id__resume_episode_scripts_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Podcast Season Episode Scripts Portal Podcast Season Seasons  Season Id  Resume Episode Scripts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/pilot-format-revision":{"post":{"tags":["portal-podcast-season"],"summary":"Revise Podcast Pilot Format","description":"Move an unapproved pilot to the 10-15 minute format in the SAME season.\n\nFree to the author: no purchase, charge, or season credit is used. The old\npilot script, audio and show notes stay on record in an immutable receipt;\nonly an unapproved pilot qualifies, and a new draft is written on the\nauthor's click (never automatically for any other show).","operationId":"revise_podcast_pilot_format_portal_podcast_season_seasons__season_id__pilot_format_revision_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PilotFormatRevisionRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revise Podcast Pilot Format Portal Podcast Season Seasons  Season Id  Pilot Format Revision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/voice-update":{"post":{"tags":["portal-podcast-season"],"summary":"Switch Podcast Season Voice","description":"Use the author's operator-verified updated voice for this season.\n\nOnly before any pilot audio exists; the author's written voice consent stays\nthe authority. The RPC re-checks everything and records a receipt.","operationId":"switch_podcast_season_voice_portal_podcast_season_seasons__season_id__voice_update_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonVoiceUpdateRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Switch Podcast Season Voice Portal Podcast Season Seasons  Season Id  Voice Update Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/launch-intake":{"get":{"tags":["portal-podcast-season"],"summary":"Get Podcast Launch Intake","description":"The author's own launch details for review (never staff runbooks).","operationId":"get_podcast_launch_intake_portal_podcast_season_seasons__season_id__launch_intake_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Podcast Launch Intake Portal Podcast Season Seasons  Season Id  Launch Intake Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["portal-podcast-season"],"summary":"Update Podcast Launch Intake","description":"Confirm the show contact email and the optional Apple invitation.","operationId":"update_podcast_launch_intake_portal_podcast_season_seasons__season_id__launch_intake_patch","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastLaunchIntakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Podcast Launch Intake Portal Podcast Season Seasons  Season Id  Launch Intake Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/listing-preview":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Listing Preview","description":"Read-only preview of the show listing a directory would receive.","operationId":"podcast_listing_preview_portal_podcast_season_seasons__season_id__listing_preview_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Podcast Listing Preview Portal Podcast Season Seasons  Season Id  Listing Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/listing-description":{"patch":{"tags":["portal-podcast-season"],"summary":"Update Podcast Listing Description","description":"Save the author's own show description for podcast directories.","operationId":"update_podcast_listing_description_portal_podcast_season_seasons__season_id__listing_description_patch","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingDescriptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Podcast Listing Description Portal Podcast Season Seasons  Season Id  Listing Description Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/listing-cover":{"get":{"tags":["portal-podcast-season"],"summary":"Podcast Listing Cover","operationId":"podcast_listing_cover_portal_podcast_season_seasons__season_id__listing_cover_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/cover-refinement":{"post":{"tags":["portal-podcast-season"],"summary":"Apply Podcast Cover Refinement","description":"Use one author-picked AI cover option as the show cover after approval.\n\nThe option's exact reviewed bytes are promoted to an immutable versioned\ncover key; the previous cover stays on file and in an immutable receipt.","operationId":"apply_podcast_cover_refinement_portal_podcast_season_seasons__season_id__cover_refinement_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCoverRefinementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Podcast Cover Refinement Portal Podcast Season Seasons  Season Id  Cover Refinement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/review-rounds":{"post":{"tags":["portal-podcast-season"],"summary":"Request Podcast Review Round","description":"Queue one candidate-only AI pass; never apply it in the request path.","operationId":"request_podcast_review_round_portal_podcast_season_seasons__season_id__review_rounds_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastReviewRoundRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Podcast Review Round Portal Podcast Season Seasons  Season Id  Review Rounds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/outline":{"patch":{"tags":["portal-podcast-season"],"summary":"Replace Podcast Setup Outline","description":"Apply one exact author edit or explicitly chosen AI outline candidate.","operationId":"replace_podcast_setup_outline_portal_podcast_season_seasons__season_id__outline_patch","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOutlineReplacementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Replace Podcast Setup Outline Portal Podcast Season Seasons  Season Id  Outline Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/cover-rounds":{"post":{"tags":["portal-podcast-season"],"summary":"Request Podcast Cover Round","description":"Queue one cover round (three AI cover options); never apply it here.","operationId":"request_podcast_cover_round_portal_podcast_season_seasons__season_id__cover_rounds_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCoverRoundRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Podcast Cover Round Portal Podcast Season Seasons  Season Id  Cover Rounds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/cover":{"patch":{"tags":["portal-podcast-season"],"summary":"Apply Podcast Cover","description":"Apply one chosen cover to a concept under a setup-hash compare-and-swap.","operationId":"apply_podcast_cover_portal_podcast_season_seasons__season_id__cover_patch","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastCoverSelectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Podcast Cover Portal Podcast Season Seasons  Season Id  Cover Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/approve-setup":{"post":{"tags":["portal-podcast-season"],"summary":"Approve Podcast Setup","operationId":"approve_podcast_setup_portal_podcast_season_seasons__season_id__approve_setup_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Podcast Setup Portal Podcast Season Seasons  Season Id  Approve Setup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/authorize-full-season":{"post":{"tags":["portal-podcast-season"],"summary":"Authorize Full Podcast Season","operationId":"authorize_full_podcast_season_portal_podcast_season_seasons__season_id__authorize_full_season_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullSeasonAuthorizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Authorize Full Podcast Season Portal Podcast Season Seasons  Season Id  Authorize Full Season Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/authorize-season-audio":{"post":{"tags":["portal-podcast-season"],"summary":"Authorize Full Podcast Season Audio","description":"Authorize narration only for the exact all-script review manifest.","operationId":"authorize_full_podcast_season_audio_portal_podcast_season_seasons__season_id__authorize_season_audio_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullSeasonAudioAuthorizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Authorize Full Podcast Season Audio Portal Podcast Season Seasons  Season Id  Authorize Season Audio Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/pronunciation-correction":{"post":{"tags":["portal-podcast-season"],"summary":"Correct Podcast Season Pronunciation","description":"Re-record only the segments where one approved term is spoken.\n\n``apply=false`` returns the exact segment list without changing anything.\n``apply=true`` keeps every prior receipt, clears the affected audio and its\napproval, re-authorizes the season audio for the corrected pronunciation\nand queues the re-render, which reuses every unchanged stored segment.","operationId":"correct_podcast_season_pronunciation_portal_podcast_season_seasons__season_id__pronunciation_correction_post","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PronunciationCorrectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Correct Podcast Season Pronunciation Portal Podcast Season Seasons  Season Id  Pronunciation Correction Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/pronunciation-correction/preview":{"get":{"tags":["portal-podcast-season"],"summary":"Stream Pronunciation Correction Preview","description":"Stream the newly recorded segment that says the corrected name.","operationId":"stream_pronunciation_correction_preview_portal_podcast_season_seasons__season_id__pronunciation_correction_preview_get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}/script":{"patch":{"tags":["portal-podcast-season"],"summary":"Edit Episode Script","operationId":"edit_episode_script_portal_podcast_season_episodes__episode_id__script_patch","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Episode Script Portal Podcast Season Episodes  Episode Id  Script Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}/show-notes":{"patch":{"tags":["portal-podcast-season"],"summary":"Edit Episode Show Notes","description":"Author edit of the review-facing show notes (not approval-gated).\n\nPublishing already requires script + audio approvals, so notes editing is\nnot a new hard gate. Keywords and chapters are preserved from the generated\nnotes. The approved episode description column is NOT rewritten (it is bound\ninto the review hash); the edited listener copy is served at publish time\nfrom show_notes.listener_description instead.","operationId":"edit_episode_show_notes_portal_podcast_season_episodes__episode_id__show_notes_patch","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowNotesEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Episode Show Notes Portal Podcast Season Episodes  Episode Id  Show Notes Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}/approve-script":{"post":{"tags":["portal-podcast-season"],"summary":"Approve Episode Script","operationId":"approve_episode_script_portal_podcast_season_episodes__episode_id__approve_script_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Episode Script Portal Podcast Season Episodes  Episode Id  Approve Script Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}/approve-audio":{"post":{"tags":["portal-podcast-season"],"summary":"Approve Episode Audio","operationId":"approve_episode_audio_portal_podcast_season_episodes__episode_id__approve_audio_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Episode Audio Portal Podcast Season Episodes  Episode Id  Approve Audio Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}/request-audio-revision":{"post":{"tags":["portal-podcast-season"],"summary":"Request Episode Audio Revision","description":"Pause production and create an ops handoff for exact rejected audio.","operationId":"request_episode_audio_revision_portal_podcast_season_episodes__episode_id__request_audio_revision_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Episode Audio Revision Portal Podcast Season Episodes  Episode Id  Request Audio Revision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}/audio":{"get":{"tags":["portal-podcast-season"],"summary":"Stream Episode Audio","operationId":"stream_episode_audio_portal_podcast_season_episodes__episode_id__audio_get","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/episodes/{episode_id}/disclosure-audio":{"get":{"tags":["portal-podcast-season"],"summary":"Stream Episode Disclosure Audio","description":"Stream the exact stored disclosure segment used in the final MP3.","operationId":"stream_episode_disclosure_audio_portal_podcast_season_episodes__episode_id__disclosure_audio_get","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/consent":{"post":{"tags":["portal-podcast-season"],"summary":"Grant Voice Clone Consent","operationId":"grant_voice_clone_consent_portal_podcast_season_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorConsentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Grant Voice Clone Consent Portal Podcast Season Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal-podcast-season"],"summary":"Revoke Voice Consent","operationId":"revoke_voice_consent_portal_podcast_season_consent_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Revoke Voice Consent Portal Podcast Season Consent Delete"}}}}}}},"/portal/podcast-season/downloads/{kind}":{"get":{"tags":["portal-podcast-season"],"summary":"Download Podcast Artifact","operationId":"download_podcast_artifact_portal_podcast_season_downloads__kind__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/podcast-season/seasons/{season_id}/downloads/{kind}":{"get":{"tags":["portal-podcast-season"],"summary":"Download Podcast Season Artifact","operationId":"download_podcast_season_artifact_portal_podcast_season_seasons__season_id__downloads__kind__get","parameters":[{"name":"season_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Season Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/house-show/status":{"get":{"tags":["portal-house-show"],"summary":"House Show Status","description":"Dark-fails-closed probe: enabled only when flag + entitlement + episode all hold.\n\n``invite`` (Ryan, 2026-12-03): the portal home's \"your seat on the podcast is\nwaiting\" card. True only for an entitled author with no episode yet who has\nnot opted out of publicity; the episode itself is created when the book is\ndone (``house_show_done_book``), and from then on ``enabled`` takes over.","operationId":"house_show_status_portal_house_show_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response House Show Status Portal House Show Status Get"}}}}}}},"/portal/house-show/{project_id}":{"get":{"tags":["portal-house-show"],"summary":"Get House Show Episode","operationId":"get_house_show_episode_portal_house_show__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get House Show Episode Portal House Show  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/house-show/{project_id}/change-requests":{"post":{"tags":["portal-house-show"],"summary":"Submit Change Request","description":"Author-submitted change request; the AI handles it (ops email fallback).\n\nMike, 2026-11-22: the request is classified and acted on by a Celery task\n(``house_show.handle_change_request``). With the staged switch off, or when\nthe enqueue fails, ops is emailed as before. The email is keyed per created\nrow, and a send failure is captured but never turns a persisted request\ninto a 5xx (the row IS the record — ops also sees it in the admin queue).","operationId":"submit_change_request_portal_house_show__project_id__change_requests_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowChangeRequestPortalBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Change Request Portal House Show  Project Id  Change Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/spotlight/{project_id}":{"get":{"tags":["portal-spotlight"],"summary":"Get Spotlight","description":"The statement to show and whether the blocking gate is required.","operationId":"get_spotlight_portal_spotlight__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotlightStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-spotlight"],"summary":"Post Spotlight","description":"Record the author's Yes/No as an immutable receipt.","operationId":"post_spotlight_portal_spotlight__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotlightChoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotlightChoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/spotlight/{project_id}/private-pages":{"get":{"tags":["portal-spotlight"],"summary":"Get Private Pages Question","description":"The question card, or ``{\"question\": null}`` (switch off, answered, not asked).","operationId":"get_private_pages_question_portal_spotlight__project_id__private_pages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Private Pages Question Portal Spotlight  Project Id  Private Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-spotlight"],"summary":"Post Private Pages Answer","operationId":"post_private_pages_answer_portal_spotlight__project_id__private_pages_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivatePagesAnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}/prompts":{"get":{"tags":["portal-spotlight"],"summary":"Get Testimonial Prompts","operationId":"get_testimonial_prompts_portal_testimonials__project_id__prompts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialPromptsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}/prompts/{milestone}/skip":{"post":{"tags":["portal-spotlight"],"summary":"Skip Testimonial Prompt","operationId":"skip_testimonial_prompt_portal_testimonials__project_id__prompts__milestone__skip_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"milestone","in":"path","required":true,"schema":{"enum":["first_interview","first_chapter","cover_approved","book_live","books_in_hand","anytime"],"type":"string","title":"Milestone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Skip Testimonial Prompt Portal Testimonials  Project Id  Prompts  Milestone  Skip Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}/text":{"post":{"tags":["portal-spotlight"],"summary":"Submit Text Testimonial","operationId":"submit_text_testimonial_portal_testimonials__project_id__text_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialTextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialCreatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}/upload-url":{"post":{"tags":["portal-spotlight"],"summary":"Create Testimonial Upload Url","operationId":"create_testimonial_upload_url_portal_testimonials__project_id__upload_url_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialUploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialUploadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}/{testimonial_id}/uploaded":{"post":{"tags":["portal-spotlight"],"summary":"Confirm Testimonial Upload","operationId":"confirm_testimonial_upload_portal_testimonials__project_id___testimonial_id__uploaded_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialUploadedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}":{"get":{"tags":["portal-spotlight"],"summary":"List Testimonials","operationId":"list_testimonials_portal_testimonials__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalTestimonialListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}/{testimonial_id}/decision":{"post":{"tags":["portal-spotlight"],"summary":"Decide Testimonial","operationId":"decide_testimonial_portal_testimonials__project_id___testimonial_id__decision_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/testimonials/{project_id}/{testimonial_id}/withdraw":{"post":{"tags":["portal-spotlight"],"summary":"Withdraw Testimonial","operationId":"withdraw_testimonial_portal_testimonials__project_id___testimonial_id__withdraw_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/own-voice/{project_id}":{"get":{"tags":["portal-own-voice"],"summary":"Get Own Voice","operationId":"get_own_voice_portal_own_voice__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Own Voice Portal Own Voice  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/own-voice/{project_id}/clips/{clip_id}":{"post":{"tags":["portal-own-voice"],"summary":"Answer Own Voice","operationId":"answer_own_voice_portal_own_voice__project_id__clips__clip_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"clip_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Clip Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnVoiceAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Own Voice Portal Own Voice  Project Id  Clips  Clip Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-own-voice/counts":{"get":{"tags":["admin-reader-own-voice"],"summary":"Own Voice Counts","description":"Usable approved clips per line now, and whether the 1-friend rung is promised there.","operationId":"own_voice_counts_admin_reader_own_voice_counts_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Own Voice Counts Admin Reader Own Voice Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reader-giveaway/{project_id}":{"get":{"tags":["portal-reader-giveaway"],"summary":"Get Reader Giveaway","operationId":"get_reader_giveaway_portal_reader_giveaway__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Reader Giveaway Portal Reader Giveaway  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-reader-giveaway"],"summary":"Answer Reader Giveaway","operationId":"answer_reader_giveaway_portal_reader_giveaway__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiveawayAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Reader Giveaway Portal Reader Giveaway  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/testimonials":{"get":{"tags":["admin-testimonials"],"summary":"List Testimonials","operationId":"list_testimonials_admin_testimonials_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["awaiting_upload","received","processing","ready_for_author","approved","author_declined","not_usable","feedback_only","withdrawn","failed"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"media_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["text","audio","video"],"type":"string"},{"type":"null"}],"title":"Media Kind"}},{"name":"milestone","in":"query","required":false,"schema":{"anyOf":[{"enum":["first_interview","first_chapter","cover_approved","book_live","books_in_hand","anytime","silas_call"],"type":"string"},{"type":"null"}],"title":"Milestone"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"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","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTestimonialListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/testimonials/{testimonial_id}/proof":{"get":{"tags":["admin-testimonials"],"summary":"Testimonial Proof","operationId":"testimonial_proof_admin_testimonials__testimonial_id__proof_get","parameters":[{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTestimonialProofResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/testimonials/{testimonial_id}/hide":{"post":{"tags":["admin-testimonials"],"summary":"Hide Testimonial","operationId":"hide_testimonial_admin_testimonials__testimonial_id__hide_post","parameters":[{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTestimonialHideResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/testimonials/story-invite":{"post":{"tags":["admin-testimonials"],"summary":"Story Invite","description":"The one-time \"share your story\" invite to opted-in authors.\n\n``dry_run=true`` (the default) lists who would get it (project ids +\ninitials only) and sends nothing. ``dry_run=false`` enqueues the send;\na second call never double-sends (ledger + email dedupe key).","operationId":"story_invite_admin_testimonials_story_invite_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Dry Run"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Story Invite Admin Testimonials Story Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/testimonials/{testimonial_id}/post-to-sales":{"post":{"tags":["admin-testimonials"],"summary":"Post To Sales","description":"Push one approved story to #sales-team-dictate by hand (idempotent unless force).","operationId":"post_to_sales_admin_testimonials__testimonial_id__post_to_sales_post","parameters":[{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post To Sales Admin Testimonials  Testimonial Id  Post To Sales Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/support-call":{"get":{"tags":["portal-support-call"],"summary":"Get Support Call Booking","description":"Whether support-call booking is open, and the widget URL to embed.\n\nFails closed: flag off or no configured calendar returns ``available: false``\nand the portal page renders its \"reach us another way\" state instead.","operationId":"get_support_call_booking_portal_support_call_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportCallBookingStatus"}}}}}}},"/portal/support/requests/{project_id}":{"get":{"tags":["portal-support"],"summary":"List Portal Support Requests","description":"Return this author's support requests, newest first.","operationId":"list_portal_support_requests_portal_support_requests__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Portal Support Requests Portal Support Requests  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/feedback-report/{project_id}":{"post":{"tags":["portal-feedback"],"summary":"Create Portal Feedback Report","description":"Store the author's problem report or idea; the thank-you carries a reference.","operationId":"create_portal_feedback_report_portal_feedback_report__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_portal_feedback_report_portal_feedback_report__project_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Portal Feedback Report Portal Feedback Report  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/house-show/{project_id}/short-link":{"get":{"tags":["portal-short-links"],"summary":"Get Short Link","description":"The project's short link; lazily mints the default on first read.","operationId":"get_short_link_portal_house_show__project_id__short_link_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Short Link Portal House Show  Project Id  Short Link Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal-short-links"],"summary":"Put Short Link","description":"Author edit: slug and/or destination policy. Validation errors -> 422.","operationId":"put_short_link_portal_house_show__project_id__short_link_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShortLinkPortalBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Short Link Portal House Show  Project Id  Short Link Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/podcast-launch/stop":{"post":{"tags":["podcast-launch"],"summary":"Record Cowork Stop","operationId":"record_cowork_stop_webhooks_podcast_launch_stop_post","parameters":[{"name":"X-Podcast-Timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Podcast-Timestamp"}},{"name":"X-Podcast-Event-Id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Podcast-Event-Id"}},{"name":"X-Podcast-Principal","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Podcast-Principal"}},{"name":"X-Podcast-Signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Podcast-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Cowork Stop Webhooks Podcast Launch Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch/{project_id}/page-draft-preview":{"get":{"tags":["portal-launch"],"summary":"Page Draft Preview","description":"The author's PRIVATE preview of her launch pages built on a working title.\n\nMike, 2026-10-13: the cover-vote and prelaunch pages are built as private\ndrafts before the title is approved. This is the only place a draft is\nvisible, and it is the title question (\"Here's your page as 'X' — keep it\nor rename it\"), answered in Title Studio. Cross-tenant safe: the JWT\n``sub`` must equal ``project_id`` (403). 404 when the kill switch\n``TITLE_PRIVATE_DRAFTS_ENABLED`` is off.","operationId":"page_draft_preview_portal_launch__project_id__page_draft_preview_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Page Draft Preview Portal Launch  Project Id  Page Draft Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch/{project_id}/overview":{"get":{"tags":["portal-launch"],"summary":"Launch Overview","description":"Return the grouped launch-family deliverables for the author's project.\n\nCross-tenant safe: the JWT ``sub`` must equal ``project_id`` (403), and the\nledger read is explicitly scoped to ``project_id`` (a foreign id yields no\nrows, so the view is empty rather than another author's data).","operationId":"launch_overview_portal_launch__project_id__overview_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Launch Overview Portal Launch  Project Id  Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch/{project_id}/plan-status":{"get":{"tags":["portal-launch"],"summary":"Launch Plan Status","description":"Fail-closed nav probe. Never 404s — it REPORTS the gate rather than being\ngated by it, which is what lets the nav hide the link instead of rendering a\nlink to a 404 (same contract as ``/portal/house-show/status``).","operationId":"launch_plan_status_portal_launch__project_id__plan_status_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Launch Plan Status Portal Launch  Project Id  Plan Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch/{project_id}/plan":{"get":{"tags":["portal-launch"],"summary":"Get Launch Plan","description":"The whole launch plan: target, forecast, feasibility, milestones, tier.\n\nA project with no ``publishing_metadata`` row is NOT an error — the loader\nreads an absent row as \"no target set\" and the plan is built from everything\nelse. There is no 404 branch here on purpose: an author who has never opened\nthe publishing form still has a book with a stage and a forecast.","operationId":"get_launch_plan_portal_launch__project_id__plan_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch/{project_id}/target":{"put":{"tags":["portal-launch"],"summary":"Put Launch Target","description":"Save the author's soft target and answer with the recomputed plan.\n\nThe date is range-checked BEFORE it is normalized: normalization only ever\nmoves a date backward (to the 1st of its month, or the start of its season)\nand then clamps forward to today, so validating the raw pick keeps the\nstored anchor inside the same bounds without a second check.\n\n``set_launch_target`` writes the five target columns and nothing else — it\ndeliberately does not travel through the publishing-metadata update path,\nwhich would reset retail approval for a date no retailer ever sees.","operationId":"put_launch_target_portal_launch__project_id__target_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchTargetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal-launch"],"summary":"Delete Launch Target","description":"Forget the author's target and answer with the plan that remains.\n\nIdempotent: clearing a target nobody set nulls columns that are already\nnull. The public ``launch_window`` string is left alone — removing a private\nplanning date is not an instruction to unpublish the window the author\nalready announced.","operationId":"delete_launch_target_portal_launch__project_id__target_delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch/{project_id}/confirm-window":{"post":{"tags":["portal-launch"],"summary":"Confirm Launch Window","description":"Put the window this plan derives onto the author's public page.\n\nThe body must ECHO the window the stored target derives right now. A page\nleft open across a target change would otherwise write a season the author\nhas already moved away from, and the public page would quietly disagree with\nthe plan that produced it.\n\nThe write is the NARROW one (``set_launch_window``): a single PATCH of the\n``launch_window`` column. It deliberately does not go through\n``set_prelaunch_intake``, whose three-field signature would make this handler\nread the author's highlights / sample opt-in / answered-at and write them\nback — an intake save from another tab landing in between would be silently\nreplaced by that stale snapshot. Here those fields are untouchable because\nthey are never named.\n\nThe write is also BOUND to the target the echo-check validated, so a target\nchange that lands between the read and the write refuses instead of\npublishing a superseded season (same 422, same retry, as the echo-check).","operationId":"confirm_launch_window_portal_launch__project_id__confirm_window_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchWindowConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Launch Window Portal Launch  Project Id  Confirm Window Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/ai-helper/{project_id}/status":{"get":{"tags":["portal-ai-helper"],"summary":"Status","operationId":"status_portal_ai_helper__project_id__status_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Status Portal Ai Helper  Project Id  Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/ai-helper/{project_id}":{"get":{"tags":["portal-ai-helper"],"summary":"Get Helper","operationId":"get_helper_portal_ai_helper__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Helper Portal Ai Helper  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/ai-helper/{project_id}/refresh":{"post":{"tags":["portal-ai-helper"],"summary":"Refresh","operationId":"refresh_portal_ai_helper__project_id__refresh_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refresh Portal Ai Helper  Project Id  Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/press/{project_id}":{"get":{"tags":["portal-press"],"summary":"Get Press View","operationId":"get_press_view_portal_press__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PressView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/press/{project_id}/orders/{order_id}/release.pdf":{"get":{"tags":["portal-press"],"summary":"Get Release Pdf","operationId":"get_release_pdf_portal_press__project_id__orders__order_id__release_pdf_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/press/{project_id}/orders/{order_id}/hold":{"post":{"tags":["portal-press"],"summary":"Hold Press Release","operationId":"hold_press_release_portal_press__project_id__orders__order_id__hold_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"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/PressActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/press/{project_id}/orders/{order_id}/send-now":{"post":{"tags":["portal-press"],"summary":"Send Press Release Now","operationId":"send_press_release_now_portal_press__project_id__orders__order_id__send_now_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"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/PressActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/bestseller/{project_id}/status":{"get":{"tags":["portal-bestseller"],"summary":"Bestseller Status","description":"Fail-closed nav probe. Never 404s — it REPORTS the gate.","operationId":"bestseller_status_portal_bestseller__project_id__status_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Bestseller Status Portal Bestseller  Project Id  Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/bestseller/{project_id}/overview":{"get":{"tags":["portal-bestseller"],"summary":"Bestseller Overview","description":"The whole campaign: launch week, reader team, reviews, categories, promo.\n\nThere is no 404 branch for a project with no launch assets. A book that has\nnot reached its Kindle strategy yet still gets the curated launch week and\nan honest sentence about what is still coming.","operationId":"bestseller_overview_portal_bestseller__project_id__overview_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BestsellerCampaignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/bestseller/{project_id}/readers":{"get":{"tags":["portal-bestseller"],"summary":"Bestseller Readers","description":"The readers who ticked \"contact me\" on the public pre-launch page.\n\nThe ONLY endpoint in the product that returns a subscriber's name or address,\nand it returns them only for rows carrying an explicit opt-in timestamp.\nCover-vote voters are never here: they never saw the box.\n\nRead-only by construction — there is no POST, PUT or DELETE counterpart, so\nan author surface can neither grant nor forge a consent. Revocation is an\nops action (``scripts/revoke_reader_consent.py``), and it takes effect on the\nnext read of this route.\n\nSame three gates as the overview: the dark flag, ``_require_owner`` (403\nbefore any read), and the per-project rate limit.","operationId":"bestseller_readers_portal_bestseller__project_id__readers_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentedReadersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/bestseller/{project_id}/checklist":{"put":{"tags":["portal-bestseller"],"summary":"Put Bestseller Checklist","description":"Tick or untick one MANUAL launch-week item.\n\nAnswers with the recomputed checklist, so the page never needs a follow-up\nfetch to see the effect of the box it just checked.\n\nOnly keys in ``MANUAL_ITEM_KEYS`` are writable. Derived rows (\"your\npre-launch page is live\") read a real signal, so accepting a write for one\nwould let the page assert something we can actually check and be wrong\nabout. That bound is a bound on the WRITE surface — it refuses an unknown\nkey, never a deliverable.","operationId":"put_bestseller_checklist_portal_bestseller__project_id__checklist_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__portal_bestseller__ChecklistTickRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Bestseller Checklist Portal Bestseller  Project Id  Checklist Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/package-catalog/{project_id}":{"get":{"tags":["portal-package-catalog"],"summary":"Get Portal Package Catalog","description":"What this project's package promised, and where each promise stands.","operationId":"get_portal_package_catalog_portal_package_catalog__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/{interview_id}/recording":{"get":{"tags":["portal-interviews"],"summary":"Get Interview Recording","description":"Mint a short-lived playable link to the author's own call recording.","operationId":"get_interview_recording_portal_interviews__project_id___interview_id__recording_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRecordingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/interviews/{project_id}/{interview_id}/transcript":{"get":{"tags":["portal-interviews"],"summary":"Get Interview Transcript","description":"Return the author's own interview transcript with readable speaker names.\n\nAuthors asked where they could read what they said (R. Scott Hoffer asked\ntwice during one call, 2026-09-27); the portal showed a summary and the\nrecording only. The text is the same one the book pipeline uses\n(``preferred_interview_transcript``), so what the author reads is what the\nwriter read.","operationId":"get_interview_transcript_portal_interviews__project_id___interview_id__transcript_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewTranscriptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/notifications":{"get":{"tags":["portal-notifications"],"summary":"Get Notification History","description":"Return the current book's author-safe communication timeline.","operationId":"get_notification_history_portal_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalNotificationHistory"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/outreach/click":{"post":{"tags":["outreach"],"summary":"Record Outreach Click","description":"Record one click on a tracked outreach link. Always 204.","operationId":"record_outreach_click_public_outreach_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachClickRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/outreach/crm-click":{"post":{"tags":["outreach"],"summary":"Record Crm Link Click","description":"Record one click on a GHL nurture link. Always 204 after auth.\n\nThe email labels on the CRM links (utm_term, 2026-10-30) were countable in\nGA4 but could not be tied to a purchase, because the checkout runs on GHL.\nThis row keeps the label with a SHA-256 of the clicker's email, so the\nper-email review can join clicks to sales. The address itself is never\nstored. Kill switch: ``CRM_LINK_CLICK_LOG_ENABLED``.","operationId":"record_crm_link_click_public_outreach_crm_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmLinkClickRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/outreach/offer":{"get":{"tags":["outreach"],"summary":"Outreach Offer Status","description":"Is the $5 offer behind tracking code ``t`` still open?\n\nThe Next.js ``/o/5`` hop asks before redirecting (Mike, 2026-10-08: the $5\nprice runs 72 hours from the first $5 link). ``five_dollar_active: false``\nsends the visitor to the $27 checkout instead. Any doubt (unknown code, a\ncase the window does not govern, a read failure) answers ``true``: a broken\nlookup must never take an offer away from somebody holding it.\n\n``p`` (the purpose-scoped prefill token our checkout links carry) adds a\n``prefill`` object of name/email/phone for a live case, so the checkout\ndoes not ask for what we already have (Mike, 2026-10-28). The click token\nalone never unlocks it, and each link's grant is single-use. Omitted on\nany doubt; see\n``app/services/outreach_checkout_prefill.py`` for who gets it.\n\n``c`` (a GHL contact id, only on a link with no ``t``) answers the same\nquestion for the GHL $5 sequence from that contact's first click (GH #12179).","operationId":"outreach_offer_status_public_outreach_offer_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}},{"name":"p","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"","title":"P"}},{"name":"c","in":"query","required":false,"schema":{"type":"string","maxLength":40,"default":"","title":"C"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Outreach Offer Status Public Outreach Offer Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/outreach/postcard-destination":{"get":{"tags":["outreach"],"summary":"Postcard Destination","description":"Return only a booking calendar ID; a printed name grants no identity access.","operationId":"postcard_destination_public_outreach_postcard_destination_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Postcard Destination Public Outreach Postcard Destination Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/sms-links/open":{"post":{"tags":["sms-short-links"],"summary":"Open Short Link","description":"``{\"url\": <target>}`` for a live code, else ``{\"url\": null}``.","operationId":"open_short_link_public_sms_links_open_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenShortLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Open Short Link Public Sms Links Open Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/addon/{token}":{"get":{"tags":["upsell-recovery"],"summary":"Open Addon Checkout","operationId":"open_addon_checkout_pay_addon__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/addon/{token}/done":{"get":{"tags":["upsell-recovery"],"summary":"Addon Checkout Done","operationId":"addon_checkout_done_pay_addon__token__done_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/addon/{token}/later":{"get":{"tags":["upsell-recovery"],"summary":"Addon Checkout Later","operationId":"addon_checkout_later_pay_addon__token__later_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/contact-preferences/{project_id}":{"get":{"tags":["portal-contact-preferences"],"summary":"Get Contact Preferences","operationId":"get_contact_preferences_portal_contact_preferences__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Contact Preferences Portal Contact Preferences  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal-contact-preferences"],"summary":"Put Contact Preferences","operationId":"put_contact_preferences_portal_contact_preferences__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPreferencesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Contact Preferences Portal Contact Preferences  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/writing-pace/{project_id}":{"get":{"tags":["portal-writing-pace"],"summary":"Get Writing Pace","operationId":"get_writing_pace_portal_writing_pace__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Writing Pace Portal Writing Pace  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal-writing-pace"],"summary":"Put Writing Pace","operationId":"put_writing_pace_portal_writing_pace__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingPaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Writing Pace Portal Writing Pace  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/banned-terms/{project_id}":{"get":{"tags":["portal-banned-terms"],"summary":"Get Banned Terms","description":"The author's \"never use these words\" list.","operationId":"get_banned_terms_portal_banned_terms__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Banned Terms Portal Banned Terms  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal-banned-terms"],"summary":"Put Banned Terms","description":"Replace the author's list. A bad entry is refused with a message she can act on.","operationId":"put_banned_terms_portal_banned_terms__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetBannedTermsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Banned Terms Portal Banned Terms  Project Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/scripture-review/{project_id}":{"get":{"tags":["portal-scripture-review"],"summary":"Get Scripture Review","description":"The scripture references found in her book, each with its status, and the swap log.","operationId":"get_scripture_review_portal_scripture_review__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Scripture Review Portal Scripture Review  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/scripture-review/{project_id}/status":{"post":{"tags":["portal-scripture-review"],"summary":"Set Scripture Status","description":"Confirm a reference, mark it \"not a verse\" (wrong_match), or put it back to pending.","operationId":"set_scripture_status_portal_scripture_review__project_id__status_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptureStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Scripture Status Portal Scripture Review  Project Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/scripture-review/{project_id}/undo":{"post":{"tags":["portal-scripture-review"],"summary":"Undo Scripture Swap","description":"Put a placed verse's earlier wording back (the same undo Silas runs).","operationId":"undo_scripture_swap_portal_scripture_review__project_id__undo_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptureUndoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Undo Scripture Swap Portal Scripture Review  Project Id  Undo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/house-show/episodes":{"get":{"tags":["public-house-show"],"summary":"List Public Episodes","description":"Published-episode archive cards, newest first.","operationId":"list_public_episodes_public_house_show_episodes_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Public Episodes Public House Show Episodes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/house-show/featured-books":{"get":{"tags":["public-house-show"],"summary":"List Featured Books","description":"Finished books by Dictate authors — the /podcast social-proof rail.\n\nWalks projects whose author LOCKED a final cover (newest first) and admits\nonly the ones that are genuinely done. The page copy claims \"Books by\nDictate authors\" — NOT \"our guests\" — precisely because this rail may\ninclude finished books whose authors have not recorded yet (codex\nround-1 P1: a guest-only filter would be truthful but empty until\nepisodes exist, which defeats the section; a broader claim would be\nfalse). Authors who HAVE a published episode sort first, so the rail\nbecomes guest-led as the show accumulates. Returns ``{\"books\": []}`` —\nnever an error — when nothing qualifies.","operationId":"list_featured_books_public_house_show_featured_books_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":1,"default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Featured Books Public House Show Featured Books Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/house-show/episodes/{slug}":{"get":{"tags":["public-house-show"],"summary":"Get Public Episode","description":"Full per-episode page payload: card + notes + transcript + guest + CTA.","operationId":"get_public_episode_public_house_show_episodes__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Episode Public House Show Episodes  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/guides/writing-about-real-people.pdf":{"get":{"tags":["public-guides"],"summary":"Get Manuscript Legal Guide Pdf","description":"Serve the static educational guide on writing about real people.","operationId":"get_manuscript_legal_guide_pdf_public_guides_writing_about_real_people_pdf_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/public/podcast-guest/{slug}":{"get":{"tags":["public-podcast-guest"],"summary":"Get Guest Page","description":"Whitelisted guest-page payload for the public /guest/{slug} page.","operationId":"get_guest_page_public_podcast_guest__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Guest Page Public Podcast Guest  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/podcast-guest/{slug}/book-cover.jpg":{"get":{"tags":["public-podcast-guest"],"summary":"Get Guest Book Cover","description":"Stream the author's public book-cover image (copied from their project).","operationId":"get_guest_book_cover_public_podcast_guest__slug__book_cover_jpg_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/podcast-guest/{slug}/press-logo/{outlet_file}":{"get":{"tags":["public-podcast-guest"],"summary":"Get Guest Press Logo","description":"Stream a verified outlet's logo from OUR storage for the guest page.\n\nOnly for an outlet in THIS author's live, verified placements (the\n\"As featured on\" block) and only while PRESS_MENTIONS_KIT_ENABLED is on.\nNever proxies a third-party image host: no copy means 404 (text shown).","operationId":"get_guest_press_logo_public_podcast_guest__slug__press_logo__outlet_file__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"outlet_file","in":"path","required":true,"schema":{"type":"string","title":"Outlet File"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/podcast-guest/{slug}/media-kit.pdf":{"get":{"tags":["public-podcast-guest"],"summary":"Get Guest Media Kit","description":"Stream the worker-rendered media-kit PDF from its stable R2 key.","operationId":"get_guest_media_kit_public_podcast_guest__slug__media_kit_pdf_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/authors":{"get":{"tags":["public-authors"],"summary":"List Authors","operationId":"list_authors_public_authors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAuthorsResponse"}}}}}}},"/public/authors/{slug}":{"get":{"tags":["public-authors"],"summary":"Get Author","operationId":"get_author_public_authors__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/PublicAuthorDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/authors/{slug}/image/{kind}":{"get":{"tags":["public-authors"],"summary":"Get Author Image","operationId":"get_author_image_public_authors__slug__image__kind__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["headshot","cover"],"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/authors/{slug}/media/{testimonial_id}/{kind}":{"get":{"tags":["public-authors"],"summary":"Get Story Media","description":"Stable link for a public story's clip/poster: 302 to a fresh signed URL.\n\nThe page can be cached for days; the signed link behind this lives an hour\nand is minted per request, and only while the story is still public.","operationId":"get_story_media_public_authors__slug__media__testimonial_id___kind__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"testimonial_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Testimonial Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["clip","poster"],"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/author-stories":{"get":{"tags":["public-authors"],"summary":"List Story Wall","description":"The Testimonial Wall: every public story of every live, opted-in author.","operationId":"list_story_wall_public_author_stories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWallResponse"}}}}}}},"/public/author-stories/questions":{"get":{"tags":["public-authors"],"summary":"List Story Questions","description":"Real authors answering the questions people search (\"Can you dictate a book?\").","operationId":"list_story_questions_public_author_stories_questions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQuestionsResponse"}}}}}}},"/api/public-podcast-offers/{page_id}/opt-in":{"post":{"tags":["public-podcast-offers"],"summary":"Opt In","operationId":"opt_in_api_public_podcast_offers__page_id__opt_in_post","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOfferOptInRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOfferOptInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/press/graphics/{order_id}/{version_file}":{"get":{"tags":["public-press"],"summary":"Get Press Graphic","description":"The designed press graphic of one release version (JPEG).","operationId":"get_press_graphic_public_press_graphics__order_id___version_file__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"version_file","in":"path","required":true,"schema":{"type":"string","title":"Version File"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/press/featured":{"get":{"tags":["public-press"],"summary":"Get Featured Press","description":"Dictate's own \"Featured on\" strip: verified outlets with logos (max 6).\n\nEmpty on any failure or when ``PRESS_COMPANY_STRIP_ENABLED`` is off; never 500.","operationId":"get_featured_press_public_press_featured_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/public/press/outlet-logo/{outlet_file}":{"get":{"tags":["public-press"],"summary":"Get Outlet Logo","description":"A verified outlet's logo from OUR storage (PNG); no copy -> 404.","operationId":"get_outlet_logo_public_press_outlet_logo__outlet_file__get","parameters":[{"name":"outlet_file","in":"path","required":true,"schema":{"type":"string","title":"Outlet File"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/watch/authority-presentation/{version}.mp4":{"get":{"tags":["public-watch"],"summary":"Get Authority Presentation Video","operationId":"get_authority_presentation_video_public_watch_authority_presentation__version__mp4_get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9._-]+$","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/social/featured":{"get":{"tags":["public-social"],"summary":"Get Featured","description":"The most recently promoted page: ``{url, title, description, image, updated_at}``.\n\n404 when nothing was promoted in the last 3 days.","operationId":"get_featured_api_public_social_featured_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/portal/launch-marketing/{project_id}":{"get":{"tags":["launch-marketing"],"summary":"Get Marketing","operationId":"get_marketing_portal_launch_marketing__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":12,"minimum":1},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Marketing Portal Launch Marketing  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-marketing/{project_id}/{kind}/pdf":{"get":{"tags":["launch-marketing"],"summary":"Get Pdf","operationId":"get_pdf_portal_launch_marketing__project_id___kind__pdf_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["marketing_plan","local_promo","social_year","local_contacts"],"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/launch-marketing/{project_id}/local-promo/location":{"post":{"tags":["launch-marketing"],"summary":"Set Location","operationId":"set_location_portal_launch_marketing__project_id__local_promo_location_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Location Portal Launch Marketing  Project Id  Local Promo Location Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-marketing/{project_id}":{"get":{"summary":"Admin Get","operationId":"admin_get_admin_launch_marketing__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Get Admin Launch Marketing  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/launch-marketing/{project_id}/generate":{"post":{"summary":"Admin Generate","operationId":"admin_generate_admin_launch_marketing__project_id__generate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Generate Admin Launch Marketing  Project Id  Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/promotion-targets/{project_id}":{"get":{"tags":["portal-social"],"summary":"List Promotion Targets Route","description":"List a project's promotion targets.","operationId":"list_promotion_targets_route_portal_promotion_targets__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Promotion Targets Route Portal Promotion Targets  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-social"],"summary":"Create Promotion Target Route","description":"Add a promotion target (their book, site, funnel, offer, …).","operationId":"create_promotion_target_route_portal_promotion_targets__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionTargetCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Promotion Target Route Portal Promotion Targets  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/promotion-targets/{project_id}/{target_id}":{"put":{"tags":["portal-social"],"summary":"Update Promotion Target Route","description":"Update a promotion target. A foreign target id resolves to 404.","operationId":"update_promotion_target_route_portal_promotion_targets__project_id___target_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionTargetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Promotion Target Route Portal Promotion Targets  Project Id   Target Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["portal-social"],"summary":"Delete Promotion Target Route","description":"Delete a promotion target. A foreign target id resolves to 404.","operationId":"delete_promotion_target_route_portal_promotion_targets__project_id___target_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Promotion Target Route Portal Promotion Targets  Project Id   Target Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-photos/{project_id}":{"get":{"tags":["portal-social"],"summary":"List Social Photos Route","description":"List a project's author-photo library.","operationId":"list_social_photos_route_portal_social_photos__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Social Photos Route Portal Social Photos  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-social"],"summary":"Upload Social Photo Route","description":"Upload one real photo of the author to the social photo library.\n\nEnforces: 30-photo cap, 10 MB, image mime allowlist (png/jpg/jpeg/webp)\nvalidated by extension + declared size + magic bytes. Only a photo the\nauthor explicitly attests is a solo image of them becomes an identity\nreference; context/group photos remain library-only.","operationId":"upload_social_photo_route_portal_social_photos__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_social_photo_route_portal_social_photos__project_id__post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Social Photo Route Portal Social Photos  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-photos/{project_id}/{asset_id}":{"delete":{"tags":["portal-social"],"summary":"Delete Social Photo Route","description":"Delete a photo. A foreign / non-photo asset id resolves to 404.","operationId":"delete_social_photo_route_portal_social_photos__project_id___asset_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Social Photo Route Portal Social Photos  Project Id   Asset Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social/auto-publish/{project_id}":{"get":{"tags":["portal-social"],"summary":"Get Social Auto Publish Route","description":"The author's review setting: approve each post, or post automatically.","operationId":"get_social_auto_publish_route_portal_social_auto_publish__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAutoPublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["portal-social"],"summary":"Set Social Auto Publish Route","description":"Set the author's review setting (Mike, 2026-11-17).\n\n``automatic``: each post waits ``social_auto_publish_veto_hours`` in her\nqueue (she can edit or skip it), then approves itself and publishes at its\nslot, paced per channel; scheduled posts stay editable and skippable until\nthey go out. Choosing it explicitly while on the automatic default keeps\nthe default's backlog window; choosing it after \"approve each\" starts the\nclock now, so it never releases an older backlog.\n\n``approve_each``: nothing posts until she approves it. Posts the system\napproved for a future slot (the auto-publish sweep, the Launch year of\nposts) go back to her queue; the year posts keep their planned day.","operationId":"set_social_auto_publish_route_portal_social_auto_publish__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAutoPublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAutoPublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/scheduled":{"get":{"tags":["portal-social"],"summary":"List Scheduled Social Posts Route","description":"Approved posts that have not gone out yet (she can still change them).","operationId":"list_scheduled_social_posts_route_portal_social_posts__project_id__scheduled_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PostQueueResponse"},"title":"Response List Scheduled Social Posts Route Portal Social Posts  Project Id  Scheduled Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/{post_id}/text":{"post":{"tags":["portal-social"],"summary":"Edit Scheduled Social Post Route","description":"Edit the words of a scheduled post; it keeps its day and approval.","operationId":"edit_scheduled_social_post_route_portal_social_posts__project_id___post_id__text_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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/ScheduledPostEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Scheduled Social Post Route Portal Social Posts  Project Id   Post Id  Text Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/{post_id}/skip":{"post":{"tags":["portal-social"],"summary":"Skip Social Post Route","description":"Never post this one (queued or scheduled, until it goes out).","operationId":"skip_social_post_route_portal_social_posts__project_id___post_id__skip_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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":{"type":"object","additionalProperties":true,"title":"Response Skip Social Post Route Portal Social Posts  Project Id   Post Id  Skip Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/{post_id}/picture":{"post":{"tags":["portal-social"],"summary":"Upload Social Post Picture Route","description":"Replace a post's picture with one she uploads (same checks as the\nphoto library: png/jpg/webp, 10 MB, real image bytes).","operationId":"upload_social_post_picture_route_portal_social_posts__project_id___post_id__picture_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_social_post_picture_route_portal_social_posts__project_id___post_id__picture_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Social Post Picture Route Portal Social Posts  Project Id   Post Id  Picture Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-posts/{project_id}/{post_id}/picture/library":{"post":{"tags":["portal-social"],"summary":"Set Social Post Picture From Library Route","description":"Put a photo from her library on a post. A foreign photo id is 404.","operationId":"set_social_post_picture_from_library_route_portal_social_posts__project_id___post_id__picture_library_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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/PostPictureFromLibraryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Social Post Picture From Library Route Portal Social Posts  Project Id   Post Id  Picture Library Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social-channels/{project_id}":{"get":{"tags":["portal-social"],"summary":"Get Social Channels Route","description":"Report which supported channels the author has connected in GHL.\n\nResult is Redis-cached for 5 minutes. On a cache miss the connected set is\nintersected with the supported platforms and synced into\n``social_readiness.channels_enabled``.","operationId":"get_social_channels_route_portal_social_channels__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialChannelsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social/brand-kit/{project_id}":{"get":{"tags":["portal-social"],"summary":"Get Social Brand Kit Route","description":"Return the persisted brand snapshot shown by the social setup card.\n\nBrand data historically lives in both project columns and onboarding\npreferences. Resolve both shapes here so the portal displays the same\ncolors, font, logo, and headshot the image generator actually uses.","operationId":"get_social_brand_kit_route_portal_social_brand_kit__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Social Brand Kit Route Portal Social Brand Kit  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social/brand-confirm/{project_id}":{"post":{"tags":["portal-social"],"summary":"Confirm Brand Kit Route","description":"One-click \"this is my brand\" confirm.\n\nStamps ``social_readiness.assets_complete=true`` and\n``metadata.brand_confirmed_at`` from the pre-pulled brand snapshot.","operationId":"confirm_brand_kit_route_portal_social_brand_confirm__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Brand Kit Route Portal Social Brand Confirm  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social/samples/{project_id}/generate":{"post":{"tags":["portal-social"],"summary":"Generate Samples Route","description":"Enqueue generation of an onboarding sample pack (never publishable).","operationId":"generate_samples_route_portal_social_samples__project_id__generate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Samples Route Portal Social Samples  Project Id  Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social/samples/{project_id}":{"get":{"tags":["portal-social"],"summary":"List Samples Route","description":"List the project's sample-pack posts (metadata.sample=true).","operationId":"list_samples_route_portal_social_samples__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Samples Route Portal Social Samples  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social/samples/{project_id}/approve":{"post":{"tags":["portal-social"],"summary":"Approve Samples Route","description":"Approve the sample pack — unlocks generation.\n\nStamps ``metadata.sample_approved_at`` and ``brand_voice_ready=true``.","operationId":"approve_samples_route_portal_social_samples__project_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamplePackApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Samples Route Portal Social Samples  Project Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/social/samples/{project_id}/feedback":{"post":{"tags":["portal-social"],"summary":"Submit Sample Feedback Route","description":"Append per-sample feedback (fed to Phase 3 as calibration notes).\n\nStored in ``social_readiness.metadata.sample_feedback[]``, max 20 entries.","operationId":"submit_sample_feedback_route_portal_social_samples__project_id__feedback_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Sample Feedback Route Portal Social Samples  Project Id  Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reader-emails/status":{"get":{"tags":["portal-reader-emails"],"summary":"Reader Email Status","operationId":"reader_email_status_portal_reader_emails_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reader Email Status Portal Reader Emails Status Get"}}}}}}},"/portal/reader-emails/{project_id}":{"get":{"tags":["portal-reader-emails"],"summary":"List Reader Emails","operationId":"list_reader_emails_portal_reader_emails__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Reader Emails Portal Reader Emails  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reader-emails/{project_id}/approve-all":{"post":{"tags":["portal-reader-emails"],"summary":"Approve All Reader Emails","operationId":"approve_all_reader_emails_portal_reader_emails__project_id__approve_all_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve All Reader Emails Portal Reader Emails  Project Id  Approve All Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reader-emails/{project_id}/{milestone_key}":{"post":{"tags":["portal-reader-emails"],"summary":"Decide Reader Emails","operationId":"decide_reader_emails_portal_reader_emails__project_id___milestone_key__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"milestone_key","in":"path","required":true,"schema":{"type":"string","title":"Milestone Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Reader Emails Portal Reader Emails  Project Id   Milestone Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/title-studio/{project_id}":{"get":{"tags":["portal-title-studio"],"summary":"Get Title Studio","description":"Every candidate, the scorecard card and its freshness, and the decision.","operationId":"get_title_studio_portal_title_studio__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TitleStudioResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/title-studio/{project_id}/candidates":{"post":{"tags":["portal-title-studio"],"summary":"Add Title Candidate","description":"Add a title to the candidate list and request a scorecard refresh.\n\nAdding is never a decision: ``selected_title`` and the decision state are\nuntouched. A full list (12) is refused with the service's own message rather\nthan appended-and-dropped — the scorecard caps at the same number, so a 13th\nentry would look live in the UI while being researched by nothing.","operationId":"add_title_candidate_portal_title_studio__project_id__candidates_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTitleCandidateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTitleCandidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/title-studio/{project_id}/candidates/remove":{"post":{"tags":["portal-title-studio"],"summary":"Remove Title Candidates","description":"Remove candidates so a full list can take a new idea (GH #7247).\n\nBefore this, a list at the 12-candidate ceiling was a dead end: the author\nhad to file a support ticket asking a human to delete titles. Removing is\nnever a decision — the book's current title is refused (422, the service's\nown wording) and nothing else about the title changes. No research is\nrequested: the remaining scores stay valid, and the Studio already offers a\nre-run once the candidate set no longer matches what was researched.","operationId":"remove_title_candidates_portal_title_studio__project_id__candidates_remove_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveTitleCandidatesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveTitleCandidatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/title-studio/{project_id}/refresh":{"post":{"tags":["portal-title-studio"],"summary":"Refresh Title Scorecard","description":"Ask for a fresh scorecard. Always 202 — the body carries the outcome.\n\n``fresh``/``capped``/``unavailable`` all mean nothing was enqueued and no\npaid research will run; only ``enqueued`` spent a slot. The daily cap and\nits fail-closed Redis reservation live in the service, not here.","operationId":"refresh_title_scorecard_portal_title_studio__project_id__refresh_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TitleRefreshResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/title-studio/{project_id}/select":{"post":{"tags":["portal-title-studio"],"summary":"Select Title","description":"Select a title — a preview by default, an APPROVAL only on ``confirm``.\n\n``confirm=false`` writes nothing. It answers \"what would happen\": whether the\nstored title would change, whether confirming would spend one of the\npost-cover title changes, and how many of those the book has left — the\nwarning and the count the author needs BEFORE the dialog, not after.\n\n``confirm=true`` delegates to the approval service, which sets the title and\nstamps the audit receipt in a single outline UPDATE.","operationId":"select_title_portal_title_studio__project_id__select_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectTitleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectTitleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/title-studio/{project_id}/keep":{"post":{"tags":["portal-title-studio"],"summary":"Keep Title","description":"The author keeps her current working title. Her tap IS the approval.\n\nThe title string does not change, so no post-cover change is spent and no\npreview is needed. Nothing here ever runs without her tap.","operationId":"keep_title_portal_title_studio__project_id__keep_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeepTitleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeepTitleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/title-studio/{project_id}/still-deciding":{"post":{"tags":["portal-title-studio"],"summary":"Mark Title Still Deciding","description":"Clear the approval receipt and go back to ``deciding``.\n\n``selected_title`` is NOT touched: an author who un-approves has not chosen a\ndifferent title. Whatever string is stored stays, and — being unapproved\nagain — renders as a working title everywhere that fences on the decision.","operationId":"mark_title_still_deciding_portal_title_studio__project_id__still_deciding_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StillDecidingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reader-lab/{project_id}":{"post":{"tags":["portal-reader-lab"],"summary":"Request Reader","operationId":"request_reader_portal_reader_lab__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReaderRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal-reader-lab"],"summary":"List Reader","operationId":"list_reader_portal_reader_lab__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/reader-lab/{project_id}/{run_id}":{"get":{"tags":["portal-reader-lab"],"summary":"Get Reader","operationId":"get_reader_portal_reader_lab__project_id___run_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project 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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/diy-bonuses/{project_id}":{"get":{"tags":["portal-diy-bonuses"],"summary":"Get Diy Bonuses","description":"The buyer's own bonus shelf, read-only.","operationId":"get_diy_bonuses_portal_diy_bonuses__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DIYBonusesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/diy-recording/{project_id}/takes/{material_id}/heard":{"get":{"tags":["portal-diy-recording"],"summary":"Get Take Heard","operationId":"get_take_heard_portal_diy_recording__project_id__takes__material_id__heard_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Material Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeHeardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/voice-feedback":{"get":{"tags":["portal-voice-feedback"],"summary":"List Project Voice Feedback","operationId":"list_project_voice_feedback_portal_chapters__project_id__voice_feedback_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectVoiceFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/voice-feedback":{"get":{"tags":["portal-voice-feedback"],"summary":"Get Chapter Voice Feedback","operationId":"get_chapter_voice_feedback_portal_chapters__project_id___chapter_id__voice_feedback_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-voice-feedback"],"summary":"Save Chapter Voice Feedback","operationId":"save_chapter_voice_feedback_portal_chapters__project_id___chapter_id__voice_feedback_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice-feedback/summary":{"get":{"tags":["admin-voice-feedback"],"summary":"Get Voice Feedback Summary","operationId":"get_voice_feedback_summary_admin_voice_feedback_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Voice Feedback Summary Admin Voice Feedback Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/voice-check/{token}":{"get":{"tags":["public-voice-check"],"summary":"Read Voice Check","operationId":"read_voice_check_public_voice_check__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCheckView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/voice-check":{"post":{"tags":["public-voice-check"],"summary":"Confirm Voice Check","operationId":"confirm_voice_check_public_voice_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCheckConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCheckConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/feedback/{token}":{"get":{"tags":["public-feedback"],"summary":"Read Feedback","operationId":"read_feedback_public_feedback__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/feedback":{"post":{"tags":["public-feedback"],"summary":"Confirm Feedback","operationId":"confirm_feedback_public_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/feature-use/{project_id}":{"post":{"tags":["portal-feature-use"],"summary":"Record Feature Use","operationId":"record_feature_use_portal_feature_use__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureUseRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Record Feature Use Portal Feature Use  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/seen":{"post":{"tags":["portal-chapter-seen"],"summary":"Record Chapter Seen","operationId":"record_chapter_seen_portal_chapters__project_id___chapter_id__seen_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterSeenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterSeenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/chapters/{project_id}/{chapter_id}/read-through":{"post":{"tags":["portal-chapter-seen"],"summary":"Record Chapter Read Through","description":"She read this chapter to the end (Mike, 2026-11-13).\n\nCounts for the drafting pace only, never as an approval\n(``app/services/chapter_read_through.py``). Staff, preview and training\nopens record nothing.","operationId":"record_chapter_read_through_portal_chapters__project_id___chapter_id__read_through_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"chapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chapter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterReadThroughRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterReadThroughResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/pause/{project_id}":{"get":{"tags":["portal-pause"],"summary":"Get Pause","operationId":"get_pause_portal_pause__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Pause Portal Pause  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-pause"],"summary":"Pause My Book","operationId":"pause_my_book_portal_pause__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalPauseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pause My Book Portal Pause  Project Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/pause/{project_id}/resume":{"post":{"tags":["portal-pause"],"summary":"Resume My Book","operationId":"resume_my_book_portal_pause__project_id__resume_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume My Book Portal Pause  Project Id  Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/me":{"get":{"tags":["portal-authors"],"summary":"Portal Authors Me","operationId":"portal_authors_me_portal_authors_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalAuthorsMe"}}}}}}},"/portal/authors/approvals":{"get":{"tags":["portal-authors"],"summary":"Portal Author Approvals","description":"Per chapter of the session's own book: who approved, who it is waiting on (GH #15217).\n\n``{\"co_authored\": false, \"chapters\": {}}`` on every solo book. First names only,\nneutral (\"Waiting on John\"). Scoped to the session's project; nothing else is read.","operationId":"portal_author_approvals_portal_authors_approvals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Portal Author Approvals Portal Authors Approvals Get"}}}}}}},"/portal/authors/leave":{"post":{"tags":["portal-authors"],"summary":"Leave This Book","description":"A co-author leaves the book from Settings (GH #15217, Mike 2026-11-25).\n\nOnly the signed-in author themselves. A co-author leaves (``leave_book``); the account\nholder hands the account role to the next author in the book's name order\n(``hand_over_and_leave``) and the plan goes to the selling rep, billing unchanged. A\nsolo book answers 404 (``_byline_session``). The others are told through the fan-out.","operationId":"leave_this_book_portal_authors_leave_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveBookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Leave This Book Portal Authors Leave Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/who-said":{"get":{"tags":["portal-authors"],"summary":"Who Said Questions","description":"The book's \"who said this?\" lines from its joint calls (GH #15217); [] on a solo book.","operationId":"who_said_questions_portal_authors_who_said_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Who Said Questions Portal Authors Who Said Get"}}}}}},"post":{"tags":["portal-authors"],"summary":"Answer Who Said","description":"Record who said one line (the session's own book only; who answered is kept).","operationId":"answer_who_said_portal_authors_who_said_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoSaidAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Who Said Portal Authors Who Said Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/overview":{"get":{"tags":["portal-authors"],"summary":"Our Authors Overview","description":"The \"Our authors\" home card (GH #15217): each author, their last call, and what\neach chapter waits on from whom. ``{\"co_authored\": false}`` on a solo book.","operationId":"our_authors_overview_portal_authors_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Our Authors Overview Portal Authors Overview Get"}}}}}}},"/portal/authors/me/headshot":{"post":{"tags":["portal-authors"],"summary":"Upload My Headshot","description":"A co-author's own headshot (GH #15217): the existing upload checks, R2, their own row.","operationId":"upload_my_headshot_portal_authors_me_headshot_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_my_headshot_portal_authors_me_headshot_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload My Headshot Portal Authors Me Headshot Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/bio-ask/dismiss":{"post":{"tags":["portal-authors"],"summary":"Dismiss Bio Ask","description":"\"Not now\" on the home's bio ask (GH #15217): asked once, kept on the author's own row.","operationId":"dismiss_bio_ask_portal_authors_bio_ask_dismiss_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Dismiss Bio Ask Portal Authors Bio Ask Dismiss Post"}}}}}}},"/portal/authors/brief":{"get":{"tags":["portal-authors"],"summary":"My Pre Call Brief","description":"The signed-in author's OWN latest unused brief (GH #15217); never another author's.","operationId":"my_pre_call_brief_portal_authors_brief_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response My Pre Call Brief Portal Authors Brief Get"}}}}}},"post":{"tags":["portal-authors"],"summary":"Save Pre Call Brief","description":"Record what this author wants Silas to cover or avoid; only Silas reads it.","operationId":"save_pre_call_brief_portal_authors_brief_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreCallBrief"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Save Pre Call Brief Portal Authors Brief Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/byline-order":{"get":{"tags":["portal-authors"],"summary":"Get Byline Order","description":"The name order on the cover: now, the order being confirmed, who has confirmed (release point 1).","operationId":"get_byline_order_portal_authors_byline_order_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Byline Order Portal Authors Byline Order Get"}}}}}},"post":{"tags":["portal-authors"],"summary":"Confirm Byline Order","description":"This author confirms an order; it takes effect once every author confirmed the same one.","operationId":"confirm_byline_order_portal_authors_byline_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BylineOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Confirm Byline Order Portal Authors Byline Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/disagreements":{"get":{"tags":["portal-authors"],"summary":"List Disagreements","operationId":"list_disagreements_portal_authors_disagreements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Disagreements Portal Authors Disagreements Get"}}}}}}},"/portal/authors/disagreements/{disagreement_id}/choice":{"post":{"tags":["portal-authors"],"summary":"Choose Version","operationId":"choose_version_portal_authors_disagreements__disagreement_id__choice_post","parameters":[{"name":"disagreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Disagreement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisagreementChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Choose Version Portal Authors Disagreements  Disagreement Id  Choice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/what-you-said":{"get":{"tags":["portal-authors"],"summary":"My Summaries","operationId":"my_summaries_portal_authors_what_you_said_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response My Summaries Portal Authors What You Said Get"}}}}}}},"/portal/authors/what-you-said/{interview_id}/correct":{"post":{"tags":["portal-authors"],"summary":"Correct What You Said","operationId":"correct_what_you_said_portal_authors_what_you_said__interview_id__correct_post","parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatYouSaidCorrection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Correct What You Said Portal Authors What You Said  Interview Id  Correct Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/what-you-said/{interview_id}/seen":{"post":{"tags":["portal-authors"],"summary":"Mark What You Said Seen","description":"The signed-in author opened their own summary of this call.","operationId":"mark_what_you_said_seen_portal_authors_what_you_said__interview_id__seen_post","parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark What You Said Seen Portal Authors What You Said  Interview Id  Seen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/calls":{"get":{"tags":["portal-authors"],"summary":"Calls Together","operationId":"calls_together_portal_authors_calls_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Calls Together Portal Authors Calls Get"}}}}}}},"/portal/authors/calls/together":{"post":{"tags":["portal-authors"],"summary":"Book Call Together","operationId":"book_call_together_portal_authors_calls_together_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTimeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Book Call Together Portal Authors Calls Together Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/calls/{interview_id}/cant-make-it":{"post":{"tags":["portal-authors"],"summary":"Cant Make Call Together","operationId":"cant_make_call_together_portal_authors_calls__interview_id__cant_make_it_post","parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cant Make Call Together Portal Authors Calls  Interview Id  Cant Make It Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/authors/calls/{interview_id}/move":{"post":{"tags":["portal-authors"],"summary":"Ask To Move Call Together","operationId":"ask_to_move_call_together_portal_authors_calls__interview_id__move_post","parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTimeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ask To Move Call Together Portal Authors Calls  Interview Id  Move Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/feedback-link/{project_id}":{"get":{"tags":["portal-feedback"],"summary":"Read Feedback Link","operationId":"read_feedback_link_portal_feedback_link__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Response Read Feedback Link Portal Feedback Link  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/celebration-clip/{project_id}":{"get":{"tags":["portal-celebration"],"summary":"Read Celebration Clip","operationId":"read_celebration_clip_portal_celebration_clip__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CelebrationClipResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/training/public/PT-001/{asset}":{"get":{"tags":["portal-training"],"summary":"Get Public Sign In Training Media","description":"Serve only the sign-in lesson to people who cannot access the portal yet.","operationId":"get_public_sign_in_training_media_portal_training_public_PT_001__asset__get","parameters":[{"name":"asset","in":"path","required":true,"schema":{"enum":["video","captions"],"type":"string","title":"Asset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Public Sign In Training Media Portal Training Public Pt 001  Asset  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/training/public/PT-069/{asset}":{"get":{"tags":["portal-training"],"summary":"Get Public Talk Your Book Diy Overview Media","description":"Serve only the approved DIY overview embedded on the public sales page.","operationId":"get_public_talk_your_book_diy_overview_media_portal_training_public_PT_069__asset__get","parameters":[{"name":"asset","in":"path","required":true,"schema":{"enum":["video","captions"],"type":"string","title":"Asset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Public Talk Your Book Diy Overview Media Portal Training Public Pt 069  Asset  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/training/{lesson_id}/{asset}":{"get":{"tags":["portal-training"],"summary":"Get Training Media","description":"Presign fixed training media for a valid project or waiting-room session.","operationId":"get_training_media_portal_training__lesson_id___asset__get","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}},{"name":"asset","in":"path","required":true,"schema":{"enum":["video","captions"],"type":"string","title":"Asset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Training Media Portal Training  Lesson Id   Asset  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/scorecard-review/{project_id}":{"get":{"tags":["portal-scorecard-review"],"summary":"List Scorecard Review Candidates Route","description":"List ambiguous notes only for the project named by the caller's JWT.","operationId":"list_scorecard_review_candidates_route_portal_scorecard_review__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorScorecardReviewQueueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/scorecard-review/{project_id}/{candidate_id}":{"post":{"tags":["portal-scorecard-review"],"summary":"Review Scorecard Candidate Route","description":"Apply an author decision through the atomic, stale-fenced review RPC.","operationId":"review_scorecard_candidate_route_portal_scorecard_review__project_id___candidate_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Candidate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorScorecardReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorScorecardReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/waiting/me":{"get":{"tags":["portal-waiting"],"summary":"Get Waiting Me","description":"The waiting author's own portal state + enrollments (Phase 3 home feed).","operationId":"get_waiting_me_portal_waiting_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitingMeResponse"}}}}}}},"/portal/waiting/home":{"get":{"tags":["portal-waiting"],"summary":"Get Waiting Home","description":"The waiting-room home feed: blueprint centerpiece, unlocked shelf\nitems with progress, reading list, deposit credit, reveal state.\nLocked items never leave the server (count + next-unlock hint only).","operationId":"get_waiting_home_portal_waiting_home_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitingHomeResponse"}}}}}}},"/portal/waiting/items/{item_id}/complete":{"post":{"tags":["portal-waiting"],"summary":"Complete Waiting Item","description":"Complete a currently-visible item; reflections feed the Idea Bank.","operationId":"complete_waiting_item_portal_waiting_items__item_id__complete_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Waiting Item Portal Waiting Items  Item Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/waiting/reading-notes":{"post":{"tags":["portal-waiting"],"summary":"Save Waiting Reading Note","description":"\"Know your shelf\" notes — persisted and fed to the Idea Bank.","operationId":"save_waiting_reading_note_portal_waiting_reading_notes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingNoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Save Waiting Reading Note Portal Waiting Reading Notes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/waiting/ready":{"post":{"tags":["portal-waiting"],"summary":"Signal Ready","description":"Author raises their hand to complete enrollment — sales gets the\nwaiting-ready-to-complete tag to time the call. No payment logic here.","operationId":"signal_ready_portal_waiting_ready_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Signal Ready Portal Waiting Ready Post"}}}}}}},"/portal/waiting/enter-book":{"post":{"tags":["portal-waiting"],"summary":"Enter Book","description":"The reveal: converted deposit-holder steps into their book portal.\n\nRe-mints the session cookie for their active project (same identity,\nsibling scope — switch_session_book precedent from portal_books). The\ncaller's ORIGINAL session start carries over, so re-entering from an\nexisting project session never resets the 90-day cap (GH #7064).","operationId":"enter_book_portal_waiting_enter_book_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Enter Book Portal Waiting Enter Book Post"}}}}}}},"/api/prelaunch/{identifier}":{"get":{"tags":["prelaunch"],"summary":"Get Prelaunch Page","description":"Return public pre-launch page data. Accepts project UUID or slug.\n\n404 both when the project is missing and when the generated copy is absent\n(no copy = page not ready; an empty shell is never rendered).","operationId":"get_prelaunch_page_api_prelaunch__identifier__get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrelaunchPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prelaunch/{identifier}/subscribe":{"post":{"tags":["prelaunch"],"summary":"Subscribe To Prelaunch","description":"Capture a pre-launch signup and return the live combined list count.","operationId":"subscribe_to_prelaunch_api_prelaunch__identifier__subscribe_post","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrelaunchSubscribeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrelaunchSubscribeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prelaunch/{identifier}/form":{"post":{"tags":["prelaunch"],"summary":"Subscribe To Prelaunch Form","description":"Pre-launch signup from an author-site page (urlencoded, CORS simple).","operationId":"subscribe_to_prelaunch_form_api_prelaunch__identifier__form_post","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrelaunchSubscribeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/retention":{"get":{"tags":["privacy"],"summary":"Privacy Retention Matrix","operationId":"privacy_retention_matrix_privacy_retention_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Privacy Retention Matrix Privacy Retention Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/requests":{"post":{"tags":["privacy"],"summary":"Privacy Request Create","operationId":"privacy_request_create_privacy_requests_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Privacy Request Create Privacy Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["privacy"],"summary":"Privacy Request List","operationId":"privacy_request_list_privacy_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Privacy Request List Privacy Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/requests/{request_id}/review":{"post":{"tags":["privacy"],"summary":"Privacy Request Review","operationId":"privacy_request_review_privacy_requests__request_id__review_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Privacy Request Review Privacy Requests  Request Id  Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/projects/{project_id}/export/dry-run":{"get":{"tags":["privacy"],"summary":"Privacy Export Dry Run","operationId":"privacy_export_dry_run_privacy_projects__project_id__export_dry_run_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Privacy Export Dry Run Privacy Projects  Project Id  Export Dry Run Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/projects/{project_id}/deletion/dry-run":{"get":{"tags":["privacy"],"summary":"Privacy Deletion Dry Run","operationId":"privacy_deletion_dry_run_privacy_projects__project_id__deletion_dry_run_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"legal_hold","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Legal Hold"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Privacy Deletion Dry Run Privacy Projects  Project Id  Deletion Dry Run Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}":{"get":{"tags":["portal-sites"],"summary":"Get Site Status","operationId":"get_site_status_api_portal_site__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSitePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/slug":{"put":{"tags":["portal-sites"],"summary":"Update Site Slug","description":"Choose {slug}.authorbyline.com. Cross-tenant posts 404 via _require_access.","operationId":"update_site_slug_api_portal_site__project_id__slug_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSiteSlugUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSitePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/publish":{"post":{"tags":["portal-sites"],"summary":"Request Publish","operationId":"request_publish_api_portal_site__project_id__publish_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSitePublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/settings":{"patch":{"tags":["portal-sites"],"summary":"Update Site Settings","description":"Author-editable site settings (buy URL, etc.). Re-publish to apply.","operationId":"update_site_settings_api_portal_site__project_id__settings_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSiteSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSitePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/press":{"get":{"tags":["portal-sites"],"summary":"Get Site Press","description":"Live press placements the site shows, plus the \"show on my site\" toggle.","operationId":"get_site_press_api_portal_site__project_id__press_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PressSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["portal-sites"],"summary":"Update Site Press","description":"Turn the \"Featured on\" section on or off; a live site republishes.","operationId":"update_site_press_api_portal_site__project_id__press_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PressSiteVisibilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PressSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake":{"get":{"tags":["portal-sites"],"summary":"Get Site Intake","description":"Everything the author has provided (or can provide) to build the site,\nplus the resolved brand colors and the pre-made palette options.","operationId":"get_site_intake_api_portal_site__project_id__intake_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/brand":{"patch":{"tags":["portal-sites"],"summary":"Update Site Brand","description":"Set brand colors: a pre-made palette OR three custom hex values.\n\nPersisted to client_preferences.brand_assets.colors so resolve_brand picks\nthem up on the next publish (no generator change).","operationId":"update_site_brand_api_portal_site__project_id__intake_brand_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/retailers":{"patch":{"tags":["portal-sites"],"summary":"Update Site Retailers","description":"Retailer edition buy links -> author_sites.retailer_urls (https-gated).\n\nPARTIAL merge into the stored dict: an omitted slot is untouched, an\nexplicit '' clears that slot, a value sets it. A basic form that only\nposts amazon must not wipe a previously-saved apple link (codex R?-P2).","operationId":"update_site_retailers_api_portal_site__project_id__intake_retailers_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetailerUrlsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/social":{"patch":{"tags":["portal-sites"],"summary":"Update Site Social","description":"Social profile links -> author_sites.social_urls (https-gated).\n\nPARTIAL merge into the stored dict (same semantics as retailers): omitted\nslot untouched, explicit '' clears, value sets (codex R?-P2).","operationId":"update_site_social_api_portal_site__project_id__intake_social_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialUrlsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/audio-title":{"patch":{"tags":["portal-sites"],"summary":"Update Site Audio Title","description":"Set the audiobook-sample player title (the file is uploaded separately).\nMerges into audio_assets so an uploaded sample_key is preserved.","operationId":"update_site_audio_title_api_portal_site__project_id__intake_audio_title_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioSampleTitleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/audio-sample":{"post":{"tags":["portal-sites"],"summary":"Upload Site Audio Sample","description":"Upload an audiobook-sample MP3/M4A. Stored in R2; its key lands in\naudio_assets.sample_key so the player renders on publish (an upgrade\npackage surfaces it for base-tier authors, but the data saves for all).","operationId":"upload_site_audio_sample_api_portal_site__project_id__intake_audio_sample_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_site_audio_sample_api_portal_site__project_id__intake_audio_sample_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteAudioUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/endorsements":{"patch":{"tags":["portal-sites"],"summary":"Update Site Endorsements","description":"Real endorsements -> author_sites.endorsements. Saving REQUIRES the\nauthor to confirm the quotes are real and permitted (redesign hard rule).","operationId":"update_site_endorsements_api_portal_site__project_id__intake_endorsements_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndorsementsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/magnets":{"patch":{"tags":["portal-sites"],"summary":"Update Site Magnets","description":"Lead-magnet library -> author_sites.lead_magnets.\n\nLaunch+ full sites get the full library. Authority Book featured pages (Wave\n2) also get a lead magnet on the apex page (entitlement: lead_magnets=True,\nmax_lead_magnets=1), so a featured-scope project is allowed here too, capped\nat its ``max_lead_magnets`` (codex Wave-5 P1).","operationId":"update_site_magnets_api_portal_site__project_id__intake_magnets_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadMagnetsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/offers":{"patch":{"tags":["portal-sites"],"summary":"Update Site Offers","description":"Offer / funnel hub (Engine+ tier) -> author_sites.offers.\n\nPartial merge: the basic form sends headline+items and must NOT drop the\nadvanced fields (bulk, guest_articles) it never carried. Only fields the\nmodel actually set overwrite the stored dict; unspecified fields preserve\ntheir stored value (codex R?-P2).","operationId":"update_site_offers_api_portal_site__project_id__intake_offers_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffersUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/course":{"patch":{"tags":["portal-sites"],"summary":"Update Site Course","description":"Course / membership teaser (Command tier) -> author_sites.course. A\nblank title clears the course page.\n\nPartial merge: the basic metadata form sends scalar fields only and must\nNOT erase modules/outcomes it never carried. Only fields the model set\noverwrite the stored dict; modules/outcomes preserve when unspecified\n(None) and clear when sent as [] (codex R?-P2).","operationId":"update_site_course_api_portal_site__project_id__intake_course_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/intake/media":{"patch":{"tags":["portal-sites"],"summary":"Update Site Media","description":"Curated media library (speaking reels / welcome videos / podcast\nepisodes / links) with a placement preference per item -> author_sites.media.","operationId":"update_site_media_api_portal_site__project_id__intake_media_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__author_site__MediaUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/unpublish":{"post":{"tags":["portal-sites"],"summary":"Request Unpublish","operationId":"request_unpublish_api_portal_site__project_id__unpublish_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSitePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/books":{"get":{"tags":["portal-sites"],"summary":"List Site Books","description":"Every book on (or addable to) the author's site, with curation state.\n\nDeliberately SYNC (`def`): FastAPI threadpools it, so the per-book\nSupabase queries + R2 presigns cannot stall the event loop (codex R9-P2;\nsame posture as the public serving routes).","operationId":"list_site_books_api_portal_site__project_id__books_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSiteBooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/books/{book_project_id}":{"patch":{"tags":["portal-sites"],"summary":"Update Site Book Curation","description":"Per-book curation: include/exclude, primary, order, buy link, cover\npick, content/cover/buy toggles, blurb override. Republish to apply.","operationId":"update_site_book_curation_api_portal_site__project_id__books__book_project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"book_project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Book Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSiteBookUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSiteBooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/domain":{"get":{"tags":["portal-domains"],"summary":"Domain Status","operationId":"domain_status_api_portal_site__project_id__domain_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Status Api Portal Site  Project Id  Domain Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/domain/suggestions":{"get":{"tags":["portal-domains"],"summary":"Domain Suggestions","description":"Up to 5 names the author can buy today at the flat price (wave AJ domains-6).","operationId":"domain_suggestions_api_portal_site__project_id__domain_suggestions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Suggestions Api Portal Site  Project Id  Domain Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/domain/check":{"post":{"tags":["portal-domains"],"summary":"Domain Check","operationId":"domain_check_api_portal_site__project_id__domain_check_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainAvailabilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Check Api Portal Site  Project Id  Domain Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/domain/checkout":{"post":{"tags":["portal-domains"],"summary":"Domain Checkout","operationId":"domain_checkout_api_portal_site__project_id__domain_checkout_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Checkout Api Portal Site  Project Id  Domain Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/domain/attached":{"get":{"tags":["portal-domains"],"summary":"Domain Attached","operationId":"domain_attached_api_portal_site__project_id__domain_attached_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Attached Api Portal Site  Project Id  Domain Attached Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/domain/attach":{"post":{"tags":["portal-domains"],"summary":"Domain Attach","operationId":"domain_attach_api_portal_site__project_id__domain_attach_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainAttachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Attach Api Portal Site  Project Id  Domain Attach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site/{project_id}/domain/verify":{"post":{"tags":["portal-domains"],"summary":"Domain Verify","operationId":"domain_verify_api_portal_site__project_id__domain_verify_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Verify Api Portal Site  Project Id  Domain Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/account-email/{project_id}/change":{"post":{"tags":["portal-account-email"],"summary":"Request Email Change","operationId":"request_email_change_portal_account_email__project_id__change_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__portal_account_email__EmailChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Email Change Portal Account Email  Project Id  Change Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/account-email/confirm":{"post":{"tags":["portal-account-email"],"summary":"Confirm Email Change","operationId":"confirm_email_change_portal_account_email_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Confirm Email Change Portal Account Email Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/account-email/stop":{"post":{"tags":["portal-account-email"],"summary":"Stop Email Change","operationId":"stop_email_change_portal_account_email_stop_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Stop Email Change Portal Account Email Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/config":{"get":{"tags":["portal-site-edit"],"summary":"Site Edit Config","operationId":"site_edit_config_api_portal_site_edit__project_id__config_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/conversation":{"post":{"tags":["portal-site-edit"],"summary":"Start Or Get Conversation","operationId":"start_or_get_conversation_api_portal_site_edit__project_id__conversation_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/conversation/new":{"post":{"tags":["portal-site-edit"],"summary":"Start New Conversation","description":"Start a FRESH site-edit chat (vs start_or_get which resumes the latest),\nso a client isn't stuck in one giant thread.","operationId":"start_new_conversation_api_portal_site_edit__project_id__conversation_new_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/conversations":{"get":{"tags":["portal-site-edit"],"summary":"List Conversations Route","description":"The project's past site-edit chats (newest-active first) — powers the\n'past chats' picker. Project-scoped in the query.","operationId":"list_conversations_route_api_portal_site_edit__project_id__conversations_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditConversationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/conversation/{conversation_id}/messages":{"get":{"tags":["portal-site-edit"],"summary":"Conversation History","operationId":"conversation_history_api_portal_site_edit__project_id__conversation__conversation_id__messages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"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/SiteEditHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/message":{"post":{"tags":["portal-site-edit"],"summary":"Post Message","operationId":"post_message_api_portal_site_edit__project_id__message_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/message/{task_id}":{"get":{"tags":["portal-site-edit"],"summary":"Poll Message","operationId":"poll_message_api_portal_site_edit__project_id__message__task_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditPollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/drafts":{"get":{"tags":["portal-site-edit"],"summary":"List Site Edit Drafts","operationId":"list_site_edit_drafts_api_portal_site_edit__project_id__drafts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditDraftListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/drafts/{draft_id}":{"get":{"tags":["portal-site-edit"],"summary":"Get Site Edit Draft","operationId":"get_site_edit_draft_api_portal_site_edit__project_id__drafts__draft_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/drafts/{draft_id}/approve":{"post":{"tags":["portal-site-edit"],"summary":"Approve Site Edit Draft","description":"The author's Approve click — the ONLY path that can flip.\n\nFenced status transition (previewing → approved) makes a double-click a\nno-op; the approval build re-runs the sanitizer hard-gate before the flip.","operationId":"approve_site_edit_draft_api_portal_site_edit__project_id__drafts__draft_id__approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/drafts/{draft_id}/discard":{"post":{"tags":["portal-site-edit"],"summary":"Discard Site Edit Draft","operationId":"discard_site_edit_draft_api_portal_site_edit__project_id__drafts__draft_id__discard_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteEditApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/site-edit/{project_id}/preview/{draft_id}/{path}":{"get":{"tags":["portal-site-edit"],"summary":"Preview Draft Asset","description":"Serve a sanitized draft page/asset from the PRIVATE preview R2 prefix.\n\nJWT + ownership gated (the tool-handler tenant check does not protect this\nsubsequent GET, so it is enforced here). Path is allowlisted to prevent\ntraversal; content is already sanitized at preview-build time.","operationId":"preview_draft_asset_api_portal_site_edit__project_id__preview__draft_id___path__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/author-sites/{project_id}/disable":{"post":{"tags":["admin-author-sites"],"summary":"Admin Disable Site","operationId":"admin_disable_site_api_admin_author_sites__project_id__disable_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSiteDisableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSitePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/author-sites/{project_id}/enable":{"post":{"tags":["admin-author-sites"],"summary":"Admin Enable Site","description":"Lift a staff takedown back to draft (author must republish).","operationId":"admin_enable_site_api_admin_author_sites__project_id__enable_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorSitePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/author-sites/{project_id}/republish":{"post":{"tags":["admin-author-sites"],"summary":"Admin Republish Site","description":"Rebuild a site from CURRENT sources (2026-10-11 title takedown repair).\n\nFeatured page: a forced featured regeneration (same automated QA and\nexact-generation publish). Full site: the normal publish task, which ships\nthe name-only coming-soon page while the author has not approved a title.\nNever touches a disabled site (enable it first).","operationId":"admin_republish_site_api_admin_author_sites__project_id__republish_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Republish Site Api Admin Author Sites  Project Id  Republish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{slug}/lead":{"post":{"tags":["public-sites"],"summary":"Submit Site Lead","description":"Accept a lead from a hosted site's embedded form.\n\nAccepts x-www-form-urlencoded (the snippet's simple-request encoding) or\nJSON. The lead is persisted durably BEFORE the GHL forward is enqueued;\nthe honeypot field drops bot traffic silently with a 200.","operationId":"submit_site_lead_api_sites__slug__lead_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/voices":{"get":{"tags":["course-portal"],"summary":"List Course Voices","description":"List the narrator voices the buyer can pick for course audio (10 male +\n10 female curated voices, plus whether their own cloned voice is available).","operationId":"list_course_voices_portal_course__project_id__voices_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Course Voices Portal Course  Project Id  Voices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/voice":{"post":{"tags":["course-portal"],"summary":"Set Course Voice","description":"Save the buyer's narrator-voice selection for course audio.","operationId":"set_course_voice_portal_course__project_id__voice_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseVoiceSelectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Course Voice Portal Course  Project Id  Voice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}":{"get":{"tags":["course-portal"],"summary":"Get Course Overview","description":"Get the full course overview for the portal Course tab.","operationId":"get_course_overview_portal_course__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/strategy":{"get":{"tags":["course-portal"],"summary":"Get Course Strategy","description":"Get the strategy brief for review.","operationId":"get_course_strategy_portal_course__project_id__strategy_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseStrategyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/strategy/approve":{"post":{"tags":["course-portal"],"summary":"Approve Strategy","description":"Approve the course strategy brief.","operationId":"approve_strategy_portal_course__project_id__strategy_approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/curriculum":{"get":{"tags":["course-portal"],"summary":"Get Course Curriculum","description":"Get the curriculum for review.","operationId":"get_course_curriculum_portal_course__project_id__curriculum_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseCurriculumResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/curriculum/approve":{"post":{"tags":["course-portal"],"summary":"Approve Curriculum","description":"Approve the course curriculum.","operationId":"approve_curriculum_portal_course__project_id__curriculum_approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/scripts/approve":{"post":{"tags":["course-portal"],"summary":"Approve Scripts","description":"Approve all lesson scripts.","operationId":"approve_scripts_portal_course__project_id__scripts_approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/assets":{"get":{"tags":["course-portal"],"summary":"Get Course Assets List","description":"Get all course assets with download URLs.","operationId":"get_course_assets_list_portal_course__project_id__assets_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourseAssetListItem"},"title":"Response Get Course Assets List Portal Course  Project Id  Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/assets/{asset_id}/download":{"get":{"tags":["course-portal"],"summary":"Download Course Asset","description":"Get a presigned download URL for a specific asset.","operationId":"download_course_asset_portal_course__project_id__assets__asset_id__download_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseAssetDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/voice-consent":{"post":{"tags":["course-portal"],"summary":"Submit Voice Consent","description":"Submit AI voice consent for course narration.","operationId":"submit_voice_consent_portal_course__project_id__voice_consent_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/delivery/approve":{"post":{"tags":["course-portal"],"summary":"Approve Delivery","description":"Approve final course delivery.","operationId":"approve_delivery_portal_course__project_id__delivery_approve_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseDeliveryApprovalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/interviews":{"get":{"tags":["course-portal"],"summary":"Get Course Interviews","description":"Get course interview list with statuses.","operationId":"get_course_interviews_portal_course__project_id__interviews_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourseInterviewListItem"},"title":"Response Get Course Interviews Portal Course  Project Id  Interviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/upload-recording":{"post":{"tags":["course-portal"],"summary":"Upload Course Recording","description":"Upload author-recorded video (lesson recording or webinar).\n\nupload.upload_type: lesson_recording | webinar_recording | anchor_video\nupload.lesson_id: Required for lesson_recording, links to course_lessons row","operationId":"upload_course_recording_portal_course__project_id__upload_recording_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_course_recording_portal_course__project_id__upload_recording_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseRecordingUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/recording-assignments":{"get":{"tags":["course-portal"],"summary":"Get Recording Assignments","description":"Get lessons that require author recording with briefs.","operationId":"get_recording_assignments_portal_course__project_id__recording_assignments_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseRecordingAssignmentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/viewer":{"get":{"tags":["course-portal"],"summary":"Get Course Viewer Overview","description":"Curriculum overview for the student-facing course viewer.\n\nAvailable once the curriculum has cleared ops review + author handoff\n(409 with a friendly message before that — same contract as the review\nendpoints). Ownership: the token's project only (Pattern B).","operationId":"get_course_viewer_overview_portal_course__project_id__viewer_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/viewer/lessons/{lesson_id}":{"get":{"tags":["course-portal"],"summary":"Get Course Viewer Lesson","description":"Full lesson content (script + slides + narration + media) for the viewer.\n\nLesson text belongs to the ASSETS review stage, so this fails closed until\nthat stage cleared ops review + handoff. Cross-tenant: a lesson id from\nanother project's course 404s (never confirms existence).","operationId":"get_course_viewer_lesson_portal_course__project_id__viewer_lessons__lesson_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/course/{project_id}/viewer/workbook":{"get":{"tags":["course-portal"],"summary":"Get Course Viewer Workbook","description":"Short-lived signed URL for the course workbook PDF.","operationId":"get_course_viewer_workbook_portal_course__project_id__viewer_workbook_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-commerce/{project_id}/binding":{"get":{"tags":["course-commerce"],"summary":"Get Binding","operationId":"get_binding_course_commerce__project_id__binding_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CourseCommerceBindingResponse"},{"type":"null"}],"title":"Response Get Binding Course Commerce  Project Id  Binding Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["course-commerce"],"summary":"Put Binding","operationId":"put_binding_course_commerce__project_id__binding_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseCommerceBindingUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseCommerceBindingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-commerce/ghl/events":{"post":{"tags":["course-commerce"],"summary":"Ghl Event","operationId":"ghl_event_course_commerce_ghl_events_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"x-wh-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Wh-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-commerce/{project_id}/workflow-config":{"get":{"tags":["course-commerce"],"summary":"Get Workflow Config","operationId":"get_workflow_config_course_commerce__project_id__workflow_config_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-commerce/{project_id}/ghl/workflow":{"post":{"tags":["course-commerce"],"summary":"Ghl Workflow Event","operationId":"ghl_workflow_event_course_commerce__project_id__ghl_workflow_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-delivery/session":{"post":{"tags":["course-delivery"],"summary":"Start Course Session","description":"Exchange an enrollment magic link (enrollment_id + access token) for a\nshort-lived course_buyer session cookie.","operationId":"start_course_session_course_delivery_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-delivery/logout":{"post":{"tags":["course-delivery"],"summary":"End Course Session","operationId":"end_course_session_course_delivery_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response End Course Session Course Delivery Logout Post"}}}}}}},"/course-delivery/me/course":{"get":{"tags":["course-delivery"],"summary":"Get Buyer Course","description":"The buyer's course home: curriculum + drip + completion.","operationId":"get_buyer_course_course_delivery_me_course_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/course-delivery/me/lessons/{lesson_id}":{"get":{"tags":["course-delivery"],"summary":"Get Buyer Lesson","description":"Full lesson content, gated by drip + the same review readiness the viewer\nenforces. 404 for a lesson outside this buyer's course; 403 when drip-locked.","operationId":"get_buyer_lesson_course_delivery_me_lessons__lesson_id__get","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerLessonDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-delivery/me/lessons/{lesson_id}/complete":{"post":{"tags":["course-delivery"],"summary":"Complete Buyer Lesson","description":"Mark a lesson complete (idempotent). Only an approved, unlocked lesson may\nbe completed, so drip can't be bypassed by POSTing completions.","operationId":"complete_buyer_lesson_course_delivery_me_lessons__lesson_id__complete_post","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerCompletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-delivery/me/workbook":{"get":{"tags":["course-delivery"],"summary":"Get Buyer Workbook","operationId":"get_buyer_workbook_course_delivery_me_workbook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerWorkbookResponse"}}}}}}},"/course-delivery/{project_id}/enrollments":{"post":{"tags":["course-delivery"],"summary":"Enroll Course Buyer","description":"Enroll a buyer into this project's course and return their access link.\nRe-enrolling the same email rotates the access token in place.","operationId":"enroll_course_buyer_course_delivery__project_id__enrollments_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollBuyerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollBuyerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["course-delivery"],"summary":"List Course Enrollments","description":"Roster of buyers enrolled in this project's course (no access tokens).","operationId":"list_course_enrollments_course_delivery__project_id__enrollments_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Course Enrollments Course Delivery  Project Id  Enrollments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/course-delivery/{project_id}/delivery-config":{"get":{"tags":["course-delivery"],"summary":"Get Course Delivery Config","description":"Read saved learner settings without opting a course in as a side effect.","operationId":"get_course_delivery_config_course_delivery__project_id__delivery_config_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Course Delivery Config Course Delivery  Project Id  Delivery Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["course-delivery"],"summary":"Set Delivery Config","description":"Set drip mode + per-course native-delivery opt-in for this course.","operationId":"set_delivery_config_course_delivery__project_id__delivery_config_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseDeliveryConfigUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseDeliveryConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/public/config":{"get":{"tags":["ai-course"],"summary":"Get Public Config","description":"What the sales page needs: open/closed, the three tiers, the preview.","operationId":"get_public_config_ai_course_public_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCoursePublicConfig"}}}}}}},"/ai-course/public/preview/captions":{"get":{"tags":["ai-course"],"summary":"Get Public Preview Captions","description":"Captions for the free sample lesson on the sales page (Lesson 1 only).","operationId":"get_public_preview_captions_ai_course_public_preview_captions_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/ai-course/checkout":{"post":{"tags":["ai-course"],"summary":"Create Checkout","operationId":"create_checkout_ai_course_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/checkout/status":{"get":{"tags":["ai-course"],"summary":"Get Checkout Status","description":"Welcome-page poll: has this paid session been turned into access yet?","operationId":"get_checkout_status_ai_course_checkout_status_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","minLength":8,"maxLength":255,"pattern":"^cs_[A-Za-z0-9_]+$","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseCheckoutStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/access/resend":{"post":{"tags":["ai-course"],"summary":"Resend Access Link","description":"Email me my link. Same answer whether or not the email is enrolled.","operationId":"resend_access_link_ai_course_access_resend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseResendLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Resend Access Link Ai Course Access Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/session":{"post":{"tags":["ai-course"],"summary":"Start Session","description":"Exchange the lifetime magic link (enrollment id + token) for a session cookie.","operationId":"start_session_ai_course_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Start Session Ai Course Session Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/logout":{"post":{"tags":["ai-course"],"summary":"End Session","operationId":"end_session_ai_course_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response End Session Ai Course Logout Post"}}}}}}},"/ai-course/me/course":{"get":{"tags":["ai-course"],"summary":"Get My Course","operationId":"get_my_course_ai_course_me_course_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseOverview"}}}}}}},"/ai-course/me/lessons/{lesson_id}":{"get":{"tags":["ai-course"],"summary":"Get My Lesson","description":"One lesson: video (or \"coming soon\"), the page text, previous/next.","operationId":"get_my_lesson_ai_course_me_lessons__lesson_id__get","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseLessonDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/me/lessons/{lesson_id}/captions":{"get":{"tags":["ai-course"],"summary":"Get My Lesson Captions","operationId":"get_my_lesson_captions_ai_course_me_lessons__lesson_id__captions_get","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/me/lessons/{lesson_id}/complete":{"post":{"tags":["ai-course"],"summary":"Complete My Lesson","operationId":"complete_my_lesson_ai_course_me_lessons__lesson_id__complete_post","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseCompletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/me/resources/{slug}":{"get":{"tags":["ai-course"],"summary":"Get My Resource","operationId":"get_my_resource_ai_course_me_resources__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/AiCourseResourceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai-course/book-grant/{project_id}":{"get":{"tags":["ai-course"],"summary":"Get Book Grant","description":"Should the portal show the \"included with your book\" card?","operationId":"get_book_grant_ai_course_book_grant__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseBookGrantStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ai-course"],"summary":"Open Book Grant","description":"One click from the portal: create/reuse the free 'complete' enrollment\nfor this book's author and return the course start link (no email).","operationId":"open_book_grant_ai_course_book_grant__project_id__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCourseBookGrantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quiz/submit":{"post":{"tags":["quiz"],"summary":"Submit Quiz","description":"Process a funnel quiz submission.\n\nPublic endpoint — no auth required. Rate limited to 10/minute per IP.\nCreates or updates a lead, persists quiz data, and triggers\nblueprint generation.","operationId":"submit_quiz_quiz_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizSubmission"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quiz/results":{"post":{"tags":["quiz"],"summary":"Get Quiz Results","description":"Queue AI-personalized quiz results generation.\n\nPublic endpoint — no auth required. Rate limited to 10/hour per IP.\nTakes quiz answers and defers personalized results generation to Celery.","operationId":"get_quiz_results_quiz_results_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizResultsRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizResultsJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quiz/results/{job_id}":{"get":{"tags":["quiz"],"summary":"Get Quiz Results Status","description":"Return the status or completed payload for an async quiz results job.","operationId":"get_quiz_results_status_quiz_results__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizResultsStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/auth/login":{"post":{"tags":["training"],"summary":"Training Login","description":"Authenticate a sales rep and set a training_token cookie.","operationId":"training_login_training_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/auth/logout":{"post":{"tags":["training"],"summary":"Training Logout","description":"Clear the training_token cookie.","operationId":"training_logout_training_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/training/auth/password-reset/request":{"post":{"tags":["training"],"summary":"Training Request Password Reset","description":"Email a reset link if the address belongs to a live rep account.\n\nAlways 202 with the same body — see the ops twin for why the response\nmust not vary with the outcome.","operationId":"training_request_password_reset_training_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/auth/password-reset/validate":{"post":{"tags":["training"],"summary":"Training Validate Password Reset","description":"Check a reset link before the page asks for a new password.\n\nPOST rather than GET so the token stays out of access logs — see\nStaffPasswordResetValidate.","operationId":"training_validate_password_reset_training_auth_password_reset_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetValidate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/auth/password-reset/confirm":{"post":{"tags":["training"],"summary":"Training Confirm Password Reset","description":"Redeem a reset token and set the new sales training password.","operationId":"training_confirm_password_reset_training_auth_password_reset_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPasswordResetConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/auth/me":{"get":{"tags":["training"],"summary":"Training Me","description":"Return the currently authenticated rep's profile.","operationId":"training_me_training_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Training Me Training Auth Me Get"}}}}}}},"/training/webinar2-replay-url":{"get":{"tags":["training"],"summary":"Get Webinar2 Replay Url","description":"Presigned URL for the internal Marketing Plan Web Class replay.\n\nThe v16 recording (2026-08-19 master) lives in R2, not on a public CDN —\nthe frontend `/sales-training/resources/webinar-2-replay` route calls this\n(same training-rep gate) and proxies the stream with Range support.","operationId":"get_webinar2_replay_url_training_webinar2_replay_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Webinar2 Replay Url Training Webinar2 Replay Url Get"}}}}}}},"/training/talk-your-book-diy/media/{asset}":{"get":{"tags":["training"],"summary":"Get Talk Your Book Diy Sales Training Media","description":"Serve the internal sales walkthrough only to authenticated reps.","operationId":"get_talk_your_book_diy_sales_training_media_training_talk_your_book_diy_media__asset__get","parameters":[{"name":"asset","in":"path","required":true,"schema":{"enum":["video","captions"],"type":"string","title":"Asset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Talk Your Book Diy Sales Training Media Training Talk Your Book Diy Media  Asset  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/talk-your-book-diy/resources":{"get":{"tags":["training"],"summary":"Get Talk Your Book Diy Sales Resources","description":"Generate the current rep's reusable links for each DIY price point.\n\nThe links are intentionally customer-shareable capabilities. They are never\nlogged, committed, or embedded in the public site. Rep-attributed links stop\nauthorizing advisor pricing as soon as that rep is deactivated.","operationId":"get_talk_your_book_diy_sales_resources_training_talk_your_book_diy_resources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Talk Your Book Diy Sales Resources Training Talk Your Book Diy Resources Get"}}}}}}},"/training/demo-portals/{kind}/open":{"get":{"tags":["training"],"summary":"Open Sales Training Demo Portal","description":"Open one fixed synthetic author portal for an authenticated rep.\n\nThis deliberately issues no link, password, or reusable author credential.\nThe browser receives its normal short-lived project session only after the\nexisting training-rep authentication and fixed-fixture checks pass.","operationId":"open_sales_training_demo_portal_training_demo_portals__kind__open_get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["authority","diy"],"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/progress":{"get":{"tags":["training"],"summary":"Get Progress","description":"Get the current rep's full progress across all modules and quizzes.","operationId":"get_progress_training_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgressResponse"}}}}}}},"/training/progress/{module_number}/start":{"post":{"tags":["training"],"summary":"Start Module","description":"Record that the rep has started a module. Idempotent.","operationId":"start_module_training_progress__module_number__start_post","parameters":[{"name":"module_number","in":"path","required":true,"schema":{"type":"integer","title":"Module Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Module Training Progress  Module Number  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/progress/{module_number}/update":{"post":{"tags":["training"],"summary":"Update Progress","description":"Update scroll depth and time spent for a module. Monotonic increase only.","operationId":"update_progress_training_progress__module_number__update_post","parameters":[{"name":"module_number","in":"path","required":true,"schema":{"type":"integer","title":"Module Number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProgressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Progress Training Progress  Module Number  Update Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/progress/{module_number}/complete":{"post":{"tags":["training"],"summary":"Complete Module Route","description":"Mark a module as complete after validating engagement requirements.\n\nRequires: scroll_depth_pct >= 80 and time_spent_seconds >= 120.\nPass ?bypass=1 to skip engagement checks (testing only).\nAfter completion, checks if the rep qualifies for certification.","operationId":"complete_module_route_training_progress__module_number__complete_post","parameters":[{"name":"module_number","in":"path","required":true,"schema":{"type":"integer","title":"Module Number"}},{"name":"bypass","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bypass"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Module Route Training Progress  Module Number  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/ftc-signature":{"get":{"tags":["training"],"summary":"Get Ftc Signature Route","description":"Check whether the current rep has signed the FTC compliance agreement.","operationId":"get_ftc_signature_route_training_ftc_signature_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Ftc Signature Route Training Ftc Signature Get"}}}}}},"post":{"tags":["training"],"summary":"Submit Ftc Signature Route","description":"Submit an FTC compliance e-signature.\n\nRequires Quiz 4 to be passed. Records the rep's typed name,\nIP address, and user agent for compliance audit trail.","operationId":"submit_ftc_signature_route_training_ftc_signature_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FtcSignatureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Submit Ftc Signature Route Training Ftc Signature Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/quiz/{quiz_number}/questions":{"get":{"tags":["training"],"summary":"Get Quiz Questions Route","description":"Get quiz questions for a given quiz number.\n\nValidates that the prerequisite module is complete and the rep has\nremaining attempts. Returns questions WITHOUT correct_answer field.","operationId":"get_quiz_questions_route_training_quiz__quiz_number__questions_get","parameters":[{"name":"quiz_number","in":"path","required":true,"schema":{"type":"integer","title":"Quiz Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Quiz Questions Route Training Quiz  Quiz Number  Questions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/quiz/{quiz_number}/submit":{"post":{"tags":["training"],"summary":"Submit Quiz","description":"Score and record a quiz attempt.\n\nGrades answers against the correct_answer field in quiz_questions,\ninserts the attempt row, and checks if the rep now qualifies for\ncertification.","operationId":"submit_quiz_training_quiz__quiz_number__submit_post","parameters":[{"name":"quiz_number","in":"path","required":true,"schema":{"type":"integer","title":"Quiz Number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitQuizRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/training/waiting-engagement":{"get":{"tags":["training"],"summary":"Get Waiting Engagement Dashboard","description":"Sales-team view of who's in the waiting portal and how they're\nengaging — deposit-holders and upgrade-savers, sorted ready-to-buy first.\nGated by training-rep auth (internal team); returns all waiting authors.","operationId":"get_waiting_engagement_dashboard_training_waiting_engagement_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitingEngagementResponse"}}}}}}},"/training/rep-rules":{"get":{"tags":["training"],"summary":"Get Rep Rules","description":"The rep product-rules card, generated from live code and flags (Module 20).","operationId":"get_rep_rules_training_rep_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Rep Rules Training Rep Rules Get"}}}}}}},"/training/me/setup":{"get":{"tags":["training"],"summary":"Get My Setup","description":"Read your live setup checklist, including reps not yet enrolled by admins.","operationId":"get_my_setup_training_me_setup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get My Setup Training Me Setup Get"}}}}}}},"/training/authority-plans/resources":{"get":{"tags":["training"],"summary":"Get Authority Plan Resources","operationId":"get_authority_plan_resources_training_authority_plans_resources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Authority Plan Resources Training Authority Plans Resources Get"}}}}}}},"/affiliates/admin/list":{"get":{"tags":["affiliates-admin"],"summary":"Admin List","operationId":"admin_list_affiliates_admin_list_get","parameters":[{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"enum":["jvzoo","clickbank","digistore24"],"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["active","suspended"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"backlog","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Backlog"}},{"name":"missing_link","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Missing Link"}},{"name":"crm_failed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Crm Failed"}},{"name":"consent","in":"query","required":false,"schema":{"anyOf":[{"enum":["granted","withdrawn","none"],"type":"string"},{"type":"null"}],"title":"Consent"}},{"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","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Affiliates Admin List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/profile/{profile_id}":{"get":{"tags":["affiliates-admin"],"summary":"Admin Profile","operationId":"admin_profile_affiliates_admin_profile__profile_id__get","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Profile Affiliates Admin Profile  Profile Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/profile/{profile_id}/platforms/{platform}/verify":{"post":{"tags":["affiliates-admin"],"summary":"Admin Verify Platform","operationId":"admin_verify_platform_affiliates_admin_profile__profile_id__platforms__platform__verify_post","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"platform","in":"path","required":true,"schema":{"enum":["jvzoo","clickbank","digistore24"],"type":"string","title":"Platform"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPlatformBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Verify Platform Affiliates Admin Profile  Profile Id  Platforms  Platform  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/links/{link_id}/verify":{"post":{"tags":["affiliates-admin"],"summary":"Admin Verify Link","operationId":"admin_verify_link_affiliates_admin_links__link_id__verify_post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyLinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Verify Link Affiliates Admin Links  Link Id  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/profile/{profile_id}/suspend":{"post":{"tags":["affiliates-admin"],"summary":"Admin Suspend","operationId":"admin_suspend_affiliates_admin_profile__profile_id__suspend_post","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Suspend Affiliates Admin Profile  Profile Id  Suspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/profile/{profile_id}/unsuspend":{"post":{"tags":["affiliates-admin"],"summary":"Admin Unsuspend","operationId":"admin_unsuspend_affiliates_admin_profile__profile_id__unsuspend_post","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionalReasonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Unsuspend Affiliates Admin Profile  Profile Id  Unsuspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/profile/{profile_id}/followups/pause":{"post":{"tags":["affiliates-admin"],"summary":"Admin Pause","operationId":"admin_pause_affiliates_admin_profile__profile_id__followups_pause_post","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Pause Affiliates Admin Profile  Profile Id  Followups Pause Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/profile/{profile_id}/followups/resume":{"post":{"tags":["affiliates-admin"],"summary":"Admin Resume","operationId":"admin_resume_affiliates_admin_profile__profile_id__followups_resume_post","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resume Affiliates Admin Profile  Profile Id  Followups Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/profile/{profile_id}/record-reply":{"post":{"tags":["affiliates-admin"],"summary":"Admin Record Reply","operationId":"admin_record_reply_affiliates_admin_profile__profile_id__record_reply_post","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Record Reply Affiliates Admin Profile  Profile Id  Record Reply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/outbox/retry-failed":{"post":{"tags":["affiliates-admin"],"summary":"Admin Retry Failed","operationId":"admin_retry_failed_affiliates_admin_outbox_retry_failed_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Retry Failed Affiliates Admin Outbox Retry Failed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/outbox/{outbox_id}/retry":{"post":{"tags":["affiliates-admin"],"summary":"Admin Retry Outbox","operationId":"admin_retry_outbox_affiliates_admin_outbox__outbox_id__retry_post","parameters":[{"name":"outbox_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Outbox Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Retry Outbox Affiliates Admin Outbox  Outbox Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/compliance-cases":{"get":{"tags":["affiliates-admin"],"summary":"Admin List Compliance","operationId":"admin_list_compliance_affiliates_admin_compliance_cases_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","correction_requested","resolved","suspended"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Compliance Affiliates Admin Compliance Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["affiliates-admin"],"summary":"Admin Create Compliance","operationId":"admin_create_compliance_affiliates_admin_compliance_cases_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceCreateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Create Compliance Affiliates Admin Compliance Cases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/compliance-cases/{case_id}":{"patch":{"tags":["affiliates-admin"],"summary":"Admin Patch Compliance","operationId":"admin_patch_compliance_affiliates_admin_compliance_cases__case_id__patch","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePatchBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Patch Compliance Affiliates Admin Compliance Cases  Case Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/support":{"get":{"tags":["affiliates-admin"],"summary":"Admin List Support","operationId":"admin_list_support_affiliates_admin_support_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","answered","closed"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Support Affiliates Admin Support Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/support/{request_id}":{"get":{"tags":["affiliates-admin"],"summary":"Admin Get Support","operationId":"admin_get_support_affiliates_admin_support__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Support Affiliates Admin Support  Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["affiliates-admin"],"summary":"Admin Patch Support","operationId":"admin_patch_support_affiliates_admin_support__request_id__patch","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportPatchBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Patch Support Affiliates Admin Support  Request Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/assets/reviews":{"get":{"tags":["affiliates-admin"],"summary":"Admin Get Asset Reviews","operationId":"admin_get_asset_reviews_affiliates_admin_assets_reviews_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Asset Reviews Affiliates Admin Assets Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["affiliates-admin"],"summary":"Admin Put Asset Reviews","operationId":"admin_put_asset_reviews_affiliates_admin_assets_reviews_put","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetReviewsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Put Asset Reviews Affiliates Admin Assets Reviews Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/platforms/{platform}/availability":{"put":{"tags":["affiliates-admin"],"summary":"Admin Put Availability","operationId":"admin_put_availability_affiliates_admin_platforms__platform__availability_put","parameters":[{"name":"platform","in":"path","required":true,"schema":{"enum":["jvzoo","clickbank","digistore24"],"type":"string","title":"Platform"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Put Availability Affiliates Admin Platforms  Platform  Availability Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/analytics":{"get":{"tags":["affiliates-admin"],"summary":"Admin Analytics","operationId":"admin_analytics_affiliates_admin_analytics_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Analytics Affiliates Admin Analytics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/public/unsubscribe":{"post":{"tags":["affiliates"],"summary":"Unsubscribe","operationId":"unsubscribe_affiliates_public_unsubscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Unsubscribe Affiliates Public Unsubscribe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/public/unsubscribe/one-click":{"post":{"tags":["affiliates"],"summary":"Unsubscribe One Click","description":"RFC 8058 one-click target (``List-Unsubscribe-Post``). POST only.","operationId":"unsubscribe_one_click_affiliates_public_unsubscribe_one_click_post","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":400,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unsubscribe One Click Affiliates Public Unsubscribe One Click Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipeline-followups/unsubscribe":{"get":{"tags":["pipeline-followups"],"summary":"Unsubscribe Page","operationId":"unsubscribe_page_pipeline_followups_unsubscribe_get","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":600,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pipeline-followups"],"summary":"Unsubscribe Confirm","operationId":"unsubscribe_confirm_pipeline_followups_unsubscribe_post","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":600,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/public/config":{"get":{"tags":["affiliates"],"summary":"Public Config","operationId":"public_config_affiliates_public_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Config Affiliates Public Config Get"}}}}}}},"/affiliates/public/agreement":{"get":{"tags":["affiliates"],"summary":"Public Agreement","description":"The current agreement text + hash, exactly as acceptance records it.","operationId":"public_agreement_affiliates_public_agreement_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Agreement Affiliates Public Agreement Get"}}}}}}},"/affiliates/auth/request-link":{"post":{"tags":["affiliates"],"summary":"Request Link","description":"Register or sign in. The response is identical whatever happens.","operationId":"request_link_affiliates_auth_request_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestLinkBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/auth/reissue":{"post":{"tags":["affiliates"],"summary":"Reissue","description":"Trade an expired, unused link for a fresh one (same answer whatever happens).","operationId":"reissue_affiliates_auth_reissue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/auth/verify":{"post":{"tags":["affiliates"],"summary":"Verify","operationId":"verify_affiliates_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/auth/logout":{"post":{"tags":["affiliates"],"summary":"Logout","operationId":"logout_affiliates_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/affiliates/me":{"get":{"tags":["affiliates"],"summary":"Me","operationId":"me_affiliates_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Me Affiliates Me Get"}}}}}},"patch":{"tags":["affiliates"],"summary":"Patch Me","operationId":"patch_me_affiliates_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Patch Me Affiliates Me Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/platforms":{"put":{"tags":["affiliates"],"summary":"Put Platforms","operationId":"put_platforms_affiliates_me_platforms_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Platforms Affiliates Me Platforms Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/platforms/{platform}":{"patch":{"tags":["affiliates"],"summary":"Patch Platform","operationId":"patch_platform_affiliates_me_platforms__platform__patch","parameters":[{"name":"platform","in":"path","required":true,"schema":{"enum":["jvzoo","clickbank","digistore24"],"type":"string","title":"Platform"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformReportBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Platform Affiliates Me Platforms  Platform  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/links/{platform}":{"put":{"tags":["affiliates"],"summary":"Put Link","operationId":"put_link_affiliates_me_links__platform__put","parameters":[{"name":"platform","in":"path","required":true,"schema":{"enum":["jvzoo","clickbank","digistore24"],"type":"string","title":"Platform"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__affiliate_portal__LinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Link Affiliates Me Links  Platform  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["affiliates"],"summary":"Delete Link","operationId":"delete_link_affiliates_me_links__platform__delete","parameters":[{"name":"platform","in":"path","required":true,"schema":{"enum":["jvzoo","clickbank","digistore24"],"type":"string","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Link Affiliates Me Links  Platform  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/agreement":{"post":{"tags":["affiliates"],"summary":"Accept Agreement","operationId":"accept_agreement_affiliates_me_agreement_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Accept Agreement Affiliates Me Agreement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/agreement/receipt/{receipt_id}":{"get":{"tags":["affiliates"],"summary":"Agreement Receipt","operationId":"agreement_receipt_affiliates_me_agreement_receipt__receipt_id__get","parameters":[{"name":"receipt_id","in":"path","required":true,"schema":{"type":"string","title":"Receipt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/consent":{"put":{"tags":["affiliates"],"summary":"Put Consent","operationId":"put_consent_affiliates_me_consent_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Consent Affiliates Me Consent Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/launch":{"post":{"tags":["affiliates"],"summary":"Post Launch","operationId":"post_launch_affiliates_me_launch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Launch Affiliates Me Launch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/support":{"get":{"tags":["affiliates"],"summary":"Get Support","operationId":"get_support_affiliates_me_support_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Support Affiliates Me Support Get"}}}}}},"post":{"tags":["affiliates"],"summary":"Post Support","operationId":"post_support_affiliates_me_support_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Support Affiliates Me Support Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/events":{"post":{"tags":["affiliates"],"summary":"Post Event","operationId":"post_event_affiliates_me_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Event Affiliates Me Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/packs/{pack_id}":{"get":{"tags":["affiliates"],"summary":"Pack Download","description":"Short-lived download link for a ZIP pack (private R2 object).","operationId":"pack_download_affiliates_me_packs__pack_id__get","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","maxLength":80,"pattern":"^pack-[a-z0-9-]+$","title":"Pack Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pack Download Affiliates Me Packs  Pack Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/asset-reviews":{"get":{"tags":["affiliates"],"summary":"Asset Reviews","description":"Admin status overrides per asset id (the manifest status applies otherwise).","operationId":"asset_reviews_affiliates_me_asset_reviews_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Asset Reviews Affiliates Me Asset Reviews Get"}}}}}}},"/affiliates/me/privacy-request":{"post":{"tags":["affiliates"],"summary":"Post Privacy Request","operationId":"post_privacy_request_affiliates_me_privacy_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Privacy Request Affiliates Me Privacy Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/partners":{"get":{"tags":["jv-partners-admin"],"summary":"Admin Partners","operationId":"admin_partners_affiliates_admin_jv_partners_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Partners Affiliates Admin Jv Partners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/partners/{partner_id}":{"patch":{"tags":["jv-partners-admin"],"summary":"Admin Patch Partner","operationId":"admin_patch_partner_affiliates_admin_jv_partners__partner_id__patch","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPartnerPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Patch Partner Affiliates Admin Jv Partners  Partner Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/partners/{partner_id}/verify-marketplace-ids":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Verify Ids","operationId":"admin_verify_ids_affiliates_admin_jv_partners__partner_id__verify_marketplace_ids_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Verify Ids Affiliates Admin Jv Partners  Partner Id  Verify Marketplace Ids Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/partners/provision":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Provision Partner","description":"Pre-provision a partner with a chosen code (no terms acceptance is recorded).","operationId":"admin_provision_partner_affiliates_admin_jv_partners_provision_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Provision Partner Affiliates Admin Jv Partners Provision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/manager-invites":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Manager Invite","operationId":"admin_manager_invite_affiliates_admin_jv_manager_invites_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerInviteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Manager Invite Affiliates Admin Jv Manager Invites Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/live-events":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Live Event","operationId":"admin_live_event_affiliates_admin_jv_live_events_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveEventBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Live Event Affiliates Admin Jv Live Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/sweep":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Sweep","operationId":"admin_sweep_affiliates_admin_jv_sweep_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SweepBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Sweep Affiliates Admin Jv Sweep Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/payouts":{"get":{"tags":["jv-partners-admin"],"summary":"Admin Payouts","operationId":"admin_payouts_affiliates_admin_jv_payouts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["prepared","approved","sent","failed","canceled"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Payouts Affiliates Admin Jv Payouts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/payouts/prepare":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Prepare","operationId":"admin_prepare_affiliates_admin_jv_payouts_prepare_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Prepare Affiliates Admin Jv Payouts Prepare Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/payouts/{payout_id}/approve":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Approve","operationId":"admin_approve_affiliates_admin_jv_payouts__payout_id__approve_post","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Approve Affiliates Admin Jv Payouts  Payout Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/payouts/{payout_id}/mark-sent":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Mark Sent","operationId":"admin_mark_sent_affiliates_admin_jv_payouts__payout_id__mark_sent_post","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkSentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Mark Sent Affiliates Admin Jv Payouts  Payout Id  Mark Sent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/payouts/{payout_id}/cancel":{"post":{"tags":["jv-partners-admin"],"summary":"Admin Cancel","operationId":"admin_cancel_affiliates_admin_jv_payouts__payout_id__cancel_post","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Cancel Affiliates Admin Jv Payouts  Payout Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/admin/jv/payouts/export.csv":{"get":{"tags":["jv-partners-admin"],"summary":"Admin Export","operationId":"admin_export_affiliates_admin_jv_payouts_export_csv_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"const":"approved","type":"string","default":"approved","title":"Status"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/public/jv/program":{"get":{"tags":["jv-partners"],"summary":"Program","operationId":"program_affiliates_public_jv_program_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Program Affiliates Public Jv Program Get"}}}}}}},"/affiliates/public/jv/recruiter/{code}":{"get":{"tags":["jv-partners"],"summary":"Recruiter","operationId":"recruiter_affiliates_public_jv_recruiter__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":48,"title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recruiter Affiliates Public Jv Recruiter  Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/public/jv/partner/{code}":{"get":{"tags":["jv-partners"],"summary":"Partner Public","description":"``{valid, first_name}`` for the book-a-call page's \"Recommended by\" line (first name only).","operationId":"partner_public_affiliates_public_jv_partner__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":48,"title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Partner Public Affiliates Public Jv Partner  Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/public/jv/invite-status":{"post":{"tags":["jv-partners"],"summary":"Invite Status","description":"``{status: valid|expired|used|unknown}`` for a manager invite (POST: the token stays out of URLs).","operationId":"invite_status_affiliates_public_jv_invite_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteStatusBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Invite Status Affiliates Public Jv Invite Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/public/jv/click":{"post":{"tags":["jv-partners"],"summary":"Click","operationId":"click_affiliates_public_jv_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Click Affiliates Public Jv Click Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/jv":{"get":{"tags":["jv-partners"],"summary":"Me Jv","operationId":"me_jv_affiliates_me_jv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Me Jv Affiliates Me Jv Get"}}}}}},"patch":{"tags":["jv-partners"],"summary":"Patch Jv","operationId":"patch_jv_affiliates_me_jv_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Patch Jv Affiliates Me Jv Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/jv/join":{"post":{"tags":["jv-partners"],"summary":"Join","operationId":"join_affiliates_me_jv_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JvJoinBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Join Affiliates Me Jv Join Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/jv/compliance":{"post":{"tags":["jv-partners"],"summary":"Accept Compliance","operationId":"accept_compliance_affiliates_me_jv_compliance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Accept Compliance Affiliates Me Jv Compliance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/jv/kit":{"get":{"tags":["jv-partners"],"summary":"Kit","operationId":"kit_affiliates_me_jv_kit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Kit Affiliates Me Jv Kit Get"}}}}}}},"/affiliates/me/jv/tax":{"get":{"tags":["jv-partners"],"summary":"Get Tax","operationId":"get_tax_affiliates_me_jv_tax_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Tax Affiliates Me Jv Tax Get"}}}}}},"put":{"tags":["jv-partners"],"summary":"Put Tax","operationId":"put_tax_affiliates_me_jv_tax_put","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Tax Affiliates Me Jv Tax Put"}}}}}}},"/affiliates/me/jv/team":{"get":{"tags":["jv-partners"],"summary":"Team","operationId":"team_affiliates_me_jv_team_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Team Affiliates Me Jv Team Get"}}}}}}},"/affiliates/me/jv/team/invite":{"post":{"tags":["jv-partners"],"summary":"Team Invite","operationId":"team_invite_affiliates_me_jv_team_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Team Invite Affiliates Me Jv Team Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/jv/live-events":{"post":{"tags":["jv-partners"],"summary":"Manager Live Event","operationId":"manager_live_event_affiliates_me_jv_live_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveEventBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Manager Live Event Affiliates Me Jv Live Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/affiliates/me/jv/team/{partner_code}/verify-marketplace-ids":{"post":{"tags":["jv-partners"],"summary":"Manager Verify Ids","operationId":"manager_verify_ids_affiliates_me_jv_team__partner_code__verify_marketplace_ids_post","parameters":[{"name":"partner_code","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":32,"title":"Partner Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Manager Verify Ids Affiliates Me Jv Team  Partner Code  Verify Marketplace Ids Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/funding-payee/{token}":{"get":{"tags":["funding-rep-payee"],"summary":"Get Payee","operationId":"get_payee_public_funding_payee__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":128,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Payee Public Funding Payee  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["funding-rep-payee"],"summary":"Put Payee","operationId":"put_payee_public_funding_payee__token__put","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":128,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Payee Public Funding Payee  Token  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/narrator-payee/{token}":{"get":{"tags":["audiobook-narrator-payee"],"summary":"Get Payee","operationId":"get_payee_public_narrator_payee__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":160,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Payee Public Narrator Payee  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["audiobook-narrator-payee"],"summary":"Put Payee","operationId":"put_payee_public_narrator_payee__token__put","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":160,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Payee Public Narrator Payee  Token  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals":{"get":{"tags":["admin-client-referrals"],"summary":"Admin List Referrals","operationId":"admin_list_referrals_admin_client_referrals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["submitted","intro_sent","booked","attended","won","lost","duplicate","ineligible"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"referrer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Referrer project id","title":"Referrer"},"description":"Referrer project id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Referrals Admin Client Referrals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/launch-announcement/preview":{"post":{"tags":["admin-client-referrals"],"summary":"Admin Launch Announcement Preview","description":"Refer & Earn launch announcement: the gate, the audience count and the\nrendered email + text for one sample author. Sends and writes nothing.","operationId":"admin_launch_announcement_preview_admin_client_referrals_launch_announcement_preview_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Launch Announcement Preview Admin Client Referrals Launch Announcement Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/{referral_id}/credit":{"post":{"tags":["admin-client-referrals"],"summary":"Admin Credit Referral","operationId":"admin_credit_referral_admin_client_referrals__referral_id__credit_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Credit Referral Admin Client Referrals  Referral Id  Credit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/{referral_id}/status":{"post":{"tags":["admin-client-referrals"],"summary":"Admin Set Referral Status","operationId":"admin_set_referral_status_admin_client_referrals__referral_id__status_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Referral Status Admin Client Referrals  Referral Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals":{"get":{"tags":["portal-referrals"],"summary":"Get Portal Referrals","operationId":"get_portal_referrals_portal_referrals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Portal Referrals Portal Referrals Get"}}}}}}},"/portal/referrals/agreement":{"post":{"tags":["portal-referrals"],"summary":"Accept Portal Agreement","operationId":"accept_portal_agreement_portal_referrals_agreement_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementAcceptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Accept Portal Agreement Portal Referrals Agreement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals/introduce":{"post":{"tags":["portal-referrals"],"summary":"Introduce Friend","operationId":"introduce_friend_portal_referrals_introduce_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntroduceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Introduce Friend Portal Referrals Introduce Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals/preferences":{"patch":{"tags":["portal-referrals"],"summary":"Update Portal Preferences","operationId":"update_portal_preferences_portal_referrals_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update Portal Preferences Portal Referrals Preferences Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals/{referral_id}/contact":{"post":{"tags":["portal-referrals"],"summary":"Add Referral Contact","description":"Add an email to a friend Silas noted, which introduces them (phase 3).\n\nProject-scoped: a referral id from another client is a 404.","operationId":"add_referral_contact_portal_referrals__referral_id__contact_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SilasContactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Referral Contact Portal Referrals  Referral Id  Contact Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals/payout-details":{"get":{"tags":["portal-referrals"],"summary":"Get Payout Details","operationId":"get_payout_details_portal_referrals_payout_details_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Payout Details Portal Referrals Payout Details Get"}}}}}},"put":{"tags":["portal-referrals"],"summary":"Put Payout Details","operationId":"put_payout_details_portal_referrals_payout_details_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutDetailsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Payout Details Portal Referrals Payout Details Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals/share-kit/{kind}":{"get":{"tags":["portal-referrals"],"summary":"Get Share Kit Image","description":"One of HER share-kit pictures, as a download. The project comes from the\nsession, so no one can fetch another client's pictures.","operationId":"get_share_kit_image_portal_referrals_share_kit__kind__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","pattern":"^(cover|photo|card-square|card-story)$","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals/photo":{"post":{"tags":["portal-referrals"],"summary":"Upload Portal Photo","description":"Her own photo for her Refer & Earn page (jpg/png/webp, 4 MB max).\n\nThe project always comes from the session: the photo is stored as THIS\nproject's headshot, pinned as her public photo, and shown on her page.","operationId":"upload_portal_photo_portal_referrals_photo_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_portal_photo_portal_referrals_photo_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload Portal Photo Portal Referrals Photo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/referrals/w9":{"post":{"tags":["portal-referrals"],"summary":"Upload W9","description":"Upload the referrer's W-9 (PDF or photo) to PRIVATE storage.\n\nReturns only \"received\"; the file is never served back to the portal.","operationId":"upload_w9_portal_referrals_w9_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_w9_portal_referrals_w9_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload W9 Portal Referrals W9 Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/unsubscribe":{"get":{"tags":["referrals-public"],"summary":"Unsubscribe Page","operationId":"unsubscribe_page_referrals_public_unsubscribe_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":300,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["referrals-public"],"summary":"Unsubscribe","operationId":"unsubscribe_referrals_public_unsubscribe_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_unsubscribe_referrals_public_unsubscribe_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/launch-unsubscribe":{"get":{"tags":["referrals-public"],"summary":"Launch Unsubscribe Page","description":"The Refer & Earn launch email's unsubscribe link. Opening it writes\nnothing (mail scanners prefetch links); the button POSTs below.","operationId":"launch_unsubscribe_page_referrals_public_launch_unsubscribe_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":500,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["referrals-public"],"summary":"Launch Unsubscribe","description":"Record the opt-out. Accepts the confirm page's form token, or the\nRFC 8058 one-click POST a mail client sends to the List-Unsubscribe URL\n(token in the query string, body ``List-Unsubscribe=One-Click``).\nNot flag-gated: an opt-out link must keep working.","operationId":"launch_unsubscribe_referrals_public_launch_unsubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_launch_unsubscribe_referrals_public_launch_unsubscribe_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/{code}":{"get":{"tags":["referrals-public"],"summary":"Get Public Referral","operationId":"get_public_referral_referrals_public__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Referral Referrals Public  Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/{code}/qr.png":{"get":{"tags":["referrals-public"],"summary":"Get Public Qr","operationId":"get_public_qr_referrals_public__code__qr_png_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/{code}/cover":{"get":{"tags":["referrals-public"],"summary":"Get Public Cover","operationId":"get_public_cover_referrals_public__code__cover_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/{code}/photo":{"get":{"tags":["referrals-public"],"summary":"Get Public Photo","description":"The referrer's own photo, only when she turned it on (partner page).","operationId":"get_public_photo_referrals_public__code__photo_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/{code}/rep-photo":{"get":{"tags":["referrals-public"],"summary":"Get Public Rep Photo","description":"The photo on the card of the rep this page books with.","operationId":"get_public_rep_photo_referrals_public__code__rep_photo_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/{code}/view":{"post":{"tags":["referrals-public"],"summary":"Post Public View","description":"Page-view beacon: one row per visitor per day. Never fails the page.","operationId":"post_public_view_referrals_public__code__view_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageViewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Public View Referrals Public  Code  View Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/public/{code}/submit":{"post":{"tags":["referrals-public"],"summary":"Submit Public Referral","operationId":"submit_public_referral_referrals_public__code__submit_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Public Referral Referrals Public  Code  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/commissions":{"get":{"tags":["admin-client-referral-payouts"],"summary":"Admin List Commissions","operationId":"admin_list_commissions_admin_client_referrals_commissions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["held","payable","on_statement","paid","reversed","skipped","blocked_referrer_delinquent"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"referrer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Referrer project id","title":"Referrer"},"description":"Referrer project id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Commissions Admin Client Referrals Commissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/commissions/run":{"post":{"tags":["admin-client-referral-payouts"],"summary":"Admin Run Producer","description":"Queue the commission producer now (one referral, or all).","operationId":"admin_run_producer_admin_client_referrals_commissions_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRunProducerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Run Producer Admin Client Referrals Commissions Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/statements":{"get":{"tags":["admin-client-referral-payouts"],"summary":"Admin List Statements","operationId":"admin_list_statements_admin_client_referrals_statements_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Statements Admin Client Referrals Statements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/statements/build":{"post":{"tags":["admin-client-referral-payouts"],"summary":"Admin Build Statement","description":"Queue the previous month's statement build (idempotent per month).","operationId":"admin_build_statement_admin_client_referrals_statements_build_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Build Statement Admin Client Referrals Statements Build Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/statements/{statement_id}":{"get":{"tags":["admin-client-referral-payouts"],"summary":"Admin Get Statement","operationId":"admin_get_statement_admin_client_referrals_statements__statement_id__get","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Statement Admin Client Referrals Statements  Statement Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/statements/{statement_id}/csv":{"get":{"tags":["admin-client-referral-payouts"],"summary":"Admin Statement Csv","operationId":"admin_statement_csv_admin_client_referrals_statements__statement_id__csv_get","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}},{"name":"referrer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Referrer"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/statements/{statement_id}/approve":{"post":{"tags":["admin-client-referral-payouts"],"summary":"Admin Approve Statement","description":"Record the approval decision. Nothing is paid here: finance pays by\nPayPal/ACH and records the reference with mark-paid.","operationId":"admin_approve_statement_admin_client_referrals_statements__statement_id__approve_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}},{"name":"x-payout-approval-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Payout-Approval-Key"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Approve Statement Admin Client Referrals Statements  Statement Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/statements/{statement_id}/referrers/{referrer_project_id}/mark-paid":{"post":{"tags":["admin-client-referral-payouts"],"summary":"Admin Mark Referrer Paid","operationId":"admin_mark_referrer_paid_admin_client_referrals_statements__statement_id__referrers__referrer_project_id__mark_paid_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}},{"name":"referrer_project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referrer Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminMarkPaidRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Mark Referrer Paid Admin Client Referrals Statements  Statement Id  Referrers  Referrer Project Id  Mark Paid Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/referrers/{project_id}":{"get":{"tags":["admin-client-referral-payouts"],"summary":"Admin View Referrer","operationId":"admin_view_referrer_admin_client_referrals_referrers__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin View Referrer Admin Client Referrals Referrers  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/referrers/{project_id}/apply-credit":{"post":{"tags":["admin-client-referral-payouts"],"summary":"Admin Apply Credit","operationId":"admin_apply_credit_admin_client_referrals_referrers__project_id__apply_credit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminApplyCreditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Apply Credit Admin Client Referrals Referrers  Project Id  Apply Credit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/client-referrals/tax-year/{year}":{"get":{"tags":["admin-client-referral-payouts"],"summary":"Admin Tax Year","description":"Cash paid per referrer in a calendar year; who crosses the 1099-NEC line.","operationId":"admin_tax_year_admin_client_referrals_tax_year__year__get","parameters":[{"name":"year","in":"path","required":true,"schema":{"type":"integer","maximum":2100,"minimum":2026,"title":"Year"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Tax Year Admin Client Referrals Tax Year  Year  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vapi/custom-llm":{"post":{"tags":["vapi-llm"],"summary":"Vapi Custom Llm","description":"Handle Vapi custom-LLM streaming requests.\n\nVapi sends OpenAI-compatible chat completion requests. We translate\nto Anthropic, stream the response, and translate back to OpenAI SSE format.\n\nReturns 404 when the feature flag is off (Vapi will get a non-200 and\nfall back to its configured provider).\n\nPost-auth this endpoint NEVER returns an error status for a recoverable\nproblem: Vapi treats any non-200 as llm-failed and ends the live call\n(DICTATE-WEB-B3 killed six author interviews this way). Recoverable\nissues degrade; unusable turns get a spoken fallback line.","operationId":"vapi_custom_llm_vapi_custom_llm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/vapi/custom-llm/chat/completions":{"post":{"tags":["vapi-llm"],"summary":"Vapi Custom Llm","description":"Handle Vapi custom-LLM streaming requests.\n\nVapi sends OpenAI-compatible chat completion requests. We translate\nto Anthropic, stream the response, and translate back to OpenAI SSE format.\n\nReturns 404 when the feature flag is off (Vapi will get a non-200 and\nfall back to its configured provider).\n\nPost-auth this endpoint NEVER returns an error status for a recoverable\nproblem: Vapi treats any non-200 as llm-failed and ends the live call\n(DICTATE-WEB-B3 killed six author interviews this way). Recoverable\nissues degrade; unusable turns get a spoken fallback line.","operationId":"vapi_custom_llm_vapi_custom_llm_chat_completions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/books/{author_slug}":{"get":{"tags":["books"],"summary":"Get Book Page","description":"Public: get resource page metadata + published assets.","operationId":"get_book_page_api_books__author_slug__get","parameters":[{"name":"author_slug","in":"path","required":true,"schema":{"type":"string","title":"Author Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/books/{author_slug}/assets/{asset_slug}":{"get":{"tags":["books"],"summary":"Get Asset Detail","description":"Public: get single asset metadata.","operationId":"get_asset_detail_api_books__author_slug__assets__asset_slug__get","parameters":[{"name":"author_slug","in":"path","required":true,"schema":{"type":"string","title":"Author Slug"}},{"name":"asset_slug","in":"path","required":true,"schema":{"type":"string","title":"Asset Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookAssetDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/books/{author_slug}/optin":{"post":{"tags":["books"],"summary":"Submit Optin","description":"Public: handle resource opt-in, return download URL.","operationId":"submit_optin_api_books__author_slug__optin_post","parameters":[{"name":"author_slug","in":"path","required":true,"schema":{"type":"string","title":"Author Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptinRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/books/free-guide/{site_slug}/optin":{"post":{"tags":["books"],"summary":"Submit Free Guide Optin","description":"Public: a reader asks for a book's free guide on its /free page.\n\nA browser form gets a 303 back to the page (``#joined``); a script gets\nJSON with a 24-hour download link when the guide is built. Bots that fill\nthe hidden field are accepted and dropped.","operationId":"submit_free_guide_optin_api_books_free_guide__site_slug__optin_post","parameters":[{"name":"site_slug","in":"path","required":true,"schema":{"type":"string","title":"Site Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webinar-workbook/submit":{"post":{"tags":["webinar-workbook"],"summary":"Submit Webinar Workbook","description":"Store one author's pre-webinar workbook answers and push them to GHL.","operationId":"submit_webinar_workbook_api_webinar_workbook_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarWorkbookSubmitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebinarWorkbookSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales-assistant/chat":{"post":{"tags":["sales-assistant"],"summary":"Start Chat","operationId":"start_chat_api_sales_assistant_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales-assistant/chat/{task_id}":{"get":{"tags":["sales-assistant"],"summary":"Poll Chat","operationId":"poll_chat_api_sales_assistant_chat__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/editions":{"post":{"tags":["anthology"],"summary":"Admin Create Edition","description":"Create a new anthology edition (the shared-book container).\n\nThe ``anthology_one_casting_per_niche`` partial unique index allows only one\nopen ``casting`` edition per niche; a second one surfaces as a 409 rather\nthan a 500.","operationId":"admin_create_edition_api_anthology_editions_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthologyEditionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthologyEditionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/editions/{edition_id}/guests":{"post":{"tags":["anthology"],"summary":"Admin Create Guest","description":"Register a guest under an edition. ``edition_id`` is taken from the path.\n\nThe parent edition must exist (else 404) so we never orphan a guest under a\nbogus/foreign edition id.","operationId":"admin_create_guest_api_anthology_editions__edition_id__guests_post","parameters":[{"name":"edition_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Edition Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthologyGuestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/editions/{edition_id}/guests/{guest_id}/prepare-questions":{"post":{"tags":["anthology"],"summary":"Admin Prepare Questions","description":"Enqueue the cheap pre-interview question-prep task for one guest.","operationId":"admin_prepare_questions_api_anthology_editions__edition_id__guests__guest_id__prepare_questions_post","parameters":[{"name":"edition_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Edition Id"}},{"name":"guest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Guest Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Admin Prepare Questions Api Anthology Editions  Edition Id  Guests  Guest Id  Prepare Questions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/editions/{edition_id}/guests/{guest_id}/run":{"post":{"tags":["anthology"],"summary":"Admin Run Bundle","description":"Enqueue the full per-guest Opus generation bundle.\n\nThe waiver/cost gate is re-enforced INSIDE the Celery chain, so this enqueue\nis safe even if guest state changes between click and execution.","operationId":"admin_run_bundle_api_anthology_editions__edition_id__guests__guest_id__run_post","parameters":[{"name":"edition_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Edition Id"}},{"name":"guest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Guest Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Admin Run Bundle Api Anthology Editions  Edition Id  Guests  Guest Id  Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/editions/{edition_id}/guests/{guest_id}/select":{"post":{"tags":["anthology"],"summary":"Admin Select Guest","description":"Select (book) an applicant into the book — the human-curation step.\n\nDelegates to the atomic ``select_anthology_guest`` RPC: it locks the edition,\nenforces the contributor cap, flips an ``applied``/``questions_ready`` guest\nto ``booked``, and rotates the edition (close + open the next casting edition\nfor the niche) when this booking fills it. The typed ``reason`` maps to a\nprecise 404/409/200.","operationId":"admin_select_guest_api_anthology_editions__edition_id__guests__guest_id__select_post","parameters":[{"name":"edition_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Edition Id"}},{"name":"guest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Guest Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Select Guest Api Anthology Editions  Edition Id  Guests  Guest Id  Select Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/editions/{edition_id}/publish":{"post":{"tags":["anthology"],"summary":"Admin Publish Edition","description":"Human-gate publish: advance a ``compiling`` edition to ``published``.\n\nOnly an edition that has been assembled to a draft (``compiling``) can be\npublished, so an un-reviewed book can't be marked live. Uses ``update_edition``\n(not the status-only wrapper) so the Amazon ASIN is stored in the same write.","operationId":"admin_publish_edition_api_anthology_editions__edition_id__publish_post","parameters":[{"name":"edition_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Edition Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditionPublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthologyEditionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/editions/{edition_id}/assemble":{"post":{"tags":["anthology"],"summary":"Admin Assemble Edition","description":"Assemble all ready guest chapters for an edition into a downloadable book.\n\nFlag-gated (router dependency + inline ``_require_enabled``) and admin-keyed.\nThe edition must exist (else 404). Assembly runs no AI agent — it is\ndeterministic EPUB/PDF rendering + R2 uploads — but that work is CPU/IO heavy\nand synchronous, so we offload it to a worker thread via run_in_threadpool to\navoid blocking the event loop (which would stall unrelated API requests).\nReturns the R2 keys + 7-day presigned URLs plus an included/excluded-guest\nreport.\n\nA \"no ready chapters\" / disabled-mid-flight condition surfaces as\n``BusinessLogicError`` → 409 (the build is refused, not a server fault).","operationId":"admin_assemble_edition_api_anthology_editions__edition_id__assemble_post","parameters":[{"name":"edition_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Edition Id"}},{"name":"finalize","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Finalize"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Assemble Edition Api Anthology Editions  Edition Id  Assemble Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/zoom":{"post":{"tags":["webhooks"],"summary":"Zoom Recording Webhook","description":"Receive an n8n-posted Zoom recording transcript and trigger generation.\n\nFAIL CLOSED: the shared secret travels in the ``X-Anthology-Webhook-Secret``\nHEADER (NOT the URL path), checked BEFORE the body is read or validated.\nKeeping the secret out of the path means RequestLoggingMiddleware / platform\naccess logs (which record ``request.url.path``) never capture a replayable\ntoken. Unset secret or a mismatch -> 403, with no body parsing. Declaring the\npayload as a FastAPI body param would let FastAPI validate (and 422) the body\nbefore the auth check, so we take the raw ``Request`` and parse only after.\n\nOn valid token: update the guest's ``transcript_raw`` + ``speaker_map``\n(edition-scoped Pattern B update) and enqueue ``run_anthology_bundle``. The\nhandler returns 200 even on downstream errors so the sender does not\nretry-storm — failures are logged and reported to Sentry.\n\nGated on ``settings.anthology_enabled``: while the engine is dark we ack with\n200 (the sender's contract is satisfied) but do no work.","operationId":"zoom_recording_webhook_webhooks_zoom_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/zoom":{"post":{"tags":["webhooks"],"summary":"Zoom Recording Webhook","description":"Receive an n8n-posted Zoom recording transcript and trigger generation.\n\nFAIL CLOSED: the shared secret travels in the ``X-Anthology-Webhook-Secret``\nHEADER (NOT the URL path), checked BEFORE the body is read or validated.\nKeeping the secret out of the path means RequestLoggingMiddleware / platform\naccess logs (which record ``request.url.path``) never capture a replayable\ntoken. Unset secret or a mismatch -> 403, with no body parsing. Declaring the\npayload as a FastAPI body param would let FastAPI validate (and 422) the body\nbefore the auth check, so we take the raw ``Request`` and parse only after.\n\nOn valid token: update the guest's ``transcript_raw`` + ``speaker_map``\n(edition-scoped Pattern B update) and enqueue ``run_anthology_bundle``. The\nhandler returns 200 even on downstream errors so the sender does not\nretry-storm — failures are logged and reported to Sentry.\n\nGated on ``settings.anthology_enabled``: while the engine is dark we ack with\n200 (the sender's contract is satisfied) but do no work.","operationId":"zoom_recording_webhook_api_webhooks_zoom_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/house-show/episodes":{"post":{"tags":["admin-house-show"],"summary":"Ensure Episode","description":"Idempotently create (or return) the buyer's one live episode.","operationId":"ensure_episode_api_admin_house_show_episodes_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowEnsureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowEpisodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-house-show"],"summary":"List Episodes","operationId":"list_episodes_api_admin_house_show_episodes_get","parameters":[{"name":"status","in":"query","required":true,"schema":{"enum":["pending","prep_ready","invited","scheduled","recorded","transcribed","editing","cut_approved","publishing","published","failed","cancelled"],"type":"string","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Episodes Api Admin House Show Episodes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/prep":{"post":{"tags":["admin-house-show"],"summary":"Enqueue Prep","description":"Queue prep-pack generation (allowed again for an explicit re-prep).","operationId":"enqueue_prep_api_admin_house_show_episodes__episode_id__prep_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enqueue Prep Api Admin House Show Episodes  Episode Id  Prep Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}":{"get":{"tags":["admin-house-show"],"summary":"Get One Episode","operationId":"get_one_episode_api_admin_house_show_episodes__episode_id__get","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowEpisodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/recording-upload":{"post":{"tags":["admin-house-show"],"summary":"Mint Recording Upload Urls","description":"Presigned R2 PUT URLs for a manual (non-Zoom-cloud) source upload.\n\nThe caller declares each file's exact size; it is baked into the R2\nsignature so the storage boundary rejects any other body length.","operationId":"mint_recording_upload_urls_api_admin_house_show_episodes__episode_id__recording_upload_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowUploadMintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mint Recording Upload Urls Api Admin House Show Episodes  Episode Id  Recording Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/recording":{"post":{"tags":["admin-house-show"],"summary":"Register Manual Recording","description":"Register completed presigned PUTs as the episode source, then ingest.","operationId":"register_manual_recording_api_admin_house_show_episodes__episode_id__recording_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowManualUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowEpisodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/approve-cut":{"post":{"tags":["admin-house-show"],"summary":"Approve Cut","description":"Human approve gate: cues the release (a week before the guest's book,\nMike 2026-11-26) and prepares the copy, art and YouTube listing now.","operationId":"approve_cut_api_admin_house_show_episodes__episode_id__approve_cut_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowApproveCutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowEpisodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/recut":{"post":{"tags":["admin-house-show"],"summary":"Request Recut","description":"Send the cut back (editing -> recorded) and re-queue the edit pass.","operationId":"request_recut_api_admin_house_show_episodes__episode_id__recut_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowRecutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowEpisodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/publish":{"post":{"tags":["admin-house-show"],"summary":"Publish Episode","description":"Queue the publish chain. Fails closed without an approved cut.","operationId":"publish_episode_api_admin_house_show_episodes__episode_id__publish_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Episode Api Admin House Show Episodes  Episode Id  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/web-content":{"get":{"tags":["admin-house-show"],"summary":"Get Episode Web Content","description":"Stored web-content bundle as ``{label, url}`` permanent /f/ links.","operationId":"get_episode_web_content_api_admin_house_show_episodes__episode_id__web_content_get","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Episode Web Content Api Admin House Show Episodes  Episode Id  Web Content Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/change-requests":{"get":{"tags":["admin-house-show"],"summary":"List Change Requests","description":"Author change requests in one workflow status, oldest first.","operationId":"list_change_requests_api_admin_house_show_change_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["open","reviewed","done"],"type":"string","default":"open","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Change Requests Api Admin House Show Change Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/change-requests/{request_id}":{"post":{"tags":["admin-house-show"],"summary":"Review Change Request","description":"Move a change request through the review workflow (bounded note).","operationId":"review_change_request_api_admin_house_show_change_requests__request_id__post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowChangeRequestAdminUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowChangeRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/backfill":{"post":{"tags":["admin-house-show"],"summary":"Backfill Episodes","description":"Ensure + prep for an explicit list of project ids, reporting per id.\n\nOne bad project never aborts the batch; each id lands in exactly one\nresult row with its outcome.","operationId":"backfill_episodes_api_admin_house_show_backfill_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowBackfillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Backfill Episodes Api Admin House Show Backfill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/clips/backfill":{"post":{"tags":["admin-house-show"],"summary":"Backfill Clips","description":"Plan + render social clips for an explicit list of projects' episodes.\n\nv4 buyers snapshotted ``clip_target_count = 0`` because the renderer did not\nexist; the v5 ladder (3/6/10/14) is the intended grant and this deliberate,\nper-id backfill applies it now that Phase 3 shipped. For each project id:\nlook up its one live episode, require it ``published``, stamp the tier's\nCURRENT clip budget onto the row, and enqueue ``house_show.plan_clips``.\n\nExplicit ids ONLY — never a cohort sweep. One bad project never aborts the\nbatch; every id lands in exactly one result row with its outcome.","operationId":"backfill_clips_api_admin_house_show_clips_backfill_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowBackfillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Backfill Clips Api Admin House Show Clips Backfill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/upcoming":{"get":{"tags":["admin-house-show"],"summary":"List Upcoming For Host Route","description":"The host's prep board: shows still to record, soonest first.","operationId":"list_upcoming_for_host_route_api_admin_house_show_upcoming_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Upcoming For Host Route Api Admin House Show Upcoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/cuts-ready":{"get":{"tags":["admin-house-show"],"summary":"List Cuts Ready","description":"Finished cuts for the admin review board, waiting ones first.","operationId":"list_cuts_ready_api_admin_house_show_cuts_ready_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowCutReadyList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/host-notes":{"put":{"tags":["admin-house-show"],"summary":"Save Host Notes","description":"Persist the host's own questions for one episode.\n\nRead-modify-write on ``metadata`` because the column is a whole-object\nupdate — writing only this key would drop every other key on the row\n(booking_ics_sequence, quarantine reasons, and so on).","operationId":"save_host_notes_api_admin_house_show_episodes__episode_id__host_notes_put","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowHostNotesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Host Notes Api Admin House Show Episodes  Episode Id  Host Notes Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/promo-plays":{"get":{"tags":["admin-house-show"],"summary":"List Promo Plays","description":"Released episodes whose email promo has not gone out yet, oldest first.","operationId":"list_promo_plays_api_admin_house_show_promo_plays_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowPromoPlayList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/house-show/episodes/{episode_id}/promo-play-done":{"post":{"tags":["admin-house-show"],"summary":"Promo Play Done","description":"The daily play built this episode's email: never list it again.","operationId":"promo_play_done_api_admin_house_show_episodes__episode_id__promo_play_done_post","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseShowPromoPlayDone"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Promo Play Done Api Admin House Show Episodes  Episode Id  Promo Play Done Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/house-show":{"post":{"tags":["webhooks"],"summary":"House Show Recording Webhook","description":"Receive the n8n-relayed finished Zoom recording and queue ingest.\n\nFAIL CLOSED: the shared secret travels in the ``X-House-Show-Webhook-Secret``\nHEADER (never the URL, so access logs cannot capture a replayable token) and\nis checked BEFORE the body is read. The previous secret is also accepted so\na rotation never drops a recording mid-cutover. Unset secret or mismatch ->\n403 with no body parsing; flag dark -> 200 ack, no work; an authenticated\nsender's malformed payload is a real 422 so n8n surfaces it. Downstream\nfailures return 200 (log + Sentry) so the sender never retry-storms.","operationId":"house_show_recording_webhook_webhooks_house_show_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/house-show/awaiting-recording":{"get":{"tags":["webhooks"],"summary":"House Show Awaiting Recording","description":"Worklist: episodes whose interview happened but whose media has not.\n\nThe relay polls THIS instead of polling Zoom blind. Two consequences worth\nkeeping: an empty list means the relay never touches the Zoom API at all\n(no quota burn on idle days), and the relay never has to decide which\nepisode a recording belongs to — we hand it the episode id.\n\nWhitelisted fields only. The relay has no business seeing transcripts,\nprep packs, or publish state.","operationId":"house_show_awaiting_recording_webhooks_house_show_awaiting_recording_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/house-show/upload-intent":{"post":{"tags":["webhooks"],"summary":"House Show Upload Intent","description":"Mint presigned R2 PUTs for a relay-carried Zoom recording.\n\nSizes come from Zoom's own ``recording_files[].file_size`` and are baked\ninto the signature, so the storage boundary rejects a body of any other\nlength — a register-time size check alone would be a TOCTOU because the\nsigned URL outlives it.","operationId":"house_show_upload_intent_webhooks_house_show_upload_intent_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/house-show/recording-uploaded":{"post":{"tags":["webhooks"],"summary":"House Show Recording Uploaded","description":"Register relay-uploaded source bytes and start ingest.\n\nMirrors the admin manual-upload register: the objects must already exist at\nthe canonical keys within the size ceilings. Unlike the URL-fetch webhook\nthis returns real error codes rather than a blanket 200 — the relay calls\nit synchronously at the end of a transfer it just paid for, so it needs to\nknow whether the handoff took.","operationId":"house_show_recording_uploaded_webhooks_house_show_recording_uploaded_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/house-show/sources-wanted":{"get":{"tags":["webhooks"],"summary":"House Show Sources Wanted","description":"Worklist: episodes whose Zoom source files the backfill asked for.","operationId":"house_show_sources_wanted_webhooks_house_show_sources_wanted_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/house-show/sources-intent":{"post":{"tags":["webhooks"],"summary":"House Show Sources Intent","description":"Mint per-person and Zoom-file slots for a sources-only pass.\n\nSame derived keys and size-bound signatures as upload-intent; the combined\nrecording's keys are never minted here, so its bytes can never be replaced.","operationId":"house_show_sources_intent_webhooks_house_show_sources_intent_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/house-show/sources-uploaded":{"post":{"tags":["webhooks"],"summary":"House Show Sources Uploaded","description":"Park what a sources-only pass uploaded and queue the move into place.","operationId":"house_show_sources_uploaded_webhooks_house_show_sources_uploaded_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/house-show":{"post":{"tags":["webhooks"],"summary":"House Show Recording Webhook","description":"Receive the n8n-relayed finished Zoom recording and queue ingest.\n\nFAIL CLOSED: the shared secret travels in the ``X-House-Show-Webhook-Secret``\nHEADER (never the URL, so access logs cannot capture a replayable token) and\nis checked BEFORE the body is read. The previous secret is also accepted so\na rotation never drops a recording mid-cutover. Unset secret or mismatch ->\n403 with no body parsing; flag dark -> 200 ack, no work; an authenticated\nsender's malformed payload is a real 422 so n8n surfaces it. Downstream\nfailures return 200 (log + Sentry) so the sender never retry-storms.","operationId":"house_show_recording_webhook_api_webhooks_house_show_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/house-show/awaiting-recording":{"get":{"tags":["webhooks"],"summary":"House Show Awaiting Recording","description":"Worklist: episodes whose interview happened but whose media has not.\n\nThe relay polls THIS instead of polling Zoom blind. Two consequences worth\nkeeping: an empty list means the relay never touches the Zoom API at all\n(no quota burn on idle days), and the relay never has to decide which\nepisode a recording belongs to — we hand it the episode id.\n\nWhitelisted fields only. The relay has no business seeing transcripts,\nprep packs, or publish state.","operationId":"house_show_awaiting_recording_api_webhooks_house_show_awaiting_recording_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/house-show/upload-intent":{"post":{"tags":["webhooks"],"summary":"House Show Upload Intent","description":"Mint presigned R2 PUTs for a relay-carried Zoom recording.\n\nSizes come from Zoom's own ``recording_files[].file_size`` and are baked\ninto the signature, so the storage boundary rejects a body of any other\nlength — a register-time size check alone would be a TOCTOU because the\nsigned URL outlives it.","operationId":"house_show_upload_intent_api_webhooks_house_show_upload_intent_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/house-show/recording-uploaded":{"post":{"tags":["webhooks"],"summary":"House Show Recording Uploaded","description":"Register relay-uploaded source bytes and start ingest.\n\nMirrors the admin manual-upload register: the objects must already exist at\nthe canonical keys within the size ceilings. Unlike the URL-fetch webhook\nthis returns real error codes rather than a blanket 200 — the relay calls\nit synchronously at the end of a transfer it just paid for, so it needs to\nknow whether the handoff took.","operationId":"house_show_recording_uploaded_api_webhooks_house_show_recording_uploaded_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/house-show/sources-wanted":{"get":{"tags":["webhooks"],"summary":"House Show Sources Wanted","description":"Worklist: episodes whose Zoom source files the backfill asked for.","operationId":"house_show_sources_wanted_api_webhooks_house_show_sources_wanted_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/house-show/sources-intent":{"post":{"tags":["webhooks"],"summary":"House Show Sources Intent","description":"Mint per-person and Zoom-file slots for a sources-only pass.\n\nSame derived keys and size-bound signatures as upload-intent; the combined\nrecording's keys are never minted here, so its bytes can never be replaced.","operationId":"house_show_sources_intent_api_webhooks_house_show_sources_intent_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/house-show/sources-uploaded":{"post":{"tags":["webhooks"],"summary":"House Show Sources Uploaded","description":"Park what a sources-only pass uploaded and queue the move into place.","operationId":"house_show_sources_uploaded_api_webhooks_house_show_sources_uploaded_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/casting/waiver":{"get":{"tags":["casting"],"summary":"Get Casting Waiver","description":"Return the canonical waiver text + version for the apply form to display.\n\nSingle source of truth: the form renders THIS text and the apply route stamps\nTHIS version, so a guest always accepts exactly what they were shown — even\nafter the DRAFT copy is replaced at legal review. The router-level dependency\n404s this when the public surface is dark.","operationId":"get_casting_waiver_api_casting_waiver_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaiverResponse"}}}}}}},"/api/casting/apply":{"post":{"tags":["casting"],"summary":"Apply To Casting","description":"Public anthology casting application.\n\nDark (404) when the public flags are off. Resolves the current ``casting``\nedition server-side, creates the guest under it (stamping the DRAFT-waiver\nfields), best-effort syncs to GHL, and is idempotent per (edition, email).\nQuestion-prep is NOT run here (deferred to admin selection — see below).\nReturns a minimal success payload (no cookie — see the note where the\nresponse is built about not colliding with the funnel ``dictate_aid`` cookie).\n\nKNOWN RESIDUAL (go-live checklist): idempotency is a read-then-insert, not\natomic — two concurrent submits for the same (edition, email) can still race\nto two rows. The robust fix is a UNIQUE (edition_id, lower(guest_email))\nconstraint + ON CONFLICT handling (a follow-up migration). Low real-world\nrisk while the funnel is dark, and duplicate paid work is independently\nbounded by the bundle's cost gate + delivered_at dedup.","operationId":"apply_to_casting_api_casting_apply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastingApplyResponse"}}}}}}},"/api/anthology/onboarding/{token}":{"get":{"tags":["anthology","onboarding"],"summary":"Get Onboarding Context","description":"Render context for the onboarding page (does NOT consume the token).","operationId":"get_onboarding_context_api_anthology_onboarding__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Onboarding Context Api Anthology Onboarding  Token  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anthology/onboarding/{token}/headshot":{"post":{"tags":["anthology","onboarding"],"summary":"Upload Headshot","description":"Upload a contributor headshot (+ optional title/link). Single-use.","operationId":"upload_headshot_api_anthology_onboarding__token__headshot_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_headshot_api_anthology_onboarding__token__headshot_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Headshot Api Anthology Onboarding  Token  Headshot Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/inbound-response":{"post":{"tags":["support"],"summary":"Enqueue Inbound Response","description":"Accept one n8n-normalized inbox occurrence for dark-response processing.","operationId":"enqueue_inbound_response_api_support_inbound_response_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundSupportResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Enqueue Inbound Response Api Support Inbound Response Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/lookup-customer":{"post":{"tags":["support"],"summary":"Lookup Customer","description":"Unified customer profile from Supabase + GHL + Stripe.","operationId":"lookup_customer_api_support_lookup_customer_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerLookupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/refund":{"post":{"tags":["support"],"summary":"Refund","description":"Evaluate refund rules and optionally enqueue refund execution.\n\nReturns the decision (auto_refund, save_sale, escalate, denied).\nIf auto_refund, enqueues a Celery task and returns task_id.","operationId":"refund_api_support_refund_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundEvaluation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/cancel-subscription":{"post":{"tags":["support"],"summary":"Cancel Subscription","description":"Cancel subscription(s) at period end via Stripe.","operationId":"cancel_subscription_api_support_cancel_subscription_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSubscriptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__support__CancelSubscriptionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/ghl-log":{"post":{"tags":["support"],"summary":"Ghl Log","description":"Add tags and/or a note to a GHL contact.","operationId":"ghl_log_api_support_ghl_log_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GHLLogRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GHLLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/send-reply":{"post":{"tags":["support"],"summary":"Send Reply","description":"Send an email reply to a customer via Resend, through the guarded sender.\n\nWO-15: the reply needs an idempotency key (``idempotency_key``, or the n8n\nexecution id) so a retried execution sends once, and a scope (ticket,\nproject or lead) so the recipient is checked against the address on file.\nA refused recipient is a 4xx with the reason, never a silent drop.","operationId":"send_reply_api_support_send_reply_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendReplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/notify-ops":{"post":{"tags":["support"],"summary":"Notify Ops","description":"Send an ops alert to Slack, and file a ticket when it names somebody.\n\nThe Slack message is unconditional and unchanged — it is how ops learns\nabout escalations today, and the Wave 4 flag must never make an escalation\nquieter. The TICKET is the addition, and it needs two things the Slack\nmessage never needed: a subject (who is this about?) and a stable reference\n(so an n8n retry does not file it twice). Without either, this stays a\nSlack message, which is what it has always been.","operationId":"notify_ops_api_support_notify_ops_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyOpsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyOpsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/get-calendar-link":{"post":{"tags":["support"],"summary":"Get Calendar Link","description":"Return the appropriate calendar link based on customer stage.","operationId":"get_calendar_link_api_support_get_calendar_link_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/notify-concierge":{"post":{"tags":["support"],"summary":"Notify Concierge","description":"Email the assigned concierge about a customer request.","operationId":"notify_concierge_api_support_notify_concierge_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyConciergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyConciergeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/dispute-evidence":{"post":{"tags":["support"],"summary":"Dispute Evidence","description":"Enqueue dispute evidence gathering. Returns ticket_id + task_id.","operationId":"dispute_evidence_api_support_dispute_evidence_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeEvidenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeEvidenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/submit-dispute":{"post":{"tags":["support"],"summary":"Submit Dispute","description":"Submit dispute evidence to Stripe (irreversible).","operationId":"submit_dispute_api_support_submit_dispute_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDisputeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDisputeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/log-ticket":{"post":{"tags":["support"],"summary":"Log Ticket","description":"Create a support ticket record (idempotent on n8n_execution_id).","operationId":"log_ticket_api_support_log_ticket_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/ticket/{ticket_id}":{"get":{"tags":["support"],"summary":"Get Ticket","description":"Get ticket status + metadata (used by n8n to poll async task results).","operationId":"get_ticket_api_support_ticket__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SupportTicketResponse"},{"type":"null"}],"title":"Response Get Ticket Api Support Ticket  Ticket Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/resend-deliverables":{"post":{"tags":["support"],"summary":"Resend Deliverables","description":"Resolve, resend, or regenerate frontend/Silas blueprint deliverables.","operationId":"resend_deliverables_api_support_resend_deliverables_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendDeliverablesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendDeliverablesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/create-va-task":{"post":{"tags":["support"],"summary":"Create Va Task Endpoint","description":"Create a VA ops task for actionable support requests (KDP upload, etc).","operationId":"create_va_task_endpoint_api_support_create_va_task_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVATaskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVATaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/log-gap":{"post":{"tags":["support"],"summary":"Log Gap","description":"Log a KB gap — question the bot couldn't answer confidently.","operationId":"log_gap_api_support_log_gap_post","parameters":[{"name":"x-support-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Support-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogGapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogGapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/telemetry/portal-beacon":{"post":{"tags":["telemetry"],"summary":"Portal Beacon","description":"Record \"an author's browser reached us\".\n\nAnswers 204 unconditionally. A beacon that argued with the client — 4xx on an\nunknown ref, say — would leak whether a token hash exists and would give the\npage something to handle on a path that must stay invisible.","operationId":"portal_beacon_api_telemetry_portal_beacon_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalBeaconRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/telemetry/portal-continue":{"post":{"tags":["telemetry"],"summary":"Portal Continue","description":"Record that Continue was tapped, or that its request got no answer.\n\nWithout it \"never tapped\" and \"tapped but the POST was lost\" are the same\nunused link (E.Q., 2026-11-13). 204 always, like the beacon above; the ref\nmust match a real minted link or nothing is written.\nKill switch: PORTAL_CONTINUE_SIGNAL_ENABLED.","operationId":"portal_continue_api_telemetry_portal_continue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalContinueRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/outreach-queue":{"get":{"tags":["dm-outreach"],"summary":"Get Outreach Queue","description":"Return the current database-backed DM queue.","operationId":"get_outreach_queue_api_support_outreach_queue_get","parameters":[{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"enum":["linkedin","instagram","x","twitter","youtube"],"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"status","in":"query","required":false,"schema":{"enum":["sendable","sent","skip","replied"],"type":"string","default":"sendable","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"x-dm-outreach-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Dm-Outreach-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OutreachQueueLead"},"title":"Response Get Outreach Queue Api Support Outreach Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/outreach-status":{"post":{"tags":["dm-outreach"],"summary":"Update Outreach Status","description":"Persist one or many status/correction updates by prospect UUID.","operationId":"update_outreach_status_api_support_outreach_status_post","parameters":[{"name":"x-dm-outreach-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Dm-Outreach-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusUpdate"},{"$ref":"#/components/schemas/WrongPersonUpdate"},{"$ref":"#/components/schemas/WrongEpisodeUpdate"},{"$ref":"#/components/schemas/CorrectLinkUpdate"},{"$ref":"#/components/schemas/EmailFoundUpdate"},{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/StatusUpdate"},{"$ref":"#/components/schemas/WrongPersonUpdate"},{"$ref":"#/components/schemas/WrongEpisodeUpdate"},{"$ref":"#/components/schemas/CorrectLinkUpdate"},{"$ref":"#/components/schemas/EmailFoundUpdate"}]},"minItems":1,"maxItems":500}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OutreachStatusResult"},{"type":"array","items":{"$ref":"#/components/schemas/OutreachStatusResult"}}],"title":"Response Update Outreach Status Api Support Outreach Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/outreach-suppressions":{"post":{"tags":["outreach-suppressions"],"summary":"Create Outreach Suppression","description":"Suppress an email or social profile across the guest-outreach stack.","operationId":"create_outreach_suppression_api_support_outreach_suppressions_post","parameters":[{"name":"x-dm-outreach-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Dm-Outreach-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachSuppressionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachSuppressionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/crm/oauth/callback":{"get":{"tags":["webhooks"],"summary":"Ghl Oauth Callback","description":"Receive GHL OAuth callback and persist the token pair.","operationId":"ghl_oauth_callback_integrations_crm_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/crm/app-lifecycle":{"post":{"tags":["webhooks"],"summary":"Ghl App Lifecycle Webhook","description":"Receive GHL app install/uninstall lifecycle webhooks.","operationId":"ghl_app_lifecycle_webhook_integrations_crm_app_lifecycle_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"x-wh-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Wh-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","description":"Receive Stripe webhook events.\n\nReturns 200 immediately and enqueues a Celery task for processing.","operationId":"stripe_webhook_webhooks_stripe_post","parameters":[{"name":"stripe-signature","in":"header","required":true,"schema":{"type":"string","title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/smartlead/podcast-reply":{"post":{"tags":["webhooks"],"summary":"Smartlead Podcast Reply Webhook","description":"Master PodcastOps reply webhook (one endpoint, not per-client).\n\nGated on podcast_ops_enabled (404 when dark). Fails CLOSED: rejects unless the\nSmartlead signature / shared secret verifies. Stores the raw payload (idempotent\non X-Request-Id / content hash), then enqueues the reply processor. Returns 200\nfast; all AI/routing/auto-send happens in the Celery task.","operationId":"smartlead_podcast_reply_webhook_webhooks_smartlead_podcast_reply_post","parameters":[{"name":"x-smartlead-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Smartlead-Signature"}},{"name":"x-request-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Request-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/smartlead/guest-reply":{"post":{"tags":["webhooks"],"summary":"Smartlead Guest Reply Webhook","description":"Guest-prospecting reply webhook (Dictate's own sales motion).\n\nGated on guest_prospecting_enabled (404 when dark). Fails CLOSED on signature.\nDedups (X-Request-Id / content hash), then enqueues guest.process_reply. Only\nEMAIL_REPLY drives the pipeline. Returns 200 fast; classify/deliverable run async.","operationId":"smartlead_guest_reply_webhook_webhooks_smartlead_guest_reply_post","parameters":[{"name":"x-smartlead-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Smartlead-Signature"}},{"name":"x-request-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Request-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/smartlead/backlink-reply":{"post":{"tags":["webhooks"],"summary":"Smartlead Backlink Reply Webhook","description":"Backlink-outreach reply webhook (\"Dictate — Link Outreach\" campaign).\n\n404 while backlink_outreach_enabled is off. Authenticates FIRST (signature header or\nthe registered ?secret= param, constant-time) and fails closed when no secret is\nconfigured; only then parses. Dedups (X-Request-Id / content hash) and enqueues\nbacklink.process_reply. Duplicates and non-reply events return 200 after auth.","operationId":"smartlead_backlink_reply_webhook_webhooks_smartlead_backlink_reply_post","parameters":[{"name":"x-smartlead-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Smartlead-Signature"}},{"name":"x-request-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Request-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/agreement-signed":{"post":{"tags":["webhooks"],"summary":"Ghl Agreement Signed Webhook","description":"Receive a GHL 'document signed/completed' workflow webhook.\n\nFired by the Dictate GHL workflow (Documents & Contracts → Document\nCompleted trigger → custom webhook action). Authenticates BEFORE parsing\nvia the existing GHL inbound mechanism (signature OR shared\n``X-Webhook-Secret``); fails closed when no secret is configured. Enqueues\n``ghl.agreement_signed`` which posts the agreement (PDF when the token\nscope allows) to the CRSC #agreements-dictate channel and tags the rep.","operationId":"ghl_agreement_signed_webhook_webhooks_ghl_agreement_signed_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/lead-scoring":{"post":{"tags":["webhooks"],"summary":"Ghl Lead Scoring Webhook","description":"Receive a GHL Lead Quality workflow nudge and Slack-DM the assigned rep.\n\nFired by custom-webhook steps in the Lead Quality workflows (Calendar 1/2,\nSubmissions, escalation) alongside the existing rep emails. Authenticates\nBEFORE parsing (shared ``X-Webhook-Secret`` OR HMAC signature); fails\nclosed when no secret is configured. Enqueues ``ghl.lead_scoring_nudge``.","operationId":"ghl_lead_scoring_webhook_webhooks_ghl_lead_scoring_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/blueprint-outreach":{"post":{"tags":["webhooks"],"summary":"Ghl Blueprint Outreach Webhook","description":"Start Authority Blueprint AI outreach when a GHL workflow enrolls a lead.\n\nFired by a custom webhook step. Authenticates BEFORE parsing via the shared\nGHL inbound secret or HMAC signature. Acts only on ``source=blueprint_outreach``.","operationId":"ghl_blueprint_outreach_webhook_webhooks_ghl_blueprint_outreach_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/inbound-message":{"post":{"tags":["webhooks"],"summary":"Ghl Inbound Message Webhook","description":"Receive GHL InboundMessage events: outreach email replies, author texts, voicemails.\n\nLocation-level InboundMessage fires for any inbound SMS/email/call. Inbound\nemail on a contact with an active Blueprint email case gets an outreach\nreply (never via Resend). An inbound SMS is handed to a task that routes it\nto the inbound support responder only when the texter resolves to exactly\none active author project (a text to the rep's number must reach us the\nsame as a text to ours). An inbound call that went to voicemail (or was\nmissed) is queued for transcription and the support responder\n(VOICEMAIL_TO_TASK_ENABLED). Everything else is ignored.","operationId":"ghl_inbound_message_webhook_webhooks_ghl_inbound_message_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/outreach/call-booked":{"post":{"tags":["webhooks"],"summary":"Outreach Call Booked Webhook","description":"Receive a guest-prospecting 'call booked' event and enqueue the call-prep brief.\n\nFired (via n8n/GHL) when a prospect books their Silas call in the Dictate Cold\nOutreach pipeline. Authenticates BEFORE parsing, reusing the existing GHL inbound\nmechanism (``ghl_webhook_secret`` via signature OR the shared ``X-Webhook-Secret``\nheader) - fails closed when no secret is configured. Returns 200 fast and enqueues\n``guest.generate_call_prep_brief`` (which builds the AI outline + writes the GHL note).\nGated on ``guest_prospecting_enabled`` (404 when dark). The brief is INTERNAL only.","operationId":"outreach_call_booked_webhook_webhooks_outreach_call_booked_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/payva/{token}":{"post":{"tags":["webhooks"],"summary":"Payva Webhook","description":"Receive Payva financing webhook events.\n\nPayva sends NO authentication, so a secret token embedded in the URL path is\nthe sole authenticator (fail closed). The handler dedupes, persists every raw\npayload (including unparseable / non-dict bodies so samples are never lost),\nreturns 200 immediately, and enqueues a Celery task for processing.","operationId":"payva_webhook_webhooks_payva__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/booking":{"post":{"tags":["webhooks"],"summary":"Ghl Booking Webhook","description":"Receive GHL calendar booking webhooks.\n\nReturns 200 immediately and enqueues a Celery task for processing.","operationId":"ghl_booking_webhook_webhooks_ghl_booking_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/purchase":{"post":{"tags":["webhooks"],"summary":"Ghl Purchase Webhook","description":"Receive GHL SLO purchase webhooks ($7-$297 funnel).\n\nReturns 200 immediately and enqueues a Celery task for fulfillment.","operationId":"ghl_purchase_webhook_webhooks_ghl_purchase_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/quiz":{"post":{"tags":["webhooks"],"summary":"Quiz Webhook","description":"Receive quiz completion events from external form platforms.\n\nReturns 200 immediately and enqueues async processing.\nDeduplicates by email + 5-minute window.\nRequires quiz_webhook_secret; returns 500 if not configured.\nReturns 200 on invalid-header rejection to prevent upstream retry storms.","operationId":"quiz_webhook_webhooks_quiz_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/telnyx/sms":{"post":{"tags":["webhooks"],"summary":"Telnyx Sms Webhook","description":"Receive inbound SMS and delivery status events from Telnyx.\n\nReturns 200 immediately and enqueues Celery tasks for processing.","operationId":"telnyx_sms_webhook_webhooks_telnyx_sms_post","parameters":[{"name":"telnyx-signature-ed25519","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Signature-Ed25519"}},{"name":"telnyx-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/telnyx/sms/failover":{"post":{"tags":["webhooks"],"summary":"Telnyx Sms Failover Webhook","description":"Failover webhook for Telnyx SMS — same logic, logs a warning.","operationId":"telnyx_sms_failover_webhook_webhooks_telnyx_sms_failover_post","parameters":[{"name":"telnyx-signature-ed25519","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Signature-Ed25519"}},{"name":"telnyx-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/twilio/sms":{"post":{"tags":["webhooks"],"summary":"Twilio Sms Webhook","description":"Receive inbound SMS from Twilio (form-encoded). Returns 200 + empty TwiML.\n\nUsed once SMS is cut over to the Twilio number so replies to the same number\nthat places calls are handled. Same STOP/HELP/pipeline routing as Telnyx.","operationId":"twilio_sms_webhook_webhooks_twilio_sms_post","parameters":[{"name":"x-twilio-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Twilio-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/resend":{"post":{"tags":["webhooks"],"summary":"Resend Inbound Webhook","description":"Receive inbound email from Resend.\n\nReturns 200 immediately and enqueues a Celery task for processing.","operationId":"resend_inbound_webhook_webhooks_resend_post","parameters":[{"name":"svix-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Id"}},{"name":"svix-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Timestamp"}},{"name":"svix-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resend Inbound Webhook Webhooks Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/gdrive":{"post":{"tags":["webhooks"],"summary":"Gdrive Webhook","description":"Receive Google Drive push notification.\n\nReturns 200 immediately and enqueues a Celery task for processing.\nGoogle sends minimal headers — actual content is fetched async.","operationId":"gdrive_webhook_webhooks_gdrive_post","parameters":[{"name":"x-goog-channel-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Channel-Id"}},{"name":"x-goog-resource-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Resource-Id"}},{"name":"x-goog-resource-state","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Resource-State"}},{"name":"x-goog-channel-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Channel-Token"}},{"name":"x-goog-message-number","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Message-Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/vapi":{"post":{"tags":["webhooks"],"summary":"Vapi Webhook","description":"Receive Vapi call events (started, ended, transcript ready).\n\nReturns 200 immediately and enqueues a Celery task for processing.\nInstruments all events with turn-level latency telemetry (Task 130).","operationId":"vapi_webhook_webhooks_vapi_post","parameters":[{"name":"x-vapi-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Vapi-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/lulu":{"post":{"tags":["webhooks"],"summary":"Lulu Webhook","description":"Receive Lulu print job status change events.\n\nReturns 200 immediately and enqueues a Celery task for processing.\nLulu webhook events: PRINT_JOB_STATUS_CHANGED\nRequires lulu_webhook_secret; returns 500 if not configured.","operationId":"lulu_webhook_webhooks_lulu_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/blueprint-watched":{"post":{"tags":["webhooks"],"summary":"Blueprint Watched Webhook","description":"Receive marketing blueprint watched events from GHL workflow.\n\nTriggered by Webinarkit → GHL tag → GHL workflow → webhook.\nUses same GHL HMAC signature verification pattern as booking webhook.\nReturns 200 immediately and enqueues async Celery task.\n\nSprint 93, Task 473.","operationId":"blueprint_watched_webhook_webhooks_blueprint_watched_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/backend-declined":{"post":{"tags":["webhooks"],"summary":"Ghl Backend Declined Webhook","description":"A rep picked \"Declined backend, start book\" — or ticked \"Manual Start\nOnboarding\" (``decision: \"manual_start\"``) — on the GHL contact.\n\nFired by the GHL Backend Decision workflow (docs/alfred-tasks/backend-declined-start-book-2026-09-22.md).\nSame shared-secret header as the other GHL workflow webhooks. Records the\ndecline, unlocks the author's interviews and tells them to book — all in\n``concierge.process_backend_declined``. Returns 200 once authenticated so\nGHL never retries a payload that cannot succeed; unmatched authors become\none Slack alert, never a silent drop.","operationId":"ghl_backend_declined_webhook_webhooks_ghl_backend_declined_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/funnel-purchase":{"post":{"tags":["webhooks"],"summary":"Ghl Funnel Purchase Webhook","description":"Receive GHL funnel purchase webhooks (replatformed funnel).\n\nReturns 200 immediately and enqueues a Celery task for fulfillment.\nDedupes via webhook_events table using provider='ghl_funnel' + dedupe_key.","operationId":"ghl_funnel_purchase_webhook_webhooks_ghl_funnel_purchase_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ghl/portal-provision":{"post":{"tags":["webhooks"],"summary":"Ghl Portal Provision Webhook","description":"Sales-driven waiting-portal provisioning from a GHL workflow.\n\nContract (docs/waiting-portal/GHL-SETUP.md is the operator-facing spec):\n- Fail closed: 503 while waiting_portal_enabled is off (GHL retries once\n  the surface is live); 500 when no secret is configured; 400 on\n  missing/invalid signature.\n- Idempotent: dedupe key from the payload idempotency_key (fallback\n  contact_id:tier:target). Duplicates return 200 with no second enqueue.\n- Structurally invalid payloads (bad tier, missing email) return 200 and\n  are dropped with a WAITING_PROVISION_REJECTED ops alert — a GHL retry\n  of the same broken payload can never succeed, so we don't ask for one.\n- All real work happens in waiting_portal.process_provision (Celery);\n  the failure path is webhook_events mark_failed + admin replay, never a\n  silent drop.","operationId":"ghl_portal_provision_webhook_webhooks_ghl_portal_provision_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/sendblue":{"post":{"tags":["sendblue"],"summary":"Webhook","operationId":"webhook_webhooks_sendblue_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Webhook Webhooks Sendblue Post"}}}}}}},"/admin/sendblue/lines":{"get":{"tags":["sendblue"],"summary":"Lines","operationId":"lines_admin_sendblue_lines_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Lines Admin Sendblue Lines Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/clickbank/ins":{"post":{"tags":["clickbank"],"summary":"Clickbank Instant Notification","operationId":"clickbank_instant_notification_webhooks_clickbank_ins_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/funnel/phone-device-tag":{"post":{"tags":["funnel"],"summary":"Phone Device Tag","description":"The trusted website queues tagging after successful lead capture.","operationId":"phone_device_tag_api_funnel_phone_device_tag_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneDeviceTagRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Phone Device Tag Api Funnel Phone Device Tag Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/clickbank-optin":{"post":{"tags":["funnel"],"summary":"Clickbank Optin","operationId":"clickbank_optin_api_funnel_clickbank_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickBankOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/jvzoo-optin":{"post":{"tags":["funnel"],"summary":"Jvzoo Optin","operationId":"jvzoo_optin_api_funnel_jvzoo_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickBankOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/digistore24-optin":{"post":{"tags":["funnel"],"summary":"Digistore24 Optin","operationId":"digistore24_optin_api_funnel_digistore24_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickBankOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/hotmart-optin":{"post":{"tags":["funnel"],"summary":"Hotmart Optin","operationId":"hotmart_optin_api_funnel_hotmart_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickBankOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/buygoods-optin":{"post":{"tags":["funnel"],"summary":"Buygoods Optin","operationId":"buygoods_optin_api_funnel_buygoods_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickBankOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/chatgpt-optin":{"post":{"tags":["funnel"],"summary":"Chatgpt Optin","description":"Tag a free-training opt-in from the ChatGPT ads page (/free-training/chatgpt)\n``chatgpt-lead``. The lead webhook already ran with the funnel's usual source.\n\nOnly our Next.js server may call it: the Cloudflare edge stamps its secret on\nevery request (GH #12975), so the edge secret alone would let anyone create a\nGHL contact with the tag. The server signs the client IP, which a browser\ncannot. Same rule and kill switch as the attribution routes\n(``ATTRIBUTION_REQUIRE_SIGNED_CALLER=false`` falls back to the edge secret).","operationId":"chatgpt_optin_api_funnel_chatgpt_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGptOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/website-optin":{"post":{"tags":["funnel"],"summary":"Website Optin","description":"Tag a free-training opt-in from the startdictate.com CTAs ``website-lead``\nand store it in ``website_leads`` with its entry page.","operationId":"website_optin_api_funnel_website_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/newsletter-signup":{"post":{"tags":["funnel"],"summary":"Newsletter Signup","description":"Talk Your Book newsletter sign-up: tag ``talk-your-book-newsletter`` (+ a\nsource tag) in GHL and queue Issue #1 for a new subscriber.\n\nOnly our Next.js server may call it, like ``chatgpt-optin``: it creates a\nGHL contact AND emails the address, and the Cloudflare edge stamps its\nsecret on every request (GH #12975), so the signed client IP is required.\n``ATTRIBUTION_REQUIRE_SIGNED_CALLER=false`` falls back to the edge secret.","operationId":"newsletter_signup_api_funnel_newsletter_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsletterSignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/strategy-call-optin":{"post":{"tags":["funnel"],"summary":"Strategy Call Optin","description":"Step 1: upsert the contact, tag ``bac-applied`` + ``source-book-a-call``.","operationId":"strategy_call_optin_api_funnel_strategy_call_optin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StrategyCallOptInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/strategy-call-application":{"post":{"tags":["funnel"],"summary":"Strategy Call Application","description":"Step 2: write the answers, tag qualified/unqualified, return the decision.","operationId":"strategy_call_application_api_funnel_strategy_call_application_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StrategyCallApplicationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/strategy-call-booking":{"get":{"tags":["funnel"],"summary":"Strategy Call Booking","description":"The booked Author Strategy Call's time for the /lp/ghostwriter thank-you\npage. Answers only when the GHL contact id and the email belong together;\nanything else is an empty 200 (never says whether a contact exists).","operationId":"strategy_call_booking_api_funnel_strategy_call_booking_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Email"}},{"name":"cid","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":40,"pattern":"^[A-Za-z0-9]+$","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/strategy-call-vsl-milestone":{"post":{"tags":["funnel"],"summary":"Strategy Call Vsl Milestone","description":"VSL watch depth: tag an EXISTING contact ``bac-vsl-<milestone>``.\n\nWrites only with proof of the viewer (``viewer_token`` or ``contact_id``).\n\nUp to seven milestones per page view, hence the higher rate limit. An\nunknown email is ignored (200, no contact created). A CRM failure is also a\n200: the page fires and forgets, so an error status would only add retries.","operationId":"strategy_call_vsl_milestone_api_funnel_strategy_call_vsl_milestone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StrategyCallVslMilestoneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/strategy-call-resume":{"get":{"tags":["funnel"],"summary":"Strategy Call Resume","description":"The prefill a signed resume link (/lp/ghostwriter or /lp/book-blueprint)\nopens with (follow-up emails and texts), plus the lead's live state. An\ninvalid or unknown token is an empty 200.","operationId":"strategy_call_resume_api_funnel_strategy_call_resume_get","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":40,"maxLength":120,"pattern":"^[A-Za-z0-9]{6,64}\\.(questions|calendar)\\.[0-9a-f]{32}$","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/lp-step":{"post":{"tags":["funnel"],"summary":"Lp Step","description":"One /lp/ghostwriter funnel step (the page's beacon, through the Next.js\nroute that adds the visitor id and device). Always 204-style empty answer.","operationId":"lp_step_api_funnel_lp_step_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LpStepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/meta-event":{"post":{"tags":["funnel"],"summary":"Meta Event","operationId":"meta_event_api_funnel_meta_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaEventRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/start":{"post":{"tags":["funnel"],"summary":"Start","description":"Screen 1: open a signup. ``{signup_id, resume_token}``.","operationId":"start_api_funnel_free_blueprint_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__free_blueprint_funnel__StartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/email":{"post":{"tags":["funnel"],"summary":"Email","description":"Screen 2: save the email, push the GHL contact. ``{ok}``.","operationId":"email_api_funnel_free_blueprint_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/name":{"post":{"tags":["funnel"],"summary":"Name","description":"Screen 3's name, saved before the phone is asked. ``{ok}``.","operationId":"name_api_funnel_free_blueprint_name_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/contact":{"post":{"tags":["funnel"],"summary":"Contact","description":"Screen 3: name, mobile and the consent receipt; CAPI Lead. ``{ok}``.","operationId":"contact_api_funnel_free_blueprint_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/slots":{"get":{"tags":["funnel"],"summary":"Slots","description":"Screen 4: ``{soonest: [3], more: [...], tz}``, each slot ``{start, end}``.","operationId":"slots_api_funnel_free_blueprint_slots_get","parameters":[{"name":"signup_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Signup Id"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/book":{"post":{"tags":["funnel"],"summary":"Book","description":"One tap books. ``{appointment_id, start, end, rep_first_name}``.","operationId":"book_api_funnel_free_blueprint_book_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/fiction":{"post":{"tags":["funnel"],"summary":"Fiction","description":"Fiction waitlist (no booking). ``{ok}``.","operationId":"fiction_api_funnel_free_blueprint_fiction_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FictionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/proof":{"get":{"tags":["funnel"],"summary":"Proof","description":"``{testimonial: {name, photo_url, headline, quote, disclosures} | null,\nstrip: [{name, photo_url, cover_url, title, subtitle, blurb, bio}]}``; the\nbook fields fill the tap-to-preview sheet and are null when not on file.\nEmpty while the funnel is off.","operationId":"proof_api_funnel_free_blueprint_proof_get","parameters":[{"name":"book_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["business","memoir","faith","method","fiction"],"type":"string"},{"type":"null"}],"title":"Book Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/resume":{"get":{"tags":["funnel"],"summary":"Resume","description":"The saved state a resume link reopens; an unknown token is an empty 200.","operationId":"resume_api_funnel_free_blueprint_resume_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":65,"maxLength":65,"pattern":"^[0-9a-f]{32}\\.[0-9a-f]{32}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/free-blueprint/step":{"post":{"tags":["funnel"],"summary":"Step","description":"One page step for the server-side drop-off table (plan §7 names only).","operationId":"step_api_funnel_free_blueprint_step_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/jvzoo/ipn":{"post":{"tags":["jvzoo"],"summary":"Jvzoo Ipn","operationId":"jvzoo_ipn_webhooks_jvzoo_ipn_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/digistore24/ipn":{"post":{"tags":["marketplaces"],"summary":"Digistore Ipn","operationId":"digistore_ipn_webhooks_digistore24_ipn_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/hotmart/events":{"post":{"tags":["marketplaces"],"summary":"Hotmart Events","operationId":"hotmart_events_webhooks_hotmart_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/hotmart/test-events":{"post":{"tags":["marketplaces"],"summary":"Hotmart Test Events","description":"Use for the UI simulator: it cannot enroll/send even with real product IDs.","operationId":"hotmart_test_events_webhooks_hotmart_test_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/whop":{"post":{"summary":"Whop Webhook","operationId":"whop_webhook_webhooks_whop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Whop Webhook Webhooks Whop Post"}}}}}}},"/webhooks/twilio/conference":{"post":{"tags":["joint-calls"],"summary":"Twilio Conference Webhook","operationId":"twilio_conference_webhook_webhooks_twilio_conference_post","parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kind"}},{"name":"x-twilio-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Twilio-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ses-events":{"post":{"tags":["marketing-email"],"summary":"Ses Events Webhook","operationId":"ses_events_webhook_webhooks_ses_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/ghl-email-events":{"post":{"tags":["marketing-email"],"summary":"Ghl Email Events Webhook","operationId":"ghl_email_events_webhook_webhooks_ghl_email_events_post","parameters":[{"name":"X-Dictate-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","maxLength":256,"default":"","title":"X-Dictate-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketing-email/unsubscribe":{"get":{"tags":["marketing-email"],"summary":"Unsubscribe Page","operationId":"unsubscribe_page_marketing_email_unsubscribe_get","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":900,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketing-email"],"summary":"Unsubscribe Confirm","operationId":"unsubscribe_confirm_marketing_email_unsubscribe_post","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":900,"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/agentweb":{"post":{"tags":["agentweb"],"summary":"Agentweb Webhook","operationId":"agentweb_webhook_webhooks_agentweb_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Agentweb Webhook Webhooks Agentweb Post"}}}}}}},"/webhooks/slack/interactivity":{"post":{"tags":["slack-interactivity"],"summary":"Slack Interactivity","operationId":"slack_interactivity_webhooks_slack_interactivity_post","parameters":[{"name":"X-Slack-Signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Signature"}},{"name":"X-Slack-Request-Timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-slack-cards/test-cards":{"post":{"tags":["admin-rep-slack-cards"],"summary":"Send Test Cards","operationId":"send_test_cards_admin_rep_slack_cards_test_cards_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestCardsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Test Cards Admin Rep Slack Cards Test Cards Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-slack-cards/diy-upgrade-notice":{"post":{"tags":["admin-rep-slack-cards"],"summary":"Post Diy Upgrade Notice","description":"Make sure a DIY buyer's upgrade link is in GHL (mints when no window\nexists), then post the rep's \"upgrade link ready\" notice again.","operationId":"post_diy_upgrade_notice_admin_rep_slack_cards_diy_upgrade_notice_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiyUpgradeNoticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Diy Upgrade Notice Admin Rep Slack Cards Diy Upgrade Notice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-slack-cards/cards/{card_id}":{"get":{"tags":["admin-rep-slack-cards"],"summary":"Read Card","operationId":"read_card_admin_rep_slack_cards_cards__card_id__get","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Card Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Card Admin Rep Slack Cards Cards  Card Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-slack-cards/merges/{merge_id}":{"get":{"tags":["admin-rep-slack-cards"],"summary":"Read Merge","operationId":"read_merge_admin_rep_slack_cards_merges__merge_id__get","parameters":[{"name":"merge_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Merge Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Merge Admin Rep Slack Cards Merges  Merge Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-slack-cards/merges/{merge_id}/reverse":{"post":{"tags":["admin-rep-slack-cards"],"summary":"Reverse Merge","operationId":"reverse_merge_admin_rep_slack_cards_merges__merge_id__reverse_post","parameters":[{"name":"merge_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Merge Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeReverseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reverse Merge Admin Rep Slack Cards Merges  Merge Id  Reverse Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/slack/events":{"post":{"tags":["slack-events"],"summary":"Slack Events","operationId":"slack_events_webhooks_slack_events_post","parameters":[{"name":"X-Slack-Signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Signature"}},{"name":"X-Slack-Request-Timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/zoom/{rep_token}":{"post":{"tags":["zoom-rep-transcripts"],"summary":"Zoom Rep Webhook","operationId":"zoom_rep_webhook_webhooks_zoom__rep_token__post","parameters":[{"name":"rep_token","in":"path","required":true,"schema":{"type":"string","title":"Rep Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-rep-webhooks":{"post":{"tags":["admin-zoom-rep-transcripts"],"summary":"Create Rep Webhook","operationId":"create_rep_webhook_admin_zoom_rep_webhooks_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRepWebhook"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Rep Webhook Admin Zoom Rep Webhooks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-zoom-rep-transcripts"],"summary":"List Rep Webhooks","operationId":"list_rep_webhooks_admin_zoom_rep_webhooks_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Rep Webhooks Admin Zoom Rep Webhooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-rep-webhooks/invite":{"post":{"tags":["admin-zoom-rep-transcripts"],"summary":"Invite Reps","description":"Self-serve setup: the Sales Bot DMs each sales rep their setup card.\n\nIdempotent: a connected rep or an already-sent card is left alone unless\n``resend``; the URL changes only with ``rotate``. The URL is never\nreturned here (it is in the rep's own DM).","operationId":"invite_reps_admin_zoom_rep_webhooks_invite_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteReps"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite Reps Admin Zoom Rep Webhooks Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-rep-webhooks/setup-status":{"get":{"tags":["admin-zoom-rep-transcripts"],"summary":"Setup Status","description":"One line per active sales rep: Connected / waiting for Validate /\nwaiting for the Secret Token / not invited (no URLs, no secrets).","operationId":"setup_status_admin_zoom_rep_webhooks_setup_status_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Setup Status Admin Zoom Rep Webhooks Setup Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-rep-webhooks/{webhook_id}/secret":{"put":{"tags":["admin-zoom-rep-transcripts"],"summary":"Set Rep Secret","operationId":"set_rep_secret_admin_zoom_rep_webhooks__webhook_id__secret_put","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSecret"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Rep Secret Admin Zoom Rep Webhooks  Webhook Id  Secret Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-rep-webhooks/{webhook_id}/allowed-hosts":{"put":{"tags":["admin-zoom-rep-transcripts"],"summary":"Set Allowed Hosts","description":"Which Zoom hosts' recordings this URL keeps (a shared company Zoom\naccount). The row's ``foreign_host_emails`` lists the hosts dropped so far.","operationId":"set_allowed_hosts_admin_zoom_rep_webhooks__webhook_id__allowed_hosts_put","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAllowedHosts"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Allowed Hosts Admin Zoom Rep Webhooks  Webhook Id  Allowed Hosts Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-rep-webhooks/{webhook_id}/disable":{"post":{"tags":["admin-zoom-rep-transcripts"],"summary":"Disable Rep Webhook","operationId":"disable_rep_webhook_admin_zoom_rep_webhooks__webhook_id__disable_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disable Rep Webhook Admin Zoom Rep Webhooks  Webhook Id  Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-transcripts":{"get":{"tags":["admin-zoom-rep-transcripts"],"summary":"List Transcripts","operationId":"list_transcripts_admin_zoom_transcripts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["received","matched","unmatched","failed","expired","empty"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Transcripts Admin Zoom Transcripts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-transcripts/{transcript_id}":{"get":{"tags":["admin-zoom-rep-transcripts"],"summary":"Read Transcript","operationId":"read_transcript_admin_zoom_transcripts__transcript_id__get","parameters":[{"name":"transcript_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transcript Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Transcript Admin Zoom Transcripts  Transcript Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-transcripts/{transcript_id}/match":{"post":{"tags":["admin-zoom-rep-transcripts"],"summary":"Match Transcript","operationId":"match_transcript_admin_zoom_transcripts__transcript_id__match_post","parameters":[{"name":"transcript_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transcript Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualMatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Match Transcript Admin Zoom Transcripts  Transcript Id  Match Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoom-transcripts/{transcript_id}/reprocess":{"post":{"tags":["admin-zoom-rep-transcripts"],"summary":"Reprocess Transcript","description":"Queue download (if still needed) + matching again. An ``unmatched`` row\nwith its text goes back to ``received`` so the matcher re-reads GHL.\n``rematch_auto=true`` also re-reads a row the matcher placed by itself.","operationId":"reprocess_transcript_admin_zoom_transcripts__transcript_id__reprocess_post","parameters":[{"name":"transcript_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transcript Id"}},{"name":"rematch_auto","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Rematch Auto"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reprocess Transcript Admin Zoom Transcripts  Transcript Id  Reprocess Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-recap-emails/dry-run":{"post":{"tags":["admin-rep-recap-emails"],"summary":"Enqueue Dry Run","operationId":"enqueue_dry_run_admin_rep_recap_emails_dry_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enqueue Dry Run Admin Rep Recap Emails Dry Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-recap-emails/dry-run/{job_id}":{"get":{"tags":["admin-rep-recap-emails"],"summary":"Read Dry Run","operationId":"read_dry_run_admin_rep_recap_emails_dry_run__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Dry Run Admin Rep Recap Emails Dry Run  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-recap-emails/post-webinar/dry-run":{"post":{"tags":["admin-rep-recap-emails"],"summary":"Enqueue Post Webinar Dry Run","operationId":"enqueue_post_webinar_dry_run_admin_rep_recap_emails_post_webinar_dry_run_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostWebinarDryRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enqueue Post Webinar Dry Run Admin Rep Recap Emails Post Webinar Dry Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-recap-emails/post-webinar/dry-run/{job_id}":{"get":{"tags":["admin-rep-recap-emails"],"summary":"Read Post Webinar Dry Run","operationId":"read_post_webinar_dry_run_admin_rep_recap_emails_post_webinar_dry_run__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Post Webinar Dry Run Admin Rep Recap Emails Post Webinar Dry Run  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-recap-emails/metrics":{"get":{"tags":["admin-rep-recap-emails"],"summary":"Read Metrics","operationId":"read_metrics_admin_rep_recap_emails_metrics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":120,"minimum":1,"default":14,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Metrics Admin Rep Recap Emails Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-recap-emails/voice-invite":{"post":{"tags":["admin-rep-recap-emails"],"summary":"Voice Invite","operationId":"voice_invite_admin_rep_recap_emails_voice_invite_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Voice Invite Admin Rep Recap Emails Voice Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/rep-recap-emails/{recap_id}":{"get":{"tags":["admin-rep-recap-emails"],"summary":"Read Recap","operationId":"read_recap_admin_rep_recap_emails__recap_id__get","parameters":[{"name":"recap_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Recap Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Recap Admin Rep Recap Emails  Recap Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events":{"post":{"tags":["admin-reader-events"],"summary":"Create Event","operationId":"create_event_admin_reader_events_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Event Admin Reader Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}":{"get":{"tags":["admin-reader-events"],"summary":"Get Event","operationId":"get_event_admin_reader_events__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Event Admin Reader Events  Event Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-reader-events"],"summary":"Update Event","operationId":"update_event_admin_reader_events__event_id__patch","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Event Admin Reader Events  Event Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/speakers":{"post":{"tags":["admin-reader-events"],"summary":"Add Speaker","operationId":"add_speaker_admin_reader_events__event_id__speakers_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Speaker Admin Reader Events  Event Id  Speakers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/guest-speakers":{"post":{"tags":["admin-reader-events"],"summary":"Add Guest Speaker","description":"A speaker with no Dictate project (GH #16513): shown publicly only after she signs.","operationId":"add_guest_speaker_admin_reader_events__event_id__guest_speakers_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestSpeakerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Guest Speaker Admin Reader Events  Event Id  Guest Speakers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/speakers/{speaker_id}":{"patch":{"tags":["admin-reader-events"],"summary":"Update Speaker","operationId":"update_speaker_admin_reader_events__event_id__speakers__speaker_id__patch","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Speaker Admin Reader Events  Event Id  Speakers  Speaker Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-reader-events"],"summary":"Remove Speaker","operationId":"remove_speaker_admin_reader_events__event_id__speakers__speaker_id__delete","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-sales/{slug}/vip-preview":{"get":{"tags":["admin-reader-event-sales"],"summary":"Vip Preview","operationId":"vip_preview_admin_reader_event_sales__slug__vip_preview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-sales/{slug}/page-preview":{"get":{"tags":["admin-reader-event-sales"],"summary":"Page Preview","operationId":"page_preview_admin_reader_event_sales__slug__page_preview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-sales/{slug}/watch-preview":{"get":{"tags":["admin-reader-event-sales"],"summary":"Watch Preview","operationId":"watch_preview_admin_reader_event_sales__slug__watch_preview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-report/{slug}":{"get":{"tags":["admin-reader-event-report"],"summary":"Event Report","operationId":"event_report_admin_reader_event_report__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Format"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-speakers/{slug}/speakers/{speaker_id}/agreement-preview":{"get":{"tags":["admin-reader-event-speakers"],"summary":"Speaker Agreement Preview","operationId":"speaker_agreement_preview_admin_reader_event_speakers__slug__speakers__speaker_id__agreement_preview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-speakers/{slug}/speakers/{speaker_id}/agreement-preview.pdf":{"get":{"tags":["admin-reader-event-speakers"],"summary":"Speaker Agreement Preview Pdf","operationId":"speaker_agreement_preview_pdf_admin_reader_event_speakers__slug__speakers__speaker_id__agreement_preview_pdf_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-speakers/{slug}/speakers/{speaker_id}/acceptance-link":{"post":{"tags":["admin-reader-event-speakers"],"summary":"Speaker Acceptance Link","description":"The speaker's own acceptance address, for staff to send. Refused (409) while the\nevent's invitations are on hold or the agreement version is not approved. Sends nothing.","operationId":"speaker_acceptance_link_admin_reader_event_speakers__slug__speakers__speaker_id__acceptance_link_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Speaker Acceptance Link Admin Reader Event Speakers  Slug  Speakers  Speaker Id  Acceptance Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-speakers/signed/{agreement_id}.pdf":{"get":{"tags":["admin-reader-event-speakers"],"summary":"Signed Speaker Agreement Pdf","description":"A signed agreement's stored PDF (the link in the speaker's GHL note).","operationId":"signed_speaker_agreement_pdf_admin_reader_event_speakers_signed__agreement_id__pdf_get","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-kits/{slug}/run-sheet":{"get":{"tags":["admin-reader-event-kits"],"summary":"Run Sheet","operationId":"run_sheet_admin_reader_event_kits__slug__run_sheet_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-kits/{slug}/speakers/{speaker_id}/invitation-preview":{"get":{"tags":["admin-reader-event-kits"],"summary":"Invitation Preview","operationId":"invitation_preview_admin_reader_event_kits__slug__speakers__speaker_id__invitation_preview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-kits/{slug}/speakers/{speaker_id}/kit-preview":{"get":{"tags":["admin-reader-event-kits"],"summary":"Kit Preview","operationId":"kit_preview_admin_reader_event_kits__slug__speakers__speaker_id__kit_preview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-event-kits/{slug}/speakers/{speaker_id}/send-invitation":{"post":{"tags":["admin-reader-event-kits"],"summary":"Send Invitation","operationId":"send_invitation_admin_reader_event_kits__slug__speakers__speaker_id__send_invitation_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Speaker Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendInvitation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Invitation Admin Reader Event Kits  Slug  Speakers  Speaker Id  Send Invitation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/reader-ses-events":{"post":{"tags":["reader-email"],"summary":"Reader Ses Events Webhook","operationId":"reader_ses_events_webhook_webhooks_reader_ses_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reader-portal/pages/assets/{name}":{"get":{"tags":["reader-portal"],"summary":"Portal Asset","description":"The brand fonts and marks on the portal's own host (slice 0): fonts must be same-origin.\nNo session, no cookie read, nothing written; the portal worker stamps its own headers.","operationId":"portal_asset_api_reader_portal_pages_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/reader-portal/pages/{path}":{"get":{"tags":["reader-portal"],"summary":"Portal Page","operationId":"portal_page_api_reader_portal_pages__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reader-portal/pages":{"get":{"tags":["reader-portal"],"summary":"Portal Page","operationId":"portal_page_api_reader_portal_pages_get","parameters":[{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reader-portal/session":{"post":{"tags":["reader-portal"],"summary":"Open Session","operationId":"open_session_api_reader_portal_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reader-portal/link":{"post":{"tags":["reader-portal"],"summary":"Request Link","operationId":"request_link_api_reader_portal_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__reader_portal__LinkBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reader-portal/join":{"post":{"tags":["reader-portal"],"summary":"Join","description":"A friend joins a line through a share link. Never opens a session or sets a cookie;\nthe answer is the same whether or not the address was already a reader.","operationId":"join_api_reader_portal_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reader-portal/signout":{"post":{"tags":["reader-portal"],"summary":"Sign Out","operationId":"sign_out_api_reader_portal_signout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reader-portal/choices":{"post":{"tags":["reader-portal"],"summary":"Save Choices","operationId":"save_choices_api_reader_portal_choices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoicesBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reader-portal/stop-all":{"post":{"tags":["reader-portal"],"summary":"Stop All","operationId":"stop_all_api_reader_portal_stop_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reader-portal/share-link":{"post":{"tags":["reader-portal"],"summary":"Share Link","description":"The signed-in reader's share link for a line she is on. A staff preview writes nothing.","operationId":"share_link_api_reader_portal_share_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reader-portal/issue-approve":{"post":{"tags":["reader-portal"],"summary":"Issue Approve","description":"The newsletter reviewer pressed Approve (GH #16513 N3). The signed review link is the\nonly credential; it approves exactly the content version it was minted for.","operationId":"issue_approve_api_reader_portal_issue_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-portal/preview-link":{"post":{"tags":["admin-reader-portal"],"summary":"Preview Link","operationId":"preview_link_admin_reader_portal_preview_link_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Link Admin Reader Portal Preview Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-issues/{issue_id}/request-review":{"post":{"tags":["admin-reader-issues"],"summary":"Request Review","operationId":"request_review_admin_reader_issues__issue_id__request_review_post","parameters":[{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Issue Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Review Admin Reader Issues  Issue Id  Request Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-issues/{issue_id}/preview-link":{"post":{"tags":["admin-reader-issues"],"summary":"Preview Link","operationId":"preview_link_admin_reader_issues__issue_id__preview_link_post","parameters":[{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Issue Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Link Admin Reader Issues  Issue Id  Preview Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-issues/{issue_id}/public-preview-link":{"post":{"tags":["admin-reader-issues"],"summary":"Public Preview Link","description":"A 24-hour link showing how this issue WOULD look as a public page (GH #16513 N4).","operationId":"public_preview_link_admin_reader_issues__issue_id__public_preview_link_post","parameters":[{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Issue Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Preview Link Admin Reader Issues  Issue Id  Public Preview Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-issues/{issue_id}/review-test":{"post":{"tags":["admin-reader-issues"],"summary":"Review Test","operationId":"review_test_admin_reader_issues__issue_id__review_test_post","parameters":[{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Issue Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Test Admin Reader Issues  Issue Id  Review Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-issues/{issue_id}/schedule":{"post":{"tags":["admin-reader-issues"],"summary":"Schedule","operationId":"schedule_admin_reader_issues__issue_id__schedule_post","parameters":[{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Issue Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Schedule Admin Reader Issues  Issue Id  Schedule Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/media":{"patch":{"tags":["admin-reader-event-media"],"summary":"Update Media","operationId":"update_media_admin_reader_events__event_id__media_patch","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__services__reader_event_media__MediaUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Media Admin Reader Events  Event Id  Media Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/youtube-embed":{"post":{"tags":["admin-reader-event-media"],"summary":"Repair Youtube Embed","description":"Run the live-embed keeper once for this event now (whatever the clock or the keeper's switch\nsays): read the video, turn embedding back on if it is off, read it back. Answers what it read\nand wrote; never changes privacy or the broadcast's state (GH #16513).","operationId":"repair_youtube_embed_admin_reader_events__event_id__youtube_embed_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Repair Youtube Embed Admin Reader Events  Event Id  Youtube Embed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/sessions":{"get":{"tags":["admin-reader-event-media"],"summary":"List Sessions","operationId":"list_sessions_admin_reader_events__event_id__sessions_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Sessions Admin Reader Events  Event Id  Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-reader-event-media"],"summary":"Add Session","operationId":"add_session_admin_reader_events__event_id__sessions_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Session Admin Reader Events  Event Id  Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/sessions/{session_id}/recording-upload":{"post":{"tags":["admin-reader-event-media"],"summary":"Recording Upload","operationId":"recording_upload_admin_reader_events__event_id__sessions__session_id__recording_upload_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIntent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recording Upload Admin Reader Events  Event Id  Sessions  Session Id  Recording Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/sessions/{session_id}/recording":{"post":{"tags":["admin-reader-event-media"],"summary":"Confirm Recording","operationId":"confirm_recording_admin_reader_events__event_id__sessions__session_id__recording_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Recording Admin Reader Events  Event Id  Sessions  Session Id  Recording Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/sessions/{session_id}/publish":{"post":{"tags":["admin-reader-event-media"],"summary":"Publish Replay","operationId":"publish_replay_admin_reader_events__event_id__sessions__session_id__publish_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Replay Admin Reader Events  Event Id  Sessions  Session Id  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/attendance":{"post":{"tags":["admin-reader-event-media"],"summary":"Import Attendance","description":"The Zoom participant report as the raw CSV body (``text/csv``), at most 2 MB.","operationId":"import_attendance_admin_reader_events__event_id__attendance_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Import Attendance Admin Reader Events  Event Id  Attendance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/sessions/{session_id}/speaker-attended":{"put":{"tags":["admin-reader-event-media"],"summary":"Mark Speaker Attended","description":"Staff mark that the session's speaker gave her talk, so the fee run records her fee (GH #16721).","operationId":"mark_speaker_attended_admin_reader_events__event_id__sessions__session_id__speaker_attended_put","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakerAttended"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Speaker Attended Admin Reader Events  Event Id  Sessions  Session Id  Speaker Attended Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/extras-readiness":{"get":{"tags":["admin-reader-event-media"],"summary":"Extras Readiness","description":"Read-only: which pass extras of this event can be delivered and which are missing, and\nwhether READER_EVENT_PASS_EXTRAS_READY may honestly be turned on (GH #16513).","operationId":"extras_readiness_admin_reader_events__event_id__extras_readiness_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Extras Readiness Admin Reader Events  Event Id  Extras Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/recording":{"get":{"tags":["admin-reader-event-recordings"],"summary":"Get Recording","description":"The recording's intake state and every talk's window and cut.","operationId":"get_recording_admin_reader_events__event_id__recording_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Recording Admin Reader Events  Event Id  Recording Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-reader-event-recordings"],"summary":"Register Recording","description":"The finished upload's ``r2_key``, or a Zoom ``source_url`` the worker pulls.","operationId":"register_recording_admin_reader_events__event_id__recording_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingRegister"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Recording Admin Reader Events  Event Id  Recording Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/recording/upload":{"post":{"tags":["admin-reader-event-recordings"],"summary":"Recording Upload","operationId":"recording_upload_admin_reader_events__event_id__recording_upload_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingUploadIntent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recording Upload Admin Reader Events  Event Id  Recording Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/sessions/{session_id}/talk-window":{"put":{"tags":["admin-reader-event-recordings"],"summary":"Set Talk Window","operationId":"set_talk_window_admin_reader_events__event_id__sessions__session_id__talk_window_put","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkWindow"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Talk Window Admin Reader Events  Event Id  Sessions  Session Id  Talk Window Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/replays/render":{"post":{"tags":["admin-reader-event-recordings"],"summary":"Render Replays","description":"Queue one replay render per talk with a cut (GH #16513 M2); the media worker renders.","operationId":"render_replays_admin_reader_events__event_id__replays_render_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Render Replays Admin Reader Events  Event Id  Replays Render Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/clips":{"post":{"tags":["admin-reader-event-recordings"],"summary":"Pick Clips","description":"Queue the clip pick for every talk with a cut (GH #16513 M3); workers pick and render.","operationId":"pick_clips_admin_reader_events__event_id__clips_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pick Clips Admin Reader Events  Event Id  Clips Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-reader-event-recordings"],"summary":"List Clips","description":"Every clip of the event with short-lived links to its video, thumbnail and quote card.","operationId":"list_clips_admin_reader_events__event_id__clips_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Clips Admin Reader Events  Event Id  Clips Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/extras":{"post":{"tags":["admin-reader-event-recordings"],"summary":"Build Extras","description":"Queue each talk's audio edition and written guide (GH #16513 M4); workers build them.","operationId":"build_extras_admin_reader_events__event_id__extras_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Build Extras Admin Reader Events  Event Id  Extras Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-reader-event-recordings"],"summary":"List Extras","description":"What has been built: per-talk audio and guides, and the leader's guide.","operationId":"list_extras_admin_reader_events__event_id__extras_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Extras Admin Reader Events  Event Id  Extras Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/recording/cut":{"post":{"tags":["admin-reader-event-recordings"],"summary":"Recut","operationId":"recut_admin_reader_events__event_id__recording_cut_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recut Admin Reader Events  Event Id  Recording Cut Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/share-kits":{"post":{"tags":["admin-reader-event-recordings"],"summary":"Build Share Kits","description":"Queue a share kit for every featured speaker with rendered clips (GH #16513 M5).","operationId":"build_share_kits_admin_reader_events__event_id__share_kits_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Build Share Kits Admin Reader Events  Event Id  Share Kits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-reader-event-recordings"],"summary":"List Share Kits","operationId":"list_share_kits_admin_reader_events__event_id__share_kits_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Share Kits Admin Reader Events  Event Id  Share Kits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-events/{event_id}/post-queue":{"post":{"tags":["admin-reader-event-recordings"],"summary":"Plan Post Queue","description":"Store the AuthorByline channel post plan from ``start`` (GH #16513 M5). Publishes nothing.","operationId":"plan_post_queue_admin_reader_events__event_id__post_queue_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostQueueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Plan Post Queue Admin Reader Events  Event Id  Post Queue Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-reader-event-recordings"],"summary":"List Post Queue","operationId":"list_post_queue_admin_reader_events__event_id__post_queue_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Post Queue Admin Reader Events  Event Id  Post Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-sampler/{line}":{"get":{"tags":["admin-reader-sampler"],"summary":"Preview","description":"The newest sampler of the line and a one-hour link to open it.","operationId":"preview_admin_reader_sampler__line__get","parameters":[{"name":"line","in":"path","required":true,"schema":{"type":"string","title":"Line"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Admin Reader Sampler  Line  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reader-sampler/{line}/rebuild":{"post":{"tags":["admin-reader-sampler"],"summary":"Rebuild","description":"Queue a rebuild (a stale sampler never outlives a do-not-feature flag).","operationId":"rebuild_admin_reader_sampler__line__rebuild_post","parameters":[{"name":"line","in":"path","required":true,"schema":{"type":"string","title":"Line"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rebuild Admin Reader Sampler  Line  Rebuild Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/authorbyline-channels/youtube-check":{"get":{"tags":["admin-reader-event-recordings"],"summary":"Youtube Check","description":"Read-only: the stored YouTube connection still opens the AuthorByline Faith channel.","operationId":"youtube_check_admin_authorbyline_channels_youtube_check_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}},{"name":"x-machine-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Machine-Actor"}},{"name":"x-admin-actor","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Actor"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Youtube Check Admin Authorbyline Channels Youtube Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/summit-kit/status":{"get":{"tags":["portal-summit-kit"],"summary":"Summit Kit Status","description":"Dark-fails-closed nav probe: enabled only when this book has a current kit.","operationId":"summit_kit_status_portal_summit_kit_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/portal/summit-kit/{project_id}":{"get":{"tags":["portal-summit-kit"],"summary":"Get Summit Kit","operationId":"get_summit_kit_portal_summit_kit__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","description":"Receive Stripe webhook events.\n\nReturns 200 immediately and enqueues a Celery task for processing.","operationId":"stripe_webhook_api_webhooks_stripe_post","parameters":[{"name":"stripe-signature","in":"header","required":true,"schema":{"type":"string","title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/smartlead/podcast-reply":{"post":{"tags":["webhooks"],"summary":"Smartlead Podcast Reply Webhook","description":"Master PodcastOps reply webhook (one endpoint, not per-client).\n\nGated on podcast_ops_enabled (404 when dark). Fails CLOSED: rejects unless the\nSmartlead signature / shared secret verifies. Stores the raw payload (idempotent\non X-Request-Id / content hash), then enqueues the reply processor. Returns 200\nfast; all AI/routing/auto-send happens in the Celery task.","operationId":"smartlead_podcast_reply_webhook_api_webhooks_smartlead_podcast_reply_post","parameters":[{"name":"x-smartlead-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Smartlead-Signature"}},{"name":"x-request-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Request-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/smartlead/guest-reply":{"post":{"tags":["webhooks"],"summary":"Smartlead Guest Reply Webhook","description":"Guest-prospecting reply webhook (Dictate's own sales motion).\n\nGated on guest_prospecting_enabled (404 when dark). Fails CLOSED on signature.\nDedups (X-Request-Id / content hash), then enqueues guest.process_reply. Only\nEMAIL_REPLY drives the pipeline. Returns 200 fast; classify/deliverable run async.","operationId":"smartlead_guest_reply_webhook_api_webhooks_smartlead_guest_reply_post","parameters":[{"name":"x-smartlead-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Smartlead-Signature"}},{"name":"x-request-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Request-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/smartlead/backlink-reply":{"post":{"tags":["webhooks"],"summary":"Smartlead Backlink Reply Webhook","description":"Backlink-outreach reply webhook (\"Dictate — Link Outreach\" campaign).\n\n404 while backlink_outreach_enabled is off. Authenticates FIRST (signature header or\nthe registered ?secret= param, constant-time) and fails closed when no secret is\nconfigured; only then parses. Dedups (X-Request-Id / content hash) and enqueues\nbacklink.process_reply. Duplicates and non-reply events return 200 after auth.","operationId":"smartlead_backlink_reply_webhook_api_webhooks_smartlead_backlink_reply_post","parameters":[{"name":"x-smartlead-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Smartlead-Signature"}},{"name":"x-request-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Request-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/agreement-signed":{"post":{"tags":["webhooks"],"summary":"Ghl Agreement Signed Webhook","description":"Receive a GHL 'document signed/completed' workflow webhook.\n\nFired by the Dictate GHL workflow (Documents & Contracts → Document\nCompleted trigger → custom webhook action). Authenticates BEFORE parsing\nvia the existing GHL inbound mechanism (signature OR shared\n``X-Webhook-Secret``); fails closed when no secret is configured. Enqueues\n``ghl.agreement_signed`` which posts the agreement (PDF when the token\nscope allows) to the CRSC #agreements-dictate channel and tags the rep.","operationId":"ghl_agreement_signed_webhook_api_webhooks_ghl_agreement_signed_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/lead-scoring":{"post":{"tags":["webhooks"],"summary":"Ghl Lead Scoring Webhook","description":"Receive a GHL Lead Quality workflow nudge and Slack-DM the assigned rep.\n\nFired by custom-webhook steps in the Lead Quality workflows (Calendar 1/2,\nSubmissions, escalation) alongside the existing rep emails. Authenticates\nBEFORE parsing (shared ``X-Webhook-Secret`` OR HMAC signature); fails\nclosed when no secret is configured. Enqueues ``ghl.lead_scoring_nudge``.","operationId":"ghl_lead_scoring_webhook_api_webhooks_ghl_lead_scoring_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/blueprint-outreach":{"post":{"tags":["webhooks"],"summary":"Ghl Blueprint Outreach Webhook","description":"Start Authority Blueprint AI outreach when a GHL workflow enrolls a lead.\n\nFired by a custom webhook step. Authenticates BEFORE parsing via the shared\nGHL inbound secret or HMAC signature. Acts only on ``source=blueprint_outreach``.","operationId":"ghl_blueprint_outreach_webhook_api_webhooks_ghl_blueprint_outreach_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/inbound-message":{"post":{"tags":["webhooks"],"summary":"Ghl Inbound Message Webhook","description":"Receive GHL InboundMessage events: outreach email replies, author texts, voicemails.\n\nLocation-level InboundMessage fires for any inbound SMS/email/call. Inbound\nemail on a contact with an active Blueprint email case gets an outreach\nreply (never via Resend). An inbound SMS is handed to a task that routes it\nto the inbound support responder only when the texter resolves to exactly\none active author project (a text to the rep's number must reach us the\nsame as a text to ours). An inbound call that went to voicemail (or was\nmissed) is queued for transcription and the support responder\n(VOICEMAIL_TO_TASK_ENABLED). Everything else is ignored.","operationId":"ghl_inbound_message_webhook_api_webhooks_ghl_inbound_message_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/outreach/call-booked":{"post":{"tags":["webhooks"],"summary":"Outreach Call Booked Webhook","description":"Receive a guest-prospecting 'call booked' event and enqueue the call-prep brief.\n\nFired (via n8n/GHL) when a prospect books their Silas call in the Dictate Cold\nOutreach pipeline. Authenticates BEFORE parsing, reusing the existing GHL inbound\nmechanism (``ghl_webhook_secret`` via signature OR the shared ``X-Webhook-Secret``\nheader) - fails closed when no secret is configured. Returns 200 fast and enqueues\n``guest.generate_call_prep_brief`` (which builds the AI outline + writes the GHL note).\nGated on ``guest_prospecting_enabled`` (404 when dark). The brief is INTERNAL only.","operationId":"outreach_call_booked_webhook_api_webhooks_outreach_call_booked_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/payva/{token}":{"post":{"tags":["webhooks"],"summary":"Payva Webhook","description":"Receive Payva financing webhook events.\n\nPayva sends NO authentication, so a secret token embedded in the URL path is\nthe sole authenticator (fail closed). The handler dedupes, persists every raw\npayload (including unparseable / non-dict bodies so samples are never lost),\nreturns 200 immediately, and enqueues a Celery task for processing.","operationId":"payva_webhook_api_webhooks_payva__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/booking":{"post":{"tags":["webhooks"],"summary":"Ghl Booking Webhook","description":"Receive GHL calendar booking webhooks.\n\nReturns 200 immediately and enqueues a Celery task for processing.","operationId":"ghl_booking_webhook_api_webhooks_ghl_booking_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/purchase":{"post":{"tags":["webhooks"],"summary":"Ghl Purchase Webhook","description":"Receive GHL SLO purchase webhooks ($7-$297 funnel).\n\nReturns 200 immediately and enqueues a Celery task for fulfillment.","operationId":"ghl_purchase_webhook_api_webhooks_ghl_purchase_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}},{"name":"X-Webhook-Secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/quiz":{"post":{"tags":["webhooks"],"summary":"Quiz Webhook","description":"Receive quiz completion events from external form platforms.\n\nReturns 200 immediately and enqueues async processing.\nDeduplicates by email + 5-minute window.\nRequires quiz_webhook_secret; returns 500 if not configured.\nReturns 200 on invalid-header rejection to prevent upstream retry storms.","operationId":"quiz_webhook_api_webhooks_quiz_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/telnyx/sms":{"post":{"tags":["webhooks"],"summary":"Telnyx Sms Webhook","description":"Receive inbound SMS and delivery status events from Telnyx.\n\nReturns 200 immediately and enqueues Celery tasks for processing.","operationId":"telnyx_sms_webhook_api_webhooks_telnyx_sms_post","parameters":[{"name":"telnyx-signature-ed25519","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Signature-Ed25519"}},{"name":"telnyx-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/telnyx/sms/failover":{"post":{"tags":["webhooks"],"summary":"Telnyx Sms Failover Webhook","description":"Failover webhook for Telnyx SMS — same logic, logs a warning.","operationId":"telnyx_sms_failover_webhook_api_webhooks_telnyx_sms_failover_post","parameters":[{"name":"telnyx-signature-ed25519","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Signature-Ed25519"}},{"name":"telnyx-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"Telnyx-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/twilio/sms":{"post":{"tags":["webhooks"],"summary":"Twilio Sms Webhook","description":"Receive inbound SMS from Twilio (form-encoded). Returns 200 + empty TwiML.\n\nUsed once SMS is cut over to the Twilio number so replies to the same number\nthat places calls are handled. Same STOP/HELP/pipeline routing as Telnyx.","operationId":"twilio_sms_webhook_api_webhooks_twilio_sms_post","parameters":[{"name":"x-twilio-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Twilio-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/resend":{"post":{"tags":["webhooks"],"summary":"Resend Inbound Webhook","description":"Receive inbound email from Resend.\n\nReturns 200 immediately and enqueues a Celery task for processing.","operationId":"resend_inbound_webhook_api_webhooks_resend_post","parameters":[{"name":"svix-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Id"}},{"name":"svix-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Timestamp"}},{"name":"svix-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resend Inbound Webhook Api Webhooks Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/gdrive":{"post":{"tags":["webhooks"],"summary":"Gdrive Webhook","description":"Receive Google Drive push notification.\n\nReturns 200 immediately and enqueues a Celery task for processing.\nGoogle sends minimal headers — actual content is fetched async.","operationId":"gdrive_webhook_api_webhooks_gdrive_post","parameters":[{"name":"x-goog-channel-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Channel-Id"}},{"name":"x-goog-resource-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Resource-Id"}},{"name":"x-goog-resource-state","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Resource-State"}},{"name":"x-goog-channel-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Channel-Token"}},{"name":"x-goog-message-number","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Goog-Message-Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/vapi":{"post":{"tags":["webhooks"],"summary":"Vapi Webhook","description":"Receive Vapi call events (started, ended, transcript ready).\n\nReturns 200 immediately and enqueues a Celery task for processing.\nInstruments all events with turn-level latency telemetry (Task 130).","operationId":"vapi_webhook_api_webhooks_vapi_post","parameters":[{"name":"x-vapi-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Vapi-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/lulu":{"post":{"tags":["webhooks"],"summary":"Lulu Webhook","description":"Receive Lulu print job status change events.\n\nReturns 200 immediately and enqueues a Celery task for processing.\nLulu webhook events: PRINT_JOB_STATUS_CHANGED\nRequires lulu_webhook_secret; returns 500 if not configured.","operationId":"lulu_webhook_api_webhooks_lulu_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/blueprint-watched":{"post":{"tags":["webhooks"],"summary":"Blueprint Watched Webhook","description":"Receive marketing blueprint watched events from GHL workflow.\n\nTriggered by Webinarkit → GHL tag → GHL workflow → webhook.\nUses same GHL HMAC signature verification pattern as booking webhook.\nReturns 200 immediately and enqueues async Celery task.\n\nSprint 93, Task 473.","operationId":"blueprint_watched_webhook_api_webhooks_blueprint_watched_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/backend-declined":{"post":{"tags":["webhooks"],"summary":"Ghl Backend Declined Webhook","description":"A rep picked \"Declined backend, start book\" — or ticked \"Manual Start\nOnboarding\" (``decision: \"manual_start\"``) — on the GHL contact.\n\nFired by the GHL Backend Decision workflow (docs/alfred-tasks/backend-declined-start-book-2026-09-22.md).\nSame shared-secret header as the other GHL workflow webhooks. Records the\ndecline, unlocks the author's interviews and tells them to book — all in\n``concierge.process_backend_declined``. Returns 200 once authenticated so\nGHL never retries a payload that cannot succeed; unmatched authors become\none Slack alert, never a silent drop.","operationId":"ghl_backend_declined_webhook_api_webhooks_ghl_backend_declined_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/funnel-purchase":{"post":{"tags":["webhooks"],"summary":"Ghl Funnel Purchase Webhook","description":"Receive GHL funnel purchase webhooks (replatformed funnel).\n\nReturns 200 immediately and enqueues a Celery task for fulfillment.\nDedupes via webhook_events table using provider='ghl_funnel' + dedupe_key.","operationId":"ghl_funnel_purchase_webhook_api_webhooks_ghl_funnel_purchase_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/ghl/portal-provision":{"post":{"tags":["webhooks"],"summary":"Ghl Portal Provision Webhook","description":"Sales-driven waiting-portal provisioning from a GHL workflow.\n\nContract (docs/waiting-portal/GHL-SETUP.md is the operator-facing spec):\n- Fail closed: 503 while waiting_portal_enabled is off (GHL retries once\n  the surface is live); 500 when no secret is configured; 400 on\n  missing/invalid signature.\n- Idempotent: dedupe key from the payload idempotency_key (fallback\n  contact_id:tier:target). Duplicates return 200 with no second enqueue.\n- Structurally invalid payloads (bad tier, missing email) return 200 and\n  are dropped with a WAITING_PROVISION_REJECTED ops alert — a GHL retry\n  of the same broken payload can never succeed, so we don't ask for one.\n- All real work happens in waiting_portal.process_provision (Celery);\n  the failure path is webhook_events mark_failed + admin replay, never a\n  silent drop.","operationId":"ghl_portal_provision_webhook_api_webhooks_ghl_portal_provision_post","parameters":[{"name":"x-ghl-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Ghl-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AboutAuthorBioRequest":{"properties":{"bio_text":{"type":"string","maxLength":6000,"minLength":1,"title":"Bio Text"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["bio_text"],"title":"AboutAuthorBioRequest","description":"POST /admin/clients/{project_id}/about-the-author.\n\n``bio_text`` is the author's own bio, printed verbatim on the book's About\nthe Author page (``app/services/about_the_author.py``)."},"AcceptExpertForewordRequest":{"properties":{"replace":{"type":"boolean","title":"Replace","default":false}},"additionalProperties":false,"type":"object","title":"AcceptExpertForewordRequest"},"AcceptExpertForewordResponse":{"properties":{"foreword":{"$ref":"#/components/schemas/ExpertForewordInvite"},"slot":{"$ref":"#/components/schemas/ForewordSlot"}},"type":"object","required":["foreword","slot"],"title":"AcceptExpertForewordResponse"},"AccountsRequest":{"properties":{"network":{"type":"string","enum":["facebook","instagram","linkedin","youtube","tiktok","tiktok-business"],"title":"Network"},"account_id":{"type":"string","maxLength":200,"minLength":1,"title":"Account Id"}},"additionalProperties":false,"type":"object","required":["network","account_id"],"title":"AccountsRequest"},"ActiveExperiment":{"properties":{"key":{"type":"string","maxLength":100,"title":"Key"},"surface":{"type":"string","maxLength":100,"title":"Surface"},"variants":{"items":{"$ref":"#/components/schemas/ExperimentVariant"},"type":"array","maxItems":20,"title":"Variants"},"config_version":{"type":"integer","title":"Config Version"},"render":{"anyOf":[{"$ref":"#/components/schemas/ExperimentRenderConfig"},{"type":"null"}]}},"type":"object","required":["key","surface","config_version"],"title":"ActiveExperiment","description":"Tiny public payload read at the edge (GET /api/experiments/active)."},"ActivityEvent":{"properties":{"kind":{"type":"string","enum":["section_seen","read_time","book_flipped","audio_played","next_step_clicked"],"title":"Kind"},"section":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^bp-[a-z0-9-]{1,36}$"},{"type":"null"}],"title":"Section"},"seconds":{"anyOf":[{"type":"integer","maximum":7200.0,"minimum":0.0},{"type":"null"}],"title":"Seconds"},"pages":{"anyOf":[{"type":"integer","maximum":300.0,"minimum":0.0},{"type":"null"}],"title":"Pages"},"depth":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Depth"},"via":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z0-9_-]+$"},{"type":"null"}],"title":"Via"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"ActivityEvent"},"ActivityRequest":{"properties":{"events":{"items":{"$ref":"#/components/schemas/ActivityEvent"},"type":"array","maxItems":40,"title":"Events"},"ga_client_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ga Client Id"}},"additionalProperties":false,"type":"object","title":"ActivityRequest"},"AddMaterialRequest":{"properties":{"raw_text":{"type":"string","maxLength":100000,"title":"Raw Text"},"source_channel":{"type":"string","enum":["portal","email","sms","onboarding","voice"],"title":"Source Channel","default":"portal"},"target_stage":{"type":"string","maxLength":100,"title":"Target Stage","default":"chapter_revision"},"target_chapter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Chapter"},"target_chapter_title":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Target Chapter Title"},"target_section":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Target Section"},"placement_notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Placement Notes"},"source_message_ref":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Source Message Ref"},"source_thread_ref":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Source Thread Ref"},"attachment_refs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":25,"title":"Attachment Refs"},"usage_intent":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Usage Intent"},"material_usage":{"anyOf":[{"additionalProperties":true,"type":"object","maxProperties":50},{"type":"null"}],"title":"Material Usage"},"replacement_intent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Replacement Intent Id"},"replacement_generation":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Replacement Generation"},"speaker_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Speaker Name"},"speaker_role":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Speaker Role"},"permission_confirmed":{"type":"boolean","title":"Permission Confirmed","default":false},"interview_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Interview Date"}},"type":"object","required":["raw_text"],"title":"AddMaterialRequest"},"AddMemberRequest":{"properties":{"ghl_user_id":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Ghl User Id"}},"type":"object","required":["ghl_user_id"],"title":"AddMemberRequest"},"AddTitleCandidateRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"subtitle":{"type":"string","maxLength":300,"title":"Subtitle","default":""},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"additionalProperties":false,"type":"object","required":["title"],"title":"AddTitleCandidateRequest","description":"An author-written title added to the candidate list (NOT a decision)."},"AddTitleCandidateResponse":{"properties":{"status":{"type":"string","enum":["added","duplicate"],"title":"Status"},"candidate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"count":{"type":"integer","title":"Count","default":0},"refresh_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Status"}},"type":"object","required":["status"],"title":"AddTitleCandidateResponse","description":"Result of adding an author candidate.\n\n``duplicate`` is a success, not an error: the title the author typed is\nalready on the list, and the existing candidate_id is returned so the UI can\nhighlight it."},"AddUrlMaterialRequest":{"properties":{"source_url":{"type":"string","maxLength":2048,"title":"Source Url"},"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""},"usage_intent":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Usage Intent"},"target_chapter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Chapter"},"target_section":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Target Section"},"placement_notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Placement Notes"},"visual_review_required":{"type":"boolean","title":"Visual Review Required","default":false},"replacement_intent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Replacement Intent Id"},"replacement_generation":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Replacement Generation"}},"type":"object","required":["source_url"],"title":"AddUrlMaterialRequest"},"AdminApplyCreditRequest":{"properties":{"amount_cents":{"type":"integer","maximum":10000000.0,"exclusiveMinimum":0.0,"title":"Amount Cents"},"ref":{"type":"string","maxLength":120,"minLength":3,"title":"Ref"},"note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["amount_cents","ref"],"title":"AdminApplyCreditRequest"},"AdminAsinsRecordRequest":{"properties":{"asins":{"items":{"$ref":"#/components/schemas/AplusAsinEntry"},"type":"array","maxItems":8,"minItems":1,"title":"Asins","description":"Per-format ASINs to record (a book has one ASIN per format)."},"force":{"type":"boolean","title":"Force","description":"Overwrite an existing format's conflicting ASIN (human override).","default":false}},"additionalProperties":false,"type":"object","required":["asins"],"title":"AdminAsinsRecordRequest","description":"Staff/admin request to record a book's per-format ASINs.\n\n``asins`` reuses :class:`AplusAsinEntry` validation (format + regex-checked\nASIN + apply/parent flags). Recording is ADDITIVE-ONLY: an existing format's\nASIN is never silently overwritten — a same-format/different-ASIN write is a\nconflict returned to the caller. ``force`` lets a human resolve a conflict by\noverwriting the existing value deliberately."},"AdminConsentReceipt":{"properties":{"statement_text":{"type":"string","title":"Statement Text"},"sha256":{"type":"string","title":"Sha256"},"typed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typed Name"},"recorded_at":{"type":"string","title":"Recorded At"},"source":{"type":"string","title":"Source"},"recorded_by":{"type":"string","title":"Recorded By"}},"type":"object","required":["statement_text","sha256","recorded_at","source","recorded_by"],"title":"AdminConsentReceipt"},"AdminConsentSummary":{"properties":{"choice":{"anyOf":[{"type":"string","enum":["opt_in","opt_out"]},{"type":"null"}],"title":"Choice"},"chosen_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chosen At"}},"type":"object","title":"AdminConsentSummary"},"AdminCreditRequest":{"properties":{"won_project_id":{"type":"string","format":"uuid","title":"Won Project Id"}},"additionalProperties":false,"type":"object","required":["won_project_id"],"title":"AdminCreditRequest"},"AdminGHLSetupRequest":{"properties":{"ghl_location_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Location Id"},"ghl_user_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl User Id"},"social_accounts_connected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Social Accounts Connected"}},"type":"object","title":"AdminGHLSetupRequest","description":"Ops-managed client publishing setup updates."},"AdminGrantRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"product_code":{"type":"string","maxLength":100,"minLength":1,"title":"Product Code"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["project_id","product_code"],"title":"AdminGrantRequest"},"AdminGrantResponse":{"properties":{"created":{"type":"boolean","title":"Created"}},"type":"object","required":["created"],"title":"AdminGrantResponse"},"AdminMarkPaidRequest":{"properties":{"reference":{"type":"string","maxLength":200,"minLength":3,"title":"Reference"}},"additionalProperties":false,"type":"object","required":["reference"],"title":"AdminMarkPaidRequest"},"AdminPartnerPatch":{"properties":{"status":{"anyOf":[{"type":"string","enum":["active","paused"]},{"type":"null"}],"title":"Status"},"role":{"anyOf":[{"type":"string","enum":["partner","manager"]},{"type":"null"}],"title":"Role"},"manager_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Manager Code"}},"additionalProperties":false,"type":"object","title":"AdminPartnerPatch"},"AdminPausedWorkflowsRequest":{"properties":{"paused_workflows":{"items":{"type":"string","maxLength":200},"type":"array","maxItems":25,"title":"Paused Workflows","description":"Exact GHL workflow names to exempt from the publish check."}},"type":"object","title":"AdminPausedWorkflowsRequest","description":"Snapshot workflows this client has deliberately paused.\n\nThe setup verifier fails a client's row while one of Dictate's own\n``DICTATE | ...`` workflows sits in Draft, because a draft workflow runs for\nnobody. Sometimes that is on purpose — a back-end client being onboarded by\nhand, an author who asked for one sequence to stay off — and re-opening the\ndecision every hour is noise, not safety. This records the exception by\nEXACT workflow name.\n\nSending the field replaces the whole list, so an empty list clears it. Only\n``DICTATE | ...`` names mean anything: the verifier ignores every other\nworkflow in the account, so listing one here changes nothing."},"AdminRetractMaterialRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"remove_derived_chapters":{"type":"boolean","title":"Remove Derived Chapters","default":false}},"type":"object","title":"AdminRetractMaterialRequest","description":"Staff-initiated removal on an author's behalf.\n\nNo typed word and no checkbox: the gate on this side is a NAMED actor (the\nroute refuses an anonymous one) plus the reason recorded on the ledger row,\nbecause the person clicking is not the person whose work is being removed."},"AdminRunProducerRequest":{"properties":{"referral_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Referral Id"}},"additionalProperties":false,"type":"object","title":"AdminRunProducerRequest"},"AdminSocialAsset":{"properties":{"label":{"type":"string","title":"Label"},"url":{"type":"string","title":"Url"}},"type":"object","required":["label","url"],"title":"AdminSocialAsset"},"AdminStatusRequest":{"properties":{"status":{"type":"string","enum":["submitted","intro_sent","booked","attended","won","lost","duplicate","ineligible"],"title":"Status"},"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["status"],"title":"AdminStatusRequest"},"AdminTestimonialHideResponse":{"properties":{"testimonial_id":{"type":"string","format":"uuid","title":"Testimonial Id"},"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["testimonial_id","hidden"],"title":"AdminTestimonialHideResponse"},"AdminTestimonialItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"headshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headshot Url"},"milestone":{"type":"string","enum":["first_interview","first_chapter","cover_approved","book_live","books_in_hand","anytime","silas_call"],"title":"Milestone"},"media_kind":{"type":"string","enum":["text","audio","video"],"title":"Media Kind"},"status":{"type":"string","enum":["awaiting_upload","received","processing","ready_for_author","approved","author_declined","not_usable","feedback_only","withdrawn","failed"],"title":"Status"},"ai_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ai Score"},"ai_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Verdict"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"quote_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Display"},"sales_angle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Angle"},"edited_for_clarity":{"type":"boolean","title":"Edited For Clarity","default":false},"disclosures":{"items":{"type":"string"},"type":"array","title":"Disclosures"},"clip_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clip Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"youtube_video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Video Id"},"public_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Url"},"created_at":{"type":"string","title":"Created At"},"approved_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Via"},"consent":{"$ref":"#/components/schemas/AdminConsentSummary"},"social_assets":{"items":{"$ref":"#/components/schemas/AdminSocialAsset"},"type":"array","title":"Social Assets"}},"type":"object","required":["id","project_id","milestone","media_kind","status","created_at","consent"],"title":"AdminTestimonialItem"},"AdminTestimonialListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminTestimonialItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AdminTestimonialListResponse"},"AdminTestimonialProofResponse":{"properties":{"testimonial":{"additionalProperties":true,"type":"object","title":"Testimonial"},"consent_receipt":{"anyOf":[{"$ref":"#/components/schemas/AdminConsentReceipt"},{"type":"null"}]},"audit_events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Audit Events"},"raw_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Url"}},"type":"object","required":["testimonial","audit_events"],"title":"AdminTestimonialProofResponse"},"AdmiredBookAddRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Author"},"cover_url":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Cover Url"},"open_library_key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Open Library Key"},"first_publish_year":{"anyOf":[{"type":"integer","maximum":2100.0,"minimum":0.0},{"type":"null"}],"title":"First Publish Year"},"link":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Link"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"AdmiredBookAddRequest","description":"Either a catalog pick (title + optional catalog fields) or a pasted link."},"AdmiredBookOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"title":{"type":"string","title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"first_publish_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Publish Year"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"suggestion_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggestion Reason"}},"type":"object","required":["id","status","title"],"title":"AdmiredBookOut"},"AdmiredBooksResponse":{"properties":{"books":{"items":{"$ref":"#/components/schemas/AdmiredBookOut"},"type":"array","title":"Books"},"suggestions":{"items":{"$ref":"#/components/schemas/AdmiredBookOut"},"type":"array","title":"Suggestions"},"from_questionnaire":{"items":{"type":"string"},"type":"array","title":"From Questionnaire"},"suggestions_pending":{"type":"boolean","title":"Suggestions Pending","default":false}},"type":"object","title":"AdmiredBooksResponse"},"AdoptRep":{"properties":{"existing_sales_rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Existing Sales Rep Id"},"existing_support_rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Existing Support Rep Id"}},"additionalProperties":false,"type":"object","title":"AdoptRep"},"AdsCoworkAsinEntry":{"properties":{"format":{"type":"string","maxLength":20,"title":"Format"},"asin":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[A-Za-z0-9]{10}$","title":"Asin"}},"additionalProperties":false,"type":"object","required":["format","asin"],"title":"AdsCoworkAsinEntry","description":"One per-format ASIN supplied with an ads cowork intake."},"AdsCoworkIntakeRequest":{"properties":{"variant":{"type":"string","enum":["amazon","facebook"],"title":"Variant","default":"amazon"},"kindle_asin":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Kindle Asin"},"paperback_asin":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Paperback Asin"},"asins":{"items":{"$ref":"#/components/schemas/AdsCoworkAsinEntry"},"type":"array","maxItems":6,"title":"Asins"},"monthly_budget_usd":{"type":"integer","maximum":100000.0,"minimum":150.0,"title":"Monthly Budget Usd"},"category":{"type":"string","maxLength":200,"minLength":1,"title":"Category"},"niche_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Niche Notes"},"marketplace":{"type":"string","maxLength":40,"title":"Marketplace","default":"amazon.com"},"generate":{"type":"boolean","title":"Generate","default":true}},"additionalProperties":false,"type":"object","required":["monthly_budget_usd","category"],"title":"AdsCoworkIntakeRequest","description":"Body for ``POST /admin/clients/{project_id}/ads-cowork/intake``.\n\nMirrors ``AdsCoworkIntake`` (the persisted intake model, which owns the\nbudget floor and ASIN normalisation) and adds the variant plus an optional\nbounded per-format ASIN list so a caller who copied the ASINs from the\n``/asins`` surface can pass them straight through. Explicit named fields\nwith bounds, never a bare dict, per the admin-route rule."},"AdvertisedOfferResponse":{"properties":{"regular_price_cents":{"type":"integer","title":"Regular Price Cents"},"webinar_price_cents":{"type":"integer","title":"Webinar Price Cents"},"installment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Installment Count"},"installment_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Installment Cents"},"installment_provider":{"anyOf":[{"type":"string","enum":["payva","stripe"]},{"type":"null"}],"title":"Installment Provider"}},"type":"object","required":["regular_price_cents","webinar_price_cents"],"title":"AdvertisedOfferResponse"},"AffordabilityRequest":{"properties":{"launch_bundle":{"type":"boolean","title":"Launch Bundle","default":false},"max_monthly_cents":{"type":"integer","maximum":50000.0,"minimum":10000.0,"title":"Max Monthly Cents"},"discount_type":{"type":"string","enum":["none","ministry","veteran","general"],"title":"Discount Type","default":"none"},"discount_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Discount Description"},"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false}},"type":"object","required":["max_monthly_cents"],"title":"AffordabilityRequest"},"AffordabilityResponse":{"properties":{"options":{"items":{"$ref":"#/components/schemas/PlanQuote"},"type":"array","title":"Options"}},"type":"object","required":["options"],"title":"AffordabilityResponse"},"AgreementAcceptRequest":{"properties":{"version":{"type":"string","maxLength":40,"minLength":1,"title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"AgreementAcceptRequest"},"AgreementBody":{"properties":{"version":{"type":"string","maxLength":40,"minLength":1,"title":"Version"},"typed_legal_name":{"type":"string","maxLength":120,"minLength":2,"title":"Typed Legal Name"},"accept":{"type":"boolean","const":true,"title":"Accept"}},"additionalProperties":false,"type":"object","required":["version","typed_legal_name","accept"],"title":"AgreementBody"},"AgreementSignRequest":{"properties":{"typed_name":{"type":"string","maxLength":200,"title":"Typed Name"},"consent":{"type":"boolean","const":true,"title":"Consent"}},"type":"object","required":["typed_name","consent"],"title":"AgreementSignRequest"},"AgreementSignResult":{"properties":{"status":{"type":"string","const":"signed","title":"Status"},"signed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed At"}},"type":"object","required":["status","signed_at"],"title":"AgreementSignResult"},"AgreementSignView":{"properties":{"status":{"type":"string","enum":["ready","signed","void"],"title":"Status"},"package_name":{"type":"string","title":"Package Name"},"client_name":{"type":"string","title":"Client Name"},"terms_lines":{"items":{"type":"string"},"type":"array","title":"Terms Lines"},"company_signer":{"$ref":"#/components/schemas/CompanySigner"},"pdf_url":{"type":"string","title":"Pdf Url"},"signed_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Pdf Url"},"signed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed At"},"consent_text":{"type":"string","title":"Consent Text"}},"type":"object","required":["status","package_name","client_name","terms_lines","company_signer","pdf_url","consent_text"],"title":"AgreementSignView"},"AiCourseBookGrantResponse":{"properties":{"start_url":{"type":"string","title":"Start Url"}},"type":"object","required":["start_url"],"title":"AiCourseBookGrantResponse"},"AiCourseBookGrantStatus":{"properties":{"available":{"type":"boolean","title":"Available"},"enrolled":{"type":"boolean","title":"Enrolled","default":false}},"type":"object","required":["available"],"title":"AiCourseBookGrantStatus"},"AiCourseCheckoutRequest":{"properties":{"tier":{"type":"string","maxLength":32,"minLength":1,"title":"Tier"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"}},"additionalProperties":false,"type":"object","required":["tier"],"title":"AiCourseCheckoutRequest","description":"Public checkout: the client sends a tier code, never a price id."},"AiCourseCheckoutResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"url":{"type":"string","title":"Url"}},"type":"object","required":["session_id","url"],"title":"AiCourseCheckoutResponse"},"AiCourseCheckoutStatus":{"properties":{"status":{"type":"string","enum":["pending","fulfilled","not_found"],"title":"Status"}},"type":"object","required":["status"],"title":"AiCourseCheckoutStatus"},"AiCourseCompletionResponse":{"properties":{"lesson_id":{"type":"string","title":"Lesson Id"},"completed":{"type":"boolean","title":"Completed"},"lessons_completed":{"type":"integer","title":"Lessons Completed"},"lessons_total":{"type":"integer","title":"Lessons Total"},"next_lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Lesson Id"}},"type":"object","required":["lesson_id","completed","lessons_completed","lessons_total"],"title":"AiCourseCompletionResponse"},"AiCourseLessonDetail":{"properties":{"id":{"type":"string","title":"Id"},"module_id":{"type":"string","title":"Module Id"},"module_title":{"type":"string","title":"Module Title"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"body_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Markdown"},"media":{"anyOf":[{"$ref":"#/components/schemas/AiCourseLessonMedia"},{"type":"null"}]},"completed":{"type":"boolean","title":"Completed","default":false},"previous_lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Lesson Id"},"next_lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Lesson Id"},"lesson_number":{"type":"integer","title":"Lesson Number"},"lessons_total":{"type":"integer","title":"Lessons Total"}},"type":"object","required":["id","module_id","module_title","title","lesson_number","lessons_total"],"title":"AiCourseLessonDetail"},"AiCourseLessonMedia":{"properties":{"video_url":{"type":"string","title":"Video Url"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"has_captions":{"type":"boolean","title":"Has Captions","default":false},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","required":["video_url"],"title":"AiCourseLessonMedia"},"AiCourseLessonSummary":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"completed":{"type":"boolean","title":"Completed","default":false},"has_video":{"type":"boolean","title":"Has Video","default":false}},"type":"object","required":["id","title"],"title":"AiCourseLessonSummary"},"AiCourseModule":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"lessons":{"items":{"$ref":"#/components/schemas/AiCourseLessonSummary"},"type":"array","title":"Lessons"}},"type":"object","required":["id","title","lessons"],"title":"AiCourseModule"},"AiCourseOverview":{"properties":{"course_title":{"type":"string","title":"Course Title"},"course_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Subtitle"},"learner_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Learner First Name"},"product_tier":{"type":"string","enum":["essentials","complete","premium"],"title":"Product Tier"},"has_coach":{"type":"boolean","title":"Has Coach"},"coach_access_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Coach Access Expires At"},"modules":{"items":{"$ref":"#/components/schemas/AiCourseModule"},"type":"array","title":"Modules"},"lessons_total":{"type":"integer","title":"Lessons Total"},"lessons_completed":{"type":"integer","title":"Lessons Completed"},"next_lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Lesson Id"},"resources":{"items":{"$ref":"#/components/schemas/AiCourseResourceSummary"},"type":"array","title":"Resources"}},"type":"object","required":["course_title","product_tier","has_coach","modules","lessons_total","lessons_completed","resources"],"title":"AiCourseOverview"},"AiCoursePublicConfig":{"properties":{"sales_enabled":{"type":"boolean","title":"Sales Enabled"},"tiers":{"items":{"$ref":"#/components/schemas/AiCourseTierInfo"},"type":"array","title":"Tiers"},"preview_lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Lesson Id"},"preview_poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Poster Url"},"preview_video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Video Url"},"preview_has_captions":{"type":"boolean","title":"Preview Has Captions","default":false},"lessons_total":{"type":"integer","title":"Lessons Total","default":0},"lessons_with_video":{"type":"integer","title":"Lessons With Video","default":0}},"type":"object","required":["sales_enabled","tiers"],"title":"AiCoursePublicConfig"},"AiCourseResendLinkRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"AiCourseResendLinkRequest"},"AiCourseResourceDetail":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"tier":{"type":"string","enum":["essentials","complete","premium"],"title":"Tier"},"body_markdown":{"type":"string","title":"Body Markdown"}},"type":"object","required":["slug","title","tier","body_markdown"],"title":"AiCourseResourceDetail"},"AiCourseResourceSummary":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"tier":{"type":"string","enum":["essentials","complete","premium"],"title":"Tier"},"unlocked":{"type":"boolean","title":"Unlocked"}},"type":"object","required":["slug","title","tier","unlocked"],"title":"AiCourseResourceSummary"},"AiCourseSessionRequest":{"properties":{"enrollment_id":{"type":"string","format":"uuid","title":"Enrollment Id"},"access_token":{"type":"string","maxLength":128,"minLength":16,"title":"Access Token"}},"additionalProperties":false,"type":"object","required":["enrollment_id","access_token"],"title":"AiCourseSessionRequest"},"AiCourseTierInfo":{"properties":{"code":{"type":"string","enum":["essentials","complete","premium"],"title":"Code"},"name":{"type":"string","title":"Name"},"price_cents":{"type":"integer","title":"Price Cents"}},"type":"object","required":["code","name","price_cents"],"title":"AiCourseTierInfo"},"AnthologyEditionCreate":{"properties":{"title":{"type":"string","maxLength":300,"title":"Title"},"title_style":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title Style"},"subtitle":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Subtitle"},"niche":{"type":"string","maxLength":120,"title":"Niche"},"imprint":{"type":"string","maxLength":120,"title":"Imprint","default":"Dictate Press"},"opening_chapter":{"anyOf":[{"type":"string","maxLength":60000},{"type":"null"}],"title":"Opening Chapter"},"closing_chapter":{"anyOf":[{"type":"string","maxLength":60000},{"type":"null"}],"title":"Closing Chapter"},"status":{"type":"string","enum":["casting","interviewing","compiling","published"],"title":"Status","default":"casting"},"target_guest_count":{"type":"integer","title":"Target Guest Count","default":20},"amazon_asin":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Amazon Asin"}},"type":"object","required":["title","niche"],"title":"AnthologyEditionCreate"},"AnthologyEditionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"title_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Style"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"niche":{"type":"string","title":"Niche"},"imprint":{"type":"string","title":"Imprint","default":"Dictate Press"},"opening_chapter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opening Chapter"},"closing_chapter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Chapter"},"status":{"type":"string","title":"Status","default":"casting"},"target_guest_count":{"type":"integer","title":"Target Guest Count","default":20},"amazon_asin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Asin"},"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","title","niche","created_at"],"title":"AnthologyEditionResponse"},"AnthologyGuestResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"edition_id":{"type":"string","format":"uuid","title":"Edition Id"},"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lead Id"},"guest_name":{"type":"string","title":"Guest Name"},"guest_email":{"type":"string","title":"Guest Email"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin"},"niche":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Niche"},"intake":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Intake"},"mini_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mini Bio"},"learn_more":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Learn More"},"contributor_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contributor Title"},"contributor_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contributor Link"},"headshot_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headshot R2 Key"},"prepared_questions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prepared Questions"},"zoom_meeting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zoom Meeting Id"},"recording_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Source"},"transcript_raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Raw"},"speaker_map":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Speaker Map"},"transcript_cleaned":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Cleaned"},"voice_dna":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Voice Dna"},"waiver_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Waiver Accepted At"},"waiver_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waiver Version"},"status":{"type":"string","title":"Status","default":"applied"},"converted_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Converted Project Id"},"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","edition_id","guest_name","guest_email","created_at"],"title":"AnthologyGuestResponse"},"AplusAsinEntry":{"properties":{"format":{"type":"string","maxLength":40,"minLength":1,"title":"Format","description":"Format label, e.g. Kindle. Must be non-blank."},"asin":{"type":"string","maxLength":10,"pattern":"^[A-Z0-9]{10}$","title":"Asin","description":"10-character Amazon ASIN (uppercase alphanumeric)."},"apply":{"type":"boolean","title":"Apply","description":"Attach this ASIN in KDP's product-family picker. A+ content applies to EVERY format of the book by default (Kindle, Paperback, and Audible when it exists); set false only to deliberately exclude a format.","default":true},"parent":{"type":"boolean","title":"Parent","description":"This is the parent ASIN of the family.","default":false}},"additionalProperties":false,"type":"object","required":["format","asin"],"title":"AplusAsinEntry","description":"One per-format ASIN for the A+ pack Apply-ASIN step."},"AplusCheckoutRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"success_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cancel Url"}},"type":"object","required":["project_id"],"title":"AplusCheckoutRequest","description":"Request for the paid Amazon A+ Content Pack add-on (existing project)."},"AplusPackTriggerRequest":{"properties":{"asin":{"anyOf":[{"type":"string","maxLength":10,"pattern":"^[A-Z0-9]{10}$"},{"type":"null"}],"title":"Asin","description":"10-character Amazon ASIN (uppercase alphanumeric)."},"asins":{"anyOf":[{"items":{"$ref":"#/components/schemas/AplusAsinEntry"},"type":"array","maxItems":8},{"type":"null"}],"title":"Asins","description":"Per-format ASINs (a book has one ASIN per format). Preferred over the single ``asin`` when the operator knows multiple formats. Only ``apply: true`` entries are attached in KDP's product-family picker."}},"additionalProperties":false,"type":"object","title":"AplusPackTriggerRequest","description":"Optional body for the A+ Content Pack trigger.\n\n``asin`` lets ops supply the live Amazon ASIN when they already know it (an\nASIN does not exist until Amazon publishes the book, so it is normally\nabsent). When present it is used as the pack/cowork ASIN instead of the\ncatalog lookup. ebook ASINs start ``B0``; print-book ASINs are ISBN-10s —\nboth are 10 uppercase alphanumerics. The validator uppercases the input."},"ApproveBody":{"properties":{"t":{"type":"string","maxLength":600,"minLength":20,"title":"T"}},"additionalProperties":false,"type":"object","required":["t"],"title":"ApproveBody"},"ApproveChapterRequest":{"properties":{"expected_draft_version":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Expected Draft Version"}},"additionalProperties":false,"type":"object","title":"ApproveChapterRequest","description":"Optional body of a chapter approval: the draft version the page showed (review F8).\n\nWith it, a page left open while the chapter was redrafted cannot approve text the\nauthor never saw: a newer draft answers 409 \"this chapter changed, please re-read\"."},"ApproveInvoiceRequest":{"properties":{"refund_credit_applications":{"items":{"$ref":"#/components/schemas/RefundCreditApplication"},"type":"array","maxItems":100,"title":"Refund Credit Applications"},"approved_amount_usd":{"type":"number","maximum":1000000.0,"minimum":-1000000.0,"title":"Approved Amount Usd"},"verification_run_id":{"type":"string","format":"uuid","title":"Verification Run Id"},"acknowledge_open_lines":{"type":"boolean","title":"Acknowledge Open Lines","default":false},"acknowledge_estimated_fees":{"type":"boolean","title":"Acknowledge Estimated Fees","default":false},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["approved_amount_usd","verification_run_id"],"title":"ApproveInvoiceRequest"},"ApproveMapRequest":{"properties":{"expected_map_version":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Expected Map Version"},"resolved_warnings":{"items":{"type":"string","maxLength":40},"type":"array","maxItems":200,"title":"Resolved Warnings"}},"type":"object","required":["expected_map_version"],"title":"ApproveMapRequest","description":"POST .../map/approve body — pins a map version + acknowledges warnings."},"ApprovePlayRequest":{"properties":{"decision":{"type":"string","enum":["approved","held"],"title":"Decision"},"how":{"type":"string","maxLength":300,"minLength":1,"title":"How"},"slack_channel":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Slack Channel"},"slack_ts":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Slack Ts"}},"additionalProperties":false,"type":"object","required":["decision","how"],"title":"ApprovePlayRequest"},"ApproveReorganizationRequest":{"properties":{"plan":{"anyOf":[{"additionalProperties":true,"type":"object","maxProperties":50},{"type":"null"}],"title":"Plan"}},"additionalProperties":true,"type":"object","title":"ApproveReorganizationRequest"},"ApproveReviewRequest":{"properties":{"tier":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tier"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"additionalProperties":false,"type":"object","title":"ApproveReviewRequest"},"ApproveTestimonialRequest":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Text"}},"additionalProperties":false,"type":"object","title":"ApproveTestimonialRequest","description":"``text`` is the shortened version the author wants to show, if she trims\nit. Omitted = the reader's exact words. Anything that is not a pure trim is\nrefused (``testimonial_edit_guard``)."},"ApprovedOfferMintRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"package_tier":{"type":"string","maxLength":64,"minLength":1,"title":"Package Tier"},"coupon_id":{"type":"string","maxLength":128,"minLength":1,"title":"Coupon Id"},"days":{"type":"integer","maximum":31.0,"minimum":1.0,"title":"Days","default":14}},"additionalProperties":false,"type":"object","required":["project_id","package_tier","coupon_id"],"title":"ApprovedOfferMintRequest"},"ApprovedOfferMintResponse":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"package_tier":{"type":"string","title":"Package Tier"},"coupon_id":{"type":"string","title":"Coupon Id"}},"type":"object","required":["url","expires_at","project_id","package_tier","coupon_id"],"title":"ApprovedOfferMintResponse"},"ArcConsentStatementView":{"properties":{"version":{"type":"string","title":"Version"},"sha256":{"type":"string","title":"Sha256"},"intro":{"type":"string","title":"Intro"},"over_18_label":{"type":"string","title":"Over 18 Label"},"website_label":{"type":"string","title":"Website Label"},"name_photo_label":{"type":"string","title":"Name Photo Label"},"withdraw_note":{"type":"string","title":"Withdraw Note"}},"type":"object","required":["version","sha256","intro","over_18_label","website_label","name_photo_label","withdraw_note"],"title":"ArcConsentStatementView"},"ArcLaunchMessage":{"properties":{"email_subject":{"type":"string","title":"Email Subject"},"email_body":{"type":"string","title":"Email Body"},"sms_body":{"type":"string","title":"Sms Body"}},"type":"object","required":["email_subject","email_body","sms_body"],"title":"ArcLaunchMessage"},"ArcLaunchPack":{"properties":{"ready":{"type":"boolean","title":"Ready"},"amazon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url"},"disclosure_line":{"type":"string","title":"Disclosure Line"},"standard":{"$ref":"#/components/schemas/ArcLaunchMessage"},"insider":{"$ref":"#/components/schemas/ArcLaunchMessage"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["ready","disclosure_line","standard","insider","notes"],"title":"ArcLaunchPack"},"ArcNote":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"chapter_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chapter Title"},"kind":{"type":"string","enum":["comment","suggestion"],"title":"Kind"},"exact_quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exact Quote"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","status","created_at"],"title":"ArcNote"},"ArcReaderTestimonialState":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["submitted","approved","hidden","withdrawn","superseded"],"title":"Status"},"text":{"type":"string","title":"Text"},"display_name":{"type":"string","title":"Display Name"},"has_photo":{"type":"boolean","title":"Has Photo","default":false},"consent_website":{"type":"boolean","title":"Consent Website","default":false},"consent_name_photo":{"type":"boolean","title":"Consent Name Photo","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","text","display_name","created_at"],"title":"ArcReaderTestimonialState"},"ArcReaderView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reader_name":{"type":"string","title":"Reader Name"},"reader_email":{"type":"string","title":"Reader Email"},"relationship":{"anyOf":[{"type":"string","enum":["family","friend","colleague","client","other"]},{"type":"null"}],"title":"Relationship"},"mode":{"type":"string","enum":["view","comment"],"title":"Mode"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"first_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Opened At"},"last_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Viewed At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"ended":{"type":"boolean","title":"Ended","default":false},"chapters_read":{"type":"integer","title":"Chapters Read","default":0},"furthest_chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Furthest Chapter Number"},"total_chapters":{"type":"integer","title":"Total Chapters","default":0},"notes_count":{"type":"integer","title":"Notes Count","default":0},"notes":{"items":{"$ref":"#/components/schemas/ArcNote"},"type":"array","title":"Notes","default":[]},"testimonial":{"anyOf":[{"$ref":"#/components/schemas/ArcTestimonialView"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","reader_name","reader_email","mode","created_at"],"title":"ArcReaderView"},"ArcReadersOverview":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"eligible":{"type":"boolean","title":"Eligible"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"closes_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closes At"},"total_chapters":{"type":"integer","title":"Total Chapters","default":0},"readers":{"items":{"$ref":"#/components/schemas/ArcReaderView"},"type":"array","title":"Readers"},"site_praise_count":{"type":"integer","title":"Site Praise Count","default":0}},"type":"object","required":["enabled","eligible","readers"],"title":"ArcReadersOverview"},"ArcTestimonialView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["submitted","approved","hidden","withdrawn","superseded"],"title":"Status"},"text":{"type":"string","title":"Text"},"approved_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Text"},"display_name":{"type":"string","title":"Display Name"},"display_name_choice":{"type":"string","enum":["full_name","first_name_last_initial","early_reader"],"title":"Display Name Choice"},"consent_website":{"type":"boolean","title":"Consent Website"},"consent_name_photo":{"type":"boolean","title":"Consent Name Photo"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"can_approve":{"type":"boolean","title":"Can Approve","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","text","display_name","display_name_choice","consent_website","consent_name_photo","created_at"],"title":"ArcTestimonialView"},"ArchiveSalesPlanOfferResponse":{"properties":{"offer":{"$ref":"#/components/schemas/SalesPlanOfferResponse"}},"type":"object","required":["offer"],"title":"ArchiveSalesPlanOfferResponse","description":"The withdrawn offer, re-rendered so the rep's list updates in place."},"AskSilasRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"route_context":{"type":"string","enum":["dashboard","interviews","chapters","covers","deliverables","publishing","voice_dna","materials","current_step"],"title":"Route Context","default":"dashboard"},"scoped_object_ref":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Scoped Object Ref"}},"additionalProperties":false,"type":"object","required":["conversation_id","message"],"title":"AskSilasRequest","description":"Author message turn. No project_id — derived from the auth token only."},"AskSilasResponse":{"properties":{"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"message_id":{"type":"string","format":"uuid","title":"Message Id"},"saved":{"type":"boolean","title":"Saved","default":true},"rate_limited":{"type":"boolean","title":"Rate Limited","default":false},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["message_id"],"title":"AskSilasResponse"},"AssetReviewsBody":{"properties":{"asset_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Asset Ids"},"status":{"type":"string","enum":["approved","retired","draft"],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["asset_ids","status"],"title":"AssetReviewsBody"},"AssetUrlResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"},"mime_type":{"type":"string","title":"Mime Type","default":"image/png"}},"type":"object","required":["download_url"],"title":"AssetUrlResponse","description":"A short-lived presigned URL for one placement asset (BFF proxy input)."},"AttachAgreementRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"type":"object","required":["project_id"],"title":"AttachAgreementRequest"},"AttachRequest":{"properties":{"network":{"type":"string","enum":["facebook","instagram","linkedin","youtube","tiktok","tiktok-business"],"title":"Network"},"account_id":{"type":"string","maxLength":200,"minLength":1,"title":"Account Id"},"origin_id":{"type":"string","maxLength":200,"minLength":1,"title":"Origin Id"}},"additionalProperties":false,"type":"object","required":["network","account_id","origin_id"],"title":"AttachRequest"},"AttestPayoutRequest":{"properties":{"verification_run_id":{"type":"string","format":"uuid","title":"Verification Run Id"},"payout_amount_usd":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Payout Amount Usd"},"payout_date":{"type":"string","format":"date","title":"Payout Date"},"reference":{"type":"string","maxLength":200,"minLength":1,"title":"Reference"},"artifact_r2_key":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Artifact R2 Key"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["verification_run_id","payout_amount_usd","payout_date","reference"],"title":"AttestPayoutRequest"},"AudioApprovalRequest":{"properties":{"expected_rendered_script_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Rendered Script Hash"},"expected_rendered_audio_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Rendered Audio Sha256"},"ai_disclosure":{"type":"boolean","const":true,"title":"Ai Disclosure"}},"additionalProperties":false,"type":"object","required":["expected_rendered_script_hash","expected_rendered_audio_sha256","ai_disclosure"],"title":"AudioApprovalRequest"},"AudioFileRequest":{"properties":{"voice":{"type":"string","enum":["bright_female","warm_female","deep_male","calm_male","neutral"],"title":"Voice","default":"bright_female"},"email":{"type":"boolean","title":"Email","default":false}},"additionalProperties":false,"type":"object","title":"AudioFileRequest"},"AudioRevisionRecoveryRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"revision_request_id":{"type":"string","format":"uuid","title":"Revision Request Id"},"expected_rejected_script_hash":{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Rejected Script Hash"},"expected_rejected_audio_sha256":{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Rejected Audio Sha256"},"recovery_mode":{"type":"string","enum":["rerender_approved_script","revise_script"],"title":"Recovery Mode"},"author_request_reviewed":{"type":"boolean","const":true,"title":"Author Request Reviewed"},"provider_history_absence_verified":{"type":"boolean","title":"Provider History Absence Verified","default":false}},"additionalProperties":false,"type":"object","required":["project_id","revision_request_id","expected_rejected_script_hash","expected_rejected_audio_sha256","recovery_mode","author_request_reviewed"],"title":"AudioRevisionRecoveryRequest"},"AudioRevisionRequest":{"properties":{"expected_rendered_script_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Rendered Script Hash"},"expected_rendered_audio_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Rendered Audio Sha256"},"issues":{"anyOf":[{"items":{"$ref":"#/components/schemas/PodcastAudioRevisionIssue"},"type":"array","maxItems":10,"minItems":1},{"type":"null"}],"title":"Issues"},"reason_code":{"anyOf":[{"type":"string","enum":["pronunciation","pacing","tone","voice","content","technical","other"]},{"type":"null"}],"title":"Reason Code"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","required":["expected_rendered_script_hash","expected_rendered_audio_sha256"],"title":"AudioRevisionRequest"},"AudioSampleTitleUpdate":{"properties":{"sample_title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Sample Title"}},"additionalProperties":false,"type":"object","title":"AudioSampleTitleUpdate","description":"The label shown on the audiobook-sample player. The audio FILE itself is\nuploaded via the separate multipart endpoint; this only sets the title."},"AudiobookAcxAccountUpdate":{"properties":{"status":{"type":"string","enum":["created","not_yet","need_help"],"title":"Status"}},"additionalProperties":false,"type":"object","required":["status"],"title":"AudiobookAcxAccountUpdate","description":"The author telling us whether their own ACX account exists yet."},"AudiobookBookNarrator":{"properties":{"narrator_slug":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9-]+$","title":"Narrator Slug"}},"additionalProperties":false,"type":"object","required":["narrator_slug"],"title":"AudiobookBookNarrator","description":"Staff booking one of the author's picks."},"AudiobookCandidateUpdate":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"availability":{"anyOf":[{"type":"string","enum":["unknown","available","unavailable","no_reply"]},{"type":"null"}],"title":"Availability"},"quoted_total_usd":{"anyOf":[{"type":"number","maximum":5000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Quoted Total Usd"},"earliest_start":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Earliest Start"},"payment_method":{"anyOf":[{"type":"string","enum":["quickbooks","paypal","zelle","venmo","wise","check","other"]},{"type":"null"}],"title":"Payment Method"},"payment_handle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Payment Handle"},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","title":"AudiobookCandidateUpdate","description":"A picked narrator's reply: available or not, price, dates, how to pay."},"AudiobookCheckoutRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"success_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cancel Url"}},"type":"object","required":["project_id"],"title":"AudiobookCheckoutRequest","description":"Request for the post-purchase AI Audiobook add-on (existing project)."},"AudiobookCommitment":{"properties":{"project_id":{"type":"string","title":"Project Id"},"client_name":{"type":"string","title":"Client Name","default":""},"sold_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Sold On"},"book_stage":{"type":"string","title":"Book Stage","default":""},"status":{"type":"string","enum":["open","fulfilled","cancelled"],"title":"Status","default":"open"},"status_source":{"type":"string","enum":["auto","manual"],"title":"Status Source","default":"auto"},"note":{"type":"string","title":"Note","default":""},"cost_cents":{"type":"integer","title":"Cost Cents","default":0},"cost_source":{"type":"string","enum":["bill","agreed","default"],"title":"Cost Source","default":"default"}},"type":"object","required":["project_id"],"title":"AudiobookCommitment","description":"One sold audiobook and the voice-talent cost still owed on it."},"AudiobookCoverFeedback":{"properties":{"note":{"type":"string","maxLength":500,"minLength":3,"title":"Note"}},"additionalProperties":false,"type":"object","required":["note"],"title":"AudiobookCoverFeedback","description":"The author asking for a change to their square audiobook cover."},"AudiobookCoverRegenerate":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"AudiobookCoverRegenerate","description":"Staff asking for a fresh square cover, optionally with a design note."},"AudiobookKindleLiveUpdate":{"properties":{"amazon_url":{"type":"string","maxLength":500,"minLength":10,"title":"Amazon Url"}},"additionalProperties":false,"type":"object","required":["amazon_url"],"title":"AudiobookKindleLiveUpdate","description":"The author confirming their Kindle book is live, with its Amazon link."},"AudiobookNarratorAvailability":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["available"],"title":"AudiobookNarratorAvailability","description":"Staff marking a narrator unavailable (or available again). The profile stays."},"AudiobookNarratorChoice":{"properties":{"narrator_slug":{"anyOf":[{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9-]+$"},{"type":"null"}],"title":"Narrator Slug"},"narrator_slugs":{"anyOf":[{"items":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9-]+$"},"type":"array","maxItems":3,"minItems":1},{"type":"null"}],"title":"Narrator Slugs"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"AudiobookNarratorChoice","description":"The author choosing a narrator from the Dictate narrator team.\n\n``extra=\"forbid\"``: an author-facing write that books voice talent."},"AudiobookOpsUpdate":{"properties":{"assignee_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Assignee Email"},"clear_assignee":{"type":"boolean","title":"Clear Assignee","default":false},"narrator_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Narrator Email"},"payment_method":{"anyOf":[{"type":"string","enum":["quickbooks","paypal","zelle","venmo","wise","check","other"]},{"type":"null"}],"title":"Payment Method"},"payment_handle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Payment Handle"},"agreed_total_usd":{"anyOf":[{"type":"number","maximum":5000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Agreed Total Usd"},"paid_amount_usd":{"anyOf":[{"type":"number","maximum":5000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Paid Amount Usd"},"payment_reference":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Payment Reference"},"live_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Live Url"},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Notes"},"complete":{"items":{"type":"string","enum":["narrator_chosen","quote_requested","narrator_confirmed","price_agreed","vendor_setup","w9_on_file","kindle_live","acx_account_ready","setup_call_booked","order_placed","narrator_accepted","kickoff_sent","checkpoint_approved","final_approved","bill_created","narrator_paid","live"]},"type":"array","maxItems":17,"title":"Complete"},"reopen":{"items":{"type":"string","enum":["narrator_chosen","quote_requested","narrator_confirmed","price_agreed","vendor_setup","w9_on_file","kindle_live","acx_account_ready","setup_call_booked","order_placed","narrator_accepted","kickoff_sent","checkpoint_approved","final_approved","bill_created","narrator_paid","live"]},"type":"array","maxItems":17,"title":"Reopen"}},"additionalProperties":false,"type":"object","title":"AudiobookOpsUpdate","description":"One staff edit to an audiobook order. Every field optional; named, bounded."},"AudiobookRequestCreate":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"AudiobookRequestCreate","description":"An author asking for their (human-narrated) audiobook.\n\n``extra=\"forbid\"`` on purpose: this body reaches a durable record a human\nreads before booking voice talent, so an unexpected field is a bug worth a\n422, not something to silently carry along."},"AudiobookSampleRejectRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"AudiobookSampleRejectRequest","description":"Request body for rejecting an audiobook sample (re-record)."},"AudiobookStatusUpdate":{"properties":{"status":{"type":"string","enum":["acknowledged","in_production","delivered","cancelled"],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"expected_status":{"anyOf":[{"type":"string","enum":["requested","acknowledged","in_production"]},{"type":"null"}],"title":"Expected Status"}},"type":"object","required":["status"],"title":"AudiobookStatusUpdate","description":"Admin transition for a paid audiobook request (issue #3649).\n\nExplicit named fields with bounds — never a bare dict, per the project's\nauthor-facing/admin route rule."},"AuthorAwayWindowRequest":{"properties":{"first_day":{"type":"string","format":"date","title":"First Day"},"last_day":{"type":"string","format":"date","title":"Last Day"},"author_text":{"type":"string","maxLength":2000,"title":"Author Text","default":""},"source_ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Source Ref"}},"additionalProperties":false,"type":"object","required":["first_day","last_day"],"title":"AuthorAwayWindowRequest","description":"Staff: schedule an author's away window (GH #12229).\n\nReminders and stall notices wait from the start of ``first_day`` to the end\nof ``last_day`` (Eastern). No message is held and no book work stops."},"AuthorCommsPauseRequest":{"properties":{"action":{"type":"string","enum":["pause","lift"],"title":"Action"},"days":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Days"},"until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"},"reason":{"type":"string","maxLength":500,"title":"Reason","default":""},"let_through":{"anyOf":[{"items":{"type":"string","enum":["support_call_reminder_1h","support_call_reminder_24h"]},"type":"array","maxItems":2},{"type":"null"}],"title":"Let Through"}},"additionalProperties":false,"type":"object","required":["action"],"title":"AuthorCommsPauseRequest","description":"Staff: set, extend or lift an author's communications pause (2026-10-12).\n\n``pause`` starts one (or extends the active one) for ``days`` (default 14)\nor until ``until``; ``lift`` ends it now. ``reason`` is the audit trail."},"AuthorConfirmations":{"properties":{"phone":{"type":"boolean","title":"Phone","default":false},"timezone":{"type":"boolean","title":"Timezone","default":false},"byline":{"type":"boolean","title":"Byline","default":false},"details_confirmed":{"type":"boolean","title":"Details Confirmed","default":false}},"type":"object","title":"AuthorConfirmations","description":"Day-1 confirmation flags (onboarding upgrade Phase 1, frozen contract).\n\nDerived from author_profiles.*_confirmed_at; ``details_confirmed`` is true\nonly when phone, timezone, AND byline are all confirmed — the wizard uses\nit to skip the confirm-details step for returning authors (P1-F)."},"AuthorConsentRequest":{"properties":{"accepted":{"type":"boolean","const":true,"title":"Accepted"},"consent_version":{"type":"string","const":"podcast_voice_clone_consent_v1","title":"Consent Version"}},"additionalProperties":false,"type":"object","required":["accepted","consent_version"],"title":"AuthorConsentRequest"},"AuthorFromProjectRequest":{"properties":{"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"book_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Book Title"},"calendar_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Calendar Url"},"media_kit_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Media Kit Url"}},"additionalProperties":false,"type":"object","title":"AuthorFromProjectRequest","description":"Onboard a PodcastOps author from an existing Dictate project.\n\nThe source is always the client's own linked project. project_id, if given, is an\noptional assertion that must equal the client's linked project_id (a mismatch is\nrejected) — it never selects a different project. The optional overrides win over\nvalues derived from the project's dossier/outline."},"AuthorInputHint":{"properties":{"request_type":{"type":"string","title":"Request Type"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"cta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta"},"satisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Satisfied"},"last_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Requested At"},"reminder_count":{"type":"integer","title":"Reminder Count","default":0}},"type":"object","required":["request_type"],"title":"AuthorInputHint","description":"The portal CTA for an item that waits on the author (Track 3 D).\n\nProduced by ``author_input_registry.action_hint``. ``request_type`` is the\nregistry key Track 2's \"Request from author\" flow sends, so the two can\nnever drift. For a legacy, non-registry ``author_action`` only\n``request_type`` is set and ``satisfied`` is null."},"AuthorMilestoneRequest":{"properties":{"step":{"type":"string","enum":["intro","web_class","choose_path"],"title":"Step"}},"type":"object","required":["step"],"title":"AuthorMilestoneRequest","description":"Author self-stamp for non-verifiable steps only."},"AuthorNamingFlag":{"properties":{"kind":{"type":"string","enum":["coined","suggested"],"title":"Kind"},"name":{"type":"string","title":"Name"},"note":{"type":"string","title":"Note"}},"type":"object","required":["kind","name","note"],"title":"AuthorNamingFlag","description":"A name in the outline that is the author's call (QA 2026-10-13).\n\n``coined``: the outline uses a framework/method name or acronym that is not\nin anything she gave us. ``suggested``: the planner's proposed name for the\nbook's structure, not used in the outline. See\napp/services/outline_naming_flags.py."},"AuthorPathwayResponse":{"properties":{"primary_goal":{"anyOf":[{"type":"string","enum":["published_author","leads_for_business","build_business","all_of_it"]},{"type":"null"}],"title":"Primary Goal"},"business_stage":{"anyOf":[{"type":"string","enum":["no_business_yet","solo_practice","small_team","established_team"]},{"type":"null"}],"title":"Business Stage"},"support_capacity":{"anyOf":[{"type":"string","enum":["just_me","smart_va","some_help","full_team"]},{"type":"null"}],"title":"Support Capacity"},"offer_readiness":{"anyOf":[{"type":"string","enum":["selling_now","building_it","nothing_yet"]},{"type":"null"}],"title":"Offer Readiness"},"anything_else":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Anything Else"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"video_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Video Url"}},"type":"object","title":"AuthorPathwayResponse","description":"GET contract — the AUTHOR-FACING prefill shape.\n\nDeliberately excludes ``likely_package_fit``. Do not add it. All five answer\nfields are nullable so an un-started questionnaire round-trips as empty."},"AuthorPathwaySubmit":{"properties":{"primary_goal":{"type":"string","enum":["published_author","leads_for_business","build_business","all_of_it"],"title":"Primary Goal"},"business_stage":{"type":"string","enum":["no_business_yet","solo_practice","small_team","established_team"],"title":"Business Stage"},"support_capacity":{"type":"string","enum":["just_me","smart_va","some_help","full_team"],"title":"Support Capacity"},"offer_readiness":{"type":"string","enum":["selling_now","building_it","nothing_yet"],"title":"Offer Readiness"},"anything_else":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Anything Else"}},"type":"object","required":["primary_goal","business_stage","support_capacity","offer_readiness"],"title":"AuthorPathwaySubmit","description":"PUT body — explicit named fields only (no dict passthrough).\n\nThe four enum answers are REQUIRED: a partial submission would compute a\npackage fit from missing signal, and the rep would read a confident-looking\nrecommendation built on nothing."},"AuthorProfileResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"preferred_byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Byline"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"transcription_terms":{"items":{"type":"string"},"type":"array","title":"Transcription Terms"},"kdp_account_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kdp Account Status"},"phone_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Phone Confirmed At"},"timezone_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timezone Confirmed At"},"byline_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Byline Confirmed At"},"sms_transactional_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Transactional Consent"},"sms_transactional_consent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Transactional Consent At"},"sms_marketing_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Marketing Consent"},"sms_marketing_consent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Marketing Consent At"},"ai_recording_consent_requested":{"type":"boolean","title":"Ai Recording Consent Requested","default":false},"ai_recording_consent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ai Recording Consent At"}},"type":"object","required":["project_id"],"title":"AuthorProfileResponse","description":"GET/PUT /onboarding/profile/{project_id} response (frozen contract).\n\nGET prefills phone/byline from the Stripe-sourced project row when the\nauthor has not confirmed their own values yet."},"AuthorProfileSubmit":{"properties":{"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"phone_confirmed":{"type":"boolean","title":"Phone Confirmed","default":false},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"timezone_confirmed":{"type":"boolean","title":"Timezone Confirmed","default":false},"preferred_byline":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Preferred Byline"},"byline_confirmed":{"type":"boolean","title":"Byline Confirmed","default":false},"website_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Website Url"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Linkedin Url"},"transcription_terms":{"anyOf":[{"items":{"type":"string","maxLength":120},"type":"array","maxItems":100},{"type":"null"}],"title":"Transcription Terms"},"kdp_account_status":{"anyOf":[{"type":"string","enum":["yes","no","unsure"]},{"type":"null"}],"title":"Kdp Account Status"},"sms_transactional_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Transactional Consent"},"sms_marketing_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Marketing Consent"},"ai_recording_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Recording Consent"}},"type":"object","title":"AuthorProfileSubmit","description":"Day-1 confirm screen submission (frozen Phase 1 contract).\n\n``*_confirmed`` flags mean the author explicitly said \"yes, this is\ncorrect\" — they drive the ``*_confirmed_at`` stamps and gate the\nauthors.primary_phone enrichment."},"AuthorProgressHoldRequest":{"properties":{"action":{"type":"string","enum":["hold","release"],"title":"Action"},"chapter_numbers":{"items":{"type":"integer"},"type":"array","maxItems":60,"title":"Chapter Numbers"},"author_text":{"type":"string","maxLength":2000,"title":"Author Text","default":""}},"additionalProperties":false,"type":"object","required":["action"],"title":"AuthorProgressHoldRequest","description":"Staff: record or lift an author's \"do not move anything forward\" hold.\n\n``action='hold'`` with no ``chapter_numbers`` holds the whole book (every\nchapter and the plan); with numbers, only those chapters. ``release``\nwith no numbers lifts every hold. ``author_text`` is the author's words\nas staff saw them, for the audit trail (2026-10-12)."},"AuthorRequestCancelRequest":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"additionalProperties":false,"type":"object","title":"AuthorRequestCancelRequest"},"AuthorRequestCreateRequest":{"properties":{"request_type":{"type":"string","maxLength":64,"minLength":1,"title":"Request Type"},"prompt_override":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Prompt Override"},"channels":{"items":{"type":"string","enum":["email","sms"]},"type":"array","maxItems":2,"minItems":1,"title":"Channels"}},"additionalProperties":false,"type":"object","required":["request_type"],"title":"AuthorRequestCreateRequest","description":"Body for POST .../request-from-author (ticket or VA task)."},"AuthorRequestMarkFulfilledRequest":{"properties":{"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"additionalProperties":false,"type":"object","title":"AuthorRequestMarkFulfilledRequest"},"AuthorScorecardReviewCandidate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"category":{"type":"string","title":"Category"},"item":{"type":"string","title":"Item"},"source_excerpt":{"type":"string","title":"Source Excerpt"},"review_reason":{"type":"string","title":"Review Reason"},"expected_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Expected Sha256"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","category","item","source_excerpt","review_reason","expected_sha256","created_at"],"title":"AuthorScorecardReviewCandidate"},"AuthorScorecardReviewQueueResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"pending_count":{"type":"integer","minimum":0.0,"title":"Pending Count"},"candidates":{"items":{"$ref":"#/components/schemas/AuthorScorecardReviewCandidate"},"type":"array","title":"Candidates"}},"type":"object","required":["project_id","pending_count","candidates"],"title":"AuthorScorecardReviewQueueResponse"},"AuthorScorecardReviewRequest":{"properties":{"action":{"type":"string","enum":["accept","reject","edit"],"title":"Action"},"expected_sha256":{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Sha256"},"edited_item":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Edited Item"}},"type":"object","required":["action","expected_sha256"],"title":"AuthorScorecardReviewRequest"},"AuthorScorecardReviewResponse":{"properties":{"candidate_id":{"type":"string","format":"uuid","title":"Candidate Id"},"status":{"type":"string","enum":["approved","excluded"],"title":"Status"},"action":{"type":"string","enum":["accept","reject","edit"],"title":"Action"},"item":{"type":"string","title":"Item"},"remaining_count":{"type":"integer","minimum":0.0,"title":"Remaining Count"},"scorecard":{"$ref":"#/components/schemas/AuthorScorecardReviewScorecard"}},"type":"object","required":["candidate_id","status","action","item","remaining_count","scorecard"],"title":"AuthorScorecardReviewResponse"},"AuthorScorecardReviewScorecard":{"properties":{"scores":{"additionalProperties":true,"type":"object","title":"Scores"},"gap_analysis":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"title":"Gap Analysis"},"provenance_status":{"type":"string","title":"Provenance Status"}},"type":"object","required":["scores","gap_analysis","provenance_status"],"title":"AuthorScorecardReviewScorecard"},"AuthorSiteBookUpdate":{"properties":{"included":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Included"},"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"},"display_order":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Display Order"},"buy_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Buy Url"},"cover_asset_key":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Cover Asset Key"},"show_content":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Content"},"show_cover":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Cover"},"show_buy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Buy"},"blurb_override":{"anyOf":[{"type":"string","maxLength":1400},{"type":"null"}],"title":"Blurb Override"}},"additionalProperties":false,"type":"object","title":"AuthorSiteBookUpdate","description":"Author-facing per-book curation PATCH. Explicit named fields, all\nbounded, per the author-facing-PUT security rule. Clears use explicit\nnulls (model_fields_set distinguishes omitted from null). Unknown fields\n422 loudly rather than being silently dropped (chaos P3)."},"AuthorSiteBooksResponse":{"properties":{"books":{"items":{"$ref":"#/components/schemas/SiteBookView"},"type":"array","title":"Books"}},"type":"object","required":["books"],"title":"AuthorSiteBooksResponse"},"AuthorSiteDisableRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"AuthorSiteDisableRequest","description":"Staff/abuse takedown request."},"AuthorSitePortalResponse":{"properties":{"status":{"type":"string","enum":["draft","live","disabled"],"title":"Status"},"slug":{"type":"string","title":"Slug"},"site_url":{"type":"string","title":"Site Url"},"authorbyline_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorbyline Url"},"variant":{"type":"string","enum":["featured","full","full_grandfathered"],"title":"Variant","default":"full"},"buy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buy Url"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"},"last_publish_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Publish Error"},"publish_in_progress":{"type":"boolean","title":"Publish In Progress","default":false},"full_site_status":{"anyOf":[{"type":"string","enum":["building","ready"]},{"type":"null"}],"title":"Full Site Status"},"private_by_choice":{"type":"boolean","title":"Private By Choice","default":false},"pages_on_hold":{"type":"boolean","title":"Pages On Hold","default":false}},"type":"object","required":["status","slug","site_url"],"title":"AuthorSitePortalResponse","description":"Portal-facing view of a project's hosted site."},"AuthorSitePublishResponse":{"properties":{"status":{"type":"string","title":"Status"},"site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Url"}},"type":"object","required":["status"],"title":"AuthorSitePublishResponse"},"AuthorSiteSettingsUpdate":{"properties":{"buy_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Buy Url"}},"type":"object","title":"AuthorSiteSettingsUpdate","description":"Author-editable site settings (portal Site area). Explicit named fields,\nall bounded, per the author-facing-PUT security rule."},"AuthorSiteSlugUpdate":{"properties":{"slug":{"type":"string","maxLength":63,"minLength":3,"title":"Slug"}},"type":"object","required":["slug"],"title":"AuthorSiteSlugUpdate","description":"Author-chosen {slug}.authorbyline.com subdomain."},"AuthorStatsPreferences":{"properties":{"hidden_keys":{"items":{"type":"string","enum":["book_so_far","hours_talked","spoken_to_page","chapter_by_chapter","longest_shortest","reading_time","own_edits","word_palette","favorite_words","signature_phrases","sentence_rhythm","stories_vs_howto","style_badges","persona"]},"type":"array","maxItems":14,"title":"Hidden Keys"}},"additionalProperties":false,"type":"object","title":"AuthorStatsPreferences"},"AuthorityBookLaunchCheckoutRequest":{"properties":{"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false},"client_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Client Email"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"lead_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Lead Id"},"touchpoint_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Touchpoint Id"}},"type":"object","title":"AuthorityBookLaunchCheckoutRequest"},"AuthorityPlanCheckoutRequest":{"properties":{"product":{"type":"string","enum":["authority_book","authority_book_launch"],"title":"Product"},"plan":{"type":"string","enum":["pay_in_full","standard","easy","micro"],"title":"Plan"},"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false},"buyer_name":{"type":"string","maxLength":200,"minLength":1,"title":"Buyer Name"},"buyer_email":{"type":"string","maxLength":254,"format":"email","title":"Buyer Email"},"buyer_phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Buyer Phone"},"ref":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Ref"},"lead_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Lead Id"},"touchpoint_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Touchpoint Id"}},"additionalProperties":false,"type":"object","required":["product","plan","buyer_name","buyer_email"],"title":"AuthorityPlanCheckoutRequest"},"AutopilotActivateRequest":{"properties":{"autopilot_mode":{"type":"string","enum":["review","auto","threshold"],"title":"Autopilot Mode","default":"review"},"tier":{"anyOf":[{"type":"string","enum":["starter","growth","concierge"]},{"type":"null"}],"title":"Tier"},"monthly_pitch_target":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Monthly Pitch Target"}},"additionalProperties":false,"type":"object","title":"AutopilotActivateRequest","description":"A client's autopilot self-activation selection (admin drives onboarding).\n\nThe client picks their tier + review/auto mode; autopilot goes live only if the\nsend-ready sender pool has headroom, otherwise it's queued as capacity_pending\n(see app/services/podcast_capacity.decide_activation)."},"AutopilotActivateResponse":{"properties":{"status":{"type":"string","title":"Status"},"autopilot_enabled":{"type":"boolean","title":"Autopilot Enabled"},"autopilot_mode":{"type":"string","title":"Autopilot Mode"},"monthly_pitch_target":{"type":"integer","title":"Monthly Pitch Target"},"added_daily_demand":{"type":"integer","title":"Added Daily Demand"},"new_committed_daily":{"type":"integer","title":"New Committed Daily"},"pool_daily":{"type":"integer","title":"Pool Daily"},"assessment":{"$ref":"#/components/schemas/CapacityAssessmentResponse"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["status","autopilot_enabled","autopilot_mode","monthly_pitch_target","added_daily_demand","new_committed_daily","pool_daily","assessment","reason"],"title":"AutopilotActivateResponse","description":"Result of an autopilot activation request (active vs capacity_pending)."},"AvailabilityBody":{"properties":{"availability":{"type":"string","enum":["pending_marketplace_approval","live","paused","unknown"],"title":"Availability"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["availability"],"title":"AvailabilityBody"},"BackendPackageDepositRecordRequest":{"properties":{"package_tier":{"type":"string","enum":["author_website","book_package","business_package","backend_package"],"title":"Package Tier"},"deposit_amount_cents":{"type":"integer","maximum":1000000.0,"minimum":1.0,"title":"Deposit Amount Cents"},"stripe_session_id":{"type":"string","maxLength":255,"minLength":3,"title":"Stripe Session Id"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"list_price":{"type":"boolean","title":"List Price","default":false},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["package_tier","deposit_amount_cents","stripe_session_id"],"title":"BackendPackageDepositRecordRequest","description":"Operator facts for a v6 package deposit paid outside the deposit link.\n\nExplicit named fields with bounds (author-facing API hardening rule) and\n``extra='forbid'`` so a typo'd field is a 422, never a silently ignored\ninstruction on a path that commits a real customer to a package."},"BacklogDecisionIn":{"properties":{"status":{"type":"string","enum":["triaged","planned","in_progress","fixed","wont_do","duplicate"],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"duplicate_of":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Duplicate Of"},"owner_role":{"anyOf":[{"type":"string","enum":["cto","cpo"]},{"type":"null"}],"title":"Owner Role"}},"additionalProperties":false,"type":"object","required":["status"],"title":"BacklogDecisionIn","description":"Ada's (or the console's) decision on one backlog item."},"BannedTermEntry":{"properties":{"term":{"type":"string","maxLength":80,"title":"Term"},"replacement":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Replacement"}},"additionalProperties":false,"type":"object","required":["term"],"title":"BannedTermEntry","description":"One word or phrase the author never wants in her book, with an optional replacement."},"BestsellerCampaignResponse":{"properties":{"project_id":{"type":"string","title":"Project Id","default":""},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"},"lifecycle_state":{"type":"string","title":"Lifecycle State","default":""},"tier_recommended":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tier Recommended"},"launch_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Launch Day"},"launch_day_display":{"type":"string","title":"Launch Day Display","default":""},"launch_day_is_estimate":{"type":"boolean","title":"Launch Day Is Estimate","default":false},"checklist":{"items":{"$ref":"#/components/schemas/ChecklistItem"},"type":"array","title":"Checklist","default":[]},"reader_team":{"$ref":"#/components/schemas/ReaderTeamBlock","default":{"email_subject":"","email_body":""}},"review_cadence":{"items":{"$ref":"#/components/schemas/ReviewStep"},"type":"array","title":"Review Cadence","default":[]},"categories":{"$ref":"#/components/schemas/CategoriesBlock","default":{"primary":[],"secondary":[],"keywords":[],"backend_keywords":[],"ready":false,"note":""}},"promo":{"$ref":"#/components/schemas/PromoBlock","default":{"launch_price":"","regular_price":"","promotional_windows":[],"launch_day":"","week_1":"","ready":false,"note":""}},"sources":{"items":{"$ref":"#/components/schemas/CampaignSource"},"type":"array","title":"Sources","default":[]},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats","default":[]}},"additionalProperties":false,"type":"object","title":"BestsellerCampaignResponse"},"BiggerChanges":{"properties":{"chip_ids":{"items":{"type":"string","maxLength":8},"type":"array","maxItems":6,"title":"Chip Ids"},"text":{"type":"string","maxLength":2000,"title":"Text","default":""},"source":{"type":"string","enum":["typed","spoken"],"title":"Source","default":"typed"}},"additionalProperties":false,"type":"object","title":"BiggerChanges"},"BillingSwitchRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"type":"object","required":["project_id"],"title":"BillingSwitchRequest"},"BindAnswerRequest":{"properties":{"answer_text":{"type":"string","maxLength":4000,"minLength":1,"title":"Answer Text"},"source_channel":{"type":"string","enum":["email","sms","portal","call"],"title":"Source Channel","default":"email"},"source_ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Source Ref"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["answer_text"],"title":"BindAnswerRequest"},"BindRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"BindRequest"},"BlueprintCompletionRearmRequest":{"properties":{"attempt_budget":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Attempt Budget"}},"additionalProperties":false,"type":"object","title":"BlueprintCompletionRearmRequest","description":"Operator options for putting a parked completion request back on the ladder."},"BlueprintCompletionRearmResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"lead_id":{"type":"string","title":"Lead Id"},"status":{"type":"string","title":"Status"},"attempt_count":{"type":"integer","title":"Attempt Count"},"attempt_budget":{"type":"integer","title":"Attempt Budget"},"next_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Attempt At"},"dial_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dial Window"}},"additionalProperties":false,"type":"object","required":["request_id","lead_id","status","attempt_count","attempt_budget"],"title":"BlueprintCompletionRearmResponse","description":"The row as the database left it — never what the caller asked for."},"BlueprintRegenerationBudgetResetRequest":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":10,"title":"Reason"}},"type":"object","required":["reason"],"title":"BlueprintRegenerationBudgetResetRequest","description":"Operator returns a lead's blueprint-regeneration budget (GH #2366).\n\n``reason`` is mandatory and journalled onto the lead's event log: the budget\nis a circuit breaker, and the only legitimate reason to reopen one is that\nthe inputs or the grounding logic changed materially since the attempts were\nspent. A written reason is what makes that reviewable afterwards."},"BlueprintReviewPageResponse":{"properties":{"state":{"type":"string","maxLength":16,"title":"State"},"rep_first_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Rep First Name"},"calendar_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Calendar Url"},"when":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"When"},"reschedule_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reschedule Url"}},"type":"object","required":["state"],"title":"BlueprintReviewPageResponse"},"BlueprintSection":{"properties":{"heading":{"type":"string","title":"Heading"},"body_md":{"type":"string","title":"Body Md"}},"type":"object","required":["heading","body_md"],"title":"BlueprintSection"},"BoardDeal":{"properties":{"opportunity_id":{"type":"string","title":"Opportunity Id"},"contact_id":{"type":"string","title":"Contact Id","default":""},"name":{"type":"string","title":"Name","default":""},"pipeline_id":{"type":"string","title":"Pipeline Id"},"pipeline":{"type":"string","title":"Pipeline","default":""},"decision":{"type":"string","enum":["authority","upgrade"],"title":"Decision"},"stage_id":{"type":"string","title":"Stage Id","default":""},"stage":{"type":"string","title":"Stage","default":""},"stage_position":{"type":"integer","title":"Stage Position","default":0},"status":{"type":"string","title":"Status","default":"open"},"owner_id":{"type":"string","title":"Owner Id","default":""},"owner":{"type":"string","title":"Owner","default":"Unassigned"},"days_since_activity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Days Since Activity"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"last_activity_kind":{"type":"string","title":"Last Activity Kind","default":""},"band":{"type":"string","enum":["green","amber","red","grey"],"title":"Band","default":"green"},"stale_flag":{"type":"boolean","title":"Stale Flag","default":false},"call_booked":{"type":"boolean","title":"Call Booked","default":false},"model_probability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Model Probability"},"probability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Probability"},"rep_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Category"},"ai_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Category"},"ai_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ai Confidence"},"ai_reason":{"type":"string","title":"Ai Reason","default":""},"ai_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ai Read At"},"next_step":{"type":"string","title":"Next Step","default":""},"next_step_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Step Date"},"last_two_way_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Two Way At"},"expected_cash_30d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected Cash 30D"},"monetary_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monetary Value"},"crm_url":{"type":"string","title":"Crm Url","default":""}},"type":"object","required":["opportunity_id","pipeline_id","decision"],"title":"BoardDeal"},"BoardPipeline":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"decision":{"type":"string","enum":["authority","upgrade"],"title":"Decision"},"stages":{"items":{"$ref":"#/components/schemas/BoardStage"},"type":"array","title":"Stages"}},"type":"object","required":["id","name","decision","stages"],"title":"BoardPipeline"},"BoardRep":{"properties":{"owner_id":{"type":"string","title":"Owner Id"},"owner":{"type":"string","title":"Owner"},"deals":{"type":"integer","title":"Deals"},"green":{"type":"integer","title":"Green","default":0},"amber":{"type":"integer","title":"Amber","default":0},"red":{"type":"integer","title":"Red","default":0},"grey":{"type":"integer","title":"Grey","default":0},"expected_cash_30d":{"type":"number","title":"Expected Cash 30D","default":0.0}},"type":"object","required":["owner_id","owner","deals"],"title":"BoardRep"},"BoardStage":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","name","position"],"title":"BoardStage"},"Body_create_portal_feedback_report_portal_feedback_report__project_id__post":{"properties":{"kind":{"type":"string","title":"Kind"},"message":{"type":"string","title":"Message"},"page_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Path"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"viewport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewport"},"sentry_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentry Event Id"},"client_errors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Errors"},"screenshot":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Screenshot"}},"type":"object","required":["kind","message"],"title":"Body_create_portal_feedback_report_portal_feedback_report__project_id__post"},"Body_launch_unsubscribe_referrals_public_launch_unsubscribe_post":{"properties":{"token":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Token"}},"type":"object","title":"Body_launch_unsubscribe_referrals_public_launch_unsubscribe_post"},"Body_nudge_submit_linkedin_nudge__token__post":{"properties":{"linkedin_url":{"type":"string","maxLength":300,"title":"Linkedin Url","default":""},"event":{"type":"string","maxLength":20,"title":"Event","default":"nudge_sent"}},"type":"object","title":"Body_nudge_submit_linkedin_nudge__token__post"},"Body_post_book_testimonial_api_chapter_share__token__book_testimonial_post":{"properties":{"text":{"type":"string","maxLength":2000,"title":"Text"},"display_name_choice":{"type":"string","maxLength":40,"title":"Display Name Choice"},"over_18":{"type":"boolean","title":"Over 18","default":false},"consent_website":{"type":"boolean","title":"Consent Website","default":false},"consent_name_photo":{"type":"boolean","title":"Consent Name Photo","default":false},"typed_name":{"type":"string","maxLength":200,"title":"Typed Name","default":""},"statement_sha256":{"type":"string","maxLength":64,"title":"Statement Sha256"},"photo":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Photo"}},"type":"object","required":["text","display_name_choice","statement_sha256"],"title":"Body_post_book_testimonial_api_chapter_share__token__book_testimonial_post"},"Body_public_lead_upload_lead_upload_upload_post":{"properties":{"token":{"type":"string","title":"Token"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["token","file"],"title":"Body_public_lead_upload_lead_upload_upload_post"},"Body_record_outcome_post_support_calls_outcome_post":{"properties":{"t":{"type":"string","maxLength":400,"title":"T","default":""},"o":{"type":"string","maxLength":20,"title":"O","default":""}},"type":"object","title":"Body_record_outcome_post_support_calls_outcome_post"},"Body_redraw_placement_sketch_portal_images__project_id__placements__placement_id__sketch_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"style":{"type":"string","maxLength":20,"title":"Style","default":"diagram"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["file"],"title":"Body_redraw_placement_sketch_portal_images__project_id__placements__placement_id__sketch_post"},"Body_reply_submit_linkedin_reply__token__post":{"properties":{"linkedin_url":{"type":"string","maxLength":300,"title":"Linkedin Url","default":""},"full_name":{"type":"string","maxLength":120,"title":"Full Name","default":""},"reply_text":{"type":"string","maxLength":2000,"title":"Reply Text","default":""},"headline":{"type":"string","maxLength":220,"title":"Headline","default":""},"company":{"type":"string","maxLength":120,"title":"Company","default":""}},"type":"object","title":"Body_reply_submit_linkedin_reply__token__post"},"Body_run_report_submit_linkedin_run_report__token__post":{"properties":{"run":{"type":"string","maxLength":10,"title":"Run","default":""},"date":{"type":"string","maxLength":10,"title":"Date","default":""},"invites_sent":{"type":"string","maxLength":6,"title":"Invites Sent","default":"0"},"accepts_messaged":{"type":"string","maxLength":6,"title":"Accepts Messaged","default":"0"},"replies_answered":{"type":"string","maxLength":6,"title":"Replies Answered","default":"0"},"booking_links_sent":{"type":"string","maxLength":6,"title":"Booking Links Sent","default":"0"},"comments_posted":{"type":"string","maxLength":6,"title":"Comments Posted","default":"0"},"withdrawn":{"type":"string","maxLength":6,"title":"Withdrawn","default":"0"},"post_published":{"type":"string","maxLength":6,"title":"Post Published","default":"false"},"post_first_line":{"type":"string","maxLength":300,"title":"Post First Line","default":""},"warnings":{"type":"string","maxLength":1000,"title":"Warnings","default":""}},"type":"object","title":"Body_run_report_submit_linkedin_run_report__token__post"},"Body_save_author_signature_api_blueprint_page_door__token__steps_signature_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_save_author_signature_api_blueprint_page_door__token__steps_signature_post"},"Body_save_note_audio_api_blueprint_page_door__token__note_audio_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_save_note_audio_api_blueprint_page_door__token__note_audio_post"},"Body_speak_page_portal_front_back_matter__project_id___matter_type__speak_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_speak_page_portal_front_back_matter__project_id___matter_type__speak_post"},"Body_start_spoken_line_edit_portal_chapters__project_id___chapter_id__line_edits_voice_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"paragraph":{"type":"string","maxLength":6000,"minLength":1,"title":"Paragraph"},"raw_start":{"type":"integer","maximum":2000000.0,"minimum":0.0,"title":"Raw Start"},"heard_text":{"type":"string","maxLength":1000,"title":"Heard Text","default":""},"expected_version":{"type":"integer","minimum":0.0,"title":"Expected Version"},"duration_seconds":{"type":"number","minimum":0.0,"title":"Duration Seconds","default":0.0},"speech":{"type":"string","enum":["instruction","words"],"title":"Speech","default":"instruction"},"answer_to":{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{0,64}$","title":"Answer To","default":""}},"type":"object","required":["file","paragraph","raw_start","expected_version"],"title":"Body_start_spoken_line_edit_portal_chapters__project_id___chapter_id__line_edits_voice_post"},"Body_submit_expert_foreword_recording_api_foreword__token__recording_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"seconds":{"anyOf":[{"type":"integer","maximum":7200.0,"minimum":0.0},{"type":"null"}],"title":"Seconds"}},"type":"object","required":["file"],"title":"Body_submit_expert_foreword_recording_api_foreword__token__recording_post"},"Body_transcribe_builder_audio_api_funnel_builder_audio_post":{"properties":{"author_id":{"type":"string","title":"Author Id"},"field_name":{"type":"string","title":"Field Name"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["author_id","field_name","file"],"title":"Body_transcribe_builder_audio_api_funnel_builder_audio_post"},"Body_transcribe_clip_portal_chapters__project_id___chapter_id__line_edits_transcribe_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"duration_seconds":{"type":"number","minimum":0.0,"title":"Duration Seconds","default":0.0}},"type":"object","required":["file"],"title":"Body_transcribe_clip_portal_chapters__project_id___chapter_id__line_edits_transcribe_post"},"Body_transcribe_voice_note_portal_silas_voice_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_transcribe_voice_note_portal_silas_voice_post"},"Body_trigger_delayed_generation_lead_upload_trigger_generation_post":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"Body_trigger_delayed_generation_lead_upload_trigger_generation_post"},"Body_unsubscribe_referrals_public_unsubscribe_post":{"properties":{"token":{"type":"string","maxLength":300,"minLength":10,"title":"Token"}},"type":"object","required":["token"],"title":"Body_unsubscribe_referrals_public_unsubscribe_post"},"Body_upload_course_recording_portal_course__project_id__upload_recording_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"upload_type":{"type":"string","title":"Upload Type","default":"lesson_recording"},"lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lesson Id"}},"type":"object","required":["file"],"title":"Body_upload_course_recording_portal_course__project_id__upload_recording_post"},"Body_upload_cover_brief_asset_portal_cover_studio__project_id__brief_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"kind":{"type":"string","title":"Kind"},"provenance_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provenance Origin"},"ownership_attested":{"type":"boolean","title":"Ownership Attested","default":false},"inspiration_attested":{"type":"boolean","title":"Inspiration Attested","default":false}},"type":"object","required":["file","kind"],"title":"Body_upload_cover_brief_asset_portal_cover_studio__project_id__brief_upload_post"},"Body_upload_cover_reference_image_portal_covers__project_id__reference_images_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["file"],"title":"Body_upload_cover_reference_image_portal_covers__project_id__reference_images_post"},"Body_upload_headshot_api_anthology_onboarding__token__headshot_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"contributor_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contributor Title"},"contributor_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contributor Link"}},"type":"object","required":["file"],"title":"Body_upload_headshot_api_anthology_onboarding__token__headshot_post"},"Body_upload_import_file_portal_import__project_id__sessions__session_id__files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"provenance_origin":{"type":"string","title":"Provenance Origin"},"ownership_attested":{"type":"boolean","title":"Ownership Attested"}},"type":"object","required":["file","provenance_origin","ownership_attested"],"title":"Body_upload_import_file_portal_import__project_id__sessions__session_id__files_post"},"Body_upload_my_headshot_portal_authors_me_headshot_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_my_headshot_portal_authors_me_headshot_post"},"Body_upload_onboarding_file_onboarding_upload_post":{"properties":{"project_id":{"type":"string","title":"Project Id"},"category":{"type":"string","title":"Category","default":"writing-samples"},"usage_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Intent"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["project_id","file"],"title":"Body_upload_onboarding_file_onboarding_upload_post"},"Body_upload_own_cover_portal_cover_studio__project_id__own_cover_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"rights_attested":{"type":"boolean","title":"Rights Attested","default":false}},"type":"object","required":["file"],"title":"Body_upload_own_cover_portal_cover_studio__project_id__own_cover_post"},"Body_upload_photo_api_blueprint_page_door__token__photo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_photo_api_blueprint_page_door__token__photo_post"},"Body_upload_placement_image_portal_images__project_id__placements__placement_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"provenance_origin":{"type":"string","title":"Provenance Origin"},"ownership_attested":{"type":"boolean","title":"Ownership Attested"}},"type":"object","required":["file","provenance_origin","ownership_attested"],"title":"Body_upload_placement_image_portal_images__project_id__placements__placement_id__upload_post"},"Body_upload_portal_photo_portal_referrals_photo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_portal_photo_portal_referrals_photo_post"},"Body_upload_project_material_portal_materials__project_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"usage_intent":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Usage Intent"},"target_chapter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Chapter"},"target_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Section"},"placement_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placement Notes"},"visual_review_required":{"type":"boolean","title":"Visual Review Required","default":false},"client_upload_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Upload Id"},"capture_source":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Capture Source"},"replacement_intent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Replacement Intent Id"},"replacement_generation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement Generation"},"speaker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Name"},"speaker_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Role"},"permission_confirmed":{"type":"boolean","title":"Permission Confirmed","default":false},"interview_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Date"},"redraw_as_graphic":{"type":"boolean","title":"Redraw As Graphic","default":false},"redraw_style":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Redraw Style"},"chapter_idea":{"type":"boolean","title":"Chapter Idea","default":false}},"type":"object","required":["file"],"title":"Body_upload_project_material_portal_materials__project_id__upload_post"},"Body_upload_site_audio_sample_api_portal_site__project_id__intake_audio_sample_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_site_audio_sample_api_portal_site__project_id__intake_audio_sample_post"},"Body_upload_social_asset_onboarding_social_assets_post":{"properties":{"project_id":{"type":"string","title":"Project Id"},"asset_type":{"type":"string","title":"Asset Type","default":"headshot"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["project_id","file"],"title":"Body_upload_social_asset_onboarding_social_assets_post"},"Body_upload_social_photo_route_portal_social_photos__project_id__post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"likeness_reference_eligible":{"type":"boolean","title":"Likeness Reference Eligible","default":false}},"type":"object","required":["file"],"title":"Body_upload_social_photo_route_portal_social_photos__project_id__post"},"Body_upload_social_post_picture_route_portal_social_posts__project_id___post_id__picture_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_social_post_picture_route_portal_social_posts__project_id___post_id__picture_post"},"Body_upload_talkback_clip_portal_chapters__project_id___chapter_id__talkback_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"expected_version":{"type":"integer","minimum":0.0,"title":"Expected Version"},"anchor_text":{"type":"string","maxLength":2000,"title":"Anchor Text","default":""},"duration_seconds":{"type":"number","minimum":0.0,"title":"Duration Seconds","default":0.0}},"type":"object","required":["file","expected_version"],"title":"Body_upload_talkback_clip_portal_chapters__project_id___chapter_id__talkback_post"},"Body_upload_task_material_portal_tasks__project_id___question_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"usage_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Intent"},"capture_source":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Capture Source"}},"type":"object","required":["file"],"title":"Body_upload_task_material_portal_tasks__project_id___question_id__upload_post"},"Body_upload_voice_sample_evidence_portal_voice_samples__project_id__upload_post":{"properties":{"solo_speaker":{"type":"boolean","title":"Solo Speaker","default":false},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_voice_sample_evidence_portal_voice_samples__project_id__upload_post"},"Body_upload_voice_sample_portal_voice_setup__project_id__upload_post":{"properties":{"source":{"type":"string","title":"Source","default":"upload"},"client_duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Client Duration Seconds"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_voice_sample_portal_voice_setup__project_id__upload_post"},"Body_upload_w9_portal_referrals_w9_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_w9_portal_referrals_w9_post"},"BookAssetDetailResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"asset_type":{"type":"string","title":"Asset Type"},"chapter_tie_in":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Chapter Tie In"},"author_slug":{"type":"string","title":"Author Slug"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"}},"type":"object","required":["slug","asset_type","author_slug"],"title":"BookAssetDetailResponse","description":"Public metadata for a single downloadable book resource asset."},"BookChangeConfirm":{"properties":{"item_ids":{"anyOf":[{"items":{"type":"string","maxLength":3,"pattern":"^\\d{1,3}$"},"type":"array","maxItems":40},{"type":"null"}],"title":"Item Ids"}},"additionalProperties":false,"type":"object","title":"BookChangeConfirm","description":"Confirm all ready changes (``item_ids`` omitted) or the ones she ticked."},"BookChangeRequestCreate":{"properties":{"text":{"type":"string","maxLength":12000,"minLength":3,"title":"Text"},"scope":{"type":"string","enum":["book","chapter"],"title":"Scope","default":"book"},"chapter_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"},"interior_version":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Interior Version"}},"additionalProperties":false,"type":"object","required":["text"],"title":"BookChangeRequestCreate","description":"One change list: a single comment or a long numbered list."},"BookChapterItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"title":{"type":"string","title":"Title"},"minutes":{"type":"integer","title":"Minutes","default":1},"read":{"type":"boolean","title":"Read","default":false}},"type":"object","required":["id","title"],"title":"BookChapterItem"},"BookChapterResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"title":{"type":"string","title":"Title"},"draft":{"type":"string","title":"Draft"},"draft_version":{"type":"integer","title":"Draft Version","default":0},"previous_chapter_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Previous Chapter Id"},"next_chapter_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Chapter Id"}},"type":"object","required":["chapter_id","title","draft"],"title":"BookChapterResponse"},"BookChipBook":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"label":{"type":"string","maxLength":60,"title":"Label"},"lifecycle_state":{"type":"string","title":"Lifecycle State"},"cover_thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Thumbnail Url"},"chapters_total":{"type":"integer","title":"Chapters Total","default":0},"chapters_complete":{"type":"integer","title":"Chapters Complete","default":0},"needs_you_count":{"type":"integer","title":"Needs You Count","default":0},"is_current_session":{"type":"boolean","title":"Is Current Session","default":false}},"type":"object","required":["project_id","label","lifecycle_state"],"title":"BookChipBook"},"BookChipResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"books":{"items":{"$ref":"#/components/schemas/BookChipBook"},"type":"array","title":"Books"},"start_next_book":{"type":"boolean","title":"Start Next Book","default":false}},"type":"object","title":"BookChipResponse","description":"The header book chip. ``enabled`` False = render nothing."},"BookDepositLookupRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"}},"type":"object","required":["buyer_email"],"title":"BookDepositLookupRequest"},"BookDepositLookupResponse":{"properties":{"found":{"type":"boolean","title":"Found"},"credit_cents":{"type":"integer","title":"Credit Cents","default":0},"payer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["found"],"title":"BookDepositLookupResponse","description":"The buyer's paid Book Deposit an Authority Book plan can credit, if any."},"BookFixRequest":{"properties":{"request":{"type":"string","maxLength":8000,"minLength":3,"title":"Request"},"find":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Find"},"replace":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Replace"},"chapter_number":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Chapter Number"},"request_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{8,64}$"},{"type":"null"}],"title":"Request Id"}},"type":"object","required":["request"],"title":"BookFixRequest","description":"Demi 2026-10-17: \"Is there a way to file a book fix from my side?\"."},"BookGuestInviteRequest":{"properties":{"full_name":{"type":"string","maxLength":120,"minLength":1,"title":"Full Name"},"guest_role":{"type":"string","maxLength":120,"minLength":1,"title":"Guest Role","default":"Co-author"},"relationship":{"type":"string","maxLength":60,"minLength":1,"title":"Relationship"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"target_chapters":{"items":{"type":"integer"},"type":"array","maxItems":3,"minItems":1,"title":"Target Chapters"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","required":["full_name","relationship","target_chapters"],"title":"BookGuestInviteRequest"},"BookMapChapterRequest":{"properties":{"text":{"type":"string","maxLength":3600,"minLength":3,"title":"Text"},"after_chapter":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"After Chapter"},"request_id":{"type":"string","maxLength":32,"minLength":32,"pattern":"^[0-9a-f]{32}$","title":"Request Id"}},"additionalProperties":false,"type":"object","required":["text","request_id"],"title":"BookMapChapterRequest","description":"What the new chapter is about, and where it goes."},"BookMapChapterResult":{"properties":{"status":{"type":"string","enum":["started","sent_to_plan","filed"],"title":"Status"},"message":{"type":"string","maxLength":300,"title":"Message"}},"type":"object","required":["status","message"],"title":"BookMapChapterResult"},"BookMapSection":{"properties":{"id":{"type":"string","maxLength":40,"minLength":1,"title":"Id"},"kind":{"type":"string","enum":["front_matter","chapter","back_matter","unclassified"],"title":"Kind"},"subkind":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Subkind"},"number":{"anyOf":[{"type":"integer","maximum":80.0,"minimum":1.0},{"type":"null"}],"title":"Number"},"title":{"type":"string","maxLength":500,"title":"Title","default":""},"subtitle":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Subtitle"},"source":{"$ref":"#/components/schemas/SourceSpan"},"word_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Word Count"}},"type":"object","required":["id","kind","source"],"title":"BookMapSection"},"BookMapView":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"can_request_chapter":{"type":"boolean","title":"Can Request Chapter","default":true},"add_after":{"items":{"type":"integer"},"type":"array","maxItems":500,"title":"Add After"}},"type":"object","title":"BookMapView"},"BookNeedItem":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"book_label":{"type":"string","maxLength":60,"title":"Book Label"},"action":{"type":"string","maxLength":60,"title":"Action"},"label":{"type":"string","maxLength":200,"title":"Label"},"detail":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Detail"},"priority":{"type":"integer","title":"Priority","default":9},"lifecycle_state":{"type":"string","maxLength":40,"title":"Lifecycle State","default":""}},"type":"object","required":["project_id","book_label","action","label"],"title":"BookNeedItem","description":"One thing waiting on the author, wearing its book's pill."},"BookOption":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"label":{"type":"string","maxLength":60,"title":"Label"}},"type":"object","required":["project_id","label"],"title":"BookOption"},"BookOutBody":{"properties":{"email":{"type":"string","maxLength":320,"format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"First Name"}},"additionalProperties":false,"type":"object","required":["email"],"title":"BookOutBody"},"BookPageResponse":{"properties":{"author_slug":{"type":"string","title":"Author Slug"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio"},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagline"},"hero_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hero Description"},"page_config":{"additionalProperties":true,"type":"object","title":"Page Config","default":{}},"assets":{"items":{"$ref":"#/components/schemas/BookResourceAssetSummary"},"type":"array","title":"Assets"},"book":{"anyOf":[{"$ref":"#/components/schemas/PublicBookFacts"},{"type":"null"}]}},"type":"object","required":["author_slug","assets"],"title":"BookPageResponse","description":"Public book resource page metadata."},"BookPrintChapter":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_number":{"type":"integer","title":"Chapter Number"},"title":{"type":"string","title":"Title"},"draft":{"type":"string","title":"Draft"},"version":{"type":"integer","title":"Version","default":0},"images":{"items":{"$ref":"#/components/schemas/PlacementOut"},"type":"array","title":"Images"},"opening_quote":{"anyOf":[{"$ref":"#/components/schemas/BookPrintOpeningQuote"},{"type":"null"}]}},"type":"object","required":["id","chapter_number","title","draft"],"title":"BookPrintChapter","description":"One chapter as the author prints it: the text the reader shows."},"BookPrintOpeningQuote":{"properties":{"text":{"type":"string","title":"Text"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution"}},"type":"object","required":["text"],"title":"BookPrintOpeningQuote","description":"Display-only per-chapter opening quote for print-at-home."},"BookPrintResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"diy_mode":{"type":"boolean","title":"Diy Mode","default":false},"chapters":{"items":{"$ref":"#/components/schemas/BookPrintChapter"},"type":"array","title":"Chapters"},"paper_markup_scan_enabled":{"type":"boolean","title":"Paper Markup Scan Enabled","default":false},"title_only_chapter_headings":{"type":"boolean","title":"Title Only Chapter Headings","default":false}},"type":"object","required":["project_id"],"title":"BookPrintResponse","description":"The whole book, ready to print (``GET /portal/book/{id}/print``)."},"BookPublishedRequest":{"properties":{"asin":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[A-Z0-9]{10}$","title":"Asin"},"launch_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Launch Date"},"format":{"type":"string","maxLength":40,"minLength":1,"title":"Format","default":"Kindle"}},"additionalProperties":false,"type":"object","required":["asin"],"title":"BookPublishedRequest","description":"The book is on Amazon: its ASIN and (optionally) its launch date.\n\nA future ``launch_date`` means the book is on pre-order."},"BookReadingRoomResponse":{"properties":{"chapters":{"items":{"$ref":"#/components/schemas/BookChapterItem"},"type":"array","title":"Chapters"},"total":{"type":"integer","title":"Total"},"read_count":{"type":"integer","title":"Read Count"},"mode":{"type":"string","enum":["view","comment"],"title":"Mode"},"relationship":{"anyOf":[{"type":"string","enum":["family","friend","colleague","client","other"]},{"type":"null"}],"title":"Relationship"},"closes_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closes At"},"testimonial":{"anyOf":[{"$ref":"#/components/schemas/ArcReaderTestimonialState"},{"type":"null"}]},"consent":{"$ref":"#/components/schemas/ArcConsentStatementView"},"display_name_options":{"additionalProperties":{"type":"string"},"type":"object","title":"Display Name Options"}},"type":"object","required":["chapters","total","read_count","mode","consent","display_name_options"],"title":"BookReadingRoomResponse"},"BookRequest":{"properties":{"signup_id":{"type":"string","format":"uuid","title":"Signup Id"},"start":{"type":"string","maxLength":40,"minLength":10,"title":"Start"},"tz":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"},"schedule_event_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Schedule Event Id"}},"type":"object","required":["signup_id","start"],"title":"BookRequest"},"BookResourceAssetSummary":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"asset_type":{"type":"string","title":"Asset Type"},"chapter_tie_in":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Chapter Tie In"}},"type":"object","required":["slug","asset_type"],"title":"BookResourceAssetSummary","description":"Asset card shown on a public book resource page."},"BookSearchResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/BookSearchResult"},"type":"array","title":"Results"}},"type":"object","title":"BookSearchResponse"},"BookSearchResult":{"properties":{"title":{"type":"string","title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"open_library_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Open Library Key"},"first_publish_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Publish Year"}},"type":"object","required":["title"],"title":"BookSearchResult"},"BookSetupRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"nickname":{"type":"string","maxLength":40,"minLength":1,"title":"Nickname"},"in_series":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Series"},"series_with_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Series With Project Id"},"matching_covers":{"type":"boolean","title":"Matching Covers","default":true},"voice_dna_mode":{"anyOf":[{"type":"string","enum":["shared","separate"]},{"type":"null"}],"title":"Voice Dna Mode"}},"type":"object","required":["project_id","nickname"],"title":"BookSetupRequest","description":"The author's answers to the new-book setup card."},"BookSetupResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"nickname":{"type":"string","maxLength":40,"title":"Nickname"},"book_email":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Book Email"},"voice_dna_mode":{"anyOf":[{"type":"string","enum":["shared","separate"]},{"type":"null"}],"title":"Voice Dna Mode"},"in_series":{"type":"boolean","title":"In Series"},"matching_covers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Matching Covers"}},"type":"object","required":["project_id","nickname","in_series"],"title":"BookSetupResponse"},"BookSetupState":{"properties":{"needs_setup":{"type":"boolean","title":"Needs Setup","default":false},"is_first_book":{"type":"boolean","title":"Is First Book","default":false},"nickname":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Nickname"},"suggested_nickname":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Suggested Nickname"},"in_series":{"type":"boolean","title":"In Series","default":false},"series_with_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Series With Project Id"},"matching_covers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Matching Covers"},"series_options":{"items":{"$ref":"#/components/schemas/BookOption"},"type":"array","maxItems":20,"title":"Series Options"},"voice_question":{"type":"boolean","title":"Voice Question","default":false},"voice_dna_mode":{"type":"string","enum":["shared","separate"],"title":"Voice Dna Mode","default":"shared"},"voice_shared_with_label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Voice Shared With Label"}},"type":"object","title":"BookSetupState","description":"Answers to the new-book setup questions for one book."},"BooksListResponse":{"properties":{"books":{"items":{"$ref":"#/components/schemas/PortalBook"},"type":"array","title":"Books"},"can_start_next":{"type":"boolean","title":"Can Start Next","default":false},"start_next_opens_new_book":{"type":"boolean","title":"Start Next Opens New Book","default":false},"active_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Active Project Id"},"cover_studio_enabled":{"type":"boolean","title":"Cover Studio Enabled","default":false},"multi_book_ui":{"type":"boolean","title":"Multi Book Ui","default":false},"needs_you":{"items":{"$ref":"#/components/schemas/BookNeedItem"},"type":"array","title":"Needs You"},"next_for_you":{"anyOf":[{"$ref":"#/components/schemas/BookNeedItem"},{"type":"null"}]}},"type":"object","title":"BooksListResponse"},"BrainstormRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"scope":{"type":"string","enum":["book","chapter"],"title":"Scope","default":"book"},"chapter_number":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Chapter Number"},"seed_message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Seed Message"},"route_context":{"type":"string","enum":["dashboard","interviews","chapters","covers","deliverables","publishing","voice_dna","materials","current_step"],"title":"Route Context","default":"current_step"},"scoped_object_ref":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Scoped Object Ref"}},"additionalProperties":false,"type":"object","required":["conversation_id"],"title":"BrainstormRequest","description":"Author brainstorm request. No project_id — derived from the auth token.\n\nscope='book' brainstorms the whole book; scope='chapter' targets a specific\nchapter (chapter_number), defaulting server-side to the next chapter the\nauthor will record when chapter_number is omitted."},"BrainstormResponse":{"properties":{"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"accepted":{"type":"boolean","title":"Accepted","default":true}},"type":"object","title":"BrainstormResponse"},"BrandAssets":{"properties":{"primary_color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Primary Color"},"secondary_color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Secondary Color"},"accent_color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Accent Color"},"font_preference":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Font Preference"},"logo_r2_key":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Logo R2 Key"},"brand_notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Brand Notes"}},"type":"object","title":"BrandAssets","description":"Brand identity for visual asset generation.\n\nColors are validated and normalized at intake (WF1-D42): rendering\nrequires 6-digit hex values, so an invalid color is rejected here with a\nclient-visible message rather than silently producing non-branded\ndeliverables months later. Logo format is validated at upload time\n(only PNG/JPG render in print deliverables)."},"BrandConfirmRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"BrandConfirmRequest","description":"WP-1 brand-kit one-click confirm. The confirmed brand snapshot is\npre-pulled server-side; the client only signals the confirmation, so the\nbody is intentionally minimal (optional free-text note, bounded)."},"BrandUpdate":{"properties":{"palette":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Palette"},"primary":{"anyOf":[{"type":"string","maxLength":7},{"type":"null"}],"title":"Primary"},"secondary":{"anyOf":[{"type":"string","maxLength":7},{"type":"null"}],"title":"Secondary"},"accent":{"anyOf":[{"type":"string","maxLength":7},{"type":"null"}],"title":"Accent"}},"additionalProperties":false,"type":"object","title":"BrandUpdate","description":"Brand colors: either three custom hex values OR a pre-made palette id.\n\nWhen ``palette`` is set it wins (the three hex fields are ignored). An\nexplicit empty request (all None) clears back to the resolved defaults."},"BuilderAudioResponse":{"properties":{"status":{"type":"string","title":"Status"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"field_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Name"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["status"],"title":"BuilderAudioResponse"},"BuilderSaveRequest":{"properties":{"author_id":{"type":"string","maxLength":50,"title":"Author Id"},"field_name":{"type":"string","maxLength":50,"title":"Field Name"},"value":{"anyOf":[{"type":"string","maxLength":5000},{"items":{"type":"string","maxLength":5000},"type":"array"}],"title":"Value"}},"type":"object","required":["author_id","field_name","value"],"title":"BuilderSaveRequest","description":"Autosave a single builder answer."},"BuilderSaveResponse":{"properties":{"status":{"type":"string","title":"Status"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["status"],"title":"BuilderSaveResponse","description":"Response after builder autosave."},"BuilderSubmitRequest":{"properties":{"author_id":{"type":"string","maxLength":50,"title":"Author Id"}},"type":"object","required":["author_id"],"title":"BuilderSubmitRequest","description":"Mark builder as complete."},"BuilderSubmitResponse":{"properties":{"status":{"type":"string","title":"Status"},"generation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Status"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["status"],"title":"BuilderSubmitResponse","description":"Response after builder submit."},"BundleRemapRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"dry_run":{"type":"boolean","title":"Dry Run","default":true},"retier":{"items":{"$ref":"#/components/schemas/RetierItem"},"type":"array","maxItems":3,"title":"Retier"},"new_books":{"items":{"$ref":"#/components/schemas/NewBookItem"},"type":"array","maxItems":2,"title":"New Books"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"BundleRemapRequest"},"BuyerAssessment":{"properties":{"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"questions":{"items":{"$ref":"#/components/schemas/BuyerAssessmentQuestion"},"type":"array","title":"Questions"}},"type":"object","title":"BuyerAssessment"},"BuyerAssessmentQuestion":{"properties":{"question_text":{"type":"string","title":"Question Text"},"question_type":{"type":"string","enum":["multiple_choice","true_false","short_answer"],"title":"Question Type"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"difficulty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Difficulty"}},"type":"object","required":["question_text","question_type"],"title":"BuyerAssessmentQuestion","description":"Learner-safe assessment question; grading data stays server-side."},"BuyerCompletionResponse":{"properties":{"lesson_id":{"type":"string","title":"Lesson Id"},"completed":{"type":"boolean","title":"Completed","default":true},"lessons_completed":{"type":"integer","title":"Lessons Completed","default":0},"lessons_total":{"type":"integer","title":"Lessons Total","default":0},"course_completed":{"type":"boolean","title":"Course Completed","default":false}},"type":"object","required":["lesson_id"],"title":"BuyerCompletionResponse"},"BuyerLessonDetail":{"properties":{"id":{"type":"string","title":"Id"},"module_id":{"type":"string","title":"Module Id"},"lesson_number":{"type":"integer","title":"Lesson Number"},"title":{"type":"string","title":"Title"},"lesson_type":{"type":"string","title":"Lesson Type","default":"concept"},"learning_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Learning Outcome"},"estimated_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Minutes"},"script_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script Markdown"},"slide_outline_json":{"additionalProperties":true,"type":"object","title":"Slide Outline Json"},"narration_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narration Script"},"media":{"items":{"$ref":"#/components/schemas/BuyerMediaAsset"},"type":"array","title":"Media"},"resources":{"items":{"$ref":"#/components/schemas/BuyerLessonResource"},"type":"array","title":"Resources"},"completed":{"type":"boolean","title":"Completed","default":false}},"type":"object","required":["id","module_id","lesson_number","title"],"title":"BuyerLessonDetail"},"BuyerLessonResource":{"properties":{"id":{"type":"string","title":"Id"},"asset_type":{"type":"string","enum":["slide_deck_pptx","worksheet_pdf","assessment"],"title":"Asset Type"},"format":{"type":"string","enum":["pptx","pdf","json"],"title":"Format"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"assessment":{"anyOf":[{"$ref":"#/components/schemas/BuyerAssessment"},{"type":"null"}]}},"type":"object","required":["id","asset_type","format"],"title":"BuyerLessonResource","description":"A client-ready resource made available with an unlocked lesson."},"BuyerMediaAsset":{"properties":{"id":{"type":"string","title":"Id"},"asset_type":{"type":"string","title":"Asset Type"},"format":{"type":"string","title":"Format"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","asset_type","format","url"],"title":"BuyerMediaAsset"},"BuyerSessionResponse":{"properties":{"enrollment_id":{"type":"string","title":"Enrollment Id"},"course_project_id":{"type":"string","title":"Course Project Id"},"buyer_email":{"type":"string","title":"Buyer Email"},"course_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Name"}},"type":"object","required":["enrollment_id","course_project_id","buyer_email"],"title":"BuyerSessionResponse","description":"Returned after a successful magic-link exchange (JWT set as a cookie)."},"BuyerWorkbookResponse":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["download_url"],"title":"BuyerWorkbookResponse"},"BylineOrderRequest":{"properties":{"order":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":4,"minItems":2,"title":"Order"}},"additionalProperties":false,"type":"object","required":["order"],"title":"BylineOrderRequest","description":"The order an author confirms: every author of the book, exactly once."},"CalendarLinkRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"}},"type":"object","required":["customer_email"],"title":"CalendarLinkRequest"},"CalendarLinkResponse":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"calendar_type":{"type":"string","title":"Calendar Type","default":""},"context_message":{"type":"string","title":"Context Message","default":""}},"type":"object","title":"CalendarLinkResponse"},"CallTimeRequest":{"properties":{"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"}},"additionalProperties":false,"type":"object","required":["scheduled_at"],"title":"CallTimeRequest","description":"The time the author picked in the slot picker."},"CampaignSource":{"properties":{"deliverable_type":{"type":"string","title":"Deliverable Type","default":""},"display":{"type":"string","title":"Display","default":""},"status":{"type":"string","title":"Status","default":"not_generated"},"ready":{"type":"boolean","title":"Ready","default":false},"deliverable_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Id"}},"additionalProperties":false,"type":"object","title":"CampaignSource","description":"One underlying deliverable, so the UI can link the full document.\n\nThis module WRAPS the assets; it never duplicates them. Every block that\nquotes an asset names it here, and the page links out to the existing\ndeliverable download rather than restating the whole thing."},"CancelBody":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"CancelBody"},"CancelRetractionRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"CancelRetractionRequest","description":"Stop a removal that has not yet destroyed anything.\n\nThe reason is required: a cancel un-freezes a project and reverses an\nauthor's explicit instruction, so the ledger must say why."},"CancelSubscriptionRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"},"subscription_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Subscription Id"},"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""},"n8n_execution_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"N8N Execution Id"}},"type":"object","required":["customer_email"],"title":"CancelSubscriptionRequest"},"CapacityAssessmentResponse":{"properties":{"committed_daily":{"type":"integer","title":"Committed Daily"},"pool_daily":{"type":"integer","title":"Pool Daily"},"utilization":{"type":"number","title":"Utilization"},"status":{"type":"string","title":"Status"},"headroom_target":{"type":"number","title":"Headroom Target"},"inboxes_needed":{"type":"integer","title":"Inboxes Needed"},"domains_needed":{"type":"integer","title":"Domains Needed"},"inboxes_per_domain":{"type":"integer","title":"Inboxes Per Domain"},"recommendation":{"type":"string","title":"Recommendation"},"dormant_inboxes_available":{"type":"integer","title":"Dormant Inboxes Available","default":0},"new_inboxes_needed":{"type":"integer","title":"New Inboxes Needed","default":0}},"additionalProperties":false,"type":"object","required":["committed_daily","pool_daily","utilization","status","headroom_target","inboxes_needed","domains_needed","inboxes_per_domain","recommendation"],"title":"CapacityAssessmentResponse","description":"Forward committed-demand vs pool-capacity verdict (mirrors CapacityAssessment)."},"CardSetupResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CardSetupResponse"},"CarryForward":{"properties":{"carry":{"type":"boolean","title":"Carry","default":true}},"additionalProperties":false,"type":"object","title":"CarryForward"},"CashPosition":{"properties":{"checking_cents":{"type":"integer","title":"Checking Cents","default":0},"stripe_in_transit_cents":{"type":"integer","title":"Stripe In Transit Cents","default":0},"whop_balance_cents":{"type":"integer","title":"Whop Balance Cents","default":0},"card_owed_cents":{"type":"integer","title":"Card Owed Cents","default":0},"stripe_capital_owed_cents":{"type":"integer","title":"Stripe Capital Owed Cents","default":0},"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},"type":"object","title":"CashPosition"},"CastingApplyResponse":{"properties":{"status":{"type":"string","title":"Status"},"author_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Id"}},"type":"object","required":["status"],"title":"CastingApplyResponse","description":"Apply result. Deliberately minimal — no internal edition/guest ids leak\nbeyond the ``author_id`` the downstream funnel page needs to authenticate."},"CategoriesBlock":{"properties":{"primary":{"items":{"type":"string"},"type":"array","title":"Primary","default":[]},"secondary":{"items":{"type":"string"},"type":"array","title":"Secondary","default":[]},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords","default":[]},"backend_keywords":{"items":{"type":"string"},"type":"array","title":"Backend Keywords","default":[]},"ready":{"type":"boolean","title":"Ready","default":false},"note":{"type":"string","title":"Note","default":""}},"additionalProperties":false,"type":"object","title":"CategoriesBlock","description":"Two takes on Amazon categories and keywords, kept SEPARATE.\n\nThe Kindle strategy and the launch kit each pick keywords. They are never\nmerged into one list: merging would invent a set no strategist wrote. The\nauthor picks one set."},"CelebrationClipResponse":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"clip_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clip Id"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"type":"object","title":"CelebrationClipResponse"},"ChangeMaterialChapterRequest":{"properties":{"target_chapter":{"type":"integer","maximum":99.0,"minimum":1.0,"title":"Target Chapter"}},"additionalProperties":false,"type":"object","required":["target_chapter"],"title":"ChangeMaterialChapterRequest","description":"Receipts \"Change chapter\": move one still-unused material."},"ChapterAnswer":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"page_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Page Sha256"},"decision":{"type":"string","const":"read","title":"Decision"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"additionalProperties":false,"type":"object","required":["artifact_id","page_sha256","decision"],"title":"ChapterAnswer","description":"\"I've read it\": the chapter is approved, with an optional note about the story."},"ChapterBody":{"properties":{"number":{"anyOf":[{"type":"integer","maximum":80.0,"minimum":1.0},{"type":"null"}],"title":"Number"}},"additionalProperties":false,"type":"object","title":"ChapterBody"},"ChapterBookTally":{"properties":{"final_count":{"type":"integer","title":"Final Count"},"total":{"type":"integer","title":"Total"},"words_locked":{"type":"integer","title":"Words Locked"},"next":{"anyOf":[{"$ref":"#/components/schemas/ChapterNextStep"},{"type":"null"}]}},"type":"object","required":["final_count","total","words_locked"],"title":"ChapterBookTally","description":"The finalize status line: \"3 of 8 final · 7,800 words locked\" (W10)."},"ChapterCommentsResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"current_version_number":{"type":"integer","title":"Current Version Number","default":0},"comments":{"items":{"$ref":"#/components/schemas/InlineCommentOut"},"type":"array","title":"Comments","default":[]}},"type":"object","required":["chapter_id"],"title":"ChapterCommentsResponse","description":"All inline comments for a chapter."},"ChapterFeedbackRequest":{"properties":{"categories":{"items":{"type":"string","enum":["voice_tone","facts_names","structure_flow","other"]},"type":"array","maxItems":3,"minItems":1,"title":"Categories"},"note":{"type":"string","maxLength":2000,"minLength":1,"title":"Note"},"apply_doc_edits":{"type":"boolean","title":"Apply Doc Edits","default":false}},"additionalProperties":false,"type":"object","required":["categories","note"],"title":"ChapterFeedbackRequest","description":"Structured \"not quite\" feedback on a chapter draft from the portal reader.\n\nStrict, bounded per the author-facing write rule: fixed-enum category chips\n(1-3) plus a required, length-capped note."},"ChapterFigureListResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"paragraph_count":{"type":"integer","title":"Paragraph Count","default":0},"figures":{"items":{"$ref":"#/components/schemas/ChapterFigureOut"},"type":"array","title":"Figures","default":[]}},"type":"object","required":["chapter_id"],"title":"ChapterFigureListResponse"},"ChapterFigureOut":{"properties":{"figure_id":{"type":"string","maxLength":200,"title":"Figure Id"},"figure_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Figure Number"},"caption":{"type":"string","maxLength":2000,"title":"Caption","default":""},"paragraph_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paragraph Index"},"type":{"type":"string","maxLength":120,"title":"Type","default":""},"is_author_upload":{"type":"boolean","title":"Is Author Upload","default":false},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"source_material_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Material Id"}},"type":"object","required":["figure_id"],"title":"ChapterFigureOut","description":"One ``image_plan`` figure, described for the author-facing panel.\n\nPresign-free: ``asset_id`` (when present) lets the reader fetch a thumbnail\nthrough the existing ``/assets/{asset_id}/url`` proxy — the panel never\nreceives a raw key or URL."},"ChapterIdeaRequest":{"properties":{"text":{"type":"string","maxLength":5000,"minLength":1,"title":"Text"},"chapter_number":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Chapter Number"}},"type":"object","required":["text"],"title":"ChapterIdeaRequest","description":"An idea the author wants in ONE chapter (\"Add an idea to this chapter\")."},"ChapterLink":{"properties":{"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"title":{"type":"string","title":"Title","default":""},"status":{"type":"string","title":"Status","default":""},"google_doc_url":{"type":"string","title":"Google Doc Url","default":""}},"type":"object","title":"ChapterLink"},"ChapterNextStep":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"chapter_number":{"type":"integer","title":"Chapter Number"},"action":{"type":"string","enum":["read","record"],"title":"Action"}},"type":"object","required":["chapter_id","chapter_number","action"],"title":"ChapterNextStep","description":"The next chapter to open after finalizing one (read or record)."},"ChapterReadResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_number":{"type":"integer","title":"Chapter Number"},"display_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Display Number"},"title":{"type":"string","title":"Title"},"can_reopen":{"type":"boolean","title":"Can Reopen","default":false},"approved_automatically":{"type":"boolean","title":"Approved Automatically","default":false},"version_restore_enabled":{"type":"boolean","title":"Version Restore Enabled","default":false},"draft":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft"},"current_draft_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Draft Version"},"word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count"},"google_doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Url"},"chapter_review_state":{"type":"string","title":"Chapter Review State","default":"none"},"refresh_pending":{"type":"boolean","title":"Refresh Pending","default":false},"preview_draft":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Draft"},"diy_recovery_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diy Recovery Kind"},"author_status_label":{"type":"string","title":"Author Status Label","default":""},"author_status_help":{"type":"string","title":"Author Status Help","default":""},"expected_back_by":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Back By"},"expected_back_by_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Back By Label"},"can_approve":{"type":"boolean","title":"Can Approve","default":false},"approval_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Blocked Reason"},"can_submit_feedback":{"type":"boolean","title":"Can Submit Feedback","default":false},"feedback_loop_enabled":{"type":"boolean","title":"Feedback Loop Enabled","default":false},"auto_revisions_used":{"type":"integer","title":"Auto Revisions Used","default":0},"auto_revisions_remaining":{"type":"integer","title":"Auto Revisions Remaining","default":0},"latest_revision_delivered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Latest Revision Delivered"},"book_tally":{"anyOf":[{"$ref":"#/components/schemas/ChapterBookTally"},{"type":"null"}]},"escalated_to_editor":{"type":"boolean","title":"Escalated To Editor","default":false},"escalated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Escalated At"},"author_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Timezone"},"ai_revision_limit_reached":{"type":"boolean","title":"Ai Revision Limit Reached","default":false},"ai_revision_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Revision Blocked Reason"},"revisions_continue_past_included":{"type":"boolean","title":"Revisions Continue Past Included","default":false},"has_google_doc":{"type":"boolean","title":"Has Google Doc","default":false},"pending_doc_suggestions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pending Doc Suggestions"},"being_revised":{"type":"boolean","title":"Being Revised","default":false},"style_directives":{"items":{"$ref":"#/components/schemas/ChapterStyleDirective"},"type":"array","title":"Style Directives","default":[]},"current_version_number":{"type":"integer","title":"Current Version Number","default":0},"google_docs_editing_enabled":{"type":"boolean","title":"Google Docs Editing Enabled","default":false},"has_typeset_interior":{"type":"boolean","title":"Has Typeset Interior","default":false},"paper_markup_scan_enabled":{"type":"boolean","title":"Paper Markup Scan Enabled","default":false},"editor_edit_mode_enabled":{"type":"boolean","title":"Editor Edit Mode Enabled","default":false},"editor_image_mode_enabled":{"type":"boolean","title":"Editor Image Mode Enabled","default":false},"listen_along_enabled":{"type":"boolean","title":"Listen Along Enabled","default":false},"listen_player_v2_enabled":{"type":"boolean","title":"Listen Player V2 Enabled","default":false},"guided_review_enabled":{"type":"boolean","title":"Guided Review Enabled","default":false},"guided_finish_keep_working":{"type":"boolean","title":"Guided Finish Keep Working","default":false},"images_disabled":{"type":"boolean","title":"Images Disabled","default":false},"diy_mode":{"type":"boolean","title":"Diy Mode","default":false},"diy_small_edits_free":{"type":"boolean","title":"Diy Small Edits Free","default":false},"diy_small_fixes_past_cap":{"type":"boolean","title":"Diy Small Fixes Past Cap","default":false},"diy_last_fix_needed_rewrite":{"type":"boolean","title":"Diy Last Fix Needed Rewrite","default":false},"diy_last_fix_try_again":{"type":"boolean","title":"Diy Last Fix Try Again","default":false},"title_only_chapter_headings":{"type":"boolean","title":"Title Only Chapter Headings","default":false}},"type":"object","required":["id","chapter_number","title"],"title":"ChapterReadResponse","description":"The current draft of one chapter for the in-portal reader."},"ChapterReadThroughRequest":{"properties":{"version":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"ChapterReadThroughRequest"},"ChapterReadThroughResponse":{"properties":{"recorded":{"type":"boolean","title":"Recorded"},"retry":{"type":"boolean","title":"Retry","default":false}},"type":"object","required":["recorded"],"title":"ChapterReadThroughResponse"},"ChapterReopenRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"ChapterReopenRequest","description":"Staff: reopen one approved chapter for author edits (2026-10-05).\n\n``reason`` is the author's request as staff saw it; it is stored on the\n``chapter_reopened`` project event for the audit trail."},"ChapterRevisionDetail":{"properties":{"version_number":{"type":"integer","title":"Version Number"},"source":{"type":"string","title":"Source"},"draft_content":{"type":"string","title":"Draft Content"},"word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count"},"label":{"type":"string","title":"Label"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["version_number","source","draft_content","label"],"title":"ChapterRevisionDetail","description":"One draft snapshot with its full text."},"ChapterRevisionListResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"current_version_number":{"type":"integer","title":"Current Version Number","default":0},"revisions":{"items":{"$ref":"#/components/schemas/ChapterRevisionSummary"},"type":"array","title":"Revisions","default":[]}},"type":"object","required":["chapter_id"],"title":"ChapterRevisionListResponse","description":"All snapshots for a chapter, newest first."},"ChapterRevisionSummary":{"properties":{"version_number":{"type":"integer","title":"Version Number"},"source":{"type":"string","title":"Source"},"word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count"},"label":{"type":"string","title":"Label"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["version_number","source","label"],"title":"ChapterRevisionSummary","description":"Metadata for one draft snapshot (no full text)."},"ChapterScope":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"type":"string","maxLength":4000,"minLength":1,"title":"Description"},"content_targets":{"items":{"type":"string","maxLength":500,"minLength":1},"type":"array","maxItems":30,"title":"Content Targets"},"image_plan":{"anyOf":[{"items":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","maxProperties":20},"type":"array","maxItems":30},{"type":"null"}],"title":"Image Plan"}},"additionalProperties":false,"type":"object","required":["title","description"],"title":"ChapterScope"},"ChapterSeenRequest":{"properties":{"version":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Version"},"readonly":{"type":"boolean","title":"Readonly","default":false}},"additionalProperties":false,"type":"object","required":["version"],"title":"ChapterSeenRequest"},"ChapterSeenResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"compare_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare From"},"author_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Author Through"}},"type":"object","required":["enabled"],"title":"ChapterSeenResponse"},"ChapterShareFeedbackActionResponse":{"properties":{"item":{"$ref":"#/components/schemas/ChapterShareFeedbackItem"},"current_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version Number"}},"type":"object","required":["item"],"title":"ChapterShareFeedbackActionResponse"},"ChapterShareFeedbackItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"share_link_id":{"type":"string","format":"uuid","title":"Share Link Id"},"kind":{"type":"string","enum":["comment","suggestion"],"title":"Kind"},"reader_name":{"type":"string","title":"Reader Name"},"exact_quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exact Quote"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"suggested_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Text"},"status":{"type":"string","enum":["new","seen","accepted","dismissed"],"title":"Status"},"link_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Label"},"reader_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reader Email"},"link_mode":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"title":"Link Mode"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","share_link_id","kind","reader_name","status","created_at"],"title":"ChapterShareFeedbackItem"},"ChapterShareFeedbackResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChapterShareFeedbackItem"},"type":"array","title":"Items"},"new_count":{"type":"integer","title":"New Count","default":0}},"type":"object","required":["items"],"title":"ChapterShareFeedbackResponse"},"ChapterShareLink":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"},"mode":{"type":"string","enum":["view","comment","edit"],"title":"Mode"},"reader_name":{"type":"string","title":"Reader Name"},"reader_email":{"type":"string","title":"Reader Email"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"view_count":{"type":"integer","title":"View Count","default":0},"first_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Opened At"},"last_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Viewed At"},"read_to_end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read To End At"},"notes_count":{"type":"integer","title":"Notes Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","mode","reader_name","reader_email","created_at"],"title":"ChapterShareLink"},"ChapterShareLinksResponse":{"properties":{"links":{"items":{"$ref":"#/components/schemas/ChapterShareLink"},"type":"array","title":"Links"},"referral_link_active":{"type":"boolean","title":"Referral Link Active","default":false}},"type":"object","required":["links"],"title":"ChapterShareLinksResponse"},"ChapterSplitRequest":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"retained":{"$ref":"#/components/schemas/ChapterScope"},"inserted":{"$ref":"#/components/schemas/ChapterScope"},"author_request_ref":{"type":"string","maxLength":500,"minLength":1,"title":"Author Request Ref"},"idempotency_key":{"type":"string","maxLength":200,"minLength":1,"title":"Idempotency Key"},"interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"},"reopen_source":{"type":"boolean","title":"Reopen Source","default":false},"authorized_by_author_message":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Authorized By Author Message"},"authorized_chapters":{"items":{"type":"string","enum":["source","inserted"]},"type":"array","maxItems":2,"title":"Authorized Chapters"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["chapter_id","retained","inserted","author_request_ref","idempotency_key"],"title":"ChapterSplitRequest"},"ChapterStyleDirective":{"properties":{"directive":{"type":"string","title":"Directive"},"source_chapter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Chapter"},"learned_from_edits":{"type":"boolean","title":"Learned From Edits","default":false}},"type":"object","required":["directive"],"title":"ChapterStyleDirective","description":"A single durable style directive learned from the author's feedback."},"ChapterSummary":{"properties":{"chapter_number":{"type":"integer","title":"Chapter Number"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"}},"type":"object","required":["chapter_number","title","status"],"title":"ChapterSummary"},"ChapterVoiceVerdict":{"properties":{"chapter_id":{"type":"string","title":"Chapter Id"},"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"draft_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Version"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["chapter_id","verdict"],"title":"ChapterVoiceVerdict"},"ChatGptOptInRequest":{"properties":{"first_name":{"type":"string","maxLength":80,"minLength":1,"title":"First Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"type":"string","maxLength":30,"title":"Phone","default":""},"oppref":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Oppref"},"obref":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Obref"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"utm_content":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Content"}},"type":"object","required":["first_name","email"],"title":"ChatGptOptInRequest"},"ChatMessage":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","maxLength":10000,"minLength":1,"title":"Content"}},"type":"object","required":["role","content"],"title":"ChatMessage"},"ChatPollResponse":{"properties":{"status":{"type":"string","enum":["pending","done","error"],"title":"Status"},"response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response"},"usage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Usage"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["status"],"title":"ChatPollResponse"},"ChatRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","maxItems":50,"minItems":1,"title":"Messages"},"chat_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Chat Id"}},"type":"object","required":["messages"],"title":"ChatRequest"},"ChatStartResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"}},"type":"object","required":["task_id"],"title":"ChatStartResponse"},"ChecklistItem":{"properties":{"key":{"type":"string","title":"Key","default":""},"label":{"type":"string","title":"Label","default":""},"day":{"type":"integer","title":"Day","default":0},"day_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Day Date"},"owner":{"type":"string","title":"Owner","default":"author"},"source":{"type":"string","title":"Source","default":"curated"},"detail":{"type":"string","title":"Detail","default":""},"done":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Done"},"tickable":{"type":"boolean","title":"Tickable","default":false},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checked At"}},"additionalProperties":false,"type":"object","title":"ChecklistItem","description":"One launch-week row.\n\n``day`` is ALWAYS present and relative to launch day (0). ``day_date`` is the\nsame day as a calendar date, and is None whenever no launch anchor exists —\nthe relative plan still reads correctly without one.\n\n``done`` is tri-state: True/False for items we can actually observe, and None\nfor an item whose truth we do not know. ``tickable`` items are the manual\nones the author checks off themselves; everything else is derived from\nsignals and is read-only."},"ChecklistItemOut":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"why":{"type":"string","title":"Why"},"requirement":{"type":"string","title":"Requirement"},"consuming_stage":{"type":"string","title":"Consuming Stage"},"status":{"type":"string","title":"Status"},"day_one":{"type":"boolean","title":"Day One"}},"type":"object","required":["key","label","why","requirement","consuming_stage","status","day_one"],"title":"ChecklistItemOut"},"ChecklistResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"items":{"items":{"$ref":"#/components/schemas/ChecklistItemOut"},"type":"array","title":"Items"},"onboarding_complete":{"type":"boolean","title":"Onboarding Complete"},"blocking_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocking Reason"}},"type":"object","required":["project_id","items","onboarding_complete"],"title":"ChecklistResponse"},"CheckoutRecoveryRequest":{"properties":{"recovery_token":{"type":"string","maxLength":2048,"minLength":16,"title":"Recovery Token"}},"type":"object","required":["recovery_token"],"title":"CheckoutRecoveryRequest","description":"Recreate one allowlisted checkout from a signed server capability."},"CheckoutRequest":{"properties":{"price_id":{"type":"string","maxLength":255,"title":"Price Id"},"lead_id":{"type":"string","maxLength":255,"title":"Lead Id","default":""},"blueprint_id":{"type":"string","maxLength":255,"title":"Blueprint Id","default":""}},"type":"object","required":["price_id"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CheckoutResponse"},"CheckoutSessionRequest":{"properties":{"package_tier":{"type":"string","maxLength":100,"title":"Package Tier"},"package_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Package Version"},"payment_plan":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Payment Plan"},"stripe_price_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Stripe Price Id"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"client_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Client Email"},"lead_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Lead Id"},"touchpoint_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Touchpoint Id"},"success_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cancel Url"},"audiobook_addon":{"type":"boolean","title":"Audiobook Addon","default":false},"launch_bundle":{"type":"boolean","title":"Launch Bundle","default":false},"quote_token":{"anyOf":[{"type":"string","maxLength":4096,"minLength":16},{"type":"null"}],"title":"Quote Token"},"blueprint_token":{"anyOf":[{"type":"string","maxLength":4096,"minLength":16},{"type":"null"}],"title":"Blueprint Token"},"book_path":{"anyOf":[{"type":"string","enum":["standard","memoir"]},{"type":"null"}],"title":"Book Path"},"agreement_accepted":{"anyOf":[{"type":"boolean","const":true},{"type":"null"}],"title":"Agreement Accepted"},"agreement_version":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Agreement Version"},"source":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Source"}},"type":"object","required":["package_tier"],"title":"CheckoutSessionRequest"},"CheckoutSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"url":{"type":"string","title":"Url"}},"type":"object","required":["session_id","url"],"title":"CheckoutSessionResponse"},"CheckoutSessionStatusResponse":{"properties":{"status":{"type":"string","title":"Status"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"cold_webinar_purchase":{"type":"boolean","title":"Cold Webinar Purchase","default":false},"awaiting_blueprint":{"type":"boolean","title":"Awaiting Blueprint","default":false},"diy_kickoff_booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diy Kickoff Booking Url"},"diy_kickoff_route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diy Kickoff Route"},"diy_kickoff_strategist_first_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Diy Kickoff Strategist First Name"}},"type":"object","required":["status"],"title":"CheckoutSessionStatusResponse","description":"Post-payment bridge status (WF1-D86).\n\nStates:\n- ``ready``: project provisioned; a session cookie was set on this response.\n- ``provisioning``: payment confirmed, webhook/Celery still creating the\n  project — frontend should poll with grace.\n- ``pending_payment``: session exists but is not paid yet.\n- ``unknown``: session could not be verified (fail open to /login flow)."},"ChoiceChange":{"properties":{"line":{"type":"string","enum":["christian","true_stories"],"title":"Line"},"edition":{"type":"string","enum":["monthly","stories","three_weekly","lent_2027","advent"],"title":"Edition"},"on":{"type":"boolean","title":"On"},"wording_version":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Wording Version"}},"additionalProperties":false,"type":"object","required":["line","edition","on"],"title":"ChoiceChange"},"ChoicesBody":{"properties":{"changes":{"items":{"$ref":"#/components/schemas/ChoiceChange"},"type":"array","maxItems":12,"title":"Changes"}},"additionalProperties":false,"type":"object","title":"ChoicesBody"},"ClaimBody":{"properties":{"key":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Key"}},"additionalProperties":false,"type":"object","title":"ClaimBody"},"ClearBylineResponse":{"properties":{"slot":{"$ref":"#/components/schemas/ForewordSlot"}},"type":"object","required":["slot"],"title":"ClearBylineResponse"},"ClickBankOptInRequest":{"properties":{"first_name":{"type":"string","maxLength":80,"minLength":1,"title":"First Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"type":"string","maxLength":30,"title":"Phone","default":""}},"type":"object","required":["first_name","email"],"title":"ClickBankOptInRequest"},"ClickBody":{"properties":{"code":{"type":"string","maxLength":48,"minLength":1,"title":"Code"},"referrer_host":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referrer Host"},"target":{"type":"string","enum":["webinar","call"],"title":"Target","default":"webinar"}},"additionalProperties":false,"type":"object","required":["code"],"title":"ClickBody"},"ClientDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"type":"string","title":"Client Email"},"client_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Phone"},"package_tier":{"type":"string","title":"Package Tier"},"status":{"type":"string","title":"Status"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"interviews":{"items":{"$ref":"#/components/schemas/InterviewSummary"},"type":"array","title":"Interviews","default":[]},"chapters":{"items":{"$ref":"#/components/schemas/ChapterSummary"},"type":"array","title":"Chapters","default":[]}},"type":"object","required":["id","client_name","client_email","package_tier","status","created_at"],"title":"ClientDetail"},"ClientMessageRow":{"properties":{"direction":{"type":"string","maxLength":20,"title":"Direction"},"source":{"type":"string","maxLength":40,"title":"Source"},"team":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Team"},"sender":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Sender"},"kind":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Kind"},"channel":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Channel"},"status":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Status"},"handled_by":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Handled By"},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"preview":{"type":"string","maxLength":500,"title":"Preview","default":""},"at":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"At"}},"type":"object","required":["direction","source"],"title":"ClientMessageRow"},"ClientMessagesResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"messages":{"items":{"$ref":"#/components/schemas/ClientMessageRow"},"type":"array","maxItems":200,"title":"Messages"},"last_we_sent_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last We Sent At"},"last_they_sent_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last They Sent At"},"their_latest_is_unanswered":{"type":"boolean","title":"Their Latest Is Unanswered","default":false},"sources_unavailable":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Sources Unavailable"},"coverage_note":{"type":"string","maxLength":500,"title":"Coverage Note","default":""}},"type":"object","required":["project_id","messages"],"title":"ClientMessagesResponse"},"ClientPreferencesResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"book_goals":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Book Goals"},"target_audience":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Target Audience"},"tone_preferences":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tone Preferences"},"topics_to_avoid":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Topics To Avoid"},"book_directives":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Book Directives"},"competitor_books":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Competitor Books"},"onboarding_materials":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Onboarding Materials"},"manuscript_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manuscript Intent"},"manuscript_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manuscript Context"},"scheduling_preferences":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduling Preferences"},"brand_assets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Brand Assets"},"editorial_learnings":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Editorial Learnings"},"author_style_feedback":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Author Style Feedback"},"discovery_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Discovery Context"},"conversion_profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conversion Profile"}},"type":"object","required":["id","project_id"],"title":"ClientPreferencesResponse"},"ClientSetupDetail":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"type":"string","title":"Client Email"},"package_tier":{"type":"string","title":"Package Tier"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"workflow_state":{"type":"string","title":"Workflow State"},"readiness_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readiness State"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"ghl_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl User Id"},"ghl_user_location_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ghl User Location Valid"},"ghl_user_location_validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ghl User Location Validated At"},"token_installed":{"type":"boolean","title":"Token Installed","default":false},"token_healthy":{"type":"boolean","title":"Token Healthy","default":false},"social_accounts_connected":{"type":"boolean","title":"Social Accounts Connected","default":false},"setup_task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Setup Task Id"},"task_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Status"},"task_assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Assigned To"},"active_products":{"items":{"type":"string"},"type":"array","title":"Active Products","default":[]},"missing_requirements":{"items":{"type":"string"},"type":"array","title":"Missing Requirements","default":[]},"install_url_ready":{"type":"boolean","title":"Install Url Ready","default":false},"install_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Install Url"},"install_url_configured":{"type":"boolean","title":"Install Url Configured","default":false},"publish_readiness":{"additionalProperties":true,"type":"object","title":"Publish Readiness","default":{}},"ghl_oauth":{"additionalProperties":true,"type":"object","title":"Ghl Oauth","default":{}},"checklist_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checklist Title"},"checklist_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checklist Description"},"checklist_notes":{"type":"string","title":"Checklist Notes","default":""},"package_install_status":{"type":"string","title":"Package Install Status","default":"not_checked"},"package_install_detail":{"type":"string","title":"Package Install Detail","default":""}},"type":"object","required":["project_id","client_name","client_email","package_tier","created_at","workflow_state"],"title":"ClientSetupDetail"},"ClientSetupSummary":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"type":"string","title":"Client Email"},"package_tier":{"type":"string","title":"Package Tier"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"workflow_state":{"type":"string","title":"Workflow State"},"readiness_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readiness State"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"ghl_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl User Id"},"ghl_user_location_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ghl User Location Valid"},"ghl_user_location_validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ghl User Location Validated At"},"token_installed":{"type":"boolean","title":"Token Installed","default":false},"token_healthy":{"type":"boolean","title":"Token Healthy","default":false},"social_accounts_connected":{"type":"boolean","title":"Social Accounts Connected","default":false},"setup_task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Setup Task Id"},"task_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Status"},"task_assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Assigned To"},"active_products":{"items":{"type":"string"},"type":"array","title":"Active Products","default":[]},"missing_requirements":{"items":{"type":"string"},"type":"array","title":"Missing Requirements","default":[]}},"type":"object","required":["project_id","client_name","client_email","package_tier","created_at","workflow_state"],"title":"ClientSetupSummary"},"ClientSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"type":"string","title":"Client Email"},"package_tier":{"type":"string","title":"Package Tier"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","client_name","client_email","package_tier","status","created_at"],"title":"ClientSummary"},"CoAuthorAcceptRequest":{"properties":{"spoken_name":{"type":"string","maxLength":80,"minLength":1,"title":"Spoken Name"},"phone":{"type":"string","maxLength":32,"minLength":7,"title":"Phone"},"timezone":{"type":"string","maxLength":64,"minLength":3,"title":"Timezone"},"release_version":{"type":"string","maxLength":60,"minLength":1,"title":"Release Version"},"release_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Release Sha256"},"shares_phone":{"type":"boolean","title":"Shares Phone","default":false},"recording_consent":{"type":"boolean","title":"Recording Consent","default":false},"capacity":{"anyOf":[{"type":"string","enum":["author_18_or_older","parent_or_guardian"]},{"type":"null"}],"title":"Capacity"},"guardian_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Guardian Name"},"guardian_email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Guardian Email"},"bio":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Bio"}},"additionalProperties":false,"type":"object","required":["spoken_name","phone","timezone","release_version","release_sha256"],"title":"CoAuthorAcceptRequest"},"CoAuthorAddonCard":{"properties":{"authors":{"items":{"$ref":"#/components/schemas/CoAuthorCardAuthor"},"type":"array","title":"Authors"},"purchase":{"anyOf":[{"$ref":"#/components/schemas/CoAuthorPurchaseReceipt"},{"type":"null"}]},"can_buy":{"type":"boolean","title":"Can Buy","default":false},"invites_open":{"type":"boolean","title":"Invites Open","default":false},"max_authors":{"type":"integer","title":"Max Authors"},"seats_free":{"type":"integer","title":"Seats Free"},"seats_buyable":{"type":"integer","title":"Seats Buyable"},"seats_paid":{"type":"integer","title":"Seats Paid"},"seat_price_display":{"type":"string","title":"Seat Price Display"},"hours_per_seat":{"type":"integer","title":"Hours Per Seat"},"hours_added":{"type":"integer","title":"Hours Added"},"can_pay":{"type":"boolean","title":"Can Pay"}},"type":"object","required":["authors","max_authors","seats_free","seats_buyable","seats_paid","seat_price_display","hours_per_seat","hours_added","can_pay"],"title":"CoAuthorAddonCard"},"CoAuthorCardAuthor":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"is_account_holder":{"type":"boolean","title":"Is Account Holder"}},"type":"object","required":["name","status","is_account_holder"],"title":"CoAuthorCardAuthor"},"CoAuthorInviteResponse":{"properties":{"status":{"type":"string","title":"Status"},"invite_goes_to":{"type":"string","title":"Invite Goes To"}},"type":"object","required":["status","invite_goes_to"],"title":"CoAuthorInviteResponse"},"CoAuthorPurchaseReceipt":{"properties":{"status":{"type":"string","title":"Status"},"seats_granted":{"type":"integer","title":"Seats Granted","default":0}},"type":"object","required":["status"],"title":"CoAuthorPurchaseReceipt"},"CoAuthorSeatCheckoutRequest":{"properties":{"seats":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Seats"}},"additionalProperties":false,"type":"object","required":["seats"],"title":"CoAuthorSeatCheckoutRequest"},"CoAuthorSeatCheckoutResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CoAuthorSeatCheckoutResponse"},"CoachConversationListResponse":{"properties":{"status":{"$ref":"#/components/schemas/CoachStatus"},"conversations":{"items":{"$ref":"#/components/schemas/CoachConversationSummary"},"type":"array","title":"Conversations"}},"type":"object","required":["status","conversations"],"title":"CoachConversationListResponse"},"CoachConversationSummary":{"properties":{"id":{"type":"string","title":"Id"},"lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lesson Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id"],"title":"CoachConversationSummary"},"CoachMessage":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","enum":["learner","coach"],"title":"Role"},"content":{"type":"string","title":"Content"},"status":{"type":"string","enum":["pending","complete","failed"],"title":"Status"},"lesson_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lesson Id"},"redacted":{"type":"boolean","title":"Redacted","default":false},"suggested_followups":{"items":{"type":"string"},"type":"array","title":"Suggested Followups"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","role","content","status"],"title":"CoachMessage"},"CoachSendMessageRequest":{"properties":{"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"},"lesson_id":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lesson Id"}},"additionalProperties":false,"type":"object","required":["message"],"title":"CoachSendMessageRequest"},"CoachSendMessageResponse":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"learner_message":{"$ref":"#/components/schemas/CoachMessage"},"reply_message_id":{"type":"string","title":"Reply Message Id"},"status":{"type":"string","const":"pending","title":"Status","default":"pending"}},"type":"object","required":["conversation_id","learner_message","reply_message_id"],"title":"CoachSendMessageResponse"},"CoachStartConversationRequest":{"properties":{"lesson_id":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lesson Id"}},"additionalProperties":false,"type":"object","title":"CoachStartConversationRequest"},"CoachStatus":{"properties":{"has_coach":{"type":"boolean","title":"Has Coach"},"coach_access_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Coach Access Expires At"},"days_remaining":{"type":"integer","title":"Days Remaining","default":0},"daily_message_cap":{"type":"integer","title":"Daily Message Cap"},"total_message_cap":{"type":"integer","title":"Total Message Cap"}},"type":"object","required":["has_coach","daily_message_cap","total_message_cap"],"title":"CoachStatus"},"CoachThreadResponse":{"properties":{"conversation":{"$ref":"#/components/schemas/CoachConversationSummary"},"messages":{"items":{"$ref":"#/components/schemas/CoachMessage"},"type":"array","title":"Messages"},"pending":{"type":"boolean","title":"Pending"}},"type":"object","required":["conversation","messages","pending"],"title":"CoachThreadResponse"},"CodeBody":{"properties":{"request_id":{"type":"string","maxLength":64,"title":"Request Id"},"code":{"type":"string","maxLength":12,"title":"Code"}},"additionalProperties":false,"type":"object","required":["request_id","code"],"title":"CodeBody"},"CommitmentOverrideRequest":{"properties":{"status":{"type":"string","enum":["open","fulfilled","cancelled"],"title":"Status"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["status"],"title":"CommitmentOverrideRequest"},"CommitmentsSnapshot":{"properties":{"computed_at":{"type":"string","format":"date-time","title":"Computed At"},"cash":{"$ref":"#/components/schemas/CashPosition"},"reed":{"$ref":"#/components/schemas/ReedPosition"},"upcoming_expenses":{"items":{"$ref":"#/components/schemas/UpcomingExpense"},"type":"array","title":"Upcoming Expenses"},"upcoming_expenses_30d_cents":{"type":"integer","title":"Upcoming Expenses 30D Cents","default":0},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["computed_at"],"title":"CommitmentsSnapshot","description":"The expensive parts (Stripe, QuickBooks, sales report), refreshed hourly."},"CommitmentsView":{"properties":{"snapshot":{"anyOf":[{"$ref":"#/components/schemas/CommitmentsSnapshot"},{"type":"null"}]},"audiobooks":{"items":{"$ref":"#/components/schemas/AudiobookCommitment"},"type":"array","title":"Audiobooks"},"audiobook_cost_cents":{"type":"integer","title":"Audiobook Cost Cents","default":0},"audiobooks_open_cents":{"type":"integer","title":"Audiobooks Open Cents","default":0},"cash_on_hand_cents":{"type":"integer","title":"Cash On Hand Cents","default":0},"committed_cents":{"type":"integer","title":"Committed Cents","default":0},"available_now_cents":{"type":"integer","title":"Available Now Cents","default":0},"available_after_30d_cents":{"type":"integer","title":"Available After 30D Cents","default":0}},"type":"object","title":"CommitmentsView","description":"What the CFO page shows: the snapshot plus live audiobook statuses."},"CompanySigner":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"signed_on":{"type":"string","title":"Signed On"}},"type":"object","required":["name","title","signed_on"],"title":"CompanySigner"},"Comped":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":10,"title":"Reason"},"approver":{"type":"string","maxLength":120,"minLength":2,"title":"Approver"}},"additionalProperties":false,"type":"object","required":["reason","approver"],"title":"Comped","description":"A free book: a recorded finance decision, never a side effect (Mike, 2026-11-19)."},"CompleteInterviewRecapFollowUpRequest":{"properties":{"expected_generation":{"type":"string","maxLength":24,"pattern":"^[0-9a-f]{24}$","title":"Expected Generation"}},"additionalProperties":false,"type":"object","required":["expected_generation"],"title":"CompleteInterviewRecapFollowUpRequest","description":"Generation fence supplied by the exact portal card being completed."},"CompleteInterviewRecapFollowUpResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"recap_generation":{"type":"string","title":"Recap Generation"},"state":{"type":"string","const":"completed","title":"State"},"completed_at":{"type":"string","format":"date-time","title":"Completed At"}},"type":"object","required":["id","recap_generation","state","completed_at"],"title":"CompleteInterviewRecapFollowUpResponse","description":"Idempotent completion result for one recap follow-up occurrence."},"ComplianceBody":{"properties":{"typed_legal_name":{"type":"string","maxLength":120,"minLength":2,"title":"Typed Legal Name"},"accept":{"type":"boolean","const":true,"title":"Accept"},"version":{"type":"string","maxLength":40,"minLength":1,"title":"Version"}},"additionalProperties":false,"type":"object","required":["typed_legal_name","accept","version"],"title":"ComplianceBody"},"ComplianceCardAction":{"properties":{"action":{"type":"string","enum":["keep","soften","remove"],"title":"Action"}},"additionalProperties":false,"type":"object","required":["action"],"title":"ComplianceCardAction"},"ComplianceCreateBody":{"properties":{"profile_id":{"type":"string","format":"uuid","title":"Profile Id"},"summary":{"type":"string","maxLength":2000,"minLength":1,"title":"Summary"},"evidence_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Evidence Url"}},"additionalProperties":false,"type":"object","required":["profile_id","summary"],"title":"ComplianceCreateBody"},"CompliancePatchBody":{"properties":{"status":{"anyOf":[{"type":"string","enum":["open","correction_requested","resolved","suspended"]},{"type":"null"}],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"CompliancePatchBody"},"ConfirmManuscriptSplitRequest":{"properties":{"decision":{"type":"string","enum":["confirm","different_count","reference_only"],"title":"Decision"},"proposal_id":{"type":"string","maxLength":64,"minLength":8,"title":"Proposal Id"},"stated_chapter_count":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Stated Chapter Count"}},"type":"object","required":["decision","proposal_id"],"title":"ConfirmManuscriptSplitRequest","description":"The author's answer to \"does this match your draft?\".\n\n``different_count`` is the only decision that carries a number, and it is\nthe author's own count, not ours."},"ConfirmMaterialRoutingRequest":{"properties":{"target_chapter":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":1.0},{"type":"null"}],"title":"Target Chapter"},"answer":{"type":"string","enum":["chapter","uncertain"],"title":"Answer","default":"chapter"}},"additionalProperties":false,"type":"object","title":"ConfirmMaterialRoutingRequest","description":"The author's answer on the \"where does this belong?\" card.\n\n``{\"target_chapter\": n}`` (``answer`` defaults to ``\"chapter\"``, which keeps\na cached older portal working) or ``{\"answer\": \"uncertain\"}`` — \"Not sure,\nuse it where it fits best\", which files the material as a General Book\nSource and opens no ticket. Exactly one of the two is accepted."},"ConfirmTermFlagRequest":{"properties":{"action":{"type":"string","enum":["confirm","reject"],"title":"Action"},"spelling":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Spelling"}},"additionalProperties":false,"type":"object","required":["action"],"title":"ConfirmTermFlagRequest","description":"Author's answer to one suspected garbled-transcription-term flag.\n\nStrict model (author-facing PUT/PATCH rule): named fields only, bounded\nstring. ``spelling`` is required when ``action == \"confirm\"`` — enforced\nin the route (not here) so the 422 detail can reuse the same\n``sounds_like_rejection`` / ``normalize_term`` copy the transcription-terms\neditor already shows."},"ConsentBody":{"properties":{"marketing_updates":{"type":"boolean","title":"Marketing Updates"}},"additionalProperties":false,"type":"object","required":["marketing_updates"],"title":"ConsentBody"},"ConsentVideoConfirmRequest":{"properties":{"r2_key":{"type":"string","maxLength":500,"title":"R2 Key"},"accepted":{"type":"boolean","title":"Accepted"},"statement_version":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Statement Version"},"statement_sha256":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Statement Sha256"}},"additionalProperties":false,"type":"object","required":["r2_key","accepted"],"title":"ConsentVideoConfirmRequest","description":"Request body to confirm a consent-video upload (D4).\n\n``accepted`` must be True to record consent; the r2_key must resolve inside\nthe project's own prefix and the object must exist in R2."},"ConsentVideoPresignRequest":{"properties":{"filename":{"type":"string","maxLength":200,"title":"Filename"},"content_type":{"type":"string","maxLength":100,"title":"Content Type"},"statement_version":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Statement Version"},"statement_sha256":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Statement Sha256"}},"additionalProperties":false,"type":"object","required":["filename","content_type"],"title":"ConsentVideoPresignRequest","description":"Request body to presign a consent-video upload (D4).\n\nThe author records/uploads a short consent video that becomes the enforced\nlikeness-consent artifact for avatar renders. Explicit fields only, every\nstring bounded."},"ConsentVideoPresignResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"r2_key":{"type":"string","title":"R2 Key"}},"type":"object","required":["upload_url","r2_key"],"title":"ConsentVideoPresignResponse","description":"Response with a presigned PUT URL for the consent video upload."},"ConsentedReader":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","title":"Email","default":""},"consented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consented At"}},"additionalProperties":false,"type":"object","title":"ConsentedReader","description":"One reader who explicitly asked the author to contact them.\n\nA row exists here ONLY because someone ticked an unchecked box on the public\npre-launch page. Cover-vote voters are never included: they never saw the\nbox. Clearing the consent timestamp removes the row from the next read."},"ConsentedReadersResponse":{"properties":{"readers":{"items":{"$ref":"#/components/schemas/ConsentedReader"},"type":"array","title":"Readers","default":[]},"total":{"type":"integer","title":"Total","default":0},"cap":{"type":"integer","title":"Cap","default":0},"caveat":{"type":"string","title":"Caveat","default":""}},"additionalProperties":false,"type":"object","title":"ConsentedReadersResponse","description":"The roster payload. Read-only by construction — there is no writer.\n\n``caveat`` carries the honest sentence when the read itself failed, so the\nrest of the page renders instead of 500ing on one unreadable list."},"ConsoleConfirmRequest":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"additionalProperties":false,"type":"object","required":["approve"],"title":"ConsoleConfirmRequest"},"ConsoleDecisionRequest":{"properties":{"choice":{"type":"string","enum":["yes","no","why"],"title":"Choice"},"text":{"type":"string","maxLength":1000,"title":"Text","default":""}},"additionalProperties":false,"type":"object","required":["choice"],"title":"ConsoleDecisionRequest","description":"Mike's one-tap answer on an open decision (same path as the Slack buttons)."},"ConsoleMessageRequest":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"additionalProperties":false,"type":"object","required":["body"],"title":"ConsoleMessageRequest"},"ContactPreferencesRequest":{"properties":{"pace":{"anyOf":[{"type":"string","enum":["sprint","standard","relaxed"]},{"type":"null"}],"title":"Pace"},"channel":{"anyOf":[{"type":"string","enum":["email","text","both"]},{"type":"null"}],"title":"Channel"},"text_quiet_start":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":6.0},{"type":"null"}],"title":"Text Quiet Start"},"text_quiet_end":{"anyOf":[{"type":"integer","maximum":22.0,"minimum":17.0},{"type":"null"}],"title":"Text Quiet End"}},"additionalProperties":false,"type":"object","title":"ContactPreferencesRequest"},"ContactRequest":{"properties":{"signup_id":{"type":"string","format":"uuid","title":"Signup Id"},"full_name":{"type":"string","maxLength":160,"minLength":1,"title":"Full Name"},"phone":{"type":"string","maxLength":30,"minLength":10,"title":"Phone"},"consent_version":{"type":"string","maxLength":60,"minLength":1,"title":"Consent Version"},"lead_event_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Lead Event Id"},"client_user_agent":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Client User Agent"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"type":"object","required":["signup_id","full_name","phone","consent_version"],"title":"ContactRequest"},"ContextPackStatus":{"properties":{"status":{"type":"string","enum":["none","pending","generating","ready","failed"],"title":"Status","default":"none"},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"},"items_read":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Items Read"}},"type":"object","title":"ContextPackStatus","description":"Pack block on GET /onboarding/sources (status 'none' when no row)."},"ContinueSeriesLookRequest":{"properties":{"source_project_id":{"type":"string","format":"uuid","title":"Source Project Id"}},"type":"object","required":["source_project_id"],"title":"ContinueSeriesLookRequest","description":"Copy a completed book's final cover into the session book's references.\n\n``source_project_id`` is book N (the finished book whose cover look to\ncontinue); the target is always the current session book (book N+1)."},"ContinueSeriesLookResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"reference_image_keys":{"items":{"type":"string"},"type":"array","title":"Reference Image Keys"}},"type":"object","required":["status","message"],"title":"ContinueSeriesLookResponse"},"CorrectLinkUpdate":{"properties":{"prospect_id":{"type":"string","format":"uuid","title":"Prospect Id"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"actioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actioned At"},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source","default":"dm_outreach"},"action":{"type":"string","const":"correct_link","title":"Action"},"observed_profile_link":{"type":"string","maxLength":2000,"title":"Observed Profile Link"},"corrected_profile_link":{"type":"string","maxLength":2000,"title":"Corrected Profile Link"}},"additionalProperties":false,"type":"object","required":["prospect_id","action","observed_profile_link","corrected_profile_link"],"title":"CorrectLinkUpdate"},"CouncilRequest":{"properties":{"text":{"type":"string","maxLength":2000,"title":"Text","default":""},"roles":{"anyOf":[{"items":{"type":"string","maxLength":40},"type":"array","maxItems":8},{"type":"null"}],"title":"Roles"},"decision_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Decision Id"},"rounds":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Rounds","default":2},"voter_role":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[a-z_]{2,20}$"},{"type":"null"}],"title":"Voter Role"},"vote":{"anyOf":[{"type":"string","enum":["yes","no","abstain"]},{"type":"null"}],"title":"Vote"},"rationale":{"type":"string","maxLength":2000,"title":"Rationale","default":""}},"additionalProperties":false,"type":"object","title":"CouncilRequest","description":"ask / debate / challenge: ``text`` (+ roles, rounds) → queued, one Opus call per role.\n\nvote: ``decision_id`` alone → every exec votes (queued). ``decision_id`` + ``voter_role``\n+ ``vote`` (+ ``rationale``) → records that one vote now (the /meeting skill's\nsubagents vote in the session and post each one here). Echo and Vera do not vote."},"CourseApprovalResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"approval_type":{"type":"string","title":"Approval Type"},"status":{"type":"string","title":"Status","default":"pending"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"payload_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payload Hash"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","course_project_id","approval_type","created_at"],"title":"CourseApprovalResponse"},"CourseAssetDownloadResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["download_url"],"title":"CourseAssetDownloadResponse","description":"Presigned download response for a course asset."},"CourseAssetListItem":{"properties":{"id":{"type":"string","title":"Id"},"asset_type":{"type":"string","title":"Asset Type"},"title":{"type":"string","title":"Title"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"},"status":{"type":"string","title":"Status"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"delivery_notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Notice"}},"type":"object","required":["id","asset_type","title","status"],"title":"CourseAssetListItem","description":"Downloadable course asset shown in the course portal."},"CourseCommerceBindingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"ghl_location_id":{"type":"string","title":"Ghl Location Id"},"ghl_product_id":{"type":"string","title":"Ghl Product Id"},"ghl_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Price Id"},"ghl_price_type":{"type":"string","const":"one_time","title":"Ghl Price Type","default":"one_time"},"approved_unit_amount_cents":{"type":"integer","title":"Approved Unit Amount Cents"},"currency":{"type":"string","title":"Currency"},"checkout_url":{"type":"string","title":"Checkout Url"},"generation":{"type":"string","format":"uuid","title":"Generation"},"active":{"type":"boolean","title":"Active"},"allow_test_mode":{"type":"boolean","title":"Allow Test Mode","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","course_project_id","project_id","ghl_location_id","ghl_product_id","approved_unit_amount_cents","currency","checkout_url","generation","active","created_at","updated_at"],"title":"CourseCommerceBindingResponse"},"CourseCommerceBindingUpsert":{"properties":{"ghl_product_id":{"type":"string","maxLength":200,"minLength":1,"title":"Ghl Product Id"},"ghl_price_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ghl Price Id"},"ghl_price_type":{"type":"string","const":"one_time","title":"Ghl Price Type","default":"one_time"},"approved_unit_amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Approved Unit Amount Cents"},"currency":{"type":"string","pattern":"^[a-z]{3}$","title":"Currency","default":"usd"},"checkout_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Checkout Url"},"active":{"type":"boolean","title":"Active","default":true},"allow_test_mode":{"type":"boolean","title":"Allow Test Mode","default":false}},"additionalProperties":false,"type":"object","required":["ghl_product_id","approved_unit_amount_cents","checkout_url"],"title":"CourseCommerceBindingUpsert"},"CourseCurriculumModuleResponse":{"properties":{"module":{"$ref":"#/components/schemas/CourseModuleResponse"},"lessons":{"items":{"$ref":"#/components/schemas/CourseLessonResponse"},"type":"array","title":"Lessons"}},"type":"object","required":["module","lessons"],"title":"CourseCurriculumModuleResponse","description":"Module plus its lessons in the curriculum review view."},"CourseCurriculumResponse":{"properties":{"outline":{"anyOf":[{"$ref":"#/components/schemas/CourseOutlineResponse"},{"type":"null"}]},"modules":{"items":{"$ref":"#/components/schemas/CourseCurriculumModuleResponse"},"type":"array","title":"Modules"},"status":{"type":"string","title":"Status"}},"type":"object","required":["modules","status"],"title":"CourseCurriculumResponse","description":"Curriculum review payload for the course portal."},"CourseDeliveryApprovalResponse":{"properties":{"status":{"type":"string","title":"Status"},"transitioned":{"type":"boolean","title":"Transitioned"},"current_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Status"}},"type":"object","required":["status","transitioned"],"title":"CourseDeliveryApprovalResponse","description":"Final delivery approval response."},"CourseDeliveryConfigResponse":{"properties":{"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"native_delivery_enabled":{"type":"boolean","title":"Native Delivery Enabled","default":false},"drip_mode":{"type":"string","enum":["sequential","date_offset","all"],"title":"Drip Mode","default":"sequential"},"drip_interval_days":{"type":"integer","title":"Drip Interval Days","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["course_project_id"],"title":"CourseDeliveryConfigResponse"},"CourseDeliveryConfigUpsert":{"properties":{"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"native_delivery_enabled":{"type":"boolean","title":"Native Delivery Enabled","default":false},"drip_mode":{"type":"string","enum":["sequential","date_offset","all"],"title":"Drip Mode","default":"sequential"},"drip_interval_days":{"type":"integer","maximum":365.0,"minimum":0.0,"title":"Drip Interval Days","default":0}},"type":"object","required":["course_project_id"],"title":"CourseDeliveryConfigUpsert"},"CourseGhlBuildResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"ghl_location_id":{"type":"string","title":"Ghl Location Id"},"snapshot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Id"},"status":{"type":"string","title":"Status","default":"pending"},"custom_values_pushed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Custom Values Pushed At"},"custom_values_push_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Values Push Status"},"custom_values_push_errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Custom Values Push Errors","default":[]},"va_task_ids":{"items":{"type":"string"},"type":"array","title":"Va Task Ids","default":[]},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"offer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Id"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"sales_page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Page Url"},"membership_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Url"},"assets_uploaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assets Uploaded At"},"qa_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Qa Completed At"},"qa_screenshots":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Qa Screenshots","default":[]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","course_project_id","project_id","ghl_location_id","created_at","updated_at"],"title":"CourseGhlBuildResponse"},"CourseInterviewListItem":{"properties":{"id":{"type":"string","title":"Id"},"interview_id":{"type":"string","title":"Interview Id"},"course_subtype":{"type":"string","title":"Course Subtype"},"status":{"type":"string","title":"Status"},"scheduled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","interview_id","course_subtype","status"],"title":"CourseInterviewListItem","description":"Course interview list row."},"CourseLessonResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_module_id":{"type":"string","format":"uuid","title":"Course Module Id"},"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"lesson_number":{"type":"integer","title":"Lesson Number"},"title":{"type":"string","title":"Title"},"lesson_type":{"type":"string","title":"Lesson Type","default":"concept"},"learning_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Learning Outcome"},"script_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script Markdown"},"slide_outline_json":{"additionalProperties":true,"type":"object","title":"Slide Outline Json","default":{}},"narration_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narration Script"},"estimated_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Minutes"},"source_citations_json":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Source Citations Json","default":[]},"status":{"type":"string","title":"Status","default":"planned"},"requires_author_recording":{"type":"boolean","title":"Requires Author Recording","default":false},"recording_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Type"},"recording_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Brief"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","course_module_id","course_project_id","lesson_number","title","created_at","updated_at"],"title":"CourseLessonResponse"},"CourseModuleInput":{"properties":{"title":{"type":"string","maxLength":160,"minLength":1,"title":"Title"},"lessons":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Lessons"}},"additionalProperties":false,"type":"object","required":["title"],"title":"CourseModuleInput"},"CourseModuleResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"outline_version_id":{"type":"string","format":"uuid","title":"Outline Version Id"},"module_number":{"type":"integer","title":"Module Number"},"title":{"type":"string","title":"Title"},"promise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promise"},"learning_outcomes":{"items":{"type":"string"},"type":"array","title":"Learning Outcomes","default":[]},"core_concepts":{"items":{"type":"string"},"type":"array","title":"Core Concepts","default":[]},"implementation_assignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation Assignment"},"estimated_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Minutes"},"status":{"type":"string","title":"Status","default":"planned"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","course_project_id","outline_version_id","module_number","title","created_at","updated_at"],"title":"CourseModuleResponse"},"CourseOutlineResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_project_id":{"type":"string","format":"uuid","title":"Course Project Id"},"version":{"type":"integer","title":"Version"},"status":{"type":"string","title":"Status"},"course_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Name"},"course_promise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Promise"},"target_buyer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Buyer"},"module_count":{"type":"integer","title":"Module Count","default":0},"lesson_count":{"type":"integer","title":"Lesson Count","default":0},"outline_json":{"additionalProperties":true,"type":"object","title":"Outline Json","default":{}},"source_snapshot":{"additionalProperties":true,"type":"object","title":"Source Snapshot","default":{}},"approval_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"}},"type":"object","required":["id","course_project_id","version","status","created_at"],"title":"CourseOutlineResponse"},"CourseOverview":{"properties":{"course_project":{"anyOf":[{"$ref":"#/components/schemas/CourseProjectResponse"},{"type":"null"}]},"outline":{"anyOf":[{"$ref":"#/components/schemas/CourseOutlineResponse"},{"type":"null"}]},"modules":{"items":{"$ref":"#/components/schemas/CourseModuleResponse"},"type":"array","title":"Modules","default":[]},"interviews_completed":{"type":"integer","title":"Interviews Completed","default":0},"interviews_total":{"type":"integer","title":"Interviews Total","default":0},"assets_complete":{"type":"integer","title":"Assets Complete","default":0},"assets_total":{"type":"integer","title":"Assets Total","default":0},"videos_complete":{"type":"integer","title":"Videos Complete","default":0},"videos_total":{"type":"integer","title":"Videos Total","default":0},"approvals":{"items":{"$ref":"#/components/schemas/CourseApprovalResponse"},"type":"array","title":"Approvals","default":[]},"ghl_build":{"anyOf":[{"$ref":"#/components/schemas/CourseGhlBuildResponse"},{"type":"null"}]}},"type":"object","title":"CourseOverview","description":"Aggregate model for the portal Course tab."},"CourseProjectResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"status":{"type":"string","title":"Status"},"target_buyer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Buyer"},"buyer_problem":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Problem"},"course_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Name"},"course_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Subtitle"},"course_promise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Promise"},"pricing_recommendation_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pricing Recommendation Cents"},"delivery_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Model"},"default_video_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Video Mode"},"author_video_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Video Mode"},"ghl_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Location Id"},"diagnostic_json":{"additionalProperties":true,"type":"object","title":"Diagnostic Json","default":{}},"narration_voice_selection":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narration Voice Selection"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","project_id","status","created_at","updated_at"],"title":"CourseProjectResponse"},"CourseRecordingAssignmentItem":{"properties":{"lesson_id":{"type":"string","title":"Lesson Id"},"lesson_number":{"type":"integer","title":"Lesson Number"},"title":{"type":"string","title":"Title"},"recording_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Type"},"recording_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Brief"},"status":{"type":"string","title":"Status"},"module_id":{"type":"string","title":"Module Id"}},"type":"object","required":["lesson_id","lesson_number","title","status","module_id"],"title":"CourseRecordingAssignmentItem","description":"Author recording assignment row."},"CourseRecordingAssignmentsResponse":{"properties":{"assignments":{"items":{"$ref":"#/components/schemas/CourseRecordingAssignmentItem"},"type":"array","title":"Assignments"},"extraction_needs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Extraction Needs"},"has_recording_needs":{"type":"boolean","title":"Has Recording Needs"},"total_author_recordings":{"type":"integer","title":"Total Author Recordings"}},"type":"object","required":["assignments","extraction_needs","has_recording_needs","total_author_recordings"],"title":"CourseRecordingAssignmentsResponse","description":"Recording assignment payload for author-recorded course material."},"CourseRecordingUploadResponse":{"properties":{"status":{"type":"string","title":"Status"},"r2_key":{"type":"string","title":"R2 Key"},"upload_type":{"type":"string","title":"Upload Type"},"file_size":{"type":"integer","title":"File Size"}},"type":"object","required":["status","r2_key","upload_type","file_size"],"title":"CourseRecordingUploadResponse","description":"Response after uploading a course recording to R2."},"CourseSessionRequest":{"properties":{"enrollment_id":{"type":"string","format":"uuid","title":"Enrollment Id"},"access_token":{"type":"string","maxLength":128,"title":"Access Token"}},"additionalProperties":false,"type":"object","required":["enrollment_id","access_token"],"title":"CourseSessionRequest"},"CourseStatusResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"CourseStatusResponse","description":"Simple status response for course approval actions."},"CourseStrategyResponse":{"properties":{"strategy":{"additionalProperties":true,"type":"object","title":"Strategy","default":{}},"names":{"additionalProperties":true,"type":"object","title":"Names","default":{}},"status":{"type":"string","title":"Status"},"download_asset_id":{"type":"string","title":"Download Asset Id"}},"type":"object","required":["status","download_asset_id"],"title":"CourseStrategyResponse","description":"Strategy brief payload for the course portal."},"CourseUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Title"},"promise":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Promise"},"modules":{"anyOf":[{"items":{"$ref":"#/components/schemas/CourseModuleInput"},"type":"array","maxItems":20},{"type":"null"}],"title":"Modules"},"outcomes":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":12},{"type":"null"}],"title":"Outcomes"},"price_line":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Price Line"},"checkout_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Checkout Url"},"members_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Members Url"}},"additionalProperties":false,"type":"object","title":"CourseUpdate","description":"Course / membership teaser (Command tier). AUTHOR-PROVIDED ONLY. A null\n``title`` (or an all-empty payload) clears the course page.\n\nPARTIAL update: ``modules`` and ``outcomes`` default to None = \"not\ncarried, preserve the stored value\". The basic metadata form only sends\nscalar fields and must not erase modules/outcomes it never edited (codex\nR?-P2). Send an empty list explicitly to clear either one."},"CourseVoiceSelectionRequest":{"properties":{"selection":{"type":"string","maxLength":64,"title":"Selection","description":"A curated voice_id or 'author_clone'."}},"type":"object","required":["selection"],"title":"CourseVoiceSelectionRequest","description":"Buyer's narrator-voice choice for course audio."},"CoverBody":{"properties":{"cover_id":{"type":"string","maxLength":16,"minLength":1,"title":"Cover Id"}},"additionalProperties":false,"type":"object","required":["cover_id"],"title":"CoverBody"},"CoverBriefInput":{"properties":{"style":{"anyOf":[{"type":"string","enum":["photographic","illustrated","abstract","typographic","minimalist"],"maxLength":500},{"type":"null"}],"title":"Style"},"mood":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Mood"},"color_palette":{"anyOf":[{"items":{"type":"string","maxLength":200},"type":"array","maxItems":12},{"type":"null"}],"title":"Color Palette"},"imagery_keywords":{"anyOf":[{"items":{"type":"string","maxLength":200},"type":"array","maxItems":50},{"type":"null"}],"title":"Imagery Keywords"},"avoid_elements":{"anyOf":[{"items":{"type":"string","maxLength":200},"type":"array","maxItems":50},{"type":"null"}],"title":"Avoid Elements"},"typography_preference":{"anyOf":[{"type":"string","enum":["serif_classic","serif_modern","sans_serif","display","handwritten"],"maxLength":500},{"type":"null"}],"title":"Typography Preference"},"author_notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Author Notes"}},"type":"object","title":"CoverBriefInput","description":"Author's cover preferences — low-friction input."},"CoverBriefJobResponse":{"properties":{"status":{"type":"string","title":"Status"},"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["status","job_id"],"title":"CoverBriefJobResponse","description":"Queued cover brief generation job."},"CoverBriefRequest":{"properties":{"vision_text":{"type":"string","maxLength":2000,"title":"Vision Text","default":""}},"additionalProperties":false,"type":"object","title":"CoverBriefRequest","description":"Author's free-text cover vision."},"CoverChangeRequest":{"properties":{"feedback":{"type":"string","maxLength":5000,"title":"Feedback"},"regenerate":{"type":"boolean","title":"Regenerate","default":false}},"type":"object","required":["feedback"],"title":"CoverChangeRequest","description":"Author requests changes to cover direction."},"CoverConceptSelectRequest":{"properties":{"concept_id":{"type":"string","maxLength":200,"title":"Concept Id"}},"type":"object","required":["concept_id"],"title":"CoverConceptSelectRequest","description":"Author selects a cover concept direction."},"CoverNameBody":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"CoverNameBody"},"CoverNoneOfTheseRequest":{"properties":{"feedback":{"type":"string","maxLength":1500,"minLength":1,"title":"Feedback"}},"type":"object","required":["feedback"],"title":"CoverNoneOfTheseRequest","description":"Author rejects every offered cover and says what she wants instead."},"CoverRefineRequest":{"properties":{"instruction":{"type":"string","maxLength":1000,"minLength":1,"title":"Instruction"}},"additionalProperties":false,"type":"object","required":["instruction"],"title":"CoverRefineRequest","description":"Refine a cover concept with an edit instruction (\"Change something\")."},"CoverRefineResponse":{"properties":{"status":{"type":"string","title":"Status"},"concept_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Concept Id"}},"type":"object","required":["status"],"title":"CoverRefineResponse","description":"Result of kicking off a concept refinement."},"CoverVersionEntry":{"properties":{"concept_id":{"type":"string","title":"Concept Id"},"generated_asset_id":{"type":"string","title":"Generated Asset Id"},"r2_key":{"type":"string","title":"R2 Key","default":""},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"refinement_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refinement Instruction"},"average_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score"},"is_current":{"type":"boolean","title":"Is Current","default":false}},"type":"object","required":["concept_id","generated_asset_id"],"title":"CoverVersionEntry","description":"One node in a concept's lineage FAMILY (oldest -> newest).\n\nA refinement creates a CHILD of the supplied concept, so the strip shows the\nwhole family (root -> all descendants), not just the ancestor chain. The\nrequested concept is flagged with ``is_current``."},"CoverVersionHistoryResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"concept_id":{"type":"string","title":"Concept Id"},"versions":{"items":{"$ref":"#/components/schemas/CoverVersionEntry"},"type":"array","title":"Versions"},"refinements_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refinements Used"},"refinements_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refinements Included"}},"type":"object","required":["project_id","concept_id"],"title":"CoverVersionHistoryResponse","description":"Full lineage family for a concept, oldest -> newest."},"CoverVoteConcept":{"properties":{"choice":{"type":"string","title":"Choice"},"concept_id":{"type":"string","title":"Concept Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"}},"type":"object","required":["choice","concept_id"],"title":"CoverVoteConcept"},"CoverVotePageResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"book_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Subtitle"},"book_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Description"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_headshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Headshot Url"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio"},"headline":{"type":"string","title":"Headline"},"instructions":{"type":"string","title":"Instructions"},"cta_copy":{"type":"string","title":"Cta Copy"},"cover_concepts":{"items":{"$ref":"#/components/schemas/CoverVoteConcept"},"type":"array","title":"Cover Concepts"},"vote_percentages":{"additionalProperties":{"type":"number"},"type":"object","title":"Vote Percentages"},"total_votes":{"type":"integer","title":"Total Votes"},"voting_closed":{"type":"boolean","title":"Voting Closed","default":false},"template":{"type":"string","title":"Template","default":"elegant"},"brand_colors":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Brand Colors","default":{}},"referral_url":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Referral Url"},"canonical_url":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Canonical Url"}},"type":"object","required":["project_id","headline","instructions","cta_copy","cover_concepts","vote_percentages","total_votes"],"title":"CoverVotePageResponse"},"CoverVoteRequest":{"properties":{"voter_name":{"type":"string","maxLength":200,"minLength":1,"title":"Voter Name"},"voter_email":{"type":"string","maxLength":254,"format":"email","title":"Voter Email"},"voter_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Voter Phone"},"cover_choice":{"type":"string","maxLength":1,"pattern":"^[1-8A-Ha-h]$","title":"Cover Choice"},"consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent"}},"type":"object","required":["voter_name","voter_email","cover_choice"],"title":"CoverVoteRequest"},"CoverVoteResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"vote_percentages":{"additionalProperties":{"type":"number"},"type":"object","title":"Vote Percentages"},"total_votes":{"type":"integer","title":"Total Votes"},"chapter_1_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chapter 1 Url"}},"type":"object","required":["success","vote_percentages","total_votes"],"title":"CoverVoteResponse"},"CoverVoteResultsResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"total_votes":{"type":"integer","title":"Total Votes"},"vote_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Vote Counts"},"vote_percentages":{"additionalProperties":{"type":"number"},"type":"object","title":"Vote Percentages"},"concepts":{"items":{"$ref":"#/components/schemas/CoverVoteConcept"},"type":"array","title":"Concepts"},"public_url":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Public Url"}},"type":"object","required":["project_id","total_votes","vote_counts","vote_percentages","concepts"],"title":"CoverVoteResultsResponse","description":"Author-facing vote results."},"CoverVoteSlugRenameRequest":{"properties":{"new_slug":{"type":"string","maxLength":200,"minLength":1,"title":"New Slug"}},"type":"object","required":["new_slug"],"title":"CoverVoteSlugRenameRequest","description":"Operator rename of a project's public cover-vote / pre-launch slug.\n\nThe submitted value is normalized server-side (``generate_slug``); the old\nslug is retired into ``cover_vote_slug_aliases`` and keeps redirecting."},"CoworkAsinEntry":{"properties":{"format":{"type":"string","maxLength":40,"minLength":1,"title":"Format","description":"Format label, e.g. Kindle. Must be non-blank."},"asin":{"type":"string","maxLength":10,"pattern":"^[A-Z0-9]{10}$","title":"Asin","description":"10-character Amazon ASIN (uppercase alphanumeric)."},"apply":{"type":"boolean","title":"Apply","description":"Whether A+ content applies to this format.","default":true},"parent":{"type":"boolean","title":"Parent","description":"This is the parent ASIN of the product family.","default":false}},"additionalProperties":false,"type":"object","required":["format","asin"],"title":"CoworkAsinEntry","description":"One per-format ASIN encountered in KDP's Apply-ASINs picker."},"CoworkAsinWriteback":{"properties":{"asins":{"items":{"$ref":"#/components/schemas/CoworkAsinEntry"},"type":"array","maxItems":6,"title":"Asins","description":"Per-format ASINs encountered in the picker (all formats shown)."}},"additionalProperties":false,"type":"object","title":"CoworkAsinWriteback","description":"Write-back body: the ASINs the operator encountered."},"CreateChapterShareLinkRequest":{"properties":{"mode":{"type":"string","enum":["view","comment","edit"],"title":"Mode"},"reader_name":{"type":"string","maxLength":80,"minLength":1,"title":"Reader Name"},"reader_email":{"type":"string","maxLength":254,"format":"email","title":"Reader Email"},"label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Label"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days"}},"additionalProperties":false,"type":"object","required":["mode","reader_name","reader_email"],"title":"CreateChapterShareLinkRequest"},"CreateExperimentRequest":{"properties":{"key":{"type":"string","maxLength":100,"title":"Key"},"surface":{"type":"string","maxLength":100,"title":"Surface"},"hypothesis":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Hypothesis"},"variants":{"items":{"$ref":"#/components/schemas/ExperimentVariant"},"type":"array","maxItems":20,"minItems":2,"title":"Variants"},"created_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Created By"},"primary_event":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Primary Event"},"guardrail_event":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Guardrail Event"},"decision_config":{"anyOf":[{"additionalProperties":true,"propertyNames":{"maxLength":64},"type":"object","maxProperties":50},{"type":"null"}],"title":"Decision Config"},"render":{"anyOf":[{"$ref":"#/components/schemas/ExperimentRenderConfig"},{"type":"null"}]}},"type":"object","required":["key","surface","variants"],"title":"CreateExperimentRequest","description":"POST /ops/experiments — explicit, bounded fields."},"CreateExpertForewordRequest":{"properties":{"expert_name":{"type":"string","maxLength":120,"minLength":1,"title":"Expert Name"},"expert_email":{"type":"string","maxLength":254,"format":"email","title":"Expert Email"},"credentials":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Credentials"},"author_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Author Note"}},"additionalProperties":false,"type":"object","required":["expert_name","expert_email"],"title":"CreateExpertForewordRequest"},"CreateFinancingLinkRequest":{"properties":{"buyer_name":{"type":"string","maxLength":200,"minLength":1,"title":"Buyer Name","default":"Financing customer"},"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"buyer_phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Buyer Phone"},"track":{"type":"string","enum":["authority","packages"],"title":"Track"},"package_code":{"anyOf":[{"type":"string","enum":["book_package","business_package","backend_package"]},{"type":"null"}],"title":"Package Code"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"product_code":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Product Code"},"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false},"audiobook":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Audiobook"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Ghl Contact Id"}},"type":"object","required":["buyer_email","track"],"title":"CreateFinancingLinkRequest"},"CreateImportSessionRequest":{"properties":{"intent":{"type":"string","enum":["finished_book","partial_book"],"title":"Intent"},"replace_plan":{"type":"boolean","title":"Replace Plan","default":false}},"type":"object","required":["intent"],"title":"CreateImportSessionRequest"},"CreateIntentRequest":{"properties":{"funnel_slug":{"type":"string","maxLength":100,"title":"Funnel Slug"},"step_slug":{"type":"string","maxLength":100,"title":"Step Slug"},"full_name":{"type":"string","maxLength":200,"title":"Full Name"},"email":{"type":"string","maxLength":320,"title":"Email"},"phone":{"type":"string","maxLength":40,"title":"Phone"},"book_topic":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Book Topic"},"order_bump":{"type":"boolean","title":"Order Bump","default":false},"price_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Price Version"},"checkout_attempt_id":{"type":"string","maxLength":64,"title":"Checkout Attempt Id"},"visitor_id":{"type":"string","maxLength":64,"title":"Visitor Id"},"event_id":{"type":"string","maxLength":64,"title":"Event Id"},"fbp":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Fbc"},"gclid":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Gclid"},"event_source_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Event Source Url"},"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"utm_term":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Term"},"utm_content":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Content"},"signup_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Signup Id"}},"type":"object","required":["funnel_slug","step_slug","full_name","email","phone","checkout_attempt_id","visitor_id","event_id"],"title":"CreateIntentRequest","description":"POST /api/checkout-native/create-intent.\n\nExplicit, size-bounded fields only (no ``dict``/``extra='allow'``). The\nclient's advisory variant travels via ``visitor_id`` + signed cookie on the\nserver side; prices are always resolved server-side from ``funnel_prices``."},"CreateIntentResponse":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"order_token":{"type":"string","maxLength":512,"title":"Order Token"},"client_secret":{"type":"string","maxLength":512,"title":"Client Secret"}},"type":"object","required":["order_id","order_token","client_secret"],"title":"CreateIntentResponse"},"CreateInvoiceRequest":{"properties":{"vendor":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Vendor"},"period_year":{"type":"integer","maximum":2100.0,"minimum":2020.0,"title":"Period Year"},"period_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Period Month"},"period_half":{"type":"integer","maximum":2.0,"minimum":1.0,"title":"Period Half"},"source_kind":{"type":"string","enum":["pdf","text"],"title":"Source Kind","default":"pdf"},"r2_key":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"R2 Key"},"raw_text":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Raw Text"}},"type":"object","required":["period_year","period_month","period_half"],"title":"CreateInvoiceRequest"},"CreateOpsUserRequest":{"properties":{"full_name":{"type":"string","maxLength":200,"title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"role":{"type":"string","maxLength":32,"pattern":"^(ops|admin|training_manager|ops_manager|sales|va_support)$","title":"Role"}},"type":"object","required":["full_name","email","password","role"],"title":"CreateOpsUserRequest"},"CreatePlacementRequest":{"properties":{"exact_quote":{"type":"string","maxLength":1000,"minLength":1,"title":"Exact Quote"},"prefix":{"type":"string","maxLength":64,"title":"Prefix","default":""},"suffix":{"type":"string","maxLength":64,"title":"Suffix","default":""},"approx_start":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Approx Start"},"approx_end":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Approx End"},"anchored_version_number":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Anchored Version Number","default":0},"source_kind":{"type":"string","enum":["author_upload","described_generation","safe_catalog_chart","feedback_intent"],"title":"Source Kind"},"instructions":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Instructions"}},"additionalProperties":false,"type":"object","required":["exact_quote","source_kind"],"title":"CreatePlacementRequest","description":"Create an image placement anchored to a passage in the current draft."},"CreateRepRequest":{"properties":{"full_name":{"type":"string","maxLength":200,"title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["full_name","email","password"],"title":"CreateRepRequest","description":"Request to create a new sales rep account."},"CreateRepWebhook":{"properties":{"rep":{"type":"string","maxLength":120,"minLength":2,"title":"Rep"},"secret_token":{"anyOf":[{"type":"string","maxLength":200,"minLength":8},{"type":"null"}],"title":"Secret Token"},"retire_older":{"type":"boolean","title":"Retire Older","default":false}},"additionalProperties":false,"type":"object","required":["rep"],"title":"CreateRepWebhook"},"CreateSalesPlanOfferRequest":{"properties":{"buyer_name":{"type":"string","maxLength":200,"minLength":1,"title":"Buyer Name"},"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"buyer_phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Buyer Phone"},"financing_intake_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Financing Intake Id"},"plan":{"$ref":"#/components/schemas/PlanQuote"},"collect_deposit_in_plan":{"type":"boolean","title":"Collect Deposit In Plan","default":false}},"type":"object","required":["buyer_name","buyer_email","plan"],"title":"CreateSalesPlanOfferRequest"},"CreateSeasonRequest":{"properties":{"narration_mode":{"type":"string","enum":["cloned","stock"],"title":"Narration Mode"},"episode_target":{"type":"integer","maximum":12.0,"minimum":8.0,"title":"Episode Target","default":8},"narration_voice_id":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Narration Voice Id"}},"additionalProperties":false,"type":"object","required":["narration_mode"],"title":"CreateSeasonRequest"},"CreateVATaskRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"},"task_type":{"type":"string","maxLength":100,"title":"Task Type","default":"support_request"},"title":{"type":"string","maxLength":500,"title":"Title"},"description":{"type":"string","maxLength":5000,"title":"Description","default":""},"notify_slack":{"type":"boolean","title":"Notify Slack","default":true}},"type":"object","required":["customer_email","title"],"title":"CreateVATaskRequest"},"CreateVATaskResponse":{"properties":{"created":{"type":"boolean","title":"Created","default":false},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"message":{"type":"string","title":"Message","default":""}},"type":"object","title":"CreateVATaskResponse"},"CrmLinkClickRequest":{"properties":{"dest":{"type":"string","maxLength":32,"title":"Dest","default":""},"m":{"type":"string","maxLength":16,"title":"M","default":""},"term":{"type":"string","maxLength":64,"title":"Term","default":""},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"human":{"type":"boolean","title":"Human","default":false},"ua":{"type":"string","maxLength":300,"title":"Ua","default":""}},"type":"object","title":"CrmLinkClickRequest","description":"A click on a GHL nurture link (``?src=ghl``), as the edge saw it."},"CsvImportRequest":{"properties":{"author_id":{"type":"string","format":"uuid","title":"Author Id"},"csv_content":{"type":"string","maxLength":8000000,"title":"Csv Content"},"filename":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Filename"}},"additionalProperties":false,"type":"object","required":["author_id","csv_content"],"title":"CsvImportRequest"},"CsvImportResponse":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"created":{"type":"integer","title":"Created"},"duplicates":{"type":"integer","title":"Duplicates"},"invalid":{"type":"integer","title":"Invalid"},"needs_review":{"type":"integer","title":"Needs Review"}},"type":"object","required":["batch_id","created","duplicates","invalid","needs_review"],"title":"CsvImportResponse"},"CtaVariantUpdate":{"properties":{"cta_variant":{"anyOf":[{"type":"string","enum":["buy_now","book_call"]},{"type":"null"}],"title":"Cta Variant"}},"type":"object","required":["cta_variant"],"title":"CtaVariantUpdate"},"CustomDomainAttachRequest":{"properties":{"domain_name":{"type":"string","maxLength":253,"minLength":4,"title":"Domain Name"},"replace_live_site":{"type":"boolean","title":"Replace Live Site","default":false}},"additionalProperties":false,"type":"object","required":["domain_name"],"title":"CustomDomainAttachRequest","description":"Bring-your-own domain: the author supplies just the hostname; the\nservice normalizes/validates it and returns the DNS records to add."},"CustomQuoteRequest":{"properties":{"launch_bundle":{"type":"boolean","title":"Launch Bundle","default":false},"financing_intake_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Financing Intake Id"},"product_code":{"type":"string","maxLength":100,"title":"Product Code","default":"authority_book"},"package_price_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Package Price Cents"},"deposit_credit_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Deposit Credit Cents","default":0},"down_payment_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Down Payment Cents"},"term_months":{"type":"integer","maximum":36.0,"minimum":1.0,"title":"Term Months"},"contract_total_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Contract Total Cents"},"first_payment_days":{"type":"integer","maximum":30.0,"minimum":0.0,"title":"First Payment Days","default":30},"discount_type":{"type":"string","enum":["none","ministry","veteran","general"],"title":"Discount Type","default":"none"},"discount_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Discount Description"},"term_extra_waiver_reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Term Extra Waiver Reason"},"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false},"collect_deposit_in_plan":{"type":"boolean","title":"Collect Deposit In Plan","default":false},"credit_book_deposit":{"type":"boolean","title":"Credit Book Deposit","default":false},"buyer_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Buyer Email"}},"type":"object","required":["down_payment_cents","term_months"],"title":"CustomQuoteRequest"},"CustomerLookupRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"CustomerLookupRequest"},"CustomerLookupResponse":{"properties":{"found":{"type":"boolean","title":"Found","default":false},"customer_type":{"type":"string","enum":["frontend","backend","unknown"],"title":"Customer Type","default":"unknown"},"project":{"anyOf":[{"$ref":"#/components/schemas/ProjectSummary"},{"type":"null"}]},"interview_count":{"type":"integer","title":"Interview Count","default":0},"completed_interview_count":{"type":"integer","title":"Completed Interview Count","default":0},"subscriptions":{"items":{"$ref":"#/components/schemas/SubscriptionSummary"},"type":"array","title":"Subscriptions"},"ghl_contact":{"anyOf":[{"$ref":"#/components/schemas/GHLContactSummary"},{"type":"null"}]},"stripe_charges":{"items":{"$ref":"#/components/schemas/StripeChargeSummary"},"type":"array","title":"Stripe Charges"},"total_charged_cents":{"type":"integer","title":"Total Charged Cents","default":0},"marketplace_purchases":{"items":{"$ref":"#/components/schemas/MarketplacePurchaseSummary"},"type":"array","title":"Marketplace Purchases"},"stripe_customer_count":{"type":"integer","title":"Stripe Customer Count","default":0},"funnel_purchase_providers":{"items":{"type":"string"},"type":"array","title":"Funnel Purchase Providers"},"stripe_charges_read":{"type":"integer","title":"Stripe Charges Read","default":0},"stripe_charges_complete":{"type":"boolean","title":"Stripe Charges Complete","default":true}},"type":"object","title":"CustomerLookupResponse"},"DIYBonusEntry":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"value_cents":{"type":"integer","title":"Value Cents"},"summary":{"type":"string","title":"Summary"},"state":{"type":"string","title":"State"},"items":{"items":{"$ref":"#/components/schemas/DIYBonusItem"},"type":"array","title":"Items","default":[]},"lesson_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lesson Count"}},"type":"object","required":["code","name","value_cents","summary","state"],"title":"DIYBonusEntry"},"DIYBonusItem":{"properties":{"label":{"type":"string","title":"Label"},"url":{"type":"string","title":"Url"}},"type":"object","required":["label","url"],"title":"DIYBonusItem"},"DIYBonusesResponse":{"properties":{"package_tier":{"type":"string","title":"Package Tier"},"bonuses":{"items":{"$ref":"#/components/schemas/DIYBonusEntry"},"type":"array","title":"Bonuses"}},"type":"object","required":["package_tier","bonuses"],"title":"DIYBonusesResponse"},"DIYRecordingTextRequest":{"properties":{"raw_text":{"type":"string","maxLength":100000,"minLength":1,"title":"Raw Text"},"section_number":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Section Number"}},"type":"object","required":["raw_text","section_number"],"title":"DIYRecordingTextRequest","description":"A typed take saved from the authenticated DIY recording workspace."},"DealAiReadsRunRequest":{"properties":{"max_reads":{"anyOf":[{"type":"integer","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Max Reads"}},"additionalProperties":false,"type":"object","title":"DealAiReadsRunRequest"},"DecisionRequest":{"properties":{"action":{"type":"string","enum":["create","decide","withdraw"],"title":"Action"},"decision_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Decision Id"},"status":{"anyOf":[{"type":"string","enum":["open","vote_open","decided"]},{"type":"null"}],"title":"Status"},"role":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[a-z_]{2,20}$"},{"type":"null"}],"title":"Role"},"question":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Question"},"recommendation":{"type":"string","maxLength":600,"title":"Recommendation","default":""},"default_action":{"type":"string","maxLength":400,"title":"Default Action","default":""},"default_executor":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Default Executor"},"default_executor_args":{"additionalProperties":{"type":"string","maxLength":2000},"propertyNames":{"maxLength":80},"type":"object","maxProperties":10,"title":"Default Executor Args"},"deadline_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline At"},"money":{"type":"boolean","title":"Money","default":false},"week_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Week Start"},"agenda_rank":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":1.0},{"type":"null"}],"title":"Agenda Rank"},"for_mike":{"type":"boolean","title":"For Mike","default":true},"choice":{"anyOf":[{"type":"string","enum":["yes","no","other"]},{"type":"null"}],"title":"Choice"},"decision_text":{"type":"string","maxLength":1000,"title":"Decision Text","default":""},"text":{"type":"string","maxLength":1000,"title":"Text","default":""},"decided_by":{"type":"string","maxLength":80,"title":"Decided By","default":"mike"}},"additionalProperties":false,"type":"object","required":["action"],"title":"DecisionRequest","description":"create: role + question + deadline_at (status ``open``, or ``vote_open`` before a vote).\ndecide: decision_id, or agenda_rank (+ week_start), with choice and/or decision_text.\nwithdraw: decision_id + text (the reason)."},"DedicationBody":{"properties":{"text":{"type":"string","maxLength":400,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"DedicationBody"},"DeepLinkSwitchRequest":{"properties":{"project_id":{"type":"string","maxLength":64,"title":"Project Id"}},"type":"object","required":["project_id"],"title":"DeepLinkSwitchRequest"},"DelegationResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"mode":{"type":"string","enum":["delegated","author_managed"],"title":"Mode"}},"type":"object","required":["chapter_id","mode"],"title":"DelegationResponse"},"DeliverableItem":{"properties":{"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Url"},"json_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Json Url"}},"type":"object","required":["type","status"],"title":"DeliverableItem","description":"Single deliverable status."},"DeliverableSetStatusRequest":{"properties":{"status":{"type":"string","enum":["complete","skipped"],"title":"Status"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["status","reason"],"title":"DeliverableSetStatusRequest","description":"Guarded manual override for a stuck deliverable ledger row.\n\nOnly ``complete`` or ``skipped`` are permitted, and only for rows that are\nnon-dispatchable or currently pending/in_progress (delivered rows never\nregress). ``reason`` is required for the audit trail."},"DeliverablesResponse":{"properties":{"status":{"type":"string","title":"Status"},"deliverables":{"items":{"$ref":"#/components/schemas/DeliverableItem"},"type":"array","title":"Deliverables","default":[]}},"type":"object","required":["status"],"title":"DeliverablesResponse","description":"Response for GET /deliverables/{author_id}."},"DeployCanaryEnqueueRequest":{"properties":{"run_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},{"type":"null"}],"title":"Run Id"},"sleep_s":{"type":"integer","maximum":600.0,"minimum":1.0,"title":"Sleep S","default":180},"spawn_eta_s":{"type":"integer","maximum":600.0,"minimum":0.0,"title":"Spawn Eta S","default":120}},"additionalProperties":false,"type":"object","title":"DeployCanaryEnqueueRequest"},"DeployDrainRequest":{"properties":{"minutes":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Minutes"},"reason":{"type":"string","maxLength":200,"title":"Reason","default":""}},"additionalProperties":false,"type":"object","required":["minutes"],"title":"DeployDrainRequest","description":"The worker in-flight guard asking new chapter work to wait."},"DeployEventIn":{"properties":{"event_id":{"type":"string","maxLength":200,"minLength":1,"title":"Event Id","description":"idempotency key, unique per deploy"},"platform":{"type":"string","enum":["railway","vercel"],"title":"Platform","default":"railway"},"service":{"type":"string","maxLength":80,"minLength":1,"title":"Service"},"commit_sha":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Commit Sha"},"image":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Image"},"wave_id":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Wave Id"},"actor":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Actor"},"result":{"type":"string","enum":["in_progress","success","failed","cancelled","unknown"],"title":"Result","default":"unknown"},"rollback":{"type":"boolean","title":"Rollback","default":false},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"merged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Merged At"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["event_id","service"],"title":"DeployEventIn","description":"One service deploy, posted by the deploy-wave helper (lane C)."},"DeployTrainBatchIn":{"properties":{"host":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9_.\\-]+$","title":"Host"},"events":{"items":{"$ref":"#/components/schemas/DeployTrainEventIn"},"type":"array","maxItems":500,"minItems":1,"title":"Events"}},"type":"object","required":["host","events"],"title":"DeployTrainBatchIn"},"DeployTrainEventIn":{"properties":{"event_key":{"type":"string","maxLength":64,"minLength":16,"pattern":"^[0-9a-f]{16,64}$","title":"Event Key"},"ts":{"type":"string","format":"date-time","title":"Ts"},"result":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[a-z_]+$","title":"Result"},"cause":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z_]+$"},{"type":"null"}],"title":"Cause"},"detail":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Detail"},"main_sha":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{7,64}$"},{"type":"null"}],"title":"Main Sha"},"live_sha":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{7,64}$"},{"type":"null"}],"title":"Live Sha"},"pick_sha":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{7,64}$"},{"type":"null"}],"title":"Pick Sha"},"prev_live_sha":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{7,64}$"},{"type":"null"}],"title":"Prev Live Sha"},"shipped_commits":{"items":{"$ref":"#/components/schemas/ShippedCommitIn"},"type":"array","maxItems":200,"title":"Shipped Commits"},"wave":{"anyOf":[{"$ref":"#/components/schemas/WaveMarkersIn"},{"type":"null"}]}},"type":"object","required":["event_key","ts","result"],"title":"DeployTrainEventIn","description":"One deploy-train journal line, posted by claude-infra bin/dictate-deploy-train-push."},"DesktopPhraseSubmitRequest":{"properties":{"phrase":{"type":"string","maxLength":80,"minLength":1,"title":"Phrase"}},"type":"object","required":["phrase"],"title":"DesktopPhraseSubmitRequest"},"DirectorAssignRequest":{"properties":{"rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rep Id"}},"type":"object","title":"DirectorAssignRequest"},"DirectoryConfirmationRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"confirmed":{"type":"boolean","const":true,"title":"Confirmed"},"platform":{"anyOf":[{"type":"string","enum":["apple_podcasts","spotify"]},{"type":"null"}],"title":"Platform"},"platforms":{"anyOf":[{"items":{"type":"string","enum":["apple_podcasts","spotify"]},"type":"array","maxItems":2},{"type":"null"}],"title":"Platforms"},"report":{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":30,"title":"Report"}},"additionalProperties":false,"type":"object","required":["project_id","confirmed"],"title":"DirectoryConfirmationRequest"},"DirectoryLinkSyncRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"DirectoryLinkSyncRequest"},"DisagreementChoice":{"properties":{"choice":{"anyOf":[{"type":"string","const":"both"},{"type":"string","format":"uuid"}],"title":"Choice"}},"additionalProperties":false,"type":"object","required":["choice"],"title":"DisagreementChoice","description":"'both', or the book_author_id of the version this author says is right."},"DisclosureDecisionRequest":{"properties":{"action":{"type":"string","enum":["keep","edit","remove","restore"],"title":"Action"},"text":{"anyOf":[{"type":"string","maxLength":1200},{"type":"null"}],"title":"Text"}},"additionalProperties":false,"type":"object","required":["action"],"title":"DisclosureDecisionRequest","description":"The author keeps, edits, removes or restores one front-matter disclosure."},"DismissResponse":{"properties":{"dismissed":{"type":"boolean","title":"Dismissed","default":true}},"type":"object","title":"DismissResponse"},"DisputeEvidenceRequest":{"properties":{"stripe_dispute_id":{"type":"string","maxLength":255,"title":"Stripe Dispute Id"},"charge_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Charge Id"},"customer_email":{"type":"string","format":"email","title":"Customer Email"},"dispute_reason":{"type":"string","maxLength":5000,"title":"Dispute Reason","default":""}},"type":"object","required":["stripe_dispute_id","customer_email"],"title":"DisputeEvidenceRequest"},"DisputeEvidenceResponse":{"properties":{"evidence_quality":{"type":"string","enum":["strong","medium","weak"],"title":"Evidence Quality","default":"weak"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"},"recommended_action":{"type":"string","enum":["submit_evidence","accept_dispute","escalate"],"title":"Recommended Action","default":"escalate"},"ticket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"upload_failures":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Upload Failures"}},"type":"object","title":"DisputeEvidenceResponse"},"DisputeInvoiceRequest":{"properties":{"verification_run_id":{"type":"string","format":"uuid","title":"Verification Run Id"},"reason":{"type":"string","maxLength":4000,"minLength":1,"title":"Reason"}},"type":"object","required":["verification_run_id","reason"],"title":"DisputeInvoiceRequest"},"DiyChannelRow":{"properties":{"channel":{"type":"string","title":"Channel"},"label":{"type":"string","title":"Label"},"new_deals":{"type":"integer","title":"New Deals","default":0},"booked_usd":{"type":"number","title":"Booked Usd","default":0.0},"gross_usd":{"type":"number","title":"Gross Usd","default":0.0},"adjustments_usd":{"type":"number","title":"Adjustments Usd","default":0.0},"net_usd":{"type":"number","title":"Net Usd","default":0.0},"payva_new_deals":{"type":"integer","title":"Payva New Deals","default":0},"payva_gross_usd":{"type":"number","title":"Payva Gross Usd","default":0.0}},"type":"object","required":["channel","label"],"title":"DiyChannelRow","description":"One DIY sales channel's totals for the period (Frank, 2026-10-13)."},"DiyKickoffLinkResponse":{"properties":{"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"},"route":{"type":"string","title":"Route"},"strategist_first_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Strategist First Name"}},"type":"object","required":["route"],"title":"DiyKickoffLinkResponse","description":"The DIY Kickoff link for a buyer known only by email (Payva return)."},"DiyPresentationCheckoutRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"payment_plan":{"type":"string","maxLength":50,"title":"Payment Plan","default":"full"},"sales_token":{"anyOf":[{"type":"string","maxLength":4096,"minLength":16},{"type":"null"}],"title":"Sales Token"},"book_path":{"anyOf":[{"type":"string","enum":["standard","memoir"]},{"type":"null"}],"title":"Book Path"}},"type":"object","required":["buyer_email"],"title":"DiyPresentationCheckoutRequest"},"DiyPresentationCheckoutResponse":{"properties":{"mode":{"type":"string","enum":["mint","email"],"title":"Mode"},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Url"},"message":{"type":"string","maxLength":500,"title":"Message","default":""}},"type":"object","required":["mode"],"title":"DiyPresentationCheckoutResponse"},"DiyPresentationRevealRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"DiyPresentationRevealRequest"},"DiyPresentationRevealResponse":{"properties":{"revealed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revealed At"}},"type":"object","title":"DiyPresentationRevealResponse"},"DiyUpgradeCheckoutRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"DiyUpgradeCheckoutRequest","description":"A strategist/ops request for a buyer's upgrade checkout link."},"DiyUpgradeCheckoutResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"checkout_link":{"type":"string","title":"Checkout Link"},"page_url":{"type":"string","title":"Page Url"},"window_expires_at":{"type":"string","format":"date-time","title":"Window Expires At"},"authority_price_cents":{"type":"integer","title":"Authority Price Cents"},"credit_cents":{"type":"integer","title":"Credit Cents"},"upgrade_cents":{"type":"integer","title":"Upgrade Cents"},"audiobook_addon_cents":{"type":"integer","title":"Audiobook Addon Cents","default":0},"total_cents":{"type":"integer","title":"Total Cents","default":0},"stripe_checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Checkout Url"},"stripe_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Session Id"},"reused_open_session":{"type":"boolean","title":"Reused Open Session","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["project_id","checkout_link","page_url","window_expires_at","authority_price_cents","credit_cents","upgrade_cents"],"title":"DiyUpgradeCheckoutResponse"},"DiyUpgradeMintRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"days":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Days"},"blueprint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Blueprint Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"DiyUpgradeMintRequest"},"DiyUpgradeMintResponse":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"payva_clawback_window_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Payva Clawback Window Until"}},"type":"object","required":["url","expires_at","project_id"],"title":"DiyUpgradeMintResponse"},"DiyUpgradeNoticeRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"test_slack_user_id":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Test Slack User Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"DiyUpgradeNoticeRequest"},"DiyUpgradePageResponse":{"properties":{"state":{"type":"string","enum":["active","expired","blueprint_pending","upgraded"],"title":"State"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"working_titles":{"items":{"$ref":"#/components/schemas/UpgradeTitle"},"type":"array","title":"Working Titles","default":[]},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"chapters":{"items":{"$ref":"#/components/schemas/UpgradeChapter"},"type":"array","title":"Chapters","default":[]},"reader_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reader Profile"},"market_gap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Gap"},"credit":{"$ref":"#/components/schemas/UpgradeCredit"},"video":{"anyOf":[{"$ref":"#/components/schemas/UpgradeVideo"},{"type":"null"}]},"cta_url":{"type":"string","title":"Cta Url"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"checkout_options":{"items":{"$ref":"#/components/schemas/UpgradeCheckoutOption"},"type":"array","title":"Checkout Options","default":[]}},"type":"object","required":["state","credit","cta_url"],"title":"DiyUpgradePageResponse"},"DmOutreachState":{"properties":{"status":{"anyOf":[{"type":"string","enum":["sent","skip","replied"]},{"type":"null"}],"title":"Status"},"action":{"anyOf":[{"type":"string","enum":["wrong_person","wrong_episode","correct_link","email_found"]},{"type":"null"}],"title":"Action"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"source":{"type":"string","title":"Source","default":"dm_outreach"},"actioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actioned At"},"recorded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Recorded At"},"context":{"additionalProperties":true,"type":"object","maxProperties":20,"title":"Context"}},"type":"object","title":"DmOutreachState","description":"Latest durable operator decision stored on ``guest_prospects``.\n\nReads tolerate an older/partial object during a rolling deployment. Every write\nmade by the service supplies source, actioned_at, recorded_at, and context."},"DocumentReprocessRequest":{"properties":{"file_key":{"type":"string","maxLength":1024,"title":"File Key"},"file_name":{"type":"string","maxLength":255,"title":"File Name"},"category":{"type":"string","maxLength":100,"title":"Category","default":"writing-samples"}},"type":"object","required":["file_key","file_name"],"title":"DocumentReprocessRequest","description":"Request to reprocess an uploaded document through Docling -> chunk -> embed."},"DomainAvailabilityRequest":{"properties":{"domain_name":{"type":"string","maxLength":253,"minLength":4,"title":"Domain Name"}},"additionalProperties":false,"type":"object","required":["domain_name"],"title":"DomainAvailabilityRequest"},"DomainCheckoutRequest":{"properties":{"domain_name":{"type":"string","maxLength":253,"minLength":4,"title":"Domain Name"},"auto_renew":{"type":"boolean","const":true,"title":"Auto Renew","default":true},"accepted_registration_terms":{"type":"boolean","const":true,"title":"Accepted Registration Terms"}},"additionalProperties":false,"type":"object","required":["domain_name","accepted_registration_terms"],"title":"DomainCheckoutRequest"},"DoorStateResponse":{"properties":{"state":{"type":"string","enum":["claim","locked","open"],"title":"State"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"phone_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Hint"},"email_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Hint"},"staff_view_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staff View Url"}},"type":"object","required":["state"],"title":"DoorStateResponse"},"DroppedOfferAnswerIn":{"properties":{"answer":{"type":"string","enum":["correct","remove","fix"],"title":"Answer"},"address":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Address"}},"additionalProperties":false,"type":"object","required":["answer"],"title":"DroppedOfferAnswerIn","description":"Her answer on the \"free extras\" card (GH #14096): Right, Remove, or Fix it with her web address."},"DroppedOfferChapterPreview":{"properties":{"chapter_number":{"type":"integer","title":"Chapter Number"},"now":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Now"},"correct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct"},"remove":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remove"},"fix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix"}},"type":"object","required":["chapter_number"],"title":"DroppedOfferChapterPreview","description":"One listed chapter: the passage now, and exactly how each answer would make it read (None = not offered)."},"DroppedOfferPreviewOut":{"properties":{"right_offered":{"type":"boolean","title":"Right Offered"},"right_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Right Line"},"chapters":{"items":{"$ref":"#/components/schemas/DroppedOfferChapterPreview"},"type":"array","maxItems":60,"title":"Chapters"}},"type":"object","required":["right_offered"],"title":"DroppedOfferPreviewOut"},"DryRunRequest":{"properties":{"contact_id":{"type":"string","maxLength":64,"minLength":6,"pattern":"^[A-Za-z0-9]+$","title":"Contact Id"},"appointment_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":6,"pattern":"^[A-Za-z0-9]+$"},{"type":"null"}],"title":"Appointment Id"}},"additionalProperties":false,"type":"object","required":["contact_id"],"title":"DryRunRequest"},"EditRequestRequest":{"properties":{"feedback":{"type":"string","maxLength":2000,"minLength":1,"title":"Feedback"}},"type":"object","required":["feedback"],"title":"EditRequestRequest","description":"Author asks for a targeted regeneration of one queued piece (§4.2)."},"EditionPublishRequest":{"properties":{"amazon_asin":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Amazon Asin"}},"type":"object","title":"EditionPublishRequest","description":"Optional Amazon ASIN to stamp when publishing a finished edition."},"EmailChangeToken":{"properties":{"token":{"type":"string","maxLength":600,"minLength":10,"title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"EmailChangeToken"},"EmailContentCheckRequest":{"properties":{"subject":{"type":"string","maxLength":500,"title":"Subject"},"preheader":{"type":"string","maxLength":500,"title":"Preheader","default":""},"html_body":{"type":"string","maxLength":500000,"title":"Html Body","default":""},"text_body":{"type":"string","maxLength":200000,"title":"Text Body","default":""},"from_address":{"type":"string","maxLength":320,"title":"From Address"},"list_unsubscribe":{"type":"string","maxLength":2000,"title":"List Unsubscribe","default":""},"list_unsubscribe_post":{"type":"string","maxLength":200,"title":"List Unsubscribe Post","default":""},"attachment_names":{"items":{"type":"string","maxLength":255},"type":"array","maxItems":20,"title":"Attachment Names"},"is_broadcast":{"type":"boolean","title":"Is Broadcast","default":true},"sender_adds_footer":{"type":"boolean","title":"Sender Adds Footer","default":false},"include_ai_suggestions":{"type":"boolean","title":"Include Ai Suggestions","default":true}},"additionalProperties":false,"type":"object","required":["subject","from_address"],"title":"EmailContentCheckRequest"},"EmailContentCheckResponse":{"properties":{"passed":{"type":"boolean","title":"Passed"},"score":{"type":"number","title":"Score"},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"spamassassin_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spamassassin Score"},"spamassassin_content_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spamassassin Content Score"},"spamassassin_threshold":{"type":"number","title":"Spamassassin Threshold"},"spamassassin_rules":{"items":{"$ref":"#/components/schemas/SpamAssassinRule"},"type":"array","title":"Spamassassin Rules"},"spamassassin_domain_rules":{"items":{"$ref":"#/components/schemas/SpamAssassinRule"},"type":"array","title":"Spamassassin Domain Rules"},"link_report":{"items":{"$ref":"#/components/schemas/LinkReport"},"type":"array","title":"Link Report"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"enabled":{"type":"boolean","title":"Enabled","default":true},"ai_suggestions_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Suggestions Task Id"}},"type":"object","required":["passed","score","spamassassin_threshold"],"title":"EmailContentCheckResponse"},"EmailContentSuggestionsResponse":{"properties":{"status":{"type":"string","enum":["pending","done","failed"],"title":"Status"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"}},"type":"object","required":["status"],"title":"EmailContentSuggestionsResponse"},"EmailFoundUpdate":{"properties":{"prospect_id":{"type":"string","format":"uuid","title":"Prospect Id"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"actioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actioned At"},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source","default":"dm_outreach"},"action":{"type":"string","const":"email_found","title":"Action"},"email":{"type":"string","format":"email","title":"Email"}},"additionalProperties":false,"type":"object","required":["prospect_id","action","email"],"title":"EmailFoundUpdate"},"EmailHealthPreviewResponse":{"properties":{"week_start":{"type":"string","title":"Week Start"},"section":{"items":{"type":"string"},"type":"array","title":"Section"},"metrics":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Metrics"}},"type":"object","required":["week_start"],"title":"EmailHealthPreviewResponse"},"EmailHealthRunResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"week_start":{"type":"string","title":"Week Start"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["enabled","week_start"],"title":"EmailHealthRunResponse"},"EmailReputationLatestResponse":{"properties":{"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows"}},"type":"object","title":"EmailReputationLatestResponse"},"EmailReputationRunResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains"}},"type":"object","required":["enabled"],"title":"EmailReputationRunResponse"},"EmailRequest":{"properties":{"signup_id":{"type":"string","format":"uuid","title":"Signup Id"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"type":"object","required":["signup_id","email"],"title":"EmailRequest"},"EmailStatusItem":{"properties":{"email_slot":{"type":"string","title":"Email Slot"},"sequence":{"type":"string","title":"Sequence"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Preview"},"sent_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent At"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["email_slot","sequence","created_at"],"title":"EmailStatusItem","description":"Single email log entry."},"EmailStatusResponse":{"properties":{"status":{"type":"string","title":"Status"},"emails":{"items":{"$ref":"#/components/schemas/EmailStatusItem"},"type":"array","title":"Emails","default":[]}},"type":"object","required":["status"],"title":"EmailStatusResponse","description":"Response for GET /email/status/{author_id}."},"EmptyBody":{"properties":{},"additionalProperties":false,"type":"object","title":"EmptyBody"},"EndorsementInput":{"properties":{"quote":{"type":"string","maxLength":400,"minLength":1,"title":"Quote"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Role"}},"additionalProperties":false,"type":"object","required":["quote"],"title":"EndorsementInput"},"EndorsementsUpdate":{"properties":{"confirmed_real":{"type":"boolean","title":"Confirmed Real","default":false},"items":{"items":{"$ref":"#/components/schemas/EndorsementInput"},"type":"array","maxItems":12,"title":"Items"}},"additionalProperties":false,"type":"object","title":"EndorsementsUpdate","description":"Repeatable real endorsements. ``confirmed_real`` MUST be true to save —\nthe author attests these are real quotes they have written permission to\nuse (redesign hard rule: never invent testimonials)."},"EngagementBody":{"properties":{"event_type":{"type":"string","enum":["asset_download","asset_copy","sample_view"],"title":"Event Type"},"asset_id":{"type":"string","maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9_.:/-]+$","title":"Asset Id"}},"additionalProperties":false,"type":"object","required":["event_type","asset_id"],"title":"EngagementBody"},"EnrollBuyerRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"buyer_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Buyer Name"},"access_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Access Expires At"}},"additionalProperties":false,"type":"object","required":["buyer_email"],"title":"EnrollBuyerRequest"},"EnrollBuyerResponse":{"properties":{"enrollment_id":{"type":"string","title":"Enrollment Id"},"buyer_email":{"type":"string","title":"Buyer Email"},"status":{"type":"string","enum":["active","revoked","completed"],"title":"Status"},"access_link":{"type":"string","title":"Access Link"}},"type":"object","required":["enrollment_id","buyer_email","status","access_link"],"title":"EnrollBuyerResponse"},"EscalationResolveRequest":{"properties":{"resolution_type":{"type":"string","enum":["rewrite","re_interview","manual_review"],"title":"Resolution Type","default":"manual_review"},"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""},"resolved_by":{"type":"string","maxLength":200,"title":"Resolved By","default":"ops"}},"type":"object","title":"EscalationResolveRequest","description":"Ops resolves a chapter escalation (WF1-D108 / WF2-D26)."},"EventCreate":{"properties":{"slug":{"type":"string","maxLength":80,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]{1,79}$","title":"Slug"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"line":{"type":"string","enum":["christian","true_stories"],"title":"Line"},"kind":{"type":"string","enum":["summit","monthly_live"],"title":"Kind"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"host_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Host Name"},"page_copy":{"$ref":"#/components/schemas/PageCopy"}},"additionalProperties":false,"type":"object","required":["slug","title","line","kind","starts_at"],"title":"EventCreate"},"EventUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"host_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Host Name"},"page_copy":{"anyOf":[{"$ref":"#/components/schemas/PageCopy"},{"type":"null"}]},"crm_event_tag":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{1,63}$"},{"type":"null"}],"title":"Crm Event Tag"},"vip_hour_join_url":{"anyOf":[{"type":"string","maxLength":500,"pattern":"^https://[^\\s<>\\\"']+$"},{"type":"null"}],"title":"Vip Hour Join Url"},"vip_hour_starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Vip Hour Starts At"}},"additionalProperties":false,"type":"object","title":"EventUpdate","description":"Editable fields only: never the status's approvals."},"ExperimentDecisionPreview":{"properties":{"experiment_key":{"type":"string","title":"Experiment Key"},"recommendation":{"type":"string","title":"Recommendation"},"winner_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Winner Variant"},"kill_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Variant"},"auto_applyable":{"type":"boolean","title":"Auto Applyable","default":false},"would_auto_apply":{"type":"boolean","title":"Would Auto Apply","default":false},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"gates":{"additionalProperties":true,"type":"object","title":"Gates"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"age_days":{"type":"number","title":"Age Days","default":0.0},"report":{"$ref":"#/components/schemas/ExperimentReport"},"guardrail_report":{"anyOf":[{"$ref":"#/components/schemas/ExperimentReport"},{"type":"null"}]}},"type":"object","required":["experiment_key","recommendation","report"],"title":"ExperimentDecisionPreview","description":"What the nightly engine WOULD say about this experiment, right now.\n\nThe ops portal needs three things the all-time report cannot give it: the\nMATURED per-arm numbers (the only ones a stopping rule may look at), the\ngate checklist (\"14 days? whole weeks? 25 conversions per arm?\"), and the\nverdict those two produce. Recomputing them in the browser would be a second\nimplementation of :func:`app.services.experiment_decisions.decide` — the one\nfunction in this system that most needs exactly one implementation.\n\nSo the portal asks the backend to run the REAL policy against a freshly\nbuilt matured report and returns the whole thing. Read-only: this endpoint\nnever records a decision row and never applies anything. The nightly task\nremains the only writer of ``experiment_decisions``."},"ExperimentDecisionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"experiment_id":{"type":"string","format":"uuid","title":"Experiment Id"},"run_at":{"type":"string","format":"date-time","title":"Run At"},"recommendation":{"type":"string","title":"Recommendation"},"winner_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Winner Variant"},"kill_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Variant"},"metrics":{"additionalProperties":true,"type":"object","title":"Metrics"},"auto_applied":{"type":"boolean","title":"Auto Applied","default":false},"applied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Applied At"}},"type":"object","required":["id","experiment_id","run_at","recommendation"],"title":"ExperimentDecisionResponse","description":"One nightly judgement row (``experiment_decisions``).\n\nRead-only, ops-facing. ``auto_applied`` is the difference between a\nrecommendation the engine PROPOSED and one it actually executed — in v1 only\na ``kill`` is ever executed, and only when the experiment allows it."},"ExperimentRenderConfig":{"properties":{"mode":{"type":"string","const":"rewrite","title":"Mode"},"paths":{"additionalProperties":{"type":"string","maxLength":200},"propertyNames":{"maxLength":64},"type":"object","maxProperties":20,"title":"Paths"}},"type":"object","required":["mode"],"title":"ExperimentRenderConfig","description":"Whole-page variant rendering (``experiments.render``).\n\n``paths`` is PARTIAL on purpose: an arm with no entry renders the ORIGINAL\npage. Control is normally absent, which is precisely what makes this column\nsafe to add to a live experiment — naming only the challenger cannot change\nwhat the control cohort sees."},"ExperimentReport":{"properties":{"experiment_id":{"type":"string","format":"uuid","title":"Experiment Id"},"experiment_key":{"type":"string","title":"Experiment Key"},"surface":{"type":"string","title":"Surface"},"status":{"type":"string","title":"Status"},"config_version":{"type":"integer","title":"Config Version"},"winner_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Winner Variant"},"control_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Variant"},"total_visitors":{"type":"integer","title":"Total Visitors"},"total_revenue_usd":{"type":"number","title":"Total Revenue Usd"},"variants":{"items":{"$ref":"#/components/schemas/VariantReport"},"type":"array","title":"Variants"},"srm_p_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Srm P Value"},"srm_healthy":{"type":"boolean","title":"Srm Healthy","default":true},"matured":{"type":"boolean","title":"Matured","default":false},"conversion_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Conversion Window Days"},"primary_event":{"type":"string","title":"Primary Event","default":"purchase"},"srm_p_value_alltime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Srm P Value Alltime"},"srm_healthy_alltime":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Srm Healthy Alltime"}},"type":"object","required":["experiment_id","experiment_key","surface","status","config_version","total_visitors","total_revenue_usd","variants"],"title":"ExperimentReport"},"ExperimentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","maxLength":100,"title":"Key"},"surface":{"type":"string","maxLength":100,"title":"Surface"},"hypothesis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hypothesis"},"variants":{"items":{},"type":"array","title":"Variants"},"status":{"type":"string","enum":["draft","running","stopped","won"],"title":"Status"},"winner_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Winner Variant"},"config_version":{"type":"integer","title":"Config Version"},"decision_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Decision Config"},"primary_event":{"type":"string","title":"Primary Event","default":"purchase"},"guardrail_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guardrail Event"},"render":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Render"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","key","surface","status","config_version","created_at"],"title":"ExperimentResponse"},"ExperimentSettingsResponse":{"properties":{"split_test_enabled":{"type":"boolean","title":"Split Test Enabled"},"auto_decisions_enabled":{"type":"boolean","title":"Auto Decisions Enabled"},"suggester_enabled":{"type":"boolean","title":"Suggester Enabled"},"autonomy_mode":{"type":"string","enum":["auto_kill","propose_only"],"title":"Autonomy Mode"},"change_note":{"type":"string","title":"Change Note"}},"type":"object","required":["split_test_enabled","auto_decisions_enabled","suggester_enabled","autonomy_mode","change_note"],"title":"ExperimentSettingsResponse","description":"Read-only view of the split-test ENV flags, for the ops portal.\n\nDeliberately not writable. All three flags are environment variables read at\nprocess start on Railway (``api``, ``worker``, ``worker-fastlane``, ``beat``)\n— a portal toggle backed by a database row would let the UI report an\nautonomy mode the running processes do not have, which is strictly worse\nthan showing the operator the truth and telling them where to change it."},"ExperimentVariant":{"properties":{"key":{"type":"string","maxLength":64,"title":"Key"},"weight":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Weight"},"label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Label"}},"type":"object","required":["key","weight"],"title":"ExperimentVariant","description":"One arm of an experiment: a variant key and its integer weight."},"ExpertForewordInvite":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"expert_name":{"type":"string","title":"Expert Name"},"expert_email":{"type":"string","title":"Expert Email"},"credentials":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentials"},"author_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Note"},"status":{"type":"string","enum":["invited","transcribing","cleaning","review","approved","accepted"],"title":"Status"},"source_kind":{"anyOf":[{"type":"string","enum":["typed","recorded","call"]},{"type":"null"}],"title":"Source Kind"},"final_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Text"},"byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline"},"signer_typed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signer Typed Name"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"view_count":{"type":"integer","title":"View Count","default":0},"first_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Opened At"},"last_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Viewed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","expert_name","expert_email","status","created_at"],"title":"ExpertForewordInvite"},"ExpertForewordsResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"invites":{"items":{"$ref":"#/components/schemas/ExpertForewordInvite"},"type":"array","title":"Invites"},"slot":{"$ref":"#/components/schemas/ForewordSlot"}},"type":"object","required":["enabled","invites","slot"],"title":"ExpertForewordsResponse"},"ExposeRequest":{"properties":{"experiment_key":{"type":"string","maxLength":100,"title":"Experiment Key"},"visitor_id":{"type":"string","maxLength":64,"title":"Visitor Id"},"variant":{"type":"string","maxLength":64,"title":"Variant"},"surface":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Surface"},"config_version":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Config Version"},"signed_assignment":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Signed Assignment"},"client_bot_signal":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Client Bot Signal"}},"type":"object","required":["experiment_key","visitor_id","variant"],"title":"ExposeRequest","description":"POST /api/experiments/expose — rate-limited, idempotent upsert.\n\n``variant`` is ADVISORY only — the server resolves the authoritative variant\nvia the persisted-row / signed-cookie / recompute chain and never trusts the\nraw client value. ``signed_assignment`` is the HMAC signature the edge\nmiddleware minted for ``{experiment_key, variant, config_version}``; when\npresent + valid, that assignment is accepted and persisted (closing the\nrender→checkout race)."},"ExtensionCodeSubmitRequest":{"properties":{"code":{"type":"string","maxLength":16,"minLength":1,"title":"Code"}},"type":"object","required":["code"],"title":"ExtensionCodeSubmitRequest"},"ExternalPaymentEntry":{"properties":{"provider":{"type":"string","maxLength":64,"title":"Provider"},"amount_usd":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Amount Usd"},"external_reference":{"type":"string","maxLength":200,"minLength":1,"title":"External Reference"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"transaction_type":{"type":"string","enum":["payment","reversal"],"title":"Transaction Type","default":"payment"},"reversal_reference":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reversal Reference"},"product_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Product Name"},"product_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Product Code"},"package_tier":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Package Tier"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"client_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Client Email"},"payment_method":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Payment Method"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"confirm_distinct_payment":{"type":"boolean","title":"Confirm Distinct Payment","default":false}},"type":"object","required":["provider","amount_usd","external_reference","occurred_at"],"title":"ExternalPaymentEntry","description":"A payment (or refund) collected outside Stripe, recorded by an operator.\n\nWhop (and any future off-Stripe checkout) has no API and no webhook, so this\nledger row is the ONLY record of the money — it feeds the pay-period sales\nreport's gross, per-rep totals and rep commission (a DIY package sold\noff-Stripe earns the same 20% as one sold on Stripe — GH #3129).\n\n``external_reference`` is the provider's own invoice/transaction id and\ncarries idempotency: submit it WITHOUT a provider prefix (``NXRFTSKMD2BRUJ``,\nnot ``whop:NXRFTSKMD2BRUJ`` — both are accepted and normalized to one key).\n``occurred_at`` must be timezone-aware; it dates the row into a pay period.\n\n``transaction_type=\"reversal\"`` records a refund against an already-recorded\npayment (GH #3130 — previously a Whop refund needed a hand-written SQL\ninsert or it silently never netted). ``amount_usd`` stays POSITIVE for both:\nthe endpoint owns the sign, so a mistyped minus cannot book a refund as a\nsale. The reversal is keyed by ``external_reference`` (the sale's), so a\nreplay is a no-op; a SECOND partial refund of the same payment needs its own\n``reversal_reference`` or it collides with the first."},"FactAnswerIn":{"properties":{"answer":{"type":"string","enum":["yes","edit","tell","remove"],"title":"Answer"},"edited_text":{"anyOf":[{"type":"string","maxLength":1800},{"type":"null"}],"title":"Edited Text"},"note":{"anyOf":[{"type":"string","maxLength":1800},{"type":"null"}],"title":"Note"},"draft_version_seen":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Draft Version Seen"},"ms_on_card":{"anyOf":[{"type":"integer","maximum":86400000.0,"minimum":0.0},{"type":"null"}],"title":"Ms On Card"}},"additionalProperties":false,"type":"object","required":["answer"],"title":"FactAnswerIn","description":"One Chapter Fact Check answer, saved the moment the author gives it.\n\n``yes`` = keep it; ``edit`` = her own words for the highlighted passage;\n``tell`` = a note for us to fix it; ``remove`` = take the detail out."},"FactAnswerOut":{"properties":{"flag_id":{"type":"string","format":"uuid","title":"Flag Id"},"answer":{"type":"string","title":"Answer"},"edited_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Text"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["flag_id","answer"],"title":"FactAnswerOut"},"FactCheckEventIn":{"properties":{"event":{"type":"string","enum":["deck_opened","deck_closed"],"title":"Event"},"open_count":{"type":"integer","maximum":500.0,"minimum":0.0,"title":"Open Count","default":0},"answered_count":{"type":"integer","maximum":500.0,"minimum":0.0,"title":"Answered Count","default":0}},"additionalProperties":false,"type":"object","required":["event"],"title":"FactCheckEventIn","description":"Deck metrics the client reports (answers and submits are logged server-side)."},"FactCheckStateResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"answers":{"items":{"$ref":"#/components/schemas/FactAnswerOut"},"type":"array","title":"Answers"}},"type":"object","required":["enabled"],"title":"FactCheckStateResponse","description":"The deck's saved answers for one chapter (the flags come from /comments)."},"FactCheckSubmitRequest":{"properties":{"comments":{"items":{"$ref":"#/components/schemas/InlineCommentInput"},"type":"array","maxItems":500,"title":"Comments"},"categories":{"items":{"type":"string","enum":["voice_tone","facts_names","structure_flow","other"]},"type":"array","maxItems":3,"title":"Categories"}},"additionalProperties":false,"type":"object","title":"FactCheckSubmitRequest","description":"Send every waiting answer, plus any inline notes the author had queued."},"FactCheckSubmitResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"review_state":{"type":"string","title":"Review State"},"confirmed":{"type":"integer","title":"Confirmed","default":0},"edited":{"type":"integer","title":"Edited","default":0},"notes_sent":{"type":"integer","title":"Notes Sent","default":0},"unplaced":{"items":{"$ref":"#/components/schemas/FactCheckUnplaced"},"type":"array","title":"Unplaced"},"applying":{"type":"integer","title":"Applying","default":0},"draft_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Version"}},"type":"object","required":["chapter_id","review_state"],"title":"FactCheckSubmitResponse"},"FactCheckUnplaced":{"properties":{"flag_id":{"type":"string","format":"uuid","title":"Flag Id"},"quote":{"type":"string","title":"Quote"},"answer":{"type":"string","title":"Answer"},"text":{"type":"string","title":"Text","default":""}},"type":"object","required":["flag_id","quote","answer"],"title":"FactCheckUnplaced"},"FailedTaskResolveRequest":{"properties":{"resolved_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Resolved By"},"resolution_note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Resolution Note"}},"type":"object","title":"FailedTaskResolveRequest"},"FamilyScheduleRequest":{"properties":{"phone_e164":{"type":"string","maxLength":20,"minLength":7,"title":"Phone E164"},"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"release_version":{"type":"string","maxLength":120,"minLength":1,"title":"Release Version"},"release_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Release Sha256"}},"type":"object","required":["phone_e164","timezone","scheduled_at","release_version","release_sha256"],"title":"FamilyScheduleRequest","description":"The contributor's own booking. Phone and timezone originate HERE."},"FeatureUseRequest":{"properties":{"feature":{"anyOf":[{"type":"string","enum":["cover_studio","editor","podcast","author_site","audiobook","title_studio","device_check"]},{"type":"null"}],"title":"Feature"},"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page"}},"type":"object","title":"FeatureUseRequest"},"FeedbackAnswer":{"properties":{"score":{"type":"integer","title":"Score"},"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment"}},"type":"object","required":["score"],"title":"FeedbackAnswer"},"FeedbackChoice":{"properties":{"score":{"type":"integer","title":"Score"},"token":{"type":"string","maxLength":512,"title":"Token"}},"type":"object","required":["score","token"],"title":"FeedbackChoice"},"FeedbackConfirmRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"},"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment"}},"type":"object","required":["token"],"title":"FeedbackConfirmRequest"},"FeedbackConfirmResponse":{"properties":{"score":{"type":"integer","title":"Score"},"kind":{"type":"string","maxLength":20,"title":"Kind"}},"type":"object","required":["score","kind"],"title":"FeedbackConfirmResponse"},"FeedbackView":{"properties":{"kind":{"type":"string","maxLength":20,"title":"Kind"},"question":{"type":"string","maxLength":300,"title":"Question"},"low_label":{"type":"string","maxLength":60,"title":"Low Label"},"high_label":{"type":"string","maxLength":60,"title":"High Label"},"score":{"type":"integer","title":"Score"},"choices":{"items":{"$ref":"#/components/schemas/FeedbackChoice"},"type":"array","maxItems":11,"title":"Choices"},"answer":{"anyOf":[{"$ref":"#/components/schemas/FeedbackAnswer"},{"type":"null"}]}},"type":"object","required":["kind","question","low_label","high_label","score","choices"],"title":"FeedbackView"},"FictionRequest":{"properties":{"full_name":{"type":"string","maxLength":160,"minLength":1,"title":"Full Name"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"phone":{"type":"string","maxLength":30,"minLength":10,"title":"Phone"},"fiction_type":{"type":"string","maxLength":40,"minLength":1,"title":"Fiction Type"},"consent_version":{"type":"string","maxLength":60,"minLength":1,"title":"Consent Version"},"signup_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Signup Id"},"client_user_agent":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Client User Agent"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"type":"object","required":["full_name","email","phone","fiction_type","consent_version"],"title":"FictionRequest"},"FigureMutationResponse":{"properties":{"figure_id":{"type":"string","title":"Figure Id"},"paragraph_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paragraph Index"},"removed":{"type":"boolean","title":"Removed","default":false},"doc_updated":{"type":"boolean","title":"Doc Updated","default":false}},"type":"object","required":["figure_id"],"title":"FigureMutationResponse","description":"Result of a figure move/remove. ``doc_updated`` reports whether the\nbest-effort Google Doc surgery succeeded (false when the doc lacked the\nfigure token, editing was disabled, or the doc edit was skipped)."},"FigureQaRepairRequest":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"action":{"type":"string","enum":["approve","replace"],"title":"Action"},"replacement_r2_key":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Replacement R2 Key"},"actor":{"type":"string","maxLength":200,"title":"Actor","default":"ops"},"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""}},"type":"object","required":["asset_id","action"],"title":"FigureQaRepairRequest","description":"Ops human-review verdict on a produced visual asset's QA (WP-07)."},"FileUploadResponse":{"properties":{"status":{"type":"string","title":"Status"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"file_key":{"type":"string","title":"File Key"},"file_name":{"type":"string","title":"File Name"},"file_size":{"type":"integer","title":"File Size"}},"type":"object","required":["status","project_id","file_key","file_name","file_size"],"title":"FileUploadResponse"},"FinalAnswer":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"page_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Page Sha256"},"decision":{"type":"string","const":"accept","title":"Decision"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"additionalProperties":false,"type":"object","required":["artifact_id","page_sha256","decision"],"title":"FinalAnswer","description":"Final acceptance of the finished book."},"FinalBookApprovalRequest":{"properties":{"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Notes"}},"type":"object","title":"FinalBookApprovalRequest"},"FinalBookRevisionRequest":{"properties":{"notes":{"type":"string","maxLength":4000,"minLength":1,"title":"Notes"}},"type":"object","required":["notes"],"title":"FinalBookRevisionRequest"},"FinalizeVotePageRequest":{"properties":{"selected_concept_ids":{"items":{"type":"string","maxLength":200},"type":"array","maxItems":8,"minItems":1,"title":"Selected Concept Ids"}},"type":"object","required":["selected_concept_ids"],"title":"FinalizeVotePageRequest"},"FinancingAnswerRequest":{"properties":{"verification_run_id":{"type":"string","format":"uuid","title":"Verification Run Id"},"partner":{"type":"string","enum":["none","jill","flexxbuy","payva"],"title":"Partner"},"source_note":{"type":"string","maxLength":500,"minLength":5,"title":"Source Note"},"answered_by":{"type":"string","maxLength":200,"minLength":2,"title":"Answered By"}},"type":"object","required":["verification_run_id","partner","source_note","answered_by"],"title":"FinancingAnswerRequest","description":"Body of ``POST /invoices/{id}/lines/{line_id}/financing``."},"FinancingAnswers":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","default":"US"},"state_province":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"State Province"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"USD"},"purchase_use":{"type":"string","const":"business","title":"Purchase Use","default":"business"},"credit_band":{"type":"string","enum":["unknown","no_credit","below_460","460_549","550_599","600_669","670_plus"],"title":"Credit Band","default":"unknown"},"income_band":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Income Band"},"down_payment_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Down Payment Cents","default":0},"monthly_comfort_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Comfort Cents"},"max_term_months":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Max Term Months"},"can_pay_in_full":{"type":"boolean","title":"Can Pay In Full","default":false},"has_full_card_limit":{"type":"boolean","title":"Has Full Card Limit","default":false},"avoid_hard_inquiry":{"type":"boolean","title":"Avoid Hard Inquiry","default":false},"wants_jill_help":{"type":"boolean","title":"Wants Jill Help","default":false},"consent_to_update_ghl_credit":{"type":"boolean","title":"Consent To Update Ghl Credit","default":false},"attempted_providers":{"items":{"type":"string","maxLength":80,"minLength":1},"type":"array","maxItems":20,"title":"Attempted Providers"}},"type":"object","title":"FinancingAnswers"},"FinancingIntakeResponse":{"properties":{"intake_id":{"type":"string","format":"uuid","title":"Intake Id"},"track":{"type":"string","enum":["authority","packages"],"title":"Track"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"package_code":{"anyOf":[{"type":"string","enum":["book_package","business_package","backend_package"]},{"type":"null"}],"title":"Package Code"},"product_code":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Product Code"},"include_audiobook":{"type":"boolean","title":"Include Audiobook"},"customer_price_cents":{"type":"integer","title":"Customer Price Cents"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"answers":{"anyOf":[{"$ref":"#/components/schemas/FinancingAnswers"},{"type":"null"}]},"recommendation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Recommendation"},"internal_plan_available":{"type":"boolean","title":"Internal Plan Available","default":false},"internal_plan_fallback_available":{"type":"boolean","title":"Internal Plan Fallback Available","default":false},"direct_checkout_enabled":{"type":"boolean","title":"Direct Checkout Enabled","default":false},"intake_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intake Token"}},"type":"object","required":["intake_id","track","include_audiobook","customer_price_cents","expires_at"],"title":"FinancingIntakeResponse"},"FinancingLinkResponse":{"properties":{"intake_id":{"type":"string","format":"uuid","title":"Intake Id"},"token":{"type":"string","minLength":20,"title":"Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"track":{"type":"string","enum":["authority","packages"],"title":"Track"},"package_code":{"anyOf":[{"type":"string","enum":["book_package","business_package","backend_package"]},{"type":"null"}],"title":"Package Code"}},"type":"object","required":["intake_id","token","expires_at","track"],"title":"FinancingLinkResponse"},"FinancingPackageCheckoutSwitchRequest":{"properties":{"financing_token":{"type":"string","maxLength":2000,"minLength":20,"title":"Financing Token"}},"type":"object","required":["financing_token"],"title":"FinancingPackageCheckoutSwitchRequest","description":"Buyer capability used only to retire its matching direct package checkout."},"FinancingSubmitRequest":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","default":"US"},"state_province":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"State Province"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"USD"},"purchase_use":{"type":"string","const":"business","title":"Purchase Use","default":"business"},"credit_band":{"type":"string","enum":["unknown","no_credit","below_460","460_549","550_599","600_669","670_plus"],"title":"Credit Band","default":"unknown"},"income_band":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Income Band"},"down_payment_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Down Payment Cents","default":0},"monthly_comfort_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Comfort Cents"},"max_term_months":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Max Term Months"},"can_pay_in_full":{"type":"boolean","title":"Can Pay In Full","default":false},"has_full_card_limit":{"type":"boolean","title":"Has Full Card Limit","default":false},"avoid_hard_inquiry":{"type":"boolean","title":"Avoid Hard Inquiry","default":false},"wants_jill_help":{"type":"boolean","title":"Wants Jill Help","default":false},"consent_to_update_ghl_credit":{"type":"boolean","title":"Consent To Update Ghl Credit","default":false},"attempted_providers":{"items":{"type":"string","maxLength":80,"minLength":1},"type":"array","maxItems":20,"title":"Attempted Providers"}},"type":"object","title":"FinancingSubmitRequest"},"FirstTouch":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"utm_content":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Content"},"utm_term":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Term"},"gclid":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Gclid"},"gbraid":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Gbraid"},"wbraid":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Wbraid"},"fbclid":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Fbclid"},"msclkid":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Msclkid"},"channel":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Channel"},"landing_page":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Landing Page"},"referrer":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Referrer"},"captured_at":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Captured At"}},"type":"object","title":"FirstTouch","description":"What the visitor's FIRST visit looked like (written once per visitor)."},"FleetStatsIn":{"properties":{"host":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9_.\\-]+$","title":"Host"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"window_end":{"type":"string","format":"date-time","title":"Window End"},"worktrees":{"additionalProperties":{"type":"integer"},"type":"object","maxProperties":200,"title":"Worktrees"},"blocked_reasons":{"additionalProperties":{"type":"integer"},"type":"object","maxProperties":200,"title":"Blocked Reasons"},"review_rounds":{"additionalProperties":{"type":"integer"},"type":"object","maxProperties":200,"title":"Review Rounds"},"reviews":{"additionalProperties":{"type":"integer"},"type":"object","maxProperties":200,"title":"Reviews"},"github":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"number"}]},"type":"object","maxProperties":200,"title":"Github"}},"type":"object","required":["host","window_start","window_end"],"title":"FleetStatsIn","description":"Weekly agent-fleet aggregates from one workstation or server.\n\nCounts and distributions only (no file contents, prompts or secrets)."},"ForewordCallView":{"properties":{"state":{"type":"string","enum":["none","scheduled","in_progress","processing","missed"],"title":"State","default":"none"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"phone_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Last4"},"can_request":{"type":"boolean","title":"Can Request","default":false},"requests_left":{"type":"integer","title":"Requests Left","default":0},"deferred":{"type":"boolean","title":"Deferred","default":false},"notice":{"anyOf":[{"$ref":"#/components/schemas/ReleaseOfferModel"},{"type":"null"}]}},"type":"object","title":"ForewordCallView","description":"The \"Call me now\" door: the expert's call state and the call notice."},"ForewordSlot":{"properties":{"status":{"type":"string","title":"Status","default":"empty"},"has_text":{"type":"boolean","title":"Has Text","default":false},"byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline"},"expert_foreword_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expert Foreword Id"}},"type":"object","title":"ForewordSlot"},"FreeBlueprintAttribution":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"utm_content":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Content"},"utm_term":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Term"},"fbclid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbclid"},"fbp":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbc"},"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"},"ga_client_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Ga Client Id"},"ga_session_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Ga Session Id"},"event_source_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Event Source Url"},"landing_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Landing Url"}},"type":"object","title":"FreeBlueprintAttribution"},"FreeGuideFeedback":{"properties":{"action":{"type":"string","enum":["change","leave_out","keep","link"],"title":"Action"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["action"],"title":"FreeGuideFeedback"},"FreebieSetCreate":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name"},"intended_use":{"type":"string","enum":["lead_magnet","in_book_appendix"],"title":"Intended Use","default":"lead_magnet"},"package_format":{"type":"string","enum":["zip","pdf"],"title":"Package Format","default":"zip"},"material_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"title":"Material Ids"}},"type":"object","required":["name","material_ids"],"title":"FreebieSetCreate"},"FreebieSetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"intended_use":{"type":"string","title":"Intended Use"},"package_format":{"type":"string","title":"Package Format"},"status":{"type":"string","title":"Status"},"material_count":{"type":"integer","title":"Material Count"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"qr_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qr Url"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name","intended_use","package_format","status","material_count"],"title":"FreebieSetResponse"},"FreebieSetUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"intended_use":{"anyOf":[{"type":"string","enum":["lead_magnet","in_book_appendix"]},{"type":"null"}],"title":"Intended Use"},"package_format":{"anyOf":[{"type":"string","enum":["zip","pdf"]},{"type":"null"}],"title":"Package Format"},"material_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50},{"type":"null"}],"title":"Material Ids"}},"type":"object","title":"FreebieSetUpdate"},"FreezeInteriorRequest":{"properties":{"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"}},"additionalProperties":true,"type":"object","title":"FreezeInteriorRequest"},"FtcSignatureRequest":{"properties":{"signature_name":{"type":"string","maxLength":200,"minLength":2,"title":"Signature Name"}},"type":"object","required":["signature_name"],"title":"FtcSignatureRequest","description":"Request to submit an FTC compliance e-signature."},"FulfillmentPipelineSeedRequest":{"properties":{"dispatch":{"type":"boolean","title":"Dispatch","default":true},"actor":{"type":"string","maxLength":200,"title":"Actor","default":"ops"}},"type":"object","title":"FulfillmentPipelineSeedRequest","description":"Options for seeding and dispatching post-book fulfillment."},"FullSeasonAudioAuthorizationRequest":{"properties":{"expected_manifest_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Manifest Hash"},"authorization_version":{"type":"string","const":"podcast_full_season_audio_authorization_v2","title":"Authorization Version"},"authorized":{"type":"boolean","const":true,"title":"Authorized"}},"additionalProperties":false,"type":"object","required":["expected_manifest_hash","authorization_version","authorized"],"title":"FullSeasonAudioAuthorizationRequest"},"FullSeasonAuthorizationRequest":{"properties":{"expected_concept_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Concept Hash"},"expected_offer_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Offer Hash"},"expected_pilot_script_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Pilot Script Hash"},"expected_pilot_audio_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Pilot Audio Sha256"},"authorization_version":{"type":"string","enum":["podcast_full_season_authorization_v1","podcast_full_season_script_preparation_v2"],"title":"Authorization Version"},"authorized":{"type":"boolean","const":true,"title":"Authorized"}},"additionalProperties":false,"type":"object","required":["expected_concept_hash","expected_offer_hash","expected_pilot_script_hash","expected_pilot_audio_sha256","authorization_version","authorized"],"title":"FullSeasonAuthorizationRequest"},"FundingRepCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"slack_user_id":{"type":"string","maxLength":64,"pattern":"^[UW][A-Z0-9]{2,63}$","title":"Slack User Id"},"timezone":{"type":"string","maxLength":64,"title":"Timezone","default":"America/New_York"},"ghl_option":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ghl Option"},"partner_code":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z0-9_]{1,40}$"},{"type":"null"}],"title":"Partner Code"},"rotation_order":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Rotation Order","default":0},"title":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Title"},"call_phone":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^\\+?[0-9 ().-]{7,40}$"},{"type":"null"}],"title":"Call Phone"},"sms_phone":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^\\+?[0-9 ().-]{7,40}$"},{"type":"null"}],"title":"Sms Phone"},"bio":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Bio"},"pronoun":{"anyOf":[{"type":"string","enum":["she","he","they"]},{"type":"null"}],"title":"Pronoun"},"accepting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepting"},"fee_rate_percent":{"anyOf":[{"type":"number","maximum":10.0,"exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Fee Rate Percent"},"fee_paid_via":{"anyOf":[{"type":"string","enum":["direct","vendor"]},{"type":"null"}],"title":"Fee Paid Via"},"slack_channel_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^(?:[CG][A-Z0-9]{2,63})?$"},{"type":"null"}],"title":"Slack Channel Id"},"ghl_tag":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^(?:[a-z0-9][a-z0-9-]{0,62})?$"},{"type":"null"}],"title":"Ghl Tag"}},"additionalProperties":false,"type":"object","required":["name","email","slack_user_id"],"title":"FundingRepCreate"},"FundingRepUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"slack_user_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[UW][A-Z0-9]{2,63}$"},{"type":"null"}],"title":"Slack User Id"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"ghl_option":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ghl Option"},"partner_code":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z0-9_]{1,40}$"},{"type":"null"}],"title":"Partner Code"},"rotation_order":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Rotation Order"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"funding_role":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Funding Role"},"title":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Title"},"call_phone":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^\\+?[0-9 ().-]{7,40}$"},{"type":"null"}],"title":"Call Phone"},"sms_phone":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^\\+?[0-9 ().-]{7,40}$"},{"type":"null"}],"title":"Sms Phone"},"bio":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Bio"},"pronoun":{"anyOf":[{"type":"string","enum":["she","he","they"]},{"type":"null"}],"title":"Pronoun"},"accepting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepting"},"fee_rate_percent":{"anyOf":[{"type":"number","maximum":10.0,"exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Fee Rate Percent"},"fee_paid_via":{"anyOf":[{"type":"string","enum":["direct","vendor"]},{"type":"null"}],"title":"Fee Paid Via"},"slack_channel_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^(?:[CG][A-Z0-9]{2,63})?$"},{"type":"null"}],"title":"Slack Channel Id"},"ghl_tag":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^(?:[a-z0-9][a-z0-9-]{0,62})?$"},{"type":"null"}],"title":"Ghl Tag"}},"additionalProperties":false,"type":"object","title":"FundingRepUpdate"},"FunnelQuizDataResponse":{"properties":{"book_type":{"type":"string","title":"Book Type"},"suggested_framework":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Suggested Framework"},"scores":{"additionalProperties":{"type":"integer"},"type":"object","title":"Scores"},"answers":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Answers"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["book_type","scores","answers","created_at"],"title":"FunnelQuizDataResponse","description":"Response for GET /quiz/{author_id}."},"FunnelQuizResponse":{"properties":{"status":{"type":"string","title":"Status"},"author_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Id"},"book_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Type"},"suggested_framework":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Suggested Framework"},"scores":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Scores"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["status"],"title":"FunnelQuizResponse","description":"Response after quiz submission."},"FunnelQuizSubmission":{"properties":{"full_name":{"type":"string","maxLength":80,"minLength":1,"title":"Full Name"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Timezone"},"answers":{"additionalProperties":{"type":"string","maxLength":500},"propertyNames":{"maxLength":20},"type":"object","maxProperties":20,"title":"Answers"},"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"utm_content":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Content"},"fbclid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbclid"},"gclid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Gclid"},"meta_event_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Meta Event Id"},"fbp":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbc"}},"type":"object","required":["full_name","email","answers"],"title":"FunnelQuizSubmission","description":"Funnel quiz submission payload (9 active questions, original q-keys)."},"GHLContactSummary":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"assigned_user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned User Email"},"assigned_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned User Name"},"payment_provider":{"type":"string","title":"Payment Provider","default":"unknown"},"date_added":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Added"},"custom_fields":{"additionalProperties":true,"type":"object","title":"Custom Fields"}},"type":"object","required":["contact_id"],"title":"GHLContactSummary"},"GHLLogRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"},"tags":{"items":{"type":"string","maxLength":200},"type":"array","maxItems":50,"title":"Tags"},"note":{"type":"string","maxLength":5000,"title":"Note","default":""}},"type":"object","required":["customer_email"],"title":"GHLLogRequest"},"GHLLogResponse":{"properties":{"logged":{"type":"boolean","title":"Logged","default":false},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"message":{"type":"string","title":"Message","default":""}},"type":"object","title":"GHLLogResponse"},"GHLOAuthTokenAdminResponse":{"properties":{"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"app_domain":{"type":"string","title":"App Domain"},"company_name":{"type":"string","title":"Company Name","default":""},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"ghl_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl User Id"},"status":{"type":"string","title":"Status"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"scope":{"type":"string","title":"Scope","default":""},"installed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Installed At"},"last_refreshed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Refreshed At"},"last_refresh_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Refresh Attempt At"},"last_refresh_error":{"type":"string","title":"Last Refresh Error","default":""},"has_env_fallback":{"type":"boolean","title":"Has Env Fallback","default":false},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["app_domain","status"],"title":"GHLOAuthTokenAdminResponse"},"GenerateChartRequest":{"properties":{"chart_type":{"type":"string","maxLength":64,"minLength":1,"title":"Chart Type"},"data_text":{"type":"string","maxLength":4000,"minLength":1,"title":"Data Text"}},"additionalProperties":false,"type":"object","required":["chart_type","data_text"],"title":"GenerateChartRequest","description":"Safe-catalog chart/diagram generation request."},"GenerateDescribedRequest":{"properties":{"instructions":{"type":"string","maxLength":4000,"minLength":1,"title":"Instructions"}},"additionalProperties":false,"type":"object","required":["instructions"],"title":"GenerateDescribedRequest","description":"Describe-an-image generation request."},"GenerateRequest":{"properties":{"kinds":{"items":{"type":"string","enum":["marketing_plan","local_promo","social_year","local_contacts"]},"type":"array","maxItems":4,"minItems":1,"title":"Kinds"},"force":{"type":"boolean","title":"Force","default":false}},"additionalProperties":false,"type":"object","required":["kinds"],"title":"GenerateRequest"},"GiveawayAnswer":{"properties":{"decision":{"type":"string","enum":["opt_in","withdrawn"],"title":"Decision"},"wording_version":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Wording Version"},"wording_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Wording Sha256"}},"additionalProperties":false,"type":"object","required":["decision","wording_version","wording_sha256"],"title":"GiveawayAnswer"},"GoLive":{"properties":{"confirm":{"type":"boolean","title":"Confirm","default":false}},"additionalProperties":false,"type":"object","title":"GoLive"},"GraphicsBylineRequest":{"properties":{"byline":{"type":"string","maxLength":200,"minLength":1,"title":"Byline"},"regenerate":{"type":"boolean","title":"Regenerate","default":true}},"additionalProperties":false,"type":"object","required":["byline"],"title":"GraphicsBylineRequest","description":"The author's own byline words for her graphics (verbatim, never composed)."},"GuestArticleInput":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"outlet":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Outlet"},"url":{"type":"string","maxLength":500,"minLength":1,"title":"Url"}},"additionalProperties":false,"type":"object","required":["title","url"],"title":"GuestArticleInput"},"GuestBlueprintOptInRequest":{"properties":{"first_name":{"type":"string","maxLength":80,"minLength":1,"title":"First Name"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"phone":{"type":"string","maxLength":40,"minLength":7,"title":"Phone"},"consent":{"type":"boolean","const":true,"title":"Consent"}},"type":"object","required":["first_name","email","phone","consent"],"title":"GuestBlueprintOptInRequest","description":"Public capture for /book-blueprint-call → GHL podcast-dm-outreach tag."},"GuestBlueprintOptInResponse":{"properties":{"status":{"type":"string","title":"Status"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["status"],"title":"GuestBlueprintOptInResponse"},"GuestCampaign":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"query":{"type":"string","title":"Query"},"discovery_queries_json":{"items":{},"type":"array","title":"Discovery Queries Json"},"status":{"type":"string","enum":["draft","discovering","prospects_ready","enriching","contacts_ready","loaded_to_smartlead","sending","reply_triage","paused","completed","canceled","failed"],"title":"Status"},"allowed_languages_json":{"items":{},"type":"array","title":"Allowed Languages Json"},"genre_ids_json":{"items":{},"type":"array","title":"Genre Ids Json"},"published_within_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Published Within Days"},"min_episode_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Episode Minutes"},"sender_pool_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Pool Key"},"max_enrichment_cost":{"type":"number","title":"Max Enrichment Cost","default":0.0},"max_enrichment_attempts_per_prospect":{"type":"integer","title":"Max Enrichment Attempts Per Prospect","default":1},"enrichment_cost_spent":{"type":"number","title":"Enrichment Cost Spent","default":0.0},"enrichment_cost_month_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrichment Cost Month Key"},"enrichment_cost_month_spent":{"type":"number","title":"Enrichment Cost Month Spent","default":0.0},"smartlead_campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Campaign Id"},"smartlead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Status"},"autopilot_enabled":{"type":"boolean","title":"Autopilot Enabled","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","query","status","created_at","updated_at"],"title":"GuestCampaign"},"GuestCampaignCreate":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"query":{"type":"string","maxLength":255,"title":"Query"},"discovery_queries_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Discovery Queries Json"},"status":{"type":"string","enum":["draft","discovering","prospects_ready","enriching","contacts_ready","loaded_to_smartlead","sending","reply_triage","paused","completed","canceled","failed"],"title":"Status","default":"draft"},"allowed_languages_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Allowed Languages Json"},"genre_ids_json":{"items":{"type":"integer"},"type":"array","maxItems":50,"title":"Genre Ids Json"},"published_within_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Published Within Days","default":180},"min_episode_minutes":{"anyOf":[{"type":"integer","maximum":600.0,"minimum":0.0},{"type":"null"}],"title":"Min Episode Minutes","default":15},"sender_pool_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Sender Pool Key"},"max_enrichment_cost":{"type":"number","minimum":0.0,"title":"Max Enrichment Cost","default":0.0},"max_enrichment_attempts_per_prospect":{"type":"integer","maximum":6.0,"minimum":1.0,"title":"Max Enrichment Attempts Per Prospect","default":1},"autopilot_enabled":{"type":"boolean","title":"Autopilot Enabled","default":false}},"additionalProperties":false,"type":"object","required":["name","query"],"title":"GuestCampaignCreate"},"GuestCampaignUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"query":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Query"},"discovery_queries_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Discovery Queries Json"},"status":{"anyOf":[{"type":"string","enum":["draft","discovering","prospects_ready","enriching","contacts_ready","loaded_to_smartlead","sending","reply_triage","paused","completed","canceled","failed"]},{"type":"null"}],"title":"Status"},"allowed_languages_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Allowed Languages Json"},"genre_ids_json":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":50},{"type":"null"}],"title":"Genre Ids Json"},"published_within_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Published Within Days"},"min_episode_minutes":{"anyOf":[{"type":"integer","maximum":600.0,"minimum":0.0},{"type":"null"}],"title":"Min Episode Minutes"},"sender_pool_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Sender Pool Key"},"max_enrichment_cost":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Enrichment Cost"},"max_enrichment_attempts_per_prospect":{"anyOf":[{"type":"integer","maximum":6.0,"minimum":1.0},{"type":"null"}],"title":"Max Enrichment Attempts Per Prospect"},"smartlead_campaign_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Smartlead Campaign Id"},"enrichment_cost_spent":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Enrichment Cost Spent"},"autopilot_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autopilot Enabled"}},"additionalProperties":false,"type":"object","title":"GuestCampaignUpdate"},"GuestCreateRequest":{"properties":{"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lead Id"},"guest_name":{"type":"string","maxLength":200,"title":"Guest Name"},"guest_email":{"type":"string","format":"email","title":"Guest Email"},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company"},"linkedin":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Linkedin"},"niche":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Niche"},"intake":{"anyOf":[{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":60},{"type":"null"}],"title":"Intake","description":"Apply/onboarding form payload"},"mini_bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Mini Bio"},"learn_more":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Learn More"},"zoom_meeting_id":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Zoom Meeting Id"},"recording_source":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Recording Source"},"transcript_raw":{"anyOf":[{"type":"string","maxLength":500000},{"type":"null"}],"title":"Transcript Raw"},"speaker_map":{"anyOf":[{"additionalProperties":{"type":"string","enum":["ai","human"]},"propertyNames":{"maxLength":120},"type":"object","maxProperties":40},{"type":"null"}],"title":"Speaker Map","description":"Speaker label -> ai|human"},"waiver_accepted_at":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Waiver Accepted At"},"waiver_version":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Waiver Version"},"status":{"type":"string","enum":["applied","questions_ready","booked","interviewed","assets_ready","published","converted"],"title":"Status","default":"applied"}},"type":"object","required":["guest_name","guest_email"],"title":"GuestCreateRequest","description":"Create-guest payload. ``edition_id`` comes from the PATH, not the body,\nso it is intentionally absent here (prevents body/path divergence).\n\nMirrors ``AnthologyGuestCreate`` field bounds. Supports the manual paste\npath: an operator may include ``transcript_raw`` + ``speaker_map`` directly."},"GuestDiscoverRequest":{"properties":{"query":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Query"},"languages":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Languages"},"genre_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":50},{"type":"null"}],"title":"Genre Ids"},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50}},"additionalProperties":false,"type":"object","title":"GuestDiscoverRequest","description":"Run Listen Notes episode discovery for a campaign (mine episodes for guests)."},"GuestDiscoverResponse":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"status":{"type":"string","title":"Status","default":"queued"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["batch_id"],"title":"GuestDiscoverResponse","description":"Accepted/queued response — discovery runs in Celery (it makes per-episode AI\ncalls, which must never run in a request handler). Poll the batch / prospects list\nfor results."},"GuestEnrichResponse":{"properties":{"status":{"type":"string","title":"Status","default":"queued"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","title":"GuestEnrichResponse","description":"Accepted/queued ack for the contact-discovery waterfall (runs in Celery)."},"GuestProspect":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"campaign_id":{"type":"string","format":"uuid","title":"Campaign Id"},"name":{"type":"string","title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"persona_type":{"type":"string","enum":["corporate","coach","creator","author","academic","other"],"title":"Persona Type","default":"other"},"discovered_podcast_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovered Podcast Name"},"discovered_listennotes_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovered Listennotes Id"},"episode_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Title"},"episode_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Url"},"episode_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Audio Url"},"episode_pub_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Episode Pub Date"},"episode_desc_snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Desc Snippet"},"appearances_json":{"items":{},"type":"array","title":"Appearances Json"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"email_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Source"},"email_validation_status":{"type":"string","title":"Email Validation Status","default":"unknown"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"instagram_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram Url"},"twitter_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twitter Url"},"youtube_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Url"},"contact_channel":{"type":"string","title":"Contact Channel","default":"none"},"pipeline_status":{"type":"string","enum":["discovered","guest_extracted","contact_search","contact_found","no_contact","queued_email","queued_dm","outreach_sent","replied","interested","call_booked","not_interested","deliverable_generating","deliverable_sent","converted","closed"],"title":"Pipeline Status","default":"discovered"},"fit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fit Score"},"why_fit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why Fit"},"fit_context_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fit Context Json"},"dm_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dm Text"},"dm_outreach_state":{"anyOf":[{"$ref":"#/components/schemas/DmOutreachState"},{"type":"null"}]},"approved":{"type":"boolean","title":"Approved","default":false},"enrichment_attempts":{"type":"integer","title":"Enrichment Attempts","default":0},"enrichment_cost":{"type":"number","title":"Enrichment Cost","default":0.0},"smartlead_lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Lead Id"},"smartlead_campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Campaign Id"},"deliverable_status":{"type":"string","title":"Deliverable Status","default":"none"},"transcript_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript R2 Key"},"outline_json":{"items":{},"type":"array","title":"Outline Json"},"sample_chapter_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Chapter R2 Key"},"deliverable_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Pdf Url"},"ghl_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Contact Id"},"ghl_opportunity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Opportunity Id"},"last_reply_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reply At"},"last_reply_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reply Classification"},"compliance_verdicts_json":{"items":{},"type":"array","title":"Compliance Verdicts Json"},"last_reply_audit_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Reply Audit Json"},"operator_flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator Flag"},"social_identity_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Social Identity Confidence"},"social_identity_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Social Identity Reason"},"interested_followup_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Interested Followup Json"},"call_booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Call Booked At"},"contact_resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contact Resolved 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","campaign_id","name","created_at","updated_at"],"title":"GuestProspect"},"GuestProspectApprovalRequest":{"properties":{"approved":{"type":"boolean","title":"Approved"}},"additionalProperties":false,"type":"object","required":["approved"],"title":"GuestProspectApprovalRequest"},"GuestSpeakerCreate":{"properties":{"display_name":{"type":"string","maxLength":120,"minLength":1,"title":"Display Name"},"guest_email":{"type":"string","maxLength":254,"minLength":6,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Guest Email"},"guest_book_title":{"type":"string","maxLength":200,"minLength":1,"title":"Guest Book Title"},"guest_book_subtitle":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Guest Book Subtitle"},"guest_bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Guest Bio"},"guest_book_url":{"anyOf":[{"type":"string","maxLength":500,"pattern":"^https://[^\\s<>\\\"']+$"},{"type":"null"}],"title":"Guest Book Url"},"session_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Session Title"},"session_starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Session Starts At"},"card_label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Card Label"},"takeaway_line":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Takeaway Line"}},"additionalProperties":false,"type":"object","required":["display_name","guest_email","guest_book_title"],"title":"GuestSpeakerCreate","description":"A speaker with no Dictate project: her own name, address and book (GH #16513)."},"GuidedEventIn":{"properties":{"event":{"type":"string","enum":["check_opened","listen_opened","finish_opened","bigger_changes_opened","sounds_like_me","not_quite","celebration_shown"],"title":"Event"},"detail":{"type":"string","maxLength":60,"title":"Detail","default":""}},"additionalProperties":false,"type":"object","required":["event"],"title":"GuidedEventIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HarvestBatch":{"properties":{"machine":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9._-]+$","title":"Machine"},"harvester_version":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Harvester Version"},"turns":{"items":{"$ref":"#/components/schemas/HarvestTurn"},"type":"array","maxItems":50,"title":"Turns"}},"additionalProperties":false,"type":"object","required":["machine"],"title":"HarvestBatch"},"HarvestTurn":{"properties":{"source":{"type":"string","enum":["claude_code","codex","grok","gemini","slack_bridge"],"title":"Source"},"session_ref":{"type":"string","maxLength":200,"minLength":1,"title":"Session Ref"},"turn_id":{"type":"string","maxLength":200,"minLength":1,"title":"Turn Id"},"observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observed At"},"project":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Project"},"text":{"type":"string","maxLength":6000,"minLength":1,"title":"Text"},"prior_agent_excerpt":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Prior Agent Excerpt"}},"additionalProperties":false,"type":"object","required":["source","session_ref","turn_id","text"],"title":"HarvestTurn"},"HouseShowApproveCutRequest":{"properties":{"approved_by":{"type":"string","maxLength":120,"minLength":1,"title":"Approved By"}},"additionalProperties":false,"type":"object","required":["approved_by"],"title":"HouseShowApproveCutRequest","description":"Admin approve-cut: unlocks publish for both masters."},"HouseShowBackfillRequest":{"properties":{"project_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"minItems":1,"title":"Project Ids"}},"additionalProperties":false,"type":"object","required":["project_ids"],"title":"HouseShowBackfillRequest","description":"Admin backfill: explicit project ids only — never a cohort sweep."},"HouseShowChangeRequestAdminUpdate":{"properties":{"status":{"type":"string","enum":["open","reviewed","done"],"title":"Status"},"admin_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Admin Note"}},"additionalProperties":false,"type":"object","required":["status"],"title":"HouseShowChangeRequestAdminUpdate","description":"Admin review action: move the request through the workflow."},"HouseShowChangeRequestPortalBody":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"additionalProperties":false,"type":"object","required":["body"],"title":"HouseShowChangeRequestPortalBody","description":"Author-facing POST body — bounded, nothing but the request text."},"HouseShowChangeRequestResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"episode_id":{"type":"string","format":"uuid","title":"Episode Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"body":{"type":"string","title":"Body"},"status":{"type":"string","enum":["open","reviewed","done"],"title":"Status","default":"open"},"admin_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","episode_id","project_id","body","created_at","updated_at"],"title":"HouseShowChangeRequestResponse","description":"Full change-request row as returned by Supabase."},"HouseShowCutReadyClip":{"properties":{"clip_index":{"type":"integer","minimum":0.0,"title":"Clip Index"},"status":{"type":"string","enum":["planned","rendering","rendered","failed","skipped"],"title":"Status"},"hook_text":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Hook Text"},"duration_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Duration Seconds"},"video_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Video Url"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Thumbnail Url"}},"additionalProperties":false,"type":"object","required":["clip_index","status"],"title":"HouseShowCutReadyClip","description":"One social clip shown beside its cut (Mike, 2026-11-24)."},"HouseShowCutReadyItem":{"properties":{"episode_id":{"type":"string","format":"uuid","title":"Episode Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"status":{"type":"string","enum":["editing","cut_approved"],"title":"Status"},"author_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Author Name"},"book_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Book Title"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"summary":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Summary"},"duration_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Duration Seconds"},"audio_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Audio Url"},"video_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Video Url"},"recut_notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Recut Notes"},"cut_approved_by":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Cut Approved By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"ai_edit_summary":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Ai Edit Summary"},"testimonial_audio_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Testimonial Audio Url"},"testimonial_video_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Testimonial Video Url"},"testimonial_quote":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Testimonial Quote"},"testimonial_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Testimonial Consent"},"testimonial_cuts":{"items":{"$ref":"#/components/schemas/HouseShowTestimonialCutLink"},"type":"array","maxItems":12,"title":"Testimonial Cuts"},"clips":{"items":{"$ref":"#/components/schemas/HouseShowCutReadyClip"},"type":"array","maxItems":30,"title":"Clips"},"recording_check_note":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Recording Check Note"},"edit_check_note":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Edit Check Note"},"release_local":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Release Local"},"release_rule":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Release Rule"}},"additionalProperties":false,"type":"object","required":["episode_id","project_id","status","updated_at"],"title":"HouseShowCutReadyItem","description":"One finished cut on the admin review board (approve without curl)."},"HouseShowCutReadyList":{"properties":{"count":{"type":"integer","minimum":0.0,"title":"Count"},"episodes":{"items":{"$ref":"#/components/schemas/HouseShowCutReadyItem"},"type":"array","maxItems":200,"title":"Episodes"}},"additionalProperties":false,"type":"object","required":["count"],"title":"HouseShowCutReadyList"},"HouseShowEnsureRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"HouseShowEnsureRequest"},"HouseShowEpisodeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"podcast_author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Podcast Author Id"},"status":{"type":"string","enum":["pending","prep_ready","invited","scheduled","recorded","transcribed","editing","cut_approved","publishing","published","failed","cancelled"],"title":"Status"},"format_version":{"type":"integer","title":"Format Version","default":1},"sequence_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence Number"},"ghl_appointment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Appointment Id"},"ghl_calendar_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Calendar Id"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"recorded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Recorded At"},"recording_expected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Recording Expected At"},"prep_pack_json":{"additionalProperties":true,"type":"object","title":"Prep Pack Json"},"host_brief_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Brief R2 Key"},"guest_brief_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Brief R2 Key"},"prep_pack_generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Prep Pack Generated At"},"recording_source":{"anyOf":[{"type":"string","enum":["zoom_cloud","manual_upload"]},{"type":"null"}],"title":"Recording Source"},"zoom_meeting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zoom Meeting Id"},"zoom_layout":{"anyOf":[{"type":"string","enum":["active_speaker","gallery_view","shared_screen_speaker_view"]},{"type":"null"}],"title":"Zoom Layout"},"source_audio_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Audio R2 Key"},"source_audio_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Audio Sha256"},"source_video_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Video R2 Key"},"source_video_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Video Sha256"},"source_duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Source Duration Seconds"},"transcript_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript R2 Key"},"word_timestamps_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Word Timestamps R2 Key"},"transcript_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Provider"},"transcribed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Transcribed At"},"edl_json":{"additionalProperties":true,"type":"object","title":"Edl Json"},"episode_audio_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Audio R2 Key"},"episode_audio_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Audio Sha256"},"episode_video_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Video R2 Key"},"episode_video_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Video Sha256"},"episode_duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Episode Duration Seconds"},"cut_approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cut Approved At"},"cut_approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cut Approved By"},"recut_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recut Notes"},"transistor_upload_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transistor Upload Audio Url"},"transistor_upload_attempt_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transistor Upload Attempt Id"},"transistor_create_attempt_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transistor Create Attempt Id"},"transistor_publish_attempt_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transistor Publish Attempt Id"},"transistor_attempt_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Transistor Attempt Started At"},"transistor_episode_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transistor Episode Id"},"transistor_media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transistor Media Url"},"episode_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Url"},"youtube_video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Video Id"},"youtube_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Url"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"show_notes_json":{"additionalProperties":true,"type":"object","title":"Show Notes Json"},"segments_json":{"items":{},"type":"array","title":"Segments Json"},"callbacks_json":{"items":{},"type":"array","title":"Callbacks Json"},"outro_teaser_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outro Teaser Text"},"teaser_target_episode_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teaser Target Episode Id"},"episode_art_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Art R2 Key"},"amazon_url_snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url Snapshot"},"amazon_url_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url Source"},"promo_mode":{"type":"string","enum":["newsletter","solo","solo_book_promo"],"title":"Promo Mode","default":"newsletter"},"promo_sends_target":{"type":"integer","title":"Promo Sends Target","default":0},"promo_sends_done":{"type":"integer","title":"Promo Sends Done","default":0},"list_email_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"List Email Sent At"},"list_email_dedupe_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Email Dedupe Key"},"guest_kit_r2_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Kit R2 Prefix"},"guest_kit_built_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Guest Kit Built At"},"public_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Slug"},"share_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Url"},"web_content_r2_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Content R2 Prefix"},"web_content_built_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Web Content Built At"},"clip_target_count":{"type":"integer","title":"Clip Target Count","default":0},"skip_intro":{"type":"boolean","title":"Skip Intro","default":false},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"lease_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lease Id"},"lease_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lease Expires At"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","project_id","status","created_at","updated_at"],"title":"HouseShowEpisodeResponse","description":"Full episode row as returned by Supabase."},"HouseShowHostNotesRequest":{"properties":{"notes":{"type":"string","maxLength":8000,"title":"Notes","default":""}},"additionalProperties":false,"type":"object","title":"HouseShowHostNotesRequest","description":"Admin: the host's own prep notes for one episode.\n\nSeparate from ``recut_notes`` (which drive an edit re-run) and from the\nAI-generated brief. These are Mike's questions, in his words, and nothing\nin the pipeline reads them — they exist purely so the prep board is a place\nhe can think, not just a place he reads generated output."},"HouseShowManualUploadRequest":{"properties":{"audio_r2_key":{"type":"string","maxLength":512,"minLength":1,"title":"Audio R2 Key"},"video_r2_key":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Video R2 Key"},"layout":{"type":"string","enum":["active_speaker","gallery_view","shared_screen_speaker_view"],"title":"Layout"},"duration_seconds":{"type":"number","maximum":14400.0,"minimum":60.0,"title":"Duration Seconds"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"}},"additionalProperties":false,"type":"object","required":["audio_r2_key","layout","duration_seconds","recorded_at"],"title":"HouseShowManualUploadRequest","description":"Admin manual-upload registration after presigned PUTs complete."},"HouseShowPromoPlay":{"properties":{"episode_id":{"type":"string","format":"uuid","title":"Episode Id"},"guest_name":{"type":"string","maxLength":200,"title":"Guest Name"},"episode_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Episode Title"},"summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Summary"},"takeaways":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Takeaways"},"book_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Book Title"},"episode_page_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Episode Page Url"},"youtube_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Youtube Url"},"amazon_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Amazon Url"},"guest_website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Guest Website"},"book_line":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Book Line"},"listen_links":{"additionalProperties":{"type":"string"},"type":"object","title":"Listen Links"},"released_at":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Released At"}},"additionalProperties":false,"type":"object","required":["episode_id","guest_name"],"title":"HouseShowPromoPlay","description":"A released episode waiting for its email in the daily play (Mike, 2026-11-26)."},"HouseShowPromoPlayDone":{"properties":{"play_tag":{"type":"string","maxLength":120,"minLength":3,"title":"Play Tag"}},"additionalProperties":false,"type":"object","required":["play_tag"],"title":"HouseShowPromoPlayDone"},"HouseShowPromoPlayList":{"properties":{"episodes":{"items":{"$ref":"#/components/schemas/HouseShowPromoPlay"},"type":"array","maxItems":20,"title":"Episodes"}},"type":"object","title":"HouseShowPromoPlayList"},"HouseShowRecutRequest":{"properties":{"notes":{"type":"string","maxLength":4000,"minLength":1,"title":"Notes"}},"additionalProperties":false,"type":"object","required":["notes"],"title":"HouseShowRecutRequest","description":"Admin recut: bounded notes drive a re-run of the EDL edit pass."},"HouseShowTestimonialCutLink":{"properties":{"label":{"type":"string","maxLength":120,"title":"Label"},"url":{"type":"string","maxLength":1024,"title":"Url"}},"type":"object","required":["label","url"],"title":"HouseShowTestimonialCutLink","description":"One edited testimonial cut on the staff review board."},"HouseShowUploadMintRequest":{"properties":{"audio_size_bytes":{"type":"integer","maximum":2147483648.0,"minimum":1.0,"title":"Audio Size Bytes"},"video_size_bytes":{"anyOf":[{"type":"integer","maximum":8589934592.0,"minimum":1.0},{"type":"null"}],"title":"Video Size Bytes"}},"additionalProperties":false,"type":"object","required":["audio_size_bytes"],"title":"HouseShowUploadMintRequest","description":"Sizes for the presigned source PUTs.\n\nThe declared length is baked into the R2 signature, so the storage\nboundary itself rejects any body of a different size — register-time\nchecks alone are a TOCTOU because the signed URL outlives them (grok\nadversarial review, 2026-08-12)."},"HumanTimeEntry":{"properties":{"role":{"type":"string","maxLength":64,"title":"Role"},"activity":{"type":"string","maxLength":256,"title":"Activity"},"minutes":{"type":"number","maximum":100000.0,"exclusiveMinimum":0.0,"title":"Minutes"},"hourly_cost_basis_usd":{"type":"number","maximum":10000.0,"minimum":0.0,"title":"Hourly Cost Basis Usd"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"}},"type":"object","required":["role","activity","minutes","hourly_cost_basis_usd"],"title":"HumanTimeEntry","description":"Admin-entered human-time cost (founding-cohort labor analysis)."},"ImagesDisabledResponse":{"properties":{"project_images_disabled":{"type":"boolean","title":"Project Images Disabled"},"chapter_images_disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Chapter Images Disabled"},"effective_disabled":{"type":"boolean","title":"Effective Disabled"}},"type":"object","required":["project_images_disabled","effective_disabled"],"title":"ImagesDisabledResponse","description":"Effective image opt-out state for the reader/settings UI."},"ImportFileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"source_kind":{"type":"string","title":"Source Kind"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"google_doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Id"},"declared_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Format"},"byte_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Byte Size"},"position":{"type":"integer","title":"Position","default":0},"provenance_origin":{"type":"string","title":"Provenance Origin"},"provenance_role":{"type":"string","title":"Provenance Role","default":"content"},"extraction_status":{"type":"string","title":"Extraction Status","default":"pending"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"author_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Message"},"converter_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Converter Version"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","session_id","project_id","source_kind","provenance_origin"],"title":"ImportFileResponse"},"ImportSessionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"intent":{"type":"string","title":"Intent"},"status":{"type":"string","title":"Status"},"scope_selection":{"items":{"type":"string"},"type":"array","title":"Scope Selection"},"stage_plan":{"additionalProperties":true,"type":"object","title":"Stage Plan"},"book_map":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Book Map"},"map_version":{"type":"integer","title":"Map Version","default":0},"map_approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Map Approved At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"files":{"items":{"$ref":"#/components/schemas/ImportFileResponse"},"type":"array","title":"Files"}},"type":"object","required":["id","project_id","intent","status"],"title":"ImportSessionResponse"},"InboundSupportResponseRequest":{"properties":{"source_channel":{"type":"string","enum":["email","sms"],"title":"Source Channel"},"source_message_id":{"type":"string","maxLength":255,"minLength":1,"title":"Source Message Id"},"sender_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Sender Email"},"sender_phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Sender Phone"},"subject":{"type":"string","maxLength":500,"title":"Subject","default":""},"body_text":{"type":"string","maxLength":20000,"minLength":1,"title":"Body Text"},"rfc_message_id":{"anyOf":[{"type":"string","maxLength":998},{"type":"null"}],"title":"Rfc Message Id"},"references":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"References"},"in_reply_to":{"anyOf":[{"type":"string","maxLength":998},{"type":"null"}],"title":"In Reply To"}},"type":"object","required":["source_channel","source_message_id","body_text"],"title":"InboundSupportResponseRequest","description":"Normalized event accepted from the Gmail/n8n ingress adapter."},"IncludedSubscriptionInfo":{"properties":{"stripe_subscription_id":{"type":"string","title":"Stripe Subscription Id"},"product_code":{"type":"string","title":"Product Code"},"status":{"type":"string","title":"Status"},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Period End"},"included_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Included Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"price_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Display"},"included_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Included Days"},"source":{"type":"string","enum":["package","offer"],"title":"Source","default":"package"},"cancelable":{"type":"boolean","title":"Cancelable","default":true}},"type":"object","required":["stripe_subscription_id","product_code","status"],"title":"IncludedSubscriptionInfo"},"IncludedSubscriptionsResponse":{"properties":{"subscriptions":{"items":{"$ref":"#/components/schemas/IncludedSubscriptionInfo"},"type":"array","title":"Subscriptions"}},"type":"object","required":["subscriptions"],"title":"IncludedSubscriptionsResponse"},"InitLedgerRequest":{"properties":{"tier":{"anyOf":[{"type":"string","enum":["authority_book","legacy_memoir","authority_launch","authority_engine","authority_command"]},{"type":"null"}],"title":"Tier"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"type":"object","title":"InitLedgerRequest","description":"Optional overrides for fulfillment ledger initialization."},"InlineCommentInput":{"properties":{"exact_quote":{"type":"string","maxLength":1000,"minLength":1,"title":"Exact Quote"},"prefix":{"type":"string","maxLength":64,"title":"Prefix","default":""},"suffix":{"type":"string","maxLength":64,"title":"Suffix","default":""},"approx_start":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Approx Start"},"approx_end":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Approx End"},"anchored_version_number":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Anchored Version Number","default":0},"note":{"type":"string","maxLength":2000,"minLength":1,"title":"Note"},"flag_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Flag Id"},"flag_answer":{"anyOf":[{"type":"string","enum":["fix","remove"]},{"type":"null"}],"title":"Flag Answer"}},"additionalProperties":false,"type":"object","required":["exact_quote","note"],"title":"InlineCommentInput","description":"One anchored comment from the in-portal reader (submit-time only).\n\nStrict, bounded per the author-facing write rule: a W3C text-quote anchor\n(exact quote + short context) plus a required, length-capped note."},"InlineCommentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"answered_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answered By Name"},"exact_quote":{"type":"string","title":"Exact Quote"},"prefix":{"type":"string","title":"Prefix","default":""},"suffix":{"type":"string","title":"Suffix","default":""},"approx_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approx Start"},"approx_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approx End"},"anchored_version_number":{"type":"integer","title":"Anchored Version Number","default":0},"note":{"type":"string","title":"Note"},"status":{"type":"string","title":"Status"},"origin":{"type":"string","title":"Origin","default":"author"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"resolved_by_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resolved By Version"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"author_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Answer"},"author_answer_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Answer Note"},"author_answered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Author Answered At"},"context_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Reason"},"context_quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Quote"},"context_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Source"},"fact_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fact Kind"},"rename_applied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rename Applied"},"rename_gave_up":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rename Gave Up"}},"type":"object","required":["id","exact_quote","note","status"],"title":"InlineCommentOut","description":"One stored inline comment, returned to the reader."},"InterviewCancelRequest":{"properties":{"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""},"reason_tag":{"anyOf":[{"type":"string","const":"audio_video_problem"},{"type":"null"}],"title":"Reason Tag"}},"type":"object","title":"InterviewCancelRequest","description":"Author requests to cancel a scheduled interview."},"InterviewConfirmRequest":{"properties":{},"type":"object","title":"InterviewConfirmRequest","description":"Author confirms a scheduled interview."},"InterviewRecordingResponse":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"url":{"type":"string","title":"Url"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds","default":900}},"type":"object","required":["interview_id","url"],"title":"InterviewRecordingResponse","description":"A short-lived, playable link to one interview recording."},"InterviewRescheduleRequest":{"properties":{"new_scheduled_at":{"type":"string","format":"date-time","title":"New Scheduled At"},"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""},"reason_tag":{"anyOf":[{"type":"string","const":"audio_video_problem"},{"type":"null"}],"title":"Reason Tag"}},"type":"object","required":["new_scheduled_at"],"title":"InterviewRescheduleRequest","description":"Author requests a reschedule."},"InterviewScheduleRequest":{"properties":{"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"interview_type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Interview Type"},"display_time":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Display Time"},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["scheduled_at"],"title":"InterviewScheduleRequest","description":"Author schedules a new interview from the portal."},"InterviewSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"interview_number":{"type":"integer","title":"Interview Number"},"status":{"type":"string","title":"Status"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","required":["id","interview_number","status"],"title":"InterviewSummary"},"InterviewTranscriptResponse":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"transcript":{"type":"string","title":"Transcript"}},"type":"object","required":["interview_id","transcript"],"title":"InterviewTranscriptResponse","description":"The readable text of one of the author's own interview calls."},"IntroduceRequest":{"properties":{"friend_first_name":{"type":"string","maxLength":100,"minLength":1,"title":"Friend First Name"},"friend_last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Friend Last Name"},"friend_email":{"type":"string","maxLength":254,"format":"email","title":"Friend Email"},"friend_phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Friend Phone"},"relationship":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Relationship"},"client_note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Client Note"},"expecting_call":{"type":"boolean","title":"Expecting Call","default":false}},"additionalProperties":false,"type":"object","required":["friend_first_name","friend_email"],"title":"IntroduceRequest"},"InviteArcReaderRequest":{"properties":{"reader_name":{"type":"string","maxLength":80,"minLength":1,"title":"Reader Name"},"reader_email":{"type":"string","maxLength":254,"format":"email","title":"Reader Email"},"relationship":{"type":"string","enum":["family","friend","colleague","client","other"],"title":"Relationship"},"mode":{"type":"string","enum":["view","comment"],"title":"Mode","default":"comment"}},"additionalProperties":false,"type":"object","required":["reader_name","reader_email","relationship"],"title":"InviteArcReaderRequest"},"InviteBody":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["email"],"title":"InviteBody"},"InviteReps":{"properties":{"reps":{"anyOf":[{"type":"string","const":"all_sales"},{"items":{"type":"string"},"type":"array"}],"title":"Reps"},"rotate":{"type":"boolean","title":"Rotate","default":false},"resend":{"type":"boolean","title":"Resend","default":false},"retire_older":{"type":"boolean","title":"Retire Older","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["reps"],"title":"InviteReps"},"InviteStatusBody":{"properties":{"token":{"type":"string","maxLength":200,"minLength":1,"title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"InviteStatusBody"},"InvoiceCreatedResponse":{"properties":{"invoice_id":{"type":"string","format":"uuid","title":"Invoice Id"},"duplicate_of":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Duplicate Of"},"parse_status":{"type":"string","title":"Parse Status"},"verify_status":{"type":"string","title":"Verify Status"},"period_label":{"type":"string","title":"Period Label"}},"type":"object","required":["invoice_id","parse_status","verify_status","period_label"],"title":"InvoiceCreatedResponse"},"ItemCompleteRequest":{"properties":{"notes":{"type":"string","maxLength":4000,"title":"Notes","default":""}},"type":"object","title":"ItemCompleteRequest"},"IterateCoverConceptRequest":{"properties":{"feedback":{"type":"string","maxLength":2000,"title":"Feedback","default":""},"style":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Style"}},"additionalProperties":true,"type":"object","title":"IterateCoverConceptRequest"},"JoinBody":{"properties":{"code":{"type":"string","maxLength":64,"minLength":4,"pattern":"^[A-Za-z0-9_-]{4,64}$","title":"Code"},"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"first_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"First Name"},"wording_key":{"type":"string","maxLength":120,"minLength":1,"title":"Wording Key"},"wording_version":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Wording Version"},"agreed":{"type":"boolean","title":"Agreed"}},"additionalProperties":false,"type":"object","required":["code","email","wording_key","wording_version","agreed"],"title":"JoinBody","description":"A friend joining through a share link (GH #16513 R2)."},"JourneyItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"item_type":{"type":"string","title":"Item Type"},"title":{"type":"string","title":"Title"},"body_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Markdown"},"video_embed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Embed Url"},"unlocked":{"type":"boolean","title":"Unlocked"},"unlock_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unlock Date"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["id","item_type","title","unlocked"],"title":"JourneyItemOut"},"JourneyMilestoneOut":{"properties":{"label":{"type":"string","title":"Label"},"estimated_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Date"}},"type":"object","required":["label"],"title":"JourneyMilestoneOut"},"JourneyResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"items":{"items":{"$ref":"#/components/schemas/JourneyItemOut"},"type":"array","title":"Items"},"milestones":{"items":{"$ref":"#/components/schemas/JourneyMilestoneOut"},"type":"array","title":"Milestones"}},"type":"object","required":["project_id","items","milestones"],"title":"JourneyResponse"},"JsonValue":{},"JvJoinBody":{"properties":{"recruiter_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Recruiter Code"},"manager_invite":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Manager Invite"},"business_name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Business Name"},"website":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Website"},"audience_size_band":{"anyOf":[{"type":"string","enum":["under_1k","1k_10k","10k_50k","50k_250k","over_250k","unknown"]},{"type":"null"}],"title":"Audience Size Band"},"promotes":{"items":{"type":"string","enum":["webinar","email_list","jvzoo","live_webinar","social","paid_ads"]},"type":"array","maxItems":6,"title":"Promotes"},"audience_note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Audience Note"},"jvzoo_affiliate_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_.@-]*$"},{"type":"null"}],"title":"Jvzoo Affiliate Id"},"typed_legal_name":{"type":"string","maxLength":120,"minLength":2,"title":"Typed Legal Name"},"accept_terms":{"type":"boolean","const":true,"title":"Accept Terms"},"terms_version":{"type":"string","maxLength":40,"minLength":1,"title":"Terms Version"},"rules_version":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Rules Version"}},"additionalProperties":false,"type":"object","required":["typed_legal_name","accept_terms","terms_version"],"title":"JvJoinBody","description":"The ``jv`` object on ``/auth/request-link`` and the body of ``/me/jv/join``."},"KdpBookshelfSubmitRequest":{"properties":{"signed_in":{"type":"boolean","title":"Signed In"},"titles_reported":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"Titles Reported"},"report":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Report"}},"type":"object","required":["signed_in"],"title":"KdpBookshelfSubmitRequest","description":"What the author's AI reported after opening the KDP bookshelf."},"KdpIdentifiersRequest":{"properties":{"format":{"type":"string","maxLength":40,"minLength":1,"title":"Format","default":"Paperback"},"isbn":{"anyOf":[{"type":"string","maxLength":20,"minLength":10},{"type":"null"}],"title":"Isbn"},"asin":{"anyOf":[{"type":"string","maxLength":10,"minLength":10,"pattern":"^[A-Z0-9]{10}$"},{"type":"null"}],"title":"Asin"}},"additionalProperties":false,"type":"object","title":"KdpIdentifiersRequest","description":"An identifier KDP just showed: the free paperback ISBN and/or an ASIN."},"KeepTitleRequest":{"properties":{"title":{"type":"string","maxLength":400,"minLength":1,"title":"Title"}},"type":"object","required":["title"],"title":"KeepTitleRequest","description":"The working title the author was SHOWN when she tapped Keep."},"KeepTitleResponse":{"properties":{"status":{"type":"string","const":"approved","title":"Status","default":"approved"},"title":{"type":"string","title":"Title"},"is_approved":{"type":"boolean","title":"Is Approved","default":true},"title_decision_state":{"type":"string","title":"Title Decision State","default":"approved"},"approved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved At"},"byline_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline Confirmed"}},"type":"object","required":["title"],"title":"KeepTitleResponse","description":"Result of the author's one-tap \"Keep this title\" (wave AJ, CT-2)."},"LaunchBody":{"properties":{"intended_launch_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Intended Launch Date"},"channel":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Channel"},"launched":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Launched"}},"additionalProperties":false,"type":"object","title":"LaunchBody"},"LaunchEntitlementGrantRequest":{"properties":{"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false},"purchase_ref":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Purchase Ref"}},"type":"object","title":"LaunchEntitlementGrantRequest"},"LaunchEstimateView":{"properties":{"likely":{"type":"string","format":"date","title":"Likely"},"latest":{"type":"string","format":"date","title":"Latest"},"confidence":{"type":"string","title":"Confidence"},"buffer_days":{"type":"number","title":"Buffer Days"},"remaining_stages":{"items":{"type":"string"},"type":"array","title":"Remaining Stages"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"},"stages":{"items":{"$ref":"#/components/schemas/LaunchStageView"},"type":"array","title":"Stages"}},"additionalProperties":false,"type":"object","required":["likely","latest","confidence","buffer_days","remaining_stages","caveats","stages"],"title":"LaunchEstimateView"},"LaunchFeasibilityView":{"properties":{"verdict":{"type":"string","title":"Verdict"},"slack_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slack Days"},"message":{"type":"string","title":"Message"},"levers":{"items":{"type":"string"},"type":"array","title":"Levers"}},"additionalProperties":false,"type":"object","required":["verdict","slack_days","message","levers"],"title":"LaunchFeasibilityView"},"LaunchLinksView":{"properties":{"prelaunch":{"type":"string","title":"Prelaunch"},"cover_vote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Vote"},"publishing":{"type":"string","title":"Publishing"}},"additionalProperties":false,"type":"object","required":["prelaunch","cover_vote","publishing"],"title":"LaunchLinksView"},"LaunchListConfirmationRequest":{"properties":{"confirmed":{"type":"boolean","const":true,"title":"Confirmed"}},"additionalProperties":false,"type":"object","required":["confirmed"],"title":"LaunchListConfirmationRequest"},"LaunchMilestoneView":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"due_on":{"type":"string","format":"date","title":"Due On"},"owner":{"type":"string","title":"Owner"},"status":{"type":"string","title":"Status"},"detail":{"type":"string","title":"Detail"},"hypothetical":{"type":"boolean","title":"Hypothetical"}},"additionalProperties":false,"type":"object","required":["key","label","due_on","owner","status","detail","hypothetical"],"title":"LaunchMilestoneView"},"LaunchPlanResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"today":{"type":"string","format":"date","title":"Today"},"lifecycle_state":{"type":"string","title":"Lifecycle State"},"state_kind":{"type":"string","title":"State Kind"},"target":{"anyOf":[{"$ref":"#/components/schemas/LaunchTargetView"},{"type":"null"}]},"launch_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Launch Date"},"milestone_anchor_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Milestone Anchor Kind"},"suggested_target_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Suggested Target Date"},"suggested_target_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Target Precision"},"public_window":{"$ref":"#/components/schemas/PublicWindowView"},"estimate":{"anyOf":[{"$ref":"#/components/schemas/LaunchEstimateView"},{"type":"null"}]},"feasibility":{"anyOf":[{"$ref":"#/components/schemas/LaunchFeasibilityView"},{"type":"null"}]},"tier":{"$ref":"#/components/schemas/LaunchTierView"},"milestones":{"items":{"$ref":"#/components/schemas/LaunchMilestoneView"},"type":"array","title":"Milestones"},"workload":{"$ref":"#/components/schemas/LaunchWorkloadView"},"links":{"$ref":"#/components/schemas/LaunchLinksView"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"additionalProperties":false,"type":"object","required":["project_id","today","lifecycle_state","state_kind","target","suggested_target_date","suggested_target_precision","public_window","estimate","feasibility","tier","milestones","workload","links","message","caveats","generated_at"],"title":"LaunchPlanResponse"},"LaunchReadinessItemRequest":{"properties":{"item":{"type":"string","enum":["kdp_account","amazon_tax_bank","ai_plan","desktop_app","extension"],"title":"Item"},"done":{"type":"boolean","title":"Done","default":true},"ai_assistant":{"anyOf":[{"type":"string","enum":["claude","chatgpt"]},{"type":"null"}],"title":"Ai Assistant"},"ai_plan_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Ai Plan Name"}},"type":"object","required":["item"],"title":"LaunchReadinessItemRequest","description":"The author ticks (or unticks) one setup item."},"LaunchStageView":{"properties":{"stage":{"type":"string","title":"Stage"},"label":{"type":"string","title":"Label"},"source":{"type":"string","title":"Source"},"exits":{"type":"integer","title":"Exits"},"median_days":{"type":"number","title":"Median Days"},"p90_days":{"type":"number","title":"P90 Days"}},"additionalProperties":false,"type":"object","required":["stage","label","source","exits","median_days","p90_days"],"title":"LaunchStageView","description":"One remaining production stage and what it is estimated from."},"LaunchStopRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"kind":{"type":"string","enum":["show_creation","directory_submission"],"title":"Kind"},"platform":{"anyOf":[{"type":"string","enum":["apple_podcasts","spotify"]},{"type":"null"}],"title":"Platform"},"reached_human_stop":{"type":"boolean","const":true,"title":"Reached Human Stop"},"report":{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":30,"title":"Report"}},"additionalProperties":false,"type":"object","required":["project_id","kind","reached_human_stop"],"title":"LaunchStopRequest"},"LaunchTargetRequest":{"properties":{"target_launch_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target Launch Date"},"target_launch_precision":{"anyOf":[{"type":"string","enum":["date","month","quarter"]},{"type":"null"}],"title":"Target Launch Precision"},"set_on_support_call":{"type":"boolean","title":"Set On Support Call","default":false}},"additionalProperties":false,"type":"object","title":"LaunchTargetRequest","description":"The author's soft launch target, as picked in the Book Launch hub.\n\nBoth fields are optional at the SHAPE level and both-or-neither at the\nHANDLER level, so the refusal reads as one human sentence instead of a\npydantic field report. A target is removed with DELETE, never with an empty\nPUT — an empty save is far more likely to be a broken client than an\nintent to forget the date.\n\n``set_on_support_call`` records provenance only (``author`` vs\n``author_support_call``); it changes nothing about the date. It exists so\nsupport can see, later, whether a date came from the author's own hands or\nfrom a call they were on."},"LaunchTargetView":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Precision"},"display":{"type":"string","title":"Display"},"set_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Set At"},"set_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set By"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"}},"additionalProperties":false,"type":"object","required":["date","precision","display","set_at","set_by","confirmed_at"],"title":"LaunchTargetView","description":"The author's soft target. Absent entirely when none is set."},"LaunchTierView":{"properties":{"recommended":{"type":"integer","title":"Recommended"},"label":{"type":"string","title":"Label"},"sentence":{"type":"string","title":"Sentence"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"to_reach_next":{"items":{"type":"string"},"type":"array","title":"To Reach Next"},"blocked_reasons":{"items":{"type":"string"},"type":"array","title":"Blocked Reasons"},"launch_kit":{"type":"boolean","title":"Launch Kit"}},"additionalProperties":false,"type":"object","required":["recommended","label","sentence","reasons","to_reach_next","blocked_reasons","launch_kit"],"title":"LaunchTierView"},"LaunchWindowConfirmRequest":{"properties":{"launch_window":{"type":"string","maxLength":40,"minLength":1,"title":"Launch Window"}},"additionalProperties":false,"type":"object","required":["launch_window"],"title":"LaunchWindowConfirmRequest","description":"Confirm the public window the plan derives from the stored target.\n\n``launch_window`` is echoed back deliberately: the handler refuses anything\nthat is not the window the plan derives RIGHT NOW, so a page left open\nacross a target change cannot write yesterday's season onto the author's\npublic page."},"LaunchWorkloadView":{"properties":{"chapters_total":{"type":"integer","title":"Chapters Total"},"chapters_approved":{"type":"integer","title":"Chapters Approved"},"chapters_drafted":{"type":"integer","title":"Chapters Drafted"},"interview_hours_remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Interview Hours Remaining"},"material_complete":{"type":"boolean","title":"Material Complete"},"title_approved":{"type":"boolean","title":"Title Approved"},"voice_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Band"},"next_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Block"}},"additionalProperties":false,"type":"object","required":["chapters_total","chapters_approved","chapters_drafted","interview_hours_remaining","material_complete","title_approved","voice_band","next_block"],"title":"LaunchWorkloadView","description":"Where the book actually is, in the author's own units."},"LeadApprovalRequest":{"properties":{"approved":{"type":"boolean","title":"Approved"}},"additionalProperties":false,"type":"object","required":["approved"],"title":"LeadApprovalRequest"},"LeadAttributionAnswersRequest":{"properties":{"visitor_id":{"type":"string","maxLength":64,"minLength":8,"title":"Visitor Id"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"heard_about":{"anyOf":[{"type":"string","enum":["facebook_instagram_ad","google","friend_colleague","event_talk","podcast","association_group","email","other"]},{"type":"null"}],"title":"Heard About"},"heard_about_detail":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Heard About Detail"},"revenue_band":{"anyOf":[{"type":"string","enum":["under_100k","100k_250k","250k_500k","500k_1m","over_1m","prefer_not_to_say"]},{"type":"null"}],"title":"Revenue Band"},"surface":{"type":"string","enum":["free_training_watch","optin_link"],"title":"Surface","default":"free_training_watch"}},"additionalProperties":false,"type":"object","required":["visitor_id","email"],"title":"LeadAttributionAnswersRequest","description":"POST /api/attribution/answers (edge-secret authenticated)."},"LeadAttributionAnswersResponse":{"properties":{"recorded":{"type":"boolean","title":"Recorded","default":false}},"type":"object","title":"LeadAttributionAnswersResponse"},"LeadConversionRequest":{"properties":{"visitor_id":{"type":"string","maxLength":64,"title":"Visitor Id"},"surface":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Surface"},"renderable_variants":{"anyOf":[{"items":{"type":"string","maxLength":64},"type":"array","maxItems":20},{"type":"null"}],"title":"Renderable Variants"},"exp_cookie":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Exp Cookie"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"}},"type":"object","required":["visitor_id"],"title":"LeadConversionRequest","description":"POST /api/experiments/convert — edge-authenticated lead attribution.\n\nSent by the Next.js lead route (server-side, never the browser) after a lead\nform is accepted. ``exp_cookie`` is the RAW ``dictate_exp`` cookie value the\nvisitor presented; the server parses + signature-verifies it and resolves the\nauthoritative variant per experiment, exactly like ``/expose`` — the caller\nnever names a variant."},"LeadConversionResponse":{"properties":{"matched":{"type":"integer","title":"Matched","default":0},"recorded":{"type":"integer","title":"Recorded","default":0},"duplicates":{"type":"integer","title":"Duplicates","default":0},"skipped_unassigned":{"type":"integer","title":"Skipped Unassigned","default":0},"skipped_not_renderable":{"type":"integer","title":"Skipped Not Renderable","default":0},"lead_without_exposure":{"type":"integer","title":"Lead Without Exposure","default":0},"identity_linked":{"type":"boolean","title":"Identity Linked","default":false}},"type":"object","title":"LeadConversionResponse","description":"What the convert endpoint actually managed to write (best-effort)."},"LeadMagnetInput":{"properties":{"title":{"type":"string","maxLength":140,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Description"},"cover_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Cover Url"}},"additionalProperties":false,"type":"object","required":["title"],"title":"LeadMagnetInput"},"LeadMagnetsUpdate":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadMagnetInput"},"type":"array","maxItems":5,"title":"Items"}},"additionalProperties":false,"type":"object","title":"LeadMagnetsUpdate","description":"Lead-magnet library (Launch+ tier)."},"LeadSampleResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"upload_token_id":{"type":"string","format":"uuid","title":"Upload Token Id"},"artifact_type":{"type":"string","title":"Artifact Type"},"filename":{"type":"string","title":"Filename"},"r2_key":{"type":"string","title":"R2 Key"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","lead_id","upload_token_id","artifact_type","filename","r2_key","created_at"],"title":"LeadSampleResponse","description":"Full lead sample row returned from DB."},"LeadUploadResponse":{"properties":{"status":{"type":"string","title":"Status","default":"uploaded"},"sample_id":{"type":"string","title":"Sample Id"},"lead_id":{"type":"string","title":"Lead Id"},"artifact_type":{"type":"string","title":"Artifact Type"},"filename":{"type":"string","title":"Filename"},"file_size":{"type":"integer","title":"File Size"},"uploads_remaining":{"type":"integer","title":"Uploads Remaining"}},"type":"object","required":["sample_id","lead_id","artifact_type","filename","file_size","uploads_remaining"],"title":"LeadUploadResponse","description":"Response after a successful public lead upload."},"LeadUploadStatusResponse":{"properties":{"token_valid":{"type":"boolean","title":"Token Valid"},"artifact_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Type"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"max_uploads":{"type":"integer","title":"Max Uploads","default":0},"uploads_used":{"type":"integer","title":"Uploads Used","default":0},"uploads_remaining":{"type":"integer","title":"Uploads Remaining","default":0},"samples":{"items":{"$ref":"#/components/schemas/LeadSampleResponse"},"type":"array","title":"Samples","default":[]}},"type":"object","required":["token_valid"],"title":"LeadUploadStatusResponse","description":"Status of an upload token and its samples."},"LeaveBookRequest":{"properties":{"confirm":{"type":"boolean","title":"Confirm"}},"additionalProperties":false,"type":"object","required":["confirm"],"title":"LeaveBookRequest","description":"The author confirms they are leaving this book (the page asked them plainly first)."},"LeftOutChapterOut":{"properties":{"id":{"type":"string","title":"Id"},"chapter_number":{"type":"integer","title":"Chapter Number"},"title":{"type":"string","title":"Title"},"left_out_at":{"type":"string","title":"Left Out At","default":""}},"type":"object","required":["id","chapter_number","title"],"title":"LeftOutChapterOut","description":"A chapter she left out of her book (GH #15244): kept, not printed, put back with one click."},"LegalProfileReminderPauseRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":8,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"LegalProfileReminderPauseRequest","description":"Stop asking ONE author for their business mailing address.\n\nTwo systems ask for this input and neither can see the other, so the pause\nis persisted on the row both of them read. The reason is required and shown\nto the next rep who opens the client: a silent pause is indistinguishable\nfrom a broken ladder."},"LegalProfileRequest":{"properties":{"business_name":{"type":"string","maxLength":200,"title":"Business Name","default":""},"street1":{"type":"string","maxLength":200,"title":"Street1","default":""},"street2":{"type":"string","maxLength":200,"title":"Street2","default":""},"city":{"type":"string","maxLength":120,"title":"City","default":""},"region":{"type":"string","maxLength":120,"title":"Region","default":""},"postal_code":{"type":"string","maxLength":32,"title":"Postal Code","default":""},"country_code":{"type":"string","maxLength":2,"title":"Country Code","default":""},"support_email":{"type":"string","maxLength":320,"title":"Support Email","default":""},"terms_url":{"type":"string","maxLength":500,"title":"Terms Url","default":""},"privacy_url":{"type":"string","maxLength":500,"title":"Privacy Url","default":""},"disclosures_url":{"type":"string","maxLength":500,"title":"Disclosures Url","default":""}},"additionalProperties":false,"type":"object","title":"LegalProfileRequest","description":"The author's business mailing address, and their own legal page URLs.\n\nSeparate from :class:`ShippingAddressRequest` even though the shapes rhyme.\nThat one is where a proof copy is couriered; this one is PUBLISHED, in the\nfooter of every marketing email sent in the author's name, which is a\ndifferent consent and often a different address.\n\nEvery field is optional so the author can save the address and leave the\nURLs (the usual case) or paste their own URLs and leave the address. The\n\"is this usable\" question is answered by\n``author_legal_profile.address_complete``, not by field presence."},"LineDecisionRequest":{"properties":{"decision":{"type":"string","enum":["accepted","pushback","manual_match","undecided"],"title":"Decision"},"verification_run_id":{"type":"string","format":"uuid","title":"Verification Run Id"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"manual_source_uid":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Manual Source Uid"}},"type":"object","required":["decision","verification_run_id"],"title":"LineDecisionRequest"},"LineEditRequest":{"properties":{"paragraph":{"type":"string","maxLength":6000,"minLength":1,"title":"Paragraph"},"raw_start":{"type":"integer","maximum":2000000.0,"minimum":0.0,"title":"Raw Start"},"heard_text":{"type":"string","maxLength":1000,"title":"Heard Text","default":""},"expected_version":{"type":"integer","minimum":0.0,"title":"Expected Version"},"instruction":{"type":"string","maxLength":1000,"title":"Instruction","default":""},"chip":{"anyOf":[{"type":"string","enum":["shorter","warmer","grammar","cut_line"]},{"type":"null"}],"title":"Chip"},"force_paragraph":{"type":"boolean","title":"Force Paragraph","default":false},"answer_to":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{1,64}$"},{"type":"null"}],"title":"Answer To"}},"type":"object","required":["paragraph","raw_start","expected_version"],"title":"LineEditRequest"},"LinkReport":{"properties":{"url":{"type":"string","title":"Url"},"domain":{"type":"string","title":"Domain"},"scheme":{"type":"string","title":"Scheme"},"issues":{"items":{"type":"string"},"type":"array","title":"Issues"},"dbl_status":{"type":"string","enum":["clean","listed","unknown","skipped"],"title":"Dbl Status","default":"skipped"},"dbl_detail":{"type":"string","title":"Dbl Detail","default":""}},"type":"object","required":["url","domain","scheme"],"title":"LinkReport"},"ListenNotesDiscoverRequest":{"properties":{"author_id":{"type":"string","format":"uuid","title":"Author Id"},"query":{"type":"string","maxLength":255,"minLength":1,"title":"Query"},"languages":{"anyOf":[{"items":{"type":"string","maxLength":32},"type":"array","maxItems":10},{"type":"null"}],"title":"Languages"},"genre_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":50},{"type":"null"}],"title":"Genre Ids"},"region":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Region"},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50}},"additionalProperties":false,"type":"object","required":["author_id","query"],"title":"ListenNotesDiscoverRequest","description":"Trigger Listen Notes discovery for a campaign. All fields bounded."},"ListenNotesDiscoverResponse":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"fetched":{"type":"integer","title":"Fetched"},"created":{"type":"integer","title":"Created"},"duplicates":{"type":"integer","title":"Duplicates"},"invalid":{"type":"integer","title":"Invalid"},"needs_review":{"type":"integer","title":"Needs Review"},"quota_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quota Remaining"},"truncated":{"type":"boolean","title":"Truncated","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["batch_id","fetched","created","duplicates","invalid","needs_review"],"title":"ListenNotesDiscoverResponse"},"ListenPlayed":{"properties":{"voice":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[a-z0-9_]+$","title":"Voice","default":"bright_female"},"rate":{"type":"number","maximum":4.0,"minimum":0.25,"title":"Rate","default":1.0},"pause_edits":{"type":"boolean","title":"Pause Edits","default":false}},"additionalProperties":false,"type":"object","title":"ListenPlayed"},"ListenRequest":{"properties":{"voice":{"type":"string","enum":["bright_female","warm_female","deep_male","calm_male","neutral"],"title":"Voice","default":"bright_female"},"from_segment":{"type":"integer","maximum":20000.0,"minimum":0.0,"title":"From Segment","default":0},"from_offset":{"anyOf":[{"type":"integer","maximum":2000000.0,"minimum":0.0},{"type":"null"}],"title":"From Offset"},"count":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Count","default":4},"retry":{"type":"boolean","title":"Retry","default":false}},"additionalProperties":false,"type":"object","title":"ListenRequest"},"ListingDescriptionRequest":{"properties":{"description":{"type":"string","maxLength":4000,"minLength":1,"title":"Description"}},"additionalProperties":false,"type":"object","required":["description"],"title":"ListingDescriptionRequest"},"LiteralEditRequest":{"properties":{"expected_version":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Expected Version"},"find":{"type":"string","maxLength":5000,"minLength":1,"title":"Find"},"replace":{"type":"string","maxLength":20000,"title":"Replace"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["expected_version","find","replace"],"title":"LiteralEditRequest"},"LiveEventBody":{"properties":{"partner_code":{"type":"string","maxLength":32,"minLength":3,"title":"Partner Code"},"title":{"type":"string","maxLength":160,"minLength":2,"title":"Title"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"}},"additionalProperties":false,"type":"object","required":["partner_code","title","starts_at","ends_at"],"title":"LiveEventBody"},"LivingPeopleAcknowledgementRequest":{"properties":{"version":{"type":"string","maxLength":64,"title":"Version"},"digest":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Digest"}},"additionalProperties":false,"type":"object","required":["version","digest"],"title":"LivingPeopleAcknowledgementRequest","description":"The author accepting the living-people acknowledgement (#3648, band 2).\n\nExplicit named fields with bounded lengths, and NO ``extra='allow'`` — this\nis an author-facing POST that writes a consent record, so an unexpected key\nis a reason to reject, not to absorb (CLAUDE.md).\n\n``digest`` is the SHA-256 hex of the exact terms the form displayed. The\nserver recomputes it and refuses a mismatch, so a stale cached form can\nnever stamp a version against wording the author was not shown."},"LocationRequest":{"properties":{"city":{"type":"string","maxLength":120,"minLength":1,"title":"City"},"region":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Region"},"country_code":{"anyOf":[{"type":"string","maxLength":2,"minLength":2,"pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Country Code"}},"additionalProperties":false,"type":"object","required":["city"],"title":"LocationRequest"},"LockRequest":{"properties":{"provider":{"type":"string","enum":["stripe","whop","payva"],"title":"Provider"},"dispute_ref":{"type":"string","maxLength":200,"minLength":1,"title":"Dispute Ref"},"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"charge_ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Charge Ref"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","required":["provider","dispute_ref","email"],"title":"LockRequest"},"LogGapRequest":{"properties":{"customer_email":{"type":"string","maxLength":254,"title":"Customer Email","default":""},"intent":{"type":"string","maxLength":100,"title":"Intent","default":"general"},"subject":{"type":"string","maxLength":500,"title":"Subject","default":""},"body_preview":{"type":"string","maxLength":5000,"title":"Body Preview","default":""},"confidence":{"type":"number","title":"Confidence","default":0.0},"suggested_category":{"type":"string","maxLength":100,"title":"Suggested Category","default":""},"notify_slack":{"type":"boolean","title":"Notify Slack","default":true}},"type":"object","title":"LogGapRequest"},"LogGapResponse":{"properties":{"logged":{"type":"boolean","title":"Logged","default":false},"gap_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gap Id"}},"type":"object","title":"LogGapResponse"},"LogTicketRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"},"customer_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Customer Name"},"customer_type":{"type":"string","enum":["frontend","backend","unknown"],"title":"Customer Type","default":"unknown"},"intent":{"type":"string","enum":["status_check","login_help","refund","cancel","reschedule","upgrade","kdp_help","blueprint_issue","report_not_generated","material_status","voice_complaint","legal_threat","chargeback_threat","dispute","general","spam"],"title":"Intent","default":"general"},"subject":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Subject"},"body_preview":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Body Preview"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"channel":{"type":"string","maxLength":100,"title":"Channel","default":"email"},"project_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Project Id"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Contact Id"},"n8n_execution_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"N8N Execution Id"},"metadata":{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":50,"title":"Metadata"}},"type":"object","required":["customer_email"],"title":"LogTicketRequest"},"LongerAudiobookOption":{"properties":{"tier":{"type":"string","title":"Tier"},"price_display":{"type":"string","title":"Price Display"},"narrator_cap_usd":{"type":"integer","title":"Narrator Cap Usd"},"purchased":{"type":"boolean","title":"Purchased"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"}},"type":"object","required":["tier","price_display","narrator_cap_usd","purchased"],"title":"LongerAudiobookOption"},"LongerBookOfferResponse":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"tiers":{"items":{"$ref":"#/components/schemas/LongerBookTierOption"},"type":"array","title":"Tiers","default":[]},"purchased":{"anyOf":[{"$ref":"#/components/schemas/LongerBookTierOption"},{"type":"null"}]},"awaiting_replan":{"anyOf":[{"$ref":"#/components/schemas/LongerBookWaiting"},{"type":"null"}]},"audiobook":{"anyOf":[{"$ref":"#/components/schemas/LongerAudiobookOption"},{"type":"null"}]}},"type":"object","title":"LongerBookOfferResponse"},"LongerBookTierOption":{"properties":{"tier":{"type":"string","title":"Tier"},"words_label":{"type":"string","title":"Words Label"},"price_display":{"type":"string","title":"Price Display"},"min_words":{"type":"integer","title":"Min Words"},"max_words":{"type":"integer","title":"Max Words"},"chapter_target":{"type":"integer","title":"Chapter Target"},"words_per_chapter":{"type":"integer","title":"Words Per Chapter"},"extra_interview_hours":{"type":"integer","title":"Extra Interview Hours"},"interview_hours":{"type":"integer","title":"Interview Hours"},"extra_weeks":{"type":"integer","title":"Extra Weeks"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"}},"type":"object","required":["tier","words_label","price_display","min_words","max_words","chapter_target","words_per_chapter","extra_interview_hours","interview_hours","extra_weeks"],"title":"LongerBookTierOption"},"LongerBookWaiting":{"properties":{"tier":{"type":"string","title":"Tier"},"words_label":{"type":"string","title":"Words Label"},"price_display":{"type":"string","title":"Price Display"},"min_words":{"type":"integer","title":"Min Words"},"max_words":{"type":"integer","title":"Max Words"},"chapter_target":{"type":"integer","title":"Chapter Target"},"words_per_chapter":{"type":"integer","title":"Words Per Chapter"},"extra_interview_hours":{"type":"integer","title":"Extra Interview Hours"},"interview_hours":{"type":"integer","title":"Interview Hours"},"extra_weeks":{"type":"integer","title":"Extra Weeks"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"upgrade_id":{"type":"string","title":"Upgrade Id"}},"type":"object","required":["tier","words_label","price_display","min_words","max_words","chapter_target","words_per_chapter","extra_interview_hours","interview_hours","extra_weeks","upgrade_id"],"title":"LongerBookWaiting"},"LookedAt":{"properties":{"request_id":{"type":"string","maxLength":64,"minLength":8,"title":"Request Id"},"step":{"type":"string","maxLength":60,"minLength":1,"title":"Step"}},"additionalProperties":false,"type":"object","required":["request_id","step"],"title":"LookedAt"},"LpStepRequest":{"properties":{"step":{"type":"string","maxLength":40,"title":"Step"},"visitor_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Visitor Id"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl Contact Id"},"question_key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Question Key"},"position":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":1.0},{"type":"null"}],"title":"Position"},"option_key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Option Key"},"detail":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Detail"},"device":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Device"}},"type":"object","required":["step"],"title":"LpStepRequest"},"MagicLinkRecoverRequest":{"properties":{"token":{"type":"string","maxLength":2048,"minLength":1,"title":"Token"},"redirect":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Redirect"}},"type":"object","required":["token"],"title":"MagicLinkRecoverRequest","description":"Recover a fresh sign-in link from a used or expired one.\n\nOnly the original token is trusted: the project and email come from its\nauth_tokens row. Any ``project`` hint a client sends is ignored (extra\nfields are dropped). ``redirect`` is a destination, not identity, and is\nre-validated as a safe relative path before use."},"MagicLinkRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"redirect":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Redirect"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"}},"type":"object","required":["email"],"title":"MagicLinkRequest"},"MagicLinkResponse":{"properties":{"message":{"type":"string","title":"Message","default":"If an account exists, a magic link has been sent. If your account is still being set up after purchase, we'll email your link as soon as it's ready."}},"type":"object","title":"MagicLinkResponse"},"ManagerInviteBody":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Note"},"expires_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Expires Days","default":14}},"additionalProperties":false,"type":"object","title":"ManagerInviteBody"},"ManualAuthorityBuyerRequest":{"properties":{"existing_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Existing Project Id"},"purchase_source":{"type":"string","enum":["free_beta","stripe_recovery","manual_payment","whop","other"],"title":"Purchase Source","default":"free_beta"},"stripe_customer_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_checkout_session_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Stripe Checkout Session Id"},"external_purchase_reference":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"External Purchase Reference"},"setup_failure_reason":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Setup Failure Reason"},"internal_notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Internal Notes"},"source_lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Lead Id"},"package_tier":{"type":"string","enum":["authority_book","legacy_memoir","manuscript_complete","next_book","three_book_series"],"title":"Package Tier","default":"authority_book"},"committed_package_tier":{"anyOf":[{"type":"string","enum":["book_package","business_package","backend_package"]},{"type":"null"}],"title":"Committed Package Tier"},"client_name":{"type":"string","maxLength":200,"title":"Client Name"},"client_email":{"type":"string","format":"email","title":"Client Email"},"client_phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Client Phone"},"client_phone_country_code":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Client Phone Country Code"},"client_website":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Client Website"},"client_linkedin":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Client Linkedin"},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Timezone"},"package_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Package Version"},"audiobook_purchased":{"type":"boolean","title":"Audiobook Purchased","default":false},"launch_bundle":{"type":"boolean","title":"Launch Bundle","default":false},"concierge_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Concierge Name"},"concierge_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Concierge Email"},"deal_price_cents":{"anyOf":[{"type":"integer","minimum":10000.0},{"type":"null"}],"title":"Deal Price Cents"}},"type":"object","required":["client_name","client_email"],"title":"ManualAuthorityBuyerRequest"},"ManualAuthorityBuyerResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"created":{"type":"boolean","title":"Created"},"status":{"type":"string","enum":["complete","queued","pending_recovery","failed"],"title":"Status"},"package_tier":{"type":"string","title":"Package Tier"},"package_version":{"type":"integer","title":"Package Version"},"purchase_source":{"type":"string","title":"Purchase Source"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_checkout_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Checkout Session Id"},"external_purchase_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Purchase Reference"},"audiobook_purchased":{"type":"boolean","title":"Audiobook Purchased"},"committed_package_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Committed Package Tier"},"onboarding_path":{"type":"string","enum":["/onboarding","/portal"],"title":"Onboarding Path","default":"/onboarding"},"side_effects":{"additionalProperties":{"type":"string"},"type":"object","title":"Side Effects"}},"type":"object","required":["project_id","created","status","package_tier","package_version","purchase_source","audiobook_purchased","side_effects"],"title":"ManualAuthorityBuyerResponse"},"ManualDirectoryLinkRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"platform":{"type":"string","enum":["apple_podcasts","spotify"],"title":"Platform"},"url":{"type":"string","maxLength":2048,"minLength":8,"title":"Url"}},"additionalProperties":false,"type":"object","required":["project_id","platform","url"],"title":"ManualDirectoryLinkRequest"},"ManualMatch":{"properties":{"ghl_contact_id":{"type":"string","maxLength":64,"minLength":5,"pattern":"^[A-Za-z0-9_-]+$","title":"Ghl Contact Id"},"ghl_appointment_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":5,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Ghl Appointment Id"},"contact_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Contact Name"}},"additionalProperties":false,"type":"object","required":["ghl_contact_id"],"title":"ManualMatch"},"ManualPostRequest":{"properties":{"prompt":{"type":"string","maxLength":5000,"title":"Prompt"},"channels":{"items":{"type":"string","enum":["linkedin","facebook","instagram"]},"type":"array","maxItems":8,"title":"Channels"},"intent":{"type":"string","enum":["thought_leadership","story","promotion","engagement","announcement","custom"],"title":"Intent","default":"custom"}},"type":"object","required":["prompt","channels"],"title":"ManualPostRequest","description":"Author-submitted prompt for manual post generation."},"ManualPostResponse":{"properties":{"status":{"type":"string","enum":["queued","complete","error"],"title":"Status"},"post_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Post Ids","default":[]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["status"],"title":"ManualPostResponse","description":"Response after queuing a manual post generation job."},"ManuscriptAnalysisResponse":{"properties":{"total_word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Word Count"},"chapter_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Count"},"structural_quality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Structural Quality"},"narrative_arc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narrative Arc"},"key_strengths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Key Strengths"},"key_weaknesses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Key Weaknesses"},"gap_recommendations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Gap Recommendations"},"estimated_interview_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Interview Hours"}},"type":"object","title":"ManuscriptAnalysisResponse","description":"Manuscript analysis results for the portal dashboard."},"ManuscriptCollisionAnswerRequest":{"properties":{"answer":{"type":"string","enum":["replace","add_after"],"title":"Answer"}},"type":"object","required":["answer"],"title":"ManuscriptCollisionAnswerRequest","description":"Her answer to \"replace the earlier chapters, or add these after them?\"."},"MapEditRequest":{"properties":{"expected_map_version":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Expected Map Version"},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Subtitle"},"author_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Author Name"},"sections":{"items":{"$ref":"#/components/schemas/BookMapSection"},"type":"array","maxItems":80,"minItems":1,"title":"Sections"}},"type":"object","required":["expected_map_version","sections"],"title":"MapEditRequest","description":"PATCH .../map body — the full edited map (optimistic concurrency)."},"MarkRemittancePaidRequest":{"properties":{"paid_amount_usd":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Paid Amount Usd"},"paid_at":{"type":"string","format":"date-time","title":"Paid At"},"paid_reference":{"type":"string","maxLength":200,"minLength":1,"title":"Paid Reference"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["paid_amount_usd","paid_at","paid_reference"],"title":"MarkRemittancePaidRequest"},"MarkSentBody":{"properties":{"provider_ref":{"type":"string","maxLength":200,"minLength":1,"title":"Provider Ref"}},"additionalProperties":false,"type":"object","required":["provider_ref"],"title":"MarkSentBody"},"MarketingBlueprintResponse":{"properties":{"title":{"type":"string","title":"Title"},"delivered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivered At"},"sections":{"items":{"$ref":"#/components/schemas/BlueprintSection"},"type":"array","title":"Sections","default":[]}},"type":"object","required":["title"],"title":"MarketingBlueprintResponse"},"MarketingSequenceActionRequest":{"properties":{"action":{"type":"string","enum":["unlock_step","mark_milestone","skip_sequence","unlock_book"],"title":"Action"},"step_key":{"anyOf":[{"type":"string","enum":["intro","homework","silas_call","blueprint","web_class","choose_path"]},{"type":"null"}],"title":"Step Key"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["action"],"title":"MarketingSequenceActionRequest","description":"Rep override request (staff workbench marketing-sequence controls)."},"MarketingSequenceActionResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"action":{"type":"string","title":"Action"},"sequence":{"$ref":"#/components/schemas/MarketingSequenceStatus"}},"type":"object","required":["project_id","action","sequence"],"title":"MarketingSequenceActionResponse"},"MarketingSequenceStatus":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/MarketingSequenceStep"},"type":"array","title":"Steps"},"current_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step"},"sequence_complete":{"type":"boolean","title":"Sequence Complete","default":false},"sequence_skipped":{"type":"boolean","title":"Sequence Skipped","default":false},"book_steps_unlocked":{"type":"boolean","title":"Book Steps Unlocked","default":false},"interview_booking_open":{"type":"boolean","title":"Interview Booking Open","default":false},"agreement_signature_pending":{"type":"boolean","title":"Agreement Signature Pending","default":false},"backend_chosen_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backend Chosen Path"},"silas_call_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Silas Call Status"},"blueprint_delivered":{"type":"boolean","title":"Blueprint Delivered","default":false},"web_class_watched":{"type":"boolean","title":"Web Class Watched","default":false},"silas_booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Silas Booking Url"},"support_call_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Call Url"},"path_call_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Call Url"},"questionnaire_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Questionnaire State"},"book_auto_start_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Auto Start At"},"book_auto_start_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Auto Start Label"},"purchase_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purchase Path"},"marketing_plan_offer":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Marketing Plan Offer"}},"type":"object","title":"MarketingSequenceStatus","description":"The ``marketing_sequence`` block on GET /onboarding/status (additive).\n\nAbsent (``None``) for legacy projects and whenever the lookup fails —\nconsumers must treat absence as \"legacy flow, no sequence\"."},"MarketingSequenceStep":{"properties":{"key":{"type":"string","title":"Key"},"complete":{"type":"boolean","title":"Complete","default":false},"unlocked":{"type":"boolean","title":"Unlocked","default":false},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["key"],"title":"MarketingSequenceStep"},"MarketplacePurchaseSummary":{"properties":{"provider":{"type":"string","title":"Provider"},"order_id":{"type":"string","title":"Order Id","default":""},"purchased_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Purchased At"},"amount":{"type":"number","title":"Amount","default":0.0},"active":{"type":"boolean","title":"Active","default":true},"partly_reversed":{"type":"boolean","title":"Partly Reversed","default":false}},"type":"object","required":["provider"],"title":"MarketplacePurchaseSummary","description":"A ClickBank / JVZoo / Digistore24 / Hotmart order recorded in funnel_purchases.\n\nDictate does not hold the card for these: the marketplace is the retailer\nand issues refunds, so support replies with that marketplace's route."},"MarkupScanApplyItem":{"properties":{"item_id":{"type":"string","maxLength":40,"minLength":1,"title":"Item Id"},"replacement_text":{"anyOf":[{"type":"string","maxLength":900},{"type":"null"}],"title":"Replacement Text"},"note":{"anyOf":[{"type":"string","maxLength":900},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["item_id"],"title":"MarkupScanApplyItem","description":"One confirmed item, optionally with the author's corrected wording."},"MarkupScanApplyRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MarkupScanApplyItem"},"type":"array","maxItems":400,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"MarkupScanApplyRequest"},"MarkupScanApplyResponse":{"properties":{"scan":{"$ref":"#/components/schemas/MarkupScanOut"},"comments_submitted":{"type":"integer","title":"Comments Submitted","default":0},"notes_submitted":{"type":"integer","title":"Notes Submitted","default":0},"dispatch_status":{"type":"string","title":"Dispatch Status","default":"enqueued"},"already_applied":{"type":"boolean","title":"Already Applied","default":false}},"type":"object","required":["scan"],"title":"MarkupScanApplyResponse"},"MarkupScanFile":{"properties":{"r2_key":{"type":"string","maxLength":512,"minLength":1,"title":"R2 Key"},"filename":{"type":"string","maxLength":200,"minLength":1,"title":"Filename"}},"additionalProperties":false,"type":"object","required":["r2_key","filename"],"title":"MarkupScanFile","description":"One staged upload, named by the key the presign handed back."},"MarkupScanItemOut":{"properties":{"id":{"type":"string","title":"Id"},"page_number":{"type":"integer","title":"Page Number"},"mark_type":{"type":"string","enum":["replace","delete","insert_after","comment"],"title":"Mark Type"},"exact_quote":{"type":"string","title":"Exact Quote","default":""},"replacement_text":{"type":"string","title":"Replacement Text","default":""},"note":{"type":"string","title":"Note","default":""},"confidence":{"type":"number","title":"Confidence","default":0.0},"anchored":{"type":"boolean","title":"Anchored","default":false},"ambiguous":{"type":"boolean","title":"Ambiguous","default":false},"suggested":{"type":"boolean","title":"Suggested","default":false},"writer_note":{"type":"string","title":"Writer Note","default":""}},"type":"object","required":["id","page_number","mark_type"],"title":"MarkupScanItemOut","description":"One mark we read, shown to the author for confirmation."},"MarkupScanListResponse":{"properties":{"scans":{"items":{"$ref":"#/components/schemas/MarkupScanOut"},"type":"array","title":"Scans"}},"type":"object","title":"MarkupScanListResponse"},"MarkupScanNotSentOut":{"properties":{"id":{"type":"string","title":"Id"},"page_number":{"type":"integer","title":"Page Number","default":0},"quote":{"type":"string","title":"Quote","default":""}},"type":"object","required":["id"],"title":"MarkupScanNotSentOut","description":"A ticked change whose words are no longer in the chapter (not sent)."},"MarkupScanOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"},"status":{"type":"string","enum":["uploaded","reading","ready","applying","applied","failed","dismissed"],"title":"Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"pages_total":{"type":"integer","title":"Pages Total","default":0},"pages_done":{"type":"integer","title":"Pages Done","default":0},"pages":{"items":{"$ref":"#/components/schemas/MarkupScanPageOut"},"type":"array","title":"Pages"},"items":{"items":{"$ref":"#/components/schemas/MarkupScanItemOut"},"type":"array","title":"Items"},"notices":{"items":{"type":"string"},"type":"array","title":"Notices"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"comments_submitted":{"type":"integer","title":"Comments Submitted","default":0},"general_notes_submitted":{"type":"integer","title":"General Notes Submitted","default":0},"items_not_sent":{"items":{"$ref":"#/components/schemas/MarkupScanNotSentOut"},"type":"array","title":"Items Not Sent"},"last_apply_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Apply Error"}},"type":"object","required":["id","status"],"title":"MarkupScanOut"},"MarkupScanPageOut":{"properties":{"page_number":{"type":"integer","title":"Page Number"},"filename":{"type":"string","title":"Filename","default":""},"readable":{"type":"boolean","title":"Readable","default":true},"unreadable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unreadable Reason"},"printed_page_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printed Page Number"},"other_chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Other Chapter Number"}},"type":"object","required":["page_number"],"title":"MarkupScanPageOut"},"MarkupScanPresignRequest":{"properties":{"filename":{"type":"string","maxLength":200,"minLength":1,"title":"Filename"},"content_type":{"type":"string","enum":["image/jpeg","image/png","image/webp","application/pdf"],"title":"Content Type"},"size_bytes":{"type":"integer","maximum":26214400.0,"exclusiveMinimum":0.0,"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["filename","content_type","size_bytes"],"title":"MarkupScanPresignRequest","description":"Presign a direct-to-R2 PUT for one photographed or scanned page."},"MarkupScanPresignResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"r2_key":{"type":"string","title":"R2 Key"}},"type":"object","required":["upload_url","r2_key"],"title":"MarkupScanPresignResponse"},"MarkupScanSubmitRequest":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"files":{"items":{"$ref":"#/components/schemas/MarkupScanFile"},"type":"array","maxItems":20,"minItems":1,"title":"Files"}},"additionalProperties":false,"type":"object","required":["chapter_id","files"],"title":"MarkupScanSubmitRequest","description":"Send a batch of staged pages for one chapter to be read."},"MaterialItemResponse":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"url":{"type":"string","title":"Url"}},"type":"object","required":["key","title","description","url"],"title":"MaterialItemResponse"},"MaterialPlacement":{"properties":{"kind":{"type":"string","enum":["material","embedding","question","continuity","interview"],"title":"Kind"},"id":{"type":"string","maxLength":200,"title":"Id"},"destination":{"type":"string","enum":["retained","inserted","shared","uncertain"],"title":"Destination","default":"uncertain"},"source_hash":{"type":"string","maxLength":64,"title":"Source Hash"},"source_channel":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Source Channel"},"evidence":{"type":"string","maxLength":4000,"title":"Evidence","default":""},"start":{"type":"integer","minimum":0.0,"title":"Start","default":0},"end":{"type":"integer","minimum":0.0,"title":"End","default":0},"reason":{"type":"string","maxLength":1000,"title":"Reason","default":"Not classified; retained on source"}},"type":"object","required":["kind","id","source_hash"],"title":"MaterialPlacement"},"MaterialPolicyEscalateRequest":{"properties":{"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""},"escalated_by":{"type":"string","maxLength":200,"title":"Escalated By","default":"ops"}},"type":"object","title":"MaterialPolicyEscalateRequest","description":"Ops escalates a flagged-material policy review item (WF1-D120)."},"MaterialRetractionPreviewResponse":{"properties":{"material_id":{"type":"string","format":"uuid","title":"Material Id"},"filename":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Filename"},"upload_category":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Upload Category"},"uploaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Uploaded At"},"derived_chapters":{"items":{"$ref":"#/components/schemas/RetractedChapterSummary"},"type":"array","maxItems":200,"title":"Derived Chapters"},"chapter_linkage":{"type":"string","enum":["explicit","inferred","unattributable","none"],"title":"Chapter Linkage","default":"none"},"vector_chunk_count":{"type":"integer","minimum":0.0,"title":"Vector Chunk Count","default":0},"voice_evidence_count":{"type":"integer","minimum":0.0,"title":"Voice Evidence Count","default":0},"onboarding_becomes_incomplete":{"type":"boolean","title":"Onboarding Becomes Incomplete","default":false},"other_materials_needing_reroute":{"type":"integer","minimum":0.0,"title":"Other Materials Needing Reroute","default":0},"default_remove_derived_chapters":{"type":"boolean","title":"Default Remove Derived Chapters","default":true},"chapter_choice_available":{"type":"boolean","title":"Chapter Choice Available","default":true},"will_remove":{"items":{"type":"string","maxLength":300},"type":"array","maxItems":40,"title":"Will Remove"},"will_undo":{"items":{"type":"string","maxLength":300},"type":"array","maxItems":40,"title":"Will Undo"},"retention_note":{"type":"string","maxLength":500,"title":"Retention Note","default":""},"already_retracted":{"type":"boolean","title":"Already Retracted","default":false},"retraction":{"anyOf":[{"$ref":"#/components/schemas/RetractionState"},{"type":"null"}]}},"type":"object","required":["material_id"],"title":"MaterialRetractionPreviewResponse","description":"Everything the \"Remove this upload\" dialog needs, before anything runs."},"MaterialsPageResponse":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"personalized":{"items":{"$ref":"#/components/schemas/MaterialItemResponse"},"type":"array","title":"Personalized","default":[]},"bonuses":{"items":{"$ref":"#/components/schemas/MaterialItemResponse"},"type":"array","title":"Bonuses","default":[]}},"type":"object","title":"MaterialsPageResponse"},"MediaItemInput":{"properties":{"kind":{"type":"string","enum":["video","reel","podcast_episode","link"],"title":"Kind"},"url":{"type":"string","maxLength":500,"minLength":1,"title":"Url"},"title":{"anyOf":[{"type":"string","maxLength":140},{"type":"null"}],"title":"Title"},"placement":{"type":"string","enum":["homepage","speaking","about","you_decide"],"title":"Placement","default":"you_decide"}},"additionalProperties":false,"type":"object","required":["kind","url"],"title":"MediaItemInput","description":"One curated media item. v1 is URL-only for video/reel/podcast/link\n(YouTube/Vimeo/podcast links) — the portal has no video-upload infra yet\n(documented in NOTES-WAVE-C.md)."},"MediaKitDraftRebuildRequest":{"properties":{"reason":{"type":"string","maxLength":200,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"MediaKitDraftRebuildRequest","description":"Why an unseen early media kit is being rebuilt (kept on the ledger row)."},"MemoirContributorCreate":{"properties":{"full_name":{"type":"string","maxLength":120,"minLength":1,"title":"Full Name"},"relationship":{"type":"string","maxLength":60,"minLength":1,"title":"Relationship"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["full_name","relationship","email"],"title":"MemoirContributorCreate","description":"Author-supplied invite. Deliberately has no phone field."},"MemoirSidebarCreateRequest":{"properties":{"chapter_number":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Chapter Number"},"contributor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contributor Id"},"source_interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Interview Id"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"body_markdown":{"type":"string","maxLength":8000,"minLength":1,"title":"Body Markdown"},"evidence_basis":{"items":{"$ref":"#/components/schemas/MemoirSidebarEvidence"},"type":"array","maxItems":20,"title":"Evidence Basis"},"sort_order":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Sort Order","default":0}},"type":"object","required":["chapter_number","title","body_markdown"],"title":"MemoirSidebarCreateRequest","description":"Author-facing sidebar creation. Explicit fields, every string bounded.\n\nDeliberately separate from :class:`MemoirSidebarCreate`: ``project_id``\ncomes from the authenticated route, never the body, and ``status`` is never\nclient-supplied — a new sidebar is always a draft."},"MemoirSidebarDecision":{"properties":{"status":{"type":"string","enum":["author_approved","rejected"],"title":"Status"},"rejected_reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rejected Reason"}},"type":"object","required":["status"],"title":"MemoirSidebarDecision","description":"Author approval is the ONLY route from draft into the compiled book."},"MemoirSidebarEvidence":{"properties":{"interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"},"quote":{"type":"string","maxLength":2000,"minLength":1,"title":"Quote"}},"type":"object","required":["quote"],"title":"MemoirSidebarEvidence","description":"One verbatim span from the CONTRIBUTOR's transcript."},"MergeBackRequest":{"properties":{"source_version":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Source Version"},"base_version":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Base Version"},"expected_current_version":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Expected Current Version"},"excluded_passages":{"items":{"type":"string","maxLength":20000,"minLength":1},"type":"array","maxItems":20,"title":"Excluded Passages"},"ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ops Item Id"},"confirmation_message":{"anyOf":[{"type":"string","maxLength":1500,"minLength":1},{"type":"null"}],"title":"Confirmation Message"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["source_version","base_version","expected_current_version"],"title":"MergeBackRequest"},"MergeReverseRequest":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","title":"MergeReverseRequest"},"MetaEventRequest":{"properties":{"event_name":{"type":"string","enum":["Lead","Schedule"],"title":"Event Name"},"event_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Event Id"},"appointment_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Appointment Id"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Phone"},"first_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Last Name"},"visitor_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Visitor Id"},"fbp":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbc"},"fbclid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbclid"},"user_agent":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"User Agent"},"event_source_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Event Source Url"},"content_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Content Name"},"content_category":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Content Category"}},"additionalProperties":false,"type":"object","required":["event_name"],"title":"MetaEventRequest"},"MintItem":{"properties":{"contact_key":{"type":"string","maxLength":64,"minLength":1,"title":"Contact Key"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl Contact Id"},"destination":{"type":"string","maxLength":500,"minLength":8,"title":"Destination"},"params":{"additionalProperties":{"type":"string","maxLength":254},"propertyNames":{"maxLength":32},"type":"object","maxProperties":12,"title":"Params"}},"additionalProperties":false,"type":"object","required":["contact_key","destination"],"title":"MintItem"},"MintRequest":{"properties":{"play_key":{"type":"string","maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9_.-]+$","title":"Play Key"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Utm Campaign"},"items":{"items":{"$ref":"#/components/schemas/MintItem"},"type":"array","maxItems":500,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["play_key","items"],"title":"MintRequest"},"ModuleProgressResponse":{"properties":{"module_number":{"type":"integer","title":"Module Number"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"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"},"scroll_depth_pct":{"type":"integer","title":"Scroll Depth Pct","default":0},"time_spent_seconds":{"type":"integer","title":"Time Spent Seconds","default":0}},"type":"object","required":["module_number","slug","title"],"title":"ModuleProgressResponse","description":"Progress state for a single training module."},"MonthDeferralRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["request_id"],"title":"MonthDeferralRequest"},"MoveFigureRequest":{"properties":{"target_paragraph_index":{"type":"integer","maximum":500.0,"minimum":0.0,"title":"Target Paragraph Index"}},"additionalProperties":false,"type":"object","required":["target_paragraph_index"],"title":"MoveFigureRequest","description":"Reposition an ``image_plan`` figure to a new paragraph index.\n\n``target_paragraph_index`` is 0-based; 0 places the figure at the very top of\nthe chapter (before the first paragraph), N places it after the Nth\nparagraph. Bounded so a client can't ask us to scan an unreasonable index."},"MovePlacementRequest":{"properties":{"exact_quote":{"type":"string","maxLength":1000,"minLength":1,"title":"Exact Quote"},"prefix":{"type":"string","maxLength":64,"title":"Prefix","default":""},"suffix":{"type":"string","maxLength":64,"title":"Suffix","default":""},"approx_start":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Approx Start"},"approx_end":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Approx End"},"anchored_version_number":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Anchored Version Number","default":0}},"additionalProperties":false,"type":"object","required":["exact_quote"],"title":"MovePlacementRequest","description":"Re-anchor an existing placement to a new spot (TRUE move, asset kept).\n\nSame anchor payload shape as ``CreatePlacementRequest`` (minus source_kind /\ninstructions, which a move never changes) — the server rebuilds it against\nthe current draft exactly like create."},"NameRequest":{"properties":{"signup_id":{"type":"string","format":"uuid","title":"Signup Id"},"full_name":{"type":"string","maxLength":160,"minLength":1,"title":"Full Name"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"type":"object","required":["signup_id","full_name"],"title":"NameRequest"},"NamesBody":{"properties":{"names":{"items":{"type":"string"},"type":"array","maxItems":3,"title":"Names"}},"additionalProperties":false,"type":"object","title":"NamesBody"},"NarrationRequest":{"properties":{"voice_id":{"type":"string","maxLength":200,"title":"Voice Id"},"text":{"type":"string","maxLength":8000,"title":"Text"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"}},"type":"object","required":["voice_id","text"],"title":"NarrationRequest","description":"Request body for generating narration from a script."},"NarrationResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"NarrationResponse","description":"Response for narration generation (async via Celery)."},"NewBookItem":{"properties":{"package_tier":{"type":"string","enum":["talk_your_book_diy","authority_book","authority_launch","authority_engine","authority_command","legacy_memoir","next_book","manuscript_complete","three_book_series","fiction_novel"],"title":"Package Tier"},"contract_target_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Target Date"},"contract_target_ref":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Contract Target Ref"},"skip_deliverables":{"items":{"type":"string","enum":["kdp_package","print_proof","cover_vote_page","house_show_episode","house_show_clips","house_show_guest_kit"]},"type":"array","maxItems":6,"title":"Skip Deliverables"},"credit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credit Id"},"sales_order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sales Order Id"},"comped":{"anyOf":[{"$ref":"#/components/schemas/Comped"},{"type":"null"}]},"blueprint_id":{"type":"string","format":"uuid","title":"Blueprint Id"}},"additionalProperties":false,"type":"object","required":["package_tier","blueprint_id"],"title":"NewBookItem","description":"Open the paid book that has no project, seeded from its Blueprint."},"NewRep":{"properties":{"full_name":{"type":"string","maxLength":120,"minLength":1,"title":"Full Name"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"ghl_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Ghl Email"},"slack_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Slack Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"timezone":{"type":"string","maxLength":64,"title":"Timezone","default":"America/New_York"},"working_hours":{"additionalProperties":true,"type":"object","maxProperties":7,"title":"Working Hours"}},"additionalProperties":false,"type":"object","required":["full_name","email"],"title":"NewRep"},"NewsletterSignupRequest":{"properties":{"first_name":{"type":"string","maxLength":80,"title":"First Name","default":""},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"src":{"type":"string","maxLength":40,"title":"Src","default":"website"}},"type":"object","required":["email"],"title":"NewsletterSignupRequest","description":"startdictate.com/newsletter (Talk Your Book). First name is optional:\nIssue #1 greets \"Hi there,\" without one."},"NotBookedIn":{"properties":{"linkedin_urls":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Linkedin Urls"},"days":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Days"}},"additionalProperties":false,"type":"object","title":"NotBookedIn"},"NotMeRequest":{"properties":{"directive":{"type":"string","maxLength":200,"minLength":1,"title":"Directive"}},"type":"object","required":["directive"],"title":"NotMeRequest"},"NoteBody":{"properties":{"text":{"type":"string","maxLength":4000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"NoteBody"},"NotifyConciergeRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"},"subject":{"type":"string","maxLength":500,"title":"Subject"},"message":{"type":"string","maxLength":5000,"title":"Message"}},"type":"object","required":["customer_email","subject","message"],"title":"NotifyConciergeRequest"},"NotifyConciergeResponse":{"properties":{"sent":{"type":"boolean","title":"Sent","default":false},"concierge_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Concierge Email"},"message":{"type":"string","title":"Message","default":""}},"type":"object","title":"NotifyConciergeResponse"},"NotifyOpsRequest":{"properties":{"subject":{"type":"string","maxLength":500,"title":"Subject"},"message":{"type":"string","maxLength":5000,"title":"Message"},"severity":{"type":"string","enum":["info","warning","critical"],"title":"Severity","default":"info"},"event_type":{"type":"string","maxLength":100,"title":"Event Type","default":"support_escalation"},"payload":{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":50,"title":"Payload"},"project_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Project Id"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Contact Id"},"contact_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Contact Email"},"n8n_execution_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"N8N Execution Id"}},"type":"object","required":["subject","message"],"title":"NotifyOpsRequest"},"NotifyOpsResponse":{"properties":{"sent":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Sent"},"ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ops Item Id"},"routed_to_ai":{"type":"boolean","title":"Routed To Ai","default":false}},"type":"object","title":"NotifyOpsResponse"},"NurtureEmailRequest":{"properties":{"contact_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Contact Id"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Full Name"},"slot_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Slot Id"},"email_slot":{"type":"string","maxLength":100,"title":"Email Slot","default":""},"sequence":{"type":"string","maxLength":100,"title":"Sequence","default":"nurture"}},"type":"object","title":"NurtureEmailRequest","description":"GHL webhook trigger for AI email field sync."},"NurtureSMSRequest":{"properties":{"contact_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Contact Id"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"slot_id":{"type":"string","maxLength":100,"title":"Slot Id","default":""},"journey":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Journey"}},"type":"object","title":"NurtureSMSRequest","description":"GHL webhook trigger for AI SMS field sync."},"OfferApproveResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"stripe_payment_link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Url"}},"type":"object","required":["id","status"],"title":"OfferApproveResponse"},"OfferBulkInput":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Description"},"price_line":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Price Line"},"checkout_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Checkout Url"}},"additionalProperties":false,"type":"object","title":"OfferBulkInput"},"OfferDraftListResponse":{"properties":{"offers":{"items":{"$ref":"#/components/schemas/OfferDraftResponse"},"type":"array","title":"Offers"}},"type":"object","required":["offers"],"title":"OfferDraftListResponse"},"OfferDraftResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"created_by_email":{"type":"string","title":"Created By Email"},"title":{"type":"string","title":"Title"},"description_md":{"type":"string","title":"Description Md"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","enum":["draft","approved","link_created","paid","cancelled"],"title":"Status"},"approved_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By Email"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"stripe_payment_link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Url"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","project_id","created_by_email","title","description_md","currency","status"],"title":"OfferDraftResponse"},"OfferItemInput":{"properties":{"kind":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Kind"},"title":{"type":"string","maxLength":160,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Description"},"price_line":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Price Line"},"checkout_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Checkout Url"}},"additionalProperties":false,"type":"object","required":["title"],"title":"OfferItemInput"},"OffersUpdate":{"properties":{"headline":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Headline"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/OfferItemInput"},"type":"array","maxItems":12},{"type":"null"}],"title":"Items"},"bulk":{"anyOf":[{"$ref":"#/components/schemas/OfferBulkInput"},{"type":"null"}]},"guest_articles":{"anyOf":[{"items":{"$ref":"#/components/schemas/GuestArticleInput"},"type":"array","maxItems":20},{"type":"null"}],"title":"Guest Articles"}},"additionalProperties":false,"type":"object","title":"OffersUpdate","description":"Offer / funnel hub (Engine+ tier). AUTHOR-PROVIDED ONLY.\n\nPARTIAL update: every field defaults to None = \"not carried, preserve the\nstored value\". The basic offers form only sends headline+items; it must\nnot erase advanced fields (bulk, guest_articles) it never edited. Only\nfields the model actually carries overwrite the stored dict (handler-side\nmerge). To CLEAR items, send an empty list explicitly."},"OnboardingFormResponse":{"properties":{"status":{"type":"string","title":"Status"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"onboarding_complete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onboarding Complete"},"blocking_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocking Reason"},"missing_requirements":{"items":{"type":"string"},"type":"array","title":"Missing Requirements"}},"type":"object","required":["status","project_id"],"title":"OnboardingFormResponse"},"OnboardingFormSubmit":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"book_goals":{"anyOf":[{"items":{"type":"string","maxLength":2000},"type":"array","maxItems":25},{"type":"null"}],"title":"Book Goals"},"target_audience":{"anyOf":[{"items":{"type":"string","maxLength":2000},"type":"array","maxItems":25},{"type":"null"}],"title":"Target Audience"},"tone_preferences":{"anyOf":[{"items":{"type":"string","maxLength":2000},"type":"array","maxItems":25},{"type":"null"}],"title":"Tone Preferences"},"topics_to_avoid":{"anyOf":[{"items":{"type":"string","maxLength":2000},"type":"array","maxItems":25},{"type":"null"}],"title":"Topics To Avoid"},"competitor_books":{"anyOf":[{"items":{"type":"string","maxLength":2000},"type":"array","maxItems":25},{"type":"null"}],"title":"Competitor Books"},"manuscript_intent":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Manuscript Intent"},"manuscript_context":{"anyOf":[{"additionalProperties":true,"type":"object","maxProperties":50},{"type":"null"}],"title":"Manuscript Context"},"scheduling_preferences":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Scheduling Preferences"},"client_timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Client Timezone"},"brand_assets":{"anyOf":[{"$ref":"#/components/schemas/BrandAssets"},{"type":"null"}]},"conversion_profile":{"anyOf":[{"additionalProperties":true,"type":"object","maxProperties":50},{"type":"null"}],"title":"Conversion Profile"}},"type":"object","required":["project_id"],"title":"OnboardingFormSubmit","description":"Onboarding questionnaire submission."},"OnboardingPrefillResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"has_discovery_seed":{"type":"boolean","title":"Has Discovery Seed","default":false},"source_blueprint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Blueprint Id"},"source_lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Lead Id"},"suggestions":{"additionalProperties":{"$ref":"#/components/schemas/PrefillField"},"type":"object","title":"Suggestions"}},"type":"object","required":["project_id","suggestions"],"title":"OnboardingPrefillResponse"},"OnboardingStatus":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"form_submitted":{"type":"boolean","title":"Form Submitted"},"questionnaire_complete":{"type":"boolean","title":"Questionnaire Complete","default":false},"files_uploaded":{"type":"integer","title":"Files Uploaded"},"file_list":{"items":{"type":"string"},"type":"array","title":"File List"},"manuscript_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manuscript Intent"},"manuscript_uploaded":{"type":"boolean","title":"Manuscript Uploaded","default":false},"manuscript_required":{"type":"boolean","title":"Manuscript Required","default":false},"manuscript_analysis_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manuscript Analysis Status"},"brand_assets_submitted":{"type":"boolean","title":"Brand Assets Submitted","default":false},"onboarding_complete":{"type":"boolean","title":"Onboarding Complete","default":false},"blocking_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocking Reason"},"missing_requirements":{"items":{"type":"string"},"type":"array","title":"Missing Requirements"},"author_confirmations":{"anyOf":[{"$ref":"#/components/schemas/AuthorConfirmations"},{"type":"null"}]},"sources_intake":{"anyOf":[{"$ref":"#/components/schemas/SourcesIntake"},{"type":"null"}]},"editor_image_mode_enabled":{"type":"boolean","title":"Editor Image Mode Enabled","default":false},"cover_studio_enabled":{"type":"boolean","title":"Cover Studio Enabled","default":false},"author_pathway_available":{"type":"boolean","title":"Author Pathway Available","default":false},"social_setup":{"anyOf":[{"$ref":"#/components/schemas/SocialSetupStatus"},{"type":"null"}]},"social_connect":{"anyOf":[{"$ref":"#/components/schemas/SocialConnectStatus"},{"type":"null"}]},"flow_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Version"},"marketing_sequence":{"anyOf":[{"$ref":"#/components/schemas/MarketingSequenceStatus"},{"type":"null"}]},"planning_call":{"anyOf":[{"$ref":"#/components/schemas/PlanningCallBooking"},{"type":"null"}]},"interview_first":{"type":"boolean","title":"Interview First","default":false},"inferred_answers":{"additionalProperties":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"type":"object","title":"Inferred Answers"},"questionnaire_optional":{"type":"boolean","title":"Questionnaire Optional","default":false}},"type":"object","required":["project_id","form_submitted","files_uploaded","file_list"],"title":"OnboardingStatus"},"OpenShortLinkRequest":{"properties":{"code":{"type":"string","maxLength":16,"title":"Code","default":""},"human":{"type":"boolean","title":"Human","default":false},"ua":{"type":"string","maxLength":300,"title":"Ua","default":""}},"additionalProperties":false,"type":"object","title":"OpenShortLinkRequest"},"OpsChecklistAttestation":{"properties":{"checked_items":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Checked Items"}},"type":"object","title":"OpsChecklistAttestation","description":"Checked checklist item ids sent with a signoff / package-asset approval.\n\nThe list is size-bounded and each id length-capped so a persisted\nattestation cannot be used to smuggle unbounded blobs into deliverable\nmetadata."},"OpsDashboardClientRow":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"type":"string","title":"Client Email"},"package_tier":{"type":"string","title":"Package Tier"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"lifecycle_state":{"type":"string","title":"Lifecycle State"},"legacy_status":{"type":"string","title":"Legacy Status"},"stage_label":{"type":"string","title":"Stage Label"},"blocking_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocking Reason"},"system_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Status"},"author_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Prompt"},"client_setup_state":{"type":"string","title":"Client Setup State"},"client_setup_missing":{"items":{"type":"string"},"type":"array","title":"Client Setup Missing","default":[]},"open_task_count":{"type":"integer","title":"Open Task Count","default":0},"blocked_task_count":{"type":"integer","title":"Blocked Task Count","default":0},"overdue_task_count":{"type":"integer","title":"Overdue Task Count","default":0},"open_issue_count":{"type":"integer","title":"Open Issue Count","default":0},"high_priority_issue_count":{"type":"integer","title":"High Priority Issue Count","default":0},"critical_issue_count":{"type":"integer","title":"Critical Issue Count","default":0},"attention_level":{"type":"string","title":"Attention Level","default":"ok"},"attention_reasons":{"items":{"type":"string"},"type":"array","title":"Attention Reasons","default":[]},"next_action":{"type":"string","title":"Next Action"},"top_task":{"anyOf":[{"$ref":"#/components/schemas/OpsDashboardTaskSummary"},{"type":"null"}]},"top_issue":{"anyOf":[{"$ref":"#/components/schemas/OpsDashboardIssueSummary"},{"type":"null"}]}},"type":"object","required":["project_id","client_name","client_email","package_tier","created_at","lifecycle_state","legacy_status","stage_label","client_setup_state","next_action"],"title":"OpsDashboardClientRow"},"OpsDashboardIssueSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"summary":{"type":"string","title":"Summary"},"priority":{"type":"string","title":"Priority"},"ambiguity_class":{"type":"string","title":"Ambiguity Class"},"source_channel":{"type":"string","title":"Source Channel"},"recommended_action":{"type":"string","title":"Recommended Action"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","summary","priority","ambiguity_class","source_channel","recommended_action","created_at"],"title":"OpsDashboardIssueSummary"},"OpsDashboardResponse":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"total_clients":{"type":"integer","title":"Total Clients"},"attention_clients":{"type":"integer","title":"Attention Clients"},"watch_clients":{"type":"integer","title":"Watch Clients","default":0},"critical_clients":{"type":"integer","title":"Critical Clients"},"rows":{"items":{"$ref":"#/components/schemas/OpsDashboardClientRow"},"type":"array","title":"Rows"}},"type":"object","required":["generated_at","total_clients","attention_clients","critical_clients","rows"],"title":"OpsDashboardResponse"},"OpsDashboardTaskSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"task_type":{"type":"string","title":"Task Type"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},"type":"object","required":["id","title","status","task_type"],"title":"OpsDashboardTaskSummary"},"OpsLearningRetireRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"actor":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Actor"}},"type":"object","required":["reason"],"title":"OpsLearningRetireRequest","description":"Retire one advisory lesson. The reason is the record of why."},"OpsLoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"title":"Password"}},"type":"object","required":["email","password"],"title":"OpsLoginRequest"},"OpsLoginResponse":{"properties":{"token":{"type":"string","title":"Token"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["token","user_id","full_name","email","role"],"title":"OpsLoginResponse"},"OpsPublishingMetadataUpdateRequest":{"properties":{"author_display_name":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Author Display Name"},"author_credentials":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Author Credentials"},"isbn_paperback":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Isbn Paperback"},"isbn_ebook":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Isbn Ebook"},"isbn_audiobook":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Isbn Audiobook"},"imprint_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Imprint Name"},"publication_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publication Date"},"list_price_usd":{"anyOf":[{"type":"number","maximum":999.99,"minimum":0.99},{"type":"string"},{"type":"null"}],"title":"List Price Usd"},"ebook_list_price_usd":{"anyOf":[{"type":"number","maximum":999.99,"minimum":0.99},{"type":"string"},{"type":"null"}],"title":"Ebook List Price Usd"},"cover_has_barcode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cover Has Barcode"},"cover_barcode_placement":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Cover Barcode Placement"},"description_long":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description Long"},"description_bowker":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description Bowker"}},"additionalProperties":false,"type":"object","title":"OpsPublishingMetadataUpdateRequest","description":"Ops/admin-writable publishing metadata fields.\n\nThis is THE pipeline mechanism for ops-assigned Dictate Press ISBNs\n(see docs/publishing-ops-runbook.md): ops register the ISBN with Bowker,\nthen inject it here via POST /admin/clients/{project_id}/publishing-metadata.\nAll fields are optional — only explicitly provided fields are written.\n\n``imprint_name`` is the Bowker-facing imprint (e.g. 'Dictate Press USA')\nand may legitimately differ from the publisher/company name — Bowker\nforbids imprint == company name."},"OpsQueueAddNoteRequest":{"properties":{"note":{"type":"string","maxLength":5000,"title":"Note"},"author":{"type":"string","maxLength":200,"title":"Author","default":"admin"}},"type":"object","required":["note"],"title":"OpsQueueAddNoteRequest"},"OpsQueueApplyRecommendationRequest":{"properties":{"resolved_by":{"type":"string","maxLength":200,"title":"Resolved By","default":"admin"},"expected_evaluated_at":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Expected Evaluated At"}},"type":"object","title":"OpsQueueApplyRecommendationRequest","description":"Apply the AI resolver's stored recommendation with one click.\n\n``resolved_by`` is honoured only for full-admin sessions; the VA/Ops mirror\nroute stamps the authenticated token email instead (see app/api/routes/ops.py).\n\n``expected_evaluated_at`` is the GENERATION FENCE. The AI's read of a ticket\nis re-runnable on demand now (\"Fix with AI\"), so a second opinion can land\nbetween the moment somebody READS a recommendation and the moment they click\nApply. Sending back the ``evaluated_at`` that was on screen makes that case\na refusal instead of a verdict nobody reviewed. Omitting it keeps the older\nunfenced behaviour, so a frontend deployed a few minutes behind still works."},"OpsQueueBulkReassignRequest":{"properties":{"item_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Item Ids"},"assignee_email":{"type":"string","maxLength":200,"minLength":3,"title":"Assignee Email"}},"type":"object","required":["item_ids","assignee_email"],"title":"OpsQueueBulkReassignRequest","description":"Hand many open tickets to one named person.\n\nUnlike the single-item ``OpsQueueReassignRequest``, ``assignee_email`` IS\nvalidated against the active rosters (support reps plus staff accounts) in\n``ops_ticketing.resolve_reassign_target``. One ticket sent to a typo is a\nticket somebody chases; two hundred is a silent outage of the queue."},"OpsQueueBulkResolveRequest":{"properties":{"item_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Item Ids"},"resolution_type":{"type":"string","enum":["released","rerouted","clarified","dismissed","accept_author","accept_planner","compromise","include_in_batch","defer_to_next_batch","create_addendum","send_reminder","extend_deadline","proceed_without_approval","pause_project","grant_additional_round","finalize_current","escalate_to_design","fix_metadata","request_from_author","use_default","override","auto_resolved","editor_pass_complete"],"title":"Resolution Type"},"resolution_notes":{"type":"string","maxLength":5000,"title":"Resolution Notes","default":""},"resolved_by":{"type":"string","maxLength":200,"title":"Resolved By","default":"admin"}},"type":"object","required":["item_ids","resolution_type"],"title":"OpsQueueBulkResolveRequest","description":"Resolve many ops items at once (operator console bulk action).\n\nThe id list is size-bounded; each resolution applies the same resolution_type."},"OpsQueueBulkTakeRequest":{"properties":{"item_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Item Ids"}},"type":"object","required":["item_ids"],"title":"OpsQueueBulkTakeRequest","description":"Take many open tickets at once (the queue list's bulk bar, Track 2 B2).\n\nNo actor field on purpose: both mirrors stamp the owner server-side — the\ntoken email on /ops, the named X-Admin-Actor header on /admin — so a caller\ncannot hand someone else's work to themselves or themselves' work to\nsomeone else. Reassign is the one route that names a third party, and it is\nadmin-only."},"OpsQueueClearQuarantineRequest":{"properties":{"cleared_by":{"type":"string","maxLength":200,"title":"Cleared By","default":"admin"}},"type":"object","title":"OpsQueueClearQuarantineRequest","description":"Let the AI resolver work an item it has stopped retrying.\n\nThe circuit breaker (app/services/ops_auto_resolution) stops evaluating an\nitem after the same attempt fails twice. This is the DRAIN for that state:\nwithout it the quarantine would be a queue with no way out, which is a bug,\nnot a safety feature (CLAUDE.md, \"Guards on Client Work\")."},"OpsQueueEditorPassCompleteRequest":{"properties":{"resolution_notes":{"type":"string","maxLength":5000,"title":"Resolution Notes","default":""}},"type":"object","title":"OpsQueueEditorPassCompleteRequest","description":"Body for the Wave 4 \"editor pass complete\" chapter_escalation action."},"OpsQueueEscalateRequest":{"properties":{"priority":{"type":"string","enum":["low","medium","high","critical"],"title":"Priority"},"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""},"escalated_by":{"type":"string","maxLength":200,"title":"Escalated By","default":"admin"}},"type":"object","required":["priority"],"title":"OpsQueueEscalateRequest"},"OpsQueueExcludeMaterialRequest":{"properties":{"mode":{"type":"string","enum":["leave_out","describe_in_words"],"title":"Mode"},"notes":{"type":"string","maxLength":2000,"minLength":10,"title":"Notes"},"writer_note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Writer Note"},"chapter_number":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Chapter Number"},"excluded_by":{"type":"string","maxLength":200,"title":"Excluded By","default":"admin"}},"type":"object","required":["mode","notes"],"title":"OpsQueueExcludeMaterialRequest","description":"Staff: keep the material behind a material_policy_review ticket out of the book.\n\n``leave_out`` drops it; ``describe_in_words`` drops the image and leaves the\nchapter writer a note to describe it in prose (``writer_note`` optional).\nWorks on an open ticket (closes it) and on a closed one whose material was\nalready released."},"OpsQueueReassignRequest":{"properties":{"claimed_by":{"type":"string","maxLength":200,"minLength":1,"title":"Claimed By"}},"type":"object","required":["claimed_by"],"title":"OpsQueueReassignRequest","description":"Reassign an ops item to a specific claimant (admin or the rotator).\n\n``claimed_by`` is free text (an email) per the ops_queue.claimed_by\ncolumn comment — not validated against support_reps so a claim can still\ntarget a VA/ops staff email that never gets a support_reps row."},"OpsQueueRequestApprovalRequest":{"properties":{"action":{"type":"string","maxLength":100,"title":"Action"},"note":{"type":"string","maxLength":5000,"minLength":1,"title":"Note"},"requested_by":{"type":"string","maxLength":200,"title":"Requested By","default":"ops"}},"type":"object","required":["action","note"],"title":"OpsQueueRequestApprovalRequest","description":"A named ops rep asks an admin to approve an admin-gated action.\n\nReplaces the old dead-end (\"this needs an admin, go find Mike\") with a\ndurable in-queue handoff: the request is stamped onto item metadata, the\npriority is raised, and the admin view surfaces it as waiting-on-you."},"OpsQueueResolveRequest":{"properties":{"resolution_type":{"type":"string","enum":["released","rerouted","clarified","dismissed","accept_author","accept_planner","compromise","include_in_batch","defer_to_next_batch","create_addendum","send_reminder","extend_deadline","proceed_without_approval","pause_project","grant_additional_round","finalize_current","escalate_to_design","fix_metadata","request_from_author","use_default","override","auto_resolved","editor_pass_complete"],"title":"Resolution Type"},"resolution_notes":{"type":"string","maxLength":5000,"title":"Resolution Notes","default":""},"resolved_by":{"type":"string","maxLength":200,"title":"Resolved By","default":"admin"},"question_pending":{"type":"boolean","title":"Question Pending","default":false},"repair_kind":{"anyOf":[{"type":"string","maxLength":60,"pattern":"^[a-z][a-z0-9_]{1,59}$"},{"type":"null"}],"title":"Repair Kind"},"repair_calls":{"items":{"type":"string","maxLength":300,"minLength":1},"type":"array","maxItems":10,"title":"Repair Calls"}},"type":"object","required":["resolution_type"],"title":"OpsQueueResolveRequest"},"OpsRepairActionRequest":{"properties":{"action_type":{"type":"string","enum":["recompile_manuscript","rerun_whole_book_review","regenerate_interior_images","retry_failed_deliverables","approve_package_asset","request_author_clarification","mark_manual_replacement_needed","resolve_repair_item","reset_chapter_review","reset_cover_vote","sync_locked_cover","apply_voice_dna","fix_chapter_state_drift","request_asset_rewrite","regen_stale_title_assets","refresh_chapters_from_corpus","release_outline_revision_hold"],"title":"Action Type"},"source_ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Ops Item Id"},"actor":{"type":"string","maxLength":200,"title":"Actor","default":"admin"},"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""},"payload":{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":50,"title":"Payload"}},"type":"object","required":["action_type"],"title":"OpsRepairActionRequest"},"OpsSuppressionCreateRequest":{"properties":{"ambiguity_class":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ambiguity Class"},"reason":{"type":"string","maxLength":500,"minLength":8,"title":"Reason"},"days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Days"},"source_ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Ops Item Id"}},"additionalProperties":false,"type":"object","required":["reason","days"],"title":"OpsSuppressionCreateRequest","description":"Stop ticketing one class (or every class) for one author for N days."},"OpsTicketAssignConciergeRequest":{"properties":{"note":{"type":"string","maxLength":5000,"minLength":1,"title":"Note"},"owner_email":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Owner Email"}},"type":"object","required":["note"],"title":"OpsTicketAssignConciergeRequest","description":"Transfer the ticket to the client's concierge.\n\n``owner_email`` is optional: when omitted, the live GoHighLevel assigned\nuser (lead owner) is used. A typed email still wins so a rep can override."},"OpsTicketConciergeRequest":{"properties":{"owner_email":{"type":"string","maxLength":200,"minLength":3,"title":"Owner Email"},"note":{"type":"string","maxLength":5000,"title":"Note","default":""}},"type":"object","required":["owner_email"],"title":"OpsTicketConciergeRequest","description":"Hand a ticket to concierge without giving up ownership of it."},"OpsTicketFeedbackRequest":{"properties":{"verdict":{"type":"string","enum":["ai_should_have_fixed","ai_fix_wrong","human_needed","handled_correctly"],"title":"Verdict"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""},"learn":{"type":"boolean","title":"Learn","default":false}},"type":"object","required":["verdict"],"title":"OpsTicketFeedbackRequest","description":"A rep's judgment on how one ticket was handled.\n\nExplicit named fields with hard caps (never ``body: dict``). ``learn`` is\nthe only thing that costs anything: it asks the system to distil ONE\nadvisory lesson for the AI resolver. The verdict is recorded either way."},"OpsTicketNoteRequest":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"OpsTicketNoteRequest","description":"An internal note. Never leaves the building."},"OpsTicketReopenRequest":{"properties":{"reason":{"type":"string","maxLength":5000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"OpsTicketReopenRequest","description":"Bring a closed ticket back. The reason is the record of why."},"OpsTicketReplyRequest":{"properties":{"message":{"type":"string","maxLength":500,"minLength":1,"title":"Message"},"kind":{"type":"string","enum":["question","confirmation"],"title":"Kind","default":"question"}},"type":"object","required":["message"],"title":"OpsTicketReplyRequest","description":"A rep's message to the author, sent from the ticket.\n\n``message`` is the author-facing question verbatim. The 500-character cap\nmatches the existing clarification path (app/services/ops_repair.py) — this\nis a question, not a letter."},"OpsUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","full_name","email","role","status","created_at"],"title":"OpsUserResponse"},"OpsUserStatusRequest":{"properties":{"status":{"type":"string","maxLength":32,"pattern":"^(active|deactivated)$","title":"Status"}},"type":"object","required":["status"],"title":"OpsUserStatusRequest"},"OpsWholeBookAuthorResponseRequest":{"properties":{"response":{"type":"string","maxLength":100000,"minLength":1,"title":"Response"}},"type":"object","required":["response"],"title":"OpsWholeBookAuthorResponseRequest","description":"An answer the author gave off-thread, typed in by a rep."},"OpsWholeBookBlockerOverrideRequest":{"properties":{"reason":{"type":"string","maxLength":5000,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"OpsWholeBookBlockerOverrideRequest","description":"Clear ONE final-review blocker from the ops-token mirror.\n\nNo ``actor`` field on purpose: the ops mirror stamps the authenticated\nstaff member from their token, so a caller cannot write somebody else's\nname into the audit trail for overruling a manuscript quality gate."},"OptinRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"First Name"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"asset_slug":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Asset Slug"}},"type":"object","required":["email"],"title":"OptinRequest"},"OptionalReasonBody":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"OptionalReasonBody"},"OriginalityScanRequest":{"properties":{"sandbox":{"type":"boolean","title":"Sandbox","default":true}},"type":"object","title":"OriginalityScanRequest"},"OutlineAnswer":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"page_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Page Sha256"},"question_key":{"type":"string","maxLength":80,"minLength":1,"title":"Question Key"},"option_key":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Option Key"},"own_words":{"type":"string","maxLength":2000,"title":"Own Words","default":""}},"additionalProperties":false,"type":"object","required":["artifact_id","page_sha256","question_key"],"title":"OutlineAnswer","description":"One open story question: one of the offered ideas, or their own answer."},"OutreachClickRequest":{"properties":{"t":{"type":"string","maxLength":32,"title":"T","default":""},"dest":{"type":"string","maxLength":32,"title":"Dest","default":""},"m":{"type":"string","maxLength":16,"title":"M","default":""},"ua":{"type":"string","maxLength":300,"title":"Ua","default":""},"ref":{"type":"string","maxLength":300,"title":"Ref","default":""}},"type":"object","title":"OutreachClickRequest","description":"What the edge saw. Every string is bounded at the model, not in code."},"OutreachQueueLead":{"properties":{"prospect_id":{"type":"string","format":"uuid","title":"Prospect Id"},"name":{"type":"string","title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"platform":{"type":"string","enum":["linkedin","instagram","twitter","youtube"],"title":"Platform"},"handle":{"type":"string","title":"Handle"},"profile_link":{"type":"string","title":"Profile Link"},"dm_text":{"type":"string","title":"Dm Text"},"episode":{"type":"string","title":"Episode"},"status":{"type":"string","enum":["","sent","skip","replied"],"title":"Status","default":""},"identity":{"type":"string","title":"Identity","default":""}},"additionalProperties":false,"type":"object","required":["prospect_id","name","platform","handle","profile_link","dm_text","episode"],"title":"OutreachQueueLead"},"OutreachStatusResult":{"properties":{"prospect_id":{"type":"string","format":"uuid","title":"Prospect Id"},"status":{"anyOf":[{"type":"string","enum":["sent","skip","replied"]},{"type":"null"}],"title":"Status"},"action":{"anyOf":[{"type":"string","enum":["wrong_person","wrong_episode","correct_link","email_found"]},{"type":"null"}],"title":"Action"},"pipeline_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Status"},"updated":{"type":"boolean","title":"Updated","default":false},"sheet_sync":{"anyOf":[{"type":"string","enum":["pending","disabled"]},{"type":"null"}],"title":"Sheet Sync"},"errors":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Errors"}},"additionalProperties":false,"type":"object","required":["prospect_id"],"title":"OutreachStatusResult"},"OutreachSuppressionRequest":{"properties":{"identifier":{"type":"string","maxLength":2000,"minLength":1,"title":"Identifier"},"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source","default":"dm_outreach"}},"type":"object","required":["identifier","reason"],"title":"OutreachSuppressionRequest"},"OutreachSuppressionResponse":{"properties":{"identifier":{"type":"string","title":"Identifier"},"identifier_type":{"type":"string","enum":["email","social_profile"],"title":"Identifier Type"},"normalized_identifier":{"type":"string","title":"Normalized Identifier"},"resolved_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Email"},"resolved_emails":{"items":{"type":"string"},"type":"array","title":"Resolved Emails"},"matched_prospects":{"type":"integer","title":"Matched Prospects","default":0},"social_prospects_closed":{"type":"integer","title":"Social Prospects Closed","default":0},"social_suppression_recorded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Social Suppression Recorded"},"fanout_results":{"items":{"$ref":"#/components/schemas/OutreachSuppressionTargetResult"},"type":"array","title":"Fanout Results"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["identifier","identifier_type","normalized_identifier"],"title":"OutreachSuppressionResponse"},"OutreachSuppressionTargetResult":{"properties":{"email":{"type":"string","title":"Email"},"ledger":{"type":"boolean","title":"Ledger","default":false},"prospects_closed":{"type":"integer","title":"Prospects Closed","default":0},"smartlead":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smartlead"},"ghl":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ghl"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["email"],"title":"OutreachSuppressionTargetResult"},"OwnCoverUploadResponse":{"properties":{"concept_id":{"type":"string","title":"Concept Id"},"artifact_id":{"type":"string","title":"Artifact Id"},"flags":{"items":{"type":"string"},"type":"array","title":"Flags"},"checking_text":{"type":"boolean","title":"Checking Text","default":false}},"type":"object","required":["concept_id","artifact_id"],"title":"OwnCoverUploadResponse","description":"Result of \"Use my own cover\": the new concept and its advisory flags."},"OwnVoiceAnswer":{"properties":{"decision":{"type":"string","enum":["approved","declined","withdrawn"],"title":"Decision"},"wording_version":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Wording Version"}},"additionalProperties":false,"type":"object","required":["decision","wording_version"],"title":"OwnVoiceAnswer"},"PackDecision":{"properties":{"decision":{"type":"string","enum":["approved","rejected"],"maxLength":16,"title":"Decision"}},"additionalProperties":false,"type":"object","required":["decision"],"title":"PackDecision"},"PackageCatalogGroup":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"items":{"items":{"$ref":"#/components/schemas/PackageCatalogItem"},"type":"array","title":"Items","default":[]}},"type":"object","required":["key","title"],"title":"PackageCatalogGroup"},"PackageCatalogItem":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"state":{"type":"string","title":"State"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"bonus":{"type":"boolean","title":"Bonus","default":false},"addon":{"type":"boolean","title":"Addon","default":false},"action_hint":{"anyOf":[{"$ref":"#/components/schemas/AuthorInputHint"},{"type":"null"}]},"expected_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Window"},"deliverable_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Deliverable Ids","default":[]}},"type":"object","required":["key","title","state"],"title":"PackageCatalogItem"},"PackageCatalogResponse":{"properties":{"package":{"$ref":"#/components/schemas/PackageSummary"},"groups":{"items":{"$ref":"#/components/schemas/PackageCatalogGroup"},"type":"array","title":"Groups","default":[]}},"type":"object","required":["package"],"title":"PackageCatalogResponse"},"PackageDepositLinkRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"target":{"type":"string","enum":["book_package","business_package","backend_package","author_website"],"title":"Target"}},"type":"object","required":["buyer_email","target"],"title":"PackageDepositLinkRequest","description":"Mint a customer-bound custom-amount deposit link for one package only."},"PackageSummary":{"properties":{"tier":{"type":"string","title":"Tier"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["tier","display_name"],"title":"PackageSummary"},"PageCopy":{"properties":{"kicker":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Kicker"},"lede":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Lede"},"hero_points":{"items":{"type":"string"},"type":"array","maxItems":3,"title":"Hero Points"},"takehome_intro":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Takehome Intro"},"takehome_points":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Takehome Points"},"speakers_intro":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Speakers Intro"},"schedule_note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Schedule Note"},"closing_heading":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Closing Heading"}},"additionalProperties":false,"type":"object","title":"PageCopy","description":"The event page's own words (each optional; a missing one renders nothing)."},"PageViewRequest":{"properties":{"visitor_id":{"type":"string","maxLength":100,"minLength":1,"title":"Visitor Id"},"src":{"type":"string","enum":["link","qr","book","cover_vote"],"title":"Src","default":"link"}},"additionalProperties":false,"type":"object","required":["visitor_id"],"title":"PageViewRequest","description":"The public page-view beacon (one row per visitor per day)."},"Pause":{"properties":{"reason":{"type":"string","maxLength":300,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"Pause"},"PauseModeUpdate":{"properties":{"pause_mode":{"anyOf":[{"type":"string","enum":["type","talk","ask"]},{"type":"null"}],"title":"Pause Mode"},"decline_nudge":{"anyOf":[{"type":"string","enum":["type","talk","ask"]},{"type":"null"}],"title":"Decline Nudge"}},"additionalProperties":false,"type":"object","title":"PauseModeUpdate"},"PaymentLinkCapabilityRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"target":{"type":"string","enum":["book_package","business_package","backend_package","author_website","author_platform_monthly","author_platform_pro_monthly"],"title":"Target"},"price_kind":{"type":"string","enum":["list","post_credit","deposit","subscription"],"title":"Price Kind"}},"type":"object","required":["buyer_email","target","price_kind"],"title":"PaymentLinkCapabilityRequest","description":"Ask for the author capability to append to a shared v6 payment link.\n\n``target``/``price_kind`` name the EXACT link the rep is about to send, so\nthe minted capability cannot be redeemed on a different, more expensive\none. One-time package links name a package tier; the platform-subscription\nlink names its platform product."},"PaymentLinkCapabilityResponse":{"properties":{"client_reference_id":{"type":"string","maxLength":2000,"title":"Client Reference Id"},"query_string":{"type":"string","maxLength":2100,"title":"Query String"},"checkout_url":{"anyOf":[{"type":"string","maxLength":2400},{"type":"null"}],"title":"Checkout Url"},"target":{"type":"string","enum":["book_package","business_package","backend_package","author_website","author_platform_monthly","author_platform_pro_monthly"],"title":"Target"},"price_kind":{"type":"string","enum":["list","post_credit","deposit","subscription"],"title":"Price Kind"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["client_reference_id","query_string","target","price_kind","project_id","expires_at"],"title":"PaymentLinkCapabilityResponse","description":"The value a rep appends as ``client_reference_id`` to any v6 link.\n\nWithout it a paid link can only attribute money; with it the webhook may\ncommit the exact purchase onto that exact book."},"PaymentSplitRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":true},"second_leg_offset_days":{"type":"integer","maximum":21.0,"minimum":7.0,"title":"Second Leg Offset Days","default":14},"request_reference":{"type":"string","maxLength":500,"minLength":1,"title":"Request Reference"},"approval_reference":{"type":"string","maxLength":500,"minLength":1,"title":"Approval Reference"},"approved_by":{"type":"string","maxLength":100,"minLength":1,"title":"Approved By"},"approved_on":{"type":"string","format":"date","title":"Approved On"},"ops_ticket_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ops Ticket Id"},"restart_overdue":{"type":"boolean","title":"Restart Overdue","default":false}},"additionalProperties":false,"type":"object","required":["project_id","request_reference","approval_reference","approved_by","approved_on"],"title":"PaymentSplitRequest"},"PaymentSplitResponse":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run"},"already_applied":{"type":"boolean","title":"Already Applied"},"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"type":"object","required":["dry_run","already_applied","plan"],"title":"PaymentSplitResponse"},"PayoutDetailsRequest":{"properties":{"paypal_email":{"type":"string","maxLength":254,"format":"email","title":"Paypal Email"}},"additionalProperties":false,"type":"object","required":["paypal_email"],"title":"PayoutDetailsRequest"},"PersonaCardRequest":{"properties":{"stats_included":{"items":{"type":"string","enum":["words","hours_talked","chapters","calls","favorite_word"]},"type":"array","maxItems":5,"title":"Stats Included"},"consent":{"type":"boolean","title":"Consent"}},"additionalProperties":false,"type":"object","required":["consent"],"title":"PersonaCardRequest"},"PhoneDeviceTagRequest":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"user_agent":{"type":"string","maxLength":1024,"title":"User Agent","default":""},"signed_at":{"type":"integer","minimum":0.0,"title":"Signed At"}},"type":"object","required":["email","signed_at"],"title":"PhoneDeviceTagRequest"},"PhotoCaptionCandidate":{"properties":{"text":{"type":"string","maxLength":300,"title":"Text"},"verbatim_quote":{"type":"string","maxLength":600,"title":"Verbatim Quote","default":""},"source_ref":{"type":"string","maxLength":120,"title":"Source Ref","default":""},"from_photo":{"type":"boolean","title":"From Photo","default":false}},"type":"object","required":["text"],"title":"PhotoCaptionCandidate","description":"One AI-suggested caption the author may pick, edit, or ignore.\n\n``verbatim_quote`` is not decoration: it is the evidence that let this\ncandidate survive grounding, and showing it to the author is how they check\na suggestion against their own memory before accepting it."},"PhotoPlateConfirmRequest":{"properties":{"r2_key":{"type":"string","maxLength":512,"title":"R2 Key"},"filename":{"type":"string","maxLength":200,"title":"Filename"},"request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"},"caption":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Caption"},"alt_text":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Alt Text"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","required":["r2_key","filename"],"title":"PhotoPlateConfirmRequest","description":"Confirm a staged photo upload; the server validates the exact bytes."},"PhotoPlateImageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sort_order":{"type":"integer","title":"Sort Order"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"alt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Text"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"caption_source":{"type":"string","title":"Caption Source","default":"none"},"caption_confirmed":{"type":"boolean","title":"Caption Confirmed","default":false},"caption_candidates":{"items":{"$ref":"#/components/schemas/PhotoCaptionCandidate"},"type":"array","title":"Caption Candidates"},"layout_slot":{"type":"string","title":"Layout Slot","default":"auto"},"effective_ppi":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Effective Ppi"},"ppi_state":{"type":"string","title":"Ppi State","default":"unmeasured"},"status":{"type":"string","title":"Status","default":"pending"},"exclusion_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusion Reason"},"pixel_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pixel Width"},"pixel_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pixel Height"},"byte_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Byte Size"}},"type":"object","required":["id","sort_order"],"title":"PhotoPlateImageOut","description":"One photo as the portal sees it."},"PhotoPlatePresignRequest":{"properties":{"filename":{"type":"string","maxLength":200,"title":"Filename"},"content_type":{"type":"string","maxLength":100,"title":"Content Type"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["filename","content_type","size_bytes"],"title":"PhotoPlatePresignRequest","description":"Presign a direct-to-R2 PUT for one photo-insert scan.\n\nVercel's edge caps request bodies at 4.5MB, so a full-resolution family\nscan cannot travel through the BFF as multipart — the browser PUTs it\nstraight to R2 and confirms via the companion endpoint."},"PhotoPlatePresignResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"r2_key":{"type":"string","title":"R2 Key"}},"type":"object","required":["upload_url","r2_key"],"title":"PhotoPlatePresignResponse"},"PhotoPlateReorderRequest":{"properties":{"ordered_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Ordered Ids"}},"additionalProperties":false,"type":"object","required":["ordered_ids"],"title":"PhotoPlateReorderRequest","description":"Full ordered id list — per-row swaps collide on the unique index."},"PhotoPlateStatusResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"entitled":{"type":"boolean","title":"Entitled"},"total":{"type":"integer","title":"Total"},"included":{"type":"integer","title":"Included"},"pending":{"type":"integer","title":"Pending"},"excluded":{"type":"integer","title":"Excluded"},"min_images":{"type":"integer","title":"Min Images"},"max_images":{"type":"integer","title":"Max Images"},"plate_pages":{"type":"integer","title":"Plate Pages"},"min_plate_pages":{"type":"integer","title":"Min Plate Pages"},"max_plate_pages":{"type":"integer","title":"Max Plate Pages"},"interior_page_count":{"type":"integer","title":"Interior Page Count"},"projected_total_pages":{"type":"integer","title":"Projected Total Pages"},"kdp_max_pages":{"type":"integer","title":"Kdp Max Pages"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"images":{"items":{"$ref":"#/components/schemas/PhotoPlateImageOut"},"type":"array","title":"Images"}},"additionalProperties":false,"type":"object","required":["enabled","entitled","total","included","pending","excluded","min_images","max_images","plate_pages","min_plate_pages","max_plate_pages","interior_page_count","projected_total_pages","kdp_max_pages"],"title":"PhotoPlateStatusResponse","description":"Plate summary surfaced BEFORE compile, including the page cost."},"PhotoPlateUpdateRequest":{"properties":{"caption":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Caption"},"alt_text":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Alt Text"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"},"accepted_candidate_index":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":0.0},{"type":"null"}],"title":"Accepted Candidate Index"},"include_anyway":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Anyway"}},"additionalProperties":false,"type":"object","title":"PhotoPlateUpdateRequest","description":"Author edits to one photo's caption/alt text or inclusion decision."},"PhotoQuestionTapRequest":{"properties":{"where":{"type":"string","enum":["chapter","section","page","out"],"title":"Where"},"chapter_number":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":1.0},{"type":"null"}],"title":"Chapter Number"},"page":{"anyOf":[{"type":"string","enum":["dedication","epilogue","acknowledgments","about_author"]},{"type":"null"}],"title":"Page"}},"additionalProperties":false,"type":"object","required":["where"],"title":"PhotoQuestionTapRequest","description":"Her tap on our photo question card (GH #14387 sp-captions): a page, the photo section,\nthe end of a chapter, or leave it out."},"PhotoSectionBulkRequest":{"properties":{"material_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Material Ids"},"put":{"type":"boolean","title":"Put"},"page":{"anyOf":[{"type":"string","enum":["dedication","epilogue","acknowledgments","about_author"]},{"type":"null"}],"title":"Page"}},"additionalProperties":false,"type":"object","required":["material_ids","put"],"title":"PhotoSectionBulkRequest","description":"Several of her pictures at once: into the section or onto a page, or out of the book."},"PhotoSectionRequest":{"properties":{"put":{"type":"boolean","title":"Put"},"page":{"anyOf":[{"type":"string","enum":["dedication","epilogue","acknowledgments","about_author"]},{"type":"null"}],"title":"Page"}},"additionalProperties":false,"type":"object","required":["put"],"title":"PhotoSectionRequest","description":"\"Your photos\": put one picture in the photo section (true) or take it out (false).\n\n``page`` (GH #14387 B) puts it on that front or back page instead of the section."},"PhotoSectionTitleRequest":{"properties":{"title":{"type":"string","maxLength":80,"title":"Title","default":""}},"additionalProperties":false,"type":"object","title":"PhotoSectionTitleRequest","description":"The photo section's title she chooses; empty = \"Photographs\"."},"PictureBody":{"properties":{"scene":{"type":"string","maxLength":16,"minLength":1,"title":"Scene"}},"additionalProperties":false,"type":"object","required":["scene"],"title":"PictureBody"},"PilotFormatRevisionRequest":{"properties":{"expected_offer_hash":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Offer Hash"},"expected_pilot_script_hash":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Pilot Script Hash"},"offer_destination_url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":8},{"type":"null"}],"title":"Offer Destination Url"},"spoken_midroll":{"anyOf":[{"type":"string","maxLength":1200,"minLength":1},{"type":"null"}],"title":"Spoken Midroll"},"spoken_cta":{"anyOf":[{"type":"string","maxLength":1200,"minLength":1},{"type":"null"}],"title":"Spoken Cta"},"confirmed":{"type":"boolean","const":true,"title":"Confirmed"}},"additionalProperties":false,"type":"object","required":["expected_offer_hash","expected_pilot_script_hash","confirmed"],"title":"PilotFormatRevisionRequest","description":"Author-confirmed move of an unapproved pilot to the 10-15 minute format."},"PipelineBoardResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"snapshot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Id"},"snapshot_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Snapshot Run At"},"amber_days":{"type":"integer","title":"Amber Days"},"red_days":{"type":"integer","title":"Red Days"},"include_abandoned":{"type":"boolean","title":"Include Abandoned","default":false},"hidden_abandoned":{"type":"integer","title":"Hidden Abandoned","default":0},"pipelines":{"items":{"$ref":"#/components/schemas/BoardPipeline"},"type":"array","title":"Pipelines"},"reps":{"items":{"$ref":"#/components/schemas/BoardRep"},"type":"array","title":"Reps"},"deals":{"items":{"$ref":"#/components/schemas/BoardDeal"},"type":"array","title":"Deals"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["generated_at","amber_days","red_days"],"title":"PipelineBoardResponse"},"PipelineStage":{"properties":{"stage":{"type":"string","title":"Stage"},"status":{"type":"string","title":"Status"},"detail":{"type":"string","title":"Detail","default":""}},"type":"object","required":["stage","status"],"title":"PipelineStage"},"PipelineStatus":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"stages":{"items":{"$ref":"#/components/schemas/PipelineStage"},"type":"array","title":"Stages"}},"type":"object","required":["project_id","stages"],"title":"PipelineStatus"},"PlacePhotoRequest":{"properties":{"where":{"type":"string","enum":["chapter","section","page","out"],"title":"Where"},"chapter_number":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":1.0},{"type":"null"}],"title":"Chapter Number"},"at":{"type":"string","enum":["chapter_start","chapter_end","after"],"title":"At","default":"chapter_end"},"after_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"After Text"},"page":{"anyOf":[{"type":"string","enum":["dedication","epilogue","acknowledgments","about_author"]},{"type":"null"}],"title":"Page"},"caption":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Caption"}},"additionalProperties":false,"type":"object","required":["where"],"title":"PlacePhotoRequest","description":"\"Your photos\": put one picture where she wants it (GH #14387 B 3).\n\n``chapter``: ``chapter_number`` and ``at`` (top, end, or after the paragraph that\nstarts with ``after_text``). ``page``: ``page``. ``section`` / ``out``: nothing else."},"PlacementListResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"current_version_number":{"type":"integer","title":"Current Version Number","default":0},"placements":{"items":{"$ref":"#/components/schemas/PlacementOut"},"type":"array","title":"Placements","default":[]},"active_chapter_count":{"type":"integer","title":"Active Chapter Count","default":0},"active_book_count":{"type":"integer","title":"Active Book Count","default":0},"chapter_limit":{"type":"integer","title":"Chapter Limit","default":20},"book_limit":{"type":"integer","title":"Book Limit","default":60}},"type":"object","required":["chapter_id"],"title":"PlacementListResponse"},"PlacementMutationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","status"],"title":"PlacementMutationResponse","description":"Result of a lifecycle transition (create/upload/generate/approve/...)."},"PlacementOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"source_kind":{"type":"string","title":"Source Kind"},"status":{"type":"string","title":"Status"},"exact_quote":{"type":"string","title":"Exact Quote"},"prefix":{"type":"string","title":"Prefix","default":""},"suffix":{"type":"string","title":"Suffix","default":""},"approx_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approx Start"},"approx_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approx End"},"anchored_version_number":{"type":"integer","title":"Anchored Version Number","default":0},"paragraph_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paragraph Index"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"alt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Text"},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"successful_refinements_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Successful Refinements Used"},"successful_refinements_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Successful Refinements Remaining"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","chapter_id","source_kind","status","exact_quote"],"title":"PlacementOut","description":"One stored placement, returned to the reader (presign-free)."},"PlanPreset":{"properties":{"preset_code":{"type":"string","enum":["standard","easy","micro"],"title":"Preset Code"},"label":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Label"},"product_code":{"type":"string","maxLength":100,"title":"Product Code","default":"authority_book"},"package_price_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Package Price Cents"},"deposit_credit_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Deposit Credit Cents","default":0},"down_payment_cents":{"type":"integer","minimum":0.0,"title":"Down Payment Cents"},"monthly_cents":{"type":"integer","minimum":50.0,"title":"Monthly Cents"},"term_months":{"type":"integer","maximum":36.0,"minimum":1.0,"title":"Term Months"},"contract_total_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Contract Total Cents"},"audiobook_addon_cents":{"type":"integer","enum":[0,99700],"title":"Audiobook Addon Cents","default":0},"co_author_seats":{"type":"integer","maximum":3.0,"minimum":0.0,"title":"Co Author Seats","default":0},"first_payment_days":{"type":"integer","maximum":30.0,"minimum":0.0,"title":"First Payment Days","default":30},"discount_type":{"type":"string","enum":["none","ministry","veteran","general"],"title":"Discount Type","default":"none"},"discount_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Discount Description"},"waived_term_extra_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Waived Term Extra Cents","default":0},"term_extra_waiver_reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Term Extra Waiver Reason"},"warnings":{"items":{"$ref":"#/components/schemas/PlanWarning"},"type":"array","maxItems":10,"title":"Warnings"},"name":{"type":"string","maxLength":100,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Description"}},"type":"object","required":["preset_code","down_payment_cents","monthly_cents","term_months","contract_total_cents","name"],"title":"PlanPreset"},"PlanQuote":{"properties":{"preset_code":{"anyOf":[{"type":"string","enum":["standard","easy","micro","custom","affordability"]},{"type":"null"}],"title":"Preset Code"},"label":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Label"},"product_code":{"type":"string","maxLength":100,"title":"Product Code","default":"authority_book"},"package_price_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Package Price Cents"},"deposit_credit_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Deposit Credit Cents","default":0},"down_payment_cents":{"type":"integer","minimum":0.0,"title":"Down Payment Cents"},"monthly_cents":{"type":"integer","minimum":50.0,"title":"Monthly Cents"},"term_months":{"type":"integer","maximum":36.0,"minimum":1.0,"title":"Term Months"},"contract_total_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Contract Total Cents"},"audiobook_addon_cents":{"type":"integer","enum":[0,99700],"title":"Audiobook Addon Cents","default":0},"co_author_seats":{"type":"integer","maximum":3.0,"minimum":0.0,"title":"Co Author Seats","default":0},"first_payment_days":{"type":"integer","maximum":30.0,"minimum":0.0,"title":"First Payment Days","default":30},"discount_type":{"type":"string","enum":["none","ministry","veteran","general"],"title":"Discount Type","default":"none"},"discount_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Discount Description"},"waived_term_extra_cents":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Waived Term Extra Cents","default":0},"term_extra_waiver_reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Term Extra Waiver Reason"},"warnings":{"items":{"$ref":"#/components/schemas/PlanWarning"},"type":"array","maxItems":10,"title":"Warnings"}},"type":"object","required":["down_payment_cents","monthly_cents","term_months","contract_total_cents"],"title":"PlanQuote"},"PlanUpdateChange":{"properties":{"chapter":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Chapter"},"change":{"type":"string","enum":["added","renamed","moved","rescoped"],"title":"Change"},"before":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Before"},"after":{"type":"string","maxLength":200,"title":"After"},"reason":{"type":"string","maxLength":240,"title":"Reason"}},"type":"object","required":["chapter","change","after","reason"],"title":"PlanUpdateChange"},"PlanUpdateChoice":{"properties":{"proposal_id":{"type":"string","format":"uuid","title":"Proposal Id"}},"additionalProperties":false,"type":"object","required":["proposal_id"],"title":"PlanUpdateChoice","description":"The suggestion the author is answering (the id the card showed)."},"PlanUpdateChoiceResult":{"properties":{"status":{"type":"string","enum":["kept","applied"],"title":"Status"},"message":{"type":"string","maxLength":300,"title":"Message"}},"type":"object","required":["status","message"],"title":"PlanUpdateChoiceResult"},"PlanUpdateProposal":{"properties":{"proposal_id":{"type":"string","maxLength":64,"title":"Proposal Id"},"expires_at":{"type":"string","maxLength":64,"title":"Expires At"},"changes":{"items":{"$ref":"#/components/schemas/PlanUpdateChange"},"type":"array","maxItems":60,"title":"Changes"}},"type":"object","required":["proposal_id","expires_at","changes"],"title":"PlanUpdateProposal"},"PlanUpdateView":{"properties":{"proposal":{"anyOf":[{"$ref":"#/components/schemas/PlanUpdateProposal"},{"type":"null"}]}},"type":"object","title":"PlanUpdateView"},"PlanWarning":{"properties":{"code":{"type":"string","maxLength":100,"title":"Code"},"message":{"type":"string","maxLength":500,"title":"Message"}},"type":"object","required":["code","message"],"title":"PlanWarning"},"PlanningCallBooking":{"properties":{"booked":{"type":"boolean","title":"Booked","default":false},"scheduled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled At"},"display_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Time"}},"type":"object","title":"PlanningCallBooking","description":"The author's first call as the server sees it (interviews table).\n\n``booked`` is True when any author call is scheduled, running or done —\ni.e. the planning call exists. The wizard reads this instead of\nremembering a booking in client state, so a remount never forgets it."},"PlanningReviewRequest":{"properties":{"decision":{"type":"string","enum":["approve","request_changes"],"title":"Decision"},"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""},"selected_title":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Selected Title"},"framework_override":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Framework Override"}},"type":"object","required":["decision"],"title":"PlanningReviewRequest"},"PlanningRevisionEntry":{"properties":{"version":{"type":"integer","title":"Version"},"thesis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thesis"},"working_titles":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Working Titles","default":[]},"framework_primary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework Primary"},"chapters_snapshot":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Chapters Snapshot","default":[]},"triggered_by":{"type":"string","title":"Triggered By","default":""},"interview_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Id"},"changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Changed At"}},"type":"object","required":["version"],"title":"PlanningRevisionEntry","description":"A snapshot of a prior planning version."},"PlatformOfferResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"price_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Display"},"included_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Included Days"},"features":{"items":{"type":"string"},"type":"array","title":"Features","default":[]},"disclosure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disclosure"},"disclosure_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disclosure Version"},"card_on_file":{"type":"boolean","title":"Card On File","default":false},"card_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Label"},"site_live":{"type":"boolean","title":"Site Live","default":false},"included_with_book":{"type":"boolean","title":"Included With Book","default":false}},"type":"object","required":["available"],"title":"PlatformOfferResponse"},"PlatformReportBody":{"properties":{"platform_account_id":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[A-Za-z0-9_.@-]*$"},{"type":"null"}],"title":"Platform Account Id"},"reported_status":{"anyOf":[{"type":"string","enum":["not_started","submitted","pending","approved","rejected","unknown"]},{"type":"null"}],"title":"Reported Status"}},"additionalProperties":false,"type":"object","title":"PlatformReportBody"},"PlatformsBody":{"properties":{"selected":{"items":{"type":"string","enum":["jvzoo","clickbank","digistore24"]},"type":"array","maxItems":3,"title":"Selected"},"preferred":{"anyOf":[{"type":"string","enum":["jvzoo","clickbank","digistore24"]},{"type":"null"}],"title":"Preferred"}},"additionalProperties":false,"type":"object","required":["selected"],"title":"PlatformsBody"},"PlayBatchRequest":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/PlayRecipient"},"type":"array","maxItems":200,"minItems":1,"title":"Recipients"}},"additionalProperties":false,"type":"object","required":["recipients"],"title":"PlayBatchRequest"},"PlayBatchResponse":{"properties":{"campaign_key":{"type":"string","title":"Campaign Key"},"accepted":{"type":"integer","title":"Accepted"},"task_id":{"type":"string","title":"Task Id"}},"type":"object","required":["campaign_key","accepted","task_id"],"title":"PlayBatchResponse"},"PlayRecipient":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl Contact Id"},"hello":{"type":"string","maxLength":60,"minLength":3,"title":"Hello"},"link":{"type":"string","maxLength":1200,"minLength":8,"title":"Link"}},"additionalProperties":false,"type":"object","required":["email","hello","link"],"title":"PlayRecipient"},"PodcastAudioRevisionIssue":{"properties":{"reason_code":{"type":"string","enum":["pronunciation","pacing","tone","voice","content","technical","other"],"title":"Reason Code"},"notes":{"type":"string","maxLength":2000,"title":"Notes","default":""}},"type":"object","required":["reason_code"],"title":"PodcastAudioRevisionIssue","description":"One stored categorized change, including rolling v1 short-note rows."},"PodcastAuthor":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_id":{"type":"string","format":"uuid","title":"Client Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"short_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Bio"},"long_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Long Bio"},"credibility_points_json":{"items":{},"type":"array","title":"Credibility Points Json"},"prior_appearances_json":{"items":{},"type":"array","title":"Prior Appearances Json"},"prior_appearance_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prior Appearance Count"},"social_profiles_json":{"items":{},"type":"array","title":"Social Profiles Json"},"show_preferences_json":{"additionalProperties":true,"type":"object","title":"Show Preferences Json"},"approved_topics_json":{"items":{},"type":"array","title":"Approved Topics Json"},"suggested_questions_json":{"items":{},"type":"array","title":"Suggested Questions Json"},"contrarian_angles_json":{"items":{},"type":"array","title":"Contrarian Angles Json"},"personal_stories_json":{"items":{},"type":"array","title":"Personal Stories Json"},"audience_takeaways_json":{"items":{},"type":"array","title":"Audience Takeaways Json"},"off_limit_topics_json":{"items":{},"type":"array","title":"Off Limit Topics Json"},"compliance_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compliance Notes"},"media_kit_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Kit Url"},"headshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headshot Url"},"book_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Url"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"website_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Summary"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"calendar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendar Url"},"public_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Slug"},"media_kit_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Kit R2 Key"},"amazon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url"},"book_cover_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Cover R2 Key"},"form_answers_json":{"additionalProperties":true,"type":"object","title":"Form Answers Json"},"reply_mode":{"type":"string","enum":["manual_only","draft_only","auto_send_safe"],"title":"Reply Mode"},"status":{"type":"string","enum":["intake_needed","profile_ready","active","paused","completed"],"title":"Status"},"knowledge_base_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Base Id"},"booking_calendar_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Calendar Source"},"booking_calendar_ghl_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Calendar Ghl Id"},"booking_calendar_ghl_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Calendar Ghl Location Id"},"booking_calendar_instructions_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booking Calendar Instructions Sent At"},"booking_calendar_connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booking Calendar Connected At"},"booking_calendar_reminders_sent":{"type":"integer","title":"Booking Calendar Reminders Sent","default":0},"booking_calendar_last_reminder_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booking Calendar Last Reminder At"},"booking_calendar_dictate_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booking Calendar Dictate Requested At"},"auto_book_host_calendars":{"type":"boolean","title":"Auto Book Host Calendars","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","client_id","name","reply_mode","status","created_at","updated_at"],"title":"PodcastAuthor"},"PodcastAuthorCreate":{"properties":{"client_id":{"type":"string","format":"uuid","title":"Client Id"},"name":{"type":"string","maxLength":255,"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Phone"},"book_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Book Title"},"company_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Name"},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"short_bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Short Bio"},"long_bio":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Long Bio"},"credibility_points_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Credibility Points Json"},"prior_appearances_json":{"items":{"$ref":"#/components/schemas/PriorAppearance"},"type":"array","maxItems":50,"title":"Prior Appearances Json"},"prior_appearance_count":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Prior Appearance Count"},"social_profiles_json":{"items":{"$ref":"#/components/schemas/SocialProfile"},"type":"array","maxItems":15,"title":"Social Profiles Json"},"show_preferences_json":{"$ref":"#/components/schemas/ShowPreferences"},"approved_topics_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Approved Topics Json"},"suggested_questions_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Suggested Questions Json"},"contrarian_angles_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Contrarian Angles Json"},"personal_stories_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Personal Stories Json"},"audience_takeaways_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Audience Takeaways Json"},"off_limit_topics_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Off Limit Topics Json"},"compliance_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Compliance Notes"},"media_kit_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Media Kit Url"},"headshot_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Headshot Url"},"book_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Book Url"},"website_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website Url"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Linkedin Url"},"calendar_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Calendar Url"},"reply_mode":{"type":"string","enum":["manual_only","draft_only","auto_send_safe"],"title":"Reply Mode","default":"draft_only"},"status":{"type":"string","enum":["intake_needed","profile_ready","active","paused","completed"],"title":"Status","default":"intake_needed"}},"additionalProperties":false,"type":"object","required":["client_id","name"],"title":"PodcastAuthorCreate"},"PodcastAuthorUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Phone"},"book_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Book Title"},"company_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Name"},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"short_bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Short Bio"},"long_bio":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Long Bio"},"credibility_points_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Credibility Points Json"},"prior_appearances_json":{"anyOf":[{"items":{"$ref":"#/components/schemas/PriorAppearance"},"type":"array","maxItems":50},{"type":"null"}],"title":"Prior Appearances Json"},"prior_appearance_count":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Prior Appearance Count"},"social_profiles_json":{"anyOf":[{"items":{"$ref":"#/components/schemas/SocialProfile"},"type":"array","maxItems":15},{"type":"null"}],"title":"Social Profiles Json"},"show_preferences_json":{"anyOf":[{"$ref":"#/components/schemas/ShowPreferences"},{"type":"null"}]},"approved_topics_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Approved Topics Json"},"suggested_questions_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Suggested Questions Json"},"contrarian_angles_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Contrarian Angles Json"},"personal_stories_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Personal Stories Json"},"audience_takeaways_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Audience Takeaways Json"},"off_limit_topics_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Off Limit Topics Json"},"compliance_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Compliance Notes"},"media_kit_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Media Kit Url"},"headshot_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Headshot Url"},"book_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Book Url"},"website_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website Url"},"website_summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website Summary"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Linkedin Url"},"calendar_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Calendar Url"},"public_slug":{"anyOf":[{"type":"string","maxLength":80,"pattern":"^[a-z0-9][a-z0-9-]{1,78}$"},{"type":"null"}],"title":"Public Slug"},"media_kit_r2_key":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Media Kit R2 Key"},"amazon_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Amazon Url"},"book_cover_r2_key":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Book Cover R2 Key"},"reply_mode":{"anyOf":[{"type":"string","enum":["manual_only","draft_only","auto_send_safe"]},{"type":"null"}],"title":"Reply Mode"},"status":{"anyOf":[{"type":"string","enum":["intake_needed","profile_ready","active","paused","completed"]},{"type":"null"}],"title":"Status"}},"additionalProperties":false,"type":"object","title":"PodcastAuthorUpdate"},"PodcastAutoBookStatus":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"available":{"type":"boolean","title":"Available","default":false},"calendar_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendar Name"},"calendar_readable":{"type":"boolean","title":"Calendar Readable","default":false},"connected":{"type":"boolean","title":"Connected","default":false},"trusted":{"type":"boolean","title":"Trusted","default":false},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"PodcastAutoBookStatus","description":"\"Let Dictate book podcast recordings on my calendar\" (GH #13273)."},"PodcastAutoBookUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"PodcastAutoBookUpdate"},"PodcastBookingCalendarRequestResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"PodcastBookingCalendarRequestResponse"},"PodcastBookingCalendarResponse":{"properties":{"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_by_dictate":{"type":"boolean","title":"Created By Dictate","default":false},"needs_own_link":{"type":"boolean","title":"Needs Own Link","default":true},"connected":{"type":"boolean","title":"Connected","default":false},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"calendar_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendar Name"},"availability_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability Summary"},"crm_login_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Login Url"},"connection_steps":{"items":{"type":"string"},"type":"array","title":"Connection Steps"},"change_hours":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Hours"},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"},"can_request_dictate_calendar":{"type":"boolean","title":"Can Request Dictate Calendar","default":false},"auto_book":{"anyOf":[{"$ref":"#/components/schemas/PodcastAutoBookStatus"},{"type":"null"}]}},"type":"object","title":"PodcastBookingCalendarResponse","description":"The author's podcast booking link card (portal Settings)."},"PodcastCampaign":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_id":{"type":"string","format":"uuid","title":"Client Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"name":{"type":"string","title":"Name"},"tier":{"type":"string","enum":["starter","growth","concierge"],"title":"Tier"},"target_pitch_count":{"type":"integer","title":"Target Pitch Count"},"qualified_pitch_count":{"type":"integer","title":"Qualified Pitch Count","default":0},"smartlead_campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Campaign Id"},"smartlead_campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Campaign Name"},"smartlead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Status"},"campaign_template_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Template Key"},"sender_pool_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Pool Key"},"send_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Send Start Date"},"send_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Send End Date"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"enable_apollo_enrichment":{"type":"boolean","title":"Enable Apollo Enrichment","default":false},"enable_versium_enrichment":{"type":"boolean","title":"Enable Versium Enrichment","default":false},"enable_leadmagic_enrichment":{"type":"boolean","title":"Enable Leadmagic Enrichment","default":false},"max_enrichment_attempts_per_lead":{"type":"integer","title":"Max Enrichment Attempts Per Lead","default":1},"max_enrichment_cost_per_campaign":{"type":"number","title":"Max Enrichment Cost Per Campaign","default":0},"enrich_missing_email_only":{"type":"boolean","title":"Enrich Missing Email Only","default":true},"enrich_invalid_email_only":{"type":"boolean","title":"Enrich Invalid Email Only","default":false},"enrichment_cost_spent":{"type":"number","title":"Enrichment Cost Spent","default":0},"latest_episode_max_age_days":{"type":"integer","title":"Latest Episode Max Age Days","default":180},"min_episode_count":{"type":"integer","title":"Min Episode Count","default":10},"require_has_guest_interviews":{"type":"boolean","title":"Require Has Guest Interviews","default":true},"allowed_languages_json":{"items":{},"type":"array","title":"Allowed Languages Json"},"allowed_countries_json":{"items":{},"type":"array","title":"Allowed Countries Json"},"min_fit_score":{"type":"integer","title":"Min Fit Score","default":60},"exclude_explicit":{"type":"boolean","title":"Exclude Explicit","default":false},"pitch_mode":{"type":"string","title":"Pitch Mode","default":"persona"},"autopilot_enabled":{"type":"boolean","title":"Autopilot Enabled","default":false},"autopilot_mode":{"type":"string","title":"Autopilot Mode","default":"review"},"auto_approve_min_fit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Approve Min Fit"},"monthly_pitch_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Pitch Target"},"autopilot_activation_status":{"type":"string","title":"Autopilot Activation Status","default":"inactive"},"status":{"type":"string","enum":["draft","awaiting_author_approval","intake_needed","author_profile_ready","researching","leads_imported","leads_approved","loaded_to_smartlead","sending","reply_triage","paused","completed","canceled","failed"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","client_id","author_id","name","tier","target_pitch_count","status","created_at","updated_at"],"title":"PodcastCampaign"},"PodcastCampaignCreate":{"properties":{"client_id":{"type":"string","format":"uuid","title":"Client Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"name":{"type":"string","maxLength":255,"title":"Name"},"tier":{"type":"string","enum":["starter","growth","concierge"],"title":"Tier","default":"starter"},"target_pitch_count":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Target Pitch Count","default":10},"campaign_template_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Campaign Template Key"},"sender_pool_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Sender Pool Key"},"send_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Send Start Date"},"send_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Send End Date"},"timezone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Timezone"},"enable_apollo_enrichment":{"type":"boolean","title":"Enable Apollo Enrichment","default":false},"enable_versium_enrichment":{"type":"boolean","title":"Enable Versium Enrichment","default":false},"enable_leadmagic_enrichment":{"type":"boolean","title":"Enable Leadmagic Enrichment","default":false},"max_enrichment_attempts_per_lead":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Max Enrichment Attempts Per Lead","default":1},"max_enrichment_cost_per_campaign":{"type":"number","maximum":100000.0,"minimum":0.0,"title":"Max Enrichment Cost Per Campaign","default":0},"enrich_missing_email_only":{"type":"boolean","title":"Enrich Missing Email Only","default":true},"enrich_invalid_email_only":{"type":"boolean","title":"Enrich Invalid Email Only","default":false},"latest_episode_max_age_days":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Latest Episode Max Age Days","default":0},"min_episode_count":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Min Episode Count","default":0},"require_has_guest_interviews":{"type":"boolean","title":"Require Has Guest Interviews","default":false},"allowed_languages_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Allowed Languages Json"},"allowed_countries_json":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100,"title":"Allowed Countries Json"},"min_fit_score":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Min Fit Score","default":50},"exclude_explicit":{"type":"boolean","title":"Exclude Explicit","default":false},"pitch_mode":{"type":"string","enum":["persona","forward_from_author"],"title":"Pitch Mode","default":"persona"},"autopilot_enabled":{"type":"boolean","title":"Autopilot Enabled","default":false},"autopilot_mode":{"type":"string","enum":["review","auto","threshold"],"title":"Autopilot Mode","default":"review"},"auto_approve_min_fit":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Auto Approve Min Fit","default":50},"monthly_pitch_target":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Monthly Pitch Target"},"status":{"type":"string","enum":["draft","awaiting_author_approval","intake_needed","author_profile_ready","researching","leads_imported","leads_approved","loaded_to_smartlead","sending","reply_triage","paused","completed","canceled","failed"],"title":"Status","default":"draft"}},"additionalProperties":false,"type":"object","required":["client_id","author_id","name"],"title":"PodcastCampaignCreate"},"PodcastCampaignUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"tier":{"anyOf":[{"type":"string","enum":["starter","growth","concierge"]},{"type":"null"}],"title":"Tier"},"target_pitch_count":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Target Pitch Count"},"smartlead_campaign_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Smartlead Campaign Id"},"smartlead_campaign_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Smartlead Campaign Name"},"smartlead_status":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Smartlead Status"},"campaign_template_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Campaign Template Key"},"sender_pool_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Sender Pool Key"},"send_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Send Start Date"},"send_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Send End Date"},"timezone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Timezone"},"enable_apollo_enrichment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Apollo Enrichment"},"enable_versium_enrichment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Versium Enrichment"},"enable_leadmagic_enrichment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Leadmagic Enrichment"},"max_enrichment_attempts_per_lead":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Max Enrichment Attempts Per Lead"},"max_enrichment_cost_per_campaign":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Max Enrichment Cost Per Campaign"},"enrich_missing_email_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enrich Missing Email Only"},"enrich_invalid_email_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enrich Invalid Email Only"},"latest_episode_max_age_days":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Latest Episode Max Age Days"},"min_episode_count":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Min Episode Count"},"require_has_guest_interviews":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Has Guest Interviews"},"allowed_languages_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Allowed Languages Json"},"allowed_countries_json":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":100},{"type":"null"}],"title":"Allowed Countries Json"},"min_fit_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Min Fit Score"},"exclude_explicit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exclude Explicit"},"pitch_mode":{"anyOf":[{"type":"string","enum":["persona","forward_from_author"]},{"type":"null"}],"title":"Pitch Mode"},"autopilot_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autopilot Enabled"},"autopilot_mode":{"anyOf":[{"type":"string","enum":["review","auto","threshold"]},{"type":"null"}],"title":"Autopilot Mode"},"auto_approve_min_fit":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Auto Approve Min Fit"},"monthly_pitch_target":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Monthly Pitch Target"},"autopilot_activation_status":{"anyOf":[{"type":"string","enum":["inactive","active","capacity_pending"]},{"type":"null"}],"title":"Autopilot Activation Status"},"qualified_pitch_count":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Qualified Pitch Count"},"status":{"anyOf":[{"type":"string","enum":["draft","awaiting_author_approval","intake_needed","author_profile_ready","researching","leads_imported","leads_approved","loaded_to_smartlead","sending","reply_triage","paused","completed","canceled","failed"]},{"type":"null"}],"title":"Status"}},"additionalProperties":false,"type":"object","title":"PodcastCampaignUpdate"},"PodcastClient":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"name":{"type":"string","title":"Name"},"primary_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact Name"},"primary_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact Email"},"tier":{"type":"string","enum":["starter","growth","concierge"],"title":"Tier"},"status":{"type":"string","enum":["onboarding","active","paused","completed","canceled"],"title":"Status"},"ghl_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Location Id"},"ghl_app_domain":{"type":"string","title":"Ghl App Domain","default":"podcast_crm"},"ghl_pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Pipeline Id"},"ghl_task_owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Task Owner Id"},"ghl_stage_map_json":{"additionalProperties":true,"type":"object","title":"Ghl Stage Map Json"},"notification_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Email"},"notification_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Phone"},"slack_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Channel Id"},"default_calendar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Calendar Url"},"listener_offer_setup_gate":{"type":"boolean","title":"Listener Offer Setup Gate","default":false},"enrichment_month_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrichment Month Key"},"enrichment_month_spent":{"type":"number","title":"Enrichment Month Spent","default":0},"enrichment_month_allowance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Enrichment Month Allowance"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","tier","status","created_at","updated_at"],"title":"PodcastClient"},"PodcastClientCreate":{"properties":{"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"name":{"type":"string","maxLength":255,"title":"Name"},"primary_contact_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Primary Contact Name"},"primary_contact_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Primary Contact Email"},"tier":{"type":"string","enum":["starter","growth","concierge"],"title":"Tier","default":"starter"},"status":{"type":"string","enum":["onboarding","active","paused","completed","canceled"],"title":"Status","default":"onboarding"},"ghl_location_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Location Id"},"ghl_app_domain":{"type":"string","enum":["podcast_crm","dictate_crm","client_publishing"],"title":"Ghl App Domain","default":"podcast_crm"},"ghl_pipeline_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Pipeline Id"},"ghl_task_owner_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Task Owner Id"},"ghl_stage_map_json":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","maxProperties":40,"title":"Ghl Stage Map Json"},"notification_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Notification Email"},"notification_phone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Notification Phone"},"slack_channel_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slack Channel Id"},"default_calendar_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Default Calendar Url"}},"additionalProperties":false,"type":"object","required":["name"],"title":"PodcastClientCreate"},"PodcastClientUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"primary_contact_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Primary Contact Name"},"primary_contact_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Primary Contact Email"},"tier":{"anyOf":[{"type":"string","enum":["starter","growth","concierge"]},{"type":"null"}],"title":"Tier"},"status":{"anyOf":[{"type":"string","enum":["onboarding","active","paused","completed","canceled"]},{"type":"null"}],"title":"Status"},"ghl_location_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Location Id"},"ghl_app_domain":{"anyOf":[{"type":"string","enum":["podcast_crm","dictate_crm","client_publishing"]},{"type":"null"}],"title":"Ghl App Domain"},"ghl_pipeline_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Pipeline Id"},"ghl_task_owner_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Task Owner Id"},"ghl_stage_map_json":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","maxProperties":40},{"type":"null"}],"title":"Ghl Stage Map Json"},"notification_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Notification Email"},"notification_phone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Notification Phone"},"slack_channel_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slack Channel Id"},"default_calendar_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Default Calendar Url"}},"additionalProperties":false,"type":"object","title":"PodcastClientUpdate"},"PodcastConceptSelection":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Id"},"title":{"type":"string","maxLength":240,"minLength":1,"title":"Title"},"description":{"type":"string","maxLength":12000,"minLength":1,"title":"Description"},"subtitle":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Subtitle"},"cover_style_id":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Cover Style Id"},"cover_r2_key":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Cover R2 Key"},"cover_brand_snapshot_hash":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Cover Brand Snapshot Hash"},"hosting_description":{"anyOf":[{"type":"string","maxLength":2200},{"type":"null"}],"title":"Hosting Description"},"cover_selection_source":{"anyOf":[{"type":"string","enum":["auto","author","author_prepared_reset"]},{"type":"null"}],"title":"Cover Selection Source"},"source":{"type":"string","enum":["recommended","alternate","author_edit"],"title":"Source"},"intro_package":{"anyOf":[{"$ref":"#/components/schemas/PodcastIntroPackage"},{"type":"null"}]}},"type":"object","required":["id","title","description","cover_style_id","source"],"title":"PodcastConceptSelection","description":"Bounded show concept shown as a prepared, editable author choice."},"PodcastCoverRefinementRequest":{"properties":{"round_id":{"type":"string","format":"uuid","title":"Round Id"},"image_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Image Sha256"},"expected_current_cover_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Current Cover Sha256"}},"additionalProperties":false,"type":"object","required":["round_id","image_sha256","expected_current_cover_sha256"],"title":"PodcastCoverRefinementRequest"},"PodcastCoverRoundRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"concept_id":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Concept Id"},"prompt":{"type":"string","maxLength":500,"title":"Prompt","default":""},"expected_setup_options_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Setup Options Hash"}},"additionalProperties":false,"type":"object","required":["request_id","concept_id","expected_setup_options_hash"],"title":"PodcastCoverRoundRequest"},"PodcastCoverSelectionRequest":{"properties":{"concept_id":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Concept Id"},"cover_image_sha256":{"anyOf":[{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Cover Image Sha256"},"reset_to_prepared":{"type":"boolean","title":"Reset To Prepared","default":false},"expected_setup_options_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Setup Options Hash"}},"additionalProperties":false,"type":"object","required":["concept_id","expected_setup_options_hash"],"title":"PodcastCoverSelectionRequest"},"PodcastEpisodePlan":{"properties":{"episode_number":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Episode Number"},"title":{"type":"string","maxLength":240,"minLength":1,"title":"Title"},"hook":{"type":"string","maxLength":2000,"minLength":1,"title":"Hook"},"segments":{"items":{"$ref":"#/components/schemas/PodcastPlanSegment"},"type":"array","maxItems":3,"minItems":2,"title":"Segments"},"takeaway":{"type":"string","maxLength":2000,"minLength":1,"title":"Takeaway"},"cta":{"type":"string","maxLength":1200,"minLength":1,"title":"Cta"}},"type":"object","required":["episode_number","title","hook","segments","takeaway","cta"],"title":"PodcastEpisodePlan"},"PodcastEpisodeScript":{"properties":{"quality_contract_version":{"type":"integer","enum":[1,2,3,4],"title":"Quality Contract Version","default":1},"cold_open":{"type":"string","maxLength":5000,"minLength":1,"title":"Cold Open"},"announcer_intro":{"anyOf":[{"type":"string","maxLength":1200},{"type":"null"}],"title":"Announcer Intro"},"segments":{"items":{"$ref":"#/components/schemas/PodcastScriptSegment"},"type":"array","maxItems":8,"minItems":2,"title":"Segments"},"promo_blocks":{"items":{"$ref":"#/components/schemas/PodcastPromoBlock"},"type":"array","maxItems":1,"title":"Promo Blocks"},"takeaway":{"type":"string","maxLength":5000,"minLength":1,"title":"Takeaway"},"cta":{"type":"string","maxLength":3000,"minLength":1,"title":"Cta"},"spoken_offer_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Spoken Offer Url"},"next_episode_teaser":{"anyOf":[{"type":"string","maxLength":2400},{"type":"null"}],"title":"Next Episode Teaser"},"announcer_outro":{"anyOf":[{"type":"string","maxLength":1200},{"type":"null"}],"title":"Announcer Outro"},"spoken_segment_titles":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spoken Segment Titles"},"source_mode":{"type":"string","enum":["transcript","manuscript","mixed"],"title":"Source Mode"},"estimated_word_count":{"type":"integer","maximum":6000.0,"minimum":50.0,"title":"Estimated Word Count"}},"type":"object","required":["cold_open","segments","takeaway","cta","source_mode","estimated_word_count"],"title":"PodcastEpisodeScript","description":"Author-reviewable, source-grounded narration contract."},"PodcastEventLog":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entity Id"},"client_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Id"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"},"event_type":{"type":"string","title":"Event Type"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"metadata_json":{"additionalProperties":true,"type":"object","title":"Metadata Json"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","entity_type","event_type","created_at"],"title":"PodcastEventLog"},"PodcastImportBatch":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_id":{"type":"string","format":"uuid","title":"Client Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"campaign_id":{"type":"string","format":"uuid","title":"Campaign Id"},"source_type":{"type":"string","enum":["csv","listennotes_dataset","listennotes_api","apollo","versium","manual"],"title":"Source Type"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"search_offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Search Offset"},"row_count":{"type":"integer","title":"Row Count","default":0},"created_count":{"type":"integer","title":"Created Count","default":0},"updated_count":{"type":"integer","title":"Updated Count","default":0},"skipped_count":{"type":"integer","title":"Skipped Count","default":0},"error_count":{"type":"integer","title":"Error Count","default":0},"status":{"type":"string","enum":["pending","processing","completed","failed"],"title":"Status","default":"pending"},"error_log_json":{"items":{},"type":"array","title":"Error Log Json"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","client_id","campaign_id","source_type","created_at","updated_at"],"title":"PodcastImportBatch"},"PodcastIntroPackage":{"properties":{"music_style_id":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Music Style Id"},"announcer_gender":{"type":"string","enum":["male","female"],"title":"Announcer Gender"},"voice_option_id":{"anyOf":[{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$"},{"type":"null"}],"title":"Voice Option Id"},"announcer_intro":{"type":"string","maxLength":1200,"minLength":1,"title":"Announcer Intro"},"outro_music_style_id":{"anyOf":[{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$"},{"type":"null"}],"title":"Outro Music Style Id"},"announcer_outro":{"anyOf":[{"type":"string","maxLength":1200},{"type":"null"}],"title":"Announcer Outro"},"pronunciations":{"items":{"$ref":"#/components/schemas/PodcastPronunciationRule"},"type":"array","maxItems":100,"title":"Pronunciations"}},"type":"object","required":["music_style_id","announcer_gender","announcer_intro"],"title":"PodcastIntroPackage","description":"Exact branded opening package approved with the show concept."},"PodcastLaunchIntakeRequest":{"properties":{"contact_email":{"type":"string","maxLength":254,"minLength":3,"title":"Contact Email"},"apple_invite_first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Apple Invite First Name"},"apple_invite_last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Apple Invite Last Name"},"apple_invite_email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Apple Invite Email"}},"additionalProperties":false,"type":"object","required":["contact_email"],"title":"PodcastLaunchIntakeRequest","description":"Strict author request body. All three Apple fields, or none."},"PodcastLead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_id":{"type":"string","format":"uuid","title":"Client Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"campaign_id":{"type":"string","format":"uuid","title":"Campaign Id"},"podcast_name":{"type":"string","title":"Podcast Name"},"podcast_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Podcast Description"},"podcast_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Podcast Website"},"podcast_rss_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Podcast Rss Url"},"listennotes_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listennotes Id"},"listennotes_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listennotes Url"},"artwork_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artwork Url"},"listen_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Listen Score"},"listen_score_global_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Listen Score Global Rank"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"genres_json":{"items":{},"type":"array","title":"Genres Json"},"latest_episode_pub_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Episode Pub Date"},"earliest_episode_pub_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Earliest Episode Pub Date"},"episode_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Episode Count"},"update_frequency_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Update Frequency Hours"},"has_guest_interviews":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Guest Interviews"},"has_sponsors":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Sponsors"},"is_video_podcast":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Video Podcast"},"explicit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Explicit"},"host_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Name"},"publisher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher Name"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Role"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"contact_linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Linkedin"},"contact_twitter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Twitter"},"contact_instagram":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Instagram"},"contact_youtube":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Youtube"},"contact_source":{"anyOf":[{"type":"string","enum":["listennotes","apollo","versium","manual","website","rss","other"]},{"type":"null"}],"title":"Contact Source"},"contact_form_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Form Url"},"email_validation_status":{"type":"string","enum":["unknown","valid","invalid","risky","catch_all","bounced","unsubscribed"],"title":"Email Validation Status","default":"unknown"},"fit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fit Score"},"fit_score_breakdown_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fit Score Breakdown Json"},"personalized_first_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personalized First Line"},"recent_episode_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recent Episode Title"},"recent_episode_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recent Episode Url"},"recent_episode_hook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recent Episode Hook"},"pitch_angle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pitch Angle"},"suggested_topics_json":{"items":{},"type":"array","title":"Suggested Topics Json"},"why_this_guest_fits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why This Guest Fits"},"research_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Research Notes"},"approved":{"type":"boolean","title":"Approved","default":false},"generated_copy_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Generated Copy Json"},"copy_status":{"type":"string","enum":["none","generated","compliance_failed","pushed"],"title":"Copy Status","default":"none"},"copy_attempt_count":{"type":"integer","minimum":0.0,"title":"Copy Attempt Count","default":0},"copy_failure_details":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Copy Failure Details"},"copy_failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Copy Failed At"},"smartlead_lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Lead Id"},"smartlead_campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Campaign Id"},"smartlead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Status"},"smartlead_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Category"},"smartlead_last_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Smartlead Last Event At"},"ghl_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Contact Id"},"ghl_opportunity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Opportunity Id"},"ghl_stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Stage Id"},"pipeline_status":{"type":"string","enum":["identified","contact_found","queued","outreach_sent","follow_up_running","replied_needs_triage","interested","info_sent","scheduling","booked","completed","published","closed_not_fit","closed_no_response","unsubscribed","bounced","needs_review","author_passed"],"title":"Pipeline Status","default":"identified"},"last_reply_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reply At"},"last_reply_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reply Classification"},"last_reply_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Reply Confidence"},"last_reply_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reply Summary"},"next_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Action"},"booked_for_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booked For At"},"recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Url"},"ooo_followup_due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ooo Followup Due At"},"ooo_followup_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ooo Followup Sent At"},"stall_nudge_count":{"type":"integer","title":"Stall Nudge Count","default":0},"last_stall_nudge_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Stall Nudge At"},"loaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Loaded 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","client_id","author_id","campaign_id","podcast_name","created_at","updated_at"],"title":"PodcastLead"},"PodcastListenerOfferRequest":{"properties":{"offer_name":{"type":"string","maxLength":255,"minLength":1,"title":"Offer Name"},"offer_description":{"type":"string","maxLength":4000,"minLength":1,"title":"Offer Description"},"audience_problem":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Audience Problem"},"promised_outcome":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Promised Outcome"},"cta_type":{"type":"string","enum":["lead_magnet","calendar","quiz","external"],"title":"Cta Type"},"cta_label":{"type":"string","maxLength":120,"minLength":1,"title":"Cta Label"},"destination_url":{"type":"string","maxLength":2000,"title":"Destination Url"},"calendar_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Calendar Id"},"video_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Video Url"},"spoken_pitch":{"type":"string","maxLength":2000,"minLength":1,"title":"Spoken Pitch"}},"additionalProperties":false,"type":"object","required":["offer_name","offer_description","cta_type","cta_label","destination_url","spoken_pitch"],"title":"PodcastListenerOfferRequest","description":"Author-facing full replacement for one listener offer."},"PodcastListenerOfferView":{"properties":{"offer_name":{"type":"string","maxLength":255,"minLength":1,"title":"Offer Name"},"offer_description":{"type":"string","maxLength":4000,"minLength":1,"title":"Offer Description"},"audience_problem":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Audience Problem"},"promised_outcome":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Promised Outcome"},"cta_type":{"type":"string","enum":["lead_magnet","calendar","quiz","external"],"title":"Cta Type"},"cta_label":{"type":"string","maxLength":120,"minLength":1,"title":"Cta Label"},"destination_url":{"type":"string","maxLength":2000,"title":"Destination Url"},"calendar_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Calendar Id"},"video_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Video Url"},"spoken_pitch":{"type":"string","maxLength":2000,"minLength":1,"title":"Spoken Pitch"}},"additionalProperties":false,"type":"object","required":["offer_name","offer_description","cta_type","cta_label","destination_url","spoken_pitch"],"title":"PodcastListenerOfferView","description":"Portal-safe offer shape without internal tenant identifiers."},"PodcastOfferOptInRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"consent":{"type":"boolean","title":"Consent"},"website":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Website"}},"additionalProperties":false,"type":"object","required":["email","consent"],"title":"PodcastOfferOptInRequest"},"PodcastOfferOptInResponse":{"properties":{"status":{"type":"string","const":"accepted","title":"Status"},"destination_url":{"type":"string","title":"Destination Url"}},"additionalProperties":false,"type":"object","required":["status","destination_url"],"title":"PodcastOfferOptInResponse"},"PodcastOfferPageSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"podcast_name":{"type":"string","title":"Podcast Name"},"canonical_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Slug"},"live_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Live Url"},"status":{"type":"string","enum":["needs_setup","queued","published","verified","verification_failed","retired"],"title":"Status"},"email_status":{"type":"string","enum":["pending","manual","draft","queued","sending","sent","failed","suppressed"],"title":"Email Status"},"email_draft":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Draft"},"view_count":{"type":"integer","title":"View Count","default":0},"opt_in_count":{"type":"integer","title":"Opt In Count","default":0},"appointment_count":{"type":"integer","title":"Appointment Count","default":0}},"additionalProperties":false,"type":"object","required":["id","lead_id","podcast_name","status","email_status"],"title":"PodcastOfferPageSummary"},"PodcastOfferPortalResponse":{"properties":{"configured":{"type":"boolean","title":"Configured"},"offer":{"anyOf":[{"$ref":"#/components/schemas/PodcastListenerOfferView"},{"type":"null"}]},"pages":{"items":{"$ref":"#/components/schemas/PodcastOfferPageSummary"},"type":"array","title":"Pages"}},"additionalProperties":false,"type":"object","required":["configured"],"title":"PodcastOfferPortalResponse"},"PodcastOfferSelection":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Id"},"label":{"type":"string","maxLength":160,"minLength":1,"title":"Label"},"kind":{"type":"string","enum":["book","resource","author_site","custom"],"title":"Kind"},"headline":{"type":"string","maxLength":300,"minLength":1,"title":"Headline"},"spoken_midroll":{"type":"string","maxLength":1200,"minLength":1,"title":"Spoken Midroll"},"spoken_cta":{"type":"string","maxLength":1200,"minLength":1,"title":"Spoken Cta"},"destination_url":{"type":"string","maxLength":2048,"minLength":8,"title":"Destination Url"},"destination_label":{"type":"string","maxLength":240,"minLength":1,"title":"Destination Label"},"source":{"type":"string","enum":["stored_book_link","stored_resource","author_site","author_edit"],"title":"Source"}},"type":"object","required":["id","label","kind","headline","spoken_midroll","spoken_cta","destination_url","destination_label","source"],"title":"PodcastOfferSelection","description":"Exact internal promotion approved before a script is generated."},"PodcastOfferSlugRequest":{"properties":{"canonical_slug":{"type":"string","maxLength":63,"minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,62}$","title":"Canonical Slug"}},"additionalProperties":false,"type":"object","required":["canonical_slug"],"title":"PodcastOfferSlugRequest"},"PodcastOutlineReplacementRequest":{"properties":{"expected_plan_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Plan Hash"},"expected_setup_options_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Setup Options Hash"},"plan":{"$ref":"#/components/schemas/PodcastSeasonPlan"},"review_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Review Round Id"},"expected_review_output_hash":{"anyOf":[{"type":"string","maxLength":64,"minLength":64},{"type":"null"}],"title":"Expected Review Output Hash"}},"additionalProperties":false,"type":"object","required":["expected_plan_hash","expected_setup_options_hash","plan"],"title":"PodcastOutlineReplacementRequest"},"PodcastPlanSegment":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"angle":{"type":"string","maxLength":2000,"minLength":1,"title":"Angle"},"source_references":{"items":{"$ref":"#/components/schemas/PodcastSourceReference"},"type":"array","maxItems":12,"minItems":1,"title":"Source References"}},"type":"object","required":["title","angle"],"title":"PodcastPlanSegment"},"PodcastPromoBlock":{"properties":{"placement":{"type":"string","const":"midroll","title":"Placement","default":"midroll"},"after_segment":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"After Segment","default":1},"offer_id":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Offer Id"},"spoken_text":{"type":"string","maxLength":1200,"minLength":1,"title":"Spoken Text"},"destination_url":{"type":"string","maxLength":2048,"minLength":8,"title":"Destination Url"}},"type":"object","required":["offer_id","spoken_text","destination_url"],"title":"PodcastPromoBlock","description":"One author-approved internal promotion inserted deterministically."},"PodcastPronunciationRule":{"properties":{"term":{"type":"string","maxLength":160,"minLength":1,"title":"Term"},"sounds_like":{"type":"string","maxLength":200,"minLength":1,"title":"Sounds Like"}},"type":"object","required":["term","sounds_like"],"title":"PodcastPronunciationRule","description":"Author-reviewed spoken alias without changing canonical written copy."},"PodcastReply":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"},"podcast_lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Podcast Lead Id"},"idempotency_key":{"type":"string","title":"Idempotency Key"},"routing_resolved":{"type":"boolean","title":"Routing Resolved","default":false},"routing_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Method"},"smartlead_campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Campaign Id"},"smartlead_lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Lead Id"},"smartlead_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smartlead Event Id"},"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"},"reply_body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Body Text"},"reply_body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Body Html"},"thread_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Thread Json"},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received At"},"classification":{"anyOf":[{"type":"string","enum":["interested","wants_more_info","wants_topics","wants_calendar","paid_guest_opportunity","not_interested","wrong_person","out_of_office","unsubscribe","bounce","angry_or_sensitive","ambiguous","other"]},{"type":"null"}],"title":"Classification"},"classification_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Classification Confidence"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"ai_recommended_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Recommended Action"},"ai_draft_reply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Draft Reply"},"ai_policy_decision":{"anyOf":[{"type":"string","enum":["do_not_reply","draft_only","safe_to_auto_send","manual_review_required"]},{"type":"null"}],"title":"Ai Policy Decision"},"classification_audit_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Classification Audit Json"},"auto_send_status":{"type":"string","enum":["none","sending","sent","skipped_gated","failed"],"title":"Auto Send Status","default":"none"},"auto_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Auto Sent At"},"manual_send_status":{"type":"string","enum":["none","queued","sending","sent","blocked","failed"],"title":"Manual Send Status","default":"none"},"manual_reply_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Reply Text"},"manual_replied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Manual Replied At"},"manual_replied_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Replied By"},"manual_send_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Send Error"},"ghl_sync_status":{"type":"string","enum":["pending","processing","success","failed","retrying","manual_review_required","skipped"],"title":"Ghl Sync Status","default":"pending"},"ghl_sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Sync Error"},"notification_status":{"type":"string","title":"Notification Status","default":"none"},"auto_send_block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Send Block Reason"},"auto_send_gave_up_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Auto Send Gave Up At"},"needs_time_confirmation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Time Confirmation"},"host_proposed_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Proposed Time"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed 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","idempotency_key","created_at","updated_at"],"title":"PodcastReply"},"PodcastReviewRoundRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"kind":{"type":"string","enum":["direction","outline"],"title":"Kind"},"prompt":{"type":"string","maxLength":1000,"title":"Prompt","default":""},"expected_plan_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Plan Hash"},"expected_setup_options_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Setup Options Hash"}},"additionalProperties":false,"type":"object","required":["request_id","kind","expected_plan_hash","expected_setup_options_hash"],"title":"PodcastReviewRoundRequest"},"PodcastScriptSegment":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"narration":{"type":"string","maxLength":16000,"minLength":1,"title":"Narration"},"source_references":{"items":{"$ref":"#/components/schemas/PodcastSourceReference"},"type":"array","maxItems":16,"minItems":1,"title":"Source References"}},"type":"object","required":["title","narration"],"title":"PodcastScriptSegment"},"PodcastSeasonPlan":{"properties":{"season_title":{"type":"string","maxLength":240,"minLength":1,"title":"Season Title"},"season_description":{"type":"string","maxLength":12000,"minLength":1,"title":"Season Description"},"episodes":{"items":{"$ref":"#/components/schemas/PodcastEpisodePlan"},"type":"array","maxItems":12,"minItems":8,"title":"Episodes"},"show_directions":{"anyOf":[{"$ref":"#/components/schemas/PodcastSeasonShowDirections"},{"type":"null"}]},"hosting_category":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Hosting Category"}},"type":"object","required":["season_title","season_description","episodes"],"title":"PodcastSeasonPlan"},"PodcastSeasonPlanChangeRequest":{"properties":{"note":{"type":"string","maxLength":2000,"minLength":1,"title":"Note"}},"additionalProperties":false,"type":"object","required":["note"],"title":"PodcastSeasonPlanChangeRequest","description":"The author's own words about what should change before outreach starts."},"PodcastSeasonPlanChangeState":{"properties":{"state":{"type":"string","title":"State"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"changed":{"items":{"type":"string"},"type":"array","title":"Changed"},"unmapped":{"items":{"type":"string"},"type":"array","title":"Unmapped"},"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At"}},"additionalProperties":false,"type":"object","required":["state"],"title":"PodcastSeasonPlanChangeState","description":"Where the author's latest change request stands (AI edit, 2026-11-12)."},"PodcastSeasonPlanDecisionResponse":{"properties":{"campaign_id":{"type":"string","format":"uuid","title":"Campaign Id"},"status":{"type":"string","title":"Status"},"campaign_status":{"type":"string","title":"Campaign Status"},"ticket_filed":{"type":"boolean","title":"Ticket Filed","default":false},"upstream_paused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Upstream Paused"},"upstream_started":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Upstream Started"}},"additionalProperties":false,"type":"object","required":["campaign_id","status","campaign_status"],"title":"PodcastSeasonPlanDecisionResponse"},"PodcastSeasonPlanResponse":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"campaign_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"awaiting_approval":{"type":"boolean","title":"Awaiting Approval","default":false},"paused":{"type":"boolean","title":"Paused","default":false},"awaiting_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awaiting Since"},"monthly_pitch_target":{"type":"integer","title":"Monthly Pitch Target","default":0},"total_pitch_target":{"type":"integer","title":"Total Pitch Target","default":0},"months":{"type":"integer","title":"Months","default":0},"send_start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send Start Date"},"send_end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send End Date"},"author_name":{"type":"string","title":"Author Name","default":""},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics"},"angles":{"items":{"type":"string"},"type":"array","title":"Angles"},"takeaways":{"items":{"type":"string"},"type":"array","title":"Takeaways"},"media_kit_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Kit Url"},"show_size_preference":{"type":"string","title":"Show Size Preference","default":"any"},"preferred_show_types":{"items":{"type":"string"},"type":"array","title":"Preferred Show Types"},"dream_shows":{"items":{"type":"string"},"type":"array","title":"Dream Shows"},"avoid_shows":{"items":{"type":"string"},"type":"array","title":"Avoid Shows"},"target_listener_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Listener Profile"},"sample_pitch_subject":{"type":"string","title":"Sample Pitch Subject","default":""},"sample_pitch_body":{"type":"string","title":"Sample Pitch Body","default":""},"change_request":{"anyOf":[{"$ref":"#/components/schemas/PodcastSeasonPlanChangeState"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"PodcastSeasonPlanResponse","description":"The plan the author is approving, plus what they can do about it."},"PodcastSeasonShowDirections":{"properties":{"author_led":{"anyOf":[{"$ref":"#/components/schemas/PodcastShowDirection"},{"type":"null"}]},"topic_led":{"anyOf":[{"$ref":"#/components/schemas/PodcastShowDirection"},{"type":"null"}]},"book_companion":{"anyOf":[{"$ref":"#/components/schemas/PodcastShowDirection"},{"type":"null"}]}},"type":"object","title":"PodcastSeasonShowDirections","description":"Strategically different show directions from the planning call.\n\nSlots are optional so one unusable slot can fall back to its deterministic\ncard without discarding the others. Distinctness rejects only genuine title\ncollisions — shared book vocabulary across descriptions is expected and\nmust never sink the set."},"PodcastShowDirection":{"properties":{"title":{"type":"string","maxLength":240,"minLength":3,"title":"Title"},"description":{"type":"string","maxLength":1200,"minLength":40,"title":"Description"},"subtitle":{"anyOf":[{"type":"string","maxLength":240,"minLength":3},{"type":"null"}],"title":"Subtitle"},"hosting_description":{"anyOf":[{"type":"string","maxLength":2200,"minLength":120},{"type":"null"}],"title":"Hosting Description"},"primary_keyword":{"anyOf":[{"type":"string","maxLength":60,"minLength":2},{"type":"null"}],"title":"Primary Keyword"}},"type":"object","required":["title","description"],"title":"PodcastShowDirection","description":"One proposed show direction the author can pick during setup review.\n\nMinimum bounds are deliberately forgiving: this is author-review copy with\ndeterministic fallbacks, and an over-strict bound once silently discarded\nevery AI direction set (the model undershot a 400-character floor), leaving\nauthors staring at template cards. Salvage lives in\n``salvage_show_directions``; these bounds only reject truly unusable data."},"PodcastSourceReference":{"properties":{"source_type":{"type":"string","enum":["transcript","manuscript"],"title":"Source Type"},"source_id":{"type":"string","maxLength":200,"minLength":1,"title":"Source Id"},"label":{"type":"string","maxLength":300,"minLength":1,"title":"Label"},"excerpt":{"type":"string","maxLength":1000,"minLength":1,"title":"Excerpt"}},"type":"object","required":["source_type","source_id","label","excerpt"],"title":"PodcastSourceReference","description":"One verifiable source used for a plan/script claim."},"PodcastTourApprovalDecisionRequest":{"properties":{"approved":{"type":"boolean","title":"Approved"}},"additionalProperties":false,"type":"object","required":["approved"],"title":"PodcastTourApprovalDecisionRequest"},"PodcastTourApprovalDecisionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"updated":{"type":"boolean","title":"Updated"}},"additionalProperties":false,"type":"object","required":["id","status","updated"],"title":"PodcastTourApprovalDecisionResponse"},"PodcastTourApprovalItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"podcast_name":{"type":"string","title":"Podcast Name"},"host_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Name"},"artwork_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artwork Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"listennotes_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listennotes Url"},"episode_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Episode Count"},"fit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fit Score"},"auto_approves_next_run":{"type":"boolean","title":"Auto Approves Next Run","default":false}},"additionalProperties":false,"type":"object","required":["id","podcast_name"],"title":"PodcastTourApprovalItem","description":"One host pitch waiting for the author's approval (portal approval card)."},"PodcastTourApprovalSettingsRequest":{"properties":{"mode":{"type":"string","enum":["review","auto","threshold"],"title":"Mode"},"auto_approve_min_fit":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Auto Approve Min Fit"}},"additionalProperties":false,"type":"object","required":["mode"],"title":"PodcastTourApprovalSettingsRequest","description":"The author's approval-mode choice. threshold requires the cut line."},"PodcastTourApprovalSettingsResponse":{"properties":{"mode":{"type":"string","enum":["review","auto","threshold"],"title":"Mode"},"auto_approve_min_fit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Approve Min Fit"},"updated":{"type":"boolean","title":"Updated"}},"additionalProperties":false,"type":"object","required":["mode","updated"],"title":"PodcastTourApprovalSettingsResponse"},"PodcastTourApprovalsResponse":{"properties":{"mode":{"type":"string","enum":["review","auto","threshold"],"title":"Mode","default":"review"},"auto_approve_min_fit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Approve Min Fit"},"pending":{"items":{"$ref":"#/components/schemas/PodcastTourApprovalItem"},"type":"array","title":"Pending"},"pending_count":{"type":"integer","title":"Pending Count","default":0}},"additionalProperties":false,"type":"object","title":"PodcastTourApprovalsResponse"},"PodcastTourFormLeadItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"podcast_name":{"type":"string","title":"Podcast Name"},"host_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Name"},"artwork_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artwork Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"listennotes_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listennotes Url"},"episode_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Episode Count"},"fit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fit Score"},"contact_form_url":{"type":"string","title":"Contact Form Url"}},"additionalProperties":false,"type":"object","required":["id","podcast_name","contact_form_url"],"title":"PodcastTourFormLeadItem","description":"A show reachable only via its website contact form (author works it)."},"PodcastTourFormLeadsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PodcastTourFormLeadItem"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count","default":0}},"additionalProperties":false,"type":"object","title":"PodcastTourFormLeadsResponse"},"PodcastTourFormSubmittedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"stage":{"type":"string","title":"Stage"},"updated":{"type":"boolean","title":"Updated"}},"additionalProperties":false,"type":"object","required":["id","stage","updated"],"title":"PodcastTourFormSubmittedResponse"},"PodcastTourProfileUpdateRequest":{"properties":{"website_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website Url"},"book_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Book Url"},"amazon_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Amazon Url"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Linkedin Url"},"media_kit_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Media Kit Url"},"calendar_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Calendar Url"},"social_profiles":{"anyOf":[{"items":{"$ref":"#/components/schemas/PodcastTourSocialProfile"},"type":"array","maxItems":15},{"type":"null"}],"title":"Social Profiles"},"prior_appearance_count":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Prior Appearance Count"}},"additionalProperties":false,"type":"object","title":"PodcastTourProfileUpdateRequest","description":"PATCH body for the guest profile editor. Explicit named fields, all\noptional (omitted = unchanged), every string bounded (project rule)."},"PodcastTourRespondRequest":{"properties":{"message":{"type":"string","maxLength":2500,"minLength":10,"title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"PodcastTourRespondRequest","description":"The author's own reply text for a waiting host thread."},"PodcastTourSocialProfile":{"properties":{"platform":{"type":"string","maxLength":50,"title":"Platform"},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Url"},"handle":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Handle"},"follower_count":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Follower Count"},"as_of":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"As Of"}},"additionalProperties":false,"type":"object","required":["platform"],"title":"PodcastTourSocialProfile","description":"Author-typed social account + follower count (guest profile editor)."},"PodcastTourStageRequest":{"properties":{"stage":{"type":"string","maxLength":20,"title":"Stage"}},"additionalProperties":false,"type":"object","required":["stage"],"title":"PodcastTourStageRequest","description":"Author-driven stage change (portal is the management surface)."},"PodcastTourStatusResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"ghl_pipeline_name":{"type":"string","title":"Ghl Pipeline Name","default":"Podcast Booking"},"ghl_pipeline_stages":{"items":{"type":"string"},"type":"array","title":"Ghl Pipeline Stages"},"ghl_pipeline_note":{"type":"string","title":"Ghl Pipeline Note","default":"Positive replies flow into your Podcast Booking pipeline in the CRM. You get an email or text when a host says yes (depending on your plan), and Scheduling-stage opportunities carry the host's booking link in the note."}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"PodcastTourStatusResponse","description":"Author-portal-facing status for the Podcast Tour area.\n\n``enabled`` is the single gate the frontend reads to show/hide the section:\nTrue only when the logged-in author resolves to a real ``podcast_authors``\nrow under a client linked to their project. Everything else is display copy\nfor the \"where your leads appear\" panel — no ids or tenant internals leak."},"PortalAgreementResponse":{"properties":{"source":{"type":"string","title":"Source"},"version":{"type":"string","title":"Version"},"accepted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted At"},"package_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Tier"},"plan_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Label"},"text":{"type":"string","title":"Text"},"pdf_href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Href"}},"type":"object","required":["source","version","text"],"title":"PortalAgreementResponse"},"PortalAgreementStatus":{"properties":{"status":{"type":"string","enum":["sent","viewed","signed"],"title":"Status"},"sign_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign Url"},"package_name":{"type":"string","title":"Package Name"}},"type":"object","required":["status","package_name"],"title":"PortalAgreementStatus","description":"The ``agreement`` block on the portal progress line (Service Agreements v2)."},"PortalAssetApprovalRequest":{"properties":{"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""}},"type":"object","title":"PortalAssetApprovalRequest"},"PortalAssetRevisionRequest":{"properties":{"notes":{"type":"string","maxLength":5000,"minLength":1,"title":"Notes"}},"type":"object","required":["notes"],"title":"PortalAssetRevisionRequest"},"PortalAuthor":{"properties":{"first_name":{"type":"string","title":"First Name"},"is_account_holder":{"type":"boolean","title":"Is Account Holder"},"is_me":{"type":"boolean","title":"Is Me"}},"type":"object","required":["first_name","is_account_holder","is_me"],"title":"PortalAuthor"},"PortalAuthorRequestFulfillRequest":{"properties":{"kind":{"type":"string","enum":["text","confirm","choice"],"title":"Kind"},"text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Text"},"choice":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Choice"},"confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirmed"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"PortalAuthorRequestFulfillRequest","description":"Body for the portal fulfil route (text / confirm / choice forms only;\nuploads go through the asset upload route with ``request_id``)."},"PortalAuthorsMe":{"properties":{"co_authored":{"type":"boolean","title":"Co Authored","default":false},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"is_account_holder":{"type":"boolean","title":"Is Account Holder","default":true},"byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline"},"account_holder_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Holder First Name"},"authors":{"items":{"$ref":"#/components/schemas/PortalAuthor"},"type":"array","title":"Authors","default":[]},"plan_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Note"}},"type":"object","title":"PortalAuthorsMe"},"PortalBeaconRequest":{"properties":{"page":{"type":"string","maxLength":32,"title":"Page"},"token_ref":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Token Ref"}},"type":"object","required":["page"],"title":"PortalBeaconRequest","description":"Explicit fields with hard bounds — no ``dict``, no ``extra='allow'``."},"PortalBook":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"lifecycle_state":{"type":"string","title":"Lifecycle State"},"is_active_book":{"type":"boolean","title":"Is Active Book","default":false},"is_current_session":{"type":"boolean","title":"Is Current Session","default":false},"chapters_total":{"type":"integer","title":"Chapters Total","default":0},"chapters_complete":{"type":"integer","title":"Chapters Complete","default":0},"final_files_available":{"type":"boolean","title":"Final Files Available","default":false},"cover_thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Thumbnail Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"book_label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Book Label"},"next_action":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Next Action"},"next_step_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Next Step Text"},"next_step_cta":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Next Step Cta"},"needs_you_count":{"type":"integer","title":"Needs You Count","default":0},"silas_line":{"anyOf":[{"$ref":"#/components/schemas/SilasLine"},{"type":"null"}]},"book_email":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Book Email"},"setup":{"anyOf":[{"$ref":"#/components/schemas/BookSetupState"},{"type":"null"}]}},"type":"object","required":["project_id","lifecycle_state","created_at"],"title":"PortalBook"},"PortalChapterResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_number":{"type":"integer","title":"Chapter Number"},"display_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Display Number"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"word_count_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count Target"},"word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count"},"google_doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Id"},"google_doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Url"},"has_review_content":{"type":"boolean","title":"Has Review Content","default":false},"pending_comment_count":{"type":"integer","title":"Pending Comment Count","default":0},"last_comment_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Comment Synced At"},"chapter_content_state":{"type":"string","title":"Chapter Content State","default":"planned"},"chapter_review_state":{"type":"string","title":"Chapter Review State","default":"none"},"chapter_lifecycle_phase":{"type":"string","title":"Chapter Lifecycle Phase","default":"planning"},"can_approve":{"type":"boolean","title":"Can Approve","default":false},"approval_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Blocked Reason"},"comment_sync_stale":{"type":"boolean","title":"Comment Sync Stale","default":false},"last_material_release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Material Release At"},"author_status_label":{"type":"string","title":"Author Status Label","default":"Planning"},"author_status_help":{"type":"string","title":"Author Status Help","default":""},"author_next_action":{"type":"string","title":"Author Next Action","default":""},"expected_back_by":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Back By"},"expected_back_by_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Back By Label"},"auto_revisions_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Revisions Used"},"auto_revisions_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Revisions Included"},"latest_revision_delivered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Latest Revision Delivered"},"reveal_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reveal Line"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"being_updated":{"type":"boolean","title":"Being Updated","default":false},"title_only_chapter_headings":{"type":"boolean","title":"Title Only Chapter Headings","default":false}},"type":"object","required":["id","chapter_number","title","status"],"title":"PortalChapterResponse"},"PortalCommentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"content":{"type":"string","title":"Content"},"quoted_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted Text"},"resolved":{"type":"boolean","title":"Resolved","default":false},"processed":{"type":"boolean","title":"Processed","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","chapter_id","content"],"title":"PortalCommentResponse"},"PortalContinueRequest":{"properties":{"event":{"type":"string","enum":["continue_tapped","continue_network_error"],"title":"Event"},"token_ref":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Token Ref"}},"type":"object","required":["event","token_ref"],"title":"PortalContinueRequest","description":"GH #13502: the verify page's Continue tap. Hashed link ref only."},"PortalCrmHosting":{"properties":{"has_sub_account":{"type":"boolean","title":"Has Sub Account","default":false},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"billing_active":{"type":"boolean","title":"Billing Active","default":false}},"type":"object","title":"PortalCrmHosting","description":"Structured CRM hosting view for the portal dashboard (P4-B).\n\nComputed via ``ghl_billing.project_trial_end`` (the exact math the\nbilling beat uses) so the portal card and billing can never disagree.\n``days_remaining`` is clamped at 0 once the trial has expired."},"PortalDeliverableWithAging":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deliverable_type":{"type":"string","title":"Deliverable Type"},"display_name":{"type":"string","title":"Display Name"},"file_extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Extension"},"status":{"type":"string","title":"Status"},"status_label":{"type":"string","title":"Status Label","default":""},"review_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Status"},"client_ready":{"type":"boolean","title":"Client Ready","default":false},"author_approval_required":{"type":"boolean","title":"Author Approval Required","default":false},"author_approval_status":{"type":"string","title":"Author Approval Status","default":"not_required"},"can_review":{"type":"boolean","title":"Can Review","default":false},"description":{"type":"string","title":"Description","default":""},"format_guidance":{"type":"string","title":"Format Guidance","default":""},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count"},"customer_exports":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Customer Exports"},"primary_export_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Export Kind"},"retained_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Retained Version Id"},"retained_version_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retained Version At"},"downloadable":{"type":"boolean","title":"Downloadable","default":true},"stuck":{"type":"boolean","title":"Stuck","default":false},"age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Age Hours"}},"type":"object","required":["id","deliverable_type","display_name","status"],"title":"PortalDeliverableWithAging","description":"Portal deliverable row + stalled-work indicators (WF2-D8)."},"PortalGuidedTake":{"properties":{"chapter_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Chapter Id"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"section_number":{"type":"integer","minimum":0.0,"title":"Section Number"},"section_label":{"type":"string","maxLength":80,"title":"Section Label"},"words":{"type":"integer","minimum":0.0,"title":"Words","default":0},"spoken":{"type":"boolean","title":"Spoken","default":false},"status":{"type":"string","enum":["transcribing","ready","unheard"],"title":"Status","default":"ready"},"opening":{"type":"string","maxLength":300,"title":"Opening","default":""},"heard":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Heard"}},"type":"object","required":["section_number","section_label"],"title":"PortalGuidedTake","description":"One Talk Your Book DIY guided take, as the receipts list groups it (audit F11).\n\nRead from the stored row only (``app/services/portal_material_receipts.py``).\n``words`` is exact for a typed answer and estimated from the transcript's\nlength for a spoken one; 0 until a recording is transcribed."},"PortalInterviewAvailabilityResponse":{"properties":{"can_schedule_general_interview":{"type":"boolean","title":"Can Schedule General Interview","default":false},"material_complete":{"type":"boolean","title":"Material Complete","default":false},"material_complete_advisory":{"type":"boolean","title":"Material Complete Advisory","default":false},"next_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Action"},"recommended_interview_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Interview Type"},"interview_hours_remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Interview Hours Remaining"},"booking_closed_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Closed Bucket"},"booking_closed_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Closed Step"},"book_auto_start_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Auto Start Label"},"author_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Timezone"},"booking_min_lead_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Booking Min Lead Minutes"},"earliest_bookable_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Earliest Bookable At"}},"type":"object","title":"PortalInterviewAvailabilityResponse","description":"Author-facing general-interview availability from canonical state.\n\n``can_schedule_general_interview`` deliberately excludes targeted planning\ncloseout and final-review calls. Those remain reachable only through their\nverified next-action links, so a material-complete author is never invited\nback into open-ended content mining."},"PortalInterviewHistoryEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"interview_number":{"type":"integer","title":"Interview Number"},"interview_type":{"type":"string","title":"Interview Type"},"type_label":{"type":"string","title":"Type Label","default":"Interview"},"call_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Label"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"summary_text":{"type":"string","title":"Summary Text","default":""},"topics_discussed":{"items":{"type":"string"},"type":"array","title":"Topics Discussed","default":[]},"stories_captured":{"type":"integer","title":"Stories Captured","default":0},"action_checklist":{"items":{"$ref":"#/components/schemas/PortalRecapActionItem"},"type":"array","title":"Action Checklist"},"recap_generation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recap Generation"},"recap_follow_up":{"anyOf":[{"$ref":"#/components/schemas/PortalInterviewRecapFollowUp"},{"type":"null"}]},"recording_available":{"type":"boolean","title":"Recording Available","default":false},"transcript_available":{"type":"boolean","title":"Transcript Available","default":false},"status":{"type":"string","title":"Status","default":"completed"}},"type":"object","required":["id","interview_number","interview_type"],"title":"PortalInterviewHistoryEntry","description":"Completed interview summary for the portal history surface."},"PortalInterviewRecapFollowUp":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"recap_generation":{"type":"string","title":"Recap Generation"},"state":{"type":"string","enum":["pending","completed","superseded"],"title":"State"},"checklist":{"items":{"$ref":"#/components/schemas/PortalRecapActionItem"},"type":"array","title":"Checklist"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","recap_generation","state"],"title":"PortalInterviewRecapFollowUp","description":"One durable action occurrence tied to the displayed recap generation."},"PortalInterviewResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"interview_number":{"type":"integer","title":"Interview Number"},"interview_type":{"type":"string","title":"Interview Type"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"display_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Time"},"confirmed":{"type":"boolean","title":"Confirmed","default":false},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"reschedule_count":{"type":"integer","title":"Reschedule Count","default":0},"type_label":{"type":"string","title":"Type Label","default":"Interview"},"call_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Label"},"purpose":{"type":"string","title":"Purpose","default":""},"status":{"type":"string","title":"Status","default":"scheduled"}},"type":"object","required":["id","interview_number","interview_type"],"title":"PortalInterviewResponse","description":"Interview summary for the portal."},"PortalLaunchNextStep":{"properties":{"text":{"type":"string","maxLength":300,"title":"Text"},"href":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Href"},"whose":{"type":"string","enum":["author","us"],"title":"Whose"}},"type":"object","required":["text","whose"],"title":"PortalLaunchNextStep","description":"Her one next move in plain words; ``href`` is null when the move is ours."},"PortalLaunchScore":{"properties":{"percent":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Percent"},"is_estimate":{"type":"boolean","title":"Is Estimate","default":true},"next_step":{"anyOf":[{"$ref":"#/components/schemas/PortalLaunchNextStep"},{"type":"null"}]}},"type":"object","required":["percent"],"title":"PortalLaunchScore","description":"Launch score on the portal home: an estimate, never a promise."},"PortalMaterialPlacement":{"properties":{"kind":{"type":"string","enum":["chapters","whole_book","waiting_for_author","being_placed"],"title":"Kind"},"chapters":{"items":{"type":"integer"},"type":"array","maxItems":50,"title":"Chapters"}},"type":"object","required":["kind"],"title":"PortalMaterialPlacement","description":"Where one upload is used — the author's answer to \"where did it go?\"\n\n``kind``: ``chapters`` (``chapters`` lists them, primary first),\n``whole_book`` (a General Book Source used across the book),\n``waiting_for_author`` (we asked her to choose), or ``being_placed``\n(her writing team is choosing). Never an internal status word."},"PortalMaterialResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"target_chapter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Chapter"},"target_stage":{"type":"string","title":"Target Stage"},"source_channel":{"type":"string","title":"Source Channel"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"content_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Summary"},"routing_status":{"type":"string","title":"Routing Status"},"verification_status":{"type":"string","title":"Verification Status"},"release_signal_status":{"type":"string","title":"Release Signal Status"},"material_usage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Material Usage"},"manuscript_split_proposal":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manuscript Split Proposal"},"manuscript_collision_question":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manuscript Collision Question"},"retraction":{"anyOf":[{"$ref":"#/components/schemas/RetractionState"},{"type":"null"}]},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"text_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Excerpt"},"chapter_change":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chapter Change"},"photo_caption":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Photo Caption"},"photo_section":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Photo Section"},"photo_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Page"},"photo_place":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Photo Place"},"photo_screenshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Screenshot"},"photo_screenshot_choice":{"anyOf":[{"$ref":"#/components/schemas/PortalScreenshotChoice"},{"type":"null"}]},"photo_screenshot_using":{"anyOf":[{"$ref":"#/components/schemas/PortalScreenshotUsing"},{"type":"null"}]},"author_confirmation_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Author Confirmation Requested At"},"where_used":{"anyOf":[{"$ref":"#/components/schemas/PortalMaterialPlacement"},{"type":"null"}]},"rights_question":{"anyOf":[{"$ref":"#/components/schemas/PortalMaterialRightsQuestion"},{"type":"null"}]},"policy_notes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Policy Notes"},"display_title":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Display Title"},"guided_take":{"anyOf":[{"$ref":"#/components/schemas/PortalGuidedTake"},{"type":"null"}]},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","target_stage","source_channel","routing_status","verification_status","release_signal_status"],"title":"PortalMaterialResponse"},"PortalMaterialRightsDecisionRequest":{"properties":{"choice":{"type":"string","enum":["include","leave_out","describe_in_words","background_only","quote"],"title":"Choice"}},"additionalProperties":false,"type":"object","required":["choice"],"title":"PortalMaterialRightsDecisionRequest","description":"The author's choice for one flagged upload."},"PortalMaterialRightsOption":{"properties":{"value":{"type":"string","maxLength":40,"title":"Value"},"label":{"type":"string","maxLength":120,"title":"Label"}},"type":"object","required":["value","label"],"title":"PortalMaterialRightsOption"},"PortalMaterialRightsQuestion":{"properties":{"state":{"type":"string","enum":["waiting","decided"],"title":"State"},"kind":{"type":"string","enum":["media","text"],"title":"Kind"},"message":{"type":"string","maxLength":300,"title":"Message"},"choice":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Choice"},"is_default":{"type":"boolean","title":"Is Default","default":true},"options":{"items":{"$ref":"#/components/schemas/PortalMaterialRightsOption"},"type":"array","maxItems":3,"title":"Options"}},"type":"object","required":["state","kind","message"],"title":"PortalMaterialRightsQuestion","description":"\"We'd like your call on this\": a copyright/ownership flag the AUTHOR decides.\n\nMike, 2026-09-24: copyright concerns on an upload go to the author, not to\nstaff. ``state`` is ``waiting`` until she chooses (``choice`` then shows the\ndefault in force) and ``decided`` after. Never an internal flag name."},"PortalNotificationHistory":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"items":{"items":{"$ref":"#/components/schemas/PortalNotificationItem"},"type":"array","title":"Items"}},"type":"object","required":["project_id","items"],"title":"PortalNotificationHistory"},"PortalNotificationItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"notification_type":{"type":"string","title":"Notification Type"},"channel":{"type":"string","title":"Channel"},"status":{"type":"string","title":"Status"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"event_version":{"type":"integer","title":"Event Version","default":1},"context":{"additionalProperties":true,"type":"object","title":"Context"},"action_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Path"},"action_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Label"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Failed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","notification_type","channel","status","created_at"],"title":"PortalNotificationItem"},"PortalOffer":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"product_name":{"type":"string","maxLength":200,"title":"Product Name"},"state":{"type":"string","maxLength":20,"title":"State"},"plan_label":{"type":"string","maxLength":200,"title":"Plan Label","default":""},"total_display":{"type":"string","maxLength":40,"title":"Total Display"},"due_today_display":{"type":"string","maxLength":40,"title":"Due Today Display"},"monthly_display":{"type":"string","maxLength":40,"title":"Monthly Display"},"term_months":{"type":"integer","title":"Term Months"},"remaining_installments":{"type":"integer","title":"Remaining Installments"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"rep_name":{"type":"string","maxLength":200,"title":"Rep Name","default":""},"sent_to_masked":{"type":"string","maxLength":200,"title":"Sent To Masked","default":""}},"type":"object","required":["id","product_name","state","total_display","due_today_display","monthly_display","term_months","remaining_installments","expires_at"],"title":"PortalOffer","description":"One quote the author is holding, rendered from the stored row."},"PortalOfferApproveRequest":{"properties":{"offer_name":{"type":"string","maxLength":120,"minLength":1,"title":"Offer Name"},"promise":{"type":"string","maxLength":300,"title":"Promise","default":""},"price_dollars":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Price Dollars"}},"additionalProperties":false,"type":"object","required":["offer_name","price_dollars"],"title":"PortalOfferApproveRequest","description":"The author approves her front-end offer, with any change she made.\nThe price is hers: whole dollars, any value she chooses in range."},"PortalOffersResponse":{"properties":{"offers":{"items":{"$ref":"#/components/schemas/PortalOffer"},"type":"array","title":"Offers"}},"type":"object","title":"PortalOffersResponse"},"PortalPauseRequest":{"properties":{"until":{"type":"string","format":"date","title":"Until"},"reason":{"type":"string","enum":["break","busy","bereavement","illness","family_emergency","other"],"title":"Reason","default":"break"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["until"],"title":"PortalPauseRequest"},"PortalPlanningResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"planning_status":{"type":"string","title":"Planning Status"},"planning_source":{"type":"string","title":"Planning Source"},"version":{"type":"integer","title":"Version","default":1},"thesis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thesis"},"working_titles":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"items":{"type":"string"},"type":"array"}],"title":"Working Titles","default":[]},"selected_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Title"},"title_decision_state":{"type":"string","title":"Title Decision State","default":"undecided"},"title_approved":{"type":"boolean","title":"Title Approved","default":false},"title_approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Title Approved At"},"title_scorecard_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Scorecard Status"},"title_candidate_count":{"type":"integer","title":"Title Candidate Count","default":0},"title_leaning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Title Leaning"},"framework_primary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework Primary"},"framework_secondary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework Secondary"},"framework_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework Display Name"},"framework_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework Description"},"framework_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework Rationale"},"framework_status":{"type":"string","title":"Framework Status","default":"pending_confirmation"},"approval_channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Channel"},"approval_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Notes"},"plan_change_allowed":{"type":"boolean","title":"Plan Change Allowed","default":false},"plan_change_allowed_after_own_approval":{"type":"boolean","title":"Plan Change Allowed After Own Approval","default":false},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"chapters":{"items":{"$ref":"#/components/schemas/PortalChapterResponse"},"type":"array","title":"Chapters","default":[]},"revision_history":{"items":{"$ref":"#/components/schemas/PlanningRevisionEntry"},"type":"array","title":"Revision History","default":[]},"author_naming_flags":{"items":{"$ref":"#/components/schemas/AuthorNamingFlag"},"type":"array","title":"Author Naming Flags","default":[]},"package_fit_note":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Package Fit Note"}},"type":"object","required":["project_id","planning_status","planning_source"],"title":"PortalPlanningResponse"},"PortalProgressSummary":{"properties":{"chapters_total":{"type":"integer","minimum":0.0,"title":"Chapters Total"},"chapters_drafted":{"type":"integer","minimum":0.0,"title":"Chapters Drafted"},"chapters_approved":{"type":"integer","minimum":0.0,"title":"Chapters Approved"},"interview_hours_remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Interview Hours Remaining"},"calls_left":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Calls Left"},"estimated_finish":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Estimated Finish"},"estimate_basis":{"type":"string","enum":["pace","all_drafted","too_early","stalled","too_far","no_chapters","incomplete_history"],"title":"Estimate Basis"},"words_drafted":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Words Drafted"},"words_approved":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Words Approved"},"agreement":{"anyOf":[{"$ref":"#/components/schemas/PortalAgreementStatus"},{"type":"null"}]},"launch_score":{"anyOf":[{"$ref":"#/components/schemas/PortalLaunchScore"},{"type":"null"}]}},"type":"object","required":["chapters_total","chapters_drafted","chapters_approved","estimate_basis"],"title":"PortalProgressSummary","description":"The portal home's one progress line (Finish Line plan item 7).\n\nEvery field is optional on the reader's side: an unreadable input renders\nas no claim, never as a guessed number. ``estimated_finish`` is null\nwhenever the author's own pace cannot honestly support a date."},"PortalProjectDashboardResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"type":"string","title":"Client Email"},"package_tier":{"type":"string","title":"Package Tier"},"status":{"type":"string","title":"Status"},"lifecycle_state":{"type":"string","title":"Lifecycle State","default":"checkout"},"concierge_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Concierge Name"},"committed_package_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Committed Package Tier"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"book_title_is_approved":{"type":"boolean","title":"Book Title Is Approved","default":false},"total_chapters":{"type":"integer","title":"Total Chapters"},"chapters_complete":{"type":"integer","title":"Chapters Complete"},"chapters_in_review":{"type":"integer","title":"Chapters In Review","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"manuscript_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manuscript Intent"},"manuscript_analysis_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manuscript Analysis Status"},"manuscript_analysis":{"anyOf":[{"$ref":"#/components/schemas/ManuscriptAnalysisResponse"},{"type":"null"}]},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"subscription_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Period End"},"subscriptions":{"items":{"$ref":"#/components/schemas/PortalSubscriptionInfo"},"type":"array","title":"Subscriptions","default":[]},"avatar_video_ready":{"type":"boolean","title":"Avatar Video Ready","default":false},"legacy_social_plans_for_sale":{"type":"boolean","title":"Legacy Social Plans For Sale","default":false},"chapters_pending_review_release":{"type":"integer","title":"Chapters Pending Review Release","default":0},"planning_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planning Status"},"planning_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planning Source"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"author_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Prompt"},"system_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Status"},"portal_cta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Cta"},"next_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Action"},"channel_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Guidance"},"upcoming_interview_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Upcoming Interview At"},"upcoming_interview_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upcoming Interview Number"},"upcoming_interview_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upcoming Interview Label"},"upcoming_call_is_joint":{"type":"boolean","title":"Upcoming Call Is Joint","default":false},"upcoming_call_with":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upcoming Call With"},"upcoming_joint_interview_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upcoming Joint Interview Id"},"upcoming_interview_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upcoming Interview Id"},"upcoming_interview_calendar_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upcoming Interview Calendar Uid"},"interview_count":{"type":"integer","title":"Interview Count","default":0},"interviews_complete":{"type":"integer","title":"Interviews Complete","default":0},"course_creation_entitled":{"type":"boolean","title":"Course Creation Entitled","default":false},"deliverable_statuses":{"additionalProperties":{"type":"string"},"type":"object","title":"Deliverable Statuses","default":{}},"cover_vote_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Vote Url"},"cover_vote_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Vote Status"},"pre_launch_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Launch Url"},"pre_launch_subscriber_count":{"type":"integer","title":"Pre Launch Subscriber Count","default":0},"crm_hosting_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Hosting Status"},"crm_hosting":{"anyOf":[{"$ref":"#/components/schemas/PortalCrmHosting"},{"type":"null"}]},"project_context_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Project Context Summary"},"silas_portal_enabled":{"type":"boolean","title":"Silas Portal Enabled","default":false},"sms_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms State"},"author_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Timezone"},"manuscript_complete":{"type":"boolean","title":"Manuscript Complete","default":false},"production_complete":{"type":"boolean","title":"Production Complete","default":false},"all_deliverables_complete":{"type":"boolean","title":"All Deliverables Complete","default":false},"portal_tour_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Portal Tour Completed At"},"diy_onboarding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Diy Onboarding"},"co_authors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Co Authors"}},"type":"object","required":["id","client_name","client_email","package_tier","status","total_chapters","chapters_complete","created_at"],"title":"PortalProjectDashboardResponse","description":"Dashboard payload with distinct completion flags (WF2-D9).\n\n``production_complete`` covers manuscript/cover production only;\n``all_deliverables_complete`` requires every ledger row to be terminal.\nThe frontend must never derive a single \"complete\" banner while launch\ndeliverables are still open."},"PortalPublishingBisacCategory":{"properties":{"code":{"type":"string","maxLength":50,"title":"Code"},"label":{"type":"string","maxLength":250,"title":"Label"}},"additionalProperties":false,"type":"object","required":["code","label"],"title":"PortalPublishingBisacCategory"},"PortalPublishingEndorsement":{"properties":{"quote":{"type":"string","maxLength":2000,"title":"Quote"},"attribution":{"type":"string","maxLength":250,"title":"Attribution"}},"additionalProperties":false,"type":"object","required":["quote","attribution"],"title":"PortalPublishingEndorsement"},"PortalRecapActionItem":{"properties":{"text":{"type":"string","title":"Text"},"details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Details"},"target_chapter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Chapter"},"chapter_status":{"type":"string","title":"Chapter Status","default":"known"}},"type":"object","required":["text"],"title":"PortalRecapActionItem","description":"Author-facing follow-up action item shown in portal interview history."},"PortalScreenshotChoice":{"properties":{"line":{"type":"string","title":"Line"},"crop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crop Url"},"choices":{"items":{"type":"string","enum":["crop","whole","leave_out"]},"type":"array","maxItems":3,"title":"Choices"}},"type":"object","required":["line"],"title":"PortalScreenshotChoice","description":"The screenshot offer on her Your photos tile (GH #14387 sp-photos3)."},"PortalScreenshotUsing":{"properties":{"line":{"type":"string","maxLength":300,"title":"Line"},"action":{"type":"string","maxLength":100,"title":"Action"},"to":{"type":"string","enum":["crop","whole"],"title":"To"}},"type":"object","required":["line","action","to"],"title":"PortalScreenshotUsing","description":"Which picture prints once she chose, and the tap that switches (GH #14387 sp-polish)."},"PortalSubscriptionInfo":{"properties":{"product_code":{"type":"string","title":"Product Code"},"status":{"type":"string","title":"Status"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false}},"type":"object","required":["product_code","status"],"title":"PortalSubscriptionInfo","description":"Per-product subscription status for the portal."},"PortalSupportRequest":{"properties":{"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"},"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page"}},"type":"object","required":["message"],"title":"PortalSupportRequest","description":"An author asks for help from inside the portal.\n\nExplicit named fields with hard caps (never ``body: dict``) per the\nauthor-facing-endpoint rule in CLAUDE.md. ``page`` is a breadcrumb the rep\nreads first — \"which screen were you on\" answers half of these tickets\nbefore anyone replies."},"PortalTaskResponse":{"properties":{"id":{"type":"string","title":"Id"},"question_text":{"type":"string","title":"Question Text"},"author_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Prompt"},"target_chapter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Chapter"},"chapter_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chapter Title"},"status":{"type":"string","title":"Status"},"context_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Note"},"interview_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","question_text","status"],"title":"PortalTaskResponse","description":"Author task from interview follow-ups."},"PortalTestimonialItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"milestone":{"type":"string","enum":["first_interview","first_chapter","cover_approved","book_live","books_in_hand","anytime","silas_call"],"title":"Milestone"},"media_kind":{"type":"string","enum":["text","audio","video"],"title":"Media Kind"},"status":{"type":"string","enum":["awaiting_upload","received","processing","ready_for_author","approved","author_declined","not_usable","feedback_only","withdrawn","failed"],"title":"Status"},"created_at":{"type":"string","title":"Created At"},"quote_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Display"},"edited_for_clarity":{"type":"boolean","title":"Edited For Clarity","default":false},"disclosures":{"items":{"type":"string"},"type":"array","title":"Disclosures"},"clip_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clip Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"review_deadline_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Deadline At"},"quote_card_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Card Url"}},"type":"object","required":["id","milestone","media_kind","status","created_at"],"title":"PortalTestimonialItem"},"PortalTestimonialListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PortalTestimonialItem"},"type":"array","title":"Items"},"author_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author First Name"}},"type":"object","required":["items"],"title":"PortalTestimonialListResponse"},"PortalTimelineEntry":{"properties":{"event_key":{"type":"string","title":"Event Key"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"category":{"type":"string","title":"Category","default":"system"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}}},"type":"object","required":["event_key","label","timestamp"],"title":"PortalTimelineEntry","description":"A single entry in the author activity timeline."},"PositiveReplyIn":{"properties":{"linkedin_url":{"type":"string","maxLength":300,"minLength":10,"title":"Linkedin Url"},"full_name":{"type":"string","maxLength":120,"minLength":2,"title":"Full Name"},"reply_text":{"type":"string","maxLength":2000,"minLength":1,"title":"Reply Text"},"headline":{"anyOf":[{"type":"string","maxLength":220},{"type":"null"}],"title":"Headline"},"company":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Company"}},"additionalProperties":false,"type":"object","required":["linkedin_url","full_name","reply_text"],"title":"PositiveReplyIn","description":"What the assistant sends for one positive reply. The source person is the\nlink's token, never a field here."},"PostApprovalRequest":{"properties":{"action":{"type":"string","enum":["approve","reject"],"title":"Action"},"edited_content":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Edited Content"},"reject_reason":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Reject Reason"}},"type":"object","required":["action"],"title":"PostApprovalRequest","description":"Client approves or edits a queued post."},"PostPictureFromLibraryRequest":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"}},"type":"object","required":["asset_id"],"title":"PostPictureFromLibraryRequest","description":"Author puts a photo from her library on a post (2026-11-17)."},"PostQueueRequest":{"properties":{"start":{"type":"string","format":"date","title":"Start"}},"additionalProperties":false,"type":"object","required":["start"],"title":"PostQueueRequest"},"PostQueueResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"channel":{"type":"string","title":"Channel"},"content":{"type":"string","title":"Content"},"edited_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Content"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"generation_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Source"},"mix_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mix Type"},"grounding_chapters":{"items":{"type":"integer"},"type":"array","title":"Grounding Chapters","default":[]},"image_urls":{"items":{"type":"string"},"type":"array","title":"Image Urls","default":[]},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Video Urls"},"video_retry_blocked":{"type":"boolean","title":"Video Retry Blocked","default":false},"qa_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qa Note"},"hook_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Line"},"qa":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qa"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"verify_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verify Status"},"revision_count":{"type":"integer","title":"Revision Count","default":0},"publish_needs_connection":{"type":"boolean","title":"Publish Needs Connection","default":false},"author_image":{"type":"boolean","title":"Author Image","default":false}},"type":"object","required":["id","channel","content","status","created_at"],"title":"PostQueueResponse","description":"Lightweight view of a queued post for the portal.\n\nPhase 4 §4.2 surfaces a handful of metadata-derived fields so the queue can\nrender platform-native previews (image thumbnail, mix-type chip, grounding\nrefs) without shipping the whole metadata blob to the client."},"PostWebinarDryRunRequest":{"properties":{"contact_id":{"type":"string","maxLength":64,"minLength":6,"pattern":"^[A-Za-z0-9]+$","title":"Contact Id"},"appointment_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":6,"pattern":"^[A-Za-z0-9]+$"},{"type":"null"}],"title":"Appointment Id"},"opportunity_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":6,"pattern":"^[A-Za-z0-9]+$"},{"type":"null"}],"title":"Opportunity Id"}},"additionalProperties":false,"type":"object","required":["contact_id"],"title":"PostWebinarDryRunRequest"},"PreCallBrief":{"properties":{"text":{"type":"string","maxLength":600,"minLength":1,"title":"Text"},"interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"}},"additionalProperties":false,"type":"object","required":["text"],"title":"PreCallBrief","description":"What this author wants Silas to cover or avoid on their next call together."},"PreferencesRequest":{"properties":{"reward_preference":{"anyOf":[{"type":"string","enum":["cash","upgrade_credit"]},{"type":"null"}],"title":"Reward Preference"},"book_qr_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Book Qr Opt In"},"personal_note":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Personal Note"},"show_photo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Photo"},"about_me":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"About Me"},"about_me_use_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"About Me Use Default"}},"additionalProperties":false,"type":"object","title":"PreferencesRequest"},"PrefillField":{"properties":{"value":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"}],"title":"Value"},"source":{"type":"string","title":"Source"},"confidence":{"type":"string","title":"Confidence","default":"suggested"},"editable":{"type":"boolean","title":"Editable","default":true},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["value","source"],"title":"PrefillField","description":"A single prefilled suggestion with provenance metadata."},"PrelaunchIntakeRequest":{"properties":{"launch_window":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Launch Window"},"highlights":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Highlights"},"sample_chapter_enabled":{"type":"boolean","title":"Sample Chapter Enabled"}},"additionalProperties":false,"type":"object","required":["launch_window","highlights","sample_chapter_enabled"],"title":"PrelaunchIntakeRequest","description":"Author answers for the pre-launch page questionnaire (prelaunch v2).\n\nStrict, explicitly-bounded fields per the author-facing PUT rule. All three\nfields are REQUIRED but nullable (present-but-nullable): a partial body that\nomits a field is a 422 rather than a silent wipe of the stored answer. The\nfrontend always sends all three explicitly (see\nfrontend/app/portal/prelaunch/actions.ts), so a well-formed save is never\nrejected. A field may be null to clear it (the public page keeps its smart\ndefaults for anything blank)."},"PrelaunchPageResponse":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"book_title":{"type":"string","title":"Book Title"},"book_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Subtitle"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio"},"author_headshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Headshot Url"},"headline":{"type":"string","title":"Headline"},"subheadline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subheadline"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets","default":[]},"cta_copy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Copy"},"subscriber_count":{"type":"integer","title":"Subscriber Count"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"brand_colors":{"additionalProperties":{"type":"string"},"type":"object","title":"Brand Colors","default":{}},"launch_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch Window"},"sample_available":{"type":"boolean","title":"Sample Available","default":false},"sample_approved":{"type":"boolean","title":"Sample Approved","default":false},"canonical_url":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Canonical Url"},"white_label":{"type":"boolean","title":"White Label","default":false}},"type":"object","required":["book_title","headline","subscriber_count"],"title":"PrelaunchPageResponse"},"PrelaunchSubscribeRequest":{"properties":{"subscriber_email":{"type":"string","maxLength":254,"format":"email","title":"Subscriber Email"},"subscriber_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Subscriber Name"},"share_with_author":{"type":"boolean","title":"Share With Author","default":false}},"type":"object","required":["subscriber_email"],"title":"PrelaunchSubscribeRequest","description":"The public signup body, and the ONLY place consent can be given.\n\n``share_with_author`` is a bare bool defaulting to False. The sentence the\nsubscriber agreed to is never taken from the client: the server stores its\nown ``AUTHOR_SHARE_CONSENT_TEXT`` constant. The stored columns\n(``share_with_author_consented_at`` / ``share_with_author_consent_text``)\nare not fields here, and Pydantic drops what it does not declare, so a\ncaller cannot back-date a consent or choose the words it was recorded under.\n\nDeliberately NOT ``extra=\"forbid\"``: this is a public capture form and\nrefusing a real signup over an unknown key would be a blocking guard on\nclient work (CLAUDE.md) — and Vercel routinely deploys ahead of Railway, so\na field the page sends before the API knows it must be dropped, not 422'd.\nDropping is already unspoofable; refusing would only cost signups."},"PrelaunchSubscribeResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"subscriber_count":{"type":"integer","title":"Subscriber Count"},"sample_download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Download Url"}},"type":"object","required":["success","subscriber_count"],"title":"PrelaunchSubscribeResponse"},"PremiseAnswer":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"page_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Page Sha256"},"decision":{"type":"string","enum":["yes","change"],"title":"Decision"},"pitch":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":1.0},{"type":"null"}],"title":"Pitch"},"words":{"type":"string","maxLength":2000,"title":"Words","default":""}},"additionalProperties":false,"type":"object","required":["artifact_id","page_sha256","decision"],"title":"PremiseAnswer","description":"\"Yes, that's my book\" (with the pitch they like) or \"change this\" in their words."},"PrepareBody":{"properties":{"period_label":{"anyOf":[{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}$"},{"type":"null"}],"title":"Period Label"}},"additionalProperties":false,"type":"object","title":"PrepareBody"},"PressActionResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"message":{"type":"string","maxLength":400,"title":"Message"},"view":{"$ref":"#/components/schemas/PressView"}},"type":"object","required":["ok","message","view"],"title":"PressActionResponse"},"PressCheckoutRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"sku":{"type":"string","enum":["press_distribution_197","premium_press_497","ap_usatoday_297"],"title":"Sku"},"success_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cancel Url"}},"type":"object","required":["project_id","sku"],"title":"PressCheckoutRequest","description":"Request for a paid press upgrade from the portal (existing project).\n\n``sku`` is one of the three press SKUs; the server re-checks that this\nbook's package and stage offer it (``press_portal.sku_offerable``)."},"PressLink":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name"},"url":{"type":"string","maxLength":2048,"title":"Url"},"logo_url":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Logo Url"}},"type":"object","required":["name","url"],"title":"PressLink"},"PressOffer":{"properties":{"sku":{"type":"string","enum":["press_distribution_197","premium_press_497","ap_usatoday_297"],"title":"Sku"},"title":{"type":"string","maxLength":120,"title":"Title"},"price_cents":{"type":"integer","title":"Price Cents"},"summary":{"type":"string","maxLength":400,"title":"Summary"},"details":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Details"}},"type":"object","required":["sku","title","price_cents","summary"],"title":"PressOffer"},"PressPlacementOut":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"}},"type":"object","required":["name","url"],"title":"PressPlacementOut"},"PressPurchaseView":{"properties":{"sku":{"type":"string","enum":["press_distribution_197","premium_press_497","ap_usatoday_297"],"title":"Sku"},"title":{"type":"string","maxLength":120,"title":"Title"},"status":{"type":"string","enum":["processing","added"],"title":"Status"}},"type":"object","required":["sku","title","status"],"title":"PressPurchaseView"},"PressRelease":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"slot":{"type":"integer","title":"Slot"},"stage":{"type":"string","enum":["scheduled","waiting_news","drafting","your_input","ready","held","waiting_funds","with_outlets","live","complete","not_accepted","withdrawn","delayed"],"title":"Stage"},"headline":{"type":"string","maxLength":300,"title":"Headline"},"detail":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Detail"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"goes_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Goes Out At"},"can_hold":{"type":"boolean","title":"Can Hold","default":false},"hold_label":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Hold Label"},"can_send_now":{"type":"boolean","title":"Can Send Now","default":false},"action_url":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Action Url"},"live_count":{"type":"integer","title":"Live Count","default":0},"featured":{"items":{"$ref":"#/components/schemas/PressLink"},"type":"array","maxItems":50,"title":"Featured"},"syndicated":{"items":{"$ref":"#/components/schemas/PressLink"},"type":"array","maxItems":500,"title":"Syndicated"},"report_pdf_url":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Report Pdf Url"},"release_text":{"anyOf":[{"$ref":"#/components/schemas/PressReleaseText"},{"type":"null"}]},"release_pdf_available":{"type":"boolean","title":"Release Pdf Available","default":false},"graphic_url":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Graphic Url"}},"type":"object","required":["order_id","slot","stage","headline"],"title":"PressRelease"},"PressReleaseText":{"properties":{"title":{"type":"string","maxLength":300,"title":"Title"},"summary":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Summary"},"paragraphs":{"items":{"type":"string"},"type":"array","maxItems":60,"title":"Paragraphs"}},"type":"object","required":["title"],"title":"PressReleaseText","description":"The exact release text that goes (or went) to the outlets."},"PressSiteVisibilityUpdate":{"properties":{"show_on_site":{"type":"boolean","title":"Show On Site"}},"additionalProperties":false,"type":"object","required":["show_on_site"],"title":"PressSiteVisibilityUpdate","description":"The author's \"show on my site\" toggle (explicit, closed model)."},"PressSummaryResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"show_on_site":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show On Site"},"featured":{"items":{"$ref":"#/components/schemas/PressPlacementOut"},"type":"array","title":"Featured","default":[]},"syndicated":{"items":{"$ref":"#/components/schemas/PressPlacementOut"},"type":"array","title":"Syndicated","default":[]},"share_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Text"},"guest_page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Page Url"},"republish_pending":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Republish Pending"}},"type":"object","required":["enabled"],"title":"PressSummaryResponse","description":"Read-only press summary mirrored on /portal/site and /portal/podcast-tour.\n\n``enabled`` is false while the surface's kill switch is off; the portal\nhides the card then. Never carries a vendor name, a price or a credit."},"PressUpsell":{"properties":{"offers":{"items":{"$ref":"#/components/schemas/PressOffer"},"type":"array","maxItems":3,"title":"Offers"},"honesty_note":{"type":"string","maxLength":400,"title":"Honesty Note"}},"type":"object","required":["honesty_note"],"title":"PressUpsell"},"PressView":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"releases":{"items":{"$ref":"#/components/schemas/PressRelease"},"type":"array","maxItems":6,"title":"Releases"},"upsell":{"anyOf":[{"$ref":"#/components/schemas/PressUpsell"},{"type":"null"}]},"purchases":{"items":{"$ref":"#/components/schemas/PressPurchaseView"},"type":"array","maxItems":20,"title":"Purchases"}},"type":"object","required":["project_id"],"title":"PressView"},"PreviewBody":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"PreviewBody"},"PricingModeUpdate":{"properties":{"pricing_mode":{"type":"string","enum":["light","full"],"title":"Pricing Mode"}},"type":"object","required":["pricing_mode"],"title":"PricingModeUpdate"},"PrimeCallCard":{"properties":{"booking_url":{"type":"string","title":"Booking Url"},"booking_status":{"type":"string","title":"Booking Status"},"appointment_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment At"},"disclosure":{"type":"string","title":"Disclosure"}},"type":"object","required":["booking_url","booking_status","disclosure"],"title":"PrimeCallCard"},"PrintProofRequest":{"properties":{"street1":{"type":"string","maxLength":200,"title":"Street1"},"street2":{"type":"string","maxLength":200,"title":"Street2","default":""},"city":{"type":"string","maxLength":100,"title":"City"},"state_code":{"type":"string","maxLength":20,"title":"State Code","default":""},"country_code":{"type":"string","maxLength":2,"title":"Country Code","default":"US"},"postcode":{"type":"string","maxLength":32,"title":"Postcode"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"phone":{"type":"string","maxLength":50,"title":"Phone","default":""}},"type":"object","required":["street1","city","postcode"],"title":"PrintProofRequest","description":"Request body for ordering a print proof copy via Lulu."},"PriorAppearance":{"properties":{"show":{"type":"string","maxLength":255,"title":"Show"},"host":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Host"},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Url"},"topic":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Topic"},"notable":{"type":"boolean","title":"Notable","default":false}},"additionalProperties":false,"type":"object","required":["show"],"title":"PriorAppearance","description":"A podcast the author has previously guested on — social proof for pitches.\n\n`notable=True` flags a high-profile appearance the copy should lead with."},"PrivacyRequestBody":{"properties":{"kind":{"type":"string","enum":["export","delete"],"title":"Kind"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"PrivacyRequestBody"},"PrivacyRequestCreate":{"properties":{"request_type":{"type":"string","enum":["access","export","deletion","correction","other"],"title":"Request Type"},"requester_email":{"type":"string","format":"email","title":"Requester Email"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"requester_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["request_type","requester_email"],"title":"PrivacyRequestCreate"},"PrivacyRequestReview":{"properties":{"status":{"type":"string","enum":["received","verifying","in_review","completed","denied"],"title":"Status","default":"in_review"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"review_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Notes"},"legal_hold":{"type":"boolean","title":"Legal Hold","default":false},"provider_followups":{"items":{"type":"string"},"type":"array","title":"Provider Followups"}},"type":"object","title":"PrivacyRequestReview"},"PrivatePagesAnswerRequest":{"properties":{"option":{"type":"string","enum":["pages","none","own_website"],"title":"Option"},"website":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Website"},"question_sha256":{"type":"string","maxLength":64,"minLength":1,"title":"Question Sha256"}},"additionalProperties":false,"type":"object","required":["option","question_sha256"],"title":"PrivatePagesAnswerRequest","description":"Her answer to the one private-pages question (GH #14096 item 8)."},"ProductCreateRequest":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name"},"code":{"type":"string","maxLength":100,"title":"Code"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","maxLength":3,"title":"Currency","default":"usd"},"features_json":{"items":{},"type":"array","maxItems":50,"title":"Features Json"},"ideal_for":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Ideal For"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"stripe_price_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Stripe Price Id"},"metadata":{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":50,"title":"Metadata"}},"type":"object","required":["name","code","price_cents"],"title":"ProductCreateRequest","description":"Create a new product in the catalog."},"ProductListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"features_json":{"items":{},"type":"array","title":"Features Json","default":[]},"ideal_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ideal For"},"sort_order":{"type":"integer","title":"Sort Order"},"is_active":{"type":"boolean","title":"Is Active"},"stripe_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Price Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","code","price_cents","currency","sort_order","is_active","created_at","updated_at"],"title":"ProductListResponse","description":"Product detail returned from admin endpoints."},"ProductOnboardingEntry":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"purchased_at":{"type":"string","format":"date-time","title":"Purchased At"},"readiness":{"$ref":"#/components/schemas/ProductReadiness"},"shelf":{"items":{"$ref":"#/components/schemas/ProductShelfItem"},"type":"array","title":"Shelf"},"responses":{"additionalProperties":true,"type":"object","title":"Responses"}},"type":"object","required":["code","name","purchased_at","readiness"],"title":"ProductOnboardingEntry","description":"One owned product in the GET /onboarding/products/{project_id} list."},"ProductOnboardingList":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"products":{"items":{"$ref":"#/components/schemas/ProductOnboardingEntry"},"type":"array","title":"Products"}},"type":"object","required":["project_id"],"title":"ProductOnboardingList","description":"GET /onboarding/products/{project_id} response. Empty products list\nmeans the frontend hides the panel entirely."},"ProductReadiness":{"properties":{"ready":{"type":"boolean","title":"Ready"},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready At"},"items":{"items":{"$ref":"#/components/schemas/ReadinessItem"},"type":"array","title":"Items"}},"type":"object","required":["ready"],"title":"ProductReadiness","description":"Computed readiness block for one owned product."},"ProductResponsesEcho":{"properties":{"responses":{"additionalProperties":true,"type":"object","title":"Responses"}},"type":"object","title":"ProductResponsesEcho"},"ProductResponsesSubmit":{"properties":{"calendar_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Calendar Url"}},"type":"object","title":"ProductResponsesSubmit","description":"PUT body — explicit named fields only (no dict passthrough).\n\nv1 allowlist is exactly calendar_url; URL validity is checked in the\nhandler (repo _validate_http_url idiom) so failures return the structured\n{\"status\": ...} detail body the frontend parses."},"ProductShelfItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"item_type":{"type":"string","title":"Item Type"},"title":{"type":"string","maxLength":500,"title":"Title"},"body_markdown":{"type":"string","title":"Body Markdown","default":""},"video_embed_url":{"type":"string","title":"Video Embed Url","default":""},"action_prompt":{"type":"string","title":"Action Prompt","default":""},"unlocked":{"type":"boolean","title":"Unlocked"},"unlocked_on_day":{"type":"integer","title":"Unlocked On Day"},"unlock_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unlock Date"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["id","item_type","title","unlocked","unlocked_on_day"],"title":"ProductShelfItem","description":"Journey-style gated shelf item (product-owned:{code} shelf).\n\nLocked items are title-only: the route builder must leave body/prompt\nempty when unlocked is False. unlock_date + sort_order complete the\njourney-item shape the frontend renders (WP-C portal-types\nProductShelfItem) — additive to the frozen contract, never renamed."},"ProductUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"currency":{"anyOf":[{"type":"string","maxLength":3},{"type":"null"}],"title":"Currency"},"features_json":{"anyOf":[{"items":{},"type":"array","maxItems":50},{"type":"null"}],"title":"Features Json"},"ideal_for":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Ideal For"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"stripe_price_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Stripe Price Id"},"metadata":{"anyOf":[{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":50},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"ProductUpdateRequest","description":"Partial update for an existing product."},"ProfilePatch":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Full Name"},"legal_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Legal Name"},"business_name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Business Name"},"website":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Website"},"audience_description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Audience Description"},"audience_size_band":{"anyOf":[{"type":"string","enum":["under_1k","1k_10k","10k_50k","50k_250k","over_250k","unknown"]},{"type":"null"}],"title":"Audience Size Band"},"promotion_channels":{"anyOf":[{"items":{"type":"string","enum":["email_list","blog","youtube","podcast","facebook","instagram","linkedin","tiktok","x_twitter","paid_ads","webinars","community","other"]},"type":"array","maxItems":13},{"type":"null"}],"title":"Promotion Channels"},"country":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Country"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"intended_launch_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Intended Launch Date"},"intended_launch_channel":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Intended Launch Channel"},"preferred_platform":{"anyOf":[{"type":"string","enum":["jvzoo","clickbank","digistore24"]},{"type":"null"}],"title":"Preferred Platform"}},"additionalProperties":false,"type":"object","title":"ProfilePatch"},"ProgressResponse":{"properties":{"modules":{"items":{"$ref":"#/components/schemas/ModuleProgressResponse"},"type":"array","title":"Modules"},"quizzes":{"items":{"$ref":"#/components/schemas/QuizAttemptResponse"},"type":"array","title":"Quizzes"},"is_certified":{"type":"boolean","title":"Is Certified"}},"type":"object","required":["modules","quizzes","is_certified"],"title":"ProgressResponse","description":"Full progress snapshot for a rep across modules and quizzes."},"ProjectSummary":{"properties":{"project_id":{"type":"string","title":"Project Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"type":"string","title":"Client Email"},"package_tier":{"type":"string","title":"Package Tier"},"status":{"type":"string","title":"Status"},"lifecycle_state":{"type":"string","title":"Lifecycle State"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"chapter_links":{"items":{"$ref":"#/components/schemas/ChapterLink"},"type":"array","title":"Chapter Links"},"books":{"items":{"$ref":"#/components/schemas/SupportBookSummary"},"type":"array","maxItems":5,"title":"Books"}},"type":"object","required":["project_id","client_name","client_email","package_tier","status","lifecycle_state"],"title":"ProjectSummary"},"ProjectVoiceFeedbackResponse":{"properties":{"chapters":{"items":{"$ref":"#/components/schemas/ChapterVoiceVerdict"},"type":"array","title":"Chapters"}},"type":"object","title":"ProjectVoiceFeedbackResponse"},"PromoBlock":{"properties":{"launch_price":{"type":"string","title":"Launch Price","default":""},"regular_price":{"type":"string","title":"Regular Price","default":""},"promotional_windows":{"items":{"$ref":"#/components/schemas/PromoWindow"},"type":"array","title":"Promotional Windows","default":[]},"launch_day":{"type":"string","title":"Launch Day","default":""},"week_1":{"type":"string","title":"Week 1","default":""},"ready":{"type":"boolean","title":"Ready","default":false},"note":{"type":"string","title":"Note","default":""}},"additionalProperties":false,"type":"object","title":"PromoBlock"},"PromoWindow":{"properties":{"timing":{"type":"string","title":"Timing","default":""},"price":{"type":"string","title":"Price","default":""},"rationale":{"type":"string","title":"Rationale","default":""}},"additionalProperties":false,"type":"object","title":"PromoWindow"},"PromotionTargetCreate":{"properties":{"kind":{"type":"string","enum":["book","website","funnel","practice","phone","offer","other"],"title":"Kind"},"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"value":{"type":"string","maxLength":500,"minLength":1,"title":"Value"},"compliance_notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Compliance Notes"},"active":{"type":"boolean","title":"Active","default":true},"sort_order":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Sort Order","default":0}},"type":"object","required":["kind","label","value"],"title":"PromotionTargetCreate","description":"Author-supplied new promotion target. project_id comes from the route\npath, never the body (ownership is checked in the handler)."},"PromotionTargetUpdate":{"properties":{"kind":{"anyOf":[{"type":"string","enum":["book","website","funnel","practice","phone","offer","other"]},{"type":"null"}],"title":"Kind"},"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"value":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Value"},"compliance_notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Compliance Notes"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"sort_order":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"PromotionTargetUpdate","description":"Partial update. Only non-None fields are written."},"PronunciationCorrectionRequest":{"properties":{"term":{"type":"string","maxLength":120,"minLength":1,"title":"Term"},"sounds_like":{"type":"string","maxLength":160,"minLength":1,"title":"Sounds Like"},"apply":{"type":"boolean","title":"Apply","default":false}},"additionalProperties":false,"type":"object","required":["term","sounds_like"],"title":"PronunciationCorrectionRequest","description":"Fix how one approved name or term is spoken across a finished season."},"ProviderMarkerCleanupRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"ProviderMarkerCleanupRequest"},"ProvisionBody":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"role":{"anyOf":[{"type":"string","enum":["partner","manager"]},{"type":"null"}],"title":"Role"},"code":{"type":"string","maxLength":32,"minLength":3,"pattern":"^[a-z0-9][a-z0-9-]{2,31}$","title":"Code"},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"send_welcome":{"type":"boolean","title":"Send Welcome","default":true},"manager_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Manager Code"},"jvzoo_affiliate_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_.@-]*$"},{"type":"null"}],"title":"Jvzoo Affiliate Id"},"trust_marketplace_ids":{"type":"boolean","title":"Trust Marketplace Ids","default":false}},"additionalProperties":false,"type":"object","required":["email","name","code"],"title":"ProvisionBody"},"PublicAnsweredQuestion":{"properties":{"question":{"type":"string","title":"Question"},"answer_excerpt":{"type":"string","title":"Answer Excerpt"}},"type":"object","required":["question","answer_excerpt"],"title":"PublicAnsweredQuestion"},"PublicAuthor":{"properties":{"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"headshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headshot Url"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"book_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Subtitle"},"bio_short":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio Short"},"amazon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amazon Url"},"stage_label":{"type":"string","enum":["Writing now","Cover revealed","Published"],"title":"Stage Label"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"milestones":{"items":{"$ref":"#/components/schemas/PublicMilestone"},"type":"array","title":"Milestones"},"reader_page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reader Page Url"}},"type":"object","required":["slug","display_name","stage_label"],"title":"PublicAuthor"},"PublicAuthorDetailResponse":{"properties":{"author":{"$ref":"#/components/schemas/PublicAuthor"},"testimonials":{"items":{"$ref":"#/components/schemas/PublicTestimonial"},"type":"array","title":"Testimonials"},"book":{"anyOf":[{"$ref":"#/components/schemas/PublicBookFacts"},{"type":"null"}]}},"type":"object","required":["author","testimonials"],"title":"PublicAuthorDetailResponse"},"PublicAuthorsResponse":{"properties":{"authors":{"items":{"$ref":"#/components/schemas/PublicAuthor"},"type":"array","title":"Authors"}},"type":"object","required":["authors"],"title":"PublicAuthorsResponse"},"PublicBookFacts":{"properties":{"isbn":{"anyOf":[{"type":"string","maxLength":13},{"type":"null"}],"title":"Isbn"},"amazon_urls":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Amazon Urls"}},"type":"object","title":"PublicBookFacts","description":"A published book's stored identifiers, for its schema.org Book markup\n(GH #16513). Only stored values: a check-digit-valid ISBN-13 and one\namazon.com/dp link per stored ASIN."},"PublicChapterShareFeedbackRequest":{"properties":{"kind":{"type":"string","enum":["comment","suggestion"],"title":"Kind"},"exact_quote":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Exact Quote"},"prefix":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Prefix"},"suffix":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Suffix"},"approx_start":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Approx Start"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"},"suggested_text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Suggested Text"},"anchored_draft_version":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Anchored Draft Version"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"PublicChapterShareFeedbackRequest"},"PublicChapterShareFeedbackResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true}},"type":"object","title":"PublicChapterShareFeedbackResponse"},"PublicChapterShareResponse":{"properties":{"mode":{"type":"string","enum":["view","comment","edit"],"title":"Mode"},"scope":{"type":"string","enum":["chapter","book"],"title":"Scope","default":"chapter"},"ended":{"type":"boolean","title":"Ended","default":false},"locked":{"type":"boolean","title":"Locked","default":true},"reader_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reader First Name"},"reader_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reader Email"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"chapter_title":{"type":"string","title":"Chapter Title"},"draft":{"type":"string","title":"Draft"},"draft_version":{"type":"integer","title":"Draft Version","default":0},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"book_title_is_working":{"type":"boolean","title":"Book Title Is Working","default":false},"book_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Subtitle"},"book_blurb":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Blurb"},"author_name":{"type":"string","title":"Author Name"},"author_first_name":{"type":"string","title":"Author First Name"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio"},"author_photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Photo Url"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"dictate_url":{"type":"string","title":"Dictate Url"},"is_referral_link":{"type":"boolean","title":"Is Referral Link","default":false},"launch_list_available":{"type":"boolean","title":"Launch List Available","default":false},"white_label":{"type":"boolean","title":"White Label","default":false}},"type":"object","required":["mode","chapter_title","draft","author_name","author_first_name","dictate_url"],"title":"PublicChapterShareResponse"},"PublicChapterShareUnlockRequest":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"PublicChapterShareUnlockRequest"},"PublicChapterShareUnlockResponse":{"properties":{"session":{"type":"string","title":"Session"}},"type":"object","required":["session"],"title":"PublicChapterShareUnlockResponse"},"PublicExpertApproveRequest":{"properties":{"final_text":{"type":"string","maxLength":40000,"minLength":1,"title":"Final Text"},"typed_name":{"type":"string","maxLength":200,"minLength":2,"title":"Typed Name"},"byline_name":{"type":"string","maxLength":120,"minLength":1,"title":"Byline Name"},"byline_credentials":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Byline Credentials"},"release_version":{"type":"string","maxLength":80,"minLength":1,"title":"Release Version"},"release_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Release Sha256"}},"additionalProperties":false,"type":"object","required":["final_text","typed_name","byline_name","release_version","release_sha256"],"title":"PublicExpertApproveRequest"},"PublicExpertCallRequest":{"properties":{"phone":{"type":"string","maxLength":32,"minLength":7,"title":"Phone"},"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"notice_version":{"type":"string","maxLength":80,"minLength":1,"title":"Notice Version"},"notice_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Notice Sha256"}},"additionalProperties":false,"type":"object","required":["phone","timezone","notice_version","notice_sha256"],"title":"PublicExpertCallRequest","description":"The expert asks Silas to call THEIR OWN number (never one the author\ngave). The notice is bound by digest echo, like the release."},"PublicExpertDraftRequest":{"properties":{"text":{"type":"string","maxLength":40000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"PublicExpertDraftRequest"},"PublicExpertForewordResponse":{"properties":{"locked":{"type":"boolean","title":"Locked"},"status":{"type":"string","enum":["invited","transcribing","cleaning","review","approved","accepted"],"title":"Status"},"expert_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert First Name"},"expert_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Name"},"expert_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Email"},"credentials":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentials"},"author_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Note"},"source_kind":{"anyOf":[{"type":"string","enum":["typed","recorded","call"]},{"type":"null"}],"title":"Source Kind"},"original_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Text"},"cleaned_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cleaned Text"},"cleanup_changes":{"items":{"type":"string"},"type":"array","title":"Cleanup Changes"},"cleanup_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cleanup Note"},"processing_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processing Error"},"final_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Text"},"byline_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline Name"},"byline_credentials":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline Credentials"},"byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"release":{"anyOf":[{"$ref":"#/components/schemas/ReleaseOfferModel"},{"type":"null"}]},"book_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Title"},"book_title_is_working":{"type":"boolean","title":"Book Title Is Working","default":false},"book_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Subtitle"},"book_blurb":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Blurb"},"author_name":{"type":"string","title":"Author Name"},"author_first_name":{"type":"string","title":"Author First Name"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio"},"author_photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Photo Url"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"call_me_available":{"type":"boolean","title":"Call Me Available","default":false},"call":{"anyOf":[{"$ref":"#/components/schemas/ForewordCallView"},{"type":"null"}]},"min_words":{"type":"integer","title":"Min Words","default":40},"suggested_words":{"items":{"type":"integer"},"type":"array","title":"Suggested Words"},"max_recording_seconds":{"type":"integer","title":"Max Recording Seconds","default":1800}},"type":"object","required":["locked","status","author_name","author_first_name"],"title":"PublicExpertForewordResponse"},"PublicExpertOkResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"status":{"anyOf":[{"type":"string","enum":["invited","transcribing","cleaning","review","approved","accepted"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"PublicExpertOkResponse"},"PublicExpertUnlockRequest":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"PublicExpertUnlockRequest"},"PublicExpertUnlockResponse":{"properties":{"session":{"type":"string","title":"Session"}},"type":"object","required":["session"],"title":"PublicExpertUnlockResponse"},"PublicFinancingIntakeRequest":{"properties":{"track":{"type":"string","enum":["authority","packages"],"title":"Track"},"buyer_name":{"type":"string","maxLength":200,"minLength":1,"title":"Buyer Name"},"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"buyer_phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Buyer Phone"},"product_code":{"type":"string","enum":["authority_book","authority_book_launch","talk_your_book_diy","book_package","business_package","backend_package"],"title":"Product Code"},"audiobook":{"type":"boolean","title":"Audiobook","default":false},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","default":"US"},"state_or_province":{"type":"string","maxLength":80,"title":"State Or Province","default":""},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"USD"},"purchase_use":{"type":"string","const":"business","title":"Purchase Use","default":"business"},"credit_band":{"type":"string","enum":["unknown","no_credit","below_460","460_549","550_599","600_669","670_plus"],"title":"Credit Band","default":"unknown"},"income_band":{"type":"string","maxLength":80,"title":"Income Band","default":""},"down_payment_band":{"type":"string","maxLength":80,"title":"Down Payment Band","default":""},"monthly_comfort_band":{"type":"string","maxLength":80,"title":"Monthly Comfort Band","default":""},"preferred_term_months":{"type":"string","maxLength":20,"title":"Preferred Term Months","default":""},"can_pay_in_full":{"type":"boolean","title":"Can Pay In Full","default":false},"has_full_limit_card":{"type":"boolean","title":"Has Full Limit Card","default":false},"avoid_hard_inquiry":{"type":"boolean","title":"Avoid Hard Inquiry","default":false},"attempted_providers":{"type":"string","maxLength":500,"title":"Attempted Providers","default":""},"wants_jill_help":{"type":"boolean","title":"Wants Jill Help","default":false},"ghl_credit_consent":{"type":"boolean","title":"Ghl Credit Consent","default":false},"intake_token":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Intake Token"}},"type":"object","required":["track","buyer_name","buyer_email","product_code"],"title":"PublicFinancingIntakeRequest","description":"Browser contract; normalised server-side before it reaches the ledger."},"PublicMilestone":{"properties":{"key":{"type":"string","enum":["first_interview","first_chapter","cover_approved","book_live"],"title":"Key"},"label":{"type":"string","title":"Label"},"reached_at":{"type":"string","title":"Reached At"}},"type":"object","required":["key","label","reached_at"],"title":"PublicMilestone"},"PublicQuestion":{"properties":{"question":{"type":"string","title":"Question"},"slug":{"type":"string","title":"Slug"},"stories":{"items":{"$ref":"#/components/schemas/PublicQuestionStory"},"type":"array","title":"Stories"}},"type":"object","required":["question","slug","stories"],"title":"PublicQuestion"},"PublicQuestionStory":{"properties":{"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"answer_excerpt":{"type":"string","title":"Answer Excerpt"},"youtube_video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Video Id"},"media_kind":{"type":"string","enum":["text","audio","video"],"title":"Media Kind"},"testimonial_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Testimonial Id"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"disclosures":{"items":{"type":"string"},"type":"array","title":"Disclosures"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"}},"type":"object","required":["slug","display_name","answer_excerpt","media_kind"],"title":"PublicQuestionStory"},"PublicQuestionsResponse":{"properties":{"questions":{"items":{"$ref":"#/components/schemas/PublicQuestion"},"type":"array","title":"Questions"}},"type":"object","required":["questions"],"title":"PublicQuestionsResponse"},"PublicSalesPlanOfferResponse":{"properties":{"status":{"type":"string","maxLength":50,"title":"Status"},"product_name":{"type":"string","title":"Product Name"},"buyer_email_masked":{"type":"string","title":"Buyer Email Masked"},"buyer_phone_supplied":{"type":"boolean","title":"Buyer Phone Supplied"},"plan":{"$ref":"#/components/schemas/PlanQuote"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"agreement_version":{"type":"string","title":"Agreement Version"},"agreement_copy":{"type":"string","title":"Agreement Copy"},"platform_disclosure":{"anyOf":[{"type":"string","maxLength":1200},{"type":"null"}],"title":"Platform Disclosure"}},"type":"object","required":["status","product_name","buyer_email_masked","buyer_phone_supplied","plan","expires_at","agreement_version","agreement_copy"],"title":"PublicSalesPlanOfferResponse"},"PublicSubmitRequest":{"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"phone":{"type":"string","maxLength":40,"minLength":7,"title":"Phone"},"book_idea":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Book Idea"},"src":{"anyOf":[{"type":"string","enum":["link","qr","book","cover_vote"]},{"type":"null"}],"title":"Src"},"utm":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":200},"propertyNames":{"maxLength":40},"type":"object","maxProperties":10},{"type":"null"}],"title":"Utm"},"visitor_id":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Visitor Id"}},"additionalProperties":false,"type":"object","required":["first_name","last_name","email","phone"],"title":"PublicSubmitRequest"},"PublicTestimonial":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"media_kind":{"type":"string","enum":["text","audio","video"],"title":"Media Kind"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"disclosures":{"items":{"type":"string"},"type":"array","title":"Disclosures"},"youtube_video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Video Id"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"milestone_label":{"type":"string","title":"Milestone Label"},"answers_questions":{"items":{"$ref":"#/components/schemas/PublicAnsweredQuestion"},"type":"array","title":"Answers Questions"}},"type":"object","required":["id","media_kind","milestone_label"],"title":"PublicTestimonial"},"PublicWallResponse":{"properties":{"stories":{"items":{"$ref":"#/components/schemas/PublicWallStory"},"type":"array","title":"Stories"}},"type":"object","required":["stories"],"title":"PublicWallResponse"},"PublicWallStory":{"properties":{"author":{"$ref":"#/components/schemas/PublicAuthor"},"story":{"$ref":"#/components/schemas/PublicTestimonial"}},"type":"object","required":["author","story"],"title":"PublicWallStory","description":"One story on the Testimonial Wall, with the author it belongs to."},"PublicWindowView":{"properties":{"current":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current"},"suggested":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested"},"in_sync":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Sync"}},"additionalProperties":false,"type":"object","required":["current","suggested","in_sync"],"title":"PublicWindowView"},"PublishingHelpRequest":{"properties":{"platform":{"type":"string","maxLength":100,"title":"Platform"},"issue":{"type":"string","maxLength":5000,"title":"Issue","default":""},"request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"}},"additionalProperties":true,"type":"object","required":["platform"],"title":"PublishingHelpRequest"},"PublishingMetadataRevisionRequest":{"properties":{"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""}},"additionalProperties":true,"type":"object","title":"PublishingMetadataRevisionRequest"},"PublishingMetadataUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Subtitle"},"subtitle_locked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Subtitle Locked"},"benefit_stack":{"anyOf":[{"items":{"type":"string","maxLength":250},"type":"array","maxItems":12},{"type":"null"}],"title":"Benefit Stack"},"author_display_name":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Author Display Name"},"author_credentials":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Author Credentials"},"format_intent":{"anyOf":[{"additionalProperties":{"type":"boolean"},"propertyNames":{"maxLength":50},"type":"object","maxProperties":10},{"type":"null"}],"title":"Format Intent"},"trim_size":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Trim Size"},"paper_type":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Paper Type"},"bisac_categories":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/PortalPublishingBisacCategory"},{"type":"string","maxLength":250}]},"type":"array","maxItems":10},{"type":"null"}],"title":"Bisac Categories"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":100},"type":"array","maxItems":50},{"type":"null"}],"title":"Keywords"},"isbn_ebook":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Isbn Ebook"},"isbn_paperback":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Isbn Paperback"},"isbn_hardcover":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Isbn Hardcover"},"isbn_audiobook":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Isbn Audiobook"},"imprint_name":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Imprint Name"},"copyright_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Copyright Text"},"publisher_name":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Publisher Name"},"publication_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publication Date"},"list_price_usd":{"anyOf":[{"type":"number","maximum":999.99,"minimum":0.99},{"type":"string"},{"type":"null"}],"title":"List Price Usd"},"description_short":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description Short"},"description_long":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description Long"},"author_bio_publishing":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Author Bio Publishing"},"endorsements":{"anyOf":[{"items":{"$ref":"#/components/schemas/PortalPublishingEndorsement"},"type":"array","maxItems":25},{"type":"null"}],"title":"Endorsements"},"expected_version":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":1.0},{"type":"null"}],"title":"Expected Version"}},"additionalProperties":false,"type":"object","title":"PublishingMetadataUpdateRequest","description":"Author-writable fields for portal publishing metadata updates."},"PublishingWizardProgressRequest":{"properties":{"platform":{"type":"string","maxLength":100,"title":"Platform"},"status":{"type":"string","maxLength":100,"title":"Status"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object","maxProperties":50},{"type":"null"}],"title":"Metadata"}},"additionalProperties":true,"type":"object","required":["platform","status"],"title":"PublishingWizardProgressRequest"},"PutChapterDraftRequest":{"properties":{"draft":{"type":"string","maxLength":200000,"minLength":1,"title":"Draft"},"expected_draft_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Draft Version"},"expected_draft_content":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Expected Draft Content"}},"additionalProperties":false,"type":"object","required":["draft"],"title":"PutChapterDraftRequest","description":"An author's direct edit of a chapter draft (editor edit mode).\n\nA single explicit, length-bounded field (author-facing write rule: named\nfields, no ``dict``/``extra='allow'``). The server re-validates the markdown\nagainst the editor subset in ``validate_editor_markdown``."},"QBOChartAction":{"properties":{"role":{"type":"string","title":"Role"},"name":{"type":"string","title":"Name"},"account_type":{"type":"string","title":"Account Type"},"account_sub_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Sub Type"},"action":{"type":"string","enum":["adopt_existing","create","already_mapped","name_conflict"],"title":"Action"},"qbo_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qbo Account Id"},"existing_account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existing Account Type"}},"type":"object","required":["role","name","account_type","action"],"title":"QBOChartAction"},"QBOChartPlanResponse":{"properties":{"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment"},"realm_id":{"type":"string","title":"Realm Id"},"actions":{"items":{"$ref":"#/components/schemas/QBOChartAction"},"type":"array","title":"Actions"},"queued":{"type":"boolean","title":"Queued","default":false}},"type":"object","required":["environment","realm_id"],"title":"QBOChartPlanResponse"},"QBOConnectUrlResponse":{"properties":{"connect_url":{"type":"string","title":"Connect Url"}},"type":"object","required":["connect_url"],"title":"QBOConnectUrlResponse","description":"Where the portal sends the browser: our own /connect entry point,\nwhich binds the browser and then redirects to Intuit."},"QBOConnectionStatusResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"writes_enabled":{"type":"boolean","title":"Writes Enabled"},"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment"},"status":{"type":"string","enum":["healthy","expiring","needs_reconnect","missing"],"title":"Status"},"realm_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realm Id"},"company_name":{"type":"string","title":"Company Name","default":""},"is_pinned_production_realm":{"type":"boolean","title":"Is Pinned Production Realm","default":false},"connected_by":{"type":"string","title":"Connected By","default":""},"installed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Installed At"},"access_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Access Expires At"},"refresh_token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Refresh Token Expires At"},"last_refreshed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Refreshed At"},"last_refresh_error":{"type":"string","title":"Last Refresh Error","default":""}},"type":"object","required":["enabled","writes_enabled","environment","status"],"title":"QBOConnectionStatusResponse","description":"Admin view of the connection. Never carries token material."},"QBODisconnectResponse":{"properties":{"disconnected":{"type":"boolean","title":"Disconnected"},"environment":{"type":"string","title":"Environment"},"realm_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realm Id"}},"type":"object","required":["disconnected","environment"],"title":"QBODisconnectResponse"},"QuestionnaireDraftResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"has_draft":{"type":"boolean","title":"Has Draft","default":false},"book_goals":{"type":"string","title":"Book Goals","default":""},"target_audience":{"type":"string","title":"Target Audience","default":""},"tone_preferences":{"type":"string","title":"Tone Preferences","default":""},"topics_to_avoid":{"type":"string","title":"Topics To Avoid","default":""},"competitor_books":{"type":"string","title":"Competitor Books","default":""},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"}},"type":"object","required":["project_id"],"title":"QuestionnaireDraftResponse","description":"The stored draft, or ``has_draft=False`` with empty answers."},"QuestionnaireDraftSave":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"book_goals":{"type":"string","maxLength":52000,"title":"Book Goals","default":""},"target_audience":{"type":"string","maxLength":52000,"title":"Target Audience","default":""},"tone_preferences":{"type":"string","maxLength":52000,"title":"Tone Preferences","default":""},"topics_to_avoid":{"type":"string","maxLength":52000,"title":"Topics To Avoid","default":""},"competitor_books":{"type":"string","maxLength":52000,"title":"Competitor Books","default":""}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"QuestionnaireDraftSave","description":"Autosaved questionnaire draft. Saving never confirms the step."},"QuickAnswerIn":{"properties":{"answer":{"type":"string","enum":["yes","edit","remove","tell"],"title":"Answer"},"text":{"type":"string","maxLength":1800,"title":"Text","default":""},"expected_version":{"type":"integer","minimum":0.0,"title":"Expected Version"}},"type":"object","required":["answer","expected_version"],"title":"QuickAnswerIn"},"QuizAttemptResetRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"QuizAttemptResetRequest","description":"Optional note for the audit row."},"QuizAttemptResetResponse":{"properties":{"attempt_id":{"type":"string","format":"uuid","title":"Attempt Id"},"outcome":{"type":"string","title":"Outcome"},"message":{"type":"string","title":"Message"},"sales_rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sales Rep Id"},"quiz_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Quiz Id"},"attempts_cleared":{"type":"integer","title":"Attempts Cleared","default":0},"reset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reset Id"}},"type":"object","required":["attempt_id","outcome","message"],"title":"QuizAttemptResetResponse"},"QuizAttemptResponse":{"properties":{"quiz_number":{"type":"integer","title":"Quiz Number"},"title":{"type":"string","title":"Title"},"best_score":{"type":"integer","title":"Best Score","default":0},"passed":{"type":"boolean","title":"Passed","default":false},"attempts_used":{"type":"integer","title":"Attempts Used","default":0}},"type":"object","required":["quiz_number","title"],"title":"QuizAttemptResponse","description":"Aggregated quiz attempt summary for a rep."},"QuizCorrectionItem":{"properties":{"question_id":{"type":"string","format":"uuid","title":"Question Id"},"question_number":{"type":"integer","title":"Question Number"},"question_text":{"type":"string","title":"Question Text"},"correct_answer":{"type":"string","title":"Correct Answer"},"your_answer":{"type":"string","title":"Your Answer"},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation"}},"type":"object","required":["question_id","question_number","question_text","correct_answer","your_answer"],"title":"QuizCorrectionItem","description":"Correction detail for a single missed question."},"QuizResponse":{"properties":{"status":{"type":"string","title":"Status"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["status"],"title":"QuizResponse","description":"Quiz submission response."},"QuizResultsJobResponse":{"properties":{"status":{"type":"string","title":"Status"},"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["status","job_id"],"title":"QuizResultsJobResponse","description":"Queued quiz results job response."},"QuizResultsRequest":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Full Name"},"book_topic":{"type":"string","maxLength":2000,"title":"Book Topic"},"target_audience":{"type":"string","maxLength":2000,"title":"Target Audience"},"business_type":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Business Type"},"book_goal":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Book Goal"},"urgency":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Urgency"},"has_existing_content":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Existing Content"},"existing_content_types":{"anyOf":[{"items":{"type":"string","maxLength":120},"type":"array","maxItems":20},{"type":"null"}],"title":"Existing Content Types"},"unique_approach":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Unique Approach"},"ideal_reader":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Ideal Reader"}},"type":"object","required":["book_topic","target_audience"],"title":"QuizResultsRequest","description":"Request body for quiz results generation."},"QuizResultsStatusResponse":{"properties":{"status":{"type":"string","title":"Status"},"job_id":{"type":"string","title":"Job Id"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"book_angle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Angle"},"viability_indicators":{"anyOf":[{"items":{"$ref":"#/components/schemas/ViabilityIndicator"},"type":"array"},{"type":"null"}],"title":"Viability Indicators"},"recommended_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Tier"},"tier_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier Rationale"},"blueprint_teaser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blueprint Teaser"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["status","job_id"],"title":"QuizResultsStatusResponse","description":"Queued quiz results status response."},"QuizSubmission":{"properties":{"full_name":{"type":"string","maxLength":80,"title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Phone"},"timezone":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Timezone"},"book_topic":{"type":"string","maxLength":2000,"title":"Book Topic"},"target_audience":{"type":"string","maxLength":2000,"title":"Target Audience"},"business_type":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Business Type"},"book_goal":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Book Goal"},"urgency":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Urgency"},"has_existing_content":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Existing Content"},"existing_content_types":{"anyOf":[{"items":{"type":"string","maxLength":120},"type":"array","maxItems":20},{"type":"null"}],"title":"Existing Content Types"},"unique_approach":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Unique Approach"},"ideal_reader":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Ideal Reader"},"source_campaign":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Source Campaign"}},"type":"object","required":["full_name","email","book_topic","target_audience"],"title":"QuizSubmission","description":"Quiz submission payload."},"QuizSubmitResponse":{"properties":{"score":{"type":"integer","title":"Score"},"passed":{"type":"boolean","title":"Passed"},"attempt_number":{"type":"integer","title":"Attempt Number"},"max_attempts":{"type":"integer","title":"Max Attempts"},"corrections":{"items":{"$ref":"#/components/schemas/QuizCorrectionItem"},"type":"array","title":"Corrections"},"is_certified":{"type":"boolean","title":"Is Certified","default":false}},"type":"object","required":["score","passed","attempt_number","max_attempts","corrections"],"title":"QuizSubmitResponse","description":"Response after submitting a quiz attempt."},"ReadBackAnswer":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"page_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Page Sha256"},"item_key":{"type":"string","maxLength":80,"minLength":1,"title":"Item Key"},"decision":{"type":"string","enum":["keep","change","drop"],"title":"Decision"},"words":{"type":"string","maxLength":2000,"title":"Words","default":""}},"additionalProperties":false,"type":"object","required":["artifact_id","page_sha256","item_key","decision"],"title":"ReadBackAnswer","description":"One thing we heard: keep it, change it (their words), or drop it."},"ReaderRequest":{"properties":{"kind":{"type":"string","enum":["titles","chapter_titles","marketing_concepts","ad_copy"],"title":"Kind","default":"titles"},"candidates":{"items":{"type":"string","maxLength":3000,"minLength":1},"type":"array","maxItems":8,"title":"Candidates"},"context":{"type":"string","maxLength":6000,"title":"Context","default":""},"chapter_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chapter Id"}},"additionalProperties":false,"type":"object","title":"ReaderRequest"},"ReaderTeamBlock":{"properties":{"list_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"List Count"},"consented_reader_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Consented Reader Count"},"prelaunch_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prelaunch Url"},"cover_vote_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Vote Url"},"email_subject":{"type":"string","title":"Email Subject","default":""},"email_body":{"type":"string","title":"Email Body","default":""}},"additionalProperties":false,"type":"object","title":"ReaderTeamBlock","description":"The people who will buy on day one — a COUNT, a draft, and a consent tally.\n\nThe overview still returns NO names and NO addresses. ``consented_reader_count``\nis a number, so the page can say \"N of them asked you to contact them\"\nwithout a second request; the names themselves live behind the separate\nread-only ``/readers`` endpoint, which is the only place they ever appear."},"ReadinessItem":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"why":{"type":"string","title":"Why"},"status":{"type":"string","enum":["complete","pending","not_applicable"],"title":"Status"},"collect_hint":{"type":"string","enum":["social_consent","social_assets","headshot","profile","podcast_offer","inline_response","none"],"title":"Collect Hint"},"owner":{"type":"string","enum":["author","dictate"],"title":"Owner","default":"author"}},"type":"object","required":["key","label","why","status","collect_hint"],"title":"ReadinessItem","description":"One computed readiness item for an owned product."},"ReadingNoteRequest":{"properties":{"book_title":{"type":"string","maxLength":300,"minLength":1,"title":"Book Title"},"book_author":{"type":"string","maxLength":200,"title":"Book Author","default":""},"notes":{"type":"string","maxLength":4000,"minLength":1,"title":"Notes"}},"type":"object","required":["book_title","notes"],"title":"ReadingNoteRequest"},"ReasonBody":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"ReasonBody"},"RecapBatch":{"properties":{"machine":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9._-]+$","title":"Machine"},"harvester_version":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Harvester Version"},"segments":{"items":{"$ref":"#/components/schemas/RecapSegment"},"type":"array","maxItems":10,"title":"Segments"}},"additionalProperties":false,"type":"object","required":["machine"],"title":"RecapBatch"},"RecapSegment":{"properties":{"source":{"type":"string","enum":["claude_code","codex"],"title":"Source"},"session_ref":{"type":"string","maxLength":200,"minLength":1,"title":"Session Ref"},"segment_id":{"type":"string","maxLength":200,"minLength":1,"title":"Segment Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"project":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Project"},"transcript":{"type":"string","maxLength":30000,"minLength":1,"title":"Transcript"}},"additionalProperties":false,"type":"object","required":["source","session_ref","segment_id","transcript"],"title":"RecapSegment"},"ReconcileEffectRequest":{"properties":{"effect":{"type":"string","maxLength":100,"minLength":1,"title":"Effect"},"outcome":{"type":"string","enum":["sent","not_sent"],"title":"Outcome"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["effect","outcome","reason"],"title":"ReconcileEffectRequest"},"ReconcileFinancingApprovalRequest":{"properties":{"decline_outcome_id":{"type":"string","format":"uuid","title":"Decline Outcome Id"},"expected_workflow_version":{"type":"integer","minimum":0.0,"title":"Expected Workflow Version"},"resolution_kind":{"type":"string","enum":["provider_declined_after_approval","partial_approval_exhausted_after_sequence"],"title":"Resolution Kind"},"resolution_note":{"type":"string","maxLength":500,"minLength":10,"title":"Resolution Note"}},"type":"object","required":["decline_outcome_id","expected_workflow_version","resolution_kind","resolution_note"],"title":"ReconcileFinancingApprovalRequest"},"RecordOutsidePaymentRequest":{"properties":{"verification_run_id":{"type":"string","format":"uuid","title":"Verification Run Id"},"approved_amount_usd":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Approved Amount Usd"},"paid_amount_usd":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Paid Amount Usd"},"note":{"type":"string","maxLength":2000,"minLength":20,"title":"Note"},"paid_reference":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Paid Reference"},"paid_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Paid On"},"acknowledge_open_lines":{"type":"boolean","title":"Acknowledge Open Lines","default":false},"acknowledge_estimated_fees":{"type":"boolean","title":"Acknowledge Estimated Fees","default":false},"acknowledge_engine_variance":{"type":"boolean","title":"Acknowledge Engine Variance","default":false},"acknowledge_reserved_elsewhere":{"type":"boolean","title":"Acknowledge Reserved Elsewhere","default":false},"refund_credit_applications":{"items":{"$ref":"#/components/schemas/RefundCreditApplication"},"type":"array","maxItems":100,"title":"Refund Credit Applications"}},"type":"object","required":["verification_run_id","approved_amount_usd","paid_amount_usd","note"],"title":"RecordOutsidePaymentRequest","description":"Approve AND record a payment finance already made outside the email flow.\n\nEvery override the approve gate offers is here too, plus two that only an\noutside payment can need: paying an amount other than the engine's\ncommission, and a payment another approved invoice already reserves."},"RecordVoiceConsentRequest":{"properties":{"clone_consent":{"type":"boolean","title":"Clone Consent"},"consent_scope":{"anyOf":[{"type":"string","enum":["premium_video_voice","premium_video_avatar","audiobook_narration","course_narration","author_site_welcome"]},{"type":"null"}],"title":"Consent Scope"},"expected_consent_grant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected Consent Grant Id"},"statement_version":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Statement Version"},"statement_sha256":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Statement Sha256"},"consent_text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Consent Text"},"clone_consent_text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Clone Consent Text"}},"additionalProperties":false,"type":"object","required":["clone_consent"],"title":"RecordVoiceConsentRequest"},"RecordingConfirm":{"properties":{"r2_key":{"type":"string","maxLength":500,"minLength":10,"title":"R2 Key"}},"additionalProperties":false,"type":"object","required":["r2_key"],"title":"RecordingConfirm"},"RecordingRegister":{"properties":{"r2_key":{"anyOf":[{"type":"string","maxLength":500,"minLength":10},{"type":"null"}],"title":"R2 Key"},"source_url":{"anyOf":[{"type":"string","maxLength":2000,"minLength":12},{"type":"null"}],"title":"Source Url"}},"additionalProperties":false,"type":"object","title":"RecordingRegister","description":"Exactly one of: the key of a finished presigned upload, or a Zoom download link."},"RecordingUploadIntent":{"properties":{"size_bytes":{"type":"integer","maximum":5368709120.0,"minimum":1.0,"title":"Size Bytes"},"content_type":{"type":"string","enum":["video/mp4","video/quicktime","video/webm","audio/mpeg","audio/mp4"],"title":"Content Type"}},"additionalProperties":false,"type":"object","required":["size_bytes","content_type"],"title":"RecordingUploadIntent"},"RedriveQueuedResponse":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"status":{"type":"string","maxLength":40,"title":"Status"},"task_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["event_id","status"],"title":"RedriveQueuedResponse"},"ReedPeriodAccrual":{"properties":{"label":{"type":"string","title":"Label"},"commission_cents":{"type":"integer","title":"Commission Cents"},"period_end":{"type":"string","format":"date","title":"Period End"},"complete":{"type":"boolean","title":"Complete"}},"type":"object","required":["label","commission_cents","period_end","complete"],"title":"ReedPeriodAccrual"},"ReedPosition":{"properties":{"paid_to_date_cents":{"type":"integer","title":"Paid To Date Cents","default":0},"paid_through":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Paid Through"},"accrued":{"items":{"$ref":"#/components/schemas/ReedPeriodAccrual"},"type":"array","title":"Accrued"},"accrued_cents":{"type":"integer","title":"Accrued Cents","default":0},"upcoming_installments":{"items":{"$ref":"#/components/schemas/ScheduledInstallment"},"type":"array","title":"Upcoming Installments"},"upcoming_30d_cents":{"type":"integer","title":"Upcoming 30D Cents","default":0},"upcoming_90d_cents":{"type":"integer","title":"Upcoming 90D Cents","default":0}},"type":"object","title":"ReedPosition"},"RefinePlacementRequest":{"properties":{"instruction":{"type":"string","maxLength":4000,"minLength":1,"title":"Instruction"}},"additionalProperties":false,"type":"object","required":["instruction"],"title":"RefinePlacementRequest","description":"Refine the placement's current image with an edit instruction."},"RefreshSessionCookie":{"properties":{"name":{"type":"string","title":"Name"},"max_age":{"type":"integer","title":"Max Age"},"path":{"type":"string","title":"Path"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"secure":{"type":"boolean","title":"Secure"},"http_only":{"type":"boolean","title":"Http Only"},"same_site":{"type":"string","enum":["lax","strict","none"],"title":"Same Site"}},"type":"object","required":["name","max_age","path","secure","http_only","same_site"],"title":"RefreshSessionCookie","description":"Attributes the Next middleware copies onto the renewed dictate_token.\n\nMirrors app.api.routes.auth._cookie_kwargs exactly, so the renewed cookie\nreplaces the original instead of creating a second (host-only) copy."},"RefreshSessionResponse":{"properties":{"token":{"type":"string","title":"Token"},"expires_at":{"type":"number","title":"Expires At"},"session_issued_at":{"type":"number","title":"Session Issued At"},"cookie":{"$ref":"#/components/schemas/RefreshSessionCookie"}},"type":"object","required":["token","expires_at","session_issued_at","cookie"],"title":"RefreshSessionResponse"},"RefundCreditApplication":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents"}},"type":"object","required":["id","amount_cents"],"title":"RefundCreditApplication"},"RefundEvaluation":{"properties":{"action":{"type":"string","enum":["auto_refund","save_sale","escalate","denied","needs_clarification"],"title":"Action"},"amount_cents":{"type":"integer","title":"Amount Cents","default":0},"charge_ids":{"items":{"type":"string"},"type":"array","title":"Charge Ids"},"explanation":{"type":"string","title":"Explanation","default":""},"ticket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"backend":{"type":"boolean","title":"Backend","default":false}},"type":"object","required":["action"],"title":"RefundEvaluation"},"RefundRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"},"charge_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Charge Id"},"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""},"is_legal_threat":{"type":"boolean","title":"Is Legal Threat","default":false},"force":{"type":"boolean","title":"Force","default":false},"n8n_execution_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"N8N Execution Id"}},"type":"object","required":["customer_email"],"title":"RefundRequest"},"RegenerateVideoRequest":{"properties":{"channel":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Channel"}},"additionalProperties":true,"type":"object","title":"RegenerateVideoRequest"},"RegisterGoogleDocRequest":{"properties":{"doc_url":{"type":"string","maxLength":2048,"minLength":10,"title":"Doc Url"},"provenance_origin":{"type":"string","enum":["i_wrote_this_myself","ai_assisted","co_written_or_edited_by_others","unsure"],"title":"Provenance Origin"},"ownership_attested":{"type":"boolean","title":"Ownership Attested"},"label":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Label"}},"type":"object","required":["doc_url","provenance_origin","ownership_attested"],"title":"RegisterGoogleDocRequest"},"RegisterPlayRequest":{"properties":{"campaign_key":{"type":"string","maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Campaign Key"},"subject":{"type":"string","maxLength":300,"minLength":1,"title":"Subject"},"preheader":{"type":"string","maxLength":300,"title":"Preheader","default":""},"html_template":{"type":"string","maxLength":200000,"minLength":1,"title":"Html Template"},"text_template":{"type":"string","maxLength":100000,"minLength":1,"title":"Text Template"},"link_base":{"type":"string","maxLength":1000,"minLength":8,"title":"Link Base"},"play_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Play Name"},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"audience_size":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Audience Size"},"is_test":{"type":"boolean","title":"Is Test","default":false},"resume_gate_date":{"anyOf":[{"type":"string","maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Resume Gate Date"}},"additionalProperties":false,"type":"object","required":["campaign_key","subject","html_template","text_template","link_base"],"title":"RegisterPlayRequest"},"ReleaseMaterialsRequest":{"properties":{"channel":{"type":"string","enum":["portal","email","sms"],"title":"Channel","default":"portal"},"signal_text":{"type":"string","maxLength":5000,"title":"Signal Text","default":""},"notes":{"type":"string","maxLength":5000,"title":"Notes","default":""}},"type":"object","title":"ReleaseMaterialsRequest"},"ReleaseOfferModel":{"properties":{"version":{"type":"string","title":"Version"},"text":{"type":"string","title":"Text"},"sha256":{"type":"string","title":"Sha256"}},"type":"object","required":["version","text","sha256"],"title":"ReleaseOfferModel"},"RemoveTitleCandidatesRequest":{"properties":{"candidate_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":12,"minItems":1,"title":"Candidate Ids"}},"additionalProperties":false,"type":"object","required":["candidate_ids"],"title":"RemoveTitleCandidatesRequest","description":"Remove one or more candidates from the list (NOT a decision; GH #7247).\n\nAll or nothing: the service refuses the whole request when any id is no\nlonger live or names the book's current title."},"RemoveTitleCandidatesResponse":{"properties":{"status":{"type":"string","const":"removed","title":"Status","default":"removed"},"removed_ids":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Removed Ids"},"count":{"type":"integer","title":"Count","default":0}},"type":"object","title":"RemoveTitleCandidatesResponse","description":"Result of removing candidates. ``count`` is the list size afterwards."},"ReopenPaymentRequest":{"properties":{"instruction_id":{"type":"string","format":"uuid","title":"Instruction Id"},"confirm_no_transfer_sent":{"type":"boolean","const":true,"title":"Confirm No Transfer Sent"},"note":{"type":"string","maxLength":2000,"minLength":10,"title":"Note"}},"type":"object","required":["instruction_id","confirm_no_transfer_sent","note"],"title":"ReopenPaymentRequest"},"RepDetailResponse":{"properties":{"rep":{"additionalProperties":true,"type":"object","title":"Rep"},"progress":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Progress"},"quiz_attempts":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Quiz Attempts"},"summary":{"$ref":"#/components/schemas/RepDetailSummary"}},"type":"object","required":["rep","progress","quiz_attempts","summary"],"title":"RepDetailResponse","description":"Full admin-facing sales rep detail."},"RepDetailSummary":{"properties":{"modules_completed":{"type":"integer","title":"Modules Completed"},"quizzes_passed":{"type":"integer","title":"Quizzes Passed"},"is_certified":{"type":"boolean","title":"Is Certified"}},"type":"object","required":["modules_completed","quizzes_passed","is_certified"],"title":"RepDetailSummary","description":"Aggregate training progress for one rep."},"RepDiyBlueprintReadinessRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"}},"type":"object","required":["buyer_email"],"title":"RepDiyBlueprintReadinessRequest","description":"Rep-only readiness question for one buyer's Talk Your Book DIY checkout."},"RepEligibleProjectChoice":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","maxLength":300,"minLength":1,"title":"Label"},"eligible":{"type":"boolean","title":"Eligible","default":true},"reason_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Reason Code"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"source":{"type":"string","maxLength":32,"title":"Source","default":"email"}},"type":"object","required":["id","label"],"title":"RepEligibleProjectChoice","description":"Authenticated selector data for one book this buyer owns.\n\nThe selector returns EVERY resolved book, eligible or not: a rep who cannot\nsee the ineligible book cannot tell the buyer why it is ineligible, and an\nempty list reads to them as \"this buyer owns nothing\". ``eligible`` decides\nwhether the console lets them pick it; ``reason``/``reason_code`` say why\nnot; ``source`` records which ownership proof surfaced it.\n\nEvery added field is optional with a default so a client built against the\noriginal two-field shape keeps working unchanged."},"RepEligibleProjectChoicesRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"package_code":{"type":"string","enum":["book_package","business_package","backend_package"],"title":"Package Code"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl Contact Id"}},"type":"object","required":["buyer_email","package_code"],"title":"RepEligibleProjectChoicesRequest"},"RepEligibleProjectChoicesResponse":{"properties":{"projects":{"items":{"$ref":"#/components/schemas/RepEligibleProjectChoice"},"type":"array","title":"Projects"}},"type":"object","required":["projects"],"title":"RepEligibleProjectChoicesResponse"},"RepFinancingLookupRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"track":{"type":"string","enum":["authority","packages"],"title":"Track"},"package_code":{"anyOf":[{"type":"string","enum":["book_package","business_package","backend_package"]},{"type":"null"}],"title":"Package Code"},"ghl_contact_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl Contact Id"}},"type":"object","required":["buyer_email","track"],"title":"RepFinancingLookupRequest"},"RepOnboarding":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"status":{"type":"string","enum":["setting_up","live","paused","archived"],"title":"Status"},"steps_done":{"type":"integer","title":"Steps Done"},"steps_total":{"type":"integer","title":"Steps Total"},"needs_attention":{"items":{"type":"string"},"type":"array","title":"Needs Attention"},"ghl_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl User Id"},"slack_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack User Id"},"sales_rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sales Rep Id"},"go_live_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Go Live At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"support_rep_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Support Rep Id"},"ghl_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Email"},"slack_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"timezone":{"type":"string","title":"Timezone"},"working_hours":{"additionalProperties":true,"type":"object","title":"Working Hours"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"},"paused_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paused At"},"welcome_dm_sent_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Dm Sent At"},"steps":{"items":{"$ref":"#/components/schemas/Step"},"type":"array","title":"Steps"},"departure_checklist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Departure Checklist"}},"type":"object","required":["id","full_name","email","status","steps_done","steps_total","needs_attention","timezone","working_hours","steps"],"title":"RepOnboarding"},"RepPlanProductConfig":{"properties":{"product_code":{"type":"string","maxLength":100,"title":"Product Code"},"name":{"type":"string","maxLength":200,"title":"Name"},"list_price_cents":{"type":"integer","title":"List Price Cents"},"post_credit_price_cents":{"type":"integer","title":"Post Credit Price Cents"},"floor_price_cents":{"type":"integer","title":"Floor Price Cents"},"deposit_configured":{"type":"boolean","title":"Deposit Configured","default":false},"ministry_rate_eligible":{"type":"boolean","title":"Ministry Rate Eligible","default":false},"one_link_min_down_payment_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"One Link Min Down Payment Cents"}},"type":"object","required":["product_code","name","list_price_cents","post_credit_price_cents","floor_price_cents"],"title":"RepPlanProductConfig","description":"Per-product builder config surfaced to the rep UI (registry v6)."},"RepResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"status":{"type":"string","title":"Status"},"can_offer_ministry_rate":{"type":"boolean","title":"Can Offer Ministry Rate","default":false},"certified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Certified At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modules_completed":{"type":"integer","title":"Modules Completed","default":0},"quizzes_passed":{"type":"integer","title":"Quizzes Passed","default":0}},"type":"object","required":["id","full_name","email","status","created_at"],"title":"RepResponse","description":"Public-facing sales rep details."},"RepSlackMapPatchRequest":{"properties":{"slack_user_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Slack User Id"},"ghl_user_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl User Id"},"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"slack_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Slack Name"},"ghl_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ghl Name"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"roles":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":8},{"type":"null"}],"title":"Roles"},"rotation_order":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Rotation Order"}},"type":"object","title":"RepSlackMapPatchRequest","description":"Admin correction to one directory row (PATCH /admin/reps/{id}/slack-map).\n\nNamed fields only, every string length-bounded, no ``extra='allow'`` — this\nis an author-facing-shaped write endpoint and the repo bans loose bodies.\nA successful PATCH always forces ``match_source='manual'``, which is what\nmakes the row permanent against the nightly sync; the caller cannot set\n``match_source`` itself."},"ReplyBody":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"ReplyBody"},"ReplyEventIn":{"properties":{"linkedin_url":{"type":"string","maxLength":300,"minLength":10,"title":"Linkedin Url"},"event":{"type":"string","enum":["nudge_sent","declined"],"title":"Event","default":"nudge_sent"}},"additionalProperties":false,"type":"object","required":["linkedin_url"],"title":"ReplyEventIn"},"ReportFinancingOutcomeRequest":{"properties":{"provider":{"type":"string","enum":["stripe","stripe_pay_over_time","whop","payva","flexxbuy","jill"],"title":"Provider"},"status":{"anyOf":[{"type":"string","enum":["not_started","sent","pending","approved","partially_approved","declined","unavailable","abandoned"]},{"type":"null"}],"title":"Status"},"approved_amount_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Approved Amount Cents"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"outcome":{"anyOf":[{"type":"string","enum":["not_started","sent","pending","approved","partially_approved","declined","unavailable","abandoned"]},{"type":"null"}],"title":"Outcome"},"intake_token":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Intake Token"}},"type":"object","required":["provider"],"title":"ReportFinancingOutcomeRequest"},"RequestLinkBody":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"intent":{"type":"string","enum":["register","signin"],"title":"Intent","default":"signin"},"full_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Full Name"},"company_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Company Url"},"marketing_consent":{"type":"boolean","title":"Marketing Consent","default":false},"source":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Source"},"utm":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Utm"},"jv":{"anyOf":[{"$ref":"#/components/schemas/JvJoinBody"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["email"],"title":"RequestLinkBody"},"ResendDeliverablesRequest":{"properties":{"customer_email":{"type":"string","format":"email","title":"Customer Email"},"deliverable_type":{"type":"string","maxLength":100,"title":"Deliverable Type","default":"blueprint"},"action":{"anyOf":[{"type":"string","enum":["links","redeliver_email","regenerate","regenerate_and_redeliver"]},{"type":"null"}],"title":"Action"},"n8n_execution_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"N8N Execution Id"}},"type":"object","required":["customer_email"],"title":"ResendDeliverablesRequest"},"ResendDeliverablesResponse":{"properties":{"sent":{"type":"boolean","title":"Sent","default":false},"message":{"type":"string","title":"Message","default":""},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"action":{"type":"string","enum":["links","redeliver_email","regenerate","regenerate_and_redeliver"],"title":"Action","default":"links"},"support_status":{"type":"string","title":"Support Status","default":"unknown"},"next_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step"},"has_blueprint":{"type":"boolean","title":"Has Blueprint","default":false},"can_regenerate":{"type":"boolean","title":"Can Regenerate","default":false},"regeneration_queued":{"type":"boolean","title":"Regeneration Queued","default":false},"email_sent":{"type":"boolean","title":"Email Sent","default":false},"email_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Id"},"email_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Error"},"delivered_items":{"items":{"type":"string"},"type":"array","title":"Delivered Items"},"missing_deliverables":{"items":{"type":"string"},"type":"array","title":"Missing Deliverables"},"links":{"additionalProperties":{"type":"string"},"type":"object","title":"Links"}},"type":"object","title":"ResendDeliverablesResponse"},"ResetRepPasswordRequest":{"properties":{"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["password"],"title":"ResetRepPasswordRequest","description":"Request to reset a sales rep's password by an admin."},"RestartFromScratchRequest":{"properties":{"confirm":{"type":"boolean","const":true,"title":"Confirm"},"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"additionalProperties":false,"type":"object","required":["confirm"],"title":"RestartFromScratchRequest"},"RestoreChapterRevisionRequest":{"properties":{"expected_draft_version":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Expected Draft Version"}},"additionalProperties":false,"type":"object","required":["expected_draft_version"],"title":"RestoreChapterRevisionRequest","description":"\"Use this version\" (wave AJ chapters-5): the version the author was reading.\n\nThe fence is the chapter's current version when she opened the history; a\nnewer save since then answers \"refresh\", never an overwrite."},"RetailerUrlsUpdate":{"properties":{"amazon":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Amazon"},"apple":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Apple"},"bn":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Bn"},"kobo":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Kobo"},"audible":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Audible"},"all_stores":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"All Stores"}},"additionalProperties":false,"type":"object","title":"RetailerUrlsUpdate","description":"Retailer edition buy links. Each is optional; '' clears that slot."},"RetierItem":{"properties":{"package_tier":{"type":"string","enum":["talk_your_book_diy","authority_book","authority_launch","authority_engine","authority_command","legacy_memoir","next_book","manuscript_complete","three_book_series","fiction_novel"],"title":"Package Tier"},"contract_target_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Contract Target Date"},"contract_target_ref":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Contract Target Ref"},"skip_deliverables":{"items":{"type":"string","enum":["kdp_package","print_proof","cover_vote_page","house_show_episode","house_show_clips","house_show_guest_kit"]},"type":"array","maxItems":6,"title":"Skip Deliverables"},"credit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credit Id"},"sales_order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sales Order Id"},"comped":{"anyOf":[{"$ref":"#/components/schemas/Comped"},{"type":"null"}]},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"keep_open_rows":{"type":"boolean","title":"Keep Open Rows","default":false}},"additionalProperties":false,"type":"object","required":["package_tier","project_id"],"title":"RetierItem","description":"Move an existing book onto the tier (and prepaid credit) it was bought as."},"RetractMaterialRequest":{"properties":{"confirmation_text":{"type":"string","maxLength":16,"title":"Confirmation Text"},"acknowledged":{"type":"boolean","title":"Acknowledged"},"remove_derived_chapters":{"type":"boolean","title":"Remove Derived Chapters","default":false},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["confirmation_text","acknowledged"],"title":"RetractMaterialRequest","description":"Both removal gates, restated to the server.\n\nThe disabled button in the dialog is a courtesy; THIS is the gate. An\nauthor has to type the word and tick the box, and a client that forgets\neither one is refused here rather than quietly destroying her chapters."},"RetractMaterialResponse":{"properties":{"retraction":{"$ref":"#/components/schemas/RetractionState"},"queued":{"type":"boolean","title":"Queued","default":true},"message":{"type":"string","maxLength":500,"title":"Message","default":""}},"type":"object","required":["retraction"],"title":"RetractMaterialResponse","description":"Receipt for a removal request. The work itself runs in a worker."},"RetractedChapterSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chapter_number":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Chapter Number"},"title":{"type":"string","maxLength":300,"title":"Title","default":""},"has_google_doc":{"type":"boolean","title":"Has Google Doc","default":false},"client_edit_round_count":{"type":"integer","minimum":0.0,"title":"Client Edit Round Count","default":0},"pending_comment_count":{"type":"integer","minimum":0.0,"title":"Pending Comment Count","default":0},"has_author_feedback":{"type":"boolean","title":"Has Author Feedback","default":false},"author_edited":{"type":"boolean","title":"Author Edited","default":false}},"type":"object","required":["id","chapter_number"],"title":"RetractedChapterSummary","description":"One chapter we built from the upload, as the removal dialog lists it."},"RetractionState":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["requested","in_progress","complete","failed","cancelled"],"title":"Status"},"is_open":{"type":"boolean","title":"Is Open"},"remove_derived_chapters":{"type":"boolean","title":"Remove Derived Chapters","default":false},"requested_by_kind":{"type":"string","enum":["author","admin"],"title":"Requested By Kind","default":"author"},"requested_via":{"type":"string","maxLength":32,"title":"Requested Via","default":"portal"},"requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requested At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"retention_days":{"type":"integer","maximum":3650.0,"minimum":0.0,"title":"Retention Days","default":30}},"type":"object","required":["id","status","is_open"],"title":"RetractionState","description":"Where one \"Remove this upload\" job stands.\n\nAttached to every material row so the portal can keep a removed upload\nVISIBLE with a \"Removed on ...\" pill instead of making it vanish — silence\nreads as loss (2026-08-20)."},"ReviewStep":{"properties":{"timeline":{"type":"string","title":"Timeline","default":""},"strategy":{"type":"string","title":"Strategy","default":""},"target_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Count"},"source":{"type":"string","title":"Source","default":"curated"}},"additionalProperties":false,"type":"object","title":"ReviewStep"},"ReviewVideoAssetRequest":{"properties":{"action":{"type":"string","maxLength":50,"title":"Action"},"reject_reason":{"type":"string","maxLength":5000,"title":"Reject Reason","default":"Author rejected video"}},"additionalProperties":true,"type":"object","required":["action"],"title":"ReviewVideoAssetRequest"},"RewriteRequestCreate":{"properties":{"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"},"source":{"type":"string","enum":["typed","spoken"],"title":"Source","default":"typed"},"transcript":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Transcript"},"anchor_text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Anchor Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"RewriteRequestCreate"},"RewriteRequestEdit":{"properties":{"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"RewriteRequestEdit"},"RewriteSubmit":{"properties":{"expected_version":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Expected Version"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"RewriteSubmit"},"RunReportIn":{"properties":{"run":{"type":"string","enum":["morning","eod"],"title":"Run"},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"},"invites_sent":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Invites Sent","default":0},"accepts_messaged":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Accepts Messaged","default":0},"replies_answered":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Replies Answered","default":0},"booking_links_sent":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Booking Links Sent","default":0},"comments_posted":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Comments Posted","default":0},"withdrawn":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Withdrawn","default":0},"post_published":{"type":"boolean","title":"Post Published","default":false},"post_first_line":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Post First Line"},"warnings":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Warnings"}},"additionalProperties":false,"type":"object","required":["run"],"title":"RunReportIn","description":"What the assistant reports after a morning or end-of-day run (counts only)."},"RunnerActionResultRequest":{"properties":{"runner_id":{"type":"string","maxLength":80,"pattern":"^[A-Za-z0-9._-]{1,80}$","title":"Runner Id"},"ok":{"type":"boolean","title":"Ok"},"result":{"type":"string","maxLength":2000,"title":"Result","default":""},"ref":{"additionalProperties":{"type":"string","maxLength":2000},"propertyNames":{"maxLength":80},"type":"object","maxProperties":10,"title":"Ref"}},"additionalProperties":false,"type":"object","required":["runner_id","ok"],"title":"RunnerActionResultRequest"},"RunnerAnswerRequest":{"properties":{"runner_id":{"type":"string","maxLength":80,"pattern":"^[A-Za-z0-9._-]{1,80}$","title":"Runner Id"},"answer":{"type":"string","maxLength":8000,"title":"Answer"},"actions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":5,"title":"Actions"},"via":{"type":"string","enum":["claude_p","claude_p_api_key"],"title":"Via","default":"claude_p"},"model":{"type":"string","maxLength":80,"title":"Model","default":""},"cost_usd":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Cost Usd"}},"additionalProperties":false,"type":"object","required":["runner_id","answer"],"title":"RunnerAnswerRequest"},"RunnerClaimRequest":{"properties":{"runner_id":{"type":"string","maxLength":80,"pattern":"^[A-Za-z0-9._-]{1,80}$","title":"Runner Id"},"version":{"type":"string","maxLength":80,"title":"Version","default":""},"host":{"type":"string","maxLength":120,"title":"Host","default":""},"heartbeat_only":{"type":"boolean","title":"Heartbeat Only","default":false},"include_action":{"type":"boolean","title":"Include Action","default":false}},"additionalProperties":false,"type":"object","required":["runner_id"],"title":"RunnerClaimRequest"},"RunnerFailRequest":{"properties":{"runner_id":{"type":"string","maxLength":80,"pattern":"^[A-Za-z0-9._-]{1,80}$","title":"Runner Id"},"error":{"type":"string","maxLength":1000,"title":"Error","default":""},"fallback":{"type":"boolean","title":"Fallback","default":true}},"additionalProperties":false,"type":"object","required":["runner_id"],"title":"RunnerFailRequest"},"SafeChartCatalogEntry":{"properties":{"chart_type":{"type":"string","title":"Chart Type"},"family":{"type":"string","title":"Family"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["chart_type","family","name","description"],"title":"SafeChartCatalogEntry"},"SafeChartCatalogResponse":{"properties":{"charts":{"items":{"$ref":"#/components/schemas/SafeChartCatalogEntry"},"type":"array","title":"Charts","default":[]}},"type":"object","title":"SafeChartCatalogResponse"},"SalesLedgerRow":{"properties":{"source_uid":{"type":"string","title":"Source Uid"},"source_type":{"type":"string","title":"Source Type"},"source_id":{"type":"string","title":"Source Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"client_name":{"type":"string","title":"Client Name"},"client_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Email"},"product":{"type":"string","title":"Product"},"sold_at":{"type":"string","format":"date-time","title":"Sold At"},"rep":{"type":"string","title":"Rep"},"provider":{"type":"string","title":"Provider"},"gross_usd":{"type":"number","title":"Gross Usd"},"scope":{"type":"string","title":"Scope"},"transaction_kind":{"type":"string","title":"Transaction Kind"},"attribution_source":{"type":"string","title":"Attribution Source"},"attribution_confidence":{"type":"string","title":"Attribution Confidence"},"status":{"type":"string","title":"Status"},"product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Code"},"package_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Tier"},"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"sale_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sale Source"},"billing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing State"},"sales_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Order Id"},"contract_total_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Contract Total Usd"},"collected_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Collected Usd"},"outstanding_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Outstanding Usd"},"payment_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payment Number"},"expected_payment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Payment Count"},"discount_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Type"},"discount_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Description"},"new_deal":{"type":"boolean","title":"New Deal","default":false},"commission_usd":{"type":"number","title":"Commission Usd","default":0.0},"diy_channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diy Channel"},"original_sold_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Original Sold At"},"original_source_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Source Uid"},"original_payment_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Payment Ref"},"rep_commission_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Commission Rule"},"sales_program":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Program"},"payment_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Ref"},"dispute_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dispute Status"}},"type":"object","required":["source_uid","source_type","source_id","client_name","product","sold_at","rep","provider","gross_usd","scope","transaction_kind","attribution_source","attribution_confidence","status"],"title":"SalesLedgerRow"},"SalesPeriodReport":{"properties":{"period_label":{"type":"string","title":"Period Label"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"timezone":{"type":"string","title":"Timezone"},"gross_usd":{"type":"number","title":"Gross Usd"},"adjustments_usd":{"type":"number","title":"Adjustments Usd"},"net_usd":{"type":"number","title":"Net Usd"},"sale_count":{"type":"integer","title":"Sale Count"},"by_rep":{"items":{"$ref":"#/components/schemas/SalesRepRow"},"type":"array","title":"By Rep"},"by_rep_scoring":{"items":{"$ref":"#/components/schemas/SalesRepScoringRow"},"type":"array","title":"By Rep Scoring","default":[]},"scoring_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Note"},"by_provider":{"additionalProperties":{"type":"number"},"type":"object","title":"By Provider"},"sales":{"items":{"$ref":"#/components/schemas/SalesLedgerRow"},"type":"array","title":"Sales"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"deal_count":{"type":"integer","title":"Deal Count","default":0},"payment_count":{"type":"integer","title":"Payment Count","default":0},"contracted_value_usd":{"type":"number","title":"Contracted Value Usd","default":0.0},"collected_usd":{"type":"number","title":"Collected Usd","default":0.0},"outstanding_usd":{"type":"number","title":"Outstanding Usd","default":0.0},"refunds_disputes_usd":{"type":"number","title":"Refunds Disputes Usd","default":0.0},"commission_usd":{"type":"number","title":"Commission Usd","default":0.0},"diy_split":{"items":{"$ref":"#/components/schemas/DiyChannelRow"},"type":"array","title":"Diy Split","default":[]},"rep_attribution_complete":{"type":"boolean","title":"Rep Attribution Complete","default":true},"degraded_sources":{"items":{"type":"string"},"type":"array","title":"Degraded Sources","default":[]},"incomplete_reasons":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Incomplete Reasons"}},"type":"object","required":["period_label","period_start","period_end","timezone","gross_usd","adjustments_usd","net_usd","sale_count","by_rep","by_provider","sales","notes"],"title":"SalesPeriodReport"},"SalesPlanCheckoutSessionRequest":{"properties":{"agreement_accepted":{"type":"boolean","const":true,"title":"Agreement Accepted"},"agreement_version":{"type":"string","maxLength":100,"minLength":1,"title":"Agreement Version"}},"type":"object","required":["agreement_accepted","agreement_version"],"title":"SalesPlanCheckoutSessionRequest"},"SalesPlanCheckoutSessionResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"SalesPlanCheckoutSessionResponse"},"SalesPlanConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"product_name":{"type":"string","title":"Product Name"},"currency":{"type":"string","const":"usd","title":"Currency","default":"usd"},"list_price_cents":{"type":"integer","title":"List Price Cents"},"discount_percent_bps":{"type":"integer","title":"Discount Percent Bps"},"discounted_list_price_cents":{"type":"integer","title":"Discounted List Price Cents"},"min_down_payment_cents":{"type":"integer","title":"Min Down Payment Cents"},"monthly_warning_below_cents":{"type":"integer","title":"Monthly Warning Below Cents"},"term_months":{"items":{"type":"integer"},"type":"array","title":"Term Months"},"authority_book_custom_term_min":{"type":"integer","title":"Authority Book Custom Term Min","default":1},"authority_book_custom_term_max":{"type":"integer","title":"Authority Book Custom Term Max","default":36},"audiobook_addon_cents":{"type":"integer","title":"Audiobook Addon Cents","default":99700},"authority_book_financed_totals":{"additionalProperties":{"type":"integer"},"type":"object","title":"Authority Book Financed Totals"},"launch_list_price_cents":{"type":"integer","title":"Launch List Price Cents","default":0},"launch_financed_totals":{"additionalProperties":{"type":"integer"},"type":"object","title":"Launch Financed Totals"},"launch_presets":{"items":{"$ref":"#/components/schemas/PlanPreset"},"type":"array","title":"Launch Presets"},"launch_audiobook_presets":{"items":{"$ref":"#/components/schemas/PlanPreset"},"type":"array","title":"Launch Audiobook Presets"},"presets":{"items":{"$ref":"#/components/schemas/PlanPreset"},"type":"array","title":"Presets"},"audiobook_presets":{"items":{"$ref":"#/components/schemas/PlanPreset"},"type":"array","title":"Audiobook Presets"},"token_ttl_hours":{"type":"integer","title":"Token Ttl Hours"},"ministry_rate_enabled":{"type":"boolean","title":"Ministry Rate Enabled","default":false},"custom_package_deposit_link_configured":{"type":"boolean","title":"Custom Package Deposit Link Configured","default":false},"one_link_deposit_enabled":{"type":"boolean","title":"One Link Deposit Enabled","default":false},"products":{"items":{"$ref":"#/components/schemas/RepPlanProductConfig"},"type":"array","maxItems":10,"title":"Products"}},"type":"object","required":["enabled","product_name","list_price_cents","discount_percent_bps","discounted_list_price_cents","min_down_payment_cents","monthly_warning_below_cents","term_months","presets","token_ttl_hours"],"title":"SalesPlanConfigResponse"},"SalesPlanDeliveryResponse":{"properties":{"channel":{"type":"string","enum":["email","sms"],"title":"Channel"},"status":{"type":"string","maxLength":50,"title":"Status"}},"type":"object","required":["channel","status"],"title":"SalesPlanDeliveryResponse"},"SalesPlanOfferListResponse":{"properties":{"offers":{"items":{"$ref":"#/components/schemas/SalesPlanOfferResponse"},"type":"array","title":"Offers"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["offers","total"],"title":"SalesPlanOfferListResponse"},"SalesPlanOfferResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["draft","sent","opened","expired","cancelled","paid","past_due","completed","written_off"],"title":"Status"},"buyer_name":{"type":"string","title":"Buyer Name"},"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"buyer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Phone"},"plan":{"$ref":"#/components/schemas/PlanQuote"},"checkout_url":{"type":"string","title":"Checkout Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"}},"type":"object","required":["id","status","buyer_name","buyer_email","plan","checkout_url","expires_at","created_at"],"title":"SalesPlanOfferResponse"},"SalesRepRow":{"properties":{"rep":{"type":"string","title":"Rep"},"gross_usd":{"type":"number","title":"Gross Usd"},"adjustments_usd":{"type":"number","title":"Adjustments Usd"},"net_usd":{"type":"number","title":"Net Usd"},"sale_count":{"type":"integer","title":"Sale Count"},"deal_count":{"type":"integer","title":"Deal Count","default":0},"payment_count":{"type":"integer","title":"Payment Count","default":0},"contracted_value_usd":{"type":"number","title":"Contracted Value Usd","default":0.0},"collected_usd":{"type":"number","title":"Collected Usd","default":0.0},"outstanding_usd":{"type":"number","title":"Outstanding Usd","default":0.0},"refunds_disputes_usd":{"type":"number","title":"Refunds Disputes Usd","default":0.0},"commission_usd":{"type":"number","title":"Commission Usd","default":0.0}},"type":"object","required":["rep","gross_usd","adjustments_usd","net_usd","sale_count"],"title":"SalesRepRow"},"SalesRepScoringRow":{"properties":{"rep":{"type":"string","title":"Rep"},"leads_nudged":{"type":"integer","title":"Leads Nudged"},"scored":{"type":"integer","title":"Scored"},"unscored":{"type":"integer","title":"Unscored"},"unchecked":{"type":"integer","title":"Unchecked"},"compliance_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Compliance Pct"},"new_sales":{"type":"integer","title":"New Sales"},"closing_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Closing Pct"}},"type":"object","required":["rep","leads_nudged","scored","unscored","unchecked","compliance_pct","new_sales","closing_pct"],"title":"SalesRepScoringRow","description":"Lead-scoring compliance vs closing, per rep, for the report period.\n\nSourced from the lead-scoring nudge ledger (data begins 2026-07-24) plus\nlive GHL Lead Quality fields; new_sales counts backend `new_sale` ledger\nrows so installments don't inflate closes."},"SampleFeedbackRequest":{"properties":{"post_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Post Id"},"feedback":{"type":"string","maxLength":2000,"minLength":1,"title":"Feedback"}},"type":"object","required":["feedback"],"title":"SampleFeedbackRequest","description":"WP-6 per-sample feedback. ``post_id`` scopes the note to one sample;\nomit it for pack-wide feedback."},"SamplePackApprovalRequest":{"properties":{"sample_pack_id":{"type":"string","maxLength":200,"minLength":1,"title":"Sample Pack Id"}},"type":"object","required":["sample_pack_id"],"title":"SamplePackApprovalRequest","description":"Approve only the immutable sample generation the author reviewed."},"SaveTalkingPointRequest":{"properties":{"scope":{"type":"string","enum":["book","chapter"],"title":"Scope","default":"book"},"chapter_number":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Chapter Number"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"detail":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Detail"},"talking_points":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":10,"title":"Talking Points"}},"additionalProperties":false,"type":"object","required":["title"],"title":"SaveTalkingPointRequest","description":"Author saves a brainstorm idea as a talking point for the next call.\n\nAuthor-initiated write; no project_id (derived from the auth token). All\nuser-facing strings/lists are bounded (CLAUDE.md author-facing rule)."},"SavedResponse":{"properties":{"saved":{"type":"boolean","title":"Saved","default":true}},"type":"object","title":"SavedResponse"},"ScheduleBody":{"properties":{"scheduled_for":{"type":"string","format":"date-time","title":"Scheduled For"}},"additionalProperties":false,"type":"object","required":["scheduled_for"],"title":"ScheduleBody"},"ScheduledInstallment":{"properties":{"due_on":{"type":"string","format":"date","title":"Due On"},"product":{"type":"string","title":"Product"},"amount_cents":{"type":"integer","title":"Amount Cents"},"commission_cents":{"type":"integer","title":"Commission Cents"}},"type":"object","required":["due_on","product","amount_cents","commission_cents"],"title":"ScheduledInstallment"},"ScheduledPostEditRequest":{"properties":{"content":{"type":"string","maxLength":5000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"ScheduledPostEditRequest","description":"Author edits the text of a post before it goes out (2026-11-17)."},"ScoreCampaignRequest":{"properties":{"force":{"type":"boolean","title":"Force","default":false}},"additionalProperties":false,"type":"object","title":"ScoreCampaignRequest","description":"Optional body for the /score route. force=True rescores every lead from\nscratch (default resumes: leads that already have a fit_score are skipped)."},"ScreenshotChoiceRequest":{"properties":{"choice":{"type":"string","enum":["crop","whole","leave_out"],"title":"Choice"}},"additionalProperties":false,"type":"object","required":["choice"],"title":"ScreenshotChoiceRequest","description":"Her tap on a screenshot: the cropped picture, the whole screenshot, or leave it out."},"ScriptApprovalRequest":{"properties":{"expected_script_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Script Hash"},"explicit_content":{"type":"boolean","title":"Explicit Content"},"content_claims_verified":{"type":"boolean","const":true,"title":"Content Claims Verified"},"pronunciations":{"anyOf":[{"items":{"$ref":"#/components/schemas/PodcastPronunciationRule"},"type":"array","maxItems":100},{"type":"null"}],"title":"Pronunciations"}},"additionalProperties":false,"type":"object","required":["expected_script_hash","explicit_content","content_claims_verified"],"title":"ScriptApprovalRequest"},"ScriptEditRequest":{"properties":{"script":{"$ref":"#/components/schemas/PodcastEpisodeScript"},"expected_script_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Script Hash"},"title":{"anyOf":[{"type":"string","maxLength":240,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":12000,"minLength":1},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","required":["script","expected_script_hash"],"title":"ScriptEditRequest"},"ScriptureStatusRequest":{"properties":{"reference":{"type":"string","maxLength":60,"minLength":3,"title":"Reference"},"location":{"type":"string","maxLength":40,"minLength":3,"title":"Location"},"status":{"type":"string","enum":["pending","confirmed","wrong_match"],"title":"Status"}},"additionalProperties":false,"type":"object","required":["reference","location","status"],"title":"ScriptureStatusRequest"},"ScriptureUndoRequest":{"properties":{"swap_number":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Swap Number"}},"additionalProperties":false,"type":"object","required":["swap_number"],"title":"ScriptureUndoRequest"},"SeasonVoiceUpdateRequest":{"properties":{"update_id":{"type":"string","format":"uuid","title":"Update Id"},"expected_current_voice_id":{"type":"string","maxLength":200,"minLength":1,"title":"Expected Current Voice Id"},"confirmed":{"type":"boolean","const":true,"title":"Confirmed"}},"additionalProperties":false,"type":"object","required":["update_id","expected_current_voice_id","confirmed"],"title":"SeasonVoiceUpdateRequest"},"SelectCoverByNumberRequest":{"properties":{"number":{"type":"integer","maximum":99.0,"minimum":1.0,"title":"Number"},"ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ops Item Id"},"author_words":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Author Words"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["number"],"title":"SelectCoverByNumberRequest"},"SelectTitleRequest":{"properties":{"candidate_id":{"type":"string","maxLength":64,"title":"Candidate Id","default":""},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"subtitle":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Subtitle"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"additionalProperties":false,"type":"object","required":["title"],"title":"SelectTitleRequest","description":"Select a title. ``confirm=False`` is a PREVIEW and writes nothing.\n\n``candidate_id`` is optional (an author may approve a title they just typed).\nWhen present it is authoritative and the service refuses a title that\ndisagrees with it.\n\n``subtitle=None`` means \"leave the stored subtitle alone\"; ``\"\"`` means\n\"clear it\". The distinction is load-bearing — selecting an AI candidate that\ncarries no subtitle must not silently wipe a subtitle the author wrote."},"SelectTitleResponse":{"properties":{"status":{"type":"string","enum":["approved","preview"],"title":"Status"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"candidate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Id"},"is_approved":{"type":"boolean","title":"Is Approved","default":false},"title_decision_state":{"type":"string","title":"Title Decision State","default":"deciding"},"approved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved At"},"requires_confirmation":{"type":"boolean","title":"Requires Confirmation","default":false},"changes_title":{"type":"boolean","title":"Changes Title","default":false},"spends_post_cover_change":{"type":"boolean","title":"Spends Post Cover Change","default":false},"post_cover_changes_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Cover Changes Remaining"},"post_cover_changes_limit":{"type":"integer","title":"Post Cover Changes Limit"}},"type":"object","required":["status","post_cover_changes_limit"],"title":"SelectTitleResponse","description":"Result of a selection.\n\n``preview`` (``confirm=False``) is a UI-side selection: NOTHING was written,\nand ``requires_confirmation`` is True. ``approved`` means the title and its\naudit receipt landed in one outline UPDATE."},"SendInvitation":{"properties":{"test_to":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Test To"}},"additionalProperties":false,"type":"object","title":"SendInvitation"},"SendReplyRequest":{"properties":{"to_email":{"type":"string","format":"email","title":"To Email"},"subject":{"type":"string","maxLength":500,"title":"Subject"},"body_html":{"type":"string","maxLength":100000,"title":"Body Html"},"ticket_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ticket Id"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"},"n8n_execution_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"N8N Execution Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["to_email","subject","body_html"],"title":"SendReplyRequest"},"SendReplyResponse":{"properties":{"sent":{"type":"boolean","title":"Sent","default":false},"email_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Id"},"message":{"type":"string","title":"Message","default":""},"duplicate":{"type":"boolean","title":"Duplicate","default":false}},"type":"object","title":"SendReplyResponse"},"SendSalesPlanOfferRequest":{"properties":{"send_attempt_id":{"type":"string","format":"uuid","title":"Send Attempt Id"},"channels":{"items":{"type":"string","const":"email"},"type":"array","maxItems":1,"minItems":1,"title":"Channels"}},"type":"object","required":["send_attempt_id","channels"],"title":"SendSalesPlanOfferRequest"},"SendSalesPlanOfferResponse":{"properties":{"offer":{"$ref":"#/components/schemas/SalesPlanOfferResponse"},"deliveries":{"items":{"$ref":"#/components/schemas/SalesPlanDeliveryResponse"},"type":"array","title":"Deliveries"}},"type":"object","required":["offer","deliveries"],"title":"SendSalesPlanOfferResponse"},"ServerDisk":{"properties":{"mount":{"type":"string","maxLength":120,"title":"Mount"},"size_gb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Size Gb"},"free_gb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Free Gb"},"used_pct":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Used Pct"}},"type":"object","required":["mount","used_pct"],"title":"ServerDisk"},"ServerHealthIn":{"properties":{"server":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,39}$","title":"Server"},"hostname":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Hostname"},"reported_at":{"type":"string","format":"date-time","title":"Reported At"},"reporter_version":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Reporter Version"},"os":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Os"},"kernel":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Kernel"},"uptime_s":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Uptime S"},"cpu_count":{"anyOf":[{"type":"integer","maximum":1024.0,"minimum":0.0},{"type":"null"}],"title":"Cpu Count"},"load":{"anyOf":[{"items":{"type":"number"},"type":"array","maxItems":3},{"type":"null"}],"title":"Load"},"memory":{"$ref":"#/components/schemas/ServerMemory"},"disks":{"items":{"$ref":"#/components/schemas/ServerDisk"},"type":"array","maxItems":40,"title":"Disks"},"disk_pct_max":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Disk Pct Max"},"services":{"items":{"$ref":"#/components/schemas/ServerUnitState"},"type":"array","maxItems":40,"title":"Services"},"containers":{"items":{"$ref":"#/components/schemas/ServerUnitState"},"type":"array","maxItems":40,"title":"Containers"},"containers_running":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Containers Running"},"services_down":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Services Down"},"failed_units":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Failed Units"},"jobs":{"items":{"$ref":"#/components/schemas/ServerJobResult"},"type":"array","maxItems":40,"title":"Jobs"},"updates":{"$ref":"#/components/schemas/ServerUpdates"},"last_backup_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Backup At"},"journal_mb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Journal Mb"}},"type":"object","required":["server","reported_at"],"title":"ServerHealthIn","description":"One health post from a server's timer. Numbers and NAMES only, never contents."},"ServerJobResult":{"properties":{"timer":{"type":"string","maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9@._:-]+$","title":"Timer"},"last_result":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Last Result"},"last_exit":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Last Exit"},"ok":{"type":"boolean","title":"Ok","default":true}},"type":"object","required":["timer"],"title":"ServerJobResult"},"ServerMemory":{"properties":{"total_mb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Total Mb"},"available_mb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Available Mb"},"used_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Used Pct"},"swap_total_mb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Swap Total Mb"},"swap_used_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Swap Used Pct"}},"type":"object","title":"ServerMemory"},"ServerUnitState":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"pattern":"^[A-Za-z0-9@._:-]+$","title":"Name"},"state":{"type":"string","maxLength":40,"title":"State","default":"unknown"},"ok":{"type":"boolean","title":"Ok","default":false}},"type":"object","required":["name"],"title":"ServerUnitState"},"ServerUpdates":{"properties":{"pending":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pending"},"security":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Security"},"reboot_required":{"type":"boolean","title":"Reboot Required","default":false}},"type":"object","title":"ServerUpdates"},"SessionBody":{"properties":{"t":{"anyOf":[{"type":"string","maxLength":400,"minLength":20},{"type":"null"}],"title":"T"},"l":{"anyOf":[{"type":"string","maxLength":400,"minLength":20},{"type":"null"}],"title":"L"}},"additionalProperties":false,"type":"object","title":"SessionBody"},"SessionCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"speaker_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Speaker Id"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"}},"additionalProperties":false,"type":"object","required":["title"],"title":"SessionCreate"},"SetAllowedHosts":{"properties":{"host_emails":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Host Emails"}},"additionalProperties":false,"type":"object","title":"SetAllowedHosts"},"SetBannedTermsRequest":{"properties":{"terms":{"items":{"$ref":"#/components/schemas/BannedTermEntry"},"type":"array","maxItems":100,"title":"Terms"}},"additionalProperties":false,"type":"object","title":"SetBannedTermsRequest","description":"The author's whole \"never use these words\" list (Mike, 2026-12-02).\n\nStrict model (no ``extra='allow'``), bounded per the author-facing PUT rule: at most\n100 entries, each term up to 80 characters and each replacement up to 120. The\nservice (``app.services.banned_terms.clean_entries``) drops blanks, de-dupes and\nrefuses anything that is not a word or short phrase."},"SetBookImagesDisabledRequest":{"properties":{"disabled":{"type":"boolean","title":"Disabled"}},"additionalProperties":false,"type":"object","required":["disabled"],"title":"SetBookImagesDisabledRequest","description":"Book-level 'no images at all' toggle."},"SetChapterImagesDisabledRequest":{"properties":{"disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disabled"}},"additionalProperties":false,"type":"object","title":"SetChapterImagesDisabledRequest","description":"Per-chapter image opt-out override. None = inherit the book default."},"SetDelegationRequest":{"properties":{"mode":{"type":"string","enum":["delegated","author_managed"],"title":"Mode"}},"additionalProperties":false,"type":"object","required":["mode"],"title":"SetDelegationRequest","description":"Decide-for-me toggle for a chapter's image control."},"SetEpigraphRequest":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Text"},"attribution":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Attribution"},"remove":{"type":"boolean","title":"Remove","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","title":"SetEpigraphRequest"},"SetMaxConcurrentBooksRequest":{"properties":{"max_concurrent_books":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Max Concurrent Books"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["max_concurrent_books","reason"],"title":"SetMaxConcurrentBooksRequest"},"SetPhotoCaptionRequest":{"properties":{"caption":{"type":"string","maxLength":300,"title":"Caption","default":""}},"additionalProperties":false,"type":"object","title":"SetPhotoCaptionRequest","description":"\"Your photos\": the caption she writes for one picture (empty = none of hers)."},"SetPortalProfileRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"byline":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Byline"},"spoken_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Spoken Name"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"bio":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Bio"},"website_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Website Url"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Linkedin Url"},"book_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Book Title"},"book_subtitle":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Book Subtitle"},"sms_transactional_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Transactional Consent"}},"additionalProperties":false,"type":"object","title":"SetPortalProfileRequest","description":"Author profile edit — partial update, absent fields untouched.\n\nStrict model with bounded fields per the author-facing PUT/PATCH rule.\nEmail is deliberately NOT editable here: it is the identity key across\nbilling, GHL, and auth, so changing it is an ops-assisted operation.\n``byline`` is the name in print (covers/KDP); ``spoken_name`` is the\nvoice-only pronunciation alias — the two are independent of ``name``."},"SetScopeRequest":{"properties":{"scopes":{"items":{"type":"string","enum":["edit","rewrite","refresh_update","cover","formatting","publishing_prep","write_missing_chapters"]},"type":"array","maxItems":7,"minItems":1,"title":"Scopes"}},"type":"object","required":["scopes"],"title":"SetScopeRequest"},"SetSecret":{"properties":{"secret_token":{"type":"string","maxLength":200,"minLength":8,"title":"Secret Token"}},"additionalProperties":false,"type":"object","required":["secret_token"],"title":"SetSecret"},"SetTimezoneRequest":{"properties":{"timezone":{"type":"string","maxLength":100,"title":"Timezone"}},"additionalProperties":true,"type":"object","required":["timezone"],"title":"SetTimezoneRequest"},"SetTranscriptionTermsRequest":{"properties":{"terms":{"items":{"type":"string","maxLength":80},"type":"array","maxItems":100,"title":"Terms"}},"additionalProperties":false,"type":"object","title":"SetTranscriptionTermsRequest","description":"Author custom vocabulary / names & terms for the voice transcriber.\n\nStrict model (no ``extra='allow'``) with bounded fields per the project's\nauthor-facing PUT/PATCH rule: at most 100 terms, each up to 80 chars.\nBlank terms are dropped and the list is de-duped (case-insensitive,\norder-preserving) by the validator so storage stays clean."},"SettingsPatch":{"properties":{"promotes":{"anyOf":[{"items":{"type":"string","enum":["webinar","email_list","jvzoo","live_webinar","social","paid_ads"]},"type":"array","maxItems":6},{"type":"null"}],"title":"Promotes"},"jvzoo_affiliate_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_.@-]*$"},{"type":"null"}],"title":"Jvzoo Affiliate Id"},"clickbank_nickname":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_.@-]*$"},{"type":"null"}],"title":"Clickbank Nickname"},"digistore24_id":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_.@-]*$"},{"type":"null"}],"title":"Digistore24 Id"},"payout_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Payout Email"},"payout_method":{"anyOf":[{"type":"string","const":"paypal"},{"type":"null"}],"title":"Payout Method"}},"additionalProperties":false,"type":"object","title":"SettingsPatch"},"SetupApprovalRequest":{"properties":{"expected_plan_hash":{"anyOf":[{"type":"string","maxLength":64,"minLength":64},{"type":"null"}],"title":"Expected Plan Hash"},"expected_setup_options_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Setup Options Hash"},"selected_concept":{"$ref":"#/components/schemas/PodcastConceptSelection"},"selected_offer":{"$ref":"#/components/schemas/PodcastOfferSelection"},"reviewed":{"type":"boolean","const":true,"title":"Reviewed"}},"additionalProperties":false,"type":"object","required":["expected_setup_options_hash","selected_concept","selected_offer","reviewed"],"title":"SetupApprovalRequest"},"SetupEventRequest":{"properties":{"item":{"type":"string","enum":["social","crm_login","crm_billing","domain","town"],"title":"Item"},"network":{"anyOf":[{"type":"string","enum":["facebook","instagram","linkedin","youtube","tiktok"]},{"type":"null"}],"title":"Network"}},"additionalProperties":false,"type":"object","required":["item"],"title":"SetupEventRequest"},"ShareLinkBody":{"properties":{"line":{"type":"string","enum":["christian","true_stories"],"title":"Line"}},"additionalProperties":false,"type":"object","required":["line"],"title":"ShareLinkBody","description":"Mint the reader's own share code for one of her lines (GH #16513 R4)."},"ShareOptions":{"properties":{"show_photo":{"type":"boolean","title":"Show Photo","default":false},"dedication":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Dedication"}},"additionalProperties":false,"type":"object","title":"ShareOptions"},"ShelfItemCreate":{"properties":{"shelf_key":{"type":"string","maxLength":100,"minLength":1,"title":"Shelf Key"},"item_type":{"type":"string","enum":["task","video","reading","lesson"],"title":"Item Type"},"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"body_markdown":{"type":"string","maxLength":20000,"title":"Body Markdown","default":""},"video_embed_url":{"type":"string","maxLength":1000,"title":"Video Embed Url","default":""},"action_prompt":{"type":"string","maxLength":500,"title":"Action Prompt","default":""},"sort_order":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Sort Order","default":0},"unlock_after_days":{"type":"integer","maximum":365.0,"minimum":0.0,"title":"Unlock After Days","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["shelf_key","item_type","title"],"title":"ShelfItemCreate","description":"Admin CRUD shape — shelves are DATA, editable without deploys."},"ShelfItemUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"body_markdown":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Body Markdown"},"video_embed_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Video Embed Url"},"action_prompt":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Action Prompt"},"sort_order":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Sort Order"},"unlock_after_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Unlock After Days"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"ShelfItemUpdate"},"ShippedCommitIn":{"properties":{"sha":{"type":"string","maxLength":64,"minLength":7,"pattern":"^[0-9a-f]{7,64}$","title":"Sha"},"merged_at":{"type":"string","format":"date-time","title":"Merged At"}},"type":"object","required":["sha","merged_at"],"title":"ShippedCommitIn","description":"One merge a train release put live, with its merge time."},"ShippingAddressRequest":{"properties":{"street1":{"type":"string","maxLength":200,"title":"Street1"},"street2":{"type":"string","maxLength":200,"title":"Street2","default":""},"city":{"type":"string","maxLength":100,"title":"City"},"state_code":{"type":"string","maxLength":20,"title":"State Code","default":""},"country_code":{"type":"string","maxLength":2,"title":"Country Code","default":"US"},"postcode":{"type":"string","maxLength":32,"title":"Postcode"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"phone":{"type":"string","maxLength":50,"title":"Phone","default":""}},"type":"object","required":["street1","city","postcode"],"title":"ShippingAddressRequest","description":"Where the author's physical copies ship (GH #3644).\n\nDeliberately has NO quantity field: the number of keepsake copies is a\nserver-side entitlement, never something a request body can express."},"ShortLinkPortalBody":{"properties":{"slug":{"anyOf":[{"type":"string","maxLength":160,"minLength":1},{"type":"null"}],"title":"Slug"},"destination_mode":{"type":"string","enum":["amazon","custom","prelaunch"],"title":"Destination Mode"},"custom_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Custom Url"}},"additionalProperties":false,"type":"object","required":["destination_mode"],"title":"ShortLinkPortalBody","description":"Author-facing PUT body — bounded, explicit fields only.\n\n``slug`` is accepted in raw form (spaces/case/punctuation allowed) and\nnormalized server-side; the generous max_length bounds the raw input\nbefore normalization shrinks it."},"ShowNotesEditRequest":{"properties":{"listener_description":{"type":"string","maxLength":2000,"minLength":1,"title":"Listener Description"},"summary":{"type":"string","maxLength":300,"minLength":1,"title":"Summary"},"expected_show_notes_hash":{"anyOf":[{"type":"string","maxLength":64,"minLength":64},{"type":"null"}],"title":"Expected Show Notes Hash"},"takeaways":{"items":{"type":"string","maxLength":140},"type":"array","maxItems":5,"title":"Takeaways"}},"additionalProperties":false,"type":"object","required":["listener_description","summary"],"title":"ShowNotesEditRequest","description":"Author edit of the review-facing show-notes copy. Every field bounded."},"ShowPreferences":{"properties":{"preferred_show_types":{"items":{"type":"string","maxLength":255},"type":"array","maxItems":10,"title":"Preferred Show Types"},"target_listener_profile":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Target Listener Profile"},"show_size_preference":{"type":"string","enum":["niche","mid","large","any"],"title":"Show Size Preference","default":"any"},"dream_shows":{"items":{"type":"string","maxLength":255},"type":"array","maxItems":20,"title":"Dream Shows"},"avoid_shows_or_hosts":{"items":{"type":"string","maxLength":255},"type":"array","maxItems":20,"title":"Avoid Shows Or Hosts"},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","title":"ShowPreferences","description":"The author's OWN answers about what shows they WANT to appear on (GH #617).\n\nThese are ASKED at intake, never inferred from the dossier. Every field is\nbounded (CLAUDE.md rule) and extra keys are forbidden so a client can't smuggle\narbitrary JSON into the author record. All fields are optional — an empty\n``{}`` (the DB default) is a valid \"not asked yet\" state.\n\n- preferred_show_types: e.g. solopreneur / business / marketing / industry.\n- target_listener_profile: free-text description of the ideal listener.\n- show_size_preference: niche / mid / large / any (audience-size lean).\n- dream_shows: named shows the author would love to be booked on.\n- avoid_shows_or_hosts: named shows/hosts to NEVER pitch (a hard block).\n- notes: any other free-text preference context."},"ShownChapter":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Version"}},"additionalProperties":false,"type":"object","required":["id"],"title":"ShownChapter"},"SignInBody":{"properties":{"channel":{"type":"string","enum":["sms","email"],"title":"Channel"}},"additionalProperties":false,"type":"object","required":["channel"],"title":"SignInBody"},"SignInResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"sent":{"type":"boolean","title":"Sent","default":false},"channel":{"anyOf":[{"type":"string","enum":["sms","email"]},{"type":"null"}],"title":"Channel"},"sent_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent To"},"reason":{"anyOf":[{"type":"string","enum":["limit","no_channel","failed"]},{"type":"null"}],"title":"Reason"}},"type":"object","required":["request_id"],"title":"SignInResponse"},"SigninCodeSendRequest":{"properties":{"token":{"type":"string","maxLength":2048,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"SigninCodeSendRequest","description":"Ask for a 6-digit sign-in code for the book a used or expired link names.\n\nSame trust model as :class:`MagicLinkRecoverRequest`: the original token is\nthe only identity input; the code goes to that book's current login email\n(and phone, when texts are allowed), never to an address the client names."},"SigninCodeSendResponse":{"properties":{"message":{"type":"string","title":"Message","default":"If this link belongs to a Dictate book, a 6-digit code is on its way."},"codes_enabled":{"type":"boolean","title":"Codes Enabled","default":true}},"type":"object","title":"SigninCodeSendResponse","description":"Neutral answer: never says whether the link or the account exists."},"SigninCodeVerifyRequest":{"properties":{"token":{"type":"string","maxLength":2048,"minLength":1,"title":"Token"},"code":{"type":"string","maxLength":6,"minLength":6,"pattern":"^[0-9]{6}$","title":"Code"}},"type":"object","required":["token","code"],"title":"SigninCodeVerifyRequest","description":"Type the 6-digit code on the same screen as the dead link."},"SignoffCardAnswer":{"properties":{"action":{"type":"string","enum":["approve","change","put_back"],"title":"Action"},"text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Text"}},"additionalProperties":false,"type":"object","required":["action"],"title":"SignoffCardAnswer"},"SilasContactRequest":{"properties":{"friend_email":{"type":"string","maxLength":254,"format":"email","title":"Friend Email"},"friend_phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Friend Phone"},"expecting_call":{"type":"boolean","title":"Expecting Call","default":false}},"additionalProperties":false,"type":"object","required":["friend_email"],"title":"SilasContactRequest","description":"The client adds contact details to a friend Silas noted (phase 3)."},"SilasConversationListResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/SilasConversationSummary"},"type":"array","title":"Conversations","default":[]}},"type":"object","title":"SilasConversationListResponse"},"SilasConversationSummary":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["conversation_id"],"title":"SilasConversationSummary"},"SilasDialRepairRequest":{"properties":{"terminal_status":{"type":"string","enum":["completed","failed","cancelled"],"title":"Terminal Status"},"reason":{"type":"string","maxLength":200,"title":"Reason","default":"admin_manual_repair"},"call_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Call Id"},"expected_appointment_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Expected Appointment Id"},"expected_scheduled_at":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Expected Scheduled At"},"rebook_appointment_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Rebook Appointment Id"},"rebook_scheduled_at":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Rebook Scheduled At"},"rebook_calendar_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Rebook Calendar Id"}},"additionalProperties":false,"type":"object","required":["terminal_status"],"title":"SilasDialRepairRequest","description":"Operator instructions for closing (and optionally re-booking) a stuck dial.\n\nExplicit named fields with bounds and ``extra='forbid'`` per the\nauthor-facing API hardening rule: a typo'd field is a 422, never a silently\nignored instruction on a path that closes a paying customer's booked call."},"SilasDialRepairResponse":{"properties":{"status":{"type":"string","title":"Status"},"project_id":{"type":"string","title":"Project Id"},"previous_status":{"type":"string","title":"Previous Status"},"terminal_status":{"type":"string","title":"Terminal Status"},"rebooked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rebooked"}},"additionalProperties":false,"type":"object","required":["status","project_id","previous_status","terminal_status"],"title":"SilasDialRepairResponse","description":"What the repair actually did, as the writers reported it."},"SilasEnablementProjectState":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"lifecycle_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle State"},"silas_portal_enabled":{"type":"boolean","title":"Silas Portal Enabled"},"explicitly_disabled":{"type":"boolean","title":"Explicitly Disabled","default":false},"previous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Previous"}},"type":"object","required":["project_id","silas_portal_enabled"],"title":"SilasEnablementProjectState","description":"One project's flag state as reported by the enablement route.\n\n``silas_portal_enabled`` is the CURRENT state: on a dry run it is the\npre-existing value; after a real run it is a fresh read-back of the row,\nnever an echo of the request intent."},"SilasEnablementRequest":{"properties":{"scope":{"type":"string","enum":["all_active","project"],"title":"Scope"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":true},"enable":{"type":"boolean","title":"Enable","default":true}},"type":"object","required":["scope"],"title":"SilasEnablementRequest","description":"Bulk (or targeted) flip of the per-project Silas portal flag.\n\n``dry_run`` defaults to True on purpose: the default invocation can never\nchange production state. ``scope=\"all_active\"`` applies the canonical\nactive-client selection (see the route); ``scope=\"project\"`` targets one\nexplicit project and deliberately BYPASSES the active/test-fixture\nexclusions — Day-1 rollout enables internal fixtures via this scope."},"SilasEnablementResponse":{"properties":{"scope":{"type":"string","enum":["all_active","project"],"title":"Scope"},"dry_run":{"type":"boolean","title":"Dry Run"},"enable":{"type":"boolean","title":"Enable"},"global_flag_enabled":{"type":"boolean","title":"Global Flag Enabled"},"all_clients_default_enabled":{"type":"boolean","title":"All Clients Default Enabled","default":false},"considered":{"type":"integer","title":"Considered"},"already_enabled":{"type":"integer","title":"Already Enabled"},"excluded_lifecycle":{"type":"integer","title":"Excluded Lifecycle"},"excluded_platform":{"type":"integer","title":"Excluded Platform"},"excluded_test_fixtures":{"type":"integer","title":"Excluded Test Fixtures"},"changed":{"items":{"$ref":"#/components/schemas/SilasEnablementProjectState"},"type":"array","title":"Changed"},"changed_unverified":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Changed Unverified"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["scope","dry_run","enable","global_flag_enabled","considered","already_enabled","excluded_lifecycle","excluded_platform","excluded_test_fixtures","changed"],"title":"SilasEnablementResponse"},"SilasLatestConversationResponse":{"properties":{"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"route_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route Context"},"turns":{"items":{"$ref":"#/components/schemas/SilasTurn"},"type":"array","title":"Turns","default":[]}},"type":"object","title":"SilasLatestConversationResponse","description":"Most recent conversation + its last turns, for reload continuity.\n\n``conversation_id`` is None when the project has no conversation yet (a\nbrand-new author) — the frontend then starts a fresh one on first message."},"SilasLine":{"properties":{"phone_e164":{"type":"string","maxLength":20,"title":"Phone E164"},"display":{"type":"string","maxLength":30,"title":"Display"},"can_text":{"type":"boolean","title":"Can Text","default":false},"can_call":{"type":"boolean","title":"Can Call","default":false},"dedicated":{"type":"boolean","title":"Dedicated","default":false}},"type":"object","required":["phone_e164","display"],"title":"SilasLine","description":"The Silas number for one book (multi-book portal)."},"SilasMountResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"phase_index":{"type":"integer","title":"Phase Index","default":0},"diy":{"type":"boolean","title":"Diy","default":false}},"type":"object","title":"SilasMountResponse","description":"Gate payload for the portal-wide Silas mount. Narrow by design: the\nfrontend previously proxied the full dashboard payload just to read the\nflag, amplifying every portal page view into the overview's query fan-out."},"SilasPollResponse":{"properties":{"status":{"type":"string","enum":["pending","done","error"],"title":"Status"},"reply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply"},"suggested_followups":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Suggested Followups"},"answer_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Kind"},"status_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Status Payload"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["status"],"title":"SilasPollResponse"},"SilasPrecallNotesRequest":{"properties":{"reader":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Reader"},"takeaway":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Takeaway"},"story":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Story"},"avoid":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Avoid"}},"additionalProperties":false,"type":"object","title":"SilasPrecallNotesRequest","description":"All fields optional; unknown fields are rejected."},"SilasThreadResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"route_context":{"type":"string","title":"Route Context"},"turns":{"items":{"$ref":"#/components/schemas/SilasTurn"},"type":"array","title":"Turns"}},"type":"object","required":["conversation_id","route_context","turns"],"title":"SilasThreadResponse"},"SilasTurn":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"answer_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Kind"},"status_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Status Payload"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","role","content","created_at"],"title":"SilasTurn"},"SilasVoicePollResponse":{"properties":{"status":{"type":"string","enum":["pending","done","error"],"title":"Status","default":"pending"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","title":"SilasVoicePollResponse","description":"Poll result for a voice-note transcription task."},"SilasVoiceResponse":{"properties":{"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"accepted":{"type":"boolean","title":"Accepted","default":false}},"type":"object","title":"SilasVoiceResponse","description":"Enqueue receipt for a voice-note transcription."},"SimpleStatusResponse":{"properties":{"status":{"type":"string","title":"Status"},"detail":{"type":"string","title":"Detail","default":""}},"type":"object","required":["status"],"title":"SimpleStatusResponse"},"SiteAudioUploadResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"sample_uploaded":{"type":"boolean","title":"Sample Uploaded","default":true}},"type":"object","title":"SiteAudioUploadResponse"},"SiteBookView":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"ready":{"type":"boolean","title":"Ready"},"is_anchor":{"type":"boolean","title":"Is Anchor"},"included":{"type":"boolean","title":"Included"},"is_primary":{"type":"boolean","title":"Is Primary"},"display_order":{"type":"integer","title":"Display Order","default":0},"buy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buy Url"},"cover_asset_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Asset Key"},"show_content":{"type":"boolean","title":"Show Content","default":true},"show_cover":{"type":"boolean","title":"Show Cover","default":true},"show_buy":{"type":"boolean","title":"Show Buy","default":true},"blurb_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blurb Override"},"cover_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Thumb Url"},"cover_options":{"items":{"$ref":"#/components/schemas/SiteCoverOption"},"type":"array","title":"Cover Options"}},"type":"object","required":["project_id","ready","is_anchor","included","is_primary"],"title":"SiteBookView","description":"Portal-facing view of one book on (or addable to) the site."},"SiteCoverOption":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"}},"type":"object","required":["key","label"],"title":"SiteCoverOption","description":"A cover image the author may pick for a book (validated allowlist)."},"SiteEditApproveResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","status"],"title":"SiteEditApproveResponse"},"SiteEditConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"tier":{"type":"string","title":"Tier"},"swappable_assets":{"additionalProperties":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},"type":"object","title":"Swappable Assets"}},"type":"object","required":["enabled","tier"],"title":"SiteEditConfigResponse"},"SiteEditConversationListResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/SiteEditConversationSummary"},"type":"array","title":"Conversations","default":[]}},"type":"object","title":"SiteEditConversationListResponse"},"SiteEditConversationResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"}},"type":"object","required":["conversation_id"],"title":"SiteEditConversationResponse"},"SiteEditConversationSummary":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["conversation_id"],"title":"SiteEditConversationSummary"},"SiteEditDraftListResponse":{"properties":{"drafts":{"items":{"$ref":"#/components/schemas/SiteEditDraftResponse"},"type":"array","title":"Drafts"}},"type":"object","required":["drafts"],"title":"SiteEditDraftListResponse"},"SiteEditDraftResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"change_summary":{"type":"string","title":"Change Summary"},"status":{"type":"string","enum":["previewing","approving","approved","discarded","superseded"],"title":"Status"},"draft_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Version"},"preview_ready":{"type":"boolean","title":"Preview Ready","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","change_summary","status"],"title":"SiteEditDraftResponse"},"SiteEditHistoryMessage":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"role":{"type":"string","enum":["author","assistant"],"title":"Role"},"content":{"type":"string","title":"Content"},"tool_calls":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tool Calls"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","role","content"],"title":"SiteEditHistoryMessage"},"SiteEditHistoryResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"messages":{"items":{"$ref":"#/components/schemas/SiteEditHistoryMessage"},"type":"array","title":"Messages"}},"type":"object","required":["conversation_id","messages"],"title":"SiteEditHistoryResponse"},"SiteEditMessageRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"},"client_request_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Client Request Id"}},"type":"object","required":["conversation_id","message"],"title":"SiteEditMessageRequest"},"SiteEditMessageResponse":{"properties":{"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"message_id":{"type":"string","format":"uuid","title":"Message Id"},"saved":{"type":"boolean","title":"Saved","default":true},"rate_limited":{"type":"boolean","title":"Rate Limited","default":false},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["message_id"],"title":"SiteEditMessageResponse"},"SiteEditPollResponse":{"properties":{"status":{"type":"string","enum":["pending","done","error"],"title":"Status"},"reply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply"},"tool_calls":{"items":{"$ref":"#/components/schemas/SiteEditToolCard"},"type":"array","title":"Tool Calls"},"preview_draft_ids":{"items":{"type":"string"},"type":"array","title":"Preview Draft Ids"}},"type":"object","required":["status"],"title":"SiteEditPollResponse"},"SiteEditToolCard":{"properties":{"tool":{"type":"string","maxLength":60,"title":"Tool"},"args_summary":{"type":"string","maxLength":1000,"title":"Args Summary","default":""},"outcome":{"type":"string","enum":["executed","refused","error"],"title":"Outcome"},"refusal_reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Refusal Reason"}},"type":"object","required":["tool","outcome"],"title":"SiteEditToolCard"},"SiteIntakeResponse":{"properties":{"tier":{"type":"string","title":"Tier"},"tier_rank":{"type":"integer","title":"Tier Rank"},"brand_primary":{"type":"string","title":"Brand Primary"},"brand_secondary":{"type":"string","title":"Brand Secondary"},"brand_accent":{"type":"string","title":"Brand Accent"},"palettes":{"items":{"$ref":"#/components/schemas/SitePaletteOption"},"type":"array","title":"Palettes"},"retailers":{"additionalProperties":true,"type":"object","title":"Retailers"},"social":{"additionalProperties":true,"type":"object","title":"Social"},"audio_sample_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Sample Title"},"audio_sample_uploaded":{"type":"boolean","title":"Audio Sample Uploaded","default":false},"endorsements":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Endorsements"},"lead_magnets":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Lead Magnets"},"offers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Offers"},"course":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Course"},"media":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Media"}},"type":"object","required":["tier","tier_rank","brand_primary","brand_secondary","brand_accent"],"title":"SiteIntakeResponse","description":"The full current intake state for the portal Sites settings page. Every\nfield mirrors what will render on the next publish. Column-backed data is\nechoed back as saved; brand shows the resolved (effective) colors."},"SitePaletteOption":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"primary":{"type":"string","title":"Primary"},"secondary":{"type":"string","title":"Secondary"},"accent":{"type":"string","title":"Accent"}},"type":"object","required":["id","label","primary","secondary","accent"],"title":"SitePaletteOption"},"SlackMapRequest":{"properties":{"slack_user_id":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Z0-9]+$","title":"Slack User Id"}},"type":"object","required":["slack_user_id"],"title":"SlackMapRequest"},"SocialAccountsRequest":{"properties":{"network":{"type":"string","enum":["facebook","instagram","linkedin","youtube","tiktok","tiktok-business"],"title":"Network"},"account_id":{"type":"string","maxLength":200,"minLength":1,"title":"Account Id"}},"additionalProperties":false,"type":"object","required":["network","account_id"],"title":"SocialAccountsRequest"},"SocialAttachRequest":{"properties":{"network":{"type":"string","enum":["facebook","instagram","linkedin","youtube","tiktok","tiktok-business"],"title":"Network"},"account_id":{"type":"string","maxLength":200,"minLength":1,"title":"Account Id"},"origin_id":{"type":"string","maxLength":200,"minLength":1,"title":"Origin Id"}},"additionalProperties":false,"type":"object","required":["network","account_id","origin_id"],"title":"SocialAttachRequest"},"SocialAutoPublishRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"mode":{"anyOf":[{"type":"string","enum":["approve_each","automatic"]},{"type":"null"}],"title":"Mode"}},"additionalProperties":false,"type":"object","title":"SocialAutoPublishRequest","description":"Author's review setting (2026-11-17): ``mode`` \"approve_each\" or\n\"automatic\". The older ``enabled`` switch still works (true = automatic)."},"SocialAutoPublishResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"enabled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enabled At"},"veto_hours":{"type":"integer","title":"Veto Hours"},"max_per_channel_per_day":{"type":"integer","title":"Max Per Channel Per Day"},"available":{"type":"boolean","title":"Available","default":true},"mode":{"type":"string","enum":["approve_each","automatic"],"title":"Mode","default":"approve_each"},"mode_chosen":{"type":"boolean","title":"Mode Chosen","default":false},"default_mode":{"type":"string","enum":["approve_each","automatic"],"title":"Default Mode","default":"approve_each"}},"type":"object","required":["enabled","veto_hours","max_per_channel_per_day"],"title":"SocialAutoPublishResponse"},"SocialChannel":{"properties":{"platform":{"type":"string","title":"Platform"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"connected":{"type":"boolean","title":"Connected"}},"type":"object","required":["platform","connected"],"title":"SocialChannel","description":"One channel in the WP-5 connection check."},"SocialChannelsResponse":{"properties":{"channels":{"items":{"$ref":"#/components/schemas/SocialChannel"},"type":"array","title":"Channels"},"connected_platforms":{"items":{"type":"string"},"type":"array","title":"Connected Platforms"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"cached":{"type":"boolean","title":"Cached","default":false},"connect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connect Url"}},"type":"object","required":["channels","connected_platforms"],"title":"SocialChannelsResponse"},"SocialConnectStatus":{"properties":{"eligible":{"type":"boolean","title":"Eligible","default":false},"connected":{"type":"boolean","title":"Connected","default":false},"posts_waiting":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Posts Waiting"},"publish_consent":{"type":"boolean","title":"Publish Consent","default":false}},"type":"object","title":"SocialConnectStatus","description":"Additive \"Connect your social accounts\" block (Mike, 2026-11-17).\n\nPresent only for an author who holds a social posting plan or the Launch.\n``connected`` = at least one account is connected; ``posts_waiting`` = posts\nalready written and waiting (None when the count is unreadable). Absent/None\n= no step (fail closed)."},"SocialProfile":{"properties":{"platform":{"type":"string","maxLength":255,"title":"Platform"},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Url"},"handle":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Handle"},"follower_count":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Follower Count"},"as_of":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"As Of"}},"additionalProperties":false,"type":"object","required":["platform"],"title":"SocialProfile","description":"An AUTHOR-REPORTED social account, optionally with a follower count.\n\nThis is the only compliant source for answering a host's \"what's his\nfollowing?\" question: the figures are typed in by the author (portal profile\neditor / intake), stored verbatim, and quoted as author-reported. The system\nnever scrapes, estimates, or extrapolates a following."},"SocialSetupStatus":{"properties":{"owned":{"type":"boolean","title":"Owned","default":false},"complete":{"type":"boolean","title":"Complete","default":false}},"type":"object","title":"SocialSetupStatus","description":"Additive social-setup block (Social Content Engine Phase 2).\n\n``owned`` = the project has an active social subscription (base/bundle/DFY\nchain); ``complete`` = the WP-7 generation-readiness gate passes. Absent/\nNone when the lookup fails — consumers treat that as not-owned."},"SocialStartRequest":{"properties":{"network":{"type":"string","enum":["facebook","instagram","linkedin","youtube","tiktok","tiktok-business"],"title":"Network"}},"additionalProperties":false,"type":"object","required":["network"],"title":"SocialStartRequest"},"SocialUrlsUpdate":{"properties":{"linkedin":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Linkedin"},"x":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"X"},"instagram":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Instagram"},"youtube":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Youtube"}},"additionalProperties":false,"type":"object","title":"SocialUrlsUpdate","description":"Social profile links. Each is optional; '' clears that slot."},"SourceCreate":{"properties":{"source_type":{"type":"string","enum":["blog_rss","podcast_appearance","youtube_channel"],"title":"Source Type"},"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"ownership_attested":{"type":"boolean","title":"Ownership Attested","default":false},"provenance_origin":{"type":"string","enum":["i_wrote_this_myself","ai_assisted","co_written_or_edited_by_others","unsure"],"title":"Provenance Origin","default":"i_wrote_this_myself"}},"type":"object","required":["source_type","url"],"title":"SourceCreate","description":"POST /onboarding/sources/{project_id} body (frozen contract).\n\n``ownership_attested`` must be literally true — the route returns 422\n``ownership_attestation_required`` otherwise (P2-H legal posture; the\nmodel keeps the raw bool so the route can emit the kind error detail)."},"SourceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_type":{"type":"string","title":"Source Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"type":"string","title":"Status"},"fetch_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fetch Error"},"items_fetched":{"type":"integer","title":"Items Fetched","default":0},"last_pulled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Pulled At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","source_type","status","created_at"],"title":"SourceResponse","description":"Author-facing source projection (no R2 keys, no author_id)."},"SourceSpan":{"properties":{"file_id":{"type":"string","maxLength":64,"minLength":1,"title":"File Id"},"start_line":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Start Line"},"end_line":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"End Line"}},"type":"object","required":["file_id","start_line","end_line"],"title":"SourceSpan","description":"A 0-based inclusive line range inside one file's normalized markdown."},"SourcesIntake":{"properties":{"dismissed":{"type":"boolean","title":"Dismissed","default":false},"source_count":{"type":"integer","title":"Source Count","default":0}},"type":"object","title":"SourcesIntake","description":"Source-material intake state (onboarding upgrade Phase 2, additive).\n\nThe wizard only inserts the connect_sources step when the author has zero\nsources AND has not dismissed the intake (skip-once-never-nag, P2-D)."},"SourcesListResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"sources":{"items":{"$ref":"#/components/schemas/SourceResponse"},"type":"array","title":"Sources"},"pack":{"$ref":"#/components/schemas/ContextPackStatus"},"intake_dismissed":{"type":"boolean","title":"Intake Dismissed","default":false},"max_sources":{"type":"integer","title":"Max Sources","default":10}},"type":"object","required":["project_id"],"title":"SourcesListResponse"},"SpamAssassinRule":{"properties":{"rule":{"type":"string","title":"Rule","default":""},"score":{"type":"number","title":"Score"},"description":{"type":"string","title":"Description"}},"type":"object","required":["score","description"],"title":"SpamAssassinRule"},"SpeakOrTidyResult":{"properties":{"status":{"type":"string","enum":["pending","done","failed"],"title":"Status"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"tidied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tidied"},"changes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Changes"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["status"],"title":"SpeakOrTidyResult"},"SpeakerAttended":{"properties":{"attended":{"type":"boolean","title":"Attended"}},"additionalProperties":false,"type":"object","required":["attended"],"title":"SpeakerAttended"},"SpeakerCreate":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"display_name":{"type":"string","maxLength":120,"minLength":1,"title":"Display Name"},"session_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Session Title"},"session_starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Session Starts At"},"card_label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Card Label"},"takeaway_line":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Takeaway Line"}},"additionalProperties":false,"type":"object","required":["project_id","display_name"],"title":"SpeakerCreate"},"SpeakerUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Display Name"},"session_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Session Title"},"session_starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Session Starts At"},"card_label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Card Label"},"takeaway_line":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Takeaway Line"}},"additionalProperties":false,"type":"object","title":"SpeakerUpdate"},"SplitPayCheckoutRequest":{"properties":{"include_audiobook":{"type":"boolean","title":"Include Audiobook","default":false},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"client_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Client Email"},"lead_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Lead Id"},"success_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cancel Url"}},"type":"object","title":"SplitPayCheckoutRequest","description":"Request for the separate split-payment checkout page."},"SplitResult":{"properties":{"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"},"source_chapter_id":{"type":"string","format":"uuid","title":"Source Chapter Id"},"inserted_chapter_id":{"type":"string","format":"uuid","title":"Inserted Chapter Id"},"status":{"type":"string","maxLength":80,"title":"Status"},"number_map":{"additionalProperties":{"type":"integer"},"type":"object","maxProperties":500,"title":"Number Map"},"classifications":{"items":{"$ref":"#/components/schemas/MaterialPlacement"},"type":"array","maxItems":10000,"title":"Classifications"}},"type":"object","required":["source_chapter_id","inserted_chapter_id","status"],"title":"SplitResult"},"SpotlightChoiceRequest":{"properties":{"choice":{"type":"string","enum":["opt_in","opt_out"],"title":"Choice"},"statement_version":{"type":"string","maxLength":64,"minLength":1,"title":"Statement Version"},"statement_sha256":{"type":"string","maxLength":64,"minLength":1,"title":"Statement Sha256"},"typed_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Typed Name"},"source":{"type":"string","enum":["portal_gate","portal_settings","onboarding_gate"],"title":"Source","default":"portal_gate"}},"additionalProperties":false,"type":"object","required":["choice","statement_version","statement_sha256"],"title":"SpotlightChoiceRequest"},"SpotlightChoiceResponse":{"properties":{"choice":{"type":"string","enum":["opt_in","opt_out"],"title":"Choice"},"chosen_at":{"type":"string","title":"Chosen At"}},"type":"object","required":["choice","chosen_at"],"title":"SpotlightChoiceResponse"},"SpotlightStateResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"required":{"type":"boolean","title":"Required"},"choice":{"anyOf":[{"type":"string","enum":["opt_in","opt_out"]},{"type":"null"}],"title":"Choice"},"chosen_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chosen At"},"statement":{"$ref":"#/components/schemas/SpotlightStatement"},"author_name_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name Hint"},"locked":{"type":"boolean","title":"Locked","default":false},"showcase_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Showcase Slug"},"showcase_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Showcase Url"},"headshot_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headshot Note"}},"type":"object","required":["enabled","required","statement"],"title":"SpotlightStateResponse"},"SpotlightStatement":{"properties":{"version":{"type":"string","title":"Version"},"sha256":{"type":"string","title":"Sha256"},"title":{"type":"string","title":"Title"},"body_md":{"type":"string","title":"Body Md"},"yes_label":{"type":"string","title":"Yes Label"},"no_label":{"type":"string","title":"No Label"},"no_confirm_text":{"type":"string","title":"No Confirm Text"},"signature_label":{"type":"string","title":"Signature Label"}},"type":"object","required":["version","sha256","title","body_md","yes_label","no_label","no_confirm_text","signature_label"],"title":"SpotlightStatement"},"StaffAnswer":{"properties":{"answer":{"type":"string","maxLength":4000,"minLength":1,"title":"Answer"},"scope":{"type":"string","enum":["global","project","lead"],"title":"Scope","default":"global"},"notify":{"type":"boolean","title":"Notify","default":true}},"additionalProperties":false,"type":"object","required":["answer"],"title":"StaffAnswer"},"StaffAssignmentRequest":{"properties":{"ops_user_id":{"type":"string","format":"uuid","title":"Ops User Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"assignment_role":{"type":"string","enum":["primary_owner","collaborator"],"title":"Assignment Role","default":"collaborator"}},"type":"object","required":["ops_user_id","project_id"],"title":"StaffAssignmentRequest"},"StaffAssignmentRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ops_user_id":{"type":"string","format":"uuid","title":"Ops User Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"assignment_role":{"type":"string","enum":["primary_owner","collaborator"],"title":"Assignment Role","default":"collaborator"},"created_by":{"type":"string","title":"Created By","default":""},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","ops_user_id","project_id"],"title":"StaffAssignmentRow"},"StaffAssignmentsResponse":{"properties":{"assignments":{"items":{"$ref":"#/components/schemas/StaffAssignmentRow"},"type":"array","title":"Assignments"}},"type":"object","required":["assignments"],"title":"StaffAssignmentsResponse"},"StaffCommunicationDraftRequest":{"properties":{"channel":{"type":"string","enum":["email","sms"],"title":"Channel"},"subject":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Subject"},"body":{"type":"string","maxLength":6000,"minLength":1,"title":"Body"},"idempotency_key":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["channel","body"],"title":"StaffCommunicationDraftRequest"},"StaffCommunicationSendRequest":{"properties":{"confirmed":{"type":"boolean","const":true,"title":"Confirmed"}},"type":"object","required":["confirmed"],"title":"StaffCommunicationSendRequest"},"StaffConsentRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"consent_version":{"type":"string","const":"podcast_voice_clone_consent_v1","title":"Consent Version"},"signed_document_r2_key":{"type":"string","maxLength":1024,"minLength":1,"title":"Signed Document R2 Key"},"author_signed":{"type":"boolean","const":true,"title":"Author Signed"}},"additionalProperties":false,"type":"object","required":["project_id","author_id","consent_version","signed_document_r2_key","author_signed"],"title":"StaffConsentRequest"},"StaffPasswordResetConfirm":{"properties":{"token":{"type":"string","maxLength":512,"minLength":16,"title":"Token"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"}},"type":"object","required":["token","password"],"title":"StaffPasswordResetConfirm","description":"Redeem a reset token and set a new password."},"StaffPasswordResetRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"StaffPasswordResetRequest","description":"Ask for a reset link. The response never varies by outcome."},"StaffPasswordResetStatus":{"properties":{"valid":{"type":"boolean","title":"Valid"},"surface":{"type":"string","title":"Surface"},"email":{"type":"string","title":"Email"}},"type":"object","required":["valid","surface","email"],"title":"StaffPasswordResetStatus","description":"Whether a reset link is still usable, for the reset page's first paint."},"StaffPasswordResetValidate":{"properties":{"token":{"type":"string","maxLength":512,"minLength":16,"title":"Token"}},"type":"object","required":["token"],"title":"StaffPasswordResetValidate","description":"Check a reset link.\n\nThe token travels in the BODY, not a query string: a reset token is a live\ncredential for its 60-minute window, and query strings are recorded in\nproxy and platform access logs where anyone with log access could harvest\none before it expires."},"StaffVerifyRequest":{"properties":{"step":{"type":"string","enum":["ai_plan","kdp_account","amazon_tax_bank","desktop_app","extension","test_extension","test_desktop","test_kdp","launch_list_consent"],"title":"Step"},"done":{"type":"boolean","title":"Done","default":true},"method":{"type":"string","enum":["on_call_screen","in_writing"],"title":"Method"},"note":{"type":"string","maxLength":500,"minLength":1,"title":"Note"},"ai_assistant":{"anyOf":[{"type":"string","enum":["claude","chatgpt"]},{"type":"null"}],"title":"Ai Assistant"},"ai_plan_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Ai Plan Name"}},"additionalProperties":false,"type":"object","required":["step","method","note"],"title":"StaffVerifyRequest"},"StartConversationRequest":{"properties":{"route_context":{"type":"string","enum":["dashboard","interviews","chapters","covers","deliverables","publishing","voice_dna","materials","current_step"],"title":"Route Context","default":"dashboard"}},"additionalProperties":false,"type":"object","title":"StartConversationRequest"},"StartConversationResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"route_context":{"type":"string","enum":["dashboard","interviews","chapters","covers","deliverables","publishing","voice_dna","materials","current_step"],"title":"Route Context"}},"type":"object","required":["conversation_id","route_context"],"title":"StartConversationResponse"},"StartNextBookResponse":{"properties":{"status":{"type":"string","enum":["blocked_active_book","resume_existing","credit_redeemed","checkout_ready","interest_recorded"],"title":"Status"},"message":{"type":"string","maxLength":1000,"title":"Message"},"resume_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resume Project Id"},"checkout_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Checkout Url"},"receipt_handoff_status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Receipt Handoff Status"}},"type":"object","required":["status","message"],"title":"StartNextBookResponse"},"StartPlatformOfferRequest":{"properties":{"consent":{"type":"boolean","title":"Consent"},"disclosure_version":{"type":"string","maxLength":40,"minLength":1,"title":"Disclosure Version"}},"type":"object","required":["consent","disclosure_version"],"title":"StartPlatformOfferRequest"},"StartPlatformOfferResponse":{"properties":{"started":{"type":"boolean","title":"Started"},"stripe_subscription_id":{"type":"string","title":"Stripe Subscription Id"},"included_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Included Period End"},"card_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Label"},"message":{"type":"string","title":"Message"}},"type":"object","required":["started","stripe_subscription_id","message"],"title":"StartPlatformOfferResponse"},"StartWorkbenchConversationRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"primary_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Primary Project Id"},"ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ops Item Id"}},"type":"object","title":"StartWorkbenchConversationRequest"},"StatusUpdate":{"properties":{"prospect_id":{"type":"string","format":"uuid","title":"Prospect Id"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"actioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actioned At"},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source","default":"dm_outreach"},"status":{"type":"string","enum":["sent","skip","replied"],"title":"Status"}},"additionalProperties":false,"type":"object","required":["prospect_id","status"],"title":"StatusUpdate"},"Step":{"properties":{"key":{"type":"string","title":"Key"},"order":{"type":"integer","title":"Order"},"title":{"type":"string","title":"Title"},"owner":{"type":"string","enum":["system","admin","rep"],"title":"Owner"},"state":{"type":"string","enum":["done","todo","blocked","warning","error"],"title":"State"},"summary":{"type":"string","title":"Summary"},"why":{"type":"string","title":"Why"},"how":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"How"},"action":{"anyOf":[{"$ref":"#/components/schemas/StepAction"},{"type":"null"}]},"detail":{"additionalProperties":true,"type":"object","title":"Detail"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checked At"},"done_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Done At"},"done_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Done By"}},"type":"object","required":["key","order","title","owner","state","summary","why"],"title":"Step"},"StepAction":{"properties":{"label":{"type":"string","title":"Label"}},"type":"object","required":["label"],"title":"StepAction"},"StepRequest":{"properties":{"step":{"type":"string","maxLength":40,"minLength":2,"title":"Step"},"signup_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Signup Id"},"visitor_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Visitor Id"},"book_type":{"anyOf":[{"type":"string","enum":["business","memoir","faith","method","fiction"]},{"type":"null"}],"title":"Book Type"},"detail":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Detail"}},"type":"object","required":["step"],"title":"StepRequest"},"StillDecidingResponse":{"properties":{"status":{"type":"string","const":"deciding","title":"Status","default":"deciding"},"title_decision_state":{"type":"string","title":"Title Decision State","default":"deciding"},"is_approved":{"type":"boolean","title":"Is Approved","default":false}},"type":"object","title":"StillDecidingResponse","description":"Result of an explicit \"I'm not ready to decide\" — title untouched."},"StockPronunciationReviewRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"expected_script_hash":{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Script Hash"},"expected_pronunciations_hash":{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{64}$","title":"Expected Pronunciations Hash"},"reviewed":{"type":"boolean","const":true,"title":"Reviewed"},"pronunciation_only":{"type":"boolean","const":true,"title":"Pronunciation Only"},"stock_voice_does_not_claim_author_identity":{"type":"boolean","const":true,"title":"Stock Voice Does Not Claim Author Identity"}},"additionalProperties":false,"type":"object","required":["project_id","expected_script_hash","expected_pronunciations_hash","reviewed","pronunciation_only","stock_voice_does_not_claim_author_identity"],"title":"StockPronunciationReviewRequest"},"StrandedChapterDraftRecoverRequest":{"properties":{"mode":{"type":"string","enum":["report","resume","fail"],"title":"Mode","default":"report"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"StrandedChapterDraftRecoverRequest","description":"Ops command for a chapter draft stranded after its write (GH #9833).\n\n``report`` classifies only; ``resume`` re-drives the missing delivery step\n(ignores the automatic resume budget); ``fail`` marks the row failed so the\nregular admin retry (a full re-write) applies."},"StrategyCallAnswers":{"properties":{"role":{"anyOf":[{"type":"string","enum":["business_owner","practice_owner","coach_consultant","speaker","professional","retired","other"]},{"type":"null"}],"title":"Role"},"revenue":{"anyOf":[{"type":"string","enum":["none","under_5k","5k_10k","10k_25k","25k_50k","50k_plus"]},{"type":"null"}],"title":"Revenue"},"goal":{"type":"string","enum":["clients","authority","speaking","legacy","other"],"title":"Goal"},"nonfiction":{"type":"string","enum":["yes","fiction"],"title":"Nonfiction"},"timeline":{"anyOf":[{"type":"string","enum":["60_days","3_6_months","someday"]},{"type":"null"}],"title":"Timeline"},"budget":{"anyOf":[{"type":"string","enum":["under_3k","3k_5k","5k_10k","10k_25k","25k_plus"]},{"type":"null"}],"title":"Budget"},"investment":{"anyOf":[{"type":"string","enum":["ready_now","right_fit","lower_cost","exploring"]},{"type":"null"}],"title":"Investment"}},"additionalProperties":false,"type":"object","required":["goal","nonfiction"],"title":"StrategyCallAnswers","description":"The seven application answers, as option keys (closed sets)."},"StrategyCallApplicationRequest":{"properties":{"first_name":{"type":"string","maxLength":80,"minLength":1,"title":"First Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"type":"string","maxLength":30,"minLength":7,"title":"Phone"},"answers":{"$ref":"#/components/schemas/StrategyCallAnswers"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/StrategyCallAttribution"},{"type":"null"}]},"landing_page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Landing Page"},"flow":{"anyOf":[{"type":"string","const":"lp-ghostwriter"},{"type":"null"}],"title":"Flow"}},"type":"object","required":["first_name","email","phone","answers"],"title":"StrategyCallApplicationRequest"},"StrategyCallAttribution":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"utm_content":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Content"},"utm_term":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Term"},"fbclid":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Fbclid"},"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"},"campaign_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign Id"},"oppref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Oppref"}},"type":"object","title":"StrategyCallAttribution"},"StrategyCallOptInRequest":{"properties":{"first_name":{"type":"string","maxLength":80,"minLength":1,"title":"First Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"type":"string","maxLength":30,"minLength":7,"title":"Phone"},"last_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Last Name"},"visitor_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Visitor Id"},"device":{"anyOf":[{"type":"string","enum":["mobile","tablet","desktop"]},{"type":"null"}],"title":"Device"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/StrategyCallAttribution"},{"type":"null"}]},"landing_page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Landing Page"},"jv":{"anyOf":[{"type":"string","maxLength":48},{"type":"null"}],"title":"Jv"}},"type":"object","required":["first_name","email","phone"],"title":"StrategyCallOptInRequest"},"StrategyCallVslMilestoneRequest":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"milestone":{"type":"string","enum":["10","25","50","75","95","investment","cta"],"title":"Milestone"},"viewer_token":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Viewer Token"},"contact_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Contact Id"}},"additionalProperties":false,"type":"object","required":["email","milestone"],"title":"StrategyCallVslMilestoneRequest"},"StripeChargeAmount":{"properties":{"charge_id":{"type":"string","title":"Charge Id"},"created":{"type":"string","format":"date-time","title":"Created"},"amount_cents":{"type":"integer","title":"Amount Cents"},"amount_refunded_cents":{"type":"integer","title":"Amount Refunded Cents","default":0},"status":{"type":"string","title":"Status"},"disputed":{"type":"boolean","title":"Disputed","default":false},"dispute_status":{"type":"string","title":"Dispute Status","default":""}},"type":"object","required":["charge_id","created","amount_cents","status"],"title":"StripeChargeAmount","description":"One Stripe charge's money only (no product lookup), for totals that\nmust cover EVERY charge a buyer has (GH #10202, Mike 2026-10-17)."},"StripeChargeSummary":{"properties":{"charge_id":{"type":"string","title":"Charge Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"created":{"type":"string","format":"date-time","title":"Created"},"status":{"type":"string","title":"Status"},"refunded":{"type":"boolean","title":"Refunded"},"amount_refunded_cents":{"type":"integer","title":"Amount Refunded Cents","default":0},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Name"},"product_ids":{"items":{"type":"string"},"type":"array","title":"Product Ids"},"ghl_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Order Id"},"funnel_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Funnel Slug"},"funnel_product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Funnel Product Code"},"funnel_order_item_count":{"type":"integer","title":"Funnel Order Item Count","default":0},"card_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Last4"},"statement_descriptor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statement Descriptor"},"disputed":{"type":"boolean","title":"Disputed","default":false}},"type":"object","required":["charge_id","amount_cents","created","status","refunded"],"title":"StripeChargeSummary"},"StripeDisputeDecisionRequest":{"properties":{"expected_generation":{"type":"integer","minimum":1.0,"title":"Expected Generation"},"decision":{"type":"string","enum":["continue_no_contact","send_approved_email","record_external_email"],"title":"Decision"},"notes":{"type":"string","maxLength":5000,"minLength":1,"title":"Notes"},"external_email_receipt_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"External Email Receipt Id"},"decided_by":{"type":"string","maxLength":200,"minLength":1,"title":"Decided By","default":"admin"}},"type":"object","required":["expected_generation","decision","notes"],"title":"StripeDisputeDecisionRequest"},"StripeDisputeEmailRecoveryRequest":{"properties":{"expected_generation":{"type":"integer","minimum":1.0,"title":"Expected Generation"},"source_ops_item_id":{"type":"string","format":"uuid","title":"Source Ops Item Id"},"recovery_action":{"type":"string","enum":["retry_approved_email","record_external_email"],"title":"Recovery Action"},"notes":{"type":"string","maxLength":5000,"minLength":1,"title":"Notes"},"external_email_receipt_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"External Email Receipt Id"}},"type":"object","required":["expected_generation","source_ops_item_id","recovery_action","notes"],"title":"StripeDisputeEmailRecoveryRequest"},"StyleSampleAnswer":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"page_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Page Sha256"},"decision":{"type":"string","enum":["yes","off","choose"],"title":"Decision"},"words":{"type":"string","maxLength":2000,"title":"Words","default":""},"pick":{"anyOf":[{"type":"string","enum":["A","B"]},{"type":"null"}],"title":"Pick"}},"additionalProperties":false,"type":"object","required":["artifact_id","page_sha256","decision"],"title":"StyleSampleAnswer","description":"\"Yes, that sounds like my book\" or what feels off, in their words; after three\ntries, ``choose`` with ``pick`` names the closer of the two samples shown."},"SubmitDisputeRequest":{"properties":{"stripe_dispute_id":{"type":"string","maxLength":255,"title":"Stripe Dispute Id"},"evidence":{"additionalProperties":true,"propertyNames":{"maxLength":200},"type":"object","maxProperties":50,"title":"Evidence"},"auto_submit":{"type":"boolean","title":"Auto Submit","default":false}},"type":"object","required":["stripe_dispute_id"],"title":"SubmitDisputeRequest"},"SubmitDisputeResponse":{"properties":{"submitted":{"type":"boolean","title":"Submitted","default":false},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"message":{"type":"string","title":"Message","default":""}},"type":"object","title":"SubmitDisputeResponse"},"SubmitInlineCommentsRequest":{"properties":{"comments":{"items":{"$ref":"#/components/schemas/InlineCommentInput"},"type":"array","maxItems":500,"minItems":1,"title":"Comments"},"categories":{"items":{"type":"string","enum":["voice_tone","facts_names","structure_flow","other"]},"type":"array","maxItems":3,"title":"Categories"}},"additionalProperties":false,"type":"object","required":["comments"],"title":"SubmitInlineCommentsRequest","description":"A batch of inline comments submitted together as one revision round."},"SubmitInlineCommentsResponse":{"properties":{"chapter_id":{"type":"string","format":"uuid","title":"Chapter Id"},"review_state":{"type":"string","title":"Review State"},"comments_submitted":{"type":"integer","title":"Comments Submitted"},"image_placements_created":{"type":"integer","title":"Image Placements Created","default":0},"dispatch_status":{"type":"string","title":"Dispatch Status","default":"enqueued"},"book_change_notes":{"type":"integer","title":"Book Change Notes","default":0},"book_change_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Book Change Request Id"}},"type":"object","required":["chapter_id","review_state","comments_submitted"],"title":"SubmitInlineCommentsResponse","description":"Result of submitting an inline-comment batch."},"SubmitQuizRequest":{"properties":{"answers":{"additionalProperties":{"type":"string","maxLength":200},"propertyNames":{"maxLength":100},"type":"object","maxProperties":100,"title":"Answers"}},"type":"object","required":["answers"],"title":"SubmitQuizRequest","description":"Request to submit quiz answers."},"SubmitYoutubeUrlRequest":{"properties":{"url":{"type":"string","maxLength":2048,"title":"Url"}},"additionalProperties":true,"type":"object","required":["url"],"title":"SubmitYoutubeUrlRequest"},"SubscriptionCheckoutRequest":{"properties":{"product_code":{"type":"string","maxLength":100,"title":"Product Code"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"success_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cancel Url"}},"type":"object","required":["product_code","project_id"],"title":"SubscriptionCheckoutRequest"},"SubscriptionCheckoutResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"url":{"type":"string","title":"Url"}},"type":"object","required":["session_id","url"],"title":"SubscriptionCheckoutResponse"},"SubscriptionSummary":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id"},"stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Subscription Id"},"product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Code"},"status":{"type":"string","title":"Status"},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Period End"}},"type":"object","required":["subscription_id","status"],"title":"SubscriptionSummary"},"SupportBody":{"properties":{"topic":{"type":"string","enum":["application","links","assets","compliance","payouts","other"],"title":"Topic"},"platform":{"anyOf":[{"type":"string","enum":["jvzoo","clickbank","digistore24"]},{"type":"null"}],"title":"Platform"},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["topic","message"],"title":"SupportBody"},"SupportBookSummary":{"properties":{"project_id":{"type":"string","title":"Project Id"},"book_label":{"type":"string","maxLength":40,"title":"Book Label"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"silas_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Silas Line"},"contract_target_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Target Date"},"is_this_book":{"type":"boolean","title":"Is This Book","default":false}},"type":"object","required":["project_id","book_label"],"title":"SupportBookSummary","description":"One of a multi-book author's live books (lane L4, 2026-11-06)."},"SupportCallBookingStatus":{"properties":{"available":{"type":"boolean","title":"Available"},"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"},"rep_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Name"}},"additionalProperties":false,"type":"object","required":["available"],"title":"SupportCallBookingStatus","description":"Portal payload for GET /portal/support-call. Nothing project-scoped leaks."},"SupportKbDraftApproveRequest":{"properties":{"edits":{"anyOf":[{"$ref":"#/components/schemas/SupportKbDraftEdits"},{"type":"null"}]}},"type":"object","title":"SupportKbDraftApproveRequest"},"SupportKbDraftEdits":{"properties":{"category":{"anyOf":[{"type":"string","maxLength":60,"minLength":2},{"type":"null"}],"title":"Category"},"question":{"anyOf":[{"type":"string","maxLength":300,"minLength":8},{"type":"null"}],"title":"Question"},"answer":{"anyOf":[{"type":"string","maxLength":1200,"minLength":20},{"type":"null"}],"title":"Answer"},"urls":{"anyOf":[{"items":{"type":"string","maxLength":500},"type":"array","maxItems":5},{"type":"null"}],"title":"Urls"}},"type":"object","title":"SupportKbDraftEdits","description":"Optional reviewer edits applied at approval time. Every field is bounded."},"SupportKbDraftListResponse":{"properties":{"drafts":{"items":{"$ref":"#/components/schemas/SupportKbDraftResponse"},"type":"array","title":"Drafts"}},"type":"object","required":["drafts"],"title":"SupportKbDraftListResponse"},"SupportKbDraftRejectRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"SupportKbDraftRejectRequest"},"SupportKbDraftResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"category":{"type":"string","title":"Category"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"},"urls":{"items":{"type":"string"},"type":"array","title":"Urls"},"source_kind":{"type":"string","title":"Source Kind"},"source_refs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Source Refs"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"status":{"type":"string","title":"Status"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"kb_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Kb Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","category","question","answer","source_kind","status"],"title":"SupportKbDraftResponse"},"SupportKbDraftReviewResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"kb_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Kb Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","status","message"],"title":"SupportKbDraftReviewResponse"},"SupportPatchBody":{"properties":{"status":{"anyOf":[{"type":"string","enum":["open","answered","closed"]},{"type":"null"}],"title":"Status"},"admin_response":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Admin Response"}},"additionalProperties":false,"type":"object","title":"SupportPatchBody"},"SupportRepCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"slack_user_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Slack User Id"},"ghl_user_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl User Id"},"active":{"type":"boolean","title":"Active","default":true},"rotation_order":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Rotation Order","default":0},"match_source":{"type":"string","maxLength":16,"title":"Match Source","default":"manual"},"ghl_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ghl Name"},"slack_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Slack Name"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"roles":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Roles"},"phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Phone"},"timezone":{"type":"string","maxLength":64,"title":"Timezone","default":"America/New_York"},"working_hours":{"additionalProperties":true,"type":"object","title":"Working Hours"},"weekly_checkin_capacity":{"type":"integer","maximum":200.0,"minimum":0.0,"title":"Weekly Checkin Capacity","default":15},"call_types":{"items":{"type":"string"},"type":"array","maxItems":4,"title":"Call Types"}},"type":"object","required":["name","email"],"title":"SupportRepCreate"},"SupportRepUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"slack_user_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Slack User Id"},"ghl_user_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ghl User Id"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"rotation_order":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Rotation Order"},"match_source":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Match Source"},"ghl_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ghl Name"},"slack_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Slack Name"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"roles":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":8},{"type":"null"}],"title":"Roles"},"phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Phone"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"working_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Working Hours"},"weekly_checkin_capacity":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":0.0},{"type":"null"}],"title":"Weekly Checkin Capacity"},"call_types":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Call Types"},"unhappy_call_tickets_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unhappy Call Tickets Enabled"}},"type":"object","title":"SupportRepUpdate","description":"All fields optional — PATCH-style partial update.\n\n``model_dump(exclude_unset=True)`` in the query layer means a field the\ncaller omits is left untouched; a field explicitly set to ``None``\n(only ``ghl_user_id`` is nullable) clears it."},"SupportTicketResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"customer_email":{"type":"string","title":"Customer Email"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"customer_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Type"},"channel":{"type":"string","title":"Channel","default":"email"},"intent":{"type":"string","title":"Intent"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Preview"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"status":{"type":"string","title":"Status","default":"open"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"save_sale_attempted":{"type":"boolean","title":"Save Sale Attempted","default":false},"save_sale_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Save Sale Expires At"},"save_sale_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Save Sale Outcome"},"ghl_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Contact Id"},"stripe_charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Charge Id"},"stripe_refund_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Refund Id"},"stripe_dispute_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Dispute Id"},"n8n_execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"N8N Execution Id"},"ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ops Item Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["id","customer_email","intent"],"title":"SupportTicketResponse"},"SweepBody":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","title":"SweepBody"},"SwitchBookRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"type":"object","required":["project_id"],"title":"SwitchBookRequest"},"SwitchBookResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["project_id"],"title":"SwitchBookResponse"},"SystemChangeAnswerIn":{"properties":{"answer":{"type":"string","enum":["looks_right","put_back","figure_table","figure_list","figure_upload","figure_leave_out","spelling","spelling_different","rename_all","rename_none","negation_book_right","negation_fix","move_words","move_keep","leave_out_yes","leave_out_no"],"title":"Answer"},"spelling":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Spelling"},"text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Text"}},"additionalProperties":false,"type":"object","required":["answer"],"title":"SystemChangeAnswerIn","description":"Her answer on a \"We changed this\" card (GH #14387 round 3): Looks right, or Put it back."},"TakeAnsweredPrompt":{"properties":{"prompt":{"type":"string","maxLength":1000,"title":"Prompt"},"quote":{"type":"string","maxLength":300,"title":"Quote"}},"type":"object","required":["prompt","quote"],"title":"TakeAnsweredPrompt"},"TakeHeardResponse":{"properties":{"material_id":{"type":"string","title":"Material Id"},"section_key":{"type":"string","title":"Section Key"},"status":{"type":"string","enum":["transcribing","listening","ready","failed"],"title":"Status"},"done":{"type":"boolean","title":"Done"},"opening":{"type":"string","maxLength":300,"title":"Opening","default":""},"caught":{"items":{"type":"string"},"type":"array","maxItems":3,"title":"Caught"},"answered_prompts":{"items":{"$ref":"#/components/schemas/TakeAnsweredPrompt"},"type":"array","maxItems":12,"title":"Answered Prompts"}},"type":"object","required":["material_id","section_key","status","done"],"title":"TakeHeardResponse"},"TalkWindow":{"properties":{"talk_start_seconds":{"type":"number","maximum":86400.0,"minimum":0.0,"title":"Talk Start Seconds"},"talk_end_seconds":{"type":"number","maximum":86400.0,"exclusiveMinimum":0.0,"title":"Talk End Seconds"}},"additionalProperties":false,"type":"object","required":["talk_start_seconds","talk_end_seconds"],"title":"TalkWindow","description":"Where a talk really runs in the event recording, in seconds from its start."},"TalkYourBookAccessLinkRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"payment_plan":{"type":"string","maxLength":50,"title":"Payment Plan","default":"full"},"book_path":{"type":"string","enum":["standard","memoir"],"title":"Book Path","default":"standard"},"plan_locked":{"type":"boolean","title":"Plan Locked","default":false}},"type":"object","required":["buyer_email"],"title":"TalkYourBookAccessLinkRequest"},"TalkYourBookAccessLinkResponse":{"properties":{"accepted":{"type":"boolean","title":"Accepted","default":true},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"TalkYourBookAccessLinkResponse"},"TalkYourBookCheckoutContractResponse":{"properties":{"checkout_enabled":{"type":"boolean","title":"Checkout Enabled"},"package_version":{"type":"integer","title":"Package Version"},"agreement_version":{"type":"string","title":"Agreement Version"}},"type":"object","required":["checkout_enabled","package_version","agreement_version"],"title":"TalkYourBookCheckoutContractResponse","description":"Exact backend contract the Vercel checkout must confirm before charging."},"TalkYourBookQuoteRequest":{"properties":{"buyer_email":{"type":"string","format":"email","title":"Buyer Email"}},"type":"object","required":["buyer_email"],"title":"TalkYourBookQuoteRequest"},"TalkYourBookQuoteResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"},"buyer_email":{"type":"string","format":"email","title":"Buyer Email"},"expires_at":{"type":"integer","title":"Expires At"}},"type":"object","required":["checkout_url","buyer_email","expires_at"],"title":"TalkYourBookQuoteResponse"},"TalkingPoint":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"scope":{"type":"string","title":"Scope"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"title":{"type":"string","title":"Title"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"talking_points":{"items":{"type":"string"},"type":"array","title":"Talking Points"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","scope","title","status","created_at"],"title":"TalkingPoint"},"TalkingPointListResponse":{"properties":{"talking_points":{"items":{"$ref":"#/components/schemas/TalkingPoint"},"type":"array","title":"Talking Points"}},"type":"object","required":["talking_points"],"title":"TalkingPointListResponse"},"TaskCompleteRequest":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Text"}},"type":"object","title":"TaskCompleteRequest","description":"Request body for completing a task with optional text."},"TaskStarted":{"properties":{"task_id":{"type":"string","title":"Task Id"}},"type":"object","required":["task_id"],"title":"TaskStarted"},"TasteAnswer":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"page_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Page Sha256"},"round_key":{"type":"string","maxLength":80,"minLength":1,"title":"Round Key"},"pick":{"type":"string","enum":["A","B","C"],"title":"Pick"},"why":{"type":"string","maxLength":2000,"title":"Why","default":""}},"additionalProperties":false,"type":"object","required":["artifact_id","page_sha256","round_key","pick"],"title":"TasteAnswer","description":"One round of the taste test: the passage they would rather keep reading."},"TeamBundleRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"TeamBundleRequest"},"TestBody":{"properties":{"to":{"type":"string","maxLength":320,"minLength":3,"title":"To"},"nudge":{"type":"boolean","title":"Nudge","default":false}},"additionalProperties":false,"type":"object","required":["to"],"title":"TestBody"},"TestCardsRequest":{"properties":{"rep":{"type":"string","maxLength":120,"minLength":2,"title":"Rep"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","required":["rep"],"title":"TestCardsRequest"},"TestimonialCreatedResponse":{"properties":{"testimonial_id":{"type":"string","format":"uuid","title":"Testimonial Id"},"status":{"type":"string","enum":["awaiting_upload","received","processing","ready_for_author","approved","author_declined","not_usable","feedback_only","withdrawn","failed"],"title":"Status"}},"type":"object","required":["testimonial_id","status"],"title":"TestimonialCreatedResponse"},"TestimonialDecisionRequest":{"properties":{"decision":{"type":"string","enum":["approve","decline"],"title":"Decision"}},"additionalProperties":false,"type":"object","required":["decision"],"title":"TestimonialDecisionRequest"},"TestimonialPrompt":{"properties":{"milestone":{"type":"string","enum":["first_interview","first_chapter","cover_approved","book_live","books_in_hand","anytime"],"title":"Milestone"},"title":{"type":"string","title":"Title"},"question":{"type":"string","title":"Question"},"tips":{"items":{"type":"string"},"type":"array","title":"Tips"},"lead_tip":{"type":"string","title":"Lead Tip","default":""},"tips_by_medium":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["video","audio","text"]},"type":"object","title":"Tips By Medium"},"preferred_media":{"type":"string","enum":["video","any"],"title":"Preferred Media"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"}},"type":"object","required":["milestone","title","question","tips","preferred_media"],"title":"TestimonialPrompt"},"TestimonialPromptsResponse":{"properties":{"spotlight":{"type":"boolean","title":"Spotlight"},"prompts":{"items":{"$ref":"#/components/schemas/TestimonialPrompt"},"type":"array","title":"Prompts"}},"type":"object","required":["spotlight","prompts"],"title":"TestimonialPromptsResponse"},"TestimonialStatusResponse":{"properties":{"testimonial_id":{"type":"string","format":"uuid","title":"Testimonial Id"},"status":{"type":"string","enum":["awaiting_upload","received","processing","ready_for_author","approved","author_declined","not_usable","feedback_only","withdrawn","failed"],"title":"Status"}},"type":"object","required":["testimonial_id","status"],"title":"TestimonialStatusResponse"},"TestimonialTextRequest":{"properties":{"milestone":{"type":"string","enum":["first_interview","first_chapter","cover_approved","book_live","books_in_hand","anytime"],"title":"Milestone"},"text":{"type":"string","maxLength":4000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["milestone","text"],"title":"TestimonialTextRequest"},"TestimonialUploadUrlRequest":{"properties":{"milestone":{"type":"string","enum":["first_interview","first_chapter","cover_approved","book_live","books_in_hand","anytime"],"title":"Milestone"},"media_kind":{"type":"string","enum":["audio","video"],"title":"Media Kind"},"content_type":{"type":"string","maxLength":200,"minLength":3,"title":"Content Type"},"filename":{"type":"string","maxLength":200,"minLength":1,"title":"Filename"},"size_bytes":{"type":"integer","maximum":262144000.0,"minimum":1.0,"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["milestone","media_kind","content_type","filename","size_bytes"],"title":"TestimonialUploadUrlRequest"},"TestimonialUploadUrlResponse":{"properties":{"testimonial_id":{"type":"string","format":"uuid","title":"Testimonial Id"},"put_url":{"type":"string","title":"Put Url"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["testimonial_id","put_url","headers","expires_in"],"title":"TestimonialUploadUrlResponse"},"TestimonialUploadedResponse":{"properties":{"status":{"type":"string","const":"processing","title":"Status"}},"type":"object","required":["status"],"title":"TestimonialUploadedResponse"},"TextingHandoffRequest":{"properties":{"notes":{"type":"string","maxLength":2000,"title":"Notes","default":""}},"type":"object","title":"TextingHandoffRequest","description":"Demi's notes from the launch call for Alfred (Mike, 2026-10-19)."},"TidyRequest":{"properties":{"text":{"type":"string","maxLength":40000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"TidyRequest"},"TitleCandidateCollision":{"properties":{"exact_match_found":{"type":"boolean","title":"Exact Match Found","default":false},"near_matches":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Near Matches"}},"type":"object","title":"TitleCandidateCollision","description":"Existing-book collision findings for one candidate."},"TitleCandidateRationales":{"properties":{"seo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo"},"shelf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shelf"},"marketing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketing"},"speaking":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaking"}},"type":"object","title":"TitleCandidateRationales","description":"The v2 per-dimension rationales (producer contract: ``notes``)."},"TitleCandidateScores":{"properties":{"seo":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Seo"},"shelf":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Shelf"},"marketing":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Marketing"},"speaking":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Speaking"}},"type":"object","title":"TitleCandidateScores","description":"Per-dimension scores, COPIED verbatim from the scorecard.\n\n``int | float | None`` on purpose: the read adapter never computes or\nnormalizes a score, so an unscored dimension surfaces as ``null`` and an\ninteger score is not silently rendered as ``8.0``."},"TitleLeaning":{"properties":{"title":{"type":"string","title":"Title","default":""},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"reaction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reaction"},"reaction_text":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Reaction Text"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At"}},"type":"object","title":"TitleLeaning","description":"A NON-BINDING leaning captured from a planning call (\"I love that one\").\n\nNothing in the pipeline reads this yet — the Studio surfaces it so an author\nsees the title they reacted well to on the call without it being treated as\na decision. Shape per migration 20260801090000."},"TitleRefreshResponse":{"properties":{"status":{"type":"string","enum":["enqueued","capped","unavailable","fresh"],"title":"Status"},"cap":{"type":"integer","title":"Cap","default":0},"used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Used"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["status"],"title":"TitleRefreshResponse","description":"Result of requesting a scorecard refresh (always 202; body carries the outcome).\n\n``fresh`` and ``capped`` mean nothing was enqueued and no research will run."},"TitleScorecardCard":{"properties":{"kind":{"type":"string","title":"Kind","default":"title_scorecard"},"title":{"type":"string","title":"Title","default":"Title comparison"},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At"},"candidates":{"items":{"$ref":"#/components/schemas/TitleScorecardCardCandidate"},"type":"array","title":"Candidates"},"recommendation":{"anyOf":[{"$ref":"#/components/schemas/TitleScorecardRecommendation"},{"type":"null"}]},"source_count":{"type":"integer","title":"Source Count","default":0}},"type":"object","title":"TitleScorecardCard","description":"The typed author-facing card, built by the read adapter."},"TitleScorecardCardCandidate":{"properties":{"title":{"type":"string","title":"Title","default":""},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"seo":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Seo"},"shelf":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Shelf"},"marketing":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Marketing"},"speaking":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Speaking"},"overall":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Overall"},"is_selected":{"type":"boolean","title":"Is Selected","default":false}},"type":"object","title":"TitleScorecardCardCandidate","description":"One row of the scorecard card (``build_title_scorecard_card`` output)."},"TitleScorecardRecommendation":{"properties":{"candidate_id":{"type":"string","title":"Candidate Id","default":""},"why":{"type":"string","title":"Why","default":""}},"type":"object","title":"TitleScorecardRecommendation","description":"The research pass's own pick, when it named one we actually scored."},"TitleStudioCandidate":{"properties":{"candidate_id":{"type":"string","title":"Candidate Id"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"source":{"type":"string","title":"Source","default":"ai"},"is_selected":{"type":"boolean","title":"Is Selected","default":false},"is_removable":{"type":"boolean","title":"Is Removable","default":false},"is_scored":{"type":"boolean","title":"Is Scored","default":false},"scores":{"anyOf":[{"$ref":"#/components/schemas/TitleCandidateScores"},{"type":"null"}]},"overall":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Overall"},"rationales":{"anyOf":[{"$ref":"#/components/schemas/TitleCandidateRationales"},{"type":"null"}]},"keyword_terms":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Keyword Terms"},"collision":{"anyOf":[{"$ref":"#/components/schemas/TitleCandidateCollision"},{"type":"null"}]},"comps":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Comps"}},"type":"object","required":["candidate_id","title"],"title":"TitleStudioCandidate","description":"One live candidate, joined to its scorecard row when it has been scored.\n\nThe candidate list is the LIVE one (``book_outline.working_titles``), not the\nscorecard's — a title added since the last research pass must appear in the\nStudio immediately, marked ``is_scored=False``, instead of vanishing until\nthe refresh lands."},"TitleStudioResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"candidates":{"items":{"$ref":"#/components/schemas/TitleStudioCandidate"},"type":"array","title":"Candidates"},"candidate_limit":{"type":"integer","title":"Candidate Limit","default":12},"selected_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Title"},"selected_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Subtitle"},"is_approved":{"type":"boolean","title":"Is Approved","default":false},"title_approved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Approved At"},"title_decision_state":{"type":"string","title":"Title Decision State","default":"undecided"},"title_leaning":{"anyOf":[{"$ref":"#/components/schemas/TitleLeaning"},{"type":"null"}]},"scorecard":{"anyOf":[{"$ref":"#/components/schemas/TitleScorecardCard"},{"type":"null"}]},"scorecard_state":{"type":"string","enum":["fresh","stale","running","missing","unavailable"],"title":"Scorecard State","default":"missing"},"scorecard_generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scorecard Generated At"},"refresh_available":{"type":"boolean","title":"Refresh Available","default":false},"refresh_daily_cap":{"type":"integer","title":"Refresh Daily Cap","default":0},"cover_byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Byline"},"has_cover_concepts":{"type":"boolean","title":"Has Cover Concepts","default":false}},"type":"object","required":["project_id"],"title":"TitleStudioResponse","description":"Everything the Title Studio page renders, in one read."},"ToldUsPageResponse":{"properties":{"rep_first_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Rep First Name"},"call_date":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Call Date"},"what_matters_most":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"What Matters Most"},"goals":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Goals"},"dictate_commitments":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Dictate Commitments"}},"type":"object","title":"ToldUsPageResponse"},"TouchedAction":{"properties":{"action":{"type":"string","enum":["put_back","undo","looks_good"],"title":"Action"},"expected_version":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Expected Version","default":0}},"additionalProperties":false,"type":"object","required":["action"],"title":"TouchedAction"},"TourCompleteResponse":{"properties":{"status":{"type":"string","title":"Status"},"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"type":"object","required":["status","project_id"],"title":"TourCompleteResponse"},"TrafficLane":{"type":"string","enum":["consistent_organic","paid_ads","other_audiences","none_yet"],"title":"TrafficLane","description":"The honest-audit checkboxes — workbook page 3, \"three places traffic\ncomes from\" (work for it / pay for it / partner for it)."},"TrainingLoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"title":"Password"}},"type":"object","required":["email","password"],"title":"TrainingLoginRequest","description":"Login request for a sales rep."},"TriggerCoverGenerationRequest":{"properties":{"count":{"type":"integer","title":"Count","default":4}},"additionalProperties":true,"type":"object","title":"TriggerCoverGenerationRequest"},"TriggerVideoRenderRequest":{"properties":{"strategy":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Strategy"},"channel":{"type":"string","maxLength":50,"title":"Channel","default":"reels"}},"additionalProperties":true,"type":"object","title":"TriggerVideoRenderRequest"},"TypedEditRequest":{"properties":{"before":{"type":"string","maxLength":6000,"minLength":1,"title":"Before"},"after":{"type":"string","maxLength":6000,"minLength":1,"title":"After"}},"type":"object","required":["before","after"],"title":"TypedEditRequest"},"TypedNoteRequest":{"properties":{"text":{"type":"string","maxLength":3000,"minLength":2,"title":"Text"},"anchor_text":{"type":"string","maxLength":2000,"title":"Anchor Text","default":""},"expected_version":{"type":"integer","minimum":0.0,"title":"Expected Version"}},"type":"object","required":["text","expected_version"],"title":"TypedNoteRequest"},"UnfreezeInteriorRequest":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason","default":"author_request"}},"additionalProperties":true,"type":"object","title":"UnfreezeInteriorRequest"},"UnlockRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":5,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"UnlockRequest"},"UnsubscribeBody":{"properties":{"token":{"type":"string","maxLength":400,"minLength":10,"title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"UnsubscribeBody"},"UpcomingExpense":{"properties":{"vendor":{"type":"string","title":"Vendor"},"category":{"type":"string","title":"Category","default":""},"monthly_cents":{"type":"integer","title":"Monthly Cents"},"months_seen":{"type":"integer","title":"Months Seen"},"last_paid":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Paid"}},"type":"object","required":["vendor","monthly_cents","months_seen"],"title":"UpcomingExpense"},"UpdateBumpRequest":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"order_bump":{"type":"boolean","title":"Order Bump"},"order_token":{"type":"string","maxLength":512,"title":"Order Token"}},"type":"object","required":["order_id","order_bump","order_token"],"title":"UpdateBumpRequest","description":"POST /api/checkout-native/update-bump — server re-prices the intent.\n\nR10-2: ``order_token`` (the HMAC minted by create-intent) authorizes the\ncaller to mutate THIS order's live PaymentIntent amount. Without it a leaked\norder UUID would let anyone change what another buyer is charged, so the token\nis REQUIRED and verified (same authority as the upsell accept/decline\nendpoints) before the PI is ever touched."},"UpdateBumpResponse":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"subtotal_cents":{"type":"integer","title":"Subtotal Cents"},"client_secret":{"type":"string","maxLength":512,"title":"Client Secret"}},"type":"object","required":["order_id","subtotal_cents","client_secret"],"title":"UpdateBumpResponse"},"UpdateExperimentStatusRequest":{"properties":{"status":{"type":"string","enum":["draft","running","stopped","won"],"title":"Status"},"winner_variant":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Winner Variant"},"variant_copy_shipped":{"type":"boolean","title":"Variant Copy Shipped","default":false},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["status"],"title":"UpdateExperimentStatusRequest","description":"PATCH /ops/experiments/{key} — lifecycle transitions."},"UpdateFrontBackMatterRequest":{"properties":{"content_text":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Content Text"}},"additionalProperties":true,"type":"object","title":"UpdateFrontBackMatterRequest"},"UpdateImportFileRequest":{"properties":{"position":{"anyOf":[{"type":"integer","maximum":40.0,"minimum":0.0},{"type":"null"}],"title":"Position"},"remove":{"type":"boolean","title":"Remove","default":false}},"type":"object","title":"UpdateImportFileRequest"},"UpdateMemberRequest":{"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"copy_to_channel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Copy To Channel"}},"type":"object","title":"UpdateMemberRequest"},"UpdatePlacementMetadataRequest":{"properties":{"caption":{"type":"string","maxLength":2000,"title":"Caption"},"alt_text":{"type":"string","maxLength":2000,"minLength":1,"title":"Alt Text"}},"additionalProperties":false,"type":"object","required":["caption","alt_text"],"title":"UpdatePlacementMetadataRequest","description":"Author-facing caption and accessible image description."},"UpdateProgressRequest":{"properties":{"scroll_depth_pct":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Scroll Depth Pct"},"time_spent_seconds":{"type":"integer","minimum":0.0,"title":"Time Spent Seconds"}},"type":"object","required":["scroll_depth_pct","time_spent_seconds"],"title":"UpdateProgressRequest","description":"Request to update module progress for a rep."},"UpdateRep":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Full Name"},"ghl_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Ghl Email"},"slack_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Slack Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"working_hours":{"anyOf":[{"additionalProperties":true,"type":"object","maxLength":7},{"type":"null"}],"title":"Working Hours"}},"additionalProperties":false,"type":"object","title":"UpdateRep"},"UpdateRepMinistryRateAccessRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"UpdateRepMinistryRateAccessRequest","description":"Admin-controlled L2 access to the fixed Ministry rate."},"UpdateRepStatusRequest":{"properties":{"status":{"type":"string","maxLength":32,"pattern":"^(pending|active|deactivated)$","title":"Status"}},"type":"object","required":["status"],"title":"UpdateRepStatusRequest","description":"Request to update a sales rep's status."},"UpdateSettingsRequest":{"properties":{"fallback_ghl_user_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Fallback Ghl User Id"}},"type":"object","title":"UpdateSettingsRequest"},"UpgradeChapter":{"properties":{"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["title"],"title":"UpgradeChapter"},"UpgradeCheckoutOption":{"properties":{"key":{"type":"string","enum":["upgrade","upgrade_audiobook"],"title":"Key"},"url":{"type":"string","title":"Url"},"amount_cents":{"type":"integer","title":"Amount Cents"},"audiobook_cents":{"type":"integer","title":"Audiobook Cents","default":0}},"type":"object","required":["key","url","amount_cents"],"title":"UpgradeCheckoutOption","description":"One \"Upgrade now\" button, priced by the server.\n\n``upgrade``: Authority price - credit. ``upgrade_audiobook``: the same\ndifference plus the $997 human-narrated audiobook add-on."},"UpgradeCheckoutRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"upgrade_tier":{"type":"string","maxLength":100,"title":"Upgrade Tier"},"payment_plan":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Payment Plan"},"success_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cancel Url"},"financing_token":{"anyOf":[{"type":"string","maxLength":2000,"minLength":20},{"type":"null"}],"title":"Financing Token"}},"type":"object","required":["project_id","upgrade_tier"],"title":"UpgradeCheckoutRequest"},"UpgradeCredit":{"properties":{"authority_price_cents":{"type":"integer","title":"Authority Price Cents"},"credit_cents":{"type":"integer","title":"Credit Cents"},"upgrade_cents":{"type":"integer","title":"Upgrade Cents"},"deadline":{"type":"string","format":"date-time","title":"Deadline"}},"type":"object","required":["authority_price_cents","credit_cents","upgrade_cents","deadline"],"title":"UpgradeCredit"},"UpgradeTitle":{"properties":{"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"}},"type":"object","required":["title"],"title":"UpgradeTitle"},"UpgradeVideo":{"properties":{"url":{"type":"string","title":"Url"},"kind":{"type":"string","enum":["file","embed","vidalytics"],"title":"Kind"},"reveal_at_seconds":{"type":"integer","title":"Reveal At Seconds","default":0}},"type":"object","required":["url","kind"],"title":"UpgradeVideo"},"UploadIntent":{"properties":{"size_bytes":{"type":"integer","maximum":5368709120.0,"minimum":1.0,"title":"Size Bytes"},"content_type":{"type":"string","enum":["video/mp4","video/quicktime","video/webm","audio/mpeg","audio/mp4"],"title":"Content Type"}},"additionalProperties":false,"type":"object","required":["size_bytes","content_type"],"title":"UploadIntent"},"UploadTicketRequest":{"properties":{"filename":{"type":"string","maxLength":200,"minLength":1,"title":"Filename"},"content_type":{"type":"string","maxLength":120,"title":"Content Type","default":"application/pdf"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes"}},"type":"object","required":["filename","size_bytes"],"title":"UploadTicketRequest"},"UploadTicketResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"r2_bucket":{"type":"string","title":"R2 Bucket"},"r2_key":{"type":"string","title":"R2 Key"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"max_bytes":{"type":"integer","title":"Max Bytes"}},"type":"object","required":["upload_url","r2_bucket","r2_key","expires_at","max_bytes"],"title":"UploadTicketResponse"},"UpsellAcceptRequest":{"properties":{"order_token":{"type":"string","maxLength":512,"title":"Order Token"},"step_slug":{"type":"string","maxLength":100,"title":"Step Slug"},"plan":{"type":"string","enum":["one_time","2pay","3pay"],"title":"Plan","default":"one_time"},"nonce":{"type":"string","maxLength":128,"title":"Nonce"}},"type":"object","required":["order_token","step_slug","nonce"],"title":"UpsellAcceptRequest","description":"POST /api/checkout-native/upsell/accept — one-click charge of saved PM."},"UpsellAcceptResponse":{"properties":{"order_item_id":{"type":"string","format":"uuid","title":"Order Item Id"},"status":{"type":"string","enum":["pending","succeeded","failed","partial_refund","refunded"],"title":"Status"},"next_action":{"type":"string","enum":["advance","requires_action","declined","processing"],"title":"Next Action","default":"advance"},"client_secret":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Client Secret"},"next_step_slug":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Next Step Slug"}},"type":"object","required":["order_item_id","status"],"title":"UpsellAcceptResponse"},"UpsellDeclineRequest":{"properties":{"order_token":{"type":"string","maxLength":512,"title":"Order Token"},"step_slug":{"type":"string","maxLength":100,"title":"Step Slug"},"nonce":{"type":"string","maxLength":128,"title":"Nonce"}},"type":"object","required":["order_token","step_slug","nonce"],"title":"UpsellDeclineRequest","description":"POST /api/checkout-native/upsell/decline — honors decline_next_step."},"UpsellDeclineResponse":{"properties":{"next_step_slug":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Next Step Slug"}},"type":"object","title":"UpsellDeclineResponse"},"UpsellNonceRequest":{"properties":{"order_token":{"type":"string","maxLength":512,"title":"Order Token"},"step_slug":{"type":"string","maxLength":100,"title":"Step Slug"}},"type":"object","required":["order_token","step_slug"],"title":"UpsellNonceRequest","description":"POST /api/checkout-native/upsell/nonce — exchange an order token for the\nstep's single-use nonce (idempotent per step)."},"UpsellNonceResponse":{"properties":{"nonce":{"type":"string","maxLength":128,"title":"Nonce"}},"type":"object","required":["nonce"],"title":"UpsellNonceResponse"},"VATaskAssetRewriteRequest":{"properties":{"feedback":{"type":"string","maxLength":5000,"minLength":1,"title":"Feedback"},"requested_by":{"type":"string","maxLength":200,"title":"Requested By","default":"admin"}},"type":"object","required":["feedback"],"title":"VATaskAssetRewriteRequest"},"VATaskAssignRequest":{"properties":{"assigned_to":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Assigned To"}},"type":"object","title":"VATaskAssignRequest"},"VATaskCommerceConfirmRequest":{"properties":{"key":{"type":"string","maxLength":64,"title":"Key"},"reference":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reference"}},"type":"object","required":["key"],"title":"VATaskCommerceConfirmRequest","description":"One structured commerce confirmation on a VA task.\n\n``key`` is validated against ``commerce_ownership.CONFIRMATION_KEYS`` at the\nroute, so this is an enum in practice: a typo is a 422, never a silent\nconfirmation nobody reads. There is deliberately NO free-text field beyond a\nbounded reference URL — the whole point of these rows is that a note cannot\nsatisfy an author-input predicate."},"VATaskNoteRequest":{"properties":{"note":{"type":"string","maxLength":5000,"title":"Note"},"author":{"type":"string","maxLength":200,"title":"Author","default":"admin"}},"type":"object","required":["note"],"title":"VATaskNoteRequest"},"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"},"VariantReport":{"properties":{"variant":{"type":"string","title":"Variant"},"is_control":{"type":"boolean","title":"Is Control"},"weight":{"type":"integer","title":"Weight"},"visitors":{"type":"integer","title":"Visitors"},"exposures":{"type":"integer","title":"Exposures"},"conversions":{"type":"integer","title":"Conversions"},"conversions_by_event":{"additionalProperties":{"type":"integer"},"type":"object","title":"Conversions By Event"},"conversion_rate":{"type":"number","title":"Conversion Rate"},"bump_take_rate":{"type":"number","title":"Bump Take Rate"},"upsell_take_rate":{"type":"number","title":"Upsell Take Rate"},"revenue_usd":{"type":"number","title":"Revenue Usd"},"revenue_per_visitor":{"type":"number","title":"Revenue Per Visitor"},"aov_usd":{"type":"number","title":"Aov Usd"},"prob_beat_control":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prob Beat Control"},"z_test_p_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Z Test P Value"},"primary_conversions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Primary Conversions"},"primary_conversion_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Primary Conversion Rate"},"primary_prob_beat_control":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Primary Prob Beat Control"},"primary_z_test_p_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Primary Z Test P Value"},"p_best":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P Best"},"expected_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected Loss"},"revenue_p_best":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue P Best"},"revenue_expected_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue Expected Loss"}},"type":"object","required":["variant","is_control","weight","visitors","exposures","conversions","conversions_by_event","conversion_rate","bump_take_rate","upsell_take_rate","revenue_usd","revenue_per_visitor","aov_usd"],"title":"VariantReport","description":"One arm's measured performance."},"VerifyBody":{"properties":{"token":{"type":"string","maxLength":200,"minLength":10,"title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"VerifyBody"},"VerifyFinancingDeclineRequest":{"properties":{"outcome_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outcome Id"},"verification_note":{"type":"string","maxLength":500,"minLength":10,"title":"Verification Note"},"verified":{"type":"boolean","title":"Verified","default":true}},"type":"object","required":["verification_note"],"title":"VerifyFinancingDeclineRequest"},"VerifyHostingRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"hosting_show_id":{"type":"string","maxLength":200,"minLength":1,"title":"Hosting Show Id"},"rss_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Rss Url"},"human_reviewed":{"type":"boolean","const":true,"title":"Human Reviewed"},"dynamic_ads_disabled":{"type":"boolean","const":true,"title":"Dynamic Ads Disabled"},"amazon_audible_distribution_absent":{"type":"boolean","const":true,"title":"Amazon Audible Distribution Absent"}},"additionalProperties":false,"type":"object","required":["project_id","hosting_show_id","rss_url","human_reviewed","dynamic_ads_disabled","amazon_audible_distribution_absent"],"title":"VerifyHostingRequest"},"VerifyLinkBody":{"properties":{"verified_status":{"type":"string","enum":["unverified","verified","rejected"],"title":"Verified Status"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["verified_status"],"title":"VerifyLinkBody"},"VerifyPlatformBody":{"properties":{"verified_status":{"type":"string","enum":["not_started","submitted","pending","approved","not_required","rejected","suspended","unknown"],"title":"Verified Status"},"source":{"type":"string","enum":["admin_review","platform_api","self_report"],"title":"Source","default":"admin_review"},"evidence_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Evidence Note"}},"additionalProperties":false,"type":"object","required":["verified_status"],"title":"VerifyPlatformBody"},"VerifyTokenRequest":{"properties":{"token":{"type":"string","maxLength":2048,"title":"Token"}},"type":"object","required":["token"],"title":"VerifyTokenRequest"},"VerifyTokenResponse":{"properties":{"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"session_type":{"type":"string","enum":["project","author"],"title":"Session Type","default":"project"},"email":{"type":"string","title":"Email"},"multi_book_ui":{"type":"boolean","title":"Multi Book Ui","default":false},"session_reused":{"type":"boolean","title":"Session Reused","default":false}},"type":"object","required":["email"],"title":"VerifyTokenResponse"},"VetoRequest":{"properties":{"opportunity_id":{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$","title":"Opportunity Id"},"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["opportunity_id"],"title":"VetoRequest"},"ViabilityIndicator":{"properties":{"label":{"type":"string","title":"Label"},"score":{"type":"string","title":"Score"},"note":{"type":"string","title":"Note"}},"type":"object","required":["label","score","note"],"title":"ViabilityIndicator","description":"Single viability indicator from AI results."},"VisitorAttributionRequest":{"properties":{"visitor_id":{"type":"string","maxLength":64,"minLength":8,"title":"Visitor Id"},"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"},"first_touch":{"anyOf":[{"$ref":"#/components/schemas/FirstTouch"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["visitor_id"],"title":"VisitorAttributionRequest","description":"POST /api/attribution/visitor."},"VisitorAttributionResponse":{"properties":{"recorded":{"type":"boolean","title":"Recorded","default":false},"created":{"type":"boolean","title":"Created","default":false},"channel":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Channel"}},"type":"object","title":"VisitorAttributionResponse"},"VoiceCheckAnswer":{"properties":{"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["verdict"],"title":"VoiceCheckAnswer"},"VoiceCheckChoice":{"properties":{"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"label":{"type":"string","title":"Label"},"token":{"type":"string","title":"Token"}},"type":"object","required":["verdict","label","token"],"title":"VoiceCheckChoice"},"VoiceCheckConfirmRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["token"],"title":"VoiceCheckConfirmRequest","description":"Her Confirm press. The answer comes from the signed token, never the body."},"VoiceCheckConfirmResponse":{"properties":{"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"label":{"type":"string","title":"Label"},"chapter_title":{"type":"string","title":"Chapter Title"},"reader_path":{"type":"string","title":"Reader Path"}},"type":"object","required":["verdict","label","chapter_title","reader_path"],"title":"VoiceCheckConfirmResponse"},"VoiceCheckView":{"properties":{"chapter_title":{"type":"string","title":"Chapter Title"},"chapter_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chapter Number"},"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"choices":{"items":{"$ref":"#/components/schemas/VoiceCheckChoice"},"type":"array","title":"Choices"},"answer":{"anyOf":[{"$ref":"#/components/schemas/VoiceCheckAnswer"},{"type":"null"}]},"reader_path":{"type":"string","title":"Reader Path"}},"type":"object","required":["chapter_title","verdict","choices","reader_path"],"title":"VoiceCheckView","description":"What the confirmation page shows. Read only: GET never saves anything."},"VoiceCloneRequest":{"properties":{"voice_name":{"type":"string","maxLength":64,"title":"Voice Name"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"},"r2_sample_keys":{"items":{"type":"string","maxLength":1024},"type":"array","maxItems":25,"title":"R2 Sample Keys"}},"type":"object","required":["voice_name","r2_sample_keys"],"title":"VoiceCloneRequest","description":"Request body for creating a voice clone from audio samples."},"VoiceCloneResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"VoiceCloneResponse","description":"Response for voice clone creation (async via Celery)."},"VoiceFeedbackAnswer":{"properties":{"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"draft_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Version"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["verdict"],"title":"VoiceFeedbackAnswer"},"VoiceFeedbackPrevious":{"properties":{"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"draft_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Version"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["verdict"],"title":"VoiceFeedbackPrevious","description":"Her answer on an older draft (no note: the card only names the verdict)."},"VoiceFeedbackRequest":{"properties":{"verdict":{"type":"string","enum":["sounds_like_me","too_formal","too_casual","not_my_words","too_choppy"],"title":"Verdict"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"draft_version":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Draft Version"}},"additionalProperties":false,"type":"object","required":["verdict"],"title":"VoiceFeedbackRequest","description":"The author's one-tap answer, plus an optional sentence."},"VoiceFeedbackResponse":{"properties":{"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"},"answer":{"anyOf":[{"$ref":"#/components/schemas/VoiceFeedbackAnswer"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/VoiceFeedbackPrevious"},{"type":"null"}]},"offers_too_choppy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Offers Too Choppy"}},"type":"object","title":"VoiceFeedbackResponse"},"VoiceInviteRequest":{"properties":{"rep":{"type":"string","maxLength":120,"minLength":2,"title":"Rep"}},"additionalProperties":false,"type":"object","required":["rep"],"title":"VoiceInviteRequest"},"VoiceOverrideRequest":{"properties":{"chapter_numbers":{"items":{"type":"integer"},"type":"array","maxItems":50,"title":"Chapter Numbers"},"reason":{"type":"string","maxLength":5000,"title":"Reason"}},"type":"object","required":["chapter_numbers","reason"],"title":"VoiceOverrideRequest"},"VoiceSampleConfirmRequest":{"properties":{"r2_key":{"type":"string","maxLength":500,"title":"R2 Key"},"filename":{"type":"string","maxLength":200,"title":"Filename"},"source":{"type":"string","maxLength":20,"title":"Source","default":"upload"},"client_duration_seconds":{"anyOf":[{"type":"number","exclusiveMaximum":86400.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Client Duration Seconds"}},"additionalProperties":false,"type":"object","required":["r2_key","filename"],"title":"VoiceSampleConfirmRequest","description":"Request body to confirm a staged voice-sample upload.\n\nThe r2_key must resolve inside the project's own staging prefix and the\nobject must exist in R2; the server re-validates the exact bytes before\nany sample row is created."},"VoiceSampleFeedbackRequest":{"properties":{"reaction":{"type":"string","enum":["sounds_like_me","not_quite"],"title":"Reaction"},"feedback":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Feedback"}},"additionalProperties":false,"type":"object","required":["reaction"],"title":"VoiceSampleFeedbackRequest","description":"Author reaction to the early voice-sample passage.\n\nStrict, bounded per the author-facing PUT/PATCH rule. ``reaction`` is a\nfixed enum; the optional note is length-capped."},"VoiceSamplePresignRequest":{"properties":{"filename":{"type":"string","maxLength":200,"title":"Filename"},"content_type":{"type":"string","maxLength":100,"title":"Content Type"},"source":{"type":"string","maxLength":20,"title":"Source","default":"upload"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["filename","content_type","size_bytes"],"title":"VoiceSamplePresignRequest","description":"Request body to presign a direct-to-R2 voice-sample upload.\n\nMulti-minute recordings routinely exceed Vercel's 4.5MB serverless body\ncap, so the browser PUTs the audio straight to R2 and then confirms via\nthe companion endpoint (same shape as the consent-video flow)."},"VoiceSamplePresignResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"r2_key":{"type":"string","title":"R2 Key"}},"type":"object","required":["upload_url","r2_key"],"title":"VoiceSamplePresignResponse","description":"Response with a presigned PUT URL for the voice-sample upload."},"VoiceSampleResponse":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"passage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Passage"},"word_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Word Count"},"reaction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reaction"}},"type":"object","title":"VoiceSampleResponse","description":"The author's early voice-sample passage + their current reaction."},"VoiceVerificationRejectRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"VoiceVerificationRejectRequest","description":"Request body when the author says the clone doesn't sound like them (D4)."},"VoidAgreementRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"VoidAgreementRequest"},"WaitingBlueprintBlock":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"working_title":{"type":"string","title":"Working Title","default":""},"subtitle":{"type":"string","title":"Subtitle","default":""},"cover_image_url":{"type":"string","title":"Cover Image Url","default":""},"book_vision":{"type":"string","title":"Book Vision","default":""},"market_gap":{"type":"string","title":"Market Gap","default":""},"chapter_titles":{"items":{"type":"string"},"type":"array","title":"Chapter Titles"}},"type":"object","title":"WaitingBlueprintBlock","description":"The centerpiece — the book they already designed."},"WaitingDepositRepairRequest":{"properties":{"tier":{"anyOf":[{"type":"string","enum":["deposit_holder","upgrade_saver"]},{"type":"null"}],"title":"Tier"},"target_product_code":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Target Product Code"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"WaitingDepositRepairRequest","description":"Operator overrides for a parked waiting-portal deposit.\n\nExplicit named fields with bounds (author-facing API hardening rule) and\n``extra='forbid'`` so a typo'd field is a 422, never a silently ignored\ninstruction on a path that moves a real customer's paid deposit."},"WaitingEngagementResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/WaitingEngagementRow"},"type":"array","title":"Rows"},"total":{"type":"integer","title":"Total","default":0},"ready_count":{"type":"integer","title":"Ready Count","default":0}},"type":"object","title":"WaitingEngagementResponse"},"WaitingEngagementRow":{"properties":{"enrollment_id":{"type":"string","format":"uuid","title":"Enrollment Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"type":"string","title":"Email"},"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Code"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Name"},"salesperson":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salesperson"},"deposit_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deposit Amount Cents"},"enrolled_at":{"type":"string","format":"date-time","title":"Enrolled At"},"days_waiting":{"type":"integer","title":"Days Waiting","default":0},"items_completed":{"type":"integer","title":"Items Completed","default":0},"reading_notes":{"type":"integer","title":"Reading Notes","default":0},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"ready_signaled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready Signaled At"}},"type":"object","required":["enrollment_id","author_id","email","tier","status","enrolled_at"],"title":"WaitingEngagementRow","description":"One waiting-portal enrollment, with engagement metrics for the sales\nteam. enrollment_id is the unique row key (an author can hold multiple\ntracks)."},"WaitingEnrollmentPublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"target_product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Product Code"},"target_product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Product Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","tier","status","created_at"],"title":"WaitingEnrollmentPublic","description":"Author-facing enrollment shape — no provisioning internals leak."},"WaitingHomeResponse":{"properties":{"author_id":{"type":"string","format":"uuid","title":"Author Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"portal_state":{"type":"string","title":"Portal State"},"converted":{"type":"boolean","title":"Converted","default":false},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"target_product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Product Name"},"deposit_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deposit Amount Cents"},"days_in":{"type":"integer","title":"Days In","default":0},"blueprint":{"$ref":"#/components/schemas/WaitingBlueprintBlock"},"items":{"items":{"$ref":"#/components/schemas/WaitingShelfItemPublic"},"type":"array","title":"Items"},"locked_count":{"type":"integer","title":"Locked Count","default":0},"next_unlock_in_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Unlock In Days"},"reading_list":{"items":{"$ref":"#/components/schemas/WaitingReadingBook"},"type":"array","title":"Reading List"},"completed_count":{"type":"integer","title":"Completed Count","default":0},"support_call_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Call Url"}},"type":"object","required":["author_id","portal_state"],"title":"WaitingHomeResponse"},"WaitingMeResponse":{"properties":{"author_id":{"type":"string","format":"uuid","title":"Author Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"type":"string","title":"Email"},"portal_state":{"type":"string","title":"Portal State"},"enrollments":{"items":{"$ref":"#/components/schemas/WaitingEnrollmentPublic"},"type":"array","title":"Enrollments"}},"type":"object","required":["author_id","email","portal_state"],"title":"WaitingMeResponse"},"WaitingNewContentTagRemovalRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"WaitingNewContentTagRemovalRequest","description":"Operator note for a manual stuck-tag removal."},"WaitingReadingBook":{"properties":{"title":{"type":"string","title":"Title"},"author":{"type":"string","title":"Author","default":""},"similarity":{"type":"string","title":"Similarity","default":""},"differentiation":{"type":"string","title":"Differentiation","default":""},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["title"],"title":"WaitingReadingBook","description":"A competitor book from the author's blueprint + their notes."},"WaitingShelfItemPublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"item_type":{"type":"string","title":"Item Type"},"title":{"type":"string","title":"Title"},"body_markdown":{"type":"string","title":"Body Markdown","default":""},"video_embed_url":{"type":"string","title":"Video Embed Url","default":""},"action_prompt":{"type":"string","title":"Action Prompt","default":""},"unlocked_on_day":{"type":"integer","title":"Unlocked On Day","default":0},"completed":{"type":"boolean","title":"Completed","default":false},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["id","item_type","title"],"title":"WaitingShelfItemPublic","description":"Author-facing item: unlocked content + own progress."},"WaiverResponse":{"properties":{"version":{"type":"string","title":"Version"},"text":{"type":"string","title":"Text"}},"type":"object","required":["version","text"],"title":"WaiverResponse","description":"The canonical consent waiver the form must DISPLAY, so the text the\napplicant sees and the ``version`` the server stamps come from ONE source\n(app/services/anthology_waiver.py) and can never drift apart."},"WatchLinkMintRequest":{"properties":{"video_key":{"type":"string","maxLength":40,"minLength":1,"title":"Video Key"},"ttl_days":{"type":"integer","maximum":31.0,"minimum":1.0,"title":"Ttl Days","default":7},"label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Label"}},"additionalProperties":false,"type":"object","required":["video_key"],"title":"WatchLinkMintRequest"},"WatchLinkMintResponse":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"video_key":{"type":"string","title":"Video Key"}},"type":"object","required":["url","expires_at","video_key"],"title":"WatchLinkMintResponse"},"WatchLinkResponse":{"properties":{"video_key":{"type":"string","title":"Video Key"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"state":{"type":"string","enum":["active","expired","scheduled"],"title":"State"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"tracks_progress":{"type":"boolean","title":"Tracks Progress","default":false},"rep_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep First Name"},"close_call_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Close Call At"},"presentation_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Presentation Title"},"resume_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Resume Seconds"},"viewer_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer First Name"}},"type":"object","required":["video_key","expires_at","state"],"title":"WatchLinkResponse"},"WatchProgressRequest":{"properties":{"position_seconds":{"type":"number","maximum":14400.0,"minimum":0.0,"title":"Position Seconds"},"duration_seconds":{"anyOf":[{"type":"number","maximum":14400.0,"minimum":0.0},{"type":"null"}],"title":"Duration Seconds"}},"additionalProperties":false,"type":"object","required":["position_seconds"],"title":"WatchProgressRequest","description":"One playback report from the watch page (fast-track links only)."},"WaveMarkersIn":{"properties":{"log_found":{"type":"boolean","title":"Log Found","default":false},"railway_api_errors":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Railway Api Errors","default":0},"deploy_failed":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Deploy Failed","default":0},"health_failures":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Health Failures","default":0},"rollbacks":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Rollbacks","default":0},"rollback_incomplete":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Rollback Incomplete","default":0},"services_changed":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Services Changed","default":0},"tarball_fallback":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Tarball Fallback","default":0}},"type":"object","title":"WaveMarkersIn","description":"Counts of known markers in a failed wave's log (never log text)."},"WebhookReplayRequest":{"properties":{"force_manual_review":{"type":"boolean","const":true,"title":"Force Manual Review","default":true}},"type":"object","title":"WebhookReplayRequest","description":"Optional replay controls for provider-specific recovery paths.\n\nSmartLead reply recovery is deliberately manual-review-only. ``Literal``\nmakes a false value invalid at the request boundary, so this endpoint can\nnever be repurposed into an outbound replay by changing request data."},"WebinarCheckoutRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"plan":{"type":"string","enum":["full","six_pay","twelve_pay"],"title":"Plan","default":"full"},"agreement_accepted":{"type":"boolean","title":"Agreement Accepted","default":false},"token":{"type":"string","maxLength":1024,"title":"Token","default":""}},"type":"object","required":["email","name"],"title":"WebinarCheckoutRequest"},"WebinarCheckoutResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"url":{"type":"string","title":"Url"},"resumed":{"type":"boolean","title":"Resumed"},"plan":{"type":"string","title":"Plan"},"price_kind":{"type":"string","enum":["webinar","regular"],"title":"Price Kind"},"payment_count":{"type":"integer","title":"Payment Count"},"amount_cents":{"type":"integer","title":"Amount Cents"},"total_cents":{"type":"integer","title":"Total Cents"}},"type":"object","required":["session_id","url","resumed","plan","price_kind","payment_count","amount_cents","total_cents"],"title":"WebinarCheckoutResponse"},"WebinarKitStatusResponse":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"account_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Email"},"credential_available":{"type":"boolean","title":"Credential Available","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"next_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Attempt At"}},"type":"object","required":["eligible"],"title":"WebinarKitStatusResponse"},"WebinarOfferClickRequest":{"properties":{"token":{"type":"string","maxLength":1024,"title":"Token","default":""},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}},"type":"object","title":"WebinarOfferClickRequest"},"WebinarOfferPlan":{"properties":{"plan":{"type":"string","enum":["full","six_pay","twelve_pay"],"title":"Plan"},"price_kind":{"type":"string","enum":["webinar","regular"],"title":"Price Kind"},"payment_count":{"type":"integer","title":"Payment Count"},"amount_cents":{"type":"integer","title":"Amount Cents"},"total_cents":{"type":"integer","title":"Total Cents"}},"type":"object","required":["plan","price_kind","payment_count","amount_cents","total_cents"],"title":"WebinarOfferPlan"},"WebinarOfferResponse":{"properties":{"registered":{"type":"boolean","title":"Registered"},"window_open":{"type":"boolean","title":"Window Open"},"deadline_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deadline At"},"price_kind":{"type":"string","enum":["webinar","regular"],"title":"Price Kind"},"price_cents":{"type":"integer","title":"Price Cents"},"regular_price_cents":{"type":"integer","title":"Regular Price Cents"},"plans":{"items":{"$ref":"#/components/schemas/WebinarOfferPlan"},"type":"array","title":"Plans"},"checkout_enabled":{"type":"boolean","title":"Checkout Enabled"},"payva_checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payva Checkout Url"},"payva_payment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payva Payment Count"},"payva_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payva Amount Cents"},"personal":{"type":"boolean","title":"Personal","default":true},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["registered","window_open","price_kind","price_cents","regular_price_cents","plans","checkout_enabled"],"title":"WebinarOfferResponse"},"WebinarOfferSendLinkRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"WebinarOfferSendLinkRequest"},"WebinarWorkbookSubmitRequest":{"properties":{"full_name":{"type":"string","maxLength":200,"minLength":1,"title":"Full Name"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"book_working_title":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Book Working Title"},"room_i_picture":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Room I Picture"},"who_reaches_out":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Who Reaches Out"},"legacy":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Legacy"},"traffic_lanes":{"items":{"$ref":"#/components/schemas/TrafficLane"},"type":"array","maxItems":8,"title":"Traffic Lanes"},"next_90_days":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Next 90 Days"},"twelve_months":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Twelve Months"},"one_sentence":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"One Sentence"},"dream_shows":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Dream Shows"},"home_run":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Home Run"}},"type":"object","required":["full_name","email"],"title":"WebinarWorkbookSubmitRequest","description":"One author's pre-webinar workbook answers."},"WebinarWorkbookSubmitResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"submission_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Id"}},"type":"object","required":["success"],"title":"WebinarWorkbookSubmitResponse","description":"Deliberately thin: the page already holds the answers it renders back."},"WebsiteOptInRequest":{"properties":{"first_name":{"type":"string","maxLength":80,"minLength":1,"title":"First Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"type":"string","maxLength":30,"title":"Phone","default":""},"entry_page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Entry Page"}},"type":"object","required":["first_name","email"],"title":"WebsiteOptInRequest"},"WhatYouSaidCorrection":{"properties":{"item_id":{"type":"string","maxLength":16,"minLength":16,"pattern":"^[0-9a-f]{16}$","title":"Item Id"},"action":{"type":"string","enum":["fix","remove"],"title":"Action"},"text":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Text"}},"additionalProperties":false,"type":"object","required":["item_id","action"],"title":"WhatYouSaidCorrection","description":"Fix one thing we heard (with the right words) or remove it."},"WhoSaidAnswer":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"seq":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Seq"},"book_author_id":{"type":"string","format":"uuid","title":"Book Author Id"}},"additionalProperties":false,"type":"object","required":["interview_id","seq","book_author_id"],"title":"WhoSaidAnswer","description":"One tap: this line was said by this author."},"WholeBookReviewAuthorResponseRequest":{"properties":{"actor":{"type":"string","maxLength":200,"title":"Actor","default":"ops"},"response":{"type":"string","maxLength":100000,"title":"Response"},"source_ref":{"anyOf":[{"additionalProperties":true,"type":"object","maxProperties":50},{"type":"null"}],"title":"Source Ref"}},"type":"object","required":["response"],"title":"WholeBookReviewAuthorResponseRequest"},"WholeBookReviewBlockerFixRequest":{"properties":{"actor":{"type":"string","maxLength":200,"title":"Actor","default":"ops"}},"type":"object","title":"WholeBookReviewBlockerFixRequest"},"WholeBookReviewBlockerOverrideRequest":{"properties":{"actor":{"type":"string","maxLength":200,"title":"Actor"},"reason":{"type":"string","maxLength":5000,"minLength":3,"title":"Reason"}},"type":"object","required":["actor","reason"],"title":"WholeBookReviewBlockerOverrideRequest","description":"Clear ONE final-review blocker, with the reason it was cleared.\n\nThe note is REQUIRED and not defaulted: an override is a human overruling\nthe quality gate on a paid manuscript, and \"why\" is the only thing that\nmakes it auditable later."},"WholeBookReviewOverrideRequest":{"properties":{"actor":{"type":"string","maxLength":200,"title":"Actor"},"reason":{"type":"string","maxLength":5000,"title":"Reason"},"issue_ids":{"items":{"type":"string","maxLength":200},"type":"array","maxItems":100,"title":"Issue Ids"}},"type":"object","required":["actor","reason","issue_ids"],"title":"WholeBookReviewOverrideRequest"},"WholeDraftApproval":{"properties":{"chapters":{"items":{"$ref":"#/components/schemas/ShownChapter"},"type":"array","maxItems":100,"minItems":1,"title":"Chapters"}},"additionalProperties":false,"type":"object","required":["chapters"],"title":"WholeDraftApproval"},"WithdrawQuestionRequest":{"properties":{"reason":{"type":"string","maxLength":400,"minLength":1,"title":"Reason"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["reason"],"title":"WithdrawQuestionRequest"},"WithdrawTestimonialResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true}},"type":"object","title":"WithdrawTestimonialResponse"},"WorkbenchBillingLinkRequest":{"properties":{"link_kind":{"type":"string","enum":["card","invoice"],"title":"Link Kind","default":"card"}},"type":"object","title":"WorkbenchBillingLinkRequest","description":"What a rep is asking Stripe for. Named fields only, closed vocabulary.\n\nThere is deliberately no customer id, subscription id or return URL here:\nall three are resolved server-side from the SCOPED project, so a supplied\none could not point this at another tenant's plan."},"WorkbenchBillingLinkResponse":{"properties":{"link_kind":{"type":"string","enum":["card","invoice"],"title":"Link Kind"},"url":{"type":"string","title":"Url"},"plan_name":{"type":"string","title":"Plan Name"},"note":{"type":"string","title":"Note"}},"type":"object","required":["link_kind","url","plan_name","note"],"title":"WorkbenchBillingLinkResponse"},"WorkbenchBlocker":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reason"},"owner":{"anyOf":[{"type":"string","enum":["us","author","rep"]},{"type":"null"}],"title":"Owner"},"sentence":{"type":"string","maxLength":600,"title":"Sentence","default":""}},"type":"object","title":"WorkbenchBlocker","description":"Who is holding this book, and one sentence a rep can say out loud.\n\n``owner`` is tri-state on purpose: ``None`` means \"we cannot say whose wait\nthis is\", which is a different and more honest answer than guessing. The\nmapping lives in ``app/services/blocker_explainer.py``."},"WorkbenchBookFile":{"properties":{"type":{"type":"string","title":"Type"},"label":{"type":"string","title":"Label"},"format":{"type":"string","title":"Format"},"current":{"anyOf":[{"$ref":"#/components/schemas/WorkbenchBookFileVersion"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/WorkbenchBookFileVersion"},{"type":"null"}]},"building":{"anyOf":[{"$ref":"#/components/schemas/WorkbenchBookFileVersion"},{"type":"null"}]}},"type":"object","required":["type","label","format"],"title":"WorkbenchBookFile"},"WorkbenchBookFileReleaseRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Note"}},"type":"object","title":"WorkbenchBookFileReleaseRequest","description":"\"Send updated files to author\". No recipient: the author is the project's."},"WorkbenchBookFileReleaseResponse":{"properties":{"release_id":{"type":"string","title":"Release Id"},"changed":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Changed"},"note":{"type":"string","title":"Note","default":""},"author_must_reapprove":{"type":"boolean","title":"Author Must Reapprove","default":false},"notification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification"},"cowork_prompt_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cowork Prompt Url"},"kdp_package_rebuild":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kdp Package Rebuild"}},"type":"object","required":["release_id"],"title":"WorkbenchBookFileReleaseResponse"},"WorkbenchBookFileVersion":{"properties":{"artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"built_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Built At"},"approved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved At"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"qa_flags":{"items":{"type":"string"},"type":"array","title":"Qa Flags"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"}},"type":"object","title":"WorkbenchBookFileVersion"},"WorkbenchBookFilesResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"book_title":{"type":"string","title":"Book Title","default":""},"enabled":{"type":"boolean","title":"Enabled","default":true},"author_release_enabled":{"type":"boolean","title":"Author Release Enabled","default":true},"files":{"items":{"$ref":"#/components/schemas/WorkbenchBookFile"},"type":"array","title":"Files"},"approval":{"additionalProperties":true,"type":"object","title":"Approval"},"freeze":{"additionalProperties":true,"type":"object","title":"Freeze"},"figure_flags":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Figure Flags"},"chapters":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Chapters"},"recent_fixes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recent Fixes"},"last_release":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Release"}},"type":"object","required":["project_id"],"title":"WorkbenchBookFilesResponse","description":"The \"Book files\" panel: what the author would upload to KDP today."},"WorkbenchCardProject":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Client Name"},"client_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Client Email"},"book_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Book Title"}},"type":"object","required":["id"],"title":"WorkbenchCardProject"},"WorkbenchCardStage":{"properties":{"lifecycle_state":{"type":"string","maxLength":60,"title":"Lifecycle State","default":"unknown"},"stage_label":{"type":"string","maxLength":120,"title":"Stage Label","default":""},"system_status":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"System Status"},"blocking_reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Blocking Reason"},"author_prompt":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Author Prompt"},"planning_status":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Planning Status"},"review_packet_status":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Review Packet Status"},"review_packet_outline_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Packet Outline Version"},"interviews_complete":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interviews Complete"},"next_interview_at":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Next Interview At"},"next_interview_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Interview Number"},"corpus_short":{"type":"boolean","title":"Corpus Short","default":false},"pacing_held":{"type":"boolean","title":"Pacing Held","default":false},"expected_window":{"anyOf":[{"$ref":"#/components/schemas/WorkbenchExpectedWindow"},{"type":"null"}]},"blocker":{"anyOf":[{"$ref":"#/components/schemas/WorkbenchBlocker"},{"type":"null"}]},"last_outbound":{"anyOf":[{"$ref":"#/components/schemas/WorkbenchLastOutbound"},{"type":"null"}]}},"type":"object","title":"WorkbenchCardStage","description":"The stage block, field for field as the Client Workspace computes it.\n\nEVERY field except the two labels is optional. Vercel ships ahead of\nRailway, and the stage block itself degrades one source at a time by design\n(an unreadable outline costs the packet fields and nothing else), so\nabsence is modelled rather than guarded against."},"WorkbenchClientCardResponse":{"properties":{"project":{"$ref":"#/components/schemas/WorkbenchCardProject"},"stage":{"$ref":"#/components/schemas/WorkbenchCardStage"}},"type":"object","required":["project","stage"],"title":"WorkbenchClientCardResponse"},"WorkbenchConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"role":{"type":"string","title":"Role"},"finance_scope":{"type":"boolean","title":"Finance Scope"},"can_approve_offers":{"type":"boolean","title":"Can Approve Offers"}},"type":"object","required":["enabled","role","finance_scope","can_approve_offers"],"title":"WorkbenchConfigResponse"},"WorkbenchConversationResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"primary_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Primary Project Id"},"primary_project_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Project Label"},"ops_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ops Item Id"},"ticket_headline":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Ticket Headline"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["conversation_id"],"title":"WorkbenchConversationResponse"},"WorkbenchDowngradeRequest":{"properties":{"schedule_kind":{"type":"string","enum":["one_time","installments"],"title":"Schedule Kind","default":"one_time"},"term_months":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":2.0},{"type":"null"}],"title":"Term Months"},"first_charge_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Charge At"},"cancel_old_plan":{"type":"boolean","title":"Cancel Old Plan","default":false}},"type":"object","title":"WorkbenchDowngradeRequest","description":"What the rep chose. Closed vocabulary, named fields only.\n\nThere is deliberately no amount, credit, price or customer id here: every\none of those is computed server-side from the SCOPED project and its PAID\nStripe invoices. A rep-supplied number would be an unevidenced money\ndecision, and a rep-supplied customer id would point this at another\ntenant's plan."},"WorkbenchDowngradeResponse":{"properties":{"outcome":{"type":"string","title":"Outcome"},"succeeded":{"type":"boolean","title":"Succeeded"},"credited_cents":{"type":"integer","title":"Credited Cents"},"contract_total_cents":{"type":"integer","title":"Contract Total Cents"},"balance_cents":{"type":"integer","title":"Balance Cents"},"rounding_credit_cents":{"type":"integer","title":"Rounding Credit Cents"},"expected_payment_count":{"type":"integer","title":"Expected Payment Count"},"unit_amount_cents":{"type":"integer","title":"Unit Amount Cents"},"first_charge_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Charge At"},"sales_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Order Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["outcome","succeeded","credited_cents","contract_total_cents","balance_cents","rounding_credit_cents","expected_payment_count","unit_amount_cents","message"],"title":"WorkbenchDowngradeResponse"},"WorkbenchDraftCard":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["author_reply","ticket_resolution"],"title":"Kind"},"body":{"type":"string","maxLength":4000,"title":"Body","default":""},"resolution_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Resolution Type"},"ops_item_id":{"type":"string","format":"uuid","title":"Ops Item Id"}},"type":"object","required":["id","kind","ops_item_id"],"title":"WorkbenchDraftCard","description":"A ticket action the assistant COMPOSED and a rep must send.\n\nThe card carries an id, never the action. Pressing Send calls the draft\nroute, which consumes the durable row exactly once — the text on screen is\nevidence, not a payload, so a replayed card cannot re-send anything.\n\n``body`` is the COMPLETE stored text, not an excerpt. A truncated card was\nthe first version and it was wrong: the send route uses all 4,000\ncharacters, so a rep approving a 300-character summary would put an unread\ntail in front of a customer. What you press Send on is what the author\ngets."},"WorkbenchExpectedWindow":{"properties":{"key":{"type":"string","maxLength":60,"title":"Key"},"window":{"type":"string","maxLength":60,"title":"Window"}},"type":"object","required":["key","window"],"title":"WorkbenchExpectedWindow","description":"A published turnaround band. A RANGE, never a deadline."},"WorkbenchHistoryMessage":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"role":{"type":"string","enum":["staff","assistant"],"title":"Role"},"content":{"type":"string","title":"Content"},"tool_calls":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tool Calls"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","role","content"],"title":"WorkbenchHistoryMessage"},"WorkbenchHistoryResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"messages":{"items":{"$ref":"#/components/schemas/WorkbenchHistoryMessage"},"type":"array","title":"Messages"}},"type":"object","required":["conversation_id","messages"],"title":"WorkbenchHistoryResponse"},"WorkbenchLastOutbound":{"properties":{"id":{"type":"string","maxLength":200,"title":"Id","default":""},"channel":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Channel"},"status":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Status"},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"occurred_at":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Occurred At"}},"type":"object","title":"WorkbenchLastOutbound","description":"The most recent thing WE sent the author."},"WorkbenchMessageRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"message":{"type":"string","maxLength":8000,"minLength":1,"title":"Message"},"client_request_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Client Request Id"}},"type":"object","required":["conversation_id","message"],"title":"WorkbenchMessageRequest"},"WorkbenchMessageResponse":{"properties":{"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"message_id":{"type":"string","format":"uuid","title":"Message Id"},"saved":{"type":"boolean","title":"Saved","default":true},"rate_limited":{"type":"boolean","title":"Rate Limited","default":false},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["message_id"],"title":"WorkbenchMessageResponse"},"WorkbenchPlaybook":{"properties":{"id":{"type":"string","maxLength":64,"title":"Id"},"label":{"type":"string","maxLength":120,"title":"Label"},"description":{"type":"string","maxLength":300,"title":"Description"},"needs_client":{"type":"boolean","title":"Needs Client","default":true},"fields":{"items":{"$ref":"#/components/schemas/WorkbenchPlaybookField"},"type":"array","maxItems":6,"title":"Fields"}},"type":"object","required":["id","label","description"],"title":"WorkbenchPlaybook"},"WorkbenchPlaybookBuildRequest":{"properties":{"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"fields":{"additionalProperties":{"type":"string","maxLength":4000},"propertyNames":{"maxLength":64},"type":"object","maxProperties":6,"title":"Fields"}},"additionalProperties":false,"type":"object","title":"WorkbenchPlaybookBuildRequest","description":"A filled-in playbook form. Named fields only, every value bounded.\n\nThe field NAMES are checked against the playbook's own declaration server\nside (an unknown name is refused, never ignored), so this model only bounds\nthe shape: at most six entries, short keys, values no longer than the\nlongest field any playbook declares."},"WorkbenchPlaybookBuildResponse":{"properties":{"playbook_id":{"type":"string","maxLength":64,"title":"Playbook Id"},"message":{"type":"string","maxLength":8000,"title":"Message"}},"type":"object","required":["playbook_id","message"],"title":"WorkbenchPlaybookBuildResponse"},"WorkbenchPlaybookChoice":{"properties":{"value":{"type":"string","maxLength":64,"title":"Value"},"label":{"type":"string","maxLength":200,"title":"Label"}},"type":"object","required":["value","label"],"title":"WorkbenchPlaybookChoice"},"WorkbenchPlaybookField":{"properties":{"name":{"type":"string","maxLength":64,"title":"Name"},"label":{"type":"string","maxLength":200,"title":"Label"},"kind":{"type":"string","enum":["text","textarea","chapter_number","choice"],"title":"Kind"},"required":{"type":"boolean","title":"Required","default":false},"max_length":{"type":"integer","maximum":4000.0,"minimum":1.0,"title":"Max Length"},"choices":{"items":{"$ref":"#/components/schemas/WorkbenchPlaybookChoice"},"type":"array","maxItems":10,"title":"Choices"},"placeholder":{"type":"string","maxLength":200,"title":"Placeholder","default":""}},"type":"object","required":["name","label","kind","max_length"],"title":"WorkbenchPlaybookField"},"WorkbenchPlaybookListResponse":{"properties":{"playbooks":{"items":{"$ref":"#/components/schemas/WorkbenchPlaybook"},"type":"array","maxItems":50,"title":"Playbooks"}},"type":"object","title":"WorkbenchPlaybookListResponse"},"WorkbenchPollResponse":{"properties":{"status":{"type":"string","enum":["pending","done","error"],"title":"Status"},"reply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply"},"tool_calls":{"items":{"$ref":"#/components/schemas/WorkbenchToolCallCard"},"type":"array","title":"Tool Calls"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["status"],"title":"WorkbenchPollResponse"},"WorkbenchToolCallCard":{"properties":{"tool":{"type":"string","maxLength":100,"title":"Tool"},"args_summary":{"type":"string","maxLength":2000,"title":"Args Summary","default":""},"outcome":{"type":"string","enum":["executed","refused","error"],"title":"Outcome"},"refusal_reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Refusal Reason"},"draft":{"anyOf":[{"$ref":"#/components/schemas/WorkbenchDraftCard"},{"type":"null"}]}},"type":"object","required":["tool","outcome"],"title":"WorkbenchToolCallCard"},"WritebackRunRequest":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","title":"WritebackRunRequest"},"WritingPaceRequest":{"properties":{"pace":{"type":"string","enum":["write_ahead","one_at_a_time"],"title":"Pace"}},"additionalProperties":false,"type":"object","required":["pace"],"title":"WritingPaceRequest"},"WrongEpisodeUpdate":{"properties":{"prospect_id":{"type":"string","format":"uuid","title":"Prospect Id"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"actioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actioned At"},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source","default":"dm_outreach"},"action":{"type":"string","const":"wrong_episode","title":"Action"}},"additionalProperties":false,"type":"object","required":["prospect_id","action"],"title":"WrongEpisodeUpdate"},"WrongPersonUpdate":{"properties":{"prospect_id":{"type":"string","format":"uuid","title":"Prospect Id"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"actioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actioned At"},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source","default":"dm_outreach"},"action":{"type":"string","const":"wrong_person","title":"Action"},"observed_profile_link":{"type":"string","maxLength":2000,"title":"Observed Profile Link"}},"additionalProperties":false,"type":"object","required":["prospect_id","action","observed_profile_link"],"title":"WrongPersonUpdate"},"app__api__routes__admin_ad_set_scorecard__RunRequest":{"properties":{"send":{"type":"boolean","title":"Send","default":false}},"additionalProperties":false,"type":"object","title":"RunRequest"},"app__api__routes__admin_co_authors__CoAuthorInviteRequest":{"properties":{"full_name":{"type":"string","maxLength":120,"minLength":1,"title":"Full Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"guardian_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Guardian Email"},"guardian_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Guardian Name"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","required":["full_name"],"title":"CoAuthorInviteRequest"},"app__api__routes__admin_forecast__RunRequest":{"properties":{"kind":{"type":"string","maxLength":32,"pattern":"^(daily|monday_frozen)$","title":"Kind","default":"daily"}},"additionalProperties":false,"type":"object","title":"RunRequest"},"app__api__routes__admin_manuscript_replan__ReplanRequest":{"properties":{"instruction":{"type":"string","maxLength":4000,"minLength":1,"title":"Instruction"}},"type":"object","required":["instruction"],"title":"ReplanRequest"},"app__api__routes__admin_pipeline_hygiene__RunRequest":{"properties":{"force":{"type":"boolean","title":"Force","default":false}},"additionalProperties":false,"type":"object","title":"RunRequest"},"app__api__routes__admin_rep_coaching_digest__RunRequest":{"properties":{"mode":{"type":"string","maxLength":16,"pattern":"^(dry_run|preview|send)$","title":"Mode","default":"dry_run"},"preview_to":{"anyOf":[{"type":"string","maxLength":32,"pattern":"^[A-Z0-9]+$"},{"type":"null"}],"title":"Preview To"}},"additionalProperties":false,"type":"object","title":"RunRequest"},"app__api__routes__admin_ticket_actions__EmailChangeRequest":{"properties":{"new_email":{"type":"string","maxLength":320,"minLength":3,"title":"New Email"},"requested_via":{"type":"string","enum":["email","sms"],"title":"Requested Via","default":"email"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["new_email"],"title":"EmailChangeRequest"},"app__api__routes__affiliate_portal__LinkBody":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"tracking_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tracking Id"}},"additionalProperties":false,"type":"object","required":["url"],"title":"LinkBody"},"app__api__routes__free_blueprint_funnel__StartRequest":{"properties":{"book_type":{"type":"string","enum":["business","memoir","faith","method","fiction"],"title":"Book Type"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/FreeBlueprintAttribution"},{"type":"null"}]},"visitor_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Visitor Id"}},"type":"object","required":["book_type"],"title":"StartRequest"},"app__api__routes__launch_director__ChecklistTickRequest":{"properties":{"done":{"type":"boolean","title":"Done"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["done"],"title":"ChecklistTickRequest"},"app__api__routes__longer_book_upgrade__ReplanRequest":{"properties":{"upgrade_id":{"type":"string","format":"uuid","title":"Upgrade Id"}},"additionalProperties":false,"type":"object","required":["upgrade_id"],"title":"ReplanRequest"},"app__api__routes__portal_account_email__EmailChangeRequest":{"properties":{"new_email":{"type":"string","maxLength":254,"minLength":3,"title":"New Email"}},"additionalProperties":false,"type":"object","required":["new_email"],"title":"EmailChangeRequest"},"app__api__routes__portal_bestseller__ChecklistTickRequest":{"properties":{"item_key":{"type":"string","maxLength":64,"pattern":"^[a-z0-9:_-]+$","title":"Item Key"},"checked":{"type":"boolean","title":"Checked"}},"additionalProperties":false,"type":"object","required":["item_key","checked"],"title":"ChecklistTickRequest","description":"Explicit, bounded body for the one author-facing write on this surface.\n\nNamed fields and a hard length + character bound, never ``body: dict``\n(CLAUDE.md, Code Style). The key is additionally checked against the\nmodule's manual-item allowlist in the handler."},"app__api__routes__portal_co_author_addon__CoAuthorInviteRequest":{"properties":{"full_name":{"type":"string","maxLength":200,"minLength":1,"title":"Full Name"},"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Email"},"under_18":{"type":"boolean","title":"Under 18","default":false},"guardian_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Guardian Name"},"guardian_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Guardian Email"}},"additionalProperties":false,"type":"object","required":["full_name"],"title":"CoAuthorInviteRequest"},"app__api__routes__portal_social_connect__StartRequest":{"properties":{"network":{"type":"string","enum":["facebook","instagram","linkedin","youtube","tiktok","tiktok-business"],"title":"Network"}},"additionalProperties":false,"type":"object","required":["network"],"title":"StartRequest"},"app__api__routes__portal_subscriptions__CancelSubscriptionResponse":{"properties":{"canceled":{"type":"boolean","title":"Canceled"},"stripe_subscription_id":{"type":"string","title":"Stripe Subscription Id"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"effective_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective At"},"message":{"type":"string","title":"Message"}},"type":"object","required":["canceled","stripe_subscription_id","cancel_at_period_end","message"],"title":"CancelSubscriptionResponse"},"app__api__routes__reader_portal__LinkBody":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"LinkBody"},"app__models__author_site__MediaUpdate":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MediaItemInput"},"type":"array","maxItems":12,"title":"Items"}},"additionalProperties":false,"type":"object","title":"MediaUpdate","description":"The author's curated media library (Wave C intake)."},"app__models__cover_studio__CoverBriefResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"vision_text":{"type":"string","title":"Vision Text","default":""},"series_predecessor_keys":{"items":{"type":"string"},"type":"array","title":"Series Predecessor Keys"},"inspiration_keys":{"items":{"type":"string"},"type":"array","title":"Inspiration Keys"},"brand_asset_keys":{"items":{"type":"string"},"type":"array","title":"Brand Asset Keys"},"series_predecessor_urls":{"items":{"type":"string"},"type":"array","title":"Series Predecessor Urls"},"inspiration_urls":{"items":{"type":"string"},"type":"array","title":"Inspiration Urls"},"brand_asset_urls":{"items":{"type":"string"},"type":"array","title":"Brand Asset Urls"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["project_id"],"title":"CoverBriefResponse","description":"The current brief state returned after a PUT / upload.\n\nEach ``*_urls`` list is presigned GET URLs INDEX-ALIGNED with the matching\n``*_keys`` list — ``series_predecessor_urls[i]`` previews\n``series_predecessor_keys[i]``. A key we could not sign yields ``\"\"`` at its\nindex so the pairing never shifts; the portal falls back to the filename."},"app__models__exec_meeting__RunRequest":{"properties":{"step":{"type":"string","enum":["snapshot","roles","grace","vera","send","reminder","board","sweep","artifacts"],"title":"Step"},"week_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Week Start"},"roles":{"anyOf":[{"items":{"type":"string","maxLength":40},"type":"array","maxItems":8},{"type":"null"}],"title":"Roles"}},"additionalProperties":false,"type":"object","required":["step"],"title":"RunRequest"},"app__models__portal__CoverBriefResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"version":{"type":"integer","title":"Version"},"style":{"type":"string","title":"Style"},"mood":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mood"},"color_palette":{"items":{"type":"string"},"type":"array","title":"Color Palette","default":[]},"imagery_keywords":{"items":{"type":"string"},"type":"array","title":"Imagery Keywords","default":[]},"avoid_elements":{"items":{"type":"string"},"type":"array","title":"Avoid Elements","default":[]},"typography_preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typography Preference"},"author_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Notes"},"generated_brief":{"additionalProperties":true,"type":"object","title":"Generated Brief","default":{}},"reference_image_keys":{"items":{"type":"string"},"type":"array","title":"Reference Image Keys","default":[]},"status":{"type":"string","title":"Status","default":"draft"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","project_id","version","style"],"title":"CoverBriefResponse","description":"Cover brief with generated creative direction."},"app__models__support__CancelSubscriptionResponse":{"properties":{"canceled":{"type":"boolean","title":"Canceled","default":false},"subscriptions_canceled":{"items":{"type":"string"},"type":"array","title":"Subscriptions Canceled"},"message":{"type":"string","title":"Message","default":""}},"type":"object","title":"CancelSubscriptionResponse"},"app__services__reader_event_media__MediaUpdate":{"properties":{"zoom_join_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Zoom Join Url"},"youtube_live_id":{"anyOf":[{"type":"string","maxLength":11},{"type":"null"}],"title":"Youtube Live Id"},"replay_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replay Until"},"replay_gate":{"anyOf":[{"type":"string","maxLength":48},{"type":"null"}],"title":"Replay Gate"}},"additionalProperties":false,"type":"object","title":"MediaUpdate","description":"The event's live link, embed and replay rules (each optional; null clears)."}}}}