openapi: 3.1.0 info: # Do not change the title, if the title changes, the import paths will be broken title: Api version: 0.1.0 description: Skills Rocket API specification servers: - url: /api description: Base API path tags: - name: health description: Health operations - name: users description: Current user - name: certifications description: Certification catalog - name: questions description: Question bank (content authored by the Content Agent; explanations cached on first request) - name: content-agent description: Manager-triggered and scheduled Content Agent operations (question/topic content refresh) - name: exams description: Exam and practice sessions - name: content description: Learning content and semantic search - name: dashboard description: Dashboards and analytics - name: learning description: Learning journey, roadmaps, analytics and readiness - name: storage description: Object storage upload and serving endpoints - name: content-sources description: Manager-only content ingestion (file uploads and document links) feeding the study library and the Content Agent paths: /healthz: get: operationId: healthCheck tags: [health] summary: Health check description: Returns server health status responses: "200": description: Healthy content: application/json: schema: $ref: "#/components/schemas/HealthStatus" /me: get: operationId: getMe tags: [users] summary: Current authenticated user responses: "200": description: The current user content: application/json: schema: $ref: "#/components/schemas/User" /certifications: get: operationId: listCertifications tags: [certifications] summary: List certifications parameters: - name: provider in: query required: false schema: type: string - name: level in: query required: false schema: type: string - name: search in: query required: false schema: type: string responses: "200": description: List of certifications content: application/json: schema: type: array items: $ref: "#/components/schemas/Certification" /certifications/{id}: get: operationId: getCertification tags: [certifications] summary: Get certification detail parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Certification detail content: application/json: schema: $ref: "#/components/schemas/CertificationDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /questions: get: operationId: listQuestions tags: [questions] summary: List questions for a certification parameters: - name: certificationId in: query required: true schema: type: integer - name: topic in: query required: false schema: type: string - name: difficulty in: query required: false schema: type: string - name: limit in: query required: false schema: type: integer responses: "200": description: List of questions content: application/json: schema: type: array items: $ref: "#/components/schemas/Question" /questions/{id}/explain: post: operationId: explainQuestion tags: [questions] summary: AI explanation for a question (generated once, then cached) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: The explanation content: application/json: schema: $ref: "#/components/schemas/Explanation" /certifications/{id}/refresh-content: post: operationId: refreshCertificationContent tags: [content-agent] summary: Manager-triggered on-request Content Agent refresh description: > Kicks off the Content Agent for this certification: tops up thin question buckets and fills in any missing topic study summaries. Runs in the background; poll with GET to see progress. Never called from a learner-facing flow. parameters: - name: id in: path required: true schema: type: integer responses: "202": description: Refresh started (or already running) content: application/json: schema: $ref: "#/components/schemas/ContentRefreshStatus" "503": description: AI not configured content: application/json: schema: $ref: "#/components/schemas/Error" get: operationId: getCertificationRefreshStatus tags: [content-agent] summary: Current Content Agent refresh status for a certification parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Current refresh status content: application/json: schema: $ref: "#/components/schemas/ContentRefreshStatus" /exam-sessions: get: operationId: listExamSessions tags: [exams] summary: List the current user's sessions parameters: - name: certificationId in: query required: false schema: type: integer - name: status in: query required: false schema: type: string responses: "200": description: List of sessions content: application/json: schema: type: array items: $ref: "#/components/schemas/ExamSession" post: operationId: createExamSession tags: [exams] summary: Start a practice or certification session requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ExamSessionInput" responses: "201": description: The created session with its questions content: application/json: schema: $ref: "#/components/schemas/ExamSessionDetail" "400": description: Invalid request content: application/json: schema: $ref: "#/components/schemas/Error" /exam-sessions/{id}: get: operationId: getExamSession tags: [exams] summary: Get a session with its questions parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Session detail content: application/json: schema: $ref: "#/components/schemas/ExamSessionDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /exam-sessions/{id}/next-question: post: operationId: nextQuestion tags: [exams] summary: Get the next adaptive practice question based on performance parameters: - name: id in: path required: true schema: type: integer responses: "200": description: The next adaptive question, or done when the session is complete content: application/json: schema: $ref: "#/components/schemas/NextQuestionResult" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" "409": description: Session is not an adaptive practice session content: application/json: schema: $ref: "#/components/schemas/Error" /exam-sessions/{id}/answers: post: operationId: submitAnswer tags: [exams] summary: Submit an answer (instant feedback in practice mode) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AnswerInput" responses: "200": description: The graded answer result content: application/json: schema: $ref: "#/components/schemas/AnswerResult" /exam-sessions/{id}/submit: post: operationId: submitExamSession tags: [exams] summary: Finalize and score a session parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SubmitExamInput" responses: "200": description: The session summary content: application/json: schema: $ref: "#/components/schemas/ExamSummary" /exam-sessions/{id}/summary: get: operationId: getExamSummary tags: [exams] summary: Get the scored summary for a session parameters: - name: id in: path required: true schema: type: integer responses: "200": description: The session summary content: application/json: schema: $ref: "#/components/schemas/ExamSummary" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /learning-sources: get: operationId: listLearningSources tags: [content] summary: List learning content sources responses: "200": description: List of learning sources content: application/json: schema: type: array items: $ref: "#/components/schemas/LearningSource" /storage/uploads/request-url: post: operationId: requestUploadUrl tags: [storage] summary: Request a presigned URL for file upload description: | Returns a presigned GCS URL for direct upload. The client sends JSON metadata here, then uploads the file directly to the returned URL. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UploadUrlRequest" responses: "200": description: Presigned upload URL generated. content: application/json: schema: $ref: "#/components/schemas/UploadUrlResponse" "400": description: Missing or invalid required fields. content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Failed to generate upload URL. content: application/json: schema: $ref: "#/components/schemas/Error" /content-sources: get: operationId: listContentSources tags: [content-sources] summary: List all content sources with ingestion status (manager-only) responses: "200": description: Content sources content: application/json: schema: type: array items: $ref: "#/components/schemas/ContentSource" post: operationId: createContentSource tags: [content-sources] summary: Ingest a new content source (uploaded file or document link) description: | Creates the source record and kicks off background text extraction, chunking, and embedding. Returns immediately with status "processing"; poll GET /content-sources to see when it's ready. Manager-only. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateContentSourceInput" responses: "201": description: Source created, ingestion started content: application/json: schema: $ref: "#/components/schemas/ContentSource" "400": description: Missing or invalid required fields content: application/json: schema: $ref: "#/components/schemas/Error" /storage/public-objects/{filePath}: get: operationId: getPublicObject tags: [storage] summary: Serve a public asset from PUBLIC_OBJECT_SEARCH_PATHS description: | Unconditionally public — no authentication or ACL checks. Searches PUBLIC_OBJECT_SEARCH_PATHS for the given file path. parameters: - name: filePath in: path required: true schema: type: string description: Relative file path within the public search paths. responses: "200": description: Object content streamed with correct Content-Type. content: "*/*": schema: type: string format: binary "404": description: File not found. content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Failed to serve public object. content: application/json: schema: $ref: "#/components/schemas/Error" /storage/objects/{objectPath}: get: operationId: getStorageObject tags: [storage] summary: Serve an object entity from PRIVATE_OBJECT_DIR description: | Serves object entities uploaded via presigned URLs. Requires auth; used for manager-uploaded content-source files. parameters: - name: objectPath in: path required: true schema: type: string description: Object path within the private object dir (e.g. `uploads/some-uuid`). responses: "200": description: Object content streamed with correct Content-Type. content: "*/*": schema: type: string format: binary "404": description: Object not found. content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Failed to serve object. content: application/json: schema: $ref: "#/components/schemas/Error" /content/search: post: operationId: searchContent tags: [content] summary: Semantic search over content chunks requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ContentSearchInput" responses: "200": description: Matching content chunks content: application/json: schema: type: array items: $ref: "#/components/schemas/ContentChunk" /dashboard/summary: get: operationId: getDashboardSummary tags: [dashboard] summary: Current user's readiness summary responses: "200": description: Dashboard summary content: application/json: schema: $ref: "#/components/schemas/DashboardSummary" /dashboard/team: get: operationId: getTeamReadiness tags: [dashboard] summary: Team readiness overview (manager view) responses: "200": description: Team readiness content: application/json: schema: $ref: "#/components/schemas/TeamReadiness" /ai/conversations: get: operationId: listConversations tags: [coach] summary: List the current user's coach conversations responses: "200": description: List of conversations content: application/json: schema: type: array items: $ref: "#/components/schemas/Conversation" post: operationId: createConversation tags: [coach] summary: Start a new coach conversation requestBody: required: false content: application/json: schema: $ref: "#/components/schemas/CreateConversationInput" responses: "201": description: The created conversation content: application/json: schema: $ref: "#/components/schemas/Conversation" /ai/conversations/{id}: get: operationId: getConversation tags: [coach] summary: Get a conversation with its messages parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Conversation detail content: application/json: schema: $ref: "#/components/schemas/ConversationDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" delete: operationId: deleteConversation tags: [coach] summary: Delete a conversation parameters: - name: id in: path required: true schema: type: integer responses: "204": description: Deleted "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /ai/recommendations: get: operationId: listRecommendations tags: [coach] summary: List the current user's active study recommendations responses: "200": description: List of recommendations content: application/json: schema: type: array items: $ref: "#/components/schemas/Recommendation" /ai/recommendations/{id}/dismiss: post: operationId: dismissRecommendation tags: [coach] summary: Dismiss a study recommendation parameters: - name: id in: path required: true schema: type: integer responses: "200": description: The dismissed recommendation content: application/json: schema: $ref: "#/components/schemas/Recommendation" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /ai/exam-sessions/{id}/weakness: get: operationId: getWeaknessReport tags: [coach] summary: AI weakness analysis for a completed exam session parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Weakness report content: application/json: schema: $ref: "#/components/schemas/WeaknessReport" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /learning/overview: get: operationId: getLearningOverview tags: [learning] summary: Learner's journey overview (plans, readiness, insights, next action) responses: "200": description: Learning overview content: application/json: schema: $ref: "#/components/schemas/LearningOverview" /learning/plans/{certificationId}: get: operationId: getLearningPlan tags: [learning] summary: Roadmap and readiness detail for one certification parameters: - name: certificationId in: path required: true schema: type: integer responses: "200": description: Learning plan detail content: application/json: schema: $ref: "#/components/schemas/LearningPlanDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" patch: operationId: updateLearningPlan tags: [learning] summary: Update a plan's target exam date or status parameters: - name: certificationId in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateLearningPlanInput" responses: "200": description: Updated plan detail content: application/json: schema: $ref: "#/components/schemas/LearningPlanDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /learning/plans: post: operationId: upsertLearningPlan tags: [learning] summary: Create or update a learning plan and auto-generate roadmap items requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpsertLearningPlanInput" responses: "200": description: The plan detail content: application/json: schema: $ref: "#/components/schemas/LearningPlanDetail" "400": description: Invalid request content: application/json: schema: $ref: "#/components/schemas/Error" /learning/plan-items/{id}/toggle: post: operationId: toggleLearningPlanItem tags: [learning] summary: Toggle a roadmap item's completion state parameters: - name: id in: path required: true schema: type: integer responses: "200": description: The updated item content: application/json: schema: $ref: "#/components/schemas/LearningPlanItem" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /learning/plan-items/{id}/launch: post: operationId: launchLearningPlanItem tags: [learning] summary: Launch or resume the exam session linked to a practice/mock-exam roadmap milestone, creating one if none is in progress parameters: - name: id in: path required: true schema: type: integer responses: "200": description: The session to navigate to content: application/json: schema: $ref: "#/components/schemas/LaunchPlanItemResult" "400": description: This milestone type has no launchable session, or no questions are available content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /learning/analytics/{certificationId}: get: operationId: getLearningAnalytics tags: [learning] summary: Practice history and analytics for one certification parameters: - name: certificationId in: path required: true schema: type: integer responses: "200": description: Learning analytics content: application/json: schema: $ref: "#/components/schemas/LearningAnalytics" /learning/progress/{certificationId}: get: operationId: getLearningProgress tags: [learning] summary: Readiness trajectory snapshots for one certification parameters: - name: certificationId in: path required: true schema: type: integer responses: "200": description: Progress snapshots content: application/json: schema: type: array items: $ref: "#/components/schemas/ProgressSnapshot" /learning/insights: get: operationId: listLearningInsights tags: [learning] summary: Active weekly AI insights for the current learner responses: "200": description: List of insights content: application/json: schema: type: array items: $ref: "#/components/schemas/LearningInsight" /learning/team: get: operationId: getLearningTeam tags: [learning] summary: Team readiness overview with per-certification breakdown (manager view) parameters: - name: certificationId in: query required: false schema: type: integer responses: "200": description: Team readiness content: application/json: schema: $ref: "#/components/schemas/LearningTeamReadiness" /learning/snapshots/run: post: operationId: runLearningSnapshots tags: [learning] summary: Record a daily readiness snapshot per active learner/cert (manager view) responses: "200": description: Snapshot run summary content: application/json: schema: $ref: "#/components/schemas/SnapshotRunResult" /coding/challenges: get: operationId: listCodingChallenges tags: [livePractice] summary: List coding challenges with optional filters parameters: - name: certificationId in: query required: false schema: type: integer - name: difficulty in: query required: false schema: type: string - name: language in: query required: false schema: type: string responses: "200": description: List of coding challenges content: application/json: schema: type: array items: $ref: "#/components/schemas/CodingChallengeSummary" /coding/challenges/{id}: get: operationId: getCodingChallenge tags: [livePractice] summary: Get a coding challenge with public test cases parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Coding challenge detail content: application/json: schema: $ref: "#/components/schemas/CodingChallengeDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /coding/run: post: operationId: runCode tags: [livePractice] summary: Run code against a challenge's public test cases (no submission stored) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CodeRunRequest" responses: "200": description: Run results content: application/json: schema: $ref: "#/components/schemas/CodeRunResult" /coding/challenges/{id}/submit: post: operationId: submitCode tags: [livePractice] summary: Submit a solution; runs all tests and stores the submission parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CodeSubmitRequest" responses: "200": description: Submission result content: application/json: schema: $ref: "#/components/schemas/CodingSubmission" /coding/challenges/{id}/submissions: get: operationId: listCodingSubmissions tags: [livePractice] summary: Submission history for the current user on a challenge parameters: - name: id in: path required: true schema: type: integer responses: "200": description: List of submissions content: application/json: schema: type: array items: $ref: "#/components/schemas/CodingSubmission" /labs: get: operationId: listLabs tags: [livePractice] summary: List lab simulations with optional filters parameters: - name: certificationId in: query required: false schema: type: integer - name: provider in: query required: false schema: type: string - name: difficulty in: query required: false schema: type: string responses: "200": description: List of lab simulations content: application/json: schema: type: array items: $ref: "#/components/schemas/LabSummary" /labs/{id}: get: operationId: getLab tags: [livePractice] summary: Get a lab simulation with tasks and the user's last attempt parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Lab detail content: application/json: schema: $ref: "#/components/schemas/LabDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/Error" /labs/{id}/validate: post: operationId: validateLab tags: [livePractice] summary: Validate a lab canvas against its tasks and store the attempt parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/LabValidateRequest" responses: "200": description: Validation result content: application/json: schema: $ref: "#/components/schemas/LabAttempt" /labs/{id}/attempts: get: operationId: listLabAttempts tags: [livePractice] summary: Attempt history for the current user on a lab parameters: - name: id in: path required: true schema: type: integer responses: "200": description: List of attempts content: application/json: schema: type: array items: $ref: "#/components/schemas/LabAttempt" components: schemas: HealthStatus: type: object properties: status: type: string required: - status Error: type: object properties: error: type: string required: - error User: type: object required: [id, role] properties: id: type: string email: type: ["string", "null"] name: type: ["string", "null"] role: type: string avatarColor: type: ["string", "null"] Certification: type: object required: - id - slug - provider - code - title - description - level - topics - examDurationMinutes - passingScore - questionCount properties: id: type: integer slug: type: string provider: type: string code: type: string title: type: string description: type: string level: type: string topics: type: array items: type: string examDurationMinutes: type: integer passingScore: type: integer accentColor: type: ["string", "null"] questionCount: type: integer CertificationDetail: type: object required: - id - slug - provider - code - title - description - level - topics - examDurationMinutes - passingScore - questionCount - topicBreakdown - attempts properties: id: type: integer slug: type: string provider: type: string code: type: string title: type: string description: type: string level: type: string topics: type: array items: type: string examDurationMinutes: type: integer passingScore: type: integer accentColor: type: ["string", "null"] questionCount: type: integer bestScore: type: ["integer", "null"] attempts: type: integer topicBreakdown: type: array items: $ref: "#/components/schemas/TopicCount" recentSessions: type: array items: $ref: "#/components/schemas/ExamSession" TopicCount: type: object required: [topic, count] properties: topic: type: string count: type: integer QuestionOption: type: object required: [id, label, orderIndex] properties: id: type: integer label: type: string orderIndex: type: integer Question: type: object required: [id, certificationId, topic, difficulty, type, prompt, options] properties: id: type: integer certificationId: type: integer topic: type: string difficulty: type: string type: type: string prompt: type: string source: type: ["string", "null"] options: type: array items: $ref: "#/components/schemas/QuestionOption" Explanation: type: object required: [explanation] properties: explanation: type: string ContentRefreshStatus: type: object required: - status - topicsProcessed - questionsGenerated - summariesGenerated properties: status: type: string enum: [idle, running, done, error] startedAt: type: ["string", "null"] format: date-time finishedAt: type: ["string", "null"] format: date-time topicsProcessed: type: integer questionsGenerated: type: integer summariesGenerated: type: integer error: type: ["string", "null"] ExamSession: type: object required: - id - certificationId - certificationTitle - mode - status - totalQuestions - startedAt properties: id: type: integer certificationId: type: integer certificationTitle: type: string certificationCode: type: ["string", "null"] mode: type: string topic: type: ["string", "null"] difficulty: type: ["string", "null"] status: type: string totalQuestions: type: integer examDurationMinutes: type: ["integer", "null"] correctCount: type: ["integer", "null"] scorePercent: type: ["integer", "null"] timeSpentSeconds: type: ["integer", "null"] passed: type: ["boolean", "null"] startedAt: type: string completedAt: type: ["string", "null"] ExamSessionDetail: type: object required: [session, questions] properties: session: $ref: "#/components/schemas/ExamSession" questions: type: array items: $ref: "#/components/schemas/Question" ExamSessionInput: type: object required: [certificationId, mode] properties: certificationId: type: integer mode: type: string topic: type: string difficulty: type: string questionCount: type: integer AnswerInput: type: object required: [questionId, selectedOptionIds] properties: questionId: type: integer selectedOptionIds: type: array items: type: integer AnswerResult: type: object required: [isCorrect, correctOptionIds] properties: isCorrect: type: boolean correctOptionIds: type: array items: type: integer explanation: type: ["string", "null"] NextQuestionResult: type: object required: [done] properties: done: type: boolean difficulty: type: ["string", "null"] question: oneOf: - $ref: "#/components/schemas/Question" - type: "null" SubmitExamInput: type: object properties: timeSpentSeconds: type: integer TopicScore: type: object required: [topic, total, correct] properties: topic: type: string total: type: integer correct: type: integer ReviewItem: type: object required: [question, selectedOptionIds, correctOptionIds, isCorrect] properties: question: $ref: "#/components/schemas/Question" selectedOptionIds: type: array items: type: integer correctOptionIds: type: array items: type: integer isCorrect: type: boolean explanation: type: ["string", "null"] ExamSummary: type: object required: [session, topicScores, review] properties: session: $ref: "#/components/schemas/ExamSession" topicScores: type: array items: $ref: "#/components/schemas/TopicScore" weakTopics: type: array items: type: string review: type: array items: $ref: "#/components/schemas/ReviewItem" LearningSource: type: object required: [id, name, provider] properties: id: type: integer name: type: string provider: type: string url: type: ["string", "null"] description: type: ["string", "null"] chunkCount: type: ["integer", "null"] UploadUrlRequest: type: object required: [name, size, contentType] properties: name: type: string minLength: 1 description: Original file name. size: type: integer minimum: 1 description: File size in bytes. contentType: type: string minLength: 1 description: MIME type of the file (e.g. `application/pdf`). UploadUrlResponse: type: object required: [uploadURL, objectPath] properties: uploadURL: type: string format: uri description: Presigned GCS URL for PUT upload. objectPath: type: string description: Normalized object path (e.g. `/objects/uploads/uuid`). Store this in your database. ContentSource: type: object required: [id, name, provider, status, chunkCount, createdAt] properties: id: type: integer name: type: string provider: type: string enum: [upload, link, seed] url: type: ["string", "null"] objectPath: type: ["string", "null"] certificationId: type: ["integer", "null"] topic: type: ["string", "null"] status: type: string enum: [processing, ready, failed] error: type: ["string", "null"] chunkCount: type: integer createdAt: type: string format: date-time CreateContentSourceInput: type: object required: [name, provider] properties: name: type: string minLength: 1 provider: type: string enum: [upload, link] url: type: string description: Required when provider is "link" — the document URL to fetch. objectPath: type: string description: Required when provider is "upload" — the objectPath returned by the upload URL request. certificationId: type: integer topic: type: string ContentSearchInput: type: object required: [query] properties: query: type: string certificationId: type: integer limit: type: integer ContentChunk: type: object required: [id, title, content, topic, sourceName] properties: id: type: integer title: type: string content: type: string topic: type: string sourceName: type: string certificationId: type: ["integer", "null"] similarity: type: ["number", "null"] CertProgress: type: object required: [certificationId, certificationTitle, attempts] properties: certificationId: type: integer certificationTitle: type: string certificationCode: type: ["string", "null"] provider: type: ["string", "null"] attempts: type: integer bestScore: type: ["integer", "null"] lastScore: type: ["integer", "null"] readiness: type: integer DashboardSummary: type: object required: - certsStarted - sessionsCompleted - averageScore - questionsAnswered - certProgress - recentSessions properties: certsStarted: type: integer sessionsCompleted: type: integer averageScore: type: integer questionsAnswered: type: integer certProgress: type: array items: $ref: "#/components/schemas/CertProgress" recentSessions: type: array items: $ref: "#/components/schemas/ExamSession" weakTopics: type: array items: $ref: "#/components/schemas/WeakTopicRef" WeakTopicRef: type: object required: [topic, certificationId] properties: topic: type: string certificationId: type: integer TeamMember: type: object required: [id, name, role, averageReadiness, certScores] properties: id: type: string name: type: string email: type: ["string", "null"] role: type: string avatarColor: type: ["string", "null"] averageReadiness: type: integer sessionsCompleted: type: integer certScores: type: array items: $ref: "#/components/schemas/TeamCertScore" TeamCertScore: type: object required: [certificationId, certificationCode, score] properties: certificationId: type: integer certificationCode: type: string score: type: integer TeamReadiness: type: object required: [members, certifications] properties: members: type: array items: $ref: "#/components/schemas/TeamMember" certifications: type: array items: $ref: "#/components/schemas/Certification" averageReadiness: type: integer Conversation: type: object required: [id, title, createdAt, updatedAt] properties: id: type: integer title: type: string certificationId: type: ["integer", "null"] certificationTitle: type: ["string", "null"] createdAt: type: string updatedAt: type: string CreateConversationInput: type: object properties: certificationId: type: integer title: type: string Message: type: object required: [id, role, content, createdAt] properties: id: type: integer role: type: string content: type: string createdAt: type: string ConversationDetail: type: object required: [conversation, messages] properties: conversation: $ref: "#/components/schemas/Conversation" messages: type: array items: $ref: "#/components/schemas/Message" Recommendation: type: object required: [id, type, title, body, topics, priority, status, createdAt] properties: id: type: integer type: type: string title: type: string body: type: string topics: type: array items: type: string priority: type: integer status: type: string certificationId: type: ["integer", "null"] certificationTitle: type: ["string", "null"] certificationCode: type: ["string", "null"] sessionId: type: ["integer", "null"] createdAt: type: string WeaknessReport: type: object required: [available, recommendations] properties: available: type: boolean summary: type: ["string", "null"] recommendations: type: array items: $ref: "#/components/schemas/Recommendation" LearningPlanItem: type: object required: [id, planId, type, title, orderIndex, status] properties: id: type: integer planId: type: integer type: type: string title: type: string topic: type: ["string", "null"] orderIndex: type: integer dueDate: type: ["string", "null"] status: type: string completedAt: type: ["string", "null"] linkedSessionId: type: ["integer", "null"] linkedSessionStatus: type: ["string", "null"] LaunchPlanItemResult: type: object required: [sessionId, mode] properties: sessionId: type: integer mode: type: string LearningPlan: type: object required: [id, certificationId, certificationTitle, certificationCode, status] properties: id: type: integer certificationId: type: integer certificationTitle: type: string certificationCode: type: string provider: type: string accentColor: type: ["string", "null"] targetExamDate: type: ["string", "null"] status: type: string createdAt: type: string updatedAt: type: string ReadinessBreakdown: type: object required: [baseScore, weakTopicPenalty, recencyAdjustment, frequencyBonus, attempts] properties: baseScore: type: integer weakTopicPenalty: type: integer recencyAdjustment: type: integer frequencyBonus: type: integer attempts: type: integer LearningPlanDetail: type: object required: [plan, items, readiness, weakTopics, strongTopics, progressPercent, totalItems, completedItems] properties: plan: $ref: "#/components/schemas/LearningPlan" items: type: array items: $ref: "#/components/schemas/LearningPlanItem" readiness: type: integer readinessBreakdown: $ref: "#/components/schemas/ReadinessBreakdown" weakTopics: type: array items: type: string strongTopics: type: array items: type: string progressPercent: type: integer totalItems: type: integer completedItems: type: integer daysRemaining: type: ["integer", "null"] studyPaceWarning: type: ["string", "null"] LearningPlanSummary: type: object required: [certificationId, certificationTitle, certificationCode, provider, readiness, status, totalItems, completedItems] properties: certificationId: type: integer certificationTitle: type: string certificationCode: type: string provider: type: string accentColor: type: ["string", "null"] readiness: type: integer targetExamDate: type: ["string", "null"] daysRemaining: type: ["integer", "null"] totalItems: type: integer completedItems: type: integer status: type: string NextAction: type: object required: [type, title, description] properties: type: type: string title: type: string description: type: string certificationId: type: ["integer", "null"] certificationCode: type: ["string", "null"] LearningOverview: type: object required: [plans, insights, overallReadiness] properties: plans: type: array items: $ref: "#/components/schemas/LearningPlanSummary" insights: type: array items: $ref: "#/components/schemas/LearningInsight" nextAction: oneOf: - $ref: "#/components/schemas/NextAction" - type: "null" overallReadiness: type: integer UpsertLearningPlanInput: type: object required: [certificationId] properties: certificationId: type: integer targetExamDate: type: ["string", "null"] UpdateLearningPlanInput: type: object properties: targetExamDate: type: ["string", "null"] status: type: string LearningInsight: type: object required: [id, weekKey, title, body, trend, status, createdAt] properties: id: type: integer certificationId: type: ["integer", "null"] certificationTitle: type: ["string", "null"] weekKey: type: string title: type: string body: type: string topic: type: ["string", "null"] trend: type: string status: type: string createdAt: type: string ProgressSnapshot: type: object required: [id, certificationId, readinessScore, weakTopics, strongTopics, createdAt] properties: id: type: integer certificationId: type: integer readinessScore: type: integer weakTopics: type: array items: type: string strongTopics: type: array items: type: string createdAt: type: string ScorePoint: type: object required: [date, scorePercent, mode] properties: date: type: string scorePercent: type: integer mode: type: string TopicAccuracy: type: object required: [topic, total, correct, accuracy] properties: topic: type: string total: type: integer correct: type: integer accuracy: type: integer SessionComparison: type: object required: [id, mode, totalQuestions, correctCount, scorePercent, completedAt] properties: id: type: integer mode: type: string totalQuestions: type: integer correctCount: type: integer scorePercent: type: ["integer", "null"] completedAt: type: ["string", "null"] SnapshotRunResult: type: object required: [pairs, skipped] properties: pairs: type: integer skipped: type: boolean TimePerQuestionPoint: type: object required: [date, secondsPerQuestion] properties: date: type: string secondsPerQuestion: type: integer LearningAnalytics: type: object required: [certificationId, scoreOverTime, timePerQuestionTrend, topicAccuracy, sessions, readinessTrajectory, totals] properties: certificationId: type: integer scoreOverTime: type: array items: $ref: "#/components/schemas/ScorePoint" timePerQuestionTrend: type: array items: $ref: "#/components/schemas/TimePerQuestionPoint" topicAccuracy: type: array items: $ref: "#/components/schemas/TopicAccuracy" sessions: type: array items: $ref: "#/components/schemas/SessionComparison" readinessTrajectory: type: array items: $ref: "#/components/schemas/ProgressSnapshot" totals: type: object required: [attempts, averageScore, bestScore, totalQuestionsAnswered, totalCorrect, totalIncorrect] properties: attempts: type: integer averageScore: type: integer bestScore: type: integer totalQuestionsAnswered: type: integer totalCorrect: type: integer totalIncorrect: type: integer LearningTeamCertReadiness: type: object required: [certificationId, certificationCode, readiness, ready] properties: certificationId: type: integer certificationCode: type: string readiness: type: integer ready: type: boolean LearningTeamMember: type: object required: [id, name, role, averageReadiness, sessionsCompleted, certReadiness] properties: id: type: string name: type: string email: type: ["string", "null"] role: type: string avatarColor: type: ["string", "null"] averageReadiness: type: integer sessionsCompleted: type: integer certReadiness: type: array items: $ref: "#/components/schemas/LearningTeamCertReadiness" LearningTeamReadiness: type: object required: [members, certifications, averageReadiness, readyCount, totalTracked] properties: members: type: array items: $ref: "#/components/schemas/LearningTeamMember" certifications: type: array items: $ref: "#/components/schemas/Certification" averageReadiness: type: integer readyCount: type: integer totalTracked: type: integer CodingTestCase: type: object required: [name, input, expectedOutput] properties: name: type: string input: type: string expectedOutput: type: string hidden: type: boolean CodingTestResult: type: object required: [name, passed, expectedOutput, actualOutput, runtimeMs] properties: name: type: string passed: type: boolean expectedOutput: type: string actualOutput: type: string runtimeMs: type: integer error: type: ["string", "null"] hidden: type: boolean CodingChallengeSummary: type: object required: [id, slug, title, language, difficulty, topic] properties: id: type: integer slug: type: string title: type: string language: type: string difficulty: type: string topic: type: ["string", "null"] certificationId: type: ["integer", "null"] certificationCode: type: ["string", "null"] accentColor: type: ["string", "null"] timeLimitSeconds: type: integer bestScore: type: integer solved: type: boolean attemptCount: type: integer CodingChallengeDetail: type: object required: [id, slug, title, description, language, difficulty, starterCode, examples, constraints, publicTestCases, hints, timeLimitSeconds, totalTestCount] properties: id: type: integer slug: type: string title: type: string description: type: string language: type: string difficulty: type: string topic: type: ["string", "null"] certificationId: type: ["integer", "null"] certificationCode: type: ["string", "null"] accentColor: type: ["string", "null"] starterCode: type: string examples: type: array items: type: string constraints: type: array items: type: string publicTestCases: type: array items: $ref: "#/components/schemas/CodingTestCase" hints: type: array items: type: string timeLimitSeconds: type: integer totalTestCount: type: integer bestScore: type: integer solved: type: boolean CodeRunRequest: type: object required: [challengeId, code] properties: challengeId: type: integer code: type: string language: type: string CodeRunResult: type: object required: [status, passedCount, totalCount, score, runtimeMs, results] properties: status: type: string passedCount: type: integer totalCount: type: integer score: type: integer runtimeMs: type: integer results: type: array items: $ref: "#/components/schemas/CodingTestResult" CodeSubmitRequest: type: object required: [code] properties: code: type: string language: type: string CodingSubmission: type: object required: [id, challengeId, language, code, status, score, passedCount, totalCount, runtimeMs, results, createdAt] properties: id: type: integer challengeId: type: integer language: type: string code: type: string status: type: string score: type: integer passedCount: type: integer totalCount: type: integer runtimeMs: type: integer results: type: array items: $ref: "#/components/schemas/CodingTestResult" createdAt: type: string LabRule: type: object required: [type] properties: type: type: string componentType: type: string fromType: type: string toType: type: string count: type: integer LabTask: type: object required: [id, title, description, rules] properties: id: type: string title: type: string description: type: string hint: type: ["string", "null"] rules: type: array items: $ref: "#/components/schemas/LabRule" LabSummary: type: object required: [id, slug, title, description, provider, difficulty, goal] properties: id: type: integer slug: type: string title: type: string description: type: string provider: type: string difficulty: type: string goal: type: string certificationId: type: ["integer", "null"] certificationCode: type: ["string", "null"] accentColor: type: ["string", "null"] taskCount: type: integer bestScore: type: integer completed: type: boolean attemptCount: type: integer LabComponentSpec: type: object required: [type, label, category] properties: type: type: string label: type: string category: type: string LabDetail: type: object required: [id, slug, title, description, provider, difficulty, goal, requiredComponents, tasks, palette] properties: id: type: integer slug: type: string title: type: string description: type: string provider: type: string difficulty: type: string goal: type: string certificationId: type: ["integer", "null"] certificationCode: type: ["string", "null"] accentColor: type: ["string", "null"] requiredComponents: type: array items: type: string tasks: type: array items: $ref: "#/components/schemas/LabTask" palette: type: array items: $ref: "#/components/schemas/LabComponentSpec" guideUrl: type: ["string", "null"] lastCanvas: $ref: "#/components/schemas/LabCanvas" bestScore: type: integer completed: type: boolean LabCanvasNode: type: object required: [id, type, position] properties: id: type: string type: type: string label: type: string position: type: object required: [x, y] properties: x: type: number y: type: number LabCanvasEdge: type: object required: [id, source, target] properties: id: type: string source: type: string target: type: string LabCanvas: type: object required: [nodes, edges] properties: nodes: type: array items: $ref: "#/components/schemas/LabCanvasNode" edges: type: array items: $ref: "#/components/schemas/LabCanvasEdge" LabValidateRequest: type: object required: [canvas] properties: canvas: $ref: "#/components/schemas/LabCanvas" LabTaskResult: type: object required: [taskId, title, passed, feedback] properties: taskId: type: string title: type: string passed: type: boolean feedback: type: string LabAttempt: type: object required: [id, labId, status, score, passedCount, totalCount, taskResults, canvas, createdAt] properties: id: type: integer labId: type: integer status: type: string score: type: integer passedCount: type: integer totalCount: type: integer taskResults: type: array items: $ref: "#/components/schemas/LabTaskResult" canvas: $ref: "#/components/schemas/LabCanvas" createdAt: type: string