{"openapi":"3.1.0","info":{"title":"bettershell.ai API","version":"0.1.0"},"paths":{"/api/account/first-touch":{"post":{"summary":"Record First Touch","operationId":"record_first_touch_api_account_first_touch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstTouchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstTouchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/heard-about":{"post":{"summary":"Record Heard About","operationId":"record_heard_about_api_account_heard_about_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeardAboutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Record Heard About Api Account Heard About Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/billing/reconciliation":{"get":{"summary":"Get Billing Reconciliation","description":"Money Stripe reports and the ledger does not — the Phase 12 readout.\n\nRead-only on purpose: granting credits from here would be a second,\nunaudited fulfilment path. The runbook in MONETIZATION_OWNER_TASKS.md\nresolves an entry with the same business-object ref the webhook would use,\nso a later redelivery still cannot double-grant.","operationId":"get_billing_reconciliation_api_admin_billing_reconciliation_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingReconciliationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/spend":{"get":{"summary":"Get Admin Spend","operationId":"get_admin_spend_api_admin_spend_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSpendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/applications/persist":{"post":{"summary":"Persist Application","operationId":"persist_application_api_applications_persist_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersistApplicationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/applications":{"get":{"summary":"List Applications","operationId":"list_applications_api_applications_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/applications/{application_id}":{"get":{"summary":"Get Application Detail","operationId":"get_application_detail_api_applications__application_id__get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Application","operationId":"delete_application_api_applications__application_id__delete","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/applications/{application_id}/status":{"patch":{"summary":"Update Application Status","operationId":"update_application_status_api_applications__application_id__status_patch","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApplicationStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/applications/{application_id}/notes":{"patch":{"summary":"Update Application Notes","operationId":"update_application_notes_api_applications__application_id__notes_patch","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApplicationNotesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/applications/{application_id}/resume":{"get":{"summary":"Download Stored Resume","operationId":"download_stored_resume_api_applications__application_id__resume_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/applications/{application_id}/snapshot":{"get":{"summary":"Get Application Snapshot","operationId":"get_application_snapshot_api_applications__application_id__snapshot_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/packs":{"get":{"summary":"Get Packs","operationId":"get_packs_api_billing_packs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacksResponse"}}}}}}},"/api/billing/history":{"get":{"summary":"Get Billing History","description":"The Credits view's event list: grants, purchases, passes, refunds — newest first.","operationId":"get_billing_history_api_billing_history_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/checkout":{"post":{"summary":"Create Checkout","operationId":"create_checkout_api_billing_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"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/billing/webhook":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_api_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Stripe Webhook Api Billing Webhook Post"}}}}}}},"/api/credits":{"get":{"summary":"Get Credits","operationId":"get_credits_api_credits_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tailor":{"post":{"summary":"Tailor Resume","operationId":"tailor_resume_api_tailor_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TailorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TailorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/regenerate_bullet":{"post":{"summary":"Regenerate Bullet","description":"Rewrite one resume bullet, or the summary (``kind``), according to the\nuser's instructions.\n\nUsed by the review panel's \"Revise with AI\" action, which can target any\nbullet — including ones the initial tailoring left unchanged. Runs on luna,\nthen the fast/cheap ``rewriter`` chain; it is stateless (no server-side\nrejection cap). \"Try another\" sends the versions already seen\n(``previous_attempts``), and a rewrite that repeats one fails like an\nempty answer.","operationId":"regenerate_bullet_api_regenerate_bullet_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateBulletRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateBulletResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate":{"post":{"summary":"Generate Resume","operationId":"generate_resume_api_generate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateResumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateResumeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate/stream":{"post":{"summary":"Generate Resume Stream","description":"Server-Sent Events variant of /api/generate — same pipeline, same charge.\n\nAtomic admission runs first so blocks still surface as real HTTP status\ncodes (401/402/429/503) before the stream opens. Once streaming, the pipeline\nruns on a worker thread and pushes events onto a queue that the response\ngenerator drains. The terminal event is ``result`` (the full generation\npayload, identical to the JSON endpoint) or ``error``. A credit is consumed\nonly inside the pipeline on success, so a failed stream releases its\nreservation and costs nothing.\n\nDisconnects: a client that goes away does NOT kill the worker. The LLM call\nis already in flight and already costs money, so abandoning it would burn\nthe spend and leave the user with nothing. Instead the attempt runs to its\n(Phase 4: absolute) deadline and its result is stored durably, so the user\nrecovers it by replaying the same idempotency key or by GET\n/api/generate/result. A user who genuinely wants out calls the cancel\nendpoint, which settles the attempt and releases the credit.\n\nCapacity (Phase 5): the instance slot is taken *before* admission, so an\noverloaded instance answers 503 without ever reserving a credit. Ownership of\nthat slot then moves to the worker thread, which releases it when the\npipeline settles — not when the client goes away. Releasing on disconnect\nwould let a user free a slot while their worker was still burning the CPU it\nwas admitted for, which is the opposite of a bound.","operationId":"generate_resume_stream_api_generate_stream_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateResumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate/{generation_id}/cancel":{"post":{"summary":"Cancel Generation","description":"Settle one of the caller's own in-flight attempts as cancelled.\n\nCancellation and completion race in the database, and exactly one wins: if\nthe pipeline had already settled, the attempt stays succeeded and the charge\nstands; if the cancel lands first, the worker's later settlement is refused\nand its output is discarded without a charge. Either way the credit is\naccounted for once. Another user's generation is simply not found.","operationId":"cancel_generation_api_generate__generation_id__cancel_post","parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Generation Api Generate  Generation Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate/result":{"get":{"summary":"Get Generation Result","description":"Recover a charged generation the client never managed to keep.\n\nThis is what makes a closed browser, a dropped response, or a failed\nclient-side save survivable: the payload the user paid for is served back\nfrom the same row the debit was written in. The lookup is scoped to the\ncaller inside the database, so another user's generation is not found.","operationId":"get_generation_result_api_generate_result_get","parameters":[{"name":"generation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Id"}},{"name":"idempotency_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Generation Result Api Generate Result Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/render":{"post":{"summary":"Render Edited Resume","description":"Render the exact edited profile to a PDF — no planning, solving, or rewriting.\n\nInline edits update only the live HTML preview; this deterministic render keeps the\ndownloadable PDF in lockstep with what the user sees. It never calls the LLM, so it\nis cheap, fast, and can never alter the user's words — unlike ``/api/generate``.\nAuthed for consistency (Phase 1): the frontend only calls it with a session, and\nit should not be an anonymous free PDF-rendering service.\n\nLimited (Phase 5): authentication alone was the only gate, so any session\ncould drive Typst compiles as fast as the instance would take them. It now\ncarries its own hourly attempt budget (``RENDER_HOURLY_LIMIT``, deliberately\nmuch wider than the LLM stages' — the builder renders once per edit burst)\nand a bounded number of concurrent compiles per user. No kill-switch check:\nrendering costs no provider money, and a spend pause must not take away the\nuser's ability to download the resume they already paid for.","operationId":"render_edited_resume_api_render_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderResumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderResumeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/refit":{"post":{"summary":"Refit After Reject","description":"Keep the page after a Reject (owner decision 2), with no model call: one\npage, or the pages the resume was made for (round 3, ``page_count``).\n\nThe rejected bullet's original is usually longer than its rewrite, so the\npage may spill; ``backend.gen3.refit`` decides which bullets leave (the\none that took the freed line first, then the weakest, never one the user\nedited) and renders the result. It is ``/api/render`` plus a deterministic\nremoval, so it shares that endpoint's hourly budget and capacity pool: a\nstage name of its own would fail the database's constraint, and the\nlimiter fails open.","operationId":"refit_after_reject_api_refit_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gift/{token}":{"get":{"summary":"View Gift Link","operationId":"view_gift_link_api_gift__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{4,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftLinkView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gift/{token}/redeem":{"post":{"summary":"Redeem Gift Link","description":"The days start now, or queue behind a pass the account already holds.\nRedeeming again from the same account answers the same pass.","operationId":"redeem_gift_link_api_gift__token__redeem_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{4,64}$","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemGiftLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/gift-links":{"post":{"summary":"Create Gift Link","operationId":"create_gift_link_api_admin_gift_links_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGiftLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGiftLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Gift Links","operationId":"list_gift_links_api_admin_gift_links_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GiftLinkSummary"},"title":"Response List Gift Links Api Admin Gift Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/gift-links/{token}/cancel":{"post":{"summary":"Cancel Gift Link","operationId":"cancel_gift_link_api_admin_gift_links__token__cancel_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{4,64}$","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Cancel Gift Link Api Admin Gift Links  Token  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/job_postings/extract":{"post":{"summary":"Extract Job Posting Endpoint","operationId":"extract_job_posting_endpoint_api_job_postings_extract_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractJobPostingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractJobPostingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cards/s/{token}.png":{"get":{"summary":"Share Link Card","operationId":"share_link_card_api_cards_s__token__png_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cards/g/{token}.png":{"get":{"summary":"Gift Link Card","operationId":"gift_link_card_api_cards_g__token__png_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{4,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp":{"get":{"summary":"Mcp Other Methods","description":"Only POST is served. HEAD is answered here too: left alone it falls\nthrough to the site's page route, which says 404 for a page that isn't\none, and Gemini probes the endpoint with HEAD before and after it lists\nthe tools and gives up on a 404 (\"We had trouble connecting to this\nserver\", seen 2026-11-22 once an account was linked; with 405 the same\nserver connected).","operationId":"mcp_other_methods_mcp_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Mcp Endpoint","operationId":"mcp_endpoint_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Mcp Other Methods","description":"Only POST is served. HEAD is answered here too: left alone it falls\nthrough to the site's page route, which says 404 for a page that isn't\none, and Gemini probes the endpoint with HEAD before and after it lists\nthe tools and gives up on a 404 (\"We had trouble connecting to this\nserver\", seen 2026-11-22 once an account was linked; with 405 the same\nserver connected).","operationId":"mcp_other_methods_mcp_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Mcp Other Methods","description":"Only POST is served. HEAD is answered here too: left alone it falls\nthrough to the site's page route, which says 404 for a page that isn't\none, and Gemini probes the endpoint with HEAD before and after it lists\nthe tools and gives up on a 404 (\"We had trouble connecting to this\nserver\", seen 2026-11-22 once an account was linked; with 405 the same\nserver connected).","operationId":"mcp_other_methods_mcp_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"summary":"Protected Resource Metadata","description":"Where a chat finds BetterShell's sign-in (RFC 9728). 404 until sign-in is\non, so no chat is sent to a sign-in server that isn't there; and 404 to\nGemini, which reads this when the app is added and, finding sign-in, links\nan account before the first résumé (``chat_connector.NO_SIGN_IN_HOSTS``;\nGemini sends ``User-Agent: Google`` here as on every request, seen\n2026-11-22).","operationId":"protected_resource_metadata__well_known_oauth_protected_resource_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"summary":"Protected Resource Metadata","description":"Where a chat finds BetterShell's sign-in (RFC 9728). 404 until sign-in is\non, so no chat is sent to a sign-in server that isn't there; and 404 to\nGemini, which reads this when the app is added and, finding sign-in, links\nan account before the first résumé (``chat_connector.NO_SIGN_IN_HOSTS``;\nGemini sends ``User-Agent: Google`` here as on every request, seen\n2026-11-22).","operationId":"protected_resource_metadata__well_known_oauth_protected_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/openai-apps-challenge":{"get":{"summary":"Openai Apps Challenge","description":"OpenAI's domain check for the ChatGPT plugin submission (CHAT_CONNECTOR.md\n§3): the exact token its portal shows, as plain text and nothing else. The\ntoken is a setting, ``OPENAI_APPS_CHALLENGE``, so a new one needs no deploy;\nunset, there is nothing here.","operationId":"openai_apps_challenge__well_known_openai_apps_challenge_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/google-connected-apps":{"get":{"summary":"Google Connected Apps Challenge","description":"Google's domain check for the Gemini connected app (CHAT_CONNECTOR.md\n§3, Gemini): the token file Connected Console downloads, served as it asks,\nJSON with HTTP 200 and no redirect. The tokens are a setting,\n``GOOGLE_CONNECTED_APPS_TOKEN``, so a new one needs no deploy; unset, there\nis nothing here.","operationId":"google_connected_apps_challenge__well_known_google_connected_apps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/mcp-registry-auth":{"get":{"summary":"Mcp Registry Proof","description":"The official MCP Registry's domain check (CHAT_CONNECTOR.md, the MCP\nRegistry): the public key line its publisher signs against, as plain text.\nIt proves bettershell.ai may publish names under ``ai.bettershell/``.","operationId":"mcp_registry_proof__well_known_mcp_registry_auth_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/mcptry-verify.txt":{"get":{"summary":"Mcptry Proof","description":"mcptry.com's claim check for the registry listing (CHAT_CONNECTOR.md, the MCP Registry): one line of\nplain text.","operationId":"mcptry_proof__well_known_mcptry_verify_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/internal/pass-reminders":{"post":{"summary":"Send Pass Reminders","operationId":"send_pass_reminders_api_internal_pass_reminders_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"test_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test To"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"before","title":"Kind"}},{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Pass Reminders Api Internal Pass Reminders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/email/unsubscribe":{"get":{"summary":"Unsubscribe Page","operationId":"unsubscribe_page_api_email_unsubscribe_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Unsubscribe","operationId":"unsubscribe_api_email_unsubscribe_post","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/lint":{"post":{"summary":"Lint Profile Endpoint","operationId":"lint_profile_endpoint_api_profile_lint_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileLintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileLintResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/sufficiency":{"post":{"summary":"Profile Sufficiency Endpoint","description":"Can this profile fill a page?\n\nSeparate from the lint deliberately, though both are advisory. The lint\nreads bullet prose and is debounced on every keystroke, so its request is\ncut down to bullet text and ids — names, employers, schools and dates are\nleft behind rather than put on the wire for a spellchecker. Page capacity\nneeds the opposite: the whole profile, because a heading, a skills row and\nan education block all occupy the page. Answering both from one request\nwould mean either sending everything to the spellchecker or measuring the\npage from a fraction of it, and the second is worse than not measuring.","operationId":"profile_sufficiency_endpoint_api_profile_sufficiency_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSufficiencyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSufficiencyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/reconcile":{"post":{"summary":"Reconcile Profile","operationId":"reconcile_profile_api_profile_reconcile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileReconcileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileReconcileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/import/resume":{"post":{"summary":"Import Resume","operationId":"import_resume_api_profile_import_resume_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/import/freetext":{"post":{"summary":"Import Freetext","operationId":"import_freetext_api_profile_import_freetext_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreetextImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/import/link":{"post":{"summary":"Import Link","description":"A link, read as Server-Sent Events (``backend/link_import.py``).\n\nWhat cannot be opened is an ordinary error before the stream starts. Then\n``found`` names the projects, a second or two in; ``project`` follows as\neach one is written; and the last event is ``result``, with the whole\n``ProfileImportResponse``, or ``error``.","operationId":"import_link_api_profile_import_link_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}":{"get":{"summary":"Open Shared Resume","operationId":"open_shared_resume_api_shared__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedResumeView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/render":{"post":{"summary":"Render Shared Resume","description":"The PDF of the visitor's own copy. No kill-switch check, as on\n``/api/render``: rendering costs no provider money.","operationId":"render_shared_resume_api_shared__token__render_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderResumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderResumeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/refit":{"post":{"summary":"Refit Shared Resume","operationId":"refit_shared_resume_api_shared__token__refit_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/regenerate_bullet":{"post":{"summary":"Rewrite Shared Line","description":"An AI rewrite of one line. Its spend is the owner's, recorded under the\naccount that made the link, and it stops with the kill switch like every\nother model call. The page does not hold the posting, so the link's own is\nused when the request carries none.","operationId":"rewrite_shared_line_api_shared__token__regenerate_bullet_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateBulletRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateBulletResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/preview.png":{"get":{"summary":"Preview Shared Resume","description":"The first page of the link's own résumé as a picture: what the chat\nconnector's card shows in ChatGPT and Claude (DESIGN_DECISIONS.md §12).\nNever a visitor's edited copy, which lives on their device; counted\nagainst the link's render budget like any other render.","operationId":"preview_shared_resume_api_shared__token__preview_png_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/resume.pdf":{"get":{"summary":"Download Shared Resume","description":"The link's own résumé as a PDF, in the template it was made in: the\nchat connector's Download PDF button (DESIGN_DECISIONS.md §12; the owner,\n2026-11-22: the PDF downloads from the chat, with no account and no builder\nin between). Counted as a download on the link and against its render\nbudget like any render. A visitor's edits live on their device and are\ndownloaded from the builder instead.","operationId":"download_shared_resume_api_shared__token__resume_pdf_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/letter.pdf":{"get":{"summary":"Download Shared Letter","description":"The cover letter's PDF, for the chat connector's card.","operationId":"download_shared_letter_api_shared__token__letter_pdf_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/letter.png":{"get":{"summary":"Preview Shared Letter","description":"The cover letter's first page as a picture, for the chat connector's card.","operationId":"preview_shared_letter_api_shared__token__letter_png_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}/events":{"post":{"summary":"Record Shared Event","description":"A count on the link for the owner's list. PostHog hears the same moments\nfrom the browser, where they join the person who signs up.","operationId":"record_shared_event_api_shared__token__events_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Record Shared Event Api Shared  Token  Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/examples":{"get":{"summary":"List Examples","description":"The example page's résumés (issue #495): the same person tailored ahead\nof time to a few postings, each one a share link that does not run out.\nEmpty until the owner has made them, and the home page links to the page\nonly once there is something on it.","operationId":"list_examples_api_examples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamplesResponse"}}}}}}},"/api/shared/{token}/claim":{"post":{"summary":"Claim Shared Resume","description":"Copy the résumé into the caller's account as a saved application. It is\nnot a generation, so no credit is reserved or spent; claiming again from\nthe same account returns the same application.","operationId":"claim_shared_resume_api_shared__token__claim_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimSharedResumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimSharedResumeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/carry-over":{"post":{"summary":"Chat Carry Over","description":"Someone who made résumés in a chat without an account, then made one\nhere (§12; the owner, 2026-11-22): the résumés the connector made for the\naccount's confirmed email are saved into it, and an empty profile becomes\nthe one they were made from. The app asks once, after sign-in, when the\nprofile is empty; nothing is found for anyone who never used a chat.","operationId":"chat_carry_over_api_chat_carry_over_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCarryOverResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/me":{"get":{"summary":"Whoami Admin","description":"200 for an admin, 403 for anyone else: how the app knows to show the\nshare tools.","operationId":"whoami_admin_api_admin_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Whoami Admin Api Admin Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares":{"post":{"summary":"Create Share","operationId":"create_share_api_admin_shares_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateShareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Shares","operationId":"list_shares_api_admin_shares_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShareSummary"},"title":"Response List Shares Api Admin Shares Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/{token}/document":{"put":{"summary":"Replace Share Document","operationId":"replace_share_document_api_admin_shares__token__document_put","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}$","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceShareDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Replace Share Document Api Admin Shares  Token  Document Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/read-resume":{"post":{"summary":"Read Posted Resume","description":"A résumé someone posted, read into a profile for a share link.\n\nOne PDF or Word file goes through the résumé import exactly as an upload\ndoes. Screenshots go to the vision model the import already uses for a\nscanned PDF, as images. Admin-only: users import files, never pictures.\nSpend and the hourly limit are the import's, on the admin's account.","operationId":"read_posted_resume_api_admin_shares_read_resume_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadResumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/measure":{"post":{"summary":"Measure Shared Profile","operationId":"measure_shared_profile_api_admin_shares_measure_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasureResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/skills-row":{"post":{"summary":"Skills Row Room","operationId":"skills_row_room_api_admin_shares_skills_row_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillsRowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillsRowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/role-posting":{"post":{"summary":"Write Role Posting","operationId":"write_role_posting_api_admin_shares_role_posting_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolePostingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolePostingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/suggest-bullets":{"post":{"summary":"Suggest Bullets","operationId":"suggest_bullets_api_admin_shares_suggest_bullets_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestBulletsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestBulletsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/reply-drafts":{"post":{"summary":"Write Reply Drafts","operationId":"write_reply_drafts_api_admin_shares_reply_drafts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyDraftsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyDraftsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/direct-message":{"post":{"summary":"Direct Message","description":"The message with the link, alone: fixed wording, no model call, free.\nThe page shows it at once when the comment is written in Claude Code by\nthe share-resume skill rather than by ``reply-drafts`` (owner, 2026-10-19).","operationId":"direct_message_api_admin_shares_direct_message_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/plan/prepare":{"post":{"summary":"Prepare Plan Job","operationId":"prepare_plan_job_api_admin_shares_plan_prepare_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Prepare Plan Job Api Admin Shares Plan Prepare Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/shares/plan/finish":{"post":{"summary":"Finish Plan Job","description":"The answer Claude Code gave on the owner's plan, checked and finished as\nthe paid endpoint finishes its own; the same response shape.","operationId":"finish_plan_job_api_admin_shares_plan_finish_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanJobFinishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Finish Plan Job Api Admin Shares Plan Finish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health","description":"Liveness: is this process alive and serving? (Phase 13.)\n\nDeliberately touches nothing outside itself — no database, no provider, no\nTypst compile. ``render.yaml`` points ``healthCheckPath`` here, so a check\nthat failed during an Anthropic or Supabase outage would restart the\ninstance in a loop and turn their outage into ours, while this app can still\nserve the SPA, saved applications and billing through it. Required local\ninitialization is reported by ``/api/ready``; whether generation actually\nworks end to end is what ``python -m backend.smoke`` answers.\n\nReports build identity and the *resolved* model chain, never a key.","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/api/ready":{"get":{"summary":"Ready","description":"Readiness: did every required local initialization actually succeed?\n\n503 when a required check failed — a failed font load, a Typst engine that\ndoes not match the calibrated manifest, an unresolvable or unpriced model\nchain, or missing credit-store/provider configuration. Every check is local,\nso this is a statement about this instance, not about the internet.\n\nUnauthenticated on purpose: it exposes no secret and no user data, and a\nreadiness probe you need a token for is a readiness probe an external\nmonitor cannot use.","operationId":"ready_api_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessResponse"}}}}}}},"/api/metrics/counters":{"get":{"summary":"Metrics Counters","description":"Process-local counters since boot (Phase 13).\n\nThe one an uptime check cannot replace: an SSE generation that fails is an\nHTTP 200 with an ``error`` event inside it, so ``generation_failed_total``\nis the only place a stream failure shows up as a failure. Counters reset on\nrestart by design — they describe this instance, and the durable record of\nmoney is the ledger, not this.","operationId":"metrics_counters_api_metrics_counters_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/metrics/recent":{"get":{"summary":"Recent Metrics","operationId":"recent_metrics_api_metrics_recent_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecentMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app-config.js":{"get":{"summary":"App Config Js","operationId":"app_config_js_app_config_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{full_path}":{"get":{"summary":"Serve Spa","operationId":"serve_spa__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"summary":"Serve Spa","operationId":"serve_spa__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdminSpendResponse":{"properties":{"spend_today_usd":{"type":"number","title":"Spend Today Usd"},"spend_7d_usd":{"type":"number","title":"Spend 7D Usd"},"max_daily_spend_usd":{"type":"number","title":"Max Daily Spend Usd"},"credits_sold":{"type":"integer","title":"Credits Sold"},"credits_consumed":{"type":"integer","title":"Credits Consumed"},"credits_granted":{"type":"integer","title":"Credits Granted"},"credits_refunded":{"type":"integer","title":"Credits Refunded"},"revenue_usd":{"type":"number","title":"Revenue Usd"},"passes_sold":{"type":"integer","title":"Passes Sold","default":0},"passes_refunded":{"type":"integer","title":"Passes Refunded","default":0},"passes_active":{"type":"integer","title":"Passes Active","default":0},"gifted_passes_active":{"type":"integer","title":"Gifted Passes Active","default":0},"pass_generations_7d":{"type":"integer","title":"Pass Generations 7D","default":0},"usage_flags_7d":{"type":"integer","title":"Usage Flags 7D","default":0},"top_spenders":{"items":{"$ref":"#/components/schemas/TopSpender"},"type":"array","title":"Top Spenders"}},"type":"object","required":["spend_today_usd","spend_7d_usd","max_daily_spend_usd","credits_sold","credits_consumed","credits_granted","credits_refunded","revenue_usd","top_spenders"],"title":"AdminSpendResponse"},"BillingEvent":{"properties":{"kind":{"type":"string","title":"Kind"},"delta":{"type":"integer","title":"Delta"},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Usd"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"}},"type":"object","required":["kind","delta","created_at"],"title":"BillingEvent"},"BillingHistoryResponse":{"properties":{"events":{"items":{"$ref":"#/components/schemas/BillingEvent"},"type":"array","title":"Events"}},"type":"object","required":["events"],"title":"BillingHistoryResponse"},"BillingReconciliationResponse":{"properties":{"outstanding":{"items":{"$ref":"#/components/schemas/WebhookReceipt"},"type":"array","title":"Outstanding"},"unfulfilled_sessions":{"items":{"$ref":"#/components/schemas/UnfulfilledSession"},"type":"array","title":"Unfulfilled Sessions"},"sweep_window_hours":{"type":"integer","title":"Sweep Window Hours"},"sweep_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sweep Error"}},"type":"object","required":["outstanding","unfulfilled_sessions","sweep_window_hours"],"title":"BillingReconciliationResponse"},"BulletItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["id","text"],"title":"BulletItem"},"BulletOrigin":{"properties":{"id":{"type":"string","minLength":1,"title":"Id"},"text":{"type":"string","minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["id","text"],"title":"BulletOrigin","description":"One profile bullet a v3 bullet came from (design §6: \"which originals\nit came from\"): its id and its text as the profile has it."},"ChatCarryOverResponse":{"properties":{"claimed":{"type":"integer","title":"Claimed"},"profile_adopted":{"type":"boolean","title":"Profile Adopted"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["claimed","profile_adopted"],"title":"ChatCarryOverResponse"},"CheckoutRequest":{"properties":{"price_id":{"type":"string","minLength":1,"title":"Price Id"}},"type":"object","required":["price_id"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CheckoutResponse"},"ClaimSharedResumeRequest":{"properties":{"resume_document":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resume Document"}},"type":"object","title":"ClaimSharedResumeRequest"},"ClaimSharedResumeResponse":{"properties":{"application_id":{"type":"string","title":"Application Id"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"},"source":{"type":"string","title":"Source"},"already":{"type":"boolean","title":"Already"}},"type":"object","required":["application_id","profile","source","already"],"title":"ClaimSharedResumeResponse"},"ContactInfo":{"properties":{"name":{"type":"string","maxLength":300,"title":"Name","default":""},"email":{"type":"string","maxLength":300,"title":"Email","default":""},"phone":{"type":"string","maxLength":120,"title":"Phone","default":""},"linkedin":{"type":"string","maxLength":2000,"title":"Linkedin","default":""},"portfolio":{"type":"string","maxLength":2000,"title":"Portfolio","default":""},"location":{"type":"string","maxLength":300,"title":"Location","default":""},"header_items":{"items":{"$ref":"#/components/schemas/HeaderItem"},"type":"array","maxItems":8,"title":"Header Items"}},"additionalProperties":false,"type":"object","title":"ContactInfo"},"CounterSample":{"properties":{"name":{"type":"string","title":"Name"},"labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Labels"},"value":{"type":"integer","title":"Value"}},"type":"object","required":["name","labels","value"],"title":"CounterSample"},"CountersResponse":{"properties":{"build_sha":{"type":"string","title":"Build Sha"},"uptime_s":{"type":"number","title":"Uptime S"},"counters":{"items":{"$ref":"#/components/schemas/CounterSample"},"type":"array","title":"Counters"}},"type":"object","required":["build_sha","uptime_s","counters"],"title":"CountersResponse"},"CreateGiftLinkRequest":{"properties":{"days":{"type":"integer","maximum":36500.0,"minimum":1.0,"title":"Days"},"email":{"type":"string","maxLength":320,"title":"Email","default":""},"note":{"type":"string","maxLength":500,"title":"Note","default":""},"message":{"type":"string","maxLength":300,"title":"Message","default":""},"max_uses":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Max Uses","default":1},"code":{"type":"string","maxLength":64,"title":"Code","default":""},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["days"],"title":"CreateGiftLinkRequest"},"CreateGiftLinkResponse":{"properties":{"id":{"type":"string","title":"Id"},"token":{"type":"string","title":"Token"},"path":{"type":"string","title":"Path"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","token","path","expires_at"],"title":"CreateGiftLinkResponse"},"CreateShareRequest":{"properties":{"source":{"type":"string","enum":["reddit","friend","coach","counselor","other","example"],"title":"Source"},"note":{"type":"string","maxLength":500,"title":"Note","default":""},"resume_document":{"additionalProperties":true,"type":"object","title":"Resume Document"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"},"company_name":{"type":"string","maxLength":300,"title":"Company Name","default":""},"job_title":{"type":"string","maxLength":300,"title":"Job Title","default":""},"job_link":{"type":"string","maxLength":2000,"title":"Job Link","default":""},"job_description":{"type":"string","maxLength":30000,"title":"Job Description","default":""}},"type":"object","required":["source","resume_document","profile"],"title":"CreateShareRequest"},"CreateShareResponse":{"properties":{"share_id":{"type":"string","title":"Share Id"},"token":{"type":"string","title":"Token"},"path":{"type":"string","title":"Path"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["share_id","token","path","expires_at"],"title":"CreateShareResponse"},"CreditsResponse":{"properties":{"balance":{"type":"integer","title":"Balance"},"purchased":{"type":"boolean","title":"Purchased"},"free_allowance":{"type":"integer","title":"Free Allowance"},"pass_active":{"type":"boolean","title":"Pass Active","default":false},"pass_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pass Ends At"},"pass_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pass Source"}},"type":"object","required":["balance","purchased","free_allowance"],"title":"CreditsResponse"},"CustomSection":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"shape":{"type":"string","enum":["entries","lines","inline","prose","bullets"],"title":"Shape","default":"entries"},"items":{"items":{"$ref":"#/components/schemas/CustomSectionItem"},"type":"array","maxItems":30,"title":"Items"},"tokens":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Tokens"},"text":{"type":"string","maxLength":1200,"title":"Text","default":""}},"additionalProperties":false,"type":"object","required":["id","title"],"title":"CustomSection"},"CustomSectionItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"title":{"type":"string","maxLength":300,"title":"Title","default":""},"subtitle":{"type":"string","maxLength":300,"title":"Subtitle","default":""},"timeline":{"type":"string","maxLength":120,"title":"Timeline","default":""},"location":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Location"},"link":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Link"},"bullets":{"items":{"$ref":"#/components/schemas/BulletItem"},"type":"array","maxItems":50,"title":"Bullets"}},"additionalProperties":false,"type":"object","required":["id"],"title":"CustomSectionItem"},"DegradationReference":{"properties":{"section":{"type":"string","minLength":1,"title":"Section"},"item_id":{"type":"string","maxLength":200,"title":"Item Id","default":""},"label":{"type":"string","maxLength":300,"title":"Label","default":""},"note":{"type":"string","maxLength":300,"title":"Note","default":""}},"additionalProperties":false,"type":"object","required":["section"],"title":"DegradationReference","description":"A pointer back into the profile, so a message can name the thing it is\nabout and an editor can scroll to it. Empty for codes that describe the\npipeline rather than the person's content."},"DirectMessageRequest":{"properties":{"link":{"type":"string","maxLength":2000,"minLength":1,"title":"Link"},"source":{"type":"string","enum":["reddit","friend","coach","counselor","other"],"title":"Source","default":"reddit"},"resume_word":{"type":"string","enum":["CV","resume"],"title":"Resume Word","default":"resume"},"prompts":{"type":"boolean","title":"Prompts","default":false}},"type":"object","required":["link"],"title":"DirectMessageRequest"},"DirectMessageResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"DirectMessageResponse"},"EducationItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"institution":{"type":"string","maxLength":300,"title":"Institution","default":""},"degree":{"type":"string","maxLength":300,"title":"Degree","default":""},"timeline":{"type":"string","maxLength":120,"title":"Timeline","default":""},"gpa":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Gpa"}},"additionalProperties":false,"type":"object","required":["id"],"title":"EducationItem"},"ExampleLink":{"properties":{"token":{"type":"string","title":"Token"},"company_name":{"type":"string","title":"Company Name","default":""},"job_title":{"type":"string","title":"Job Title","default":""},"job_link":{"type":"string","title":"Job Link","default":""}},"type":"object","required":["token"],"title":"ExampleLink"},"ExamplesResponse":{"properties":{"examples":{"items":{"$ref":"#/components/schemas/ExampleLink"},"type":"array","title":"Examples"}},"type":"object","required":["examples"],"title":"ExamplesResponse"},"ExistingEducationName":{"properties":{"institution":{"type":"string","maxLength":300,"title":"Institution","default":""},"degree":{"type":"string","maxLength":300,"title":"Degree","default":""}},"additionalProperties":false,"type":"object","title":"ExistingEducationName"},"ExistingEntryNames":{"properties":{"experience":{"items":{"$ref":"#/components/schemas/ExistingExperienceName"},"type":"array","maxItems":40,"title":"Experience"},"projects":{"items":{"$ref":"#/components/schemas/ExistingProjectName"},"type":"array","maxItems":30,"title":"Projects"},"leadership":{"items":{"$ref":"#/components/schemas/ExistingLeadershipName"},"type":"array","maxItems":25,"title":"Leadership"},"education":{"items":{"$ref":"#/components/schemas/ExistingEducationName"},"type":"array","maxItems":25,"title":"Education"}},"additionalProperties":false,"type":"object","title":"ExistingEntryNames","description":"The user's entries by name only, never their bullets: what the paste\nreader matches pasted work against, so bullets about a job or project the\nuser already has land on it."},"ExistingExperienceName":{"properties":{"company":{"type":"string","maxLength":300,"title":"Company","default":""},"role":{"type":"string","maxLength":300,"title":"Role","default":""},"timeline":{"type":"string","maxLength":120,"title":"Timeline","default":""}},"additionalProperties":false,"type":"object","title":"ExistingExperienceName"},"ExistingLeadershipName":{"properties":{"organization":{"type":"string","maxLength":300,"title":"Organization","default":""},"role":{"type":"string","maxLength":300,"title":"Role","default":""}},"additionalProperties":false,"type":"object","title":"ExistingLeadershipName"},"ExistingProjectName":{"properties":{"title":{"type":"string","maxLength":300,"title":"Title","default":""}},"additionalProperties":false,"type":"object","title":"ExistingProjectName"},"ExperienceItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"company":{"type":"string","maxLength":300,"title":"Company","default":""},"role":{"type":"string","maxLength":300,"title":"Role","default":""},"timeline":{"type":"string","maxLength":120,"title":"Timeline","default":""},"location":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Location"},"bullets":{"items":{"$ref":"#/components/schemas/BulletItem"},"type":"array","maxItems":50,"title":"Bullets"},"sub_roles":{"items":{"$ref":"#/components/schemas/SubRoleItem"},"type":"array","maxItems":10,"title":"Sub Roles"},"tenure":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Tenure"}},"additionalProperties":false,"type":"object","required":["id"],"title":"ExperienceItem"},"ExtractJobPostingRequest":{"properties":{"url":{"type":"string","title":"Url"},"enable_llm":{"type":"boolean","title":"Enable Llm","default":true}},"additionalProperties":false,"type":"object","required":["url"],"title":"ExtractJobPostingRequest"},"ExtractJobPostingResponse":{"properties":{"job_link":{"type":"string","title":"Job Link"},"job_title":{"type":"string","title":"Job Title","default":""},"company_name":{"type":"string","title":"Company Name","default":""},"job_description":{"type":"string","title":"Job Description","default":""},"confidence":{"$ref":"#/components/schemas/FieldConfidence"},"overall_confidence":{"type":"string","title":"Overall Confidence"},"mode":{"type":"string","title":"Mode"},"used_llm":{"type":"boolean","title":"Used Llm"},"used_render":{"type":"boolean","title":"Used Render","default":false},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"elapsed_ms":{"type":"integer","title":"Elapsed Ms","default":0},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]},"anomalies":{"items":{"type":"string"},"type":"array","title":"Anomalies","default":[]}},"additionalProperties":false,"type":"object","required":["job_link","confidence","overall_confidence","mode","used_llm"],"title":"ExtractJobPostingResponse"},"FieldConfidence":{"properties":{"job_title":{"type":"string","title":"Job Title"},"company_name":{"type":"string","title":"Company Name"},"job_description":{"type":"string","title":"Job Description"}},"additionalProperties":false,"type":"object","required":["job_title","company_name","job_description"],"title":"FieldConfidence"},"FirstTouchRequest":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Utm Campaign"},"referrer":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Referrer"},"landing":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Landing"},"method":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Method"}},"type":"object","title":"FirstTouchRequest"},"FirstTouchResponse":{"properties":{"outcome":{"type":"string","title":"Outcome"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium"},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"ask_heard_about":{"type":"boolean","title":"Ask Heard About","default":false}},"type":"object","required":["outcome"],"title":"FirstTouchResponse"},"FitState":{"properties":{"pack_iterations":{"type":"integer","minimum":0.0,"title":"Pack Iterations"},"final_page_count":{"type":"integer","minimum":0.0,"title":"Final Page Count"},"final_fill_fraction":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Final Fill Fraction"},"under_page":{"type":"boolean","title":"Under Page","default":false},"dropped_sections":{"items":{"type":"string"},"type":"array","title":"Dropped Sections"}},"additionalProperties":false,"type":"object","required":["pack_iterations","final_page_count","final_fill_fraction"],"title":"FitState"},"FreetextImportRequest":{"properties":{"text":{"type":"string","maxLength":200000,"minLength":1,"title":"Text"},"existing":{"anyOf":[{"$ref":"#/components/schemas/ExistingEntryNames"},{"type":"null"}]},"entry":{"anyOf":[{"$ref":"#/components/schemas/ImportEntryTarget"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["text"],"title":"FreetextImportRequest"},"GenerateResumeRequest":{"properties":{"profile":{"$ref":"#/components/schemas/Profile"},"job":{"$ref":"#/components/schemas/JobInput"},"settings":{"anyOf":[{"$ref":"#/components/schemas/GenerationSettings"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["profile","job"],"title":"GenerateResumeRequest"},"GenerateResumeResponse":{"properties":{"generation_id":{"type":"string","minLength":1,"title":"Generation Id"},"pdf_base64":{"type":"string","minLength":1,"title":"Pdf Base64"},"page_count":{"type":"integer","minimum":0.0,"title":"Page Count"},"fit_state":{"$ref":"#/components/schemas/FitState"},"rewrites":{"items":{"$ref":"#/components/schemas/RewrittenBullet"},"type":"array","title":"Rewrites"},"timings_ms":{"$ref":"#/components/schemas/GenerationTimings"},"cost_usd":{"type":"number","minimum":0.0,"title":"Cost Usd"},"under_page":{"type":"boolean","title":"Under Page"},"credits_remaining":{"type":"integer","title":"Credits Remaining"},"degradations":{"items":{"$ref":"#/components/schemas/GenerationDegradation"},"type":"array","title":"Degradations"},"packed":{"$ref":"#/components/schemas/PackedResume"},"generator":{"type":"string","maxLength":32,"minLength":1,"title":"Generator","default":"v2"}},"additionalProperties":false,"type":"object","required":["generation_id","pdf_base64","page_count","fit_state","timings_ms","cost_usd","under_page","credits_remaining","packed"],"title":"GenerateResumeResponse"},"GenerationDegradation":{"properties":{"code":{"type":"string","enum":["rewrite_fallback","rewrite_substitution","required_content_rescue","content_quality_drop","render_verification_unavailable","profile_content_omitted","profile_content_malformed"],"title":"Code"},"count":{"type":"integer","minimum":1.0,"title":"Count"},"message":{"type":"string","minLength":1,"title":"Message"},"user_facing":{"type":"boolean","title":"User Facing","default":false},"references":{"items":{"$ref":"#/components/schemas/DegradationReference"},"type":"array","title":"References"}},"additionalProperties":false,"type":"object","required":["code","count","message"],"title":"GenerationDegradation","description":"A description of an exceptional outcome in a successful run.\n\nOrdinary solver fit choices (planned cuts/backfills and exact-fill swaps) are\nintentionally absent. These entries describe cases where a stage could not\ndeliver its normal-quality output and deterministic safeguards had to\npreserve correctness instead — or, for the two ``user_facing`` codes, where\nsomething about the *person's own content* is worth telling them."},"GenerationSettings":{"properties":{"page_count":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Count"},"posting_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Language"},"skills_from_evidence":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skills From Evidence"},"titles":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Titles"},"rewrite_summary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rewrite Summary"},"choose_page_count":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Choose Page Count"},"template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template"}},"type":"object","title":"GenerationSettings","description":"The user's generation settings (RESUME_GENERATION_DESIGN.md §12), each\noptional and permissive: v3 reads them through ``gen3.settings.load``,\nwhere a value it doesn't know keeps the default; the pipeline on main\nignores them (issue #296) but ``rewrite_summary``, which it honours by\ndropping the planner's rewrite of the summary (:func:`_summary_as_written`)."},"GenerationTimings":{"properties":{"plan":{"type":"integer","minimum":0.0,"title":"Plan","default":0},"rewrite":{"type":"integer","minimum":0.0,"title":"Rewrite","default":0},"solve":{"type":"integer","minimum":0.0,"title":"Solve","default":0},"render":{"type":"integer","minimum":0.0,"title":"Render","default":0},"total":{"type":"integer","minimum":0.0,"title":"Total","default":0}},"additionalProperties":false,"type":"object","title":"GenerationTimings"},"GiftLinkSummary":{"properties":{"id":{"type":"string","title":"Id"},"token":{"type":"string","title":"Token"},"days":{"type":"integer","title":"Days"},"locked_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locked Email"},"note":{"type":"string","title":"Note","default":""},"message":{"type":"string","title":"Message","default":""},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"redeemed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Redeemed At"},"redeemed_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redeemed Email"},"max_uses":{"type":"integer","title":"Max Uses","default":1},"uses":{"type":"integer","title":"Uses","default":0}},"type":"object","required":["id","token","days","status","created_at","expires_at"],"title":"GiftLinkSummary"},"GiftLinkView":{"properties":{"days":{"type":"integer","title":"Days"},"locked":{"type":"boolean","title":"Locked"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["days","locked"],"title":"GiftLinkView"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeaderItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"kind":{"type":"string","enum":["github","website","work_authorization","other"],"title":"Kind","default":"other"},"value":{"type":"string","maxLength":2000,"title":"Value","default":""},"hidden":{"type":"boolean","title":"Hidden","default":false}},"additionalProperties":false,"type":"object","required":["id"],"title":"HeaderItem","description":"One item a person added to their résumé header (#546). A web address\nprints as a link on the contact line; anything else prints as plain text on\nthe line under it (``header_item_is_link``)."},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"build_sha":{"type":"string","title":"Build Sha"},"anthropic_model":{"type":"string","title":"Anthropic Model"}},"type":"object","required":["status","build_sha","anthropic_model"],"title":"HealthResponse"},"HeardAboutRequest":{"properties":{"answer":{"type":"string","enum":["tiktok","instagram","youtube","linkedin","reddit","friend","search","chat","other"],"title":"Answer"},"detail":{"type":"string","maxLength":400,"title":"Detail","default":""}},"type":"object","required":["answer"],"title":"HeardAboutRequest"},"ImportEntryTarget":{"properties":{"section":{"type":"string","enum":["experience","projects","leadership","custom_sections"],"title":"Section"},"company":{"type":"string","maxLength":300,"title":"Company","default":""},"role":{"type":"string","maxLength":300,"title":"Role","default":""},"timeline":{"type":"string","maxLength":120,"title":"Timeline","default":""},"title":{"type":"string","maxLength":300,"title":"Title","default":""},"organization":{"type":"string","maxLength":300,"title":"Organization","default":""},"item_title":{"type":"string","maxLength":300,"title":"Item Title","default":""}},"additionalProperties":false,"type":"object","required":["section"],"title":"ImportEntryTarget","description":"The one entry a paste is read for (\"Turn into bullets\",\nONBOARDING_PASTE_PLAN.md Phase 4): its section and names, as one\n``existing`` item of that section. A custom-section item is the section's\n``title`` and the item's ``item_title``."},"ImportedContact":{"properties":{"first_name":{"type":"string","title":"First Name","default":""},"last_name":{"type":"string","title":"Last Name","default":""},"email":{"type":"string","title":"Email","default":""},"phone":{"type":"string","title":"Phone","default":""},"linkedin":{"type":"string","title":"Linkedin","default":""},"website":{"type":"string","title":"Website","default":""},"location":{"type":"string","title":"Location","default":""},"github":{"type":"string","title":"Github","default":""},"work_authorization":{"type":"string","title":"Work Authorization","default":""}},"additionalProperties":false,"type":"object","title":"ImportedContact"},"ImportedCustomSection":{"properties":{"title":{"type":"string","title":"Title","default":""},"items":{"items":{"$ref":"#/components/schemas/ImportedSimpleEntry"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","title":"ImportedCustomSection"},"ImportedEducation":{"properties":{"institution":{"type":"string","title":"Institution","default":""},"degree":{"type":"string","title":"Degree","default":""},"timeline":{"type":"string","title":"Timeline","default":""},"gpa":{"type":"string","title":"Gpa","default":""}},"additionalProperties":false,"type":"object","title":"ImportedEducation"},"ImportedExperience":{"properties":{"company":{"type":"string","title":"Company","default":""},"role":{"type":"string","title":"Role","default":""},"timeline":{"type":"string","title":"Timeline","default":""},"location":{"type":"string","title":"Location","default":""},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"source_text":{"type":"string","title":"Source Text","default":""},"source_bullets":{"items":{"type":"string"},"type":"array","title":"Source Bullets"},"sub_roles":{"items":{"$ref":"#/components/schemas/ImportedSubRole"},"type":"array","title":"Sub Roles"}},"additionalProperties":false,"type":"object","title":"ImportedExperience"},"ImportedLeftover":{"properties":{"text":{"type":"string","title":"Text","default":""},"kind":{"type":"string","title":"Kind","default":"unknown"},"section":{"type":"string","title":"Section","default":"custom"},"title":{"type":"string","title":"Title","default":""},"body":{"type":"string","title":"Body","default":""}},"additionalProperties":false,"type":"object","title":"ImportedLeftover","description":"One unplaced run with the type the parser put on it.\n\nMirrors ``resume_import.Leftover`` field-for-field. The client needs all five:\n``text`` is what the document said and is what the review card shows,\n``kind`` picks the heading, ``section`` names the destination, ``title`` is\nwhat the kept entry will be called, and ``body`` is ``text`` with its own\nlabel prefix removed — the thing actually written into the profile."},"ImportedMore":{"properties":{"title":{"type":"string","title":"Title","default":""},"url":{"type":"string","title":"Url","default":""},"entry":{"anyOf":[{"$ref":"#/components/schemas/ImportedSimpleEntry"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ImportedMore","description":"A project a link holds that was not added (``link_import.More``): its\naddress to read it from, or the entry when it was read already."},"ImportedProfile":{"properties":{"contact":{"$ref":"#/components/schemas/ImportedContact"},"summary":{"type":"string","maxLength":1200,"title":"Summary","default":""},"summary_source_text":{"type":"string","maxLength":20000,"title":"Summary Source Text","default":""},"experience":{"items":{"$ref":"#/components/schemas/ImportedExperience"},"type":"array","title":"Experience"},"education":{"items":{"$ref":"#/components/schemas/ImportedEducation"},"type":"array","title":"Education"},"projects":{"items":{"$ref":"#/components/schemas/ImportedSimpleEntry"},"type":"array","title":"Projects"},"leadership":{"items":{"$ref":"#/components/schemas/ImportedSimpleEntry"},"type":"array","title":"Leadership"},"skills":{"items":{"type":"string"},"type":"array","title":"Skills"},"courses":{"items":{"type":"string"},"type":"array","title":"Courses"},"interests":{"items":{"type":"string"},"type":"array","title":"Interests"},"custom_sections":{"items":{"$ref":"#/components/schemas/ImportedCustomSection"},"type":"array","title":"Custom Sections"}},"additionalProperties":false,"type":"object","title":"ImportedProfile"},"ImportedSimpleEntry":{"properties":{"title":{"type":"string","title":"Title","default":""},"subtitle":{"type":"string","title":"Subtitle","default":""},"timeline":{"type":"string","title":"Timeline","default":""},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"role":{"type":"string","title":"Role","default":""},"organization":{"type":"string","title":"Organization","default":""},"link":{"type":"string","title":"Link","default":""},"source_text":{"type":"string","title":"Source Text","default":""},"source_bullets":{"items":{"type":"string"},"type":"array","title":"Source Bullets"}},"additionalProperties":false,"type":"object","title":"ImportedSimpleEntry"},"ImportedSubRole":{"properties":{"role":{"type":"string","title":"Role","default":""},"timeline":{"type":"string","title":"Timeline","default":""},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"}},"additionalProperties":false,"type":"object","title":"ImportedSubRole"},"JobInput":{"properties":{"company":{"type":"string","maxLength":300,"minLength":1,"title":"Company"},"url":{"type":"string","maxLength":2000,"minLength":1,"title":"Url"},"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"description":{"type":"string","maxLength":30000,"minLength":1,"title":"Description"},"supporting_info":{"type":"string","maxLength":10000,"title":"Supporting Info","default":""}},"additionalProperties":false,"type":"object","required":["company","url","title","description"],"title":"JobInput"},"KeyTerm":{"properties":{"term":{"type":"string","minLength":1,"title":"Term"},"on_page":{"type":"boolean","title":"On Page"}},"additionalProperties":false,"type":"object","required":["term","on_page"],"title":"KeyTerm","description":"One of the posting's key terms the profile backs (v3, R6;\n``Round1.key_terms``), and whether the page as it printed shows it\n(``keywords.shown``: the term, or its last word's simple plural or\nsingular, whole, in any case). The review screen counts them for the\nuser: how many of the posting's terms their resume uses."},"LeadershipItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"organization":{"type":"string","maxLength":300,"title":"Organization","default":""},"role":{"type":"string","maxLength":300,"title":"Role","default":""},"timeline":{"type":"string","maxLength":120,"title":"Timeline","default":""},"bullets":{"items":{"$ref":"#/components/schemas/BulletItem"},"type":"array","maxItems":50,"title":"Bullets"}},"additionalProperties":false,"type":"object","required":["id"],"title":"LeadershipItem"},"LinkImportRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"existing":{"anyOf":[{"$ref":"#/components/schemas/ExistingEntryNames"},{"type":"null"}]},"pages":{"items":{"type":"string","maxLength":2048,"minLength":1},"type":"array","maxItems":12,"title":"Pages"}},"additionalProperties":false,"type":"object","required":["url"],"title":"LinkImportRequest","description":"A link from the import panel's link field (``backend/link_import.py``)."},"MeasureRequest":{"properties":{"profile":{"$ref":"#/components/schemas/Profile"}},"type":"object","required":["profile"],"title":"MeasureRequest"},"MeasureResponse":{"properties":{"pages":{"additionalProperties":{"type":"number"},"type":"object","title":"Pages"},"live":{"items":{"type":"string"},"type":"array","title":"Live"}},"type":"object","required":["pages","live"],"title":"MeasureResponse"},"Pack":{"properties":{"price_id":{"type":"string","title":"Price Id"},"credits":{"type":"integer","title":"Credits"},"unit_amount":{"type":"integer","title":"Unit Amount"},"currency":{"type":"string","title":"Currency"},"name":{"type":"string","title":"Name"}},"type":"object","required":["price_id","credits","unit_amount","currency","name"],"title":"Pack"},"PackedBullet":{"properties":{"id":{"type":"string","minLength":1,"title":"Id"},"section":{"type":"string","enum":["experience","leadership","projects","custom_sections"],"title":"Section"},"parent_id":{"type":"string","minLength":1,"title":"Parent Id"},"text":{"type":"string","minLength":1,"title":"Text"},"target_lines":{"type":"integer","enum":[1,2],"title":"Target Lines"},"rewrite_for_relevance":{"type":"boolean","title":"Rewrite For Relevance","default":false},"rewrite_for_overflow":{"type":"boolean","title":"Rewrite For Overflow","default":false},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"original_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Text"},"posting_terms":{"items":{"type":"string"},"type":"array","title":"Posting Terms"},"originals":{"items":{"$ref":"#/components/schemas/BulletOrigin"},"type":"array","title":"Originals"}},"additionalProperties":false,"type":"object","required":["id","section","parent_id","text","target_lines"],"title":"PackedBullet"},"PackedResume":{"properties":{"contact":{"$ref":"#/components/schemas/ContactInfo"},"summary":{"type":"string","title":"Summary","default":""},"education":{"items":{"$ref":"#/components/schemas/EducationItem"},"type":"array","title":"Education"},"experience":{"items":{"$ref":"#/components/schemas/ExperienceItem"},"type":"array","title":"Experience"},"leadership":{"items":{"$ref":"#/components/schemas/LeadershipItem"},"type":"array","title":"Leadership"},"projects":{"items":{"$ref":"#/components/schemas/ProjectItem"},"type":"array","title":"Projects"},"skills":{"items":{"type":"string"},"type":"array","title":"Skills"},"courses":{"items":{"type":"string"},"type":"array","title":"Courses"},"interests":{"items":{"type":"string"},"type":"array","title":"Interests"},"custom_sections":{"items":{"$ref":"#/components/schemas/CustomSection"},"type":"array","title":"Custom Sections"},"bullets":{"items":{"$ref":"#/components/schemas/PackedBullet"},"type":"array","title":"Bullets"},"fit_state":{"$ref":"#/components/schemas/FitState"},"selection":{"anyOf":[{"$ref":"#/components/schemas/SelectionRecord"},{"type":"null"}]},"section_order":{"anyOf":[{"items":{"type":"string","maxLength":207,"minLength":1},"type":"array","maxItems":64},{"type":"null"}],"title":"Section Order"},"summary_change":{"anyOf":[{"$ref":"#/components/schemas/SummaryChange"},{"type":"null"}]},"title_changes":{"items":{"$ref":"#/components/schemas/TitleChange"},"type":"array","maxItems":40,"title":"Title Changes"},"page_target":{"anyOf":[{"type":"string","enum":["2","unbounded"]},{"type":"null"}],"title":"Page Target"},"page_target_chosen":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Page Target Chosen"},"key_terms":{"items":{"$ref":"#/components/schemas/KeyTerm"},"type":"array","title":"Key Terms"},"added_skills":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Added Skills"},"template":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Template"}},"additionalProperties":false,"type":"object","required":["contact","fit_state"],"title":"PackedResume"},"PacksResponse":{"properties":{"packs":{"items":{"$ref":"#/components/schemas/Pack"},"type":"array","title":"Packs"},"passes":{"items":{"$ref":"#/components/schemas/PassOffer"},"type":"array","title":"Passes","default":[]}},"type":"object","required":["packs"],"title":"PacksResponse"},"PassOffer":{"properties":{"price_id":{"type":"string","title":"Price Id"},"days":{"type":"integer","title":"Days"},"unit_amount":{"type":"integer","title":"Unit Amount"},"currency":{"type":"string","title":"Currency"},"name":{"type":"string","title":"Name"}},"type":"object","required":["price_id","days","unit_amount","currency","name"],"title":"PassOffer"},"PersistApplicationRequest":{"properties":{"applicationId":{"type":"string","title":"Applicationid"},"companyName":{"type":"string","title":"Companyname"},"jobTitle":{"type":"string","title":"Jobtitle"},"jobLink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Joblink"},"jobDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jobdescription"},"status":{"type":"string","title":"Status"},"reachedStages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reachedstages"},"statusUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statusupdatedat"},"tailoredProfileSnapshot":{"additionalProperties":true,"type":"object","title":"Tailoredprofilesnapshot"},"resumeDocument":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resumedocument"},"date":{"type":"string","title":"Date"},"expectedWriteVersion":{"type":"integer","title":"Expectedwriteversion","default":0}},"type":"object","required":["applicationId","companyName","jobTitle","status","tailoredProfileSnapshot","date"],"title":"PersistApplicationRequest"},"PlanJobFinishRequest":{"properties":{"job":{"type":"string","enum":["read","posting","prompts","reply"],"title":"Job"},"input":{"additionalProperties":true,"type":"object","title":"Input"},"parsed":{"title":"Parsed"},"image_count":{"type":"integer","maximum":16.0,"minimum":0.0,"title":"Image Count","default":1}},"type":"object","required":["job"],"title":"PlanJobFinishRequest"},"PlanJobRequest":{"properties":{"job":{"type":"string","enum":["read","posting","prompts","reply"],"title":"Job"},"input":{"additionalProperties":true,"type":"object","title":"Input"}},"type":"object","required":["job"],"title":"PlanJobRequest"},"Profile":{"properties":{"contact":{"$ref":"#/components/schemas/ContactInfo"},"summary":{"type":"string","maxLength":1200,"title":"Summary","default":""},"education":{"items":{"$ref":"#/components/schemas/EducationItem"},"type":"array","maxItems":25,"title":"Education"},"experience":{"items":{"$ref":"#/components/schemas/ExperienceItem"},"type":"array","maxItems":40,"title":"Experience"},"leadership":{"items":{"$ref":"#/components/schemas/LeadershipItem"},"type":"array","maxItems":25,"title":"Leadership"},"projects":{"items":{"$ref":"#/components/schemas/ProjectItem"},"type":"array","maxItems":30,"title":"Projects"},"skills":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Skills"},"courses":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Courses"},"interests":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Interests"},"custom_sections":{"items":{"$ref":"#/components/schemas/CustomSection"},"type":"array","maxItems":10,"title":"Custom Sections"}},"additionalProperties":false,"type":"object","required":["contact"],"title":"Profile"},"ProfileImportResponse":{"properties":{"profile":{"$ref":"#/components/schemas/ImportedProfile"},"tier":{"type":"string","title":"Tier"},"used_llm":{"type":"boolean","title":"Used Llm"},"confidence":{"type":"string","title":"Confidence"},"source_format":{"type":"string","title":"Source Format"},"page_count":{"type":"integer","title":"Page Count"},"leftovers":{"items":{"type":"string"},"type":"array","title":"Leftovers"},"leftover_entries":{"items":{"$ref":"#/components/schemas/ImportedLeftover"},"type":"array","title":"Leftover Entries"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"more":{"items":{"$ref":"#/components/schemas/ImportedMore"},"type":"array","title":"More"}},"additionalProperties":false,"type":"object","required":["profile","tier","used_llm","confidence","source_format","page_count"],"title":"ProfileImportResponse"},"ProfileLintFinding":{"properties":{"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"},"item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Id"},"bullet_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bullet Id"},"word":{"type":"string","title":"Word"},"suggestion":{"type":"string","title":"Suggestion"},"offset":{"type":"integer","title":"Offset"}},"additionalProperties":false,"type":"object","required":["word","suggestion","offset"],"title":"ProfileLintFinding"},"ProfileLintRequest":{"properties":{"profile":{"additionalProperties":true,"type":"object","title":"Profile"}},"additionalProperties":false,"type":"object","required":["profile"],"title":"ProfileLintRequest"},"ProfileLintResponse":{"properties":{"findings":{"items":{"$ref":"#/components/schemas/ProfileLintFinding"},"type":"array","title":"Findings"}},"additionalProperties":false,"type":"object","required":["findings"],"title":"ProfileLintResponse"},"ProfileReconcileRequest":{"properties":{"existing":{"items":{"$ref":"#/components/schemas/ReconcileEntry"},"type":"array","maxItems":240,"title":"Existing"},"incoming":{"items":{"$ref":"#/components/schemas/ReconcileEntry"},"type":"array","maxItems":240,"title":"Incoming"},"settled":{"items":{"$ref":"#/components/schemas/ReconcileSettledPair"},"type":"array","maxItems":500,"title":"Settled"},"candidates":{"items":{"$ref":"#/components/schemas/ReconcileCandidate"},"type":"array","maxItems":120,"title":"Candidates"}},"additionalProperties":false,"type":"object","title":"ProfileReconcileRequest"},"ProfileReconcileResponse":{"properties":{"status":{"type":"string","title":"Status"},"plan":{"items":{"$ref":"#/components/schemas/ReconcileOperation"},"type":"array","title":"Plan"},"unresolved":{"items":{"type":"string"},"type":"array","title":"Unresolved"},"reject_reasons":{"items":{"type":"string"},"type":"array","title":"Reject Reasons"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"engine":{"type":"string","title":"Engine","default":""}},"additionalProperties":false,"type":"object","required":["status"],"title":"ProfileReconcileResponse"},"ProfileSufficiency":{"properties":{"lines_available":{"type":"integer","title":"Lines Available"},"lines_supplied":{"type":"integer","title":"Lines Supplied"},"fills_page":{"type":"boolean","title":"Fills Page"},"shortfall_lines":{"type":"integer","title":"Shortfall Lines"},"unshippable_sections":{"items":{"type":"string"},"type":"array","title":"Unshippable Sections"}},"additionalProperties":false,"type":"object","required":["lines_available","lines_supplied","fills_page","shortfall_lines"],"title":"ProfileSufficiency","description":"Two measured facts about the user's own page, and nothing derived.\n\nDeliberately not a score, a percentage or a meter: RESUME_IMPORT.md rejects\na gamified completeness number, and a percentage invites someone to optimize\nthe number rather than say a truer thing about their career. Line counts are\nan observation the caller can phrase honestly (\"your material fills about\nhalf a page\") or ignore."},"ProfileSufficiencyRequest":{"properties":{"profile":{"additionalProperties":true,"type":"object","title":"Profile"}},"additionalProperties":false,"type":"object","required":["profile"],"title":"ProfileSufficiencyRequest"},"ProfileSufficiencyResponse":{"properties":{"sufficiency":{"anyOf":[{"$ref":"#/components/schemas/ProfileSufficiency"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ProfileSufficiencyResponse"},"ProjectItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"title":{"type":"string","maxLength":300,"title":"Title","default":""},"link":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Link"},"bullets":{"items":{"$ref":"#/components/schemas/BulletItem"},"type":"array","maxItems":50,"title":"Bullets"}},"additionalProperties":false,"type":"object","required":["id"],"title":"ProjectItem"},"ReadPostResponse":{"properties":{"profile":{"$ref":"#/components/schemas/ImportedProfile"},"tier":{"type":"string","title":"Tier"},"used_llm":{"type":"boolean","title":"Used Llm"},"confidence":{"type":"string","title":"Confidence"},"source_format":{"type":"string","title":"Source Format"},"page_count":{"type":"integer","title":"Page Count"},"leftovers":{"items":{"type":"string"},"type":"array","title":"Leftovers"},"leftover_entries":{"items":{"$ref":"#/components/schemas/ImportedLeftover"},"type":"array","title":"Leftover Entries"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"more":{"items":{"$ref":"#/components/schemas/ImportedMore"},"type":"array","title":"More"},"post_title":{"type":"string","title":"Post Title","default":""},"target_role":{"type":"string","title":"Target Role","default":""},"target_role_basis":{"type":"string","title":"Target Role Basis","default":"resume"},"target_role_alternatives":{"items":{"type":"string"},"type":"array","title":"Target Role Alternatives"}},"additionalProperties":false,"type":"object","required":["profile","tier","used_llm","confidence","source_format","page_count"],"title":"ReadPostResponse","description":"The résumé as the import answers it, and where the post says they are\ngoing: the role a share link is tailored to unless the owner picks another."},"ReadResumeRequest":{"properties":{"files":{"items":{"$ref":"#/components/schemas/ResumeFile"},"type":"array","maxItems":16,"minItems":1,"title":"Files"},"post_text":{"type":"string","maxLength":6000,"title":"Post Text","default":""}},"type":"object","required":["files"],"title":"ReadResumeRequest"},"ReadinessCheck":{"properties":{"name":{"type":"string","title":"Name"},"ok":{"type":"boolean","title":"Ok"},"required":{"type":"boolean","title":"Required"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["name","ok","required","detail"],"title":"ReadinessCheck"},"ReadinessResponse":{"properties":{"ready":{"type":"boolean","title":"Ready"},"build_sha":{"type":"string","title":"Build Sha"},"checks":{"items":{"$ref":"#/components/schemas/ReadinessCheck"},"type":"array","title":"Checks"}},"type":"object","required":["ready","build_sha","checks"],"title":"ReadinessResponse"},"RecentGenerationSummary":{"properties":{"generation_id":{"type":"string","title":"Generation Id"},"total_ms":{"type":"integer","title":"Total Ms"},"cost_usd":{"type":"number","title":"Cost Usd"},"page_count":{"type":"integer","title":"Page Count"},"under_page":{"type":"boolean","title":"Under Page"}},"type":"object","required":["generation_id","total_ms","cost_usd","page_count","under_page"],"title":"RecentGenerationSummary"},"RecentMetricsResponse":{"properties":{"generations":{"items":{"$ref":"#/components/schemas/RecentGenerationSummary"},"type":"array","title":"Generations"}},"type":"object","required":["generations"],"title":"RecentMetricsResponse"},"ReconcileCandidate":{"properties":{"incoming":{"type":"string","maxLength":200,"minLength":1,"title":"Incoming"},"existing":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Existing"}},"additionalProperties":false,"type":"object","required":["incoming"],"title":"ReconcileCandidate","description":"The client's own shortlist for one incoming entry. Advisory: the model may\npropose outside it, but every handle it names must exist in the index."},"ReconcileEntry":{"properties":{"handle":{"type":"string","maxLength":200,"minLength":1,"title":"Handle"},"section":{"type":"string","maxLength":120,"minLength":1,"title":"Section"},"org":{"type":"string","maxLength":300,"title":"Org","default":""},"title":{"type":"string","maxLength":300,"title":"Title","default":""},"start":{"type":"string","maxLength":120,"title":"Start","default":""},"end":{"type":"string","maxLength":120,"title":"End","default":""},"current":{"type":"boolean","title":"Current","default":false},"location":{"type":"string","maxLength":120,"title":"Location","default":""},"bullet_count":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Bullet Count","default":0},"bullet_preview":{"type":"string","maxLength":120,"title":"Bullet Preview","default":""},"fields_present":{"items":{"type":"string"},"type":"array","maxItems":24,"title":"Fields Present"},"user_edited":{"type":"boolean","title":"User Edited","default":false}},"additionalProperties":false,"type":"object","required":["handle","section"],"title":"ReconcileEntry","description":"One indexed entry: identity and shape only.\n\nDeliberately not a profile entry. There is no bullets array, no description,\nand the one piece of prose — ``bullet_preview`` — is clamped to a length that\ndistinguishes two similar roles without handing the model a paragraph of the\nuser's writing to quote back."},"ReconcileOperation":{"properties":{"op":{"type":"string","title":"Op"},"source":{"type":"string","title":"Source","default":""},"target":{"type":"string","title":"Target","default":""},"to_section":{"type":"string","title":"To Section","default":""},"field":{"type":"string","title":"Field","default":""},"confidence":{"type":"string","title":"Confidence"},"rationale":{"type":"string","title":"Rationale","default":""}},"additionalProperties":false,"type":"object","required":["op","confidence"],"title":"ReconcileOperation","description":"One proposed operation.\n\nEverything here is an enum or a handle the client itself supplied, except\n``rationale`` — the single model-authored string in the whole response, and\nUI text by contract. ``field`` names a field; it never carries its value."},"ReconcileSettledPair":{"properties":{"existing":{"type":"string","maxLength":200,"minLength":1,"title":"Existing"},"incoming":{"type":"string","maxLength":200,"minLength":1,"title":"Incoming"}},"additionalProperties":false,"type":"object","required":["existing","incoming"],"title":"ReconcileSettledPair","description":"A decision already made, so the model never re-litigates it."},"RedeemGiftLinkResponse":{"properties":{"days":{"type":"integer","title":"Days"},"already":{"type":"boolean","title":"Already"},"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"}},"type":"object","required":["days","already"],"title":"RedeemGiftLinkResponse"},"RefitRequest":{"properties":{"profile":{"$ref":"#/components/schemas/Profile"},"selection":{"$ref":"#/components/schemas/SelectionRecord"},"rejected":{"type":"string","maxLength":207,"minLength":1,"title":"Rejected"},"edited_ids":{"items":{"type":"string"},"type":"array","maxItems":400,"title":"Edited Ids"},"section_order":{"anyOf":[{"items":{"type":"string","maxLength":207,"minLength":1},"type":"array","maxItems":64},{"type":"null"}],"title":"Section Order"},"page_count":{"type":"string","enum":["1","2","unbounded"],"title":"Page Count","default":"1"},"template":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Template"}},"additionalProperties":false,"type":"object","required":["profile","selection","rejected"],"title":"RefitRequest","description":"A Reject on the review screen: the document with the rejected bullet's\noriginal restored, the selection record the generation stored, and the\nbullets the user has edited (never removed). ``rejected`` is a bullet id,\nor ``\"summary\"`` for a rewritten or written summary: the document then has\nthe original summary back (or none), and bullets that took the lines the\nnew summary freed leave first (Phase 5). Or ``\"title::<entry id>\"`` for a\nretitled role (M4, the titles setting): the document has the role's own\ntitle back, and bullets that took lines the new title freed leave first."},"RefitResponse":{"properties":{"pdf_base64":{"type":"string","minLength":1,"title":"Pdf Base64"},"page_count":{"type":"integer","minimum":0.0,"title":"Page Count"},"removed":{"items":{"type":"string"},"type":"array","title":"Removed"},"selection":{"$ref":"#/components/schemas/SelectionRecord"}},"additionalProperties":false,"type":"object","required":["pdf_base64","page_count","selection"],"title":"RefitResponse"},"RegenerateBulletRequest":{"properties":{"bullet_uuid":{"type":"string","maxLength":200,"title":"Bullet Uuid","default":""},"original_text":{"type":"string","maxLength":2000,"title":"Original Text","default":""},"generated_text":{"type":"string","maxLength":2000,"title":"Generated Text","default":""},"feedback":{"type":"string","maxLength":2000,"title":"Feedback","default":""},"job_description":{"type":"string","maxLength":30000,"title":"Job Description","default":""},"previous_attempts":{"items":{"type":"string","maxLength":2000},"type":"array","title":"Previous Attempts"},"kind":{"type":"string","enum":["bullet","summary"],"title":"Kind","default":"bullet"}},"additionalProperties":false,"type":"object","title":"RegenerateBulletRequest"},"RegenerateBulletResponse":{"properties":{"generated_text":{"type":"string","minLength":1,"title":"Generated Text"}},"additionalProperties":false,"type":"object","required":["generated_text"],"title":"RegenerateBulletResponse"},"RenderResumeRequest":{"properties":{"profile":{"$ref":"#/components/schemas/Profile"},"section_order":{"anyOf":[{"items":{"type":"string","maxLength":207,"minLength":1},"type":"array","maxItems":64},{"type":"null"}],"title":"Section Order"},"template":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Template"}},"additionalProperties":false,"type":"object","required":["profile"],"title":"RenderResumeRequest"},"RenderResumeResponse":{"properties":{"pdf_base64":{"type":"string","minLength":1,"title":"Pdf Base64"},"page_count":{"type":"integer","minimum":0.0,"title":"Page Count"}},"additionalProperties":false,"type":"object","required":["pdf_base64","page_count"],"title":"RenderResumeResponse"},"ReplaceShareDocumentRequest":{"properties":{"resume_document":{"additionalProperties":true,"type":"object","title":"Resume Document"}},"type":"object","required":["resume_document"],"title":"ReplaceShareDocumentRequest"},"ReplyDraftsRequest":{"properties":{"source":{"type":"string","enum":["reddit","friend","coach","counselor","other"],"title":"Source","default":"reddit"},"link":{"type":"string","maxLength":2000,"minLength":1,"title":"Link"},"post_text":{"type":"string","maxLength":6000,"title":"Post Text","default":""},"files":{"items":{"$ref":"#/components/schemas/ResumeFile"},"type":"array","maxItems":16,"title":"Files"},"mockup":{"type":"string","maxLength":300,"title":"Mockup","default":""},"target":{"type":"string","maxLength":300,"title":"Target","default":""},"titles":{"items":{"$ref":"#/components/schemas/ReplyTitleChange"},"type":"array","maxItems":20,"title":"Titles"},"summary_before":{"type":"string","maxLength":2000,"title":"Summary Before","default":""},"summary_after":{"type":"string","maxLength":2000,"title":"Summary After","default":""},"rewrites":{"items":{"$ref":"#/components/schemas/ReplyRewrite"},"type":"array","maxItems":12,"title":"Rewrites"},"prompts":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Prompts"},"skills_added":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Skills Added"}},"type":"object","required":["link"],"title":"ReplyDraftsRequest"},"ReplyDraftsResponse":{"properties":{"comment":{"type":"string","title":"Comment"},"message":{"type":"string","title":"Message"}},"type":"object","required":["comment","message"],"title":"ReplyDraftsResponse"},"ReplyRewrite":{"properties":{"before":{"type":"string","maxLength":1000,"title":"Before"},"after":{"type":"string","maxLength":1000,"title":"After"},"reasons":{"items":{"type":"string"},"type":"array","maxItems":6,"title":"Reasons"}},"type":"object","required":["before","after"],"title":"ReplyRewrite"},"ReplyTitleChange":{"properties":{"before":{"type":"string","maxLength":300,"title":"Before"},"after":{"type":"string","maxLength":300,"title":"After"}},"type":"object","required":["before","after"],"title":"ReplyTitleChange"},"ResumeFile":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"content_base64":{"type":"string","maxLength":13981016,"minLength":1,"title":"Content Base64"}},"type":"object","required":["filename","content_base64"],"title":"ResumeFile"},"ResumeImportRequest":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"content_base64":{"type":"string","maxLength":22369624,"minLength":1,"title":"Content Base64"}},"additionalProperties":false,"type":"object","required":["filename","content_base64"],"title":"ResumeImportRequest"},"RewrittenBullet":{"properties":{"id":{"type":"string","minLength":1,"title":"Id"},"original_text":{"type":"string","minLength":1,"title":"Original Text"},"final_text":{"type":"string","minLength":1,"title":"Final Text"},"final_lines":{"type":"integer","minimum":1.0,"title":"Final Lines"},"measure_calls":{"type":"integer","minimum":0.0,"title":"Measure Calls"},"converged":{"type":"boolean","title":"Converged"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"}},"additionalProperties":false,"type":"object","required":["id","original_text","final_text","final_lines","measure_calls","converged"],"title":"RewrittenBullet"},"RolePostingRequest":{"properties":{"role":{"type":"string","maxLength":120,"minLength":2,"title":"Role"},"background":{"type":"string","maxLength":500,"title":"Background","default":""}},"type":"object","required":["role"],"title":"RolePostingRequest"},"RolePostingResponse":{"properties":{"posting":{"type":"string","title":"Posting"}},"type":"object","required":["posting"],"title":"RolePostingResponse"},"SelectionRecord":{"properties":{"order":{"items":{"type":"string"},"type":"array","title":"Order"},"states":{"additionalProperties":{"type":"string","enum":["printed","left_off","eligible"]},"type":"object","title":"States"},"fill_for":{"additionalProperties":{"type":"string"},"type":"object","title":"Fill For"},"dependencies":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Dependencies"}},"additionalProperties":false,"type":"object","title":"SelectionRecord","description":"How v3 chose the page, in ids and states only (C3, C6, C7).\n\nReject refits the page from this after save and reopen (Owner decision 2),\nso it travels with the stored result; it holds no text, since the words\nare already in the packed resume and the profile."},"ShareSummary":{"properties":{"id":{"type":"string","title":"Id"},"token":{"type":"string","title":"Token"},"source":{"type":"string","title":"Source"},"note":{"type":"string","title":"Note","default":""},"company_name":{"type":"string","title":"Company Name","default":""},"job_title":{"type":"string","title":"Job Title","default":""},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"open_count":{"type":"integer","title":"Open Count","default":0},"first_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Opened At"},"last_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Opened At"},"download_count":{"type":"integer","title":"Download Count","default":0},"claim_started_count":{"type":"integer","title":"Claim Started Count","default":0},"claim_count":{"type":"integer","title":"Claim Count","default":0}},"type":"object","required":["id","token","source","created_at","expires_at"],"title":"ShareSummary"},"SharedEventRequest":{"properties":{"event":{"type":"string","enum":["downloaded","claim_started"],"title":"Event"}},"type":"object","required":["event"],"title":"SharedEventRequest"},"SharedResumeView":{"properties":{"share_id":{"type":"string","title":"Share Id"},"source":{"type":"string","title":"Source"},"resume_document":{"additionalProperties":true,"type":"object","title":"Resume Document"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"},"company_name":{"type":"string","title":"Company Name","default":""},"job_title":{"type":"string","title":"Job Title","default":""},"job_link":{"type":"string","title":"Job Link","default":""},"job_description":{"type":"string","title":"Job Description","default":""},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"first_open":{"type":"boolean","title":"First Open","default":false}},"type":"object","required":["share_id","source","resume_document","profile","expires_at"],"title":"SharedResumeView"},"SkillsRowRequest":{"properties":{"template":{"type":"string","maxLength":32,"title":"Template","default":"classic"},"row":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Row"},"extra":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Extra"}},"type":"object","title":"SkillsRowRequest"},"SkillsRowResponse":{"properties":{"keep":{"type":"integer","title":"Keep"}},"type":"object","required":["keep"],"title":"SkillsRowResponse"},"SubRoleItem":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"role":{"type":"string","maxLength":300,"title":"Role","default":""},"timeline":{"type":"string","maxLength":120,"title":"Timeline","default":""},"bullets":{"items":{"$ref":"#/components/schemas/BulletItem"},"type":"array","maxItems":50,"title":"Bullets"}},"additionalProperties":false,"type":"object","required":["id"],"title":"SubRoleItem","description":"An earlier title at the same employer (DESIGN_DECISIONS.md §6). The\nentry's own ``role`` / ``timeline`` / ``bullets`` are its newest title;\nthese are the ones before it, newest first."},"SuggestBulletsRequest":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/SuggestEntry"},"type":"array","maxItems":30,"minItems":1,"title":"Entries"},"summary":{"type":"string","maxLength":2000,"title":"Summary","default":""},"count":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Count"},"job_description":{"type":"string","maxLength":30000,"title":"Job Description","default":""},"role":{"type":"string","maxLength":120,"title":"Role","default":""}},"type":"object","required":["entries","count"],"title":"SuggestBulletsRequest"},"SuggestBulletsResponse":{"properties":{"suggestions":{"items":{"$ref":"#/components/schemas/Suggestion"},"type":"array","title":"Suggestions"}},"type":"object","required":["suggestions"],"title":"SuggestBulletsResponse"},"SuggestEntry":{"properties":{"id":{"type":"string","maxLength":120,"minLength":1,"title":"Id"},"heading":{"type":"string","maxLength":300,"title":"Heading"},"bullets":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Bullets"}},"type":"object","required":["id","heading"],"title":"SuggestEntry"},"Suggestion":{"properties":{"entry_id":{"type":"string","title":"Entry Id"},"text":{"type":"string","title":"Text"}},"type":"object","required":["entry_id","text"],"title":"Suggestion"},"SummaryChange":{"properties":{"original":{"type":"string","maxLength":1200,"title":"Original","default":""},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"}},"additionalProperties":false,"type":"object","title":"SummaryChange","description":"A summary v3 rewrote or wrote (build plan Phase 5): what Reject\nrestores, and the confirmed reason labels the review screen shows.\n``original`` is empty when v3 wrote a summary the profile did not have, so\nReject removes it."},"TailorRequest":{"properties":{"profile":{"additionalProperties":true,"type":"object","title":"Profile"},"jobTitle":{"type":"string","maxLength":300,"title":"Jobtitle","default":""},"jobDescription":{"type":"string","maxLength":30000,"title":"Jobdescription","default":""}},"additionalProperties":false,"type":"object","required":["profile"],"title":"TailorRequest"},"TailorResponse":{"properties":{"tailored_bullets":{"items":{"$ref":"#/components/schemas/TailoredBullet"},"type":"array","title":"Tailored Bullets"}},"additionalProperties":false,"type":"object","title":"TailorResponse"},"TailoredBullet":{"properties":{"uuid":{"type":"string","minLength":1,"title":"Uuid"},"proposedText":{"type":"string","minLength":1,"title":"Proposedtext"}},"additionalProperties":false,"type":"object","required":["uuid","proposedText"],"title":"TailoredBullet"},"TitleChange":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"original":{"type":"string","maxLength":300,"minLength":1,"title":"Original"},"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"reasons":{"items":{"type":"string","enum":["posting_role","outside_company","precise"]},"type":"array","maxItems":2,"title":"Reasons"}},"additionalProperties":false,"type":"object","required":["id","original","title"],"title":"TitleChange","description":"A role v3 retitled (M4, the titles setting): the experience entry, the\ntitle the user wrote, which Reject restores, and the title that printed\nin its place. Reject names it ``title::<id>`` to ``/api/refit``.\n``reasons`` are why the writer changed it, one or two of\n``gen3.titles.REASONS``, the most telling first (the owner, 2026-10-05):\nthe title now matches the role the posting is hiring for; the old title\nwas the employer's own name for the role; the old title was standard but\nvague. The review card says each; empty (an older result) reads as the\nlast."},"TopSpender":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"cost_usd":{"type":"number","title":"Cost Usd"},"llm_calls":{"type":"integer","title":"Llm Calls"}},"type":"object","required":["user_id","email","cost_usd","llm_calls"],"title":"TopSpender"},"UnfulfilledSession":{"properties":{"session_id":{"type":"string","title":"Session Id"},"amount_usd":{"type":"number","title":"Amount Usd"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"created":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"livemode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Livemode"}},"type":"object","required":["session_id","amount_usd"],"title":"UnfulfilledSession"},"UpdateApplicationNotesRequest":{"properties":{"notes":{"type":"string","title":"Notes"}},"type":"object","required":["notes"],"title":"UpdateApplicationNotesRequest"},"UpdateApplicationStatusRequest":{"properties":{"status":{"type":"string","title":"Status"},"reachedStages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reachedstages"}},"type":"object","required":["status"],"title":"UpdateApplicationStatusRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebhookReceipt":{"properties":{"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","title":"Status"},"livemode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Livemode"},"object_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Kind"},"object_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"},"amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Usd"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"attempts":{"type":"integer","title":"Attempts","default":1},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received At"}},"type":"object","required":["event_id","event_type","status"],"title":"WebhookReceipt"}}}}