{"openapi":"3.1.0","info":{"title":"Client Portal API","version":"0.1.0"},"paths":{"/api/v1/users/me":{"get":{"tags":["Users"],"summary":"Get the current user's account","description":"Returns the account record (id, email, full name and timestamps) for the authenticated user.","operationId":"read_me_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"User not found"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/profile":{"get":{"tags":["Users"],"summary":"Get the current user's profile","description":"Returns onboarding/profile data for the authenticated user, plus email and full_name joined from the account record. The `enrollment` block reports the programme membership (status, started_on, target_on, paused_at): `status` is `active` or `paused`, and a `null` block means the client has no enrolment record yet, which is distinct from `paused`. Never gated: a paused client can still read their profile.","operationId":"read_my_profile_api_v1_users_me_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"User or profile not found"}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Users"],"summary":"Update the current user's profile","description":"Partially updates onboarding/profile data for the authenticated user. Only provided fields are changed. onboarding_completed_at cannot be set through this endpoint. Returns the same `enrollment` block as the read (`null` means no enrolment record, distinct from `paused`). Never gated: a paused client can still edit their profile.","operationId":"update_my_profile_api_v1_users_me_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"User or profile not found"},"409":{"description":"The profile was updated concurrently (retry the request), or no legal bundle has been published to accept"},"422":{"description":"Invalid profile submission (completing onboarding without accepting the terms, or salary field mismatch)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/deletion-request":{"post":{"tags":["Users"],"summary":"Ask to delete my account","description":"Emails the student a single-use link, valid for 60 minutes, that confirms the deletion. Nothing is deleted yet. A newer request replaces the link, so only the latest email works. The link opens the frontend's confirmation page, which calls `POST /users/me/deletion-confirmation` while signed in as the same student.","operationId":"request_account_deletion_api_v1_users_me_deletion_request_post","responses":{"202":{"description":"Successful Response"},"401":{"description":"Missing or invalid token"},"403":{"description":"`staff_account_cannot_self_erase`"},"404":{"description":"`credentials_not_found` (the account has no credentials row)"},"429":{"description":"Rate limit exceeded (3/hour per student)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/deletion-confirmation":{"post":{"tags":["Users"],"summary":"Confirm deletion of my account","description":"Takes the token from the emailed link and needs a session for the same student. Deactivates the account at once and schedules permanent erasure after the grace period (14 days). Every session is revoked, so the student is signed out everywhere, and an email states the deletion date. Signing in again before that date — with any sign-in method — cancels the deletion. After it, personal data is anonymised and cannot be recovered; audit records and the terms acceptance are kept, linked by UUID only.\n\nOffer the personal-data export before confirming — it is not available once the student is signed out.","operationId":"confirm_account_deletion_api_v1_users_me_deletion_confirmation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionConfirmationCreate"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionScheduledRead"}}}},"401":{"description":"Missing or invalid token"},"400":{"description":"`invalid_or_expired_token` (tampered, expired, already used or replaced by a newer link)"},"403":{"description":"`deletion_token_user_mismatch` or `staff_account_cannot_self_erase`"},"404":{"description":"`credentials_not_found` (the account has no credentials row)"},"429":{"description":"Rate limit exceeded (10/hour per student)"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/export":{"get":{"tags":["Users"],"summary":"Download all my personal data","description":"Returns every category of personal data the platform holds for the student as a JSON file download (`Content-Disposition: attachment`): account, profile, terms acceptance, sign-in methods, salary history, checklist progress, job applications, networking contacts and their interactions, interview processes and their rounds, and audit events. The schema is published below. `about.retention_notes` states what is held only temporarily or is not attributable to the account. Nothing in the export is logged.","operationId":"export_personal_data_api_v1_users_me_export_get","responses":{"200":{"description":"The personal data export file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalDataExportRead"}}}},"401":{"description":"Missing or invalid token"},"429":{"description":"Rate limit exceeded (5/hour per student)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me":{"get":{"tags":["Auth"],"summary":"Get current authenticated user","description":"Returns auth identity for the bearer token. Used by route guards.","operationId":"read_auth_me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthUserRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"Credentials not found for authenticated user"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/login":{"post":{"tags":["Auth"],"summary":"Login with email and password","description":"Authenticates the user and issues access + refresh tokens. The refresh token is set as an httpOnly cookie; the access token is returned in the body. Rejected if the account's email has not yet been verified. Signing in cancels a pending account deletion.","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"401":{"description":"Invalid credentials"},"403":{"description":"Email not verified"},"429":{"description":"Rate limit exceeded (10/min/IP)"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["Auth"],"summary":"Refresh access token","description":"Rotates the refresh token and issues a new access token. Requires the httpOnly refresh cookie. Browser requests are CSRF-protected via the Origin and Sec-Fetch-Site headers: cross-site requests and origins outside the allowlist are rejected.","operationId":"refresh_tokens_api_v1_auth_refresh_post","parameters":[{"name":"refresh","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"401":{"description":"Missing or invalid refresh token"},"403":{"description":"Cross-site request, disallowed origin, or token reuse detected"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["Auth","Auth"],"summary":"Logout and revoke tokens","description":"Revokes the access token and invalidates the entire refresh token family. Requires the httpOnly refresh cookie. Clears auth cookies. Browser requests are CSRF-protected via the Origin and Sec-Fetch-Site headers. An expired or missing refresh cookie is rejected — partial sessions are not allowed. Rejected if the refresh cookie belongs to a different user than the bearer token.","operationId":"logout_api_v1_auth_logout_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refresh","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh"}}],"responses":{"204":{"description":"Logged out successfully"},"401":{"description":"Missing or invalid access token or refresh cookie, or the refresh cookie belongs to a different user"},"403":{"description":"Cross-site request or disallowed origin"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["Auth","Auth"],"summary":"Register a new user account","description":"Creates a user and credentials with an Argon2id-hashed password and dispatches an email verification link. Always returns HTTP 200 with a neutral message regardless of whether the email was already registered (anti-enumeration): no tokens or cookies are ever issued, and the response is identical across all cases. Re-registering an existing but still-unverified email resends a fresh verification link instead of silently no-op'ing. Registration does not log the user in — access is gated behind email verification. Rate-limited to 5 requests per minute per IP, and shares the 3-per-minute-per-email verification-resend cap with /resend-verification.","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Request accepted (no account-existence signal)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPendingResponse"}}}},"422":{"description":"Validation error"},"429":{"description":"Rate limit exceeded (5/min/IP)"}}}},"/api/v1/auth/verify-email":{"post":{"tags":["Auth","Auth"],"summary":"Verify email address","description":"Validates the timed itsdangerous email verification token and marks the account as verified. Idempotent — calling it twice on an already-verified account is safe.","operationId":"verify_email_api_v1_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"204":{"description":"Email verified (or already verified)"},"401":{"description":"Invalid or expired verification token"},"404":{"description":"No credentials found for the user encoded in the token"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/resend-verification":{"post":{"tags":["Auth","Auth"],"summary":"Resend the email verification link","description":"Always returns 200 regardless of whether the email exists or is already verified (anti-enumeration). When the account exists and is unverified, a fresh verification link is dispatched via email. Rate-limited to 3 requests per email per minute and 10 per IP per minute.","operationId":"resend_verification_api_v1_auth_resend_verification_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Request accepted (no account-existence signal)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationResponse"}}}},"422":{"description":"Validation error"},"429":{"description":"Rate limit exceeded"}}}},"/api/v1/auth/forgot-password":{"post":{"tags":["Auth"],"summary":"Request a password reset email","description":"Always returns 200 regardless of whether the email exists (anti-enumeration). When the account exists and is active, a reset link is dispatched via email asynchronously, after the response is returned, so that response latency does not reveal whether the address is registered. Rate-limited to 3 requests per email address per minute and 10 requests per IP per minute.","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Request accepted (no account-existence signal)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordResponse"}}}},"422":{"description":"Validation error"},"429":{"description":"Rate limit exceeded"}}}},"/api/v1/auth/reset-password":{"post":{"tags":["Auth"],"summary":"Reset password using a reset token","description":"Validates the reset token, sets a new Argon2id password hash, and invalidates all existing sessions for the user (forces re-login everywhere). Reused, expired, or tampered tokens are rejected.","operationId":"reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Password reset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordResponse"}}}},"401":{"description":"Invalid, expired, or already-used reset token"},"422":{"description":"Validation error"}}}},"/api/v1/auth/magic-link":{"post":{"tags":["Auth"],"summary":"Request a passwordless sign-in link","description":"Always returns 200 regardless of whether the email exists (anti-enumeration). When the account exists and is active, a single-use sign-in link is dispatched via email. Rate-limited to 3 requests per email per minute and 10 per IP per minute. A short-lived, httpOnly binding cookie is set on every response, regardless of whether the account exists, to bind the eventual verification to this browser.","operationId":"request_magic_link_api_v1_auth_magic_link_post","parameters":[{"name":"ml_binding","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ml Binding"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequest"}}}},"responses":{"200":{"description":"Request accepted (no account-existence signal)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequestResponse"}}}},"422":{"description":"Validation error"},"429":{"description":"Rate limit exceeded"}}}},"/api/v1/auth/magic-link/verify":{"get":{"tags":["Auth"],"summary":"Verify a magic link and establish a session","description":"Validates a single-use, short-lived magic-link token, marks it consumed (replay is rejected), establishes a session (access token in the body, refresh cookie), and marks the user's email verified. Invalid, expired, or already-used tokens are rejected. The verification is also bound to the browser that requested the link via a binding cookie: opening the link in a different browser or device is always rejected, by design, even with a valid, unexpired token.","operationId":"verify_magic_link_api_v1_auth_magic_link_verify_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}},{"name":"ml_binding","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ml Binding"}}],"responses":{"200":{"description":"Session established","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkVerifyResponse"}}}},"401":{"description":"Invalid, expired, or already-used token, or the request came from a different browser than the one that requested the magic link (missing or mismatched binding cookie) — this is permanent, by design, not a transient error"},"422":{"description":"Missing or invalid token query parameter"}}}},"/api/v1/auth/oauth/{provider}/authorize":{"get":{"tags":["Auth"],"summary":"Begin an OAuth sign-in flow","description":"Issues a single-use CSRF state and redirects the browser to the provider's authorization endpoint. Unknown providers return 404. A short-lived, httpOnly binding cookie is also set alongside the state, so the callback can verify it's the same browser that started the flow.","operationId":"oauth_authorize_api_v1_auth_oauth__provider__authorize_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"oauth_binding","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Binding"}}],"responses":{"307":{"description":"Redirect to the provider authorization URL","content":{"application/json":{"schema":{}}}},"404":{"description":"Unknown OAuth provider"},"429":{"description":"Rate limit exceeded"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oauth/{provider}/callback":{"get":{"tags":["Auth"],"summary":"Complete an OAuth sign-in flow","description":"Validates the CSRF state and the browser-binding cookie set at the start of the flow, exchanges the code via PKCE, normalises the provider profile, and establishes a session via the refresh cookie before redirecting to the SPA. Tokens never appear in the URL. Policy and validation failures — including the provider itself reporting an error (e.g. the user declined consent), or a missing or mismatched binding cookie — redirect to the SPA with an `error` query parameter and set no cookies.","operationId":"oauth_callback_api_v1_auth_oauth__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"oauth_binding","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Binding"}}],"responses":{"302":{"description":"Redirect to the SPA (success sets cookies; failure carries ?error)","content":{"application/json":{"schema":{}}}},"404":{"description":"Unknown OAuth provider"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/salary":{"get":{"tags":["Salary"],"summary":"List salary submission options","description":"Returns the allowed enum values for the salary submission dropdowns: currency, seniority, remote type, and salary bands per currency.","operationId":"list_salary_options_api_v1_salary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalaryOptionsRead"}}}},"401":{"description":"Missing or invalid token"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/technologies":{"get":{"tags":["Technology"],"summary":"List or search approved technologies","description":"Returns the approved technology catalog for dropdown/typeahead population. Pass `q` to filter by a case-insensitive substring; `%` and `_` match literally, and search results are capped at 50, ordered by name. Unapproved, user-submitted technologies are never returned here.","operationId":"list_technologies_api_v1_technologies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TechnologyRead"},"title":"Response List Technologies Api V1 Technologies Get"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cv/uploads":{"post":{"tags":["CV"],"summary":"Create a signed CV upload ticket","description":"Returns a short-lived signed URL for uploading a CV PDF directly to storage. The API never proxies file bytes. The object key is a UUID — the original filename is never sent or stored.","operationId":"create_upload_api_v1_cv_uploads_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTicketRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"429":{"description":"Rate limit exceeded (20/min/IP)"},"503":{"description":"Upload service is temporarily unavailable"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/cv/adapt":{"post":{"tags":["CV"],"summary":"Queue a CV adaptation","description":"Validates the upload reference, the job description and the rewrite priorities, reserves the caller's quota, and queues the adaptation. Returns immediately with a task id to poll. Adaptation typically takes 10-30 seconds.\n\n`priorities` is required and must name at least one of `technical_skills`, `work_experience`, `keywords_ats` and `professional_summary`. A repeated value counts once, and the order sent is the order the rewrite weighs them in. They steer emphasis only — the number of model calls, the one-page budget and the grounding rules are identical whatever is selected, and a priority the CV evidences nothing for goes unserved rather than invented.","operationId":"queue_adaptation_api_v1_cv_adapt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__cv__adapters__api__schemas__AdaptCreate"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptTaskRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Invalid upload reference, job description, or priorities (empty, unknown value, or more entries than there are priorities)"},"429":{"description":"Weekly quota, concurrent job, or daily budget limit reached"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/cv/adapt/{task_id}":{"get":{"tags":["CV"],"summary":"Poll a CV adaptation","description":"Returns the adaptation's status: pending (queued or still running), succeeded, or failed. Once succeeded, `result` carries the adapted CV as structured JSON, `result.omitted` lists everything cut to fit the one-page budget with a reason for each, and `result.fits_page_budget` is false when the CV still runs long — a warning to show the candidate, not an error. `result.original` is the same CV before any rewrite ran — read off the upload and cut to the page budget, never model-written — so a client can show what changed. Both sides carry the same shape and the same `result.labels`. An item in `result.original` with no counterpart in `result.profile` was cut to make the CV fit and is listed in `result.omitted`; it is not a rewrite deleting something. When the status is `failed`, `error` is a message written for the candidate and `error_code` is its stable machine-readable form — branch on the code, never on the prose. `posting_language_unsupported` means the posting is in a language other than English or Spanish and no CV was produced; the weekly slot is refunded. A caller can only poll their own adaptations — an unknown, expired, or someone else's task id returns 404. Results are available for one hour.","operationId":"get_adaptation_api_v1_cv_adapt__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__cv__adapters__api__schemas__AdaptResultRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"Unknown or expired task"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cv/pdf":{"post":{"tags":["CV"],"summary":"Render a CV as a PDF","description":"Renders the supplied CV against the DeveloperOS™ CV template and returns a PDF with a real text layer for ATS parsers. The CV is taken from the request body rather than a stored result, so a student's inline edits are honoured. Section headings come from the body too, so the document is rendered in whatever language the adaptation produced. The template is laid out for a single page, and the adaptation pipeline already fits the CV to one — but a CV the student has expanded past it is still rendered and returned rather than refused. The `X-CV-Pages` response header carries how many pages it came out to. Nothing is stored and no CV content is logged.","operationId":"render_pdf_api_v1_cv_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__cv__adapters__api__schemas__PdfCreate"}}},"required":true},"responses":{"200":{"description":"The rendered CV","headers":{"X-CV-Pages":{"description":"Pages the CV rendered to. Greater than 1 means the student's edits have outgrown the one-page template — a warning to show them, not an error.","schema":{"type":"integer"}}},"content":{"application/pdf":{}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Malformed CV"},"429":{"description":"Rate limit exceeded (30/min/IP)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/cv/quota":{"get":{"tags":["CV"],"summary":"Get the caller's weekly CV adaptation quota","description":"Returns how many CV adaptations the caller may run per ISO week (`limit`), how many they have used this week (`used`), and when the count resets (`resets_at`, Monday 00:00 UTC). Read-only: it never reserves a slot. `used` can go down when a failed adaptation is refunded, so re-fetch after every adaptation attempt rather than adjusting the count locally.","operationId":"get_quota_api_v1_cv_quota_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"503":{"description":"Quota service is temporarily unavailable"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/cover-letters/adapt":{"post":{"tags":["Cover Letters"],"summary":"Queue a cover letter adaptation","description":"Validates the draft and job description, reserves the caller's quota, and queues the rewrite. Returns immediately with a task id to poll. Tailoring typically takes 10-30 seconds. The draft and the posting travel to the worker by Redis key, never as task arguments.","operationId":"queue_adaptation_api_v1_cover_letters_adapt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__cover_letter__adapters__api__schemas__AdaptCreate"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptTaskRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Blank or over-long draft or job description, or an unknown tone or priority"},"429":{"description":"Weekly quota, concurrent job, or daily budget limit reached"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/cover-letters/adapt/{task_id}":{"get":{"tags":["Cover Letters"],"summary":"Poll a cover letter adaptation","description":"Returns the adaptation's status: pending (queued or still running), succeeded, or failed. Once succeeded, `result.original` carries the draft sliced verbatim from the caller's own text, `result.adapted` the tailored letter, `result.suggestions` what the candidate should add themselves, and `result.fits_length_budget` is false when the letter still runs long — a warning to show the candidate, not an error. A caller can only poll their own adaptations — an unknown, expired, or someone else's task id returns 404. Results are available for one hour.","operationId":"get_adaptation_api_v1_cover_letters_adapt__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__cover_letter__adapters__api__schemas__AdaptResultRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"Unknown or expired task"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cover-letters/pdf":{"post":{"tags":["Cover Letters"],"summary":"Render a cover letter as a PDF","description":"Renders the supplied cover letter against the DeveloperOS™ template and returns a PDF with a real text layer for ATS parsers. The letter is taken from the request body rather than a stored result, so a user's inline edits are honoured. The template is laid out for a single page, but a letter the user has expanded past it is still rendered and returned rather than refused — the `X-Cover-Letter-Pages` response header carries how many pages it came out to, so the client can warn that the letter no longer fits on one. Nothing is stored and nothing is logged.","operationId":"render_pdf_api_v1_cover_letters_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__cover_letter__adapters__api__schemas__PdfCreate"}}},"required":true},"responses":{"200":{"description":"The rendered letter","headers":{"X-Cover-Letter-Pages":{"description":"Pages the letter rendered to. Greater than 1 means the letter has outgrown the one-page template — a warning to show the candidate, not an error.","schema":{"type":"integer"}}},"content":{"application/pdf":{}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Malformed letter"},"429":{"description":"Rate limit exceeded (30/min/IP)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/cover-letters/quota":{"get":{"tags":["Cover Letters"],"summary":"Get the caller's weekly cover letter quota","description":"Returns how many cover letter adaptations the caller may run per ISO week (`limit`), how many they have used this week (`used`), and when the count resets (`resets_at`, Monday 00:00 UTC). Read-only: it never reserves a slot. `used` can go down when a failed adaptation is refunded, so re-fetch after every adaptation attempt rather than adjusting the count locally.","operationId":"get_quota_api_v1_cover_letters_quota_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"503":{"description":"Quota service is temporarily unavailable"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/linkedin/uploads":{"post":{"tags":["LinkedIn"],"summary":"Create a signed LinkedIn profile upload ticket","description":"Returns a short-lived signed URL for uploading a LinkedIn profile PDF export directly to storage. The API never proxies file bytes. The object key is a UUID — the original filename is never sent or stored. Export your profile from LinkedIn via More > Save to PDF.","operationId":"create_upload_api_v1_linkedin_uploads_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTicketRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"429":{"description":"Rate limit exceeded (20/min/IP)"},"503":{"description":"Upload service is temporarily unavailable"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/linkedin/analyses":{"post":{"tags":["LinkedIn"],"summary":"Queue a LinkedIn profile analysis","description":"Validates the upload reference, reserves the caller's quota, and queues the analysis. Returns immediately with a task id to poll. Analysis typically takes 5-15 seconds. `job_description` is optional and sharpens the score: with a role pasted, the keyword-bearing checks resolve against that role's skills instead of against the profile's own, and the recommendation copy tailors itself to it. It adds no new points — the same 100-point scale applies either way, so two scores for one profile stay comparable. Blank or whitespace-only is treated as absent.","operationId":"queue_analysis_api_v1_linkedin_analyses_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisCreate"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisTaskRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Invalid upload reference"},"429":{"description":"Weekly quota, concurrent job, or daily budget limit reached"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/linkedin/analyses/{task_id}":{"get":{"tags":["LinkedIn"],"summary":"Poll a LinkedIn profile analysis","description":"Returns the analysis's status: pending (queued or still running), succeeded, or failed. Once succeeded, `result` carries the 0-100 score and its band, a completeness percentage covering how much of the profile is filled in at all, the skills detected against the technology catalog, and up to five prioritised recommendations. `result.narrative` is null until the narrative slice ships. A caller can only poll their own analyses — an unknown, expired, or someone else's task id returns 404. Results are available for one hour.","operationId":"get_analysis_api_v1_linkedin_analyses__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisResultRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"Unknown or expired task"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/linkedin/quota":{"get":{"tags":["LinkedIn"],"summary":"Get the caller's weekly LinkedIn analysis quota","description":"Returns how many LinkedIn profile analyses the caller may run per ISO week (`limit`), how many they have used this week (`used`), and when the count resets (`resets_at`, Monday 00:00 UTC). Read-only: it never reserves a slot. `used` can go down when a failed analysis is refunded, so re-fetch after every analysis attempt rather than adjusting the count locally.","operationId":"get_quota_api_v1_linkedin_quota_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"503":{"description":"Quota service is temporarily unavailable"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/calendar/events":{"get":{"tags":["Calendar"],"summary":"List live programme sessions","description":"Returns live sessions from the shared programme calendar, oldest first. The calendar is shared by the whole cohort, so every student sees the same sessions.\n\nTimes are UTC; `source_timezone` carries the IANA zone each session was scheduled in so the client can convert and label it. Pass `from`/`to` to restrict the window — both are inclusive dates, and `to` covers the whole day named. Cancelled sessions are never returned.\n\n**There is no default window.** Omitting `from` returns the calendar from its very first session, so the first page is the oldest sessions on record, not the upcoming ones. That default is deliberate — finished sessions carry `recording_url` and are meant to be browsable — but a client showing what is coming up should always pass `from`.\n\n**An empty calendar can mean the membership is paused.** While the enrolment is paused (or absent) the response is a 200 with no items and `total` 0, whatever the window. The client can tell the two apart through the `enrollment` block on `GET /users/me/profile`.","operationId":"list_events_api_v1_calendar_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Only sessions starting on or after this date (UTC).","title":"From"},"description":"Only sessions starting on or after this date (UTC)."},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Only sessions starting on or before this date (UTC).","title":"To"},"description":"Only sessions starting on or before this date (UTC)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum items to return (1-200).","default":50,"title":"Limit"},"description":"Maximum items to return (1-200)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CalendarEventRead_"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Inverted date range, or out-of-range pagination parameters"}}}},"/api/v1/calendar/events/next":{"get":{"tags":["Calendar"],"summary":"Get the next or currently running session","description":"Returns the session happening right now if there is one, otherwise the soonest upcoming session. Powers the countdown banner.\n\n`start_time` is UTC so the client can count down to it, and `is_live` is judged against server time. When no session is scheduled the response is `{\"event\": null}` with status 200 — an empty calendar is a normal state, not an error.\n\n**A null event can also mean the membership is paused.** While the enrolment is paused (or absent) the response is `{\"event\": null}` with status 200, even when sessions are scheduled.","operationId":"get_next_session_api_v1_calendar_events_next_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NextSessionResponse"}}}},"401":{"description":"Missing or invalid token"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/calendar/events/{event_id}/join":{"get":{"tags":["Calendar"],"summary":"Resolve a session's join URL","description":"Resolves one live session to its real Zoom or Meet URL. This is what the portal's `/sessions/{event_id}/join` page calls after a student taps the join link in their subscribed calendar — the `.ics` feed never carries the real meeting URL, only this portal link, so this endpoint is where it is finally revealed, behind real authentication.\n\nA past or cancelled session still resolves if it has a published join URL — a dead Zoom link is harmless, so there is no special-casing for either.\n\n**Programme content, refused while enrolment is paused** — unlike `GET /calendar/events` and `GET /calendar/events/next`, which degrade to an empty response instead.","operationId":"get_join_url_api_v1_calendar_events__event_id__join_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionJoinRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment paused"},"404":{"description":"Unknown event, or no joining link published for it"},"422":{"description":"Malformed event id"}}}},"/api/v1/calendar/subscription":{"get":{"tags":["Calendar"],"summary":"Get the student's iCal subscription links","description":"Returns the student's personal calendar feed as three equivalent links: `feed_url` (plain HTTPS, for copy-paste into any calendar app), `webcal_url` (the same address under the `webcal://` scheme, which most calendar apps — notably Apple's — subscribe to in one tap), and `google_subscribe_url` (Google Calendar's own 'add by URL' deep link, built from `webcal_url`).\n\nThe student's first call here issues their feed token; every call after returns the same links unchanged. The token identifies the student to the feed endpoint on every fetch — it is not a secret protecting private content, since the feed body is the same shared programme calendar every active student sees.\n\n**Works regardless of enrolment status**, like the account and GDPR routes: a paused student must still be able to manage their own subscription link.","operationId":"get_subscription_api_v1_calendar_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarSubscriptionRead"}}}},"401":{"description":"Missing or invalid token"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/calendar/subscription/rotate":{"post":{"tags":["Calendar"],"summary":"Rotate the student's iCal subscription link","description":"Issues a fresh feed token, immediately invalidating every link previously returned by `GET /calendar/subscription` or an earlier rotate — a calendar app still polling the old `feed_url` stops being able to resolve it. Use this if a link was shared somewhere it shouldn't have been.\n\nWorks even for a student who never called `GET /calendar/subscription` first — a token is issued either way — and regardless of enrolment status, like that endpoint.","operationId":"rotate_subscription_api_v1_calendar_subscription_rotate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarSubscriptionRead"}}}},"401":{"description":"Missing or invalid token"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/calendar/feed/{token}.ics":{"get":{"tags":["Calendar"],"summary":"Download the student's iCal subscription feed","description":"Unauthenticated: the token in the path is the credential, issued by `GET /calendar/subscription`. Returns the student's live-session calendar as `text/calendar`, covering the past 90 days plus every upcoming session. Cancelled sessions are included as `STATUS:CANCELLED` so a subscribed client removes them.\n\nJoining details never appear here — `DESCRIPTION`, `URL` and `LOCATION` only ever carry a link into the portal, never anything copied from the source event's own description. See `GET /calendar/events` for the full description, which sits behind real authentication.\n\n**Works while enrolment is paused**, like the two subscription-management routes: the response is a valid, empty calendar, never an error, so a subscribed client's feed quietly empties rather than breaking.\n\nSupports conditional requests: send back the `ETag` from a previous response as `If-None-Match` to get a `304` with no body.\n\n`Cache-Control: private, max-age=3600` — not `no-store`, unlike this project's other personal-data routes: the body carries no personal data by construction (it is byte-identical for every active student), and a subscription has to be cacheable client-side to function as one at all.","operationId":"get_feed_api_v1_calendar_feed__token__ics_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"The iCalendar feed","content":{"text/calendar":{}}},"304":{"description":"`If-None-Match` matched the current `ETag`; no body sent"},"404":{"description":"Unknown or revoked subscription link"},"429":{"description":"Rate limit exceeded"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/checklist":{"get":{"tags":["Checklist"],"summary":"Get the student's implementation checklist","description":"Returns the whole programme tree — levels, tasks, resources and recommended reading — resolved to one language, with every percentage the page renders already computed.\n\nThe language comes from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported, English is the default and the per-field fallback), never from a query parameter. Levels, tasks, resources and books are each ordered by their authored position.\n\nA student who has never opened the checklist is enrolled on the default programme by this call. The `enrollment` dates come from the client's enrolment record: `started_on` is when their enrolment began, and `target_on` is seeded at signup from the default programme's duration and staff can edit it in the admin. `target_on` is null when there was no default programme at signup or the programme has no duration. The `enrollment` object is always present.\n\nDeactivating the default programme in the admin returns 404 here for every student at once, by design — a retired programme is not served. There is no partial or maintenance state.\n\nA client whose enrolment is paused gets an empty programme — `levels` is empty and the summary is all zeros — and is not enrolled on the programme, but `enrollment` still carries the `started_on` and `target_on` of their paused enrolment. Their completions are kept and return on resume. A client with no enrolment record at all (an anomaly) gets the same empty programme, with `started_on` set to today (UTC) and `target_on` null.","operationId":"get_checklist_api_v1_checklist_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No active default checklist template is configured"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/checklist/items/{item_id}/completion":{"put":{"tags":["Checklist"],"summary":"Set a checklist task's completion","description":"Marks one task complete or incomplete and echoes the recomputed level progress and overall summary, so a tick never needs a refetch.\n\nThis is a set, not a toggle: sending `true` twice leaves the original completion timestamp untouched, so two devices cannot corrupt each other and a retried request is safe. Sending `false` removes the completion.\n\nA task the student's programme does not contain returns 404, not 403 — a 403 would confirm the task exists. Enrolls the student if they have none, so a tick works even when the checklist was never loaded.","operationId":"set_item_completion_api_v1_checklist_items__item_id__completion_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemCompletionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemCompletionRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"Unknown task, or a task outside the student's checklist"},"422":{"description":"Malformed task id or body"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/progress/summary":{"get":{"tags":["Progress"],"summary":"Get the student's home progress summary","description":"Rolls up the student's implementation checklist into the shape the Home page needs: overall completion, each level's progress with sequential lock state, the current level, and the next incomplete task.\n\nA level is locked until every level before it is complete. A level with some tasks already ticked out of order is still reported locked if an earlier level isn't finished yet.\n\nThe language comes from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported), never from a query parameter — matching `GET /checklist`.\n\nAn active student who has never opened the checklist is enrolled on the default programme by this call, exactly like `GET /checklist`. A student with no enrolment, or a paused one, is answered before the checklist is touched, so nothing is enrolled.\n\n`enrollment_status` is `active` or `paused`, or null when the student has no enrolment. While it is `paused` (or null) the programme is on hold: `overall` is zeroed, `levels` is empty and `next_item` is null. That is a hold, not lost progress — nothing is deleted and it all returns on resume. Unlike the mutating routes this one is not refused, so the Home page can say so.\n\nTracker activity (applications, networking, interviews) is not included yet — the trackers module has not shipped.","operationId":"get_summary_api_v1_progress_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeSummaryRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No active default checklist template is configured"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/legal/current":{"get":{"tags":["Legal"],"summary":"Get the current legal documents bundle","description":"Returns the legal bundle a student accepts at onboarding: its version and the URL of each document (privacy policy, AI acceptable-use policy, client-portal addendum). Only the most recently published bundle is returned. Public: the documents are shown before the student has an account.","operationId":"get_current_legal_bundle_api_v1_legal_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalBundleRead"}}}},"404":{"description":"No legal bundle has been published"}}}},"/api/v1/trackers/applications":{"get":{"tags":["Trackers"],"summary":"List my job applications","description":"Returns one page of the student's tracker, newest first, with `total` so the table can show \"1-50 of 214\". Ordered by creation rather than last edit, so a row keeps its place while it is being edited; ties are broken by id, so pages never overlap or skip a row.","operationId":"list_applications_api_v1_trackers_applications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum items to return (1-200).","default":50,"title":"Limit"},"description":"Maximum items to return (1-200)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ApplicationRead_"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Out-of-range pagination parameters"}}},"post":{"tags":["Trackers"],"summary":"Add a job application","description":"Creates one row in the student's tracker and returns it. Only `company` and `role` are required; `status` defaults to `wishlist`, and every other field may be filled in later with PATCH. Unknown fields are rejected.\n\n`contact_id` links the application to one of the student's own networking contacts.\n\n`company` is normalised and resolved against the shared company catalog; the response carries the catalog name and `company_id`.","operationId":"create_application_api_v1_trackers_applications_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Missing or invalid field, an unknown field, or a `contact_id` that is not one of the student's contacts"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/applications/{application_id}":{"get":{"tags":["Trackers"],"summary":"Get one job application","description":"Returns one application from the student's tracker.","operationId":"get_application_api_v1_trackers_applications__application_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such application for this student. Another student's application returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed application id"}}},"patch":{"tags":["Trackers"],"summary":"Update a job application","description":"Partial update, built for inline cell edits: send only the fields that changed. An omitted field is left as it is; `null` (or an empty string, for text fields) clears an optional one. An empty body changes nothing and returns the row as it stands. Returns the whole updated row. `company`, `role` and `status` can be changed but not cleared.\n\n`company` is normalised and resolved against the shared company catalog; the response carries the catalog name and `company_id`.","operationId":"update_application_api_v1_trackers_applications__application_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such application for this student. Another student's application returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed id, invalid field, a required field set to null, an unknown field, or a `contact_id` that is not one of the student's contacts"},"429":{"description":"Rate limit exceeded (120/min per student)"}}},"delete":{"tags":["Trackers"],"summary":"Delete a job application","description":"Permanently removes one application from the student's tracker.","operationId":"delete_application_api_v1_trackers_applications__application_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such application for this student. Another student's application returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed application id"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/contacts":{"get":{"tags":["Trackers"],"summary":"List my networking contacts","description":"Returns one page of the student's networking contacts, newest first, with `total`. Ordered by creation rather than last edit, so a row keeps its place while it is being edited; ties are broken by id. Each contact carries `last_contact`, the date of its most recent interaction.","operationId":"list_contacts_api_v1_trackers_contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum items to return (1-200).","default":50,"title":"Limit"},"description":"Maximum items to return (1-200)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContactRead_"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Out-of-range pagination parameters"}}},"post":{"tags":["Trackers"],"summary":"Add a networking contact","description":"Creates one contact in the student's networking tracker and returns it. Only `name` is required; every other field may be filled in later with PATCH. Unknown fields are rejected.\n\n`company` is normalised and resolved against the shared company catalog; the response carries the catalog name and `company_id`.","operationId":"create_contact_api_v1_trackers_contacts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Missing or invalid field, or an unknown field"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/contacts/{contact_id}":{"get":{"tags":["Trackers"],"summary":"Get one networking contact","description":"Returns one contact from the student's networking tracker.","operationId":"get_contact_api_v1_trackers_contacts__contact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such contact for this student. Another student's contact returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed contact id"}}},"patch":{"tags":["Trackers"],"summary":"Update a networking contact","description":"Partial update, built for inline cell edits: send only the fields that changed. An omitted field is left as it is; `null` (or an empty string, for text fields) clears an optional one. An empty body changes nothing and returns the row as it stands. Returns the whole updated row. `name` can be changed but not cleared; `tags` replaces the whole list, and `[]` clears it.\n\n`company` is normalised and resolved against the shared company catalog; the response carries the catalog name and `company_id`.","operationId":"update_contact_api_v1_trackers_contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such contact for this student. Another student's contact returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed id, invalid field, a required field set to null, or an unknown field"},"429":{"description":"Rate limit exceeded (120/min per student)"}}},"delete":{"tags":["Trackers"],"summary":"Delete a networking contact","description":"Permanently removes one contact and every interaction logged against it. Job applications linked to the contact are kept, with `contact_id` cleared.","operationId":"delete_contact_api_v1_trackers_contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such contact for this student. Another student's contact returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed contact id"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/contacts/{contact_id}/interactions":{"get":{"tags":["Trackers"],"summary":"List a contact's interactions","description":"Returns one page of the interactions logged against one of the student's contacts, most recent first (by `occurred_on`, then by when it was logged), with `total`.","operationId":"list_interactions_api_v1_trackers_contacts__contact_id__interactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum items to return (1-200).","default":50,"title":"Limit"},"description":"Maximum items to return (1-200)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_InteractionRead_"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such contact for this student. Another student's contact returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed contact id or out-of-range pagination parameters"}}},"post":{"tags":["Trackers"],"summary":"Log an interaction with a contact","description":"Logs one call, meeting or message against one of the student's contacts and returns it. `occurred_on` and `type` are required. Unknown fields are rejected.","operationId":"create_interaction_api_v1_trackers_contacts__contact_id__interactions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such contact for this student. Another student's contact returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed contact id, missing or invalid field, or an unknown field"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/contacts/{contact_id}/interactions/{interaction_id}":{"get":{"tags":["Trackers"],"summary":"Get one interaction","description":"Returns one interaction logged against one of the student's contacts.","operationId":"get_interaction_api_v1_trackers_contacts__contact_id__interactions__interaction_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"interaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interaction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such contact, or no such interaction logged against it, for this student. Another student's rows return 404 too."},"422":{"description":"Malformed contact or interaction id"}}},"patch":{"tags":["Trackers"],"summary":"Update an interaction","description":"Partial update, built for inline cell edits: send only the fields that changed. An omitted field is left as it is; `null` (or an empty string, for text fields) clears an optional one. An empty body changes nothing and returns the row as it stands. Returns the whole updated row. `occurred_on` and `type` can be changed but not cleared. An interaction cannot be moved to another contact.","operationId":"update_interaction_api_v1_trackers_contacts__contact_id__interactions__interaction_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"interaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interaction Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such contact, or no such interaction logged against it, for this student. Another student's rows return 404 too."},"422":{"description":"Malformed id, invalid field, a required field set to null, or an unknown field"},"429":{"description":"Rate limit exceeded (120/min per student)"}}},"delete":{"tags":["Trackers"],"summary":"Delete an interaction","description":"Permanently removes one interaction from a contact's log.","operationId":"delete_interaction_api_v1_trackers_contacts__contact_id__interactions__interaction_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"interaction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interaction Id"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such contact, or no such interaction logged against it, for this student. Another student's rows return 404 too."},"422":{"description":"Malformed contact or interaction id"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/interview-processes":{"get":{"tags":["Trackers"],"summary":"List my interview processes","description":"Returns one page of the student's interview processes, newest first, with `total`. Ordered by creation rather than last edit; ties are broken by id, so pages never overlap or skip a row. Each process carries `round_count`.\n\n`application_id` narrows the list to one application's processes. An application that is not the student's, or does not exist, gives an empty page rather than a 404.","operationId":"list_interview_processes_api_v1_trackers_interview_processes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only the processes for this job application.","title":"Application Id"},"description":"Only the processes for this job application."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum items to return (1-200).","default":50,"title":"Limit"},"description":"Maximum items to return (1-200)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_InterviewProcessRead_"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Malformed `application_id` or out-of-range pagination parameters"}}},"post":{"tags":["Trackers"],"summary":"Start an interview process","description":"Creates an interview process for one of the student's job applications and returns it. Only `application_id` is required; `status` defaults to `in_progress`. An application may have several processes; `title` tells them apart. Unknown fields are rejected.","operationId":"create_interview_process_api_v1_trackers_interview_processes_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewProcessCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewProcessRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Missing or invalid field, an unknown field, or an `application_id` that is not one of the student's applications"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/interview-processes/{process_id}":{"get":{"tags":["Trackers"],"summary":"Get one interview process","description":"Returns one of the student's interview processes, with `round_count`.","operationId":"get_interview_process_api_v1_trackers_interview_processes__process_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewProcessRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such interview process for this student. Another student's process returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed process id"}}},"patch":{"tags":["Trackers"],"summary":"Update an interview process","description":"Partial update, built for inline cell edits: send only the fields that changed. An omitted field is left as it is; `null` (or an empty string, for text fields) clears an optional one. An empty body changes nothing and returns the row as it stands. Returns the whole updated row. `status` can be changed but not cleared. `application_id` is not accepted: a process cannot move to another application.","operationId":"update_interview_process_api_v1_trackers_interview_processes__process_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewProcessUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewProcessRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such interview process for this student. Another student's process returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed id, invalid field, a required field set to null, or an unknown field (including `application_id`)"},"429":{"description":"Rate limit exceeded (120/min per student)"}}},"delete":{"tags":["Trackers"],"summary":"Delete an interview process","description":"Permanently removes one interview process and every round in it.","operationId":"delete_interview_process_api_v1_trackers_interview_processes__process_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such interview process for this student. Another student's process returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed process id"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/interview-processes/{process_id}/rounds":{"get":{"tags":["Trackers"],"summary":"List a process's interview rounds","description":"Returns one page of the rounds in one of the student's interview processes, in the order they happened: by `occurred_on`, rounds with no date last, then in the order they were added. Includes `total`.","operationId":"list_interview_rounds_api_v1_trackers_interview_processes__process_id__rounds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum items to return (1-200).","default":50,"title":"Limit"},"description":"Maximum items to return (1-200)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_InterviewRoundRead_"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such interview process for this student. Another student's process returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed process id or out-of-range pagination parameters"}}},"post":{"tags":["Trackers"],"summary":"Add an interview round","description":"Adds one round to one of the student's interview processes and returns it. Only `round_type` is required; `outcome` defaults to `pending`. `notes`, `questions` and `takeaways` are Markdown, stored and returned exactly as sent. `contact_id` links the round to one of the student's own networking contacts. Unknown fields are rejected.","operationId":"create_interview_round_api_v1_trackers_interview_processes__process_id__rounds_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRoundCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRoundRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such interview process for this student. Another student's process returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed process id, missing or invalid field, an unknown field, or a `contact_id` that is not one of the student's contacts"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/trackers/interview-processes/{process_id}/rounds/{round_id}":{"get":{"tags":["Trackers"],"summary":"Get one interview round","description":"Returns one round from one of the student's interview processes.","operationId":"get_interview_round_api_v1_trackers_interview_processes__process_id__rounds__round_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}},{"name":"round_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Round Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRoundRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such interview process, or no such round in it, for this student. Another student's rows return 404 too."},"422":{"description":"Malformed process or round id"}}},"patch":{"tags":["Trackers"],"summary":"Update an interview round","description":"Partial update, built for inline cell edits: send only the fields that changed. An omitted field is left as it is; `null` (or an empty string, for text fields) clears an optional one. An empty body changes nothing and returns the row as it stands. Returns the whole updated row. `round_type` and `outcome` can be changed but not cleared. A round cannot be moved to another process.","operationId":"update_interview_round_api_v1_trackers_interview_processes__process_id__rounds__round_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}},{"name":"round_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Round Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRoundUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRoundRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such interview process, or no such round in it, for this student. Another student's rows return 404 too."},"422":{"description":"Malformed id, invalid field, a required field set to null, an unknown field, or a `contact_id` that is not one of the student's contacts"},"429":{"description":"Rate limit exceeded (120/min per student)"}}},"delete":{"tags":["Trackers"],"summary":"Delete an interview round","description":"Permanently removes one round from an interview process.","operationId":"delete_interview_round_api_v1_trackers_interview_processes__process_id__rounds__round_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}},{"name":"round_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Round Id"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such interview process, or no such round in it, for this student. Another student's rows return 404 too."},"422":{"description":"Malformed process or round id"},"429":{"description":"Rate limit exceeded (120/min per student)"}}}},"/api/v1/english-interviews/offers":{"post":{"tags":["English Interviews"],"summary":"Create an interview-practice offer","description":"Creates the job offer a student practises against and returns it. `mode` selects the body: `real` carries the pasted posting (`raw_text`), its `extracted` job specification and the `stages` to practise; `generic` carries a `role`, optional `seniority` and `stack`, and the `stages`, with no posting. `stages` holds one to four distinct interview stages, in practice order. Unknown fields are rejected.\n\nThe new offer has no sessions yet, so its progress is empty and `next_stage` is the first of its `stages`.","operationId":"create_offer_api_v1_english_interviews_offers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RealOfferCreate"},{"$ref":"#/components/schemas/GenericOfferCreate"}],"discriminator":{"propertyName":"mode","mapping":{"real":"#/components/schemas/RealOfferCreate","generic":"#/components/schemas/GenericOfferCreate"}},"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Missing or invalid field, an unknown field, a repeated stage, or raw text on a generic offer"},"429":{"description":"Rate limit exceeded (60/min per student)"}}},"get":{"tags":["English Interviews"],"summary":"List my interview-practice offers","description":"Returns one page of the student's offers, newest first, with `total` so the list can show \"1-20 of 47\". Only active offers are returned unless `status` says otherwise. Each item carries its derived progress: the stages with a report, the next stage to practise, the mean score and the last session time.\n\nAn offer whose stored extraction can no longer be read stays listed and operable: `title`, `company` and `extracted` are then null.","operationId":"list_offers_api_v1_english_interviews_offers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OfferStatus","default":"active"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum items to return (1-200).","default":50,"title":"Limit"},"description":"Maximum items to return (1-200)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_OfferSummaryRead_"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Out-of-range pagination parameters"}}}},"/api/v1/english-interviews/offers/{offer_id}":{"get":{"tags":["English Interviews"],"summary":"Get one interview-practice offer","description":"Returns one offer with the stored posting, its extraction and its derived progress.\n\nAn offer whose stored extraction can no longer be read stays listed and operable: `title`, `company` and `extracted` are then null.","operationId":"get_offer_api_v1_english_interviews_offers__offer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such offer for this student. Another student's offer returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed offer id"}}}},"/api/v1/english-interviews/offers/{offer_id}/cv-uploads":{"post":{"tags":["English Interviews"],"summary":"Create a signed CV upload ticket","description":"Returns a short-lived signed URL for uploading a CV directly to storage, to attach afterwards with `PUT .../cv`. The API never proxies file bytes. The object key is a UUID plus the chosen extension — the original filename is never sent or stored.","operationId":"create_cv_upload_api_v1_english_interviews_offers__offer_id__cv_uploads_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CvUploadCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CvUploadTicketRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Malformed offer id"},"429":{"description":"Rate limit exceeded (20/min per student)"},"503":{"description":"Upload service is temporarily unavailable"}}}},"/api/v1/english-interviews/offers/{offer_id}/cv":{"put":{"tags":["English Interviews"],"summary":"Attach a CV to an interview-practice offer","description":"Validates that the upload reference belongs to the caller, downloads the uploaded file, extracts its text and screens it, then persists it as the offer's CV — replacing any CV already attached. An `object_key` naming another student's upload is refused identically to one that never existed, so its existence is never confirmed.","operationId":"attach_cv_api_v1_english_interviews_offers__offer_id__cv_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachCvCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferCvRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such offer for this student. Another student's offer returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed object_key, an object_key not owned by the caller (refused identically to an unknown one), or the uploaded file could not be read or was rejected by the content screen"},"409":{"description":"The offer is archived (`offer_archived`)"},"429":{"description":"Weekly quota, concurrent upload, or daily budget limit reached, or rate limit exceeded (20/min per student)"},"503":{"description":"CV ingestion is not configured (`english_interviews_disabled`)"}}},"get":{"tags":["English Interviews"],"summary":"Get the CV attached to an interview-practice offer","description":"Returns the offer's attached CV, or null if none has been attached yet. Read-only, with no enrolment gate.","operationId":"get_offer_cv_api_v1_english_interviews_offers__offer_id__cv_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OfferCvRead"},{"type":"null"}],"title":"Response Get Offer Cv Api V1 English Interviews Offers  Offer Id  Cv Get"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such offer for this student. Another student's offer returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed offer id"}}}},"/api/v1/english-interviews/offers/{offer_id}/archival":{"post":{"tags":["English Interviews"],"summary":"Archive an interview-practice offer","description":"Moves the offer out of the default list and stamps `archived_at`. Idempotent: archiving an offer that is already archived returns it unchanged. Its sessions and reports are kept, and `reactivation` brings it back.","operationId":"archive_offer_api_v1_english_interviews_offers__offer_id__archival_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such offer for this student. Another student's offer returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed offer id"},"429":{"description":"Rate limit exceeded (60/min per student)"}}}},"/api/v1/english-interviews/offers/{offer_id}/reactivation":{"post":{"tags":["English Interviews"],"summary":"Reactivate an archived interview-practice offer","description":"Returns an archived offer to the default list and clears `archived_at`. Idempotent: reactivating an offer that is already active returns it unchanged.","operationId":"reactivate_offer_api_v1_english_interviews_offers__offer_id__reactivation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such offer for this student. Another student's offer returns 404 too, so its existence is never confirmed."},"422":{"description":"Malformed offer id"},"429":{"description":"Rate limit exceeded (60/min per student)"}}}},"/api/v1/english-interviews/offer-extractions":{"post":{"tags":["English Interviews"],"summary":"Queue the reading of a pasted job posting","description":"Reserves one of the student's weekly posting reads and queues the extraction of `raw_text` into a job specification. Returns immediately with a task id to poll at `offer-extractions/{task_id}`. Reading typically takes a few seconds. `raw_text` must be 20 to 20,000 characters and may not contain NUL characters; an unusable paste is rejected before any quota is reserved. A student can have one posting being read at a time and read 40 a week.","operationId":"queue_offer_extraction_api_v1_english_interviews_offer_extractions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferExtractionCreate"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferExtractionTaskRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"422":{"description":"Missing, too short, too long or NUL-containing `raw_text`, or an unknown field"},"429":{"description":"Weekly quota, concurrent job, or daily budget limit reached"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/english-interviews/offer-extractions/{task_id}":{"get":{"tags":["English Interviews"],"summary":"Poll the reading of a pasted job posting","description":"Returns the extraction's status: `pending` (queued or still running), `succeeded` or `failed`. Once succeeded, `result` carries the job specification read from the posting. A caller can only poll their own extractions: an unknown, expired or someone else's task id returns 404. Results are available for one hour.","operationId":"get_offer_extraction_api_v1_english_interviews_offer_extractions__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferExtractionResultRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"Unknown or expired task. Another student's task returns 404 too, so its existence is never confirmed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/english-interviews/voice-tickets":{"post":{"tags":["English Interviews"],"summary":"Mint a one-time voice-interview ticket","description":"Issues a ticket the browser hands to the voice agent at `ws_url` to start a spoken practice session for one stage of one offer. The ticket is single-use and short-lived (`expires_at`); `ws_url` is returned bare, so send `ticket` to the agent as the protocol specifies and do not append it to the URL yourself. Minting reserves nothing: the weekly session is counted when the agent redeems the ticket.\n\nThe language of the post-session report and coaching asides is read from the `X-Language` header, falling back to `Accept-Language`. An unsupported value resolves to the default language rather than failing.\n\nChecks run in this order and the first failure is returned: the feature is available (503), the offer is the student's (404), it is not archived (409 `offer_archived`), it is still practicable (409 `offer_not_practicable`), the stage belongs to it (422 `session_type_not_in_offer`), no other session is active (409 `session_already_active`), this week's allowance is not spent (403 `weekly_quota_exhausted`).","operationId":"create_voice_ticket_api_v1_english_interviews_voice_tickets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTicketCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTicketRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent (`enrollment_paused`), or the student has used this week's sessions (`weekly_quota_exhausted`)"},"404":{"description":"No such offer for this student. Another student's offer returns 404 too, so its existence is never confirmed."},"409":{"description":"The offer is archived (`offer_archived`), cannot be practised because its stored extraction is unreadable (`offer_not_practicable`), or the student already has an active session (`session_already_active`)"},"422":{"description":"Malformed body or an unknown field, or the stage is not part of the offer (`session_type_not_in_offer`)"},"429":{"description":"Rate limit exceeded (6/min per student)"},"503":{"description":"Voice interviews are switched off or not configured (`english_interviews_disabled`)"}}}},"/api/v1/english-interviews/quota":{"get":{"tags":["English Interviews"],"summary":"Get the caller's weekly interview-session quota","description":"Returns how many voice interview sessions the caller may run per ISO week (`limit`), how many they have used this week (`used`), and when the count resets (`resets_at`, Monday 00:00 UTC). Read-only: it never reserves a slot. `used` can go down when a session is refunded, so re-fetch after every session rather than adjusting the count locally.","operationId":"get_quota_api_v1_english_interviews_quota_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"503":{"description":"Quota service is temporarily unavailable"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/english-interviews/weakness-profile":{"get":{"tags":["English Interviews"],"summary":"Get the caller's English weakness profile","description":"Returns the student's accumulated English faults, merged in from every report across every offer. Empty until their first report. Read-only.","operationId":"get_weakness_profile_api_v1_english_interviews_weakness_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeaknessProfileRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/english-interviews/internal/ticket-redemption":{"post":{"tags":["English Interviews"],"summary":"Redeem a voice ticket (voice agent only)","description":"Called by the voice agent, never by a browser, and authenticated by the `X-Internal-Secret` header. Exchanges a one-time ticket for a session: it opens exactly one interview session, takes exactly one of the student's weekly sessions and returns the session token plus the context the agent needs. The caller names no session and no student; both come from the ticket.\n\nA ticket that is unknown, expired or already redeemed is refused identically (401 `voice_ticket_invalid`). A failed redemption leaves the ticket unspent.","operationId":"redeem_voice_ticket_api_v1_english_interviews_internal_ticket_redemption_post","parameters":[{"name":"x-internal-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTicketRedemptionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTicketRedemptionRead"}}}},"401":{"description":"Wrong or missing internal secret (`unauthorized`), or the ticket is unknown, expired or already redeemed (`voice_ticket_invalid`)"},"409":{"description":"The student has used this week's sessions (`weekly_quota_exhausted`); already has an interview in progress (`session_already_active`); a session is already active for the student or stage, or the offer was archived since the ticket was minted (`session_conflict`); or the offer can no longer be practised (`offer_not_practicable`)"},"422":{"description":"Malformed body or an unknown field"},"503":{"description":"Voice interviews are not configured (`english_interviews_disabled`) or today's shared interview budget is spent (`service_unavailable`)"}}}},"/api/v1/english-interviews/sessions/active/abandonment":{"post":{"tags":["English Interviews"],"summary":"Abandon the student's active interview","description":"Ends the caller's own active interview as aborted, so a dropped connection does not hold the single in-flight slot until the periodic sweep clears it. The session is found from the bearer token: no session identifier is accepted in the path or the body, and a body naming one is rejected.\n\nThe end is taken from the last stored turn (the session start when there is none). Abandoning frees the in-flight slot but never gives the attempt back, because the live interview cannot be stopped from the portal and could otherwise be finished for free. `is_refunded` is therefore false when this call closed the session; if another close settled it first, it reports that close's recorded outcome. A student who dropped out in the first seconds can instead wait for the periodic sweep, which refunds a session that never got a turn, so the client should offer the choice. No report is queued.\n\nA student with no active session gets 404, including on a second click, so a client should treat 404 here as success-equivalent.","operationId":"abandon_active_session_api_v1_english_interviews_sessions_active_abandonment_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SessionAbandonmentCreate"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAbandonmentRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"The student has no active session (`not_found`)"},"422":{"description":"The body carries a field; the request takes none"},"429":{"description":"Rate limit exceeded (60/min per student)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/english-interviews/internal/turns":{"post":{"tags":["English Interviews"],"summary":"Store transcript turns (voice agent only)","description":"Called by the voice agent with the session token it received at redemption, as `Authorization: Bearer`. The caller names no session and no student: the session comes from the token, which is why one student can never write into another's session. Storing is idempotent on the turn number, so a retried or overlapping batch is safe: turns already stored are reported as `duplicates` and left untouched.\n\nTurns are accepted while the token is valid, whatever the session's status. A retry that straddles closure must succeed; a turn that lands after closure is stored and may miss the report.","operationId":"ingest_turns_api_v1_english_interviews_internal_turns_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/TurnIngestionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TurnIngestionRead"}}}},"401":{"description":"The session token is absent, malformed, expired or not a session token (`session_token_invalid`)"},"404":{"description":"The token names no session (`not_found`)"},"503":{"description":"Voice interviews are not configured (`english_interviews_disabled`)"},"422":{"description":"Malformed body, an unknown field, a `turn_no` below 1, text over 4000 characters, or a `turn_no` repeated within the batch"}}}},"/api/v1/english-interviews/internal/session-closure":{"post":{"tags":["English Interviews"],"summary":"Close a voice session (voice agent only)","description":"Called by the voice agent with the session token it received at redemption, as `Authorization: Bearer`, when an interview ends. The caller names no session and no student: the session comes from the token. Closing frees the student's in-flight slot, returns the reserved budget, records the spend and, for a completed session, queues the report.\n\nA closure is never refused for an implausible figure: `duration_s` past the hard cut is clamped to it, and `ended_at` is accepted but not stored (the portal stores the session start plus the clamped duration). An aborted session shorter than the refund window gives the weekly slot back (`is_refunded`).\n\nClosing is idempotent. A repeat call changes nothing and returns 200 with the recorded status and `is_report_queued: false`, even when it sends a different status: the first close is the truth.\n\nA first close of a completed session normally queues the report and answers `is_report_queued: true`. It answers `false` if queueing failed: the report then stays pending and the student cannot retry it, so a persistent `false` is worth reporting. A repeat close always answers `false`.","operationId":"close_session_api_v1_english_interviews_internal_session_closure_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/SessionClosureCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionClosureRead"}}}},"401":{"description":"The session token is absent, malformed, expired or not a session token (`session_token_invalid`)"},"404":{"description":"The token names no session (`not_found`)"},"503":{"description":"Voice interviews are not configured (`english_interviews_disabled`)"},"422":{"description":"Malformed body, an unknown field, a status other than `completed` or `aborted`, or a figure outside its wire bound"}}}},"/api/v1/english-interviews/sessions":{"get":{"tags":["English Interviews"],"summary":"List the student's interview sessions","description":"Every interview session the caller has held, newest first, with the state of its report (`report_state`: render this one; `report_status` is the raw worker state and reads `pending` forever on an aborted session). Never includes another student's sessions. To read a report, poll the session's report envelope.","operationId":"list_sessions_api_v1_english_interviews_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SessionRead"},"type":"array","title":"Response List Sessions Api V1 English Interviews Sessions Get"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/english-interviews/sessions/{session_id}/report":{"get":{"tags":["English Interviews"],"summary":"Read a session's feedback report","description":"Answers 200 for every session the caller owns; `status` says where the report is. Poll while it is `pending`.\n\n`pending`: the interview is still running or the report is being produced. `done`: `report` carries the feedback. `failed`: the report could not be produced and can be retried through `report-retries`. `unavailable`: the session was aborted, so it will never have a report.","operationId":"get_session_report_api_v1_english_interviews_sessions__session_id__report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportEnvelopeRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such session for this student. Another student's session returns 404 too, so its existence is never confirmed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/english-interviews/sessions/{session_id}/report/pdf":{"get":{"tags":["English Interviews"],"summary":"Export a session's feedback report as a PDF","description":"Renders the caller's own finished report on demand and returns it as a PDF; nothing is cached. `X-Language` (falling back to `Accept-Language`) selects the document's language, independently of the language the interview itself was held in. Only a `done` report can be exported; `pending`, `failed` and `unavailable` all answer 409.","operationId":"export_report_pdf_api_v1_english_interviews_sessions__session_id__report_pdf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"The rendered report","content":{"application/pdf":{}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such session for this student. Another student's session returns 404 too, so its existence is never confirmed."},"409":{"description":"The report is not `done` yet (`report_not_ready`)"},"429":{"description":"Rate limit exceeded (30/min per student)"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/english-interviews/sessions/{session_id}/report-retries":{"post":{"tags":["English Interviews"],"summary":"Retry a failed feedback report","description":"Queues the report of a completed session again after it failed. Answers 202 once the report is pending again; poll the report envelope for the outcome. A refusal of the day's capacity is not reported here: it surfaces as `failed` on the envelope.\n\nOnly a `failed` report can be retried. A second click while the first retry is still running finds the report already pending and gets 409.","operationId":"retry_session_report_api_v1_english_interviews_sessions__session_id__report_retries_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRetryRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such session for this student. Another student's session returns 404 too, so its existence is never confirmed."},"409":{"description":"The report is `done` or already `pending` (`conflict`)"},"503":{"description":"The report could not be queued (`service_unavailable`); the report stays `failed` and can be retried"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/submissions":{"post":{"tags":["Resources"],"summary":"Suggest a resource","description":"Submits a resource for staff review. It is created as `pending_review` and stays out of the public resources endpoints until staff approve it. Unknown fields (including `status`) are rejected.","operationId":"create_submission_api_v1_resources_submissions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceSubmissionCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceSubmissionRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"409":{"description":"`duplicate_resource_url`: the link is already in the catalog or already awaiting review. `resource_submission_not_editable`: the submission was approved (edit only)."},"422":{"description":"Invalid or overlong field, a non-http(s) link, an unknown field, or an unknown category"},"429":{"description":"Rate limit exceeded (10/hour per student, shared by create and edit)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/resources/submissions/mine":{"get":{"tags":["Resources"],"summary":"List my resource submissions","description":"Returns the caller's own submissions in every status, newest first, with the rejection reason when there is one. Only the caller's own submissions are returned, never anyone else's, and submissions never appear in the public resources endpoints.","operationId":"list_my_submissions_api_v1_resources_submissions_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResourceSubmissionRead"},"type":"array","title":"Response List My Submissions Api V1 Resources Submissions Mine Get"}}}},"401":{"description":"Missing or invalid token"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/resources/submissions/{submission_id}":{"patch":{"tags":["Resources"],"summary":"Edit a pending or rejected submission","description":"Partial update: send only the fields that changed; omitted or null fields are left unchanged (no field can be cleared). A rejected submission goes back to `pending_review` and its rejection reason is cleared; an empty body resubmits a rejected submission unchanged. An approved submission cannot be edited. Unknown fields (including `status`) are rejected.","operationId":"update_submission_api_v1_resources_submissions__submission_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceSubmissionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceSubmissionRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No such submission for this student. Another student's submission returns 404 too, so its existence is never confirmed."},"409":{"description":"`duplicate_resource_url`: the link is already in the catalog or already awaiting review. `resource_submission_not_editable`: the submission was approved (edit only)."},"422":{"description":"Invalid or overlong field, a non-http(s) link, an unknown field, an unknown category, or a malformed submission id"},"429":{"description":"Rate limit exceeded (10/hour per student, shared by create and edit)"}}}},"/api/v1/resources/categories":{"get":{"tags":["Resources"],"summary":"List the resource category pages and their tabs","description":"Returns every category page with its tabs, both in the order staff arranged them. Each tab carries its column display configuration, because the tabs do not show the same fields in the same order.\n\nLocalized text is resolved to one language from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported). English is the default and the fallback, per field.","operationId":"list_categories_api_v1_resources_categories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceCategoryRead"},"title":"Response List Categories Api V1 Resources Categories Get"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/categories/{category_key}/tabs/{tab_key}":{"get":{"tags":["Resources"],"summary":"Get one resource tab with its rows and content blocks","description":"Everything one tab renders, in a single request: the tab and its column configuration, its published resources in placement order with their tags, and its published non-table content blocks (the tab's own, plus any that belong to the whole category page).\n\nFilters match vocabulary **keys**, never labels. Values within one filter are alternatives (`location=uk&location=remote` is UK or Remote), and different filters must all match. A resource with no seniority tag is open to every level, so it matches any `seniority` filter, even one whose key is unknown; any other unknown key matches nothing. `recommended=true` keeps only recommended resources.\n\nUnpublished resources and blocks are never returned.\n\nLocalized text is resolved to one language from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported). English is the default and the fallback, per field.","operationId":"get_tab_page_api_v1_resources_categories__category_key__tabs__tab_key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category_key","in":"path","required":true,"schema":{"type":"string","title":"Category Key"}},{"name":"tab_key","in":"path","required":true,"schema":{"type":"string","title":"Tab Key"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Vocabulary keys; repeat to match any.","title":"Location"},"description":"Vocabulary keys; repeat to match any."},{"name":"seniority","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Vocabulary keys; repeat to match any.","title":"Seniority"},"description":"Vocabulary keys; repeat to match any."},{"name":"niche","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Vocabulary keys; repeat to match any.","title":"Niche"},"description":"Vocabulary keys; repeat to match any."},{"name":"tool_category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Vocabulary keys; repeat to match any.","title":"Tool Category"},"description":"Vocabulary keys; repeat to match any."},{"name":"recommended","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true: only recommended; false: only the rest.","title":"Recommended"},"description":"true: only recommended; false: only the rest."},{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceTabPageRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No such category, or no such tab in that category"},"422":{"description":"Malformed `recommended` value"}}}},"/api/v1/resources/vocabularies":{"get":{"tags":["Resources"],"summary":"List the filter vocabularies","description":"The location, seniority, niche and tool-category options for building filter controls, each as a stable `key` (send it back as the filter value) and a resolved `label`. Options are sorted on the resolved label, ignoring case and accents, so the Spanish list is in Spanish alphabetical order.\n\n\"All levels\" is not an option: it is how an untagged resource is shown.\n\nLocalized text is resolved to one language from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported). English is the default and the fallback, per field.","operationId":"list_vocabularies_api_v1_resources_vocabularies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceVocabulariesRead"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills":{"get":{"tags":["Skills"],"summary":"Browse the Skills Library","description":"Returns one page of published Skills with `total`. `q` is a case-insensitive substring match on title, summary, tags, or the author's display name; blank is ignored. `tags` may be repeated (up to 10; blank values are ignored) and matches a Skill that has any of them — an exact-tag filter, independent of `q`. `category` matches one category's slug; an unknown or inactive slug matches nothing, never an error. `source` matches `staff` or `member`. `sort` is `newest` (default) or `most_downloaded`; ties are broken so pages never overlap.\n\nLocalized text is resolved to one language from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported). English is the default and the fallback, per field.","operationId":"list_skills_api_v1_skills_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Case-insensitive substring match on title, summary, tags, or the author's display name; blank is ignored.","title":"Q"},"description":"Case-insensitive substring match on title, summary, tags, or the author's display name; blank is ignored."},{"name":"tags","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","maxLength":50},"maxItems":10,"description":"Match Skills with any of these tags.","default":[],"title":"Tags"},"description":"Match Skills with any of these tags."},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Match this category's slug.","title":"Category"},"description":"Match this category's slug."},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillSource"},{"type":"null"}],"description":"Match this source.","title":"Source"},"description":"Match this source."},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SkillSort","description":"Sort order.","default":"newest"},"description":"Sort order."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum items to return (1-100).","default":20,"title":"Limit"},"description":"Maximum items to return (1-100)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."},{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SkillSummaryRead_"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"Out-of-range pagination, a `q` over 100 characters, more than 10 tags, a tag over 50 characters, or an unknown `sort`"}}},"post":{"tags":["Skills"],"summary":"Submit a Skill","description":"Submits a Skill package with its catalogue details as `multipart/form-data`. The package is checked without being unpacked or run, then stored, and the Skill is created as `pending_review`: it reaches the Skills Library only once staff publish it. Its slug is the package's `name`, which must be unused. `tags` may be repeated; `version` defaults to `1.0.0`.","operationId":"submit_skill_api_v1_skills_post","security":[{"HTTPBearer":[]}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MySkillRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"409":{"description":"`skill_slug_taken`: another Skill already has the package's `name`"},"413":{"description":"`skill_package_too_large`: the package is larger than its format's cap (1 MB for `.md`, 10 MB for `.zip`), or the request body as a whole is over the `.zip` cap"},"422":{"description":"Validation failed: a missing or invalid form field (FastAPI validation detail — this is also what a missing `category` returns, like any other missing required field), a body that is not `multipart/form-data`, `skill_video_url_invalid`, `skill_category_invalid` (the `category` sent is an unknown or inactive slug), `skill_terms_not_accepted`, or a broken package rule: `skill_package_not_a_zip`, `skill_package_encrypted`, `skill_package_unsupported_compression`, `skill_package_too_many_files`, `skill_package_unsafe_path`, `skill_package_file_type_not_allowed`, `skill_package_too_large_uncompressed`, `skill_package_missing_skill_md`, `skill_package_invalid_frontmatter` (also returned, instead of the 413 below, when a `.zip`'s `SKILL.md` entry itself is over the markdown size cap), `skill_package_invalid_version`, `skill_package_extension_mismatch`, `skill_package_not_utf8`, `skill_package_skill_md_contains_nul`"},"429":{"description":"Rate limit exceeded (10/hour per Member, shared between submitting and editing)"},"503":{"description":"Package storage is unavailable; nothing was saved"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"package":{"type":"string","format":"binary","description":"The Skill as a single `SKILL.md`-style `.md` file (the default, at most 1 MB) or a `.zip` (or `.skill`, treated identically) package of at most 10 MB with `SKILL.md` at its root (or inside one wrapping folder). Either way, the YAML frontmatter must have `name` and `description`; `name` becomes the Skill's slug. The upload's filename extension decides which format the server expects."},"title":{"description":"1-120 characters, trimmed.","maxLength":120,"minLength":1,"title":"Title","type":"string"},"summary":{"description":"1-300 characters, trimmed.","maxLength":300,"minLength":1,"title":"Summary","type":"string"},"tags":{"default":[],"description":"Repeat the field once per tag: up to 10 tags of at most 50 characters. Tags are trimmed; blanks and repeats are dropped.","items":{"maxLength":50,"type":"string"},"title":"Tags","type":"array"},"video_url":{"type":"string","description":"Absolute https:// link to a demo video. Blank or absent means none.","title":"Video Url"},"category":{"description":"An active category's slug; see `GET /skills/categories`.","maxLength":50,"title":"Category","type":"string"},"version":{"default":"1.0.0","description":"Semantic version `MAJOR.MINOR.PATCH`, at most 32 characters.","maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","title":"Version","type":"string"},"accepted_terms":{"default":false,"description":"Must be `true`: confirms the author holds the rights to this content and accepts the Skills Library content declaration. A submission sent with this absent or `false` is refused with `skill_terms_not_accepted`.","title":"Accepted Terms","type":"boolean"}},"required":["package","title","summary","category"]}}}}}},"/api/v1/skills/categories":{"get":{"tags":["Skills"],"summary":"List Skill categories","description":"Every active category with the count of published Skills currently matching `q`/`source` (never `category` itself), `other` always last.\n\nLocalized text is resolved to one language from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported). English is the default and the fallback, per field.","operationId":"list_skill_categories_api_v1_skills_categories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Case-insensitive substring match on title, summary, tags, or the author's display name; blank is ignored.","title":"Q"},"description":"Case-insensitive substring match on title, summary, tags, or the author's display name; blank is ignored."},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillSource"},{"type":"null"}],"description":"Match this source.","title":"Source"},"description":"Match this source."},{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SkillCategoryRead"},"title":"Response List Skill Categories Api V1 Skills Categories Get"}}}},"401":{"description":"Missing or invalid token"},"422":{"description":"A `q` over 100 characters, or an unknown `source`"}}}},"/api/v1/skills/validate":{"post":{"tags":["Skills"],"summary":"Dry-run a Skill package","description":"Runs every `POST /skills` package check against the same `multipart/form-data` upload, without storing anything or creating a Skill. Unlike submitting, a broken package is never a 422 here: `valid` is false and `checks` lists every check's outcome, so an author sees everything wrong at once.","operationId":"validate_skill_api_v1_skills_validate_post","requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"package":{"type":"string","format":"binary","description":"The Skill as a single `SKILL.md`-style `.md` file (the default, at most 1 MB) or a `.zip` (or `.skill`, treated identically) package of at most 10 MB with `SKILL.md` at its root (or inside one wrapping folder). Either way, the YAML frontmatter must have `name` and `description`; `name` becomes the Skill's slug. The upload's filename extension decides which format the server expects."},"title":{"type":"string","maxLength":120,"minLength":1,"title":"Title","description":"1-120 characters, trimmed."},"summary":{"type":"string","maxLength":300,"minLength":1,"title":"Summary","description":"1-300 characters, trimmed."},"tags":{"items":{"type":"string","maxLength":50},"type":"array","title":"Tags","description":"Repeat the field once per tag: up to 10 tags of at most 50 characters. Tags are trimmed; blanks and repeats are dropped.","default":[]},"video_url":{"type":"string","title":"Video Url","description":"Absolute https:// link to a demo video. Blank or absent means none."},"category":{"type":"string","maxLength":50,"title":"Category","description":"An active category's slug; see `GET /skills/categories`."},"version":{"type":"string","maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","title":"Version","description":"Semantic version `MAJOR.MINOR.PATCH`, at most 32 characters.","default":"1.0.0"},"accepted_terms":{"type":"boolean","title":"Accepted Terms","description":"Must be `true`: confirms the author holds the rights to this content and accepts the Skills Library content declaration. A submission sent with this absent or `false` is refused with `skill_terms_not_accepted`.","default":false}},"type":"object","required":["package","title","summary","category"]}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillValidationRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"413":{"description":"`skill_package_too_large`: the package is larger than its format's cap (1 MB for `.md`, 10 MB for `.zip`), or the request body as a whole is over the `.zip` cap"},"422":{"description":"A missing or invalid form field, or a body that is not `multipart/form-data`"},"429":{"description":"Rate limit exceeded (60/hour per Member)"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/skills/mine":{"get":{"tags":["Skills"],"summary":"List my Skills","description":"Returns every Skill the caller authored, newest first, each with its newest version in any status (`pending_review`, `rejected` with its reason, or `published`). Never lists anyone else's Skills.","operationId":"list_my_skills_api_v1_skills_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MySkillRead"},"type":"array","title":"Response List My Skills Api V1 Skills Mine Get"}}}},"401":{"description":"Missing or invalid token"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/skills/{skill_id}":{"get":{"tags":["Skills"],"summary":"Get one Skill","description":"Returns one published Skill in full. Its author also sees it while it is pending review or rejected, and `has_pending_update` tells them a newer version is waiting for review.\n\nLocalized text is resolved to one language from `X-Language`, or from `Accept-Language` when `X-Language` is absent (`en` and `es` are supported). English is the default and the fallback, per field.","operationId":"get_skill_api_v1_skills__skill_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}},{"name":"x-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Language"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRead"}}}},"401":{"description":"Missing or invalid token"},"404":{"description":"No published Skill with this id. A Skill that is not published returns 404 too, except to its author, so its existence is never confirmed."},"422":{"description":"Malformed Skill id"}}},"patch":{"tags":["Skills"],"summary":"Edit my unpublished Skill","description":"Edits a Skill the caller authored while it is pending review or rejected, as `multipart/form-data`; every field is optional and an absent field is left unchanged. Send `tags` once with an empty value to clear the tags, and `video_url` empty to remove the link. A new `package` replaces the current one. For a first-time submission this may also rename the Skill, when the package's `name` changed; for an open update to an already-published Skill, a rename is rejected (`skill_slug_immutable`) instead. The Skill goes back to `pending_review` and any rejection reason is cleared.","operationId":"edit_skill_api_v1_skills__skill_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MySkillRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No Skill with this id among the caller's own; another Member's Skill returns 404 too"},"409":{"description":"`skill_not_editable`: the Skill is published. `skill_changed`: staff reviewed it during the edit; reload it. `skill_slug_taken`: another Skill already has the new package's `name`"},"413":{"description":"`skill_package_too_large`: the package is larger than its format's cap (1 MB for `.md`, 10 MB for `.zip`), or the request body as a whole is over the `.zip` cap"},"422":{"description":"Malformed Skill id, or validation failed: a missing or invalid form field (FastAPI validation detail), a body that is not `multipart/form-data`, `skill_video_url_invalid`, `skill_category_invalid` (the `category` sent is an unknown or inactive slug — omitting it leaves the Skill's category unchanged, like every other field here), `skill_terms_not_accepted`, `skill_slug_immutable` and `skill_version_not_higher` (both reachable when editing an open update to an already-published Skill: its package may not rename the Skill, and any new version must still be higher than the live one), or a broken package rule: `skill_package_not_a_zip`, `skill_package_encrypted`, `skill_package_unsupported_compression`, `skill_package_too_many_files`, `skill_package_unsafe_path`, `skill_package_file_type_not_allowed`, `skill_package_too_large_uncompressed`, `skill_package_missing_skill_md`, `skill_package_invalid_frontmatter` (also returned, instead of the 413 below, when a `.zip`'s `SKILL.md` entry itself is over the markdown size cap), `skill_package_invalid_version`, `skill_package_extension_mismatch`, `skill_package_not_utf8`, `skill_package_skill_md_contains_nul`"},"429":{"description":"Rate limit exceeded (10/hour per Member, shared between submitting and editing)"},"503":{"description":"Package storage is unavailable; nothing was saved"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"package":{"type":"string","format":"binary","description":"The Skill as a single `SKILL.md`-style `.md` file (the default, at most 1 MB) or a `.zip` (or `.skill`, treated identically) package of at most 10 MB with `SKILL.md` at its root (or inside one wrapping folder). Either way, the YAML frontmatter must have `name` and `description`; `name` becomes the Skill's slug. The upload's filename extension decides which format the server expects."},"title":{"description":"1-120 characters, trimmed.","maxLength":120,"minLength":1,"type":"string","title":"Title"},"summary":{"description":"1-300 characters, trimmed.","maxLength":300,"minLength":1,"type":"string","title":"Summary"},"tags":{"description":"Replaces every tag. Send `tags` once with an empty value to clear them.","items":{"maxLength":50,"type":"string"},"type":"array","title":"Tags"},"video_url":{"type":"string","description":"Replaces the demo video link. Send it empty to remove the link.","title":"Video Url"},"category":{"description":"An active category's slug; see `GET /skills/categories`.","maxLength":50,"type":"string","title":"Category"},"version":{"description":"Semantic version `MAJOR.MINOR.PATCH`, at most 32 characters.","maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","type":"string","title":"Version"},"accepted_terms":{"default":false,"description":"Must be `true`: confirms the author holds the rights to this content and accepts the Skills Library content declaration. A submission sent with this absent or `false` is refused with `skill_terms_not_accepted`.","title":"Accepted Terms","type":"boolean"}}}}}}}},"/api/v1/skills/{skill_id}/download":{"post":{"tags":["Skills"],"summary":"Download a Skill package","description":"Returns a signed link to the Skill's package; the link is short-lived and `expires_at` says when it stops working. A Member's first download of a version is counted; their repeat downloads of the same version, and an author's own downloads, are not.","operationId":"download_skill_api_v1_skills__skill_id__download_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillDownloadRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No published Skill with this id. A Skill that is not published returns 404 too, except to its author, so its existence is never confirmed."},"422":{"description":"Malformed Skill id"},"429":{"description":"Rate limit exceeded (20/minute per Member)"},"503":{"description":"Package storage is unavailable; nothing was counted"}}}},"/api/v1/skills/{skill_id}/versions":{"post":{"tags":["Skills"],"summary":"Submit an update to my published Skill","description":"Submits a new package and catalogue details for the caller's own published Skill, as `multipart/form-data`. The proposal is stored as a fresh `pending_review` version; the live, published Skill is never touched until staff approve it, and `GET /skills/mine`'s `pending_update` shows the proposal meanwhile. An absent field keeps the published Skill's current value. The package must ship a version higher than the published one and may not rename the Skill. Only one update may be open (pending review or rejected) at a time.","operationId":"submit_skill_version_api_v1_skills__skill_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MySkillRead"}}}},"401":{"description":"Missing or invalid token"},"403":{"description":"Enrolment is paused or absent"},"404":{"description":"No published Skill with this id among the caller's own; another Member's Skill returns 404 too"},"409":{"description":"`skill_update_pending`: this Skill has no published version, or an update is already open (pending review or rejected)"},"413":{"description":"`skill_package_too_large`: the package is larger than its format's cap (1 MB for `.md`, 10 MB for `.zip`), or the request body as a whole is over the `.zip` cap"},"422":{"description":"Validation failed: a missing or invalid form field (FastAPI validation detail), a body that is not `multipart/form-data`, `skill_video_url_invalid`, `skill_category_invalid` (the `category` sent is an unknown or inactive slug), `skill_version_not_higher` (the package's version is not higher than the published version), `skill_slug_immutable` (the package's `name` does not match the Skill's existing slug), `skill_terms_not_accepted`, or a broken package rule: `skill_package_not_a_zip`, `skill_package_encrypted`, `skill_package_unsupported_compression`, `skill_package_too_many_files`, `skill_package_unsafe_path`, `skill_package_file_type_not_allowed`, `skill_package_too_large_uncompressed`, `skill_package_missing_skill_md`, `skill_package_invalid_frontmatter` (also returned, instead of the 413 below, when a `.zip`'s `SKILL.md` entry itself is over the markdown size cap), `skill_package_invalid_version`, `skill_package_extension_mismatch`, `skill_package_not_utf8`, `skill_package_skill_md_contains_nul`"},"429":{"description":"Rate limit exceeded (10/hour per Member, shared between submitting and editing)"},"503":{"description":"Package storage is unavailable; nothing was saved"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"package":{"type":"string","format":"binary","description":"The Skill as a single `SKILL.md`-style `.md` file (the default, at most 1 MB) or a `.zip` (or `.skill`, treated identically) package of at most 10 MB with `SKILL.md` at its root (or inside one wrapping folder). Either way, the YAML frontmatter must have `name` and `description`; `name` becomes the Skill's slug. The upload's filename extension decides which format the server expects."},"summary":{"description":"1-300 characters, trimmed.","maxLength":300,"minLength":1,"type":"string","title":"Summary"},"tags":{"description":"Repeat the field once per tag: up to 10 tags of at most 50 characters. Tags are trimmed; blanks and repeats are dropped.","items":{"maxLength":50,"type":"string"},"type":"array","title":"Tags"},"video_url":{"type":"string","description":"Replaces the demo video link. Send it empty to remove the link.","title":"Video Url"},"category":{"description":"An active category's slug; see `GET /skills/categories`.","maxLength":50,"type":"string","title":"Category"},"version":{"description":"Semantic version `MAJOR.MINOR.PATCH`, at most 32 characters.","maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","title":"Version","type":"string"},"accepted_terms":{"default":false,"description":"Must be `true`: confirms the author holds the rights to this content and accepts the Skills Library content declaration. A submission sent with this absent or `false` is refused with `skill_terms_not_accepted`.","title":"Accepted Terms","type":"boolean"}},"required":["package","version"]}}}}}}},"components":{"schemas":{"AccountExport":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["email","full_name","created_at"],"title":"AccountExport"},"AdaptTaskRead":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","const":"queued","title":"Status"}},"type":"object","required":["task_id","status"],"title":"AdaptTaskRead"},"AdaptedCV":{"properties":{"original":{"$ref":"#/components/schemas/CVProfile","description":"The CV before any rewrite ran: read off the upload and cut to the page budget, never model-written. Pair it against `profile` to show the candidate what changed."},"profile":{"$ref":"#/components/schemas/CVProfile","description":"The rewritten CV. This is the side a candidate edits and the side the PDF endpoint renders."},"labels":{"$ref":"#/components/schemas/SectionLabels"},"omitted":{"items":{"$ref":"#/components/schemas/OmittedItem"},"type":"array","title":"Omitted"},"fits_page_budget":{"type":"boolean","title":"Fits Page Budget"}},"additionalProperties":false,"type":"object","required":["original","profile","labels","omitted","fits_page_budget"],"title":"AdaptedCV","description":"What one adaptation run returns: the CV as it went in, the rewritten CV,\nthe section headings in the posting's language, everything the\ndeterministic pruning step cut to make it fit, and whether it actually does.\n\n`original` is the profile as extraction read it off the upload and pruning\ncut it to the page budget, before any section rewrite ran. It is carried\nthrough verbatim rather than regenerated, for the reason the cover letter\nslices its own `original` out of the draft by index instead of asking a\nmodel for it: a before/after view is only worth showing if the \"before\"\nside is untouched by whatever wrote the \"after\".\n\nIt is the *pruned* profile rather than the raw extraction so that the two\nsides line up section for section — what pruning cut is reported through\n`omitted`, where the client can explain it, instead of reading as a silent\ndeletion in the diff. The fit loop in `service.py` can still cut further\nfrom the adapted side alone after the rewrite has converged, so an item\npresent here and absent from `profile` is expected rather than a defect;\n`omitted` accounts for it too.\n\n`labels` rides on the result because two renderers consume this document —\nthe frontend's preview and this repo's PDF — and resolving the headings\nindependently in each would let them drift apart. Resolved once, here.\n\n`fits_page_budget` is a measurement, not an estimate: the fit loop in\n`service.py` renders the CV after the rewrite has converged and reports\nwhether the rendered document came out to exactly one page, pruning one\nrung further and re-rendering when it does not (bounded by the pruning\nladder's own length). The word budget (`BudgetBreach`) still drives the\nrewrite retry above it — a word count is what a model can be asked to\nwrite against, a page count is not — but this field is what the render\nactually measured. Either way it is a warning to the client, never an\nerror: a CV that runs slightly long is worth far more to the candidate\nthan a failed run. Only a fabrication fails closed."},"AdaptedCoverLetter":{"properties":{"original":{"$ref":"#/components/schemas/OriginalLetter"},"adapted":{"$ref":"#/components/schemas/AdaptedLetter"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"fits_length_budget":{"type":"boolean","title":"Fits Length Budget"}},"additionalProperties":false,"type":"object","required":["original","adapted","suggestions","fits_length_budget"],"title":"AdaptedCoverLetter"},"AdaptedLetter":{"properties":{"salutation":{"type":"string","title":"Salutation"},"opening":{"type":"string","title":"Opening"},"background":{"type":"string","title":"Background"},"bridge":{"type":"string","title":"Bridge"},"skills":{"items":{"$ref":"#/components/schemas/SkillBlock"},"type":"array","title":"Skills"},"closing":{"type":"string","title":"Closing"},"signoff":{"type":"string","title":"Signoff"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","required":["salutation","opening","background","bridge","skills","closing","signoff","name"],"title":"AdaptedLetter","description":"Template-conformant. Every constant field is assembled, not generated."},"AnalysisCreate":{"properties":{"object_key":{"type":"string","maxLength":100,"minLength":5,"title":"Object Key"},"job_description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Job Description"}},"type":"object","required":["object_key"],"title":"AnalysisCreate"},"AnalysisResultRead":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","enum":["pending","succeeded","failed"],"title":"Status"},"result":{"anyOf":[{"$ref":"#/components/schemas/ProfileAnalysis"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["task_id","status"],"title":"AnalysisResultRead"},"AnalysisTaskRead":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","const":"queued","title":"Status"}},"type":"object","required":["task_id","status"],"title":"AnalysisTaskRead"},"ApplicationCategory":{"type":"string","enum":["product","infra","platform","data","ai_ml"],"title":"ApplicationCategory"},"ApplicationCreate":{"properties":{"company":{"type":"string","maxLength":200,"minLength":1,"title":"Company","description":"Company name, 1 to 200 characters. Surrounding and repeated spaces are removed and it is matched case-insensitively against the shared company catalog: an existing company is reused, otherwise a new one is created."},"role":{"type":"string","maxLength":200,"minLength":1,"title":"Role","description":"Job title, 1 to 200 characters."},"category":{"anyOf":[{"$ref":"#/components/schemas/ApplicationCategory"},{"type":"null"}],"description":"Kind of role: product, infra, platform, data or ai_ml."},"opportunity":{"anyOf":[{"$ref":"#/components/schemas/OpportunityType"},{"type":"null"}],"description":"Type of contract: full_time, part_time, contract or internship."},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location","description":"Up to 200 characters. An empty string is stored as null."},"flexibility":{"anyOf":[{"$ref":"#/components/schemas/WorkFlexibility"},{"type":"null"}],"description":"Where the work happens: on_site, remote, hybrid or flexible."},"status":{"$ref":"#/components/schemas/ApplicationStatus","description":"Where the application stands. Defaults to `wishlist` on create.","default":"wishlist"},"applied_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Applied Date","description":"When the student applied."},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id","description":"The networking contact for this application. Must be one of the student's own contacts, otherwise 422. Deleting the contact clears it."},"job_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Job Url","description":"Link to the job posting. Must be an http(s) URL. An empty string is stored as null."},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes","description":"Up to 10,000 characters. An empty string is stored as null."}},"additionalProperties":false,"type":"object","required":["company","role"],"title":"ApplicationCreate"},"ApplicationExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"company":{"type":"string","title":"Company"},"role":{"type":"string","title":"Role"},"category":{"anyOf":[{"$ref":"#/components/schemas/ApplicationCategory"},{"type":"null"}]},"opportunity":{"anyOf":[{"$ref":"#/components/schemas/OpportunityType"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"flexibility":{"anyOf":[{"$ref":"#/components/schemas/WorkFlexibility"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/ApplicationStatus"},"applied_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Applied Date"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"job_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","company","role","status","created_at","updated_at"],"title":"ApplicationExport","description":"GDPR export contract: every stored field of one job application except the\nowner's id. Published here so the privacy module never types against\ntrackers.domain."},"ApplicationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"company":{"type":"string","title":"Company","description":"The catalog name of the company."},"company_id":{"type":"string","format":"uuid","title":"Company Id","description":"The shared company catalog entry `company` resolved to. Read-only; identical for every spelling of the same company."},"role":{"type":"string","title":"Role"},"category":{"anyOf":[{"$ref":"#/components/schemas/ApplicationCategory"},{"type":"null"}]},"opportunity":{"anyOf":[{"$ref":"#/components/schemas/OpportunityType"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"flexibility":{"anyOf":[{"$ref":"#/components/schemas/WorkFlexibility"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/ApplicationStatus"},"applied_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Applied Date"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"job_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","company","company_id","role","category","opportunity","location","flexibility","status","applied_date","contact_id","job_url","notes","created_at","updated_at"],"title":"ApplicationRead"},"ApplicationStatus":{"type":"string","enum":["wishlist","applied","screening","interviewing","offer","rejected"],"title":"ApplicationStatus"},"ApplicationUpdate":{"properties":{"company":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Company","description":"Company name, 1 to 200 characters. Surrounding and repeated spaces are removed and it is matched case-insensitively against the shared company catalog: an existing company is reused, otherwise a new one is created."},"role":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Role","description":"Job title, 1 to 200 characters."},"category":{"anyOf":[{"$ref":"#/components/schemas/ApplicationCategory"},{"type":"null"}],"description":"Kind of role: product, infra, platform, data or ai_ml."},"opportunity":{"anyOf":[{"$ref":"#/components/schemas/OpportunityType"},{"type":"null"}],"description":"Type of contract: full_time, part_time, contract or internship."},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location","description":"Up to 200 characters. An empty string is stored as null."},"flexibility":{"anyOf":[{"$ref":"#/components/schemas/WorkFlexibility"},{"type":"null"}],"description":"Where the work happens: on_site, remote, hybrid or flexible."},"status":{"anyOf":[{"$ref":"#/components/schemas/ApplicationStatus"},{"type":"null"}],"description":"Where the application stands."},"applied_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Applied Date","description":"When the student applied."},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id","description":"The networking contact for this application. Must be one of the student's own contacts, otherwise 422. Deleting the contact clears it."},"job_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Job Url","description":"Link to the job posting. Must be an http(s) URL. An empty string is stored as null."},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes","description":"Up to 10,000 characters. An empty string is stored as null."}},"additionalProperties":false,"type":"object","title":"ApplicationUpdate","description":"Every field optional. Omitted fields are left unchanged; `null` clears an\noptional field. `company`, `role` and `status` cannot be null."},"AttachCvCreate":{"properties":{"object_key":{"type":"string","maxLength":100,"minLength":5,"title":"Object Key","description":"The object_key returned by POST .../cv-uploads for the file already uploaded to the signed URL."}},"additionalProperties":false,"type":"object","required":["object_key"],"title":"AttachCvCreate"},"AuditEventExport":{"properties":{"event_type":{"type":"string","title":"Event Type"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["event_type","occurred_at","metadata"],"title":"AuditEventExport"},"AuthUserRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"is_verified":{"type":"boolean","title":"Is Verified"},"is_staff":{"type":"boolean","title":"Is Staff"}},"type":"object","required":["user_id","email","is_verified","is_staff"],"title":"AuthUserRead"},"Band":{"type":"string","enum":["Excellent","Strong","Improvable","Needs work"],"title":"Band"},"BlockAnchor":{"type":"string","enum":["before_table","after_table"],"title":"BlockAnchor"},"BlockEntryRead":{"properties":{"label":{"type":"string","title":"Label"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Null for an entry that is plain text."},"group_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Label","description":"Sub-group heading the entry belongs to."},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"amount_eur":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Eur","description":"Funding amount, for funding lists."}},"type":"object","required":["label","url","group_label","detail","amount_eur"],"title":"BlockEntryRead"},"BlockKind":{"type":"string","enum":["prose","link_list","funding_list"],"title":"BlockKind"},"BlockRead":{"properties":{"key":{"type":"string","title":"Key"},"kind":{"$ref":"#/components/schemas/BlockKind"},"anchor":{"$ref":"#/components/schemas/BlockAnchor","description":"Whether the block renders before or after the table."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Heading for the block. Null for an untitled block."},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body","description":"Staff-authored markdown-ish text; render it safely."},"entries":{"items":{"$ref":"#/components/schemas/BlockEntryRead"},"type":"array","title":"Entries"}},"type":"object","required":["key","kind","anchor","title","body","entries"],"title":"BlockRead"},"BookRead":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"author":{"type":"string","title":"Author"},"is_mandatory":{"type":"boolean","title":"Is Mandatory"}},"type":"object","required":["key","title","author","is_mandatory"],"title":"BookRead"},"CVProfile":{"properties":{"contact":{"$ref":"#/components/schemas/Contact"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"experience":{"items":{"$ref":"#/components/schemas/Experience"},"type":"array","title":"Experience"},"education":{"items":{"$ref":"#/components/schemas/Education"},"type":"array","title":"Education"},"courses":{"items":{"type":"string"},"type":"array","title":"Courses"},"skills":{"items":{"type":"string"},"type":"array","title":"Skills"},"languages":{"items":{"$ref":"#/components/schemas/Language"},"type":"array","title":"Languages"},"certifications":{"items":{"type":"string"},"type":"array","title":"Certifications"},"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array","title":"Projects"}},"additionalProperties":false,"type":"object","required":["contact","headline","summary","experience","education","courses","skills","languages","certifications","projects"],"title":"CVProfile"},"CalendarEventRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"Session start, UTC (ISO-8601)."},"end_time":{"type":"string","format":"date-time","title":"End Time","description":"Session end, UTC (ISO-8601)."},"source_timezone":{"type":"string","title":"Source Timezone","description":"IANA timezone the session was scheduled in, e.g. Europe/Madrid."},"join_meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Join Meeting Url"},"recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Url"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"is_past":{"type":"boolean","title":"Is Past","description":"True once the session has ended."}},"type":"object","required":["id","title","description","start_time","end_time","source_timezone","join_meeting_url","recording_url","event_type","is_past"],"title":"CalendarEventRead","description":"One live session.\n\nTimes are UTC. `source_timezone` is the IANA zone the session was scheduled\nin, carried so the client can label the time it converts to — conversion to\nthe student's own timezone happens in the browser, not here."},"CalendarSubscriptionRead":{"properties":{"feed_url":{"type":"string","title":"Feed Url","description":"Plain HTTPS address of the student's iCal feed, for copy-paste into any calendar app."},"webcal_url":{"type":"string","title":"Webcal Url","description":"The same feed address under the `webcal://` scheme — most calendar apps (notably Apple's) subscribe to this in one tap."},"google_subscribe_url":{"type":"string","title":"Google Subscribe Url","description":"Google Calendar's own 'add by URL' deep link, built from `webcal_url`. Google has no native webcal handler, so this is the only one-tap path for it."}},"type":"object","required":["feed_url","webcal_url","google_subscribe_url"],"title":"CalendarSubscriptionRead","description":"Three equivalent forms of the same personal feed address, so the client\ncan hand the student whichever form their calendar app needs without\nconstructing one itself."},"CheckRead":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/CheckStatus"},"message":{"type":"string","title":"Message"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Extra context for a failing or warning check, if there is any."}},"type":"object","required":["id","status","message"],"title":"CheckRead","description":"One check's outcome from a dry-run inspection (`POST /skills/validate`)."},"CheckStatus":{"type":"string","enum":["pass","fail","warning"],"title":"CheckStatus"},"ChecklistRead":{"properties":{"enrollment":{"$ref":"#/components/schemas/EnrollmentRead"},"summary":{"$ref":"#/components/schemas/ChecklistSummaryRead"},"levels":{"items":{"$ref":"#/components/schemas/LevelRead"},"type":"array","title":"Levels"}},"type":"object","required":["enrollment","summary","levels"],"title":"ChecklistRead"},"ChecklistSummaryRead":{"properties":{"total":{"type":"integer","title":"Total"},"completed":{"type":"integer","title":"Completed"},"percent":{"type":"integer","title":"Percent"},"current_level_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Level Key"},"is_all_complete":{"type":"boolean","title":"Is All Complete"}},"type":"object","required":["total","completed","percent","current_level_key","is_all_complete"],"title":"ChecklistSummaryRead"},"CompletedItemExport":{"properties":{"item_key":{"type":"string","title":"Item Key"},"completed_at":{"type":"string","format":"date-time","title":"Completed At"}},"type":"object","required":["item_key","completed_at"],"title":"CompletedItemExport"},"ConsentDocumentsExport":{"properties":{"privacy_policy_url":{"type":"string","title":"Privacy Policy Url"},"ai_acceptable_use_policy_url":{"type":"string","title":"Ai Acceptable Use Policy Url"},"client_portal_addendum_url":{"type":"string","title":"Client Portal Addendum Url"}},"type":"object","required":["privacy_policy_url","ai_acceptable_use_policy_url","client_portal_addendum_url"],"title":"ConsentDocumentsExport"},"ConsentExport":{"properties":{"bundle_version":{"type":"string","title":"Bundle Version"},"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"},"documents":{"$ref":"#/components/schemas/ConsentDocumentsExport"}},"type":"object","required":["bundle_version","accepted_at","documents"],"title":"ConsentExport"},"Contact":{"properties":{"full_name":{"type":"string","title":"Full Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"links":{"items":{"type":"string"},"type":"array","title":"Links"}},"additionalProperties":false,"type":"object","required":["full_name","email","phone","location","links"],"title":"Contact"},"ContactCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name","description":"The person's name, 1 to 200 characters."},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company","description":"Where the person works. Up to 200 characters, normalised and matched against the shared company catalog like an application's company. An empty string is stored as null."},"tags":{"items":{"$ref":"#/components/schemas/ContactTag"},"type":"array","maxItems":7,"title":"Tags","description":"Who the person is: recruiter, hiring_manager, engineer, founder, investor, mentor or other. A tag sent twice is stored once. Defaults to none.","default":[]},"status":{"anyOf":[{"$ref":"#/components/schemas/ContactStatus"},{"type":"null"}],"description":"Where the conversation stands: action_required, awaiting_response, in_touch or inactive."},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"The person's email address. An empty string is stored as null."},"linkedin_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Linkedin Url","description":"Link to the person's LinkedIn profile. Must be an http(s) URL. An empty string is stored as null."},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes","description":"Up to 10,000 characters. An empty string is stored as null."}},"additionalProperties":false,"type":"object","required":["name"],"title":"ContactCreate"},"ContactExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"tags":{"items":{"$ref":"#/components/schemas/ContactTag"},"type":"array","title":"Tags","default":[]},"status":{"anyOf":[{"$ref":"#/components/schemas/ContactStatus"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"last_contact":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Contact"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"ContactExport","description":"GDPR export contract: every stored field of one networking contact except the\nowner's id, plus the derived `last_contact` the student sees in the tracker."},"ContactRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"The catalog name of the company, or null."},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Company Id","description":"The shared company catalog entry `company` resolved to. Read-only; identical for every spelling of the same company. Null when no company is set."},"tags":{"items":{"$ref":"#/components/schemas/ContactTag"},"type":"array","title":"Tags"},"status":{"anyOf":[{"$ref":"#/components/schemas/ContactStatus"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"last_contact":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Contact","description":"Date of the most recent interaction logged against this contact, or null if none. Read-only: it follows the interaction log."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","company","company_id","tags","status","email","linkedin_url","notes","last_contact","created_at","updated_at"],"title":"ContactRead"},"ContactStatus":{"type":"string","enum":["action_required","awaiting_response","in_touch","inactive"],"title":"ContactStatus"},"ContactTag":{"type":"string","enum":["recruiter","hiring_manager","engineer","founder","investor","mentor","other"],"title":"ContactTag"},"ContactUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name","description":"The person's name, 1 to 200 characters."},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company","description":"Where the person works. Up to 200 characters, normalised and matched against the shared company catalog like an application's company. An empty string is stored as null."},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactTag"},"type":"array","maxItems":7},{"type":"null"}],"title":"Tags","description":"Who the person is: recruiter, hiring_manager, engineer, founder, investor, mentor or other. A tag sent twice is stored once. Replaces the whole list."},"status":{"anyOf":[{"$ref":"#/components/schemas/ContactStatus"},{"type":"null"}],"description":"Where the conversation stands: action_required, awaiting_response, in_touch or inactive."},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"The person's email address. An empty string is stored as null."},"linkedin_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Linkedin Url","description":"Link to the person's LinkedIn profile. Must be an http(s) URL. An empty string is stored as null."},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes","description":"Up to 10,000 characters. An empty string is stored as null."}},"additionalProperties":false,"type":"object","title":"ContactUpdate","description":"Every field optional. Omitted fields are left unchanged; `null` clears an\noptional field. `name` and `tags` cannot be null; send `[]` to clear the tags."},"CredentialsExport":{"properties":{"login_email":{"type":"string","title":"Login Email"},"is_verified":{"type":"boolean","title":"Is Verified"},"has_password":{"type":"boolean","title":"Has Password"},"linked_accounts":{"items":{"$ref":"#/components/schemas/LinkedAccountExport"},"type":"array","title":"Linked Accounts"}},"type":"object","required":["login_email","is_verified","has_password","linked_accounts"],"title":"CredentialsExport","description":"What the platform holds about how a student signs in. Never the password\nhash itself: only whether one exists."},"Currency":{"type":"string","enum":["EUR","USD"],"title":"Currency"},"CurrentSalary":{"properties":{"position":{"type":"string","title":"Position"},"seniority":{"anyOf":[{"$ref":"#/components/schemas/SeniorityBand"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"currency":{"$ref":"#/components/schemas/Currency"},"salary_band":{"anyOf":[{"$ref":"#/components/schemas/EurBand"},{"$ref":"#/components/schemas/UsdBand"}],"title":"Salary Band"},"remote_type":{"$ref":"#/components/schemas/RemoteType"}},"type":"object","required":["position","currency","salary_band","remote_type"],"title":"CurrentSalary","description":"Public read contract for a user's current salary entry.\n\nThe read counterpart of SalarySubmission, published from the application layer\nso the users module can echo the salary in ProfileRead without importing\nsalary.domain or salary.adapters. Carries only what was submitted through\nonboarding — the entry's id, history and CRM-side fields (city, company,\noffer_date, notes) stay inside the salary module."},"CvUploadCreate":{"properties":{"extension":{"type":"string","enum":["pdf","docx"],"title":"Extension"}},"additionalProperties":false,"type":"object","required":["extension"],"title":"CvUploadCreate","description":"Selects the upload ticket's object key extension, so the object itself tells\n`attach_cv_to_offer` which parser to run — no separate content-type field."},"CvUploadTicketRead":{"properties":{"object_key":{"type":"string","title":"Object Key","description":"The uploaded object's key. Pass it back to PUT .../cv to attach it."},"upload_url":{"type":"string","format":"uri","title":"Upload Url","description":"Signed URL to PUT the file to directly — a time-limited credential; never cache or log it."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"When the signed upload URL stops accepting uploads."},"max_bytes":{"type":"integer","title":"Max Bytes","description":"The largest file size the upload will accept."}},"type":"object","required":["object_key","upload_url","expires_at","max_bytes"],"title":"CvUploadTicketRead"},"DeletionConfirmationCreate":{"properties":{"token":{"type":"string","title":"Token","description":"Token from the emailed confirmation link"}},"type":"object","required":["token"],"title":"DeletionConfirmationCreate"},"DeletionScheduledRead":{"properties":{"deletion_scheduled_for":{"type":"string","format":"date-time","title":"Deletion Scheduled For"}},"type":"object","required":["deletion_scheduled_for"],"title":"DeletionScheduledRead"},"Education":{"properties":{"institution":{"type":"string","title":"Institution"},"qualification":{"type":"string","title":"Qualification"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"}},"additionalProperties":false,"type":"object","required":["institution","qualification","start","end"],"title":"Education"},"EnrollmentExport":{"properties":{"template_key":{"type":"string","title":"Template Key"},"started_on":{"type":"string","format":"date","title":"Started On"},"target_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target On"},"completed_items":{"items":{"$ref":"#/components/schemas/CompletedItemExport"},"type":"array","title":"Completed Items"}},"type":"object","required":["template_key","started_on","target_on","completed_items"],"title":"EnrollmentExport"},"EnrollmentRead":{"properties":{"started_on":{"type":"string","format":"date","title":"Started On"},"target_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target On"}},"type":"object","required":["started_on","target_on"],"title":"EnrollmentRead"},"EnrollmentStatus":{"type":"string","enum":["active","paused"],"title":"EnrollmentStatus"},"EntityType":{"type":"string","enum":["organisation","website","tool","agency","person"],"title":"EntityType"},"EurBand":{"type":"string","enum":["eur_under_10000","eur_10000_19999","eur_20000_29999","eur_30000_39999","eur_40000_49999","eur_50000_69999","eur_70000_99999","eur_100000_149999","eur_150000_plus","eur_prefer_not_to_say"],"title":"EurBand"},"Experience":{"properties":{"role":{"type":"string","title":"Role"},"company":{"type":"string","title":"Company"},"start":{"type":"string","title":"Start"},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"intro":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"technologies":{"items":{"type":"string"},"type":"array","title":"Technologies"}},"additionalProperties":false,"type":"object","required":["role","company","start","end","location","intro","bullets","technologies"],"title":"Experience"},"ExportAbout":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"retention_notes":{"items":{"type":"string"},"type":"array","title":"Retention Notes"}},"type":"object","required":["schema_version","generated_at","user_id","retention_notes"],"title":"ExportAbout"},"FileKind":{"type":"string","enum":["instructions","template","reference","script","asset"],"title":"FileKind"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"ForgotPasswordResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"}},"type":"object","title":"ForgotPasswordResponse"},"FrontmatterRead":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"version":{"type":"string","title":"Version"}},"type":"object","required":["name","description","version"],"title":"FrontmatterRead","description":"The identity a package declares in its SKILL.md frontmatter."},"GenericOfferCreate":{"properties":{"mode":{"type":"string","const":"generic","title":"Mode"},"role":{"type":"string","maxLength":200,"minLength":1,"title":"Role"},"seniority":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Seniority"},"stack":{"items":{"type":"string","maxLength":60},"type":"array","maxItems":40,"title":"Stack"},"posting_language":{"type":"string","enum":["en","es"],"title":"Posting Language","default":"en"},"stages":{"items":{"$ref":"#/components/schemas/SessionType"},"type":"array","maxItems":4,"minItems":1,"title":"Stages"}},"additionalProperties":false,"type":"object","required":["mode","role","stages"],"title":"GenericOfferCreate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HomeLevelProgressRead":{"properties":{"total":{"type":"integer","title":"Total"},"completed":{"type":"integer","title":"Completed"},"percent":{"type":"integer","title":"Percent"}},"type":"object","required":["total","completed","percent"],"title":"HomeLevelProgressRead"},"HomeSummaryRead":{"properties":{"overall":{"$ref":"#/components/schemas/HomeLevelProgressRead"},"current_level_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Level Key"},"is_all_complete":{"type":"boolean","title":"Is All Complete"},"levels":{"items":{"$ref":"#/components/schemas/LevelSummaryRead"},"type":"array","title":"Levels"},"next_item":{"anyOf":[{"$ref":"#/components/schemas/NextItemRead"},{"type":"null"}]},"enrollment_status":{"anyOf":[{"$ref":"#/components/schemas/EnrollmentStatus"},{"type":"null"}]}},"type":"object","required":["overall","current_level_key","is_all_complete","levels","next_item","enrollment_status"],"title":"HomeSummaryRead"},"InteractionCreate":{"properties":{"occurred_on":{"type":"string","format":"date","title":"Occurred On","description":"The day the interaction happened."},"type":{"$ref":"#/components/schemas/InteractionType","description":"What kind of interaction: intro_call, coffee_chat, interview, email, linkedin_message, event or other."},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes","description":"Up to 10,000 characters. An empty string is stored as null."}},"additionalProperties":false,"type":"object","required":["occurred_on","type"],"title":"InteractionCreate"},"InteractionExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"occurred_on":{"type":"string","format":"date","title":"Occurred On"},"type":{"$ref":"#/components/schemas/InteractionType"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","contact_id","occurred_on","type","created_at","updated_at"],"title":"InteractionExport","description":"GDPR export contract: every stored field of one logged interaction except the\nowner's id. `contact_id` ties it to an entry in the contacts export."},"InteractionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"occurred_on":{"type":"string","format":"date","title":"Occurred On"},"type":{"$ref":"#/components/schemas/InteractionType"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","contact_id","occurred_on","type","notes","created_at","updated_at"],"title":"InteractionRead"},"InteractionType":{"type":"string","enum":["intro_call","coffee_chat","interview","email","linkedin_message","event","other"],"title":"InteractionType"},"InteractionUpdate":{"properties":{"occurred_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Occurred On","description":"The day the interaction happened."},"type":{"anyOf":[{"$ref":"#/components/schemas/InteractionType"},{"type":"null"}],"description":"What kind of interaction: intro_call, coffee_chat, interview, email, linkedin_message, event or other."},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes","description":"Up to 10,000 characters. An empty string is stored as null."}},"additionalProperties":false,"type":"object","title":"InteractionUpdate","description":"Every field optional. Omitted fields are left unchanged; `null` clears the\nnotes. `occurred_on` and `type` cannot be null."},"InterviewOutcome":{"type":"string","enum":["pending","passed","did_not_pass"],"title":"InterviewOutcome"},"InterviewProcessCreate":{"properties":{"application_id":{"type":"string","format":"uuid","title":"Application Id","description":"The job application this interview process is for. Must be one of the student's own applications, otherwise 422. Fixed once set; deleting the application deletes the process."},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title","description":"Tells two processes for the same application apart, for example \"Platform team, second attempt\". Up to 200 characters. An empty string is stored as null."},"status":{"$ref":"#/components/schemas/InterviewProcessStatus","description":"Where the process stands: in_progress, offer, rejected, withdrawn or on_hold. Defaults to `in_progress`.","default":"in_progress"},"notes":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Notes","description":"Overall notes on the process. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."}},"additionalProperties":false,"type":"object","required":["application_id"],"title":"InterviewProcessCreate"},"InterviewProcessExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"application_id":{"type":"string","format":"uuid","title":"Application Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"$ref":"#/components/schemas/InterviewProcessStatus"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"round_count":{"type":"integer","title":"Round Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","application_id","status","created_at","updated_at"],"title":"InterviewProcessExport","description":"GDPR export contract: every stored field of one interview process except the\nowner's id, plus the derived `round_count` the student sees in the tracker.\n`application_id` ties it to an entry in the job applications export."},"InterviewProcessRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"application_id":{"type":"string","format":"uuid","title":"Application Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"$ref":"#/components/schemas/InterviewProcessStatus"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"round_count":{"type":"integer","title":"Round Count","description":"How many rounds the process has. Read-only: it follows the rounds."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","application_id","title","status","notes","round_count","created_at","updated_at"],"title":"InterviewProcessRead"},"InterviewProcessStatus":{"type":"string","enum":["in_progress","offer","rejected","withdrawn","on_hold"],"title":"InterviewProcessStatus"},"InterviewProcessUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title","description":"Tells two processes for the same application apart, for example \"Platform team, second attempt\". Up to 200 characters. An empty string is stored as null."},"status":{"anyOf":[{"$ref":"#/components/schemas/InterviewProcessStatus"},{"type":"null"}],"description":"Where the process stands: in_progress, offer, rejected, withdrawn or on_hold."},"notes":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Notes","description":"Overall notes on the process. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."}},"additionalProperties":false,"type":"object","title":"InterviewProcessUpdate","description":"Every field optional. Omitted fields are left unchanged; `null` clears an\noptional field. `status` cannot be null. `application_id` is not accepted: a\nprocess cannot move to another application."},"InterviewRoundCreate":{"properties":{"round_type":{"$ref":"#/components/schemas/InterviewRoundType","description":"What kind of round: coding, systems_design, behavioural or other."},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title","description":"Optional label for the round, for example \"Onsite 2\". Up to 200 characters. An empty string is stored as null."},"occurred_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Occurred On","description":"The day the round took place; null when not set yet."},"interviewer":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Interviewer","description":"Who interviewed the student, as typed. Up to 200 characters. An empty string is stored as null."},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id","description":"The networking contact the student spoke with. Must be one of the student's own contacts, otherwise 422. Deleting the contact clears it."},"outcome":{"$ref":"#/components/schemas/InterviewOutcome","description":"How the round went: pending, passed or did_not_pass. Defaults to `pending`.","default":"pending"},"notes":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Notes","description":"What happened in the round. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."},"questions":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Questions","description":"The questions the student was asked, one per line. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."},"takeaways":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Takeaways","description":"What the student would do differently next time. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."}},"additionalProperties":false,"type":"object","required":["round_type"],"title":"InterviewRoundCreate"},"InterviewRoundExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"process_id":{"type":"string","format":"uuid","title":"Process Id"},"round_type":{"$ref":"#/components/schemas/InterviewRoundType"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"occurred_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Occurred On"},"interviewer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interviewer"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"outcome":{"$ref":"#/components/schemas/InterviewOutcome"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"questions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Questions"},"takeaways":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Takeaways"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","process_id","round_type","outcome","created_at","updated_at"],"title":"InterviewRoundExport","description":"GDPR export contract: every stored field of one interview round except the\nowner's id. `process_id` ties it to an entry in the interview processes export.\nThe rich-text fields are exported exactly as stored."},"InterviewRoundRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"process_id":{"type":"string","format":"uuid","title":"Process Id"},"round_type":{"$ref":"#/components/schemas/InterviewRoundType"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"occurred_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Occurred On"},"interviewer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interviewer"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"outcome":{"$ref":"#/components/schemas/InterviewOutcome"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"questions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Questions"},"takeaways":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Takeaways"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","process_id","round_type","title","occurred_on","interviewer","contact_id","outcome","notes","questions","takeaways","created_at","updated_at"],"title":"InterviewRoundRead"},"InterviewRoundType":{"type":"string","enum":["coding","systems_design","behavioural","other"],"title":"InterviewRoundType"},"InterviewRoundUpdate":{"properties":{"round_type":{"anyOf":[{"$ref":"#/components/schemas/InterviewRoundType"},{"type":"null"}],"description":"What kind of round: coding, systems_design, behavioural or other."},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title","description":"Optional label for the round, for example \"Onsite 2\". Up to 200 characters. An empty string is stored as null."},"occurred_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Occurred On","description":"The day the round took place; null when not set yet."},"interviewer":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Interviewer","description":"Who interviewed the student, as typed. Up to 200 characters. An empty string is stored as null."},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id","description":"The networking contact the student spoke with. Must be one of the student's own contacts, otherwise 422. Deleting the contact clears it."},"outcome":{"anyOf":[{"$ref":"#/components/schemas/InterviewOutcome"},{"type":"null"}],"description":"How the round went: pending, passed or did_not_pass."},"notes":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Notes","description":"What happened in the round. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."},"questions":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Questions","description":"The questions the student was asked, one per line. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."},"takeaways":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Takeaways","description":"What the student would do differently next time. Markdown, up to 50,000 characters, stored and returned exactly as sent: leading spaces and trailing newlines are kept. A value that is only whitespace is stored as null."}},"additionalProperties":false,"type":"object","title":"InterviewRoundUpdate","description":"Every field optional. Omitted fields are left unchanged; `null` clears an\noptional field. `round_type` and `outcome` cannot be null."},"ItemCompletionRead":{"properties":{"item_id":{"type":"string","format":"uuid","title":"Item Id"},"is_completed":{"type":"boolean","title":"Is Completed"},"level_progress":{"$ref":"#/components/schemas/LevelProgressRead"},"summary":{"$ref":"#/components/schemas/ChecklistSummaryRead"}},"type":"object","required":["item_id","is_completed","level_progress","summary"],"title":"ItemCompletionRead"},"ItemCompletionUpdate":{"properties":{"is_completed":{"type":"boolean","title":"Is Completed"}},"type":"object","required":["is_completed"],"title":"ItemCompletionUpdate"},"ItemRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"is_completed":{"type":"boolean","title":"Is Completed"}},"type":"object","required":["id","key","name","url","is_completed"],"title":"ItemRead"},"JobSpec":{"properties":{"title":{"type":"string","title":"Title"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"seniority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seniority"},"employment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employment Type"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"is_remote":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Remote"},"required_skills":{"items":{"type":"string"},"type":"array","title":"Required Skills"},"preferred_skills":{"items":{"type":"string"},"type":"array","title":"Preferred Skills"},"responsibilities":{"items":{"type":"string"},"type":"array","title":"Responsibilities"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages"},"posting_language":{"type":"string","title":"Posting Language"}},"additionalProperties":false,"type":"object","required":["title","company","seniority","employment_type","location","is_remote","required_skills","preferred_skills","responsibilities","languages","posting_language"],"title":"JobSpec","description":"Structured job specification extracted from a job posting.\n\nExtracted by Haiku with structured output. Must not infer fields — if the\nposting doesn't state seniority, seniority is null."},"Language":{"properties":{"name":{"type":"string","title":"Name"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},"additionalProperties":false,"type":"object","required":["name","level"],"title":"Language"},"LegalBundleRead":{"properties":{"version":{"type":"string","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"documents":{"items":{"$ref":"#/components/schemas/LegalDocumentRead"},"type":"array","title":"Documents"}},"type":"object","required":["version","created_at","documents"],"title":"LegalBundleRead"},"LegalDocumentRead":{"properties":{"type":{"$ref":"#/components/schemas/LegalDocumentType"},"url":{"type":"string","title":"Url"}},"type":"object","required":["type","url"],"title":"LegalDocumentRead"},"LegalDocumentType":{"type":"string","enum":["privacy_policy","ai_acceptable_use_policy","client_portal_addendum"],"title":"LegalDocumentType"},"LevelProgressRead":{"properties":{"total":{"type":"integer","title":"Total"},"completed":{"type":"integer","title":"Completed"},"percent":{"type":"integer","title":"Percent"}},"type":"object","required":["total","completed","percent"],"title":"LevelProgressRead"},"LevelRead":{"properties":{"key":{"type":"string","title":"Key"},"month_index":{"type":"integer","title":"Month Index"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"progress":{"$ref":"#/components/schemas/LevelProgressRead"},"items":{"items":{"$ref":"#/components/schemas/ItemRead"},"type":"array","title":"Items"},"resources":{"items":{"$ref":"#/components/schemas/ResourceRead"},"type":"array","title":"Resources"},"books":{"items":{"$ref":"#/components/schemas/BookRead"},"type":"array","title":"Books"}},"type":"object","required":["key","month_index","name","description","progress","items","resources","books"],"title":"LevelRead"},"LevelSummaryRead":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"progress":{"$ref":"#/components/schemas/HomeLevelProgressRead"},"is_current":{"type":"boolean","title":"Is Current"},"is_locked":{"type":"boolean","title":"Is Locked"}},"type":"object","required":["key","name","progress","is_current","is_locked"],"title":"LevelSummaryRead"},"LinkedAccountExport":{"properties":{"provider":{"type":"string","title":"Provider"},"email":{"type":"string","title":"Email"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"}},"type":"object","required":["provider","email","linked_at"],"title":"LinkedAccountExport"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MagicLinkRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"MagicLinkRequest"},"MagicLinkRequestResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"}},"type":"object","title":"MagicLinkRequestResponse"},"MagicLinkVerifyResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"user":{"$ref":"#/components/schemas/AuthUserRead"}},"type":"object","required":["access_token","user"],"title":"MagicLinkVerifyResponse"},"MembershipExport":{"properties":{"status":{"$ref":"#/components/schemas/EnrollmentStatus"},"started_on":{"type":"string","format":"date","title":"Started On"},"target_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target On"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"}},"type":"object","required":["status","started_on","target_on","paused_at"],"title":"MembershipExport","description":"The enrolment fields included in the client's personal-data export."},"MembershipRead":{"properties":{"status":{"$ref":"#/components/schemas/EnrollmentStatus"},"started_on":{"type":"string","format":"date","title":"Started On"},"target_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target On"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"}},"type":"object","required":["status","started_on","target_on","paused_at"],"title":"MembershipRead"},"MySkillRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug","description":"The package's `name`."},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"description":{"type":"string","title":"Description","description":"The package's `description`."},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url","description":"Demo video link, or null when none was given."},"version":{"type":"string","title":"Version","description":"The live, published version; the newest version in any status when nothing has been published yet. A newer update awaiting review or rejected appears under `pending_update` instead, never here."},"status":{"$ref":"#/components/schemas/SkillStatus","description":"Review status of `version` above: the live, published version's status, or the newest version's status when nothing has been published yet."},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason","description":"Why the newest version was rejected; null unless `status` is `rejected`."},"package_size_bytes":{"type":"integer","title":"Package Size Bytes"},"download_count":{"type":"integer","title":"Download Count","description":"Downloads of `version` above: one per Member; the author's own downloads never count."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"pending_update":{"anyOf":[{"$ref":"#/components/schemas/PendingUpdateRead"},{"type":"null"}],"description":"A newer version proposed via `POST /skills/{id}/versions`, awaiting review or rejected, while this published Skill stays untouched; null when there is none."}},"type":"object","required":["id","slug","title","summary","description","tags","video_url","version","status","rejection_reason","package_size_bytes","download_count","created_at","updated_at","published_at","pending_update"],"title":"MySkillRead","description":"One of the caller's own Skills with its newest version, in any status."},"NextItemRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"level_key":{"type":"string","title":"Level Key"}},"type":"object","required":["id","key","name","level_key"],"title":"NextItemRead"},"NextSessionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"Session start, UTC — the client counts down to it."},"end_time":{"type":"string","format":"date-time","title":"End Time","description":"Session end, UTC (ISO-8601)."},"join_meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Join Meeting Url","description":"Link to join the live session, or null when none was published."},"is_live":{"type":"boolean","title":"Is Live","description":"True when the session is running right now, judged against server time."}},"type":"object","required":["id","title","start_time","end_time","join_meeting_url","is_live"],"title":"NextSessionRead"},"NextSessionResponse":{"properties":{"event":{"anyOf":[{"$ref":"#/components/schemas/NextSessionRead"},{"type":"null"}]}},"type":"object","required":["event"],"title":"NextSessionResponse","description":"Wrapper so that 'no session scheduled' is a null field rather than an\nempty body — and so this response can grow fields later without breaking\nclients."},"OfferCvExport":{"properties":{"offer_id":{"type":"string","format":"uuid","title":"Offer Id"},"raw_text":{"type":"string","title":"Raw Text"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["offer_id","raw_text","created_at","updated_at"],"title":"OfferCvExport"},"OfferCvRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"offer_id":{"type":"string","format":"uuid","title":"Offer Id"},"raw_text":{"type":"string","title":"Raw Text","description":"The CV's extracted text, as read back from the file."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","offer_id","raw_text","created_at","updated_at"],"title":"OfferCvRead","description":"`user_id` is deliberately omitted — the offer it is attached to already scopes\nit to the caller."},"OfferExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"mode":{"$ref":"#/components/schemas/OfferMode"},"status":{"$ref":"#/components/schemas/OfferStatus"},"raw_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Text"},"extracted":{"additionalProperties":true,"type":"object","title":"Extracted"},"stages":{"items":{},"type":"array","title":"Stages"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","mode","status","raw_text","extracted","stages","created_at"],"title":"OfferExport"},"OfferExtractionCreate":{"properties":{"raw_text":{"type":"string","maxLength":20000,"minLength":20,"pattern":"^[^\\u0000]*$","title":"Raw Text","description":"The pasted job posting."}},"additionalProperties":false,"type":"object","required":["raw_text"],"title":"OfferExtractionCreate"},"OfferExtractionResultRead":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","enum":["pending","succeeded","failed"],"title":"Status"},"result":{"anyOf":[{"$ref":"#/components/schemas/JobSpec"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["task_id","status"],"title":"OfferExtractionResultRead"},"OfferExtractionTaskRead":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","const":"queued","title":"Status"}},"type":"object","required":["task_id","status"],"title":"OfferExtractionTaskRead"},"OfferMode":{"type":"string","enum":["generic","real"],"title":"OfferMode"},"OfferRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"mode":{"$ref":"#/components/schemas/OfferMode"},"status":{"$ref":"#/components/schemas/OfferStatus"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"stages":{"items":{"$ref":"#/components/schemas/SessionType"},"type":"array","title":"Stages"},"completed_stages":{"items":{"$ref":"#/components/schemas/SessionType"},"type":"array","title":"Completed Stages"},"next_stage":{"anyOf":[{"$ref":"#/components/schemas/SessionType"},{"type":"null"}]},"average_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Average Score"},"last_session_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Session At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"raw_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Text"},"extracted":{"anyOf":[{"$ref":"#/components/schemas/JobSpec"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"}},"type":"object","required":["id","mode","status","title","company","stages","completed_stages","next_stage","average_score","last_session_at","created_at","raw_text","extracted","archived_at"],"title":"OfferRead"},"OfferStatus":{"type":"string","enum":["active","archived"],"title":"OfferStatus"},"OfferSummaryRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"mode":{"$ref":"#/components/schemas/OfferMode"},"status":{"$ref":"#/components/schemas/OfferStatus"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"stages":{"items":{"$ref":"#/components/schemas/SessionType"},"type":"array","title":"Stages"},"completed_stages":{"items":{"$ref":"#/components/schemas/SessionType"},"type":"array","title":"Completed Stages"},"next_stage":{"anyOf":[{"$ref":"#/components/schemas/SessionType"},{"type":"null"}]},"average_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Average Score"},"last_session_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Session At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","mode","status","title","company","stages","completed_stages","next_stage","average_score","last_session_at","created_at"],"title":"OfferSummaryRead"},"OmittedItem":{"properties":{"item":{"type":"string","title":"Item"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["item","reason"],"title":"OmittedItem","description":"One item cut by the deterministic pruning step, with why.\n\nPopulated by pruning alone, never by a model — pruning is a pure function\nover the profile, the JobSpec and the CoverageReport, so it always knows\nexactly what it dropped and can say so."},"OpportunityType":{"type":"string","enum":["full_time","part_time","contract","internship"],"title":"OpportunityType"},"OriginalLetter":{"properties":{"salutation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salutation"},"opening":{"type":"string","title":"Opening"},"body":{"items":{"type":"string"},"type":"array","title":"Body"},"closing":{"type":"string","title":"Closing"},"signoff":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signoff"}},"additionalProperties":false,"type":"object","required":["salutation","opening","body","closing","signoff"],"title":"OriginalLetter","description":"The user's draft, sliced from their own text by index. Never regenerated,\nbecause the before/after view is only trustworthy if this side is verbatim."},"PackageFileRead":{"properties":{"path":{"type":"string","title":"Path"},"size_bytes":{"type":"integer","title":"Size Bytes"},"kind":{"$ref":"#/components/schemas/FileKind"},"is_binary":{"type":"boolean","title":"Is Binary"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview","description":"A bounded prefix of the file's text content, or null for a binary file."},"preview_truncated":{"type":"boolean","title":"Preview Truncated"}},"type":"object","required":["path","size_bytes","kind","is_binary","preview","preview_truncated"],"title":"PackageFileRead","description":"One file inside the inspected package."},"Page_ApplicationRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApplicationRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[ApplicationRead]"},"Page_CalendarEventRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CalendarEventRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[CalendarEventRead]"},"Page_ContactRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContactRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[ContactRead]"},"Page_InteractionRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InteractionRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[InteractionRead]"},"Page_InterviewProcessRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InterviewProcessRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[InterviewProcessRead]"},"Page_InterviewRoundRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InterviewRoundRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[InterviewRoundRead]"},"Page_OfferSummaryRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OfferSummaryRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[OfferSummaryRead]"},"Page_SkillSummaryRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SkillSummaryRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[SkillSummaryRead]"},"PdfContact":{"properties":{"full_name":{"type":"string","maxLength":200,"minLength":1,"title":"Full Name"},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"},"links":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":25,"title":"Links"}},"type":"object","required":["full_name"],"title":"PdfContact"},"PdfEducation":{"properties":{"institution":{"type":"string","maxLength":200,"minLength":1,"title":"Institution"},"qualification":{"type":"string","maxLength":300,"minLength":1,"title":"Qualification"},"start":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"End"}},"type":"object","required":["institution","qualification"],"title":"PdfEducation"},"PdfExperience":{"properties":{"role":{"type":"string","maxLength":200,"minLength":1,"title":"Role"},"company":{"type":"string","maxLength":200,"minLength":1,"title":"Company"},"start":{"type":"string","maxLength":50,"minLength":1,"title":"Start"},"end":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"End"},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"},"intro":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Intro"},"bullets":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":12,"title":"Bullets"},"technologies":{"items":{"type":"string","maxLength":100},"type":"array","maxItems":40,"title":"Technologies"}},"type":"object","required":["role","company","start"],"title":"PdfExperience"},"PdfLabels":{"properties":{"summary":{"type":"string","maxLength":60,"minLength":1,"title":"Summary"},"experience":{"type":"string","maxLength":60,"minLength":1,"title":"Experience"},"skills":{"type":"string","maxLength":60,"minLength":1,"title":"Skills"},"projects":{"type":"string","maxLength":60,"minLength":1,"title":"Projects"},"education":{"type":"string","maxLength":60,"minLength":1,"title":"Education"},"certifications":{"type":"string","maxLength":60,"minLength":1,"title":"Certifications"},"courses":{"type":"string","maxLength":60,"minLength":1,"title":"Courses"},"languages":{"type":"string","maxLength":60,"minLength":1,"title":"Languages"},"technologies":{"type":"string","maxLength":60,"minLength":1,"title":"Technologies"},"present":{"type":"string","maxLength":60,"minLength":1,"title":"Present"}},"type":"object","required":["summary","experience","skills","projects","education","certifications","courses","languages","technologies","present"],"title":"PdfLabels","description":"The request-side shape of SectionLabels.\n\nBounded but not enumerated: the client echoes back the labels this API\nstamped onto its own adaptation result, and pinning them to a fixed set here\nwould break the moment the wording is corrected."},"PdfLanguage":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"level":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Level"}},"type":"object","required":["name"],"title":"PdfLanguage"},"PdfLetter":{"properties":{"salutation":{"type":"string","maxLength":200,"minLength":1,"title":"Salutation"},"opening":{"type":"string","maxLength":2000,"minLength":1,"title":"Opening"},"background":{"type":"string","maxLength":2000,"minLength":1,"title":"Background"},"bridge":{"type":"string","maxLength":500,"minLength":1,"title":"Bridge"},"skills":{"items":{"$ref":"#/components/schemas/PdfSkillBlock"},"type":"array","maxItems":2,"minItems":1,"title":"Skills"},"closing":{"type":"string","maxLength":2000,"minLength":1,"title":"Closing"},"signoff":{"type":"string","maxLength":100,"minLength":1,"title":"Signoff"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"}},"type":"object","required":["salutation","opening","background","bridge","skills","closing","signoff"],"title":"PdfLetter","description":"The request-side shape of an AdaptedLetter, not a subclass of it.\n\nThe adapt pipeline enforces the word budget, but this endpoint accepts\narbitrary client input — including the user's inline edits — so it re-bounds\neverything itself rather than trusting that the body came from us.\n\nDeclared standalone rather than as `AdaptedLetter` subclass: `skills` needs\nto narrow from `SkillBlock` to `PdfSkillBlock`, but `list` is invariant, so\noverriding a mutable list field with a narrower item type in a subclass\nviolates substitutability (pyright's reportIncompatibleVariableOverride) —\na subclass must accept everything its parent accepts. A standalone schema\nsidesteps that entirely, and it keeps the per-item bounds in the OpenAPI\nschema, where a client editing the letter can actually see them; a bound\nenforced only inside a validator is invisible to Swagger. The router\nconverts one of these into an `AdaptedLetter` at the boundary before\nhanding it to the renderer."},"PdfProfile":{"properties":{"contact":{"$ref":"#/components/schemas/PdfContact"},"headline":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Headline"},"summary":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Summary"},"experience":{"items":{"$ref":"#/components/schemas/PdfExperience"},"type":"array","maxItems":12,"title":"Experience"},"education":{"items":{"$ref":"#/components/schemas/PdfEducation"},"type":"array","maxItems":40,"title":"Education"},"courses":{"items":{"type":"string","maxLength":300},"type":"array","maxItems":30,"title":"Courses"},"skills":{"items":{"type":"string","maxLength":100},"type":"array","maxItems":60,"title":"Skills"},"languages":{"items":{"$ref":"#/components/schemas/PdfLanguage"},"type":"array","maxItems":30,"title":"Languages"},"certifications":{"items":{"type":"string","maxLength":300},"type":"array","maxItems":60,"title":"Certifications"},"projects":{"items":{"$ref":"#/components/schemas/PdfProject"},"type":"array","maxItems":12,"title":"Projects"}},"type":"object","required":["contact"],"title":"PdfProfile","description":"The request-side shape of a CVProfile, not a subclass of it.\n\nThe adapt pipeline enforces the page budget, but this endpoint accepts\narbitrary client input — including the student's inline edits — so it\nre-bounds everything itself rather than trusting that the body came from us.\n\nDeclared standalone rather than as a `CVProfile` subclass for the reason\n`PdfLetter` records in the cover letter module: `list` is invariant, so\nnarrowing a list field's item type in a subclass violates substitutability\n(pyright's reportIncompatibleVariableOverride). A standalone schema also\nkeeps the per-item bounds in the OpenAPI schema, where a client editing a CV\ncan see them; a bound enforced only inside a validator is invisible to\nSwagger. The router converts one of these into a `CVProfile` at the boundary\nbefore handing it to the renderer."},"PdfProject":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":2000,"minLength":1,"title":"Description"},"technologies":{"items":{"type":"string","maxLength":100},"type":"array","maxItems":40,"title":"Technologies"}},"type":"object","required":["name","description"],"title":"PdfProject"},"PdfSkillBlock":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"narrative":{"type":"string","maxLength":3000,"minLength":1,"title":"Narrative"}},"additionalProperties":false,"type":"object","required":["label","narrative"],"title":"PdfSkillBlock","description":"SkillBlock with request-side bounds — see PdfLetter."},"PendingUpdateRead":{"properties":{"version":{"type":"string","title":"Version"},"status":{"$ref":"#/components/schemas/SkillStatus"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason","description":"Why the update was rejected; null unless `status` is `rejected`."}},"type":"object","required":["version","status","submitted_at","rejection_reason"],"title":"PendingUpdateRead","description":"An author's own proposed update to their published Skill: a newer version that\nis awaiting review, or was rejected, while the published Skill is untouched."},"PersonalDataExportRead":{"properties":{"about":{"$ref":"#/components/schemas/ExportAbout"},"account":{"$ref":"#/components/schemas/AccountExport"},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileExport"},{"type":"null"}]},"consent":{"anyOf":[{"$ref":"#/components/schemas/ConsentExport"},{"type":"null"}]},"credentials":{"$ref":"#/components/schemas/CredentialsExport"},"salary":{"items":{"$ref":"#/components/schemas/SalaryEntryExport"},"type":"array","title":"Salary"},"checklist":{"items":{"$ref":"#/components/schemas/EnrollmentExport"},"type":"array","title":"Checklist"},"job_applications":{"items":{"$ref":"#/components/schemas/ApplicationExport"},"type":"array","title":"Job Applications"},"networking_contacts":{"items":{"$ref":"#/components/schemas/ContactExport"},"type":"array","title":"Networking Contacts"},"networking_interactions":{"items":{"$ref":"#/components/schemas/InteractionExport"},"type":"array","title":"Networking Interactions"},"interview_processes":{"items":{"$ref":"#/components/schemas/InterviewProcessExport"},"type":"array","title":"Interview Processes"},"interview_rounds":{"items":{"$ref":"#/components/schemas/InterviewRoundExport"},"type":"array","title":"Interview Rounds"},"enrollment":{"anyOf":[{"$ref":"#/components/schemas/MembershipExport"},{"type":"null"}]},"resource_submissions":{"items":{"$ref":"#/components/schemas/ResourceSubmissionExport"},"type":"array","title":"Resource Submissions"},"english_interview_offers":{"items":{"$ref":"#/components/schemas/OfferExport"},"type":"array","title":"English Interview Offers"},"english_interview_sessions":{"items":{"$ref":"#/components/schemas/SessionExport"},"type":"array","title":"English Interview Sessions"},"english_interview_turns":{"items":{"$ref":"#/components/schemas/TurnExport"},"type":"array","title":"English Interview Turns"},"english_interview_reports":{"items":{"$ref":"#/components/schemas/ReportExport"},"type":"array","title":"English Interview Reports"},"english_interview_voice_tickets":{"items":{"$ref":"#/components/schemas/VoiceTicketExport"},"type":"array","title":"English Interview Voice Tickets"},"english_interview_weakness_profile":{"$ref":"#/components/schemas/WeaknessProfile"},"english_interview_offer_cv":{"items":{"$ref":"#/components/schemas/OfferCvExport"},"type":"array","title":"English Interview Offer Cv"},"skills":{"items":{"$ref":"#/components/schemas/SkillExport"},"type":"array","title":"Skills"},"skill_downloads":{"items":{"$ref":"#/components/schemas/SkillDownloadExport"},"type":"array","title":"Skill Downloads"},"audit_events":{"items":{"$ref":"#/components/schemas/AuditEventExport"},"type":"array","title":"Audit Events"}},"type":"object","required":["about","account","profile","consent","credentials","salary","checklist","job_applications","networking_contacts","networking_interactions","interview_processes","interview_rounds","enrollment","resource_submissions","english_interview_offers","english_interview_sessions","english_interview_turns","english_interview_reports","english_interview_voice_tickets","english_interview_weakness_profile","english_interview_offer_cv","skills","skill_downloads","audit_events"],"title":"PersonalDataExportRead","description":"The downloaded file's schema, published in Swagger as its field definitions."},"Priority-Output":{"type":"string","enum":["HIGH","MEDIUM","LOW"],"title":"Priority"},"ProfileAnalysis":{"properties":{"score":{"type":"integer","title":"Score"},"band":{"$ref":"#/components/schemas/Band"},"completeness_percent":{"type":"integer","title":"Completeness Percent"},"narrative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narrative"},"detected_skills":{"items":{"type":"string"},"type":"array","title":"Detected Skills"},"recommendations":{"items":{"$ref":"#/components/schemas/Recommendation"},"type":"array","title":"Recommendations"}},"additionalProperties":false,"type":"object","required":["score","band","completeness_percent","narrative","detected_skills","recommendations"],"title":"ProfileAnalysis","description":"The API-facing projection of a ScoreBreakdown, without the check objects."},"ProfileExport":{"properties":{"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"why_joined":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why Joined"},"years_experience":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Years Experience"},"current_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Role"},"english_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"English Level"},"has_done_similar_programs":{"anyOf":[{"$ref":"#/components/schemas/SimilarProgramsExperience"},{"type":"null"}]},"education_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education Level"},"primary_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Goal"},"six_month_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Six Month Result"},"pre_start_concerns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Start Concerns"},"onboarding_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Onboarding Completed At"},"onboarding_current_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Onboarding Current Step"},"technologies":{"items":{"type":"string"},"type":"array","title":"Technologies"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["technologies","created_at","updated_at"],"title":"ProfileExport"},"ProfileRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"why_joined":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why Joined"},"years_experience":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Years Experience"},"current_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Role"},"technologies":{"items":{"$ref":"#/components/schemas/ProfileTechnology"},"type":"array","title":"Technologies"},"salary":{"anyOf":[{"$ref":"#/components/schemas/CurrentSalary"},{"type":"null"}]},"enrollment":{"anyOf":[{"$ref":"#/components/schemas/MembershipRead"},{"type":"null"}]},"english_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"English Level"},"has_done_similar_programs":{"anyOf":[{"$ref":"#/components/schemas/SimilarProgramsExperience"},{"type":"null"}]},"education_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education Level"},"primary_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Goal"},"six_month_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Six Month Result"},"pre_start_concerns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Start Concerns"},"accepted_terms_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted Terms At"},"terms_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Version"},"onboarding_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Onboarding Completed At"},"onboarding_current_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Onboarding Current Step"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["user_id","email","full_name","phone","address","why_joined","years_experience","current_role","technologies","salary","enrollment","english_level","has_done_similar_programs","education_level","primary_goal","six_month_result","pre_start_concerns","accepted_terms_at","terms_version","onboarding_completed_at","onboarding_current_step","created_at","updated_at"],"title":"ProfileRead"},"ProfileTechnology":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_approved":{"type":"boolean","title":"Is Approved"}},"type":"object","required":["id","name","is_approved"],"title":"ProfileTechnology"},"ProfileUpdate":{"properties":{"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"why_joined":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why Joined"},"years_experience":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Years Experience"},"current_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Role"},"technologies":{"anyOf":[{"items":{"type":"string","maxLength":100},"type":"array"},{"type":"null"}],"title":"Technologies"},"english_level":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"English Level"},"has_done_similar_programs":{"anyOf":[{"$ref":"#/components/schemas/SimilarProgramsExperience"},{"type":"null"}]},"education_level":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Education Level"},"primary_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Goal"},"six_month_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Six Month Result"},"pre_start_concerns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Start Concerns"},"accepted_terms":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepted Terms"},"complete":{"type":"boolean","title":"Complete","default":false},"terms_version":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Terms Version","description":"Ignored: the server stamps the current legal bundle on acceptance. Still accepted so existing clients do not get a 422; will be removed.","deprecated":true},"onboarding_current_step":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Onboarding Current Step"},"salary":{"anyOf":[{"$ref":"#/components/schemas/SalarySubmission"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ProfileUpdate"},"Project":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"technologies":{"items":{"type":"string"},"type":"array","title":"Technologies"}},"additionalProperties":false,"type":"object","required":["name","description","technologies"],"title":"Project"},"ProviderCostItem":{"properties":{"provider":{"type":"string","maxLength":200,"title":"Provider"},"unit":{"type":"string","maxLength":200,"title":"Unit"},"unit_count":{"type":"number","minimum":0.0,"title":"Unit Count"},"cost_micro_usd":{"type":"integer","maximum":4700000.0,"minimum":0.0,"title":"Cost Micro Usd"}},"type":"object","required":["provider","unit","unit_count","cost_micro_usd"],"title":"ProviderCostItem"},"QuotaRead":{"properties":{"limit":{"type":"integer","title":"Limit","description":"Runs allowed per ISO week."},"used":{"type":"integer","title":"Used","description":"Runs counted against the caller this ISO week. Can go down: a refunded failure returns its slot."},"resets_at":{"type":"string","format":"date-time","title":"Resets At","description":"When `used` returns to 0: next Monday 00:00 UTC."}},"type":"object","required":["limit","used","resets_at"],"title":"QuotaRead","description":"One AI feature's weekly allowance for the caller. Shared by every\nfeature's `/quota` route so the three cannot drift apart."},"RealOfferCreate":{"properties":{"mode":{"type":"string","const":"real","title":"Mode"},"raw_text":{"type":"string","maxLength":20000,"minLength":20,"pattern":"^[^\\u0000]*$","title":"Raw Text","description":"The pasted job posting."},"extracted":{"$ref":"#/components/schemas/JobSpec"},"stages":{"items":{"$ref":"#/components/schemas/SessionType"},"type":"array","maxItems":4,"minItems":1,"title":"Stages"}},"additionalProperties":false,"type":"object","required":["mode","raw_text","extracted","stages"],"title":"RealOfferCreate"},"Recommendation":{"properties":{"id":{"type":"string","title":"Id"},"section":{"$ref":"#/components/schemas/Section"},"priority":{"$ref":"#/components/schemas/Priority-Output"},"title":{"type":"string","title":"Title"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets","default":[]},"rewrite":{"anyOf":[{"$ref":"#/components/schemas/Rewrite"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","section","priority","title"],"title":"Recommendation","description":"A failed check, as the client receives it.\n\n`id`, `section` and `priority` come from the rubric. Slice 2 fills\n`bullets` and `rewrite` with model-written copy but may not touch these."},"RegisterPendingResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"RegisterPendingResponse"},"RegisterRequest":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"}},"type":"object","required":["first_name","last_name","email","password"],"title":"RegisterRequest"},"RemoteType":{"type":"string","enum":["full_remote","hybrid","in_person"],"title":"RemoteType"},"ReportEnvelopeRead":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"status":{"$ref":"#/components/schemas/ReportEnvelopeStatus","description":"`pending`: the interview is running or its report is being produced, keep polling. `done`: `report` is set. `failed`: the report could not be produced; retry it. `unavailable`: the session was aborted and never produces a report."},"report":{"anyOf":[{"$ref":"#/components/schemas/ReportRead"},{"type":"null"}],"description":"Set only when `status` is `done`."}},"type":"object","required":["session_id","status","report"],"title":"ReportEnvelopeRead"},"ReportEnvelopeStatus":{"type":"string","enum":["pending","done","failed","unavailable"],"title":"ReportEnvelopeStatus"},"ReportExport":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"rubric_version":{"type":"string","title":"Rubric Version"},"scores":{"additionalProperties":true,"type":"object","title":"Scores"},"verdict":{"$ref":"#/components/schemas/Verdict"},"content_md":{"type":"string","title":"Content Md"},"errors":{"items":{},"type":"array","title":"Errors"},"improvements":{"items":{},"type":"array","title":"Improvements"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["session_id","rubric_version","scores","verdict","content_md","errors","improvements","created_at"],"title":"ReportExport"},"ReportRead":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"rubric_version":{"type":"string","title":"Rubric Version","description":"The rubric the report was scored against; scores are only comparable within one version."},"scores":{"additionalProperties":true,"type":"object","title":"Scores","description":"Per-dimension scores keyed by dimension name, each an object of integer sub-scores. Deliberately loose: the column may hold the dimensions an older rubric version wrote, so read `rubric_version` before assuming a key."},"verdict":{"$ref":"#/components/schemas/Verdict"},"errors":{"items":{},"type":"array","title":"Errors","description":"The English mistakes the student made. Each item is expected to be an object `{category: string, original: string, correction: string, natural: string | null, explanation: string}`. Deliberately loose (not typed) because the column may hold a shape an older release wrote; a client should skip an item that does not match rather than fail."},"improvements":{"items":{},"type":"array","title":"Improvements","description":"Suggestions for next time. Each item is expected to be a string. Deliberately loose for the same reason as `errors`."},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["session_id","rubric_version","scores","verdict","errors","improvements","created_at"],"title":"ReportRead"},"ReportRetryRead":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id","description":"The session whose report was queued again."},"status":{"type":"string","const":"queued","title":"Status","description":"Always `queued`: the report is `pending` again and a job is on its way."}},"type":"object","required":["session_id","status"],"title":"ReportRetryRead"},"ReportStatus":{"type":"string","enum":["pending","done","failed"],"title":"ReportStatus"},"ResendVerificationRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ResendVerificationRequest"},"ResendVerificationResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"}},"type":"object","title":"ResendVerificationResponse"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","minLength":8,"title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"ResetPasswordResponse":{"properties":{"status":{"type":"string","title":"Status","default":"reset"}},"type":"object","title":"ResetPasswordResponse"},"ResourceCategoryRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Stable identifier; send it as `suggested_category_id` when proposing a resource"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tabs":{"items":{"$ref":"#/components/schemas/TabRead"},"type":"array","title":"Tabs","description":"In the order staff arranged them."}},"type":"object","required":["id","key","name","description","tabs"],"title":"ResourceCategoryRead"},"ResourceRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"url":{"type":"string","title":"Url"},"kind":{"type":"string","title":"Kind"}},"type":"object","required":["key","label","url","kind"],"title":"ResourceRead"},"ResourceRowRead":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"link_label":{"type":"string","title":"Link Label","description":"Display text for the link; not unique."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What the resource is, in the request language. Null when staff left it empty."},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"How to use the resource, in the request language. Null when there are none."},"rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rating","description":"1 to 5, or null when unrated."},"is_recommended":{"type":"boolean","title":"Is Recommended"},"entity_type":{"$ref":"#/components/schemas/EntityType"},"tags":{"$ref":"#/components/schemas/TagsRead"}},"type":"object","required":["key","name","url","link_label","description","instructions","rating","is_recommended","entity_type","tags"],"title":"ResourceRowRead"},"ResourceSubmissionCreate":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name","description":"Resource name."},"url":{"type":"string","maxLength":2048,"title":"Url","description":"An http or https link with a host."},"suggested_category_id":{"type":"string","format":"uuid","title":"Suggested Category Id","description":"A category `id` from `GET /resources/categories`."},"description":{"type":"string","maxLength":2000,"title":"Description","description":"Why this resource is useful, in any language."}},"additionalProperties":false,"type":"object","required":["name","url","suggested_category_id","description"],"title":"ResourceSubmissionCreate"},"ResourceSubmissionExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"suggested_category_id":{"type":"string","format":"uuid","title":"Suggested Category Id"},"description":{"type":"string","title":"Description"},"status":{"$ref":"#/components/schemas/ResourceSubmissionStatus"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"resource_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resource Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","url","suggested_category_id","description","status","rejection_reason","resource_id","created_at","updated_at"],"title":"ResourceSubmissionExport","description":"One submission in a member's data export (GDPR)."},"ResourceSubmissionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"suggested_category":{"$ref":"#/components/schemas/SubmissionCategoryRead"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status","description":"`pending_review`, `approved` or `rejected`."},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason","description":"Set only while `status` is `rejected`."},"resource_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resource Id","description":"The catalog resource created on approval. May be null even when approved if staff later removed the resource."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","url","suggested_category","description","status","rejection_reason","resource_id","created_at","updated_at"],"title":"ResourceSubmissionRead"},"ResourceSubmissionStatus":{"type":"string","enum":["pending_review","approved","rejected"],"title":"ResourceSubmissionStatus"},"ResourceSubmissionUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Url"},"suggested_category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Suggested Category Id"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","title":"ResourceSubmissionUpdate"},"ResourceTabPageRead":{"properties":{"category_key":{"type":"string","title":"Category Key"},"category_name":{"type":"string","title":"Category Name"},"tab":{"$ref":"#/components/schemas/TabRead"},"resources":{"items":{"$ref":"#/components/schemas/ResourceRowRead"},"type":"array","title":"Resources","description":"Published rows, in placement order."},"blocks":{"items":{"$ref":"#/components/schemas/BlockRead"},"type":"array","title":"Blocks","description":"Published non-table sections: before-table blocks first, then by position."}},"type":"object","required":["category_key","category_name","tab","resources","blocks"],"title":"ResourceTabPageRead"},"ResourceVocabulariesRead":{"properties":{"location":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Location"},"seniority":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Seniority"},"niche":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Niche"},"tool_category":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Tool Category"}},"type":"object","required":["location","seniority","niche","tool_category"],"title":"ResourceVocabulariesRead"},"Rewrite":{"properties":{"before":{"type":"string","title":"Before"},"after":{"type":"string","title":"After"}},"additionalProperties":false,"type":"object","required":["before","after"],"title":"Rewrite","description":"A concrete before/after for one recommendation.\n\nBoth constraints are unenforceable in slice 1, which never produces one:\n`before` must appear verbatim in the source profile, and `after` must\nintroduce no figure the profile does not evidence — anything the user has\nto supply appears as an explicit [X] placeholder. Slice 2 validates both."},"SalaryEntryExport":{"properties":{"position":{"type":"string","title":"Position"},"seniority":{"anyOf":[{"$ref":"#/components/schemas/SeniorityBand"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"currency":{"$ref":"#/components/schemas/Currency"},"salary_band":{"anyOf":[{"$ref":"#/components/schemas/EurBand"},{"$ref":"#/components/schemas/UsdBand"}],"title":"Salary Band"},"remote_type":{"$ref":"#/components/schemas/RemoteType"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"offer_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Offer Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_current":{"type":"boolean","title":"Is Current"},"superseded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Superseded At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["position","currency","salary_band","remote_type","is_current","created_at","updated_at"],"title":"SalaryEntryExport","description":"GDPR export contract: every stored field of one entry, superseded history\nincluded. Published here so the privacy module never types against\nsalary.domain."},"SalaryOptionsRead":{"properties":{"currency":{"items":{"type":"string"},"type":"array","title":"Currency"},"seniority":{"items":{"type":"string"},"type":"array","title":"Seniority"},"remote_type":{"items":{"type":"string"},"type":"array","title":"Remote Type"},"eur_band":{"items":{"type":"string"},"type":"array","title":"Eur Band"},"usd_band":{"items":{"type":"string"},"type":"array","title":"Usd Band"}},"type":"object","required":["currency","seniority","remote_type","eur_band","usd_band"],"title":"SalaryOptionsRead"},"SalarySubmission":{"properties":{"position":{"type":"string","maxLength":200,"minLength":1,"title":"Position"},"seniority":{"anyOf":[{"$ref":"#/components/schemas/SeniorityBand"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"currency":{"$ref":"#/components/schemas/Currency"},"salary_band":{"anyOf":[{"$ref":"#/components/schemas/EurBand"},{"$ref":"#/components/schemas/UsdBand"}],"title":"Salary Band"},"remote_type":{"$ref":"#/components/schemas/RemoteType"}},"type":"object","required":["position","currency","salary_band","remote_type"],"title":"SalarySubmission","description":"Public input contract for submitting a salary via the profile PATCH.\n\nPublished from the application layer so the users module can reference it\nwithout importing salary.domain or salary.adapters."},"Section":{"type":"string","enum":["headline","about","experience","skills","education","certifications"],"title":"Section"},"SectionLabels":{"properties":{"summary":{"type":"string","title":"Summary"},"experience":{"type":"string","title":"Experience"},"skills":{"type":"string","title":"Skills"},"projects":{"type":"string","title":"Projects"},"education":{"type":"string","title":"Education"},"certifications":{"type":"string","title":"Certifications"},"courses":{"type":"string","title":"Courses"},"languages":{"type":"string","title":"Languages"},"technologies":{"type":"string","title":"Technologies"},"present":{"type":"string","title":"Present"}},"additionalProperties":false,"type":"object","required":["summary","experience","skills","projects","education","certifications","courses","languages","technologies","present"],"title":"SectionLabels","description":"Section headings and the two inline words the document needs, in the\nlanguage of the job posting.\n\nHeld as data on AdaptedCV rather than as text in a template because two\nrenderers consume them — this repo's PDF and the frontend's preview — and a\nheading that differs between the two is a document that disagrees with\nitself."},"SeniorityBand":{"type":"string","enum":["junior","mid","senior","lead","principal"],"title":"SeniorityBand"},"SessionAbandonmentCreate":{"properties":{},"additionalProperties":false,"type":"object","title":"SessionAbandonmentCreate","description":"Deliberately no fields: the session is the caller's own, found by their identity."},"SessionAbandonmentRead":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"status":{"$ref":"#/components/schemas/SessionStatus","description":"Always `aborted` when this call closed the session. If another closer settled it first, the status it recorded."},"is_refunded":{"type":"boolean","title":"Is Refunded","description":"Whether the session's weekly attempt was returned. Abandoning never returns one — the portal cannot end a live interview, so a refund here would let it finish for free. False therefore, unless another closer settled the session first, in which case this reports what that close recorded. Waiting for the periodic sweep instead returns the attempt for a session that produced no transcript."}},"type":"object","required":["session_id","status","is_refunded"],"title":"SessionAbandonmentRead"},"SessionClosureCreate":{"properties":{"status":{"type":"string","enum":["completed","aborted"],"title":"Status"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"duration_s":{"type":"integer","maximum":86400.0,"minimum":0.0,"title":"Duration S","description":"Measured session length in seconds. A figure past the hard cut is accepted and clamped on the portal side rather than refused, so clock drift cannot cost the student their refund and their report."},"cost_micro_usd":{"anyOf":[{"type":"integer","maximum":4700000.0,"minimum":0.0},{"type":"null"}],"title":"Cost Micro Usd","description":"Actual spend in micro-USD, not cents. Released against the reserved estimate and recorded; never stored on the session."},"tokens_in":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Tokens In"},"tokens_out":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Tokens Out"},"provider_costs":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProviderCostItem"},"type":"array","maxItems":40},{"type":"null"}],"title":"Provider Costs"}},"additionalProperties":false,"type":"object","required":["status","ended_at","duration_s"],"title":"SessionClosureCreate"},"SessionClosureRead":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"status":{"$ref":"#/components/schemas/SessionStatus"},"is_refunded":{"type":"boolean","title":"Is Refunded"},"is_report_queued":{"type":"boolean","title":"Is Report Queued"}},"type":"object","required":["session_id","status","is_refunded","is_report_queued"],"title":"SessionClosureRead"},"SessionContextRead":{"properties":{"type":{"$ref":"#/components/schemas/SessionType"},"locale":{"type":"string","enum":["en","es"],"title":"Locale","description":"Language of the agent's coaching asides only (a short word of help in the student's own language). It never governs the interview, which is always English because English is the material being practised, and it never governs the report, which is always written in English too."},"max_duration_s":{"type":"integer","title":"Max Duration S","description":"Hard cut. The agent enforces it; the portal's sweep is the backstop."},"offer_extracted":{"$ref":"#/components/schemas/JobSpec","description":"The structured job specification extracted from the posting."},"stages":{"items":{"$ref":"#/components/schemas/SessionType"},"type":"array","title":"Stages","description":"The interview stages this offer expects."},"weaknesses":{"items":{"$ref":"#/components/schemas/Weakness"},"type":"array","title":"Weaknesses","description":"The student's accumulated English faults, re-read at every redemption, so a second session benefits from the first session's report."}},"type":"object","required":["type","locale","max_duration_s","offer_extracted","stages","weaknesses"],"title":"SessionContextRead","description":"The agent's entire knowledge of the session. No student identifier appears here\nby design (D9): the portal holds the only session-to-student mapping, so the agent\ncannot log a student even by accident."},"SessionExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"offer_id":{"type":"string","format":"uuid","title":"Offer Id"},"type":{"$ref":"#/components/schemas/SessionType"},"status":{"$ref":"#/components/schemas/SessionStatus"},"report_status":{"$ref":"#/components/schemas/ReportStatus"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration S"}},"type":"object","required":["id","offer_id","type","status","report_status","started_at","ended_at","duration_s"],"title":"SessionExport"},"SessionJoinRead":{"properties":{"join_url":{"type":"string","title":"Join Url","description":"The session's real Zoom or Meet URL."}},"type":"object","required":["join_url"],"title":"SessionJoinRead","description":"Resolves `GET /calendar/events/{event_id}/join`, which the portal's\n`/sessions/{event_id}/join` page calls to redirect the student to the\nreal Zoom or Meet URL."},"SessionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"offer_id":{"type":"string","format":"uuid","title":"Offer Id"},"type":{"$ref":"#/components/schemas/SessionType"},"status":{"$ref":"#/components/schemas/SessionStatus"},"report_status":{"$ref":"#/components/schemas/ReportStatus","description":"The raw worker state of the report. Do not render it: an aborted session stays `pending` here forever. Use `report_state`."},"report_state":{"$ref":"#/components/schemas/ReportEnvelopeStatus","description":"The state to render: the same value the session's report envelope answers. `unavailable` for an aborted session, `pending` while the interview is running or the report is being produced."},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration S"}},"type":"object","required":["id","offer_id","type","status","report_status","report_state","started_at","ended_at","duration_s"],"title":"SessionRead"},"SessionStatus":{"type":"string","enum":["active","completed","aborted"],"title":"SessionStatus"},"SessionType":{"type":"string","enum":["recruiter","behavioral","technical","system_design"],"title":"SessionType"},"SimilarProgramsExperience":{"type":"string","enum":["none","one","several"],"title":"SimilarProgramsExperience"},"SkillBlock":{"properties":{"label":{"type":"string","title":"Label"},"narrative":{"type":"string","title":"Narrative"}},"additionalProperties":false,"type":"object","required":["label","narrative"],"title":"SkillBlock"},"SkillCategoryRead":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["slug","name","count"],"title":"SkillCategoryRead","description":"One active category with the count of published Skills currently matching the\ncatalogue's `q`/`source` filters (never `category`)."},"SkillCategoryReadRef":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"}},"type":"object","required":["slug","name"],"title":"SkillCategoryReadRef","description":"A Skill's category, resolved to one locale."},"SkillDownloadExport":{"properties":{"skill_id":{"type":"string","format":"uuid","title":"Skill Id"},"version":{"type":"string","title":"Version"},"downloaded_at":{"type":"string","format":"date-time","title":"Downloaded At"}},"type":"object","required":["skill_id","version","downloaded_at"],"title":"SkillDownloadExport","description":"GDPR export contract: one first download the person made."},"SkillDownloadRead":{"properties":{"url":{"type":"string","title":"Url","description":"Short-lived signed link to the package."},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["url","expires_at"],"title":"SkillDownloadRead"},"SkillExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"description":{"type":"string","title":"Description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"category_slug":{"type":"string","title":"Category Slug"},"source":{"$ref":"#/components/schemas/SkillSource"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"versions":{"items":{"$ref":"#/components/schemas/SkillVersionExport"},"type":"array","title":"Versions"}},"type":"object","required":["id","slug","title","summary","description","tags","video_url","category_slug","source","created_at","updated_at","versions"],"title":"SkillExport","description":"GDPR export contract: one Skill the person authored with all of its versions,\nexcept the author's own id (it is the person exporting). `category_slug` and\n`source` are catalogue facts about the Skill, not sensitive personal data."},"SkillPackageFileRead":{"properties":{"path":{"type":"string","title":"Path"},"size_bytes":{"type":"integer","title":"Size Bytes"},"kind":{"$ref":"#/components/schemas/FileKind"}},"type":"object","required":["path","size_bytes","kind"],"title":"SkillPackageFileRead","description":"One file inside a Skill's package, as shown on the ungated detail endpoint. Deliberately\nnarrower than `PackageFileRead`: no `is_binary`/`preview`/`preview_truncated`, because\n`GET /skills/{id}` has no enrolment gate (unlike `/validate` and `/download`, which do),\nand file-content previews are not something an unenrolled or paused Member should be able\nto read for free."},"SkillRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"description":{"type":"string","title":"Description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"version":{"type":"string","title":"Version"},"author_display_name":{"type":"string","title":"Author Display Name"},"download_count":{"type":"integer","title":"Download Count","description":"Downloads across every version: one per Member per version, summed over all versions; authors' own downloads never count."},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"package_size_bytes":{"type":"integer","title":"Package Size Bytes"},"status":{"$ref":"#/components/schemas/SkillStatus","description":"Always `published` for other Members; an author also sees `pending_review` or `rejected` for their own Skill."},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url","description":"Demo video link, or null when none was given."},"has_pending_update":{"type":"boolean","title":"Has Pending Update","description":"True only for the author of a published Skill whose newer version is waiting for review."},"category":{"$ref":"#/components/schemas/SkillCategoryReadRef"},"source":{"$ref":"#/components/schemas/SkillSource"},"skill_md":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill Md","description":"The version's raw SKILL.md text, or null for a version uploaded before this was captured. Also null when the viewer is not actively enrolled (e.g. paused), unless they are the Skill's author."},"files":{"anyOf":[{"items":{"$ref":"#/components/schemas/SkillPackageFileRead"},"type":"array"},{"type":"null"}],"title":"Files","description":"Every file inside the version's package, or null for a version uploaded before this was captured."}},"type":"object","required":["id","slug","title","summary","description","tags","version","author_display_name","download_count","published_at","created_at","updated_at","package_size_bytes","status","video_url","has_pending_update","category","source","skill_md","files"],"title":"SkillRead","description":"One Skill in full. Its own schema, not a summary subclass: `published_at` is\nnullable here, for an author viewing their never-published Skill."},"SkillSort":{"type":"string","enum":["newest","most_downloaded"],"title":"SkillSort"},"SkillSource":{"type":"string","enum":["staff","member"],"title":"SkillSource","description":"Who submitted a Skill, stamped once at creation (CP-466) and no longer editable\nafterwards (CP-486). Never derived on read."},"SkillStatus":{"type":"string","enum":["pending_review","published","rejected"],"title":"SkillStatus","description":"Moderation state of a version. Only published versions are visible to other\nMembers."},"SkillSummaryRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"version":{"type":"string","title":"Version","description":"The current published version."},"author_display_name":{"type":"string","title":"Author Display Name","description":"The author's full name, or \"Former member\" once they are erased."},"download_count":{"type":"integer","title":"Download Count","description":"Downloads across every version: one per Member per version, summed over all versions; authors' own downloads never count."},"published_at":{"type":"string","format":"date-time","title":"Published At"},"category":{"$ref":"#/components/schemas/SkillCategoryReadRef"},"source":{"$ref":"#/components/schemas/SkillSource"}},"type":"object","required":["id","slug","title","summary","tags","version","author_display_name","download_count","published_at","category","source"],"title":"SkillSummaryRead","description":"One Skill as a catalogue card: its current published version."},"SkillValidationRead":{"properties":{"valid":{"type":"boolean","title":"Valid"},"checks":{"items":{"$ref":"#/components/schemas/CheckRead"},"type":"array","title":"Checks"},"files":{"items":{"$ref":"#/components/schemas/PackageFileRead"},"type":"array","title":"Files"},"frontmatter":{"anyOf":[{"$ref":"#/components/schemas/FrontmatterRead"},{"type":"null"}]}},"type":"object","required":["valid","checks","files","frontmatter"],"title":"SkillValidationRead","description":"The full outcome of a dry-run package check: every check's result, so an author\nsees everything wrong with their package at once instead of stopping at the first\nfailure. `frontmatter` and `files` reflect what could be read before any check that\ngates them failed, and may be empty or null on an invalid package."},"SkillVersionExport":{"properties":{"version":{"type":"string","title":"Version"},"status":{"$ref":"#/components/schemas/SkillStatus"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"package_size_bytes":{"type":"integer","title":"Package Size Bytes"},"download_count":{"type":"integer","title":"Download Count"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"terms_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terms Accepted At"},"terms_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["version","status","rejection_reason","package_size_bytes","download_count","published_at","terms_accepted_at","terms_version","created_at","updated_at"],"title":"SkillVersionExport","description":"GDPR export contract: one uploaded version of a Skill the person authored, in any\nstatus. The package's internal storage key is an operational detail, not data about\nthem, so it is not exported."},"SubmissionCategoryRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key","description":"The category's stable key."}},"type":"object","required":["id","key"],"title":"SubmissionCategoryRead"},"TabColumn":{"type":"string","enum":["name","link","location","seniority","niche","tool_category","instructions","description"],"title":"TabColumn","description":"The display fields a tab can show. Each tab picks its own subset and order,\nbecause the source tables disagree."},"TabRead":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"columns":{"items":{"$ref":"#/components/schemas/TabColumn"},"type":"array","title":"Columns","description":"The fields this tab displays, in display order. Tabs differ."}},"type":"object","required":["key","name","columns"],"title":"TabRead"},"TagsRead":{"properties":{"location":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Location"},"seniority":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Seniority","description":"Empty means the resource is open to every level (\"All levels\")."},"niche":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Niche"},"tool_category":{"items":{"$ref":"#/components/schemas/TermRead"},"type":"array","title":"Tool Category"}},"type":"object","required":["location","seniority","niche","tool_category"],"title":"TagsRead"},"TechnologyRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"TechnologyRead"},"TermRead":{"properties":{"key":{"type":"string","title":"Key","description":"Stable vocabulary key: the value to send back as a filter."},"label":{"type":"string","title":"Label","description":"Label resolved to the request language."}},"type":"object","required":["key","label"],"title":"TermRead"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token"],"title":"TokenResponse"},"Tone":{"type":"string","enum":["professional","confident","conversational","formal"],"title":"Tone"},"TurnCreate":{"properties":{"turn_no":{"type":"integer","minimum":1.0,"title":"Turn No","description":"Position in the transcript, numbered from 1, and the idempotency key together with the session. It fixes the order; `ts` is not trusted for that."},"role":{"$ref":"#/components/schemas/TurnRole"},"text":{"type":"string","maxLength":4000,"minLength":1,"pattern":"^[^\\u0000]*$","title":"Text","description":"Verbatim, including the student's mistakes — correcting them silently destroys the feature. A NUL character is refused because Postgres cannot store one."},"ts":{"type":"string","format":"date-time","title":"Ts"}},"additionalProperties":false,"type":"object","required":["turn_no","role","text","ts"],"title":"TurnCreate"},"TurnExport":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"turn_no":{"type":"integer","title":"Turn No"},"role":{"$ref":"#/components/schemas/TurnRole"},"text_verbatim":{"type":"string","title":"Text Verbatim"},"ts":{"type":"string","format":"date-time","title":"Ts"}},"type":"object","required":["session_id","turn_no","role","text_verbatim","ts"],"title":"TurnExport"},"TurnIngestionCreate":{"properties":{"turns":{"items":{"$ref":"#/components/schemas/TurnCreate"},"type":"array","maxItems":100,"minItems":1,"title":"Turns","description":"1-100 turns. `turn_no` must be unique within the batch — JSON Schema cannot express that, so it is stated here. Replaying a batch is safe and reports them as duplicates; a batch that contradicts itself is refused."}},"additionalProperties":false,"type":"object","required":["turns"],"title":"TurnIngestionCreate"},"TurnIngestionRead":{"properties":{"accepted":{"type":"integer","title":"Accepted"},"duplicates":{"type":"integer","title":"Duplicates"}},"type":"object","required":["accepted","duplicates"],"title":"TurnIngestionRead"},"TurnRole":{"type":"string","enum":["agent","user"],"title":"TurnRole"},"UploadTicketRead":{"properties":{"object_key":{"type":"string","title":"Object Key"},"upload_url":{"type":"string","title":"Upload Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"max_bytes":{"type":"integer","title":"Max Bytes"}},"type":"object","required":["object_key","upload_url","expires_at","max_bytes"],"title":"UploadTicketRead"},"UsdBand":{"type":"string","enum":["usd_under_10000","usd_10000_19999","usd_20000_29999","usd_30000_39999","usd_40000_49999","usd_50000_69999","usd_70000_99999","usd_100000_149999","usd_150000_plus","usd_prefer_not_to_say"],"title":"UsdBand"},"UserRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","email","full_name","created_at","updated_at"],"title":"UserRead"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Verdict":{"type":"string","enum":["strong_pass","pass","borderline","fail"],"title":"Verdict"},"VerifyEmailRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"VoiceTicketCreate":{"properties":{"offer_id":{"type":"string","format":"uuid","title":"Offer Id"},"type":{"$ref":"#/components/schemas/SessionType"}},"additionalProperties":false,"type":"object","required":["offer_id","type"],"title":"VoiceTicketCreate"},"VoiceTicketExport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_type":{"$ref":"#/components/schemas/SessionType"},"locale":{"type":"string","title":"Locale"},"used":{"type":"boolean","title":"Used"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","session_type","locale","used","expires_at","created_at"],"title":"VoiceTicketExport"},"VoiceTicketRead":{"properties":{"ticket":{"type":"string","format":"uuid","title":"Ticket"},"ws_url":{"type":"string","format":"uri","title":"Ws Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["ticket","ws_url","expires_at"],"title":"VoiceTicketRead"},"VoiceTicketRedemptionCreate":{"properties":{"ticket":{"type":"string","format":"uuid","title":"Ticket"}},"additionalProperties":false,"type":"object","required":["ticket"],"title":"VoiceTicketRedemptionCreate"},"VoiceTicketRedemptionRead":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"session_jwt":{"type":"string","title":"Session Jwt"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"context":{"$ref":"#/components/schemas/SessionContextRead"}},"type":"object","required":["session_id","session_jwt","expires_at","context"],"title":"VoiceTicketRedemptionRead"},"Weakness":{"properties":{"area":{"$ref":"#/components/schemas/WeaknessArea"},"note":{"type":"string","maxLength":140,"title":"Note"},"evidence_count":{"type":"integer","minimum":0.0,"title":"Evidence Count"}},"type":"object","required":["area","note","evidence_count"],"title":"Weakness","description":"One recurring English fault, with how often the judge has seen it.\n\n`evidence_count` is what makes `top_weakness` meaningful — the question\nseeder targets the most-evidenced area, not an arbitrary one."},"WeaknessArea":{"type":"string","enum":["grammar","vocabulary","calques","structure","star_method","conciseness","confidence","content_depth"],"title":"WeaknessArea"},"WeaknessProfile":{"properties":{"weaknesses":{"items":{"$ref":"#/components/schemas/Weakness"},"type":"array","title":"Weaknesses"}},"type":"object","title":"WeaknessProfile","description":"A student's accumulated English weaknesses — one profile per student.\n\nValidation lives here rather than in a database CHECK: the rubric will grow\nnew areas, and a constraint over jsonb array members would make that a\nmigration every time."},"WeaknessProfileRead":{"properties":{"weaknesses":{"items":{"$ref":"#/components/schemas/Weakness"},"type":"array","title":"Weaknesses","description":"The student's accumulated English faults, most recently merged from a report. Empty until their first report. Global across every offer."}},"type":"object","required":["weaknesses"],"title":"WeaknessProfileRead"},"WorkFlexibility":{"type":"string","enum":["on_site","remote","hybrid","flexible"],"title":"WorkFlexibility"},"app__modules__cover_letter__adapters__api__schemas__AdaptCreate":{"properties":{"draft":{"type":"string","maxLength":6000,"minLength":1,"title":"Draft","description":"The cover letter draft to tailor."},"job_description":{"type":"string","maxLength":5000,"minLength":1,"title":"Job Description","description":"The full job posting for the role being applied to."},"tone":{"$ref":"#/components/schemas/Tone","description":"The register the rewrite should adopt."},"priorities":{"items":{"$ref":"#/components/schemas/app__modules__cover_letter__domain__entities__Priority"},"type":"array","maxItems":4,"minItems":1,"title":"Priorities","description":"What the rewrite should prioritise. At least one, each counted once however many times it is sent."}},"type":"object","required":["draft","job_description","tone","priorities"],"title":"AdaptCreate"},"app__modules__cover_letter__adapters__api__schemas__AdaptResultRead":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","enum":["pending","succeeded","failed"],"title":"Status"},"result":{"anyOf":[{"$ref":"#/components/schemas/AdaptedCoverLetter"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["task_id","status"],"title":"AdaptResultRead"},"app__modules__cover_letter__adapters__api__schemas__PdfCreate":{"properties":{"letter":{"$ref":"#/components/schemas/PdfLetter"}},"type":"object","required":["letter"],"title":"PdfCreate"},"app__modules__cover_letter__domain__entities__Priority":{"type":"string","enum":["role_alignment","clarity_flow","impact_metrics","professional_tone"],"title":"Priority"},"app__modules__cv__adapters__api__schemas__AdaptCreate":{"properties":{"object_key":{"type":"string","maxLength":100,"minLength":5,"title":"Object Key"},"job_description":{"type":"string","maxLength":20000,"minLength":1,"title":"Job Description"},"priorities":{"items":{"$ref":"#/components/schemas/app__modules__cv__domain__entities__Priority"},"type":"array","maxItems":4,"minItems":1,"title":"Priorities","description":"What the rewrite should emphasise. At least one, each counted once however many times it is sent. Emphasis only: a priority never adds a model call, moves the one-page budget, or licenses a claim the CV does not evidence."}},"type":"object","required":["object_key","job_description","priorities"],"title":"AdaptCreate"},"app__modules__cv__adapters__api__schemas__AdaptResultRead":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","enum":["pending","succeeded","failed"],"title":"Status"},"result":{"anyOf":[{"$ref":"#/components/schemas/AdaptedCV"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["task_id","status"],"title":"AdaptResultRead"},"app__modules__cv__adapters__api__schemas__PdfCreate":{"properties":{"profile":{"$ref":"#/components/schemas/PdfProfile"},"labels":{"$ref":"#/components/schemas/PdfLabels"}},"type":"object","required":["profile","labels"],"title":"PdfCreate"},"app__modules__cv__domain__entities__Priority":{"type":"string","enum":["technical_skills","work_experience","keywords_ats","professional_summary"],"title":"Priority","description":"What the candidate asked the rewrite to emphasise.\n\nEmphasis only. A priority never adds a model call, moves the page budget,\nchanges pruning, or relaxes the grounding guardrail — a CV that evidences\nnothing for a selected priority simply goes unserved on it, because the\nalternative is inventing the evidence."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}