{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"PlayFit learning endpoint contracts","scope":"Canonical learning dispatcher routes. Legacy commerce learning routes and raw storage authorization are outside this catalogue.","notes":["ISO date strings and the data envelope describe wire responses.","Strict raw record schemas apply only to existing administrator/progress/entitlement responses; public DTOs use explicit fields.","Legacy JSON-valued fields preserve their JSON shape. Cross-field input refinements and operation-specific errors are enforced by the application.","Session endpoints also require the dispatcher onboarding gates. Permission metadata records the additional learning manager check."],"$defs":{"adminLearningCourseListSchema":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema0"},"slug":{"$ref":"#/$defs/__shared/$defs/schema1"},"title":{"$ref":"#/$defs/__shared/$defs/schema2"},"author":{"$ref":"#/$defs/__shared/$defs/schema3"},"expert":{"$ref":"#/$defs/__shared/$defs/schema4"},"description":{"$ref":"#/$defs/__shared/$defs/schema5"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema6"},"trailerUrl":{"$ref":"#/$defs/__shared/$defs/schema7"},"audience":{"$ref":"#/$defs/__shared/$defs/schema8"},"outcomes":{"$ref":"#/$defs/__shared/$defs/schema10"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema12"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema14"},"durationMinutes":{"$ref":"#/$defs/__shared/$defs/schema15"},"offerProductId":{"$ref":"#/$defs/__shared/$defs/schema16"},"status":{"$ref":"#/$defs/courseStatusSchema"},"scheduledAt":{"$ref":"#/$defs/__shared/$defs/schema17"},"publishedAt":{"$ref":"#/$defs/__shared/$defs/schema18"},"archivedAt":{"$ref":"#/$defs/__shared/$defs/schema19"},"metadata":{"$ref":"#/$defs/__shared/$defs/schema20"},"createdAt":{"$ref":"#/$defs/__shared/$defs/schema22"},"updatedAt":{"$ref":"#/$defs/__shared/$defs/schema23"},"offerProduct":{"$ref":"#/$defs/__shared/$defs/schema24"},"modules":{"$ref":"#/$defs/__shared/$defs/schema30"},"_count":{"type":"object","properties":{"enrollments":{"$ref":"#/$defs/__shared/$defs/schema77"}},"required":["enrollments"],"additionalProperties":false},"enrollments":{"type":"array","items":{"type":"object","properties":{"progressPercent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"}},"required":["progressPercent","status"],"additionalProperties":false}},"stats":{"type":"object","properties":{"owners":{"$ref":"#/$defs/__shared/$defs/schema77"},"started":{"$ref":"#/$defs/__shared/$defs/schema77"},"completed":{"$ref":"#/$defs/__shared/$defs/schema77"},"averageProgress":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["owners","started","completed","averageProgress"],"additionalProperties":false},"savings":{"$ref":"#/$defs/learningSavingsSchema"}},"required":["id","slug","title","author","expert","description","coverUrl","trailerUrl","audience","outcomes","equipment","difficulty","durationMinutes","offerProductId","status","scheduledAt","publishedAt","archivedAt","metadata","createdAt","updatedAt","offerProduct","modules","_count","enrollments","stats","savings"],"additionalProperties":false}},"adminLearningCourseSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema0"},"slug":{"$ref":"#/$defs/__shared/$defs/schema1"},"title":{"$ref":"#/$defs/__shared/$defs/schema2"},"author":{"$ref":"#/$defs/__shared/$defs/schema3"},"expert":{"$ref":"#/$defs/__shared/$defs/schema4"},"description":{"$ref":"#/$defs/__shared/$defs/schema5"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema6"},"trailerUrl":{"$ref":"#/$defs/__shared/$defs/schema7"},"audience":{"$ref":"#/$defs/__shared/$defs/schema8"},"outcomes":{"$ref":"#/$defs/__shared/$defs/schema10"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema12"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema14"},"durationMinutes":{"$ref":"#/$defs/__shared/$defs/schema15"},"offerProductId":{"$ref":"#/$defs/__shared/$defs/schema16"},"status":{"$ref":"#/$defs/courseStatusSchema"},"scheduledAt":{"$ref":"#/$defs/__shared/$defs/schema17"},"publishedAt":{"$ref":"#/$defs/__shared/$defs/schema18"},"archivedAt":{"$ref":"#/$defs/__shared/$defs/schema19"},"metadata":{"$ref":"#/$defs/__shared/$defs/schema20"},"createdAt":{"$ref":"#/$defs/__shared/$defs/schema22"},"updatedAt":{"$ref":"#/$defs/__shared/$defs/schema23"},"offerProduct":{"$ref":"#/$defs/__shared/$defs/schema24"},"modules":{"$ref":"#/$defs/__shared/$defs/schema30"}},"required":["id","slug","title","author","expert","description","coverUrl","trailerUrl","audience","outcomes","equipment","difficulty","durationMinutes","offerProductId","status","scheduledAt","publishedAt","archivedAt","metadata","createdAt","updatedAt","offerProduct","modules"],"additionalProperties":false},"adminLearningLessonSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema43"},"slug":{"$ref":"#/$defs/__shared/$defs/schema44"},"title":{"$ref":"#/$defs/__shared/$defs/schema45"},"shortDescription":{"$ref":"#/$defs/__shared/$defs/schema46"},"body":{"$ref":"#/$defs/__shared/$defs/schema47"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema48"},"contentType":{"$ref":"#/$defs/lessonContentTypeSchema"},"videoUrl":{"$ref":"#/$defs/__shared/$defs/schema49"},"attachments":{"$ref":"#/$defs/__shared/$defs/schema50"},"author":{"$ref":"#/$defs/__shared/$defs/schema52"},"expert":{"$ref":"#/$defs/__shared/$defs/schema53"},"goal":{"$ref":"#/$defs/__shared/$defs/schema54"},"drills":{"$ref":"#/$defs/__shared/$defs/schema55"},"cues":{"$ref":"#/$defs/__shared/$defs/schema57"},"durationSeconds":{"$ref":"#/$defs/__shared/$defs/schema59"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema60"},"tags":{"$ref":"#/$defs/__shared/$defs/schema61"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema63"},"preview":{"$ref":"#/$defs/__shared/$defs/schema65"},"status":{"$ref":"#/$defs/courseStatusSchema"},"scheduledAt":{"$ref":"#/$defs/__shared/$defs/schema66"},"publishedAt":{"$ref":"#/$defs/__shared/$defs/schema67"},"archivedAt":{"$ref":"#/$defs/__shared/$defs/schema68"},"completionRules":{"$ref":"#/$defs/__shared/$defs/schema69"},"metadata":{"$ref":"#/$defs/__shared/$defs/schema71"},"offerProductId":{"$ref":"#/$defs/__shared/$defs/schema73"},"createdAt":{"$ref":"#/$defs/__shared/$defs/schema74"},"updatedAt":{"$ref":"#/$defs/__shared/$defs/schema75"},"offerProduct":{"$ref":"#/$defs/__shared/$defs/schema76"},"placements":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema36"},"moduleId":{"$ref":"#/$defs/__shared/$defs/schema37"},"lessonId":{"$ref":"#/$defs/__shared/$defs/schema38"},"required":{"$ref":"#/$defs/__shared/$defs/schema39"},"settings":{"$ref":"#/$defs/__shared/$defs/schema40"},"sortOrder":{"$ref":"#/$defs/__shared/$defs/schema42"},"module":{"type":"object","properties":{"courseId":{"type":"string"},"course":{"type":"object","properties":{"title":{"type":"string"},"status":{"$ref":"#/$defs/courseStatusSchema"}},"required":["title","status"],"additionalProperties":false}},"required":["courseId","course"],"additionalProperties":false}},"required":["id","moduleId","lessonId","required","settings","sortOrder","module"],"additionalProperties":false}}},"required":["id","slug","title","shortDescription","body","coverUrl","contentType","videoUrl","attachments","author","expert","goal","drills","cues","durationSeconds","difficulty","tags","equipment","preview","status","scheduledAt","publishedAt","archivedAt","completionRules","metadata","offerProductId","createdAt","updatedAt","offerProduct","placements"],"additionalProperties":false},"learningAccessSourceSchema":{"type":"object","properties":{"type":{"type":"string","enum":["LESSON","COURSE","PREVIEW"]},"referenceId":{"type":"string"},"entitlementId":{"$ref":"#/$defs/__shared/$defs/schema78"}},"required":["type","referenceId","entitlementId"],"additionalProperties":false},"learningCatalogResponseSchema":{"type":"object","properties":{"items":{"type":"array","items":{"oneOf":[{"$ref":"#/$defs/learningLessonCardSchema"},{"$ref":"#/$defs/learningCourseCardSchema"}]}},"continue":{"anyOf":[{"$ref":"#/$defs/learningLessonCardSchema"},{"type":"null"}]},"counts":{"type":"object","properties":{"all":{"$ref":"#/$defs/__shared/$defs/schema77"},"lessons":{"$ref":"#/$defs/__shared/$defs/schema77"},"courses":{"$ref":"#/$defs/__shared/$defs/schema77"},"owned":{"$ref":"#/$defs/__shared/$defs/schema77"}},"required":["all","lessons","courses","owned"],"additionalProperties":false}},"required":["items","continue","counts"],"additionalProperties":false},"learningCourseCardSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema79"},"slug":{"$ref":"#/$defs/__shared/$defs/schema80"},"title":{"$ref":"#/$defs/__shared/$defs/schema81"},"shortDescription":{"$ref":"#/$defs/__shared/$defs/schema82"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"author":{"$ref":"#/$defs/__shared/$defs/schema83"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema84"},"durationSeconds":{"$ref":"#/$defs/__shared/$defs/schema85"},"status":{"$ref":"#/$defs/courseStatusSchema"},"offer":{"$ref":"#/$defs/learningOfferSchema"},"type":{"type":"string","const":"COURSE"},"trailerUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"lessonCount":{"$ref":"#/$defs/__shared/$defs/schema77"},"access":{"type":"object","properties":{"accessible":{"type":"boolean"},"accessibleLessons":{"$ref":"#/$defs/__shared/$defs/schema77"},"totalLessons":{"$ref":"#/$defs/__shared/$defs/schema77"}},"required":["accessible","accessibleLessons","totalLessons"],"additionalProperties":false},"progress":{"type":"object","properties":{"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"boolean"}},"required":["percent","completed"],"additionalProperties":false},"savings":{"$ref":"#/$defs/learningSavingsSchema"}},"required":["id","slug","title","shortDescription","coverUrl","author","difficulty","durationSeconds","status","offer","type","trailerUrl","lessonCount","access","progress","savings"],"additionalProperties":false},"learningCourseDetailSchema":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"trailerUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"author":{"type":"string"},"expert":{"$ref":"#/$defs/__shared/$defs/schema78"},"audience":{"$ref":"#/$defs/__shared/$defs/schema88"},"outcomes":{"$ref":"#/$defs/__shared/$defs/schema89"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema90"},"difficulty":{"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"$ref":"#/$defs/courseStatusSchema"},"modules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"$ref":"#/$defs/__shared/$defs/schema78"},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lessons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"shortDescription":{"type":"string"},"durationSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":{"type":"boolean"},"preview":{"type":"boolean"},"status":{"$ref":"#/$defs/courseStatusSchema"},"accessible":{"type":"boolean"},"offer":{"$ref":"#/$defs/learningOfferSchema"}},"required":["id","slug","title","shortDescription","durationSeconds","required","preview","status","accessible","offer"],"additionalProperties":false}}},"required":["id","title","description","sortOrder","lessons"],"additionalProperties":false}},"offer":{"$ref":"#/$defs/learningOfferSchema"},"progress":{"type":"object","properties":{"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"boolean"},"lastLessonId":{"$ref":"#/$defs/__shared/$defs/schema78"}},"required":["percent","completed"],"additionalProperties":false},"purchasePreview":{"type":"object","properties":{"price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"alreadyAccessible":{"$ref":"#/$defs/__shared/$defs/schema77"},"willUnlock":{"$ref":"#/$defs/__shared/$defs/schema77"},"totalLessons":{"$ref":"#/$defs/__shared/$defs/schema77"},"fullyAccessible":{"type":"boolean"}},"required":["price","alreadyAccessible","willUnlock","totalLessons","fullyAccessible"],"additionalProperties":false},"savings":{"$ref":"#/$defs/learningSavingsSchema"}},"required":["id","slug","title","description","coverUrl","trailerUrl","author","expert","audience","outcomes","equipment","difficulty","durationMinutes","status","modules","offer","progress","purchasePreview","savings"],"additionalProperties":false},"learningLessonCardSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema79"},"slug":{"$ref":"#/$defs/__shared/$defs/schema80"},"title":{"$ref":"#/$defs/__shared/$defs/schema81"},"shortDescription":{"$ref":"#/$defs/__shared/$defs/schema82"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"author":{"$ref":"#/$defs/__shared/$defs/schema83"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema84"},"durationSeconds":{"$ref":"#/$defs/__shared/$defs/schema85"},"status":{"$ref":"#/$defs/courseStatusSchema"},"offer":{"$ref":"#/$defs/learningOfferSchema"},"type":{"type":"string","const":"LESSON"},"videoUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"preview":{"type":"boolean"},"access":{"$ref":"#/$defs/__shared/$defs/schema87"},"progress":{"type":"object","properties":{"seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"boolean"}},"required":["seconds","percent","completed"],"additionalProperties":false}},"required":["id","slug","title","shortDescription","coverUrl","author","difficulty","durationSeconds","status","offer","type","videoUrl","preview","access","progress"],"additionalProperties":false},"learningLessonDetailSchema":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"shortDescription":{"type":"string"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"contentType":{"$ref":"#/$defs/lessonContentTypeSchema"},"author":{"type":"string"},"expert":{"$ref":"#/$defs/__shared/$defs/schema78"},"goal":{"$ref":"#/$defs/__shared/$defs/schema78"},"difficulty":{"type":"string"},"tags":{"$ref":"#/$defs/__shared/$defs/schema91"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema92"},"durationSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preview":{"type":"boolean"},"status":{"$ref":"#/$defs/courseStatusSchema"},"offer":{"$ref":"#/$defs/learningOfferSchema"},"access":{"$ref":"#/$defs/__shared/$defs/schema87"},"progress":{"type":"object","properties":{"seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"boolean"},"completedAt":{"$ref":"#/$defs/__shared/$defs/schema86"}},"required":["seconds","completed"],"additionalProperties":false},"content":{"anyOf":[{"type":"object","properties":{"body":{"$ref":"#/$defs/__shared/$defs/schema78"},"videoUrl":{"$ref":"#/$defs/__shared/$defs/schema78"},"attachments":{"$ref":"#/$defs/__shared/$defs/schema93"},"drills":{"$ref":"#/$defs/__shared/$defs/schema94"},"cues":{"$ref":"#/$defs/__shared/$defs/schema95"},"completionRules":{"$ref":"#/$defs/__shared/$defs/schema96"}},"required":["body","videoUrl","attachments","drills","cues","completionRules"],"additionalProperties":false},{"type":"null"}]},"courses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"$ref":"#/$defs/courseStatusSchema"}},"required":["id","title","status"],"additionalProperties":false}}},"required":["id","slug","title","shortDescription","coverUrl","contentType","author","expert","goal","difficulty","tags","equipment","durationSeconds","preview","status","offer","access","progress","content","courses"],"additionalProperties":false},"learningMediaResponseSchema":{"type":"object","properties":{"url":{"type":"string"},"storagePath":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"size":{"$ref":"#/$defs/__shared/$defs/schema77"}},"required":["url","storagePath","fileName","mimeType","size"],"additionalProperties":false},"learningOfferSchema":{"anyOf":[{"type":"object","properties":{"productId":{"type":"string"},"price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oldPrice":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string"},"status":{"$ref":"#/$defs/shopProductStatusSchema"},"available":{"type":"boolean"},"free":{"type":"boolean"},"availableFrom":{"$ref":"#/$defs/__shared/$defs/schema86"},"availableUntil":{"$ref":"#/$defs/__shared/$defs/schema86"}},"required":["productId","price","oldPrice","currency","status","available","free","availableFrom","availableUntil"],"additionalProperties":false},{"type":"null"}]},"learningSavingsSchema":{"type":"object","properties":{"separatePrice":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comparisonComplete":{"type":"boolean"},"excludedLessons":{"$ref":"#/$defs/__shared/$defs/schema77"},"savingsAmount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"savingsPercent":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["separatePrice","comparisonComplete","excludedLessons","savingsAmount","savingsPercent"],"additionalProperties":false},"courseEnrollmentRecordSchema":{"type":"object","properties":{"id":{"type":"string"},"courseId":{"type":"string"},"userId":{"type":"string"},"entitlementId":{"type":["string","null"]},"status":{"type":"string"},"progressPercent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastLessonId":{"type":["string","null"]},"enrolledAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","courseId","userId","entitlementId","status","progressPercent","lastLessonId","enrolledAt","completedAt"],"additionalProperties":false},"courseLessonRecordSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema36"},"moduleId":{"$ref":"#/$defs/__shared/$defs/schema37"},"lessonId":{"$ref":"#/$defs/__shared/$defs/schema38"},"required":{"$ref":"#/$defs/__shared/$defs/schema39"},"settings":{"$ref":"#/$defs/__shared/$defs/schema40"},"sortOrder":{"$ref":"#/$defs/__shared/$defs/schema42"}},"required":["id","moduleId","lessonId","required","settings","sortOrder"],"additionalProperties":false},"courseModuleRecordSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema31"},"courseId":{"$ref":"#/$defs/__shared/$defs/schema32"},"title":{"$ref":"#/$defs/__shared/$defs/schema33"},"description":{"$ref":"#/$defs/__shared/$defs/schema34"},"sortOrder":{"$ref":"#/$defs/__shared/$defs/schema35"}},"required":["id","courseId","title","description","sortOrder"],"additionalProperties":false},"courseRecordSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema0"},"slug":{"$ref":"#/$defs/__shared/$defs/schema1"},"title":{"$ref":"#/$defs/__shared/$defs/schema2"},"author":{"$ref":"#/$defs/__shared/$defs/schema3"},"expert":{"$ref":"#/$defs/__shared/$defs/schema4"},"description":{"$ref":"#/$defs/__shared/$defs/schema5"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema6"},"trailerUrl":{"$ref":"#/$defs/__shared/$defs/schema7"},"audience":{"$ref":"#/$defs/__shared/$defs/schema8"},"outcomes":{"$ref":"#/$defs/__shared/$defs/schema10"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema12"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema14"},"durationMinutes":{"$ref":"#/$defs/__shared/$defs/schema15"},"offerProductId":{"$ref":"#/$defs/__shared/$defs/schema16"},"status":{"$ref":"#/$defs/courseStatusSchema"},"scheduledAt":{"$ref":"#/$defs/__shared/$defs/schema17"},"publishedAt":{"$ref":"#/$defs/__shared/$defs/schema18"},"archivedAt":{"$ref":"#/$defs/__shared/$defs/schema19"},"metadata":{"$ref":"#/$defs/__shared/$defs/schema20"},"createdAt":{"$ref":"#/$defs/__shared/$defs/schema22"},"updatedAt":{"$ref":"#/$defs/__shared/$defs/schema23"}},"required":["id","slug","title","author","expert","description","coverUrl","trailerUrl","audience","outcomes","equipment","difficulty","durationMinutes","offerProductId","status","scheduledAt","publishedAt","archivedAt","metadata","createdAt","updatedAt"],"additionalProperties":false},"courseStatusSchema":{"type":"string","enum":["DRAFT","SCHEDULED","PUBLISHED","ARCHIVED"]},"entitlementStatusSchema":{"type":"string","enum":["PENDING","ACTIVE","USED","EXPIRED","REVOKED","REFUNDED"]},"lessonContentTypeSchema":{"type":"string","enum":["VIDEO","TEXT","MIXED"]},"lessonProgressRecordSchema":{"type":"object","properties":{"id":{"type":"string"},"lessonId":{"type":"string"},"userId":{"type":"string"},"progressSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"boolean"},"completedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","lessonId","userId","progressSeconds","completed","completedAt","updatedAt"],"additionalProperties":false},"lessonRecordSchema":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema43"},"slug":{"$ref":"#/$defs/__shared/$defs/schema44"},"title":{"$ref":"#/$defs/__shared/$defs/schema45"},"shortDescription":{"$ref":"#/$defs/__shared/$defs/schema46"},"body":{"$ref":"#/$defs/__shared/$defs/schema47"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema48"},"contentType":{"$ref":"#/$defs/lessonContentTypeSchema"},"videoUrl":{"$ref":"#/$defs/__shared/$defs/schema49"},"attachments":{"$ref":"#/$defs/__shared/$defs/schema50"},"author":{"$ref":"#/$defs/__shared/$defs/schema52"},"expert":{"$ref":"#/$defs/__shared/$defs/schema53"},"goal":{"$ref":"#/$defs/__shared/$defs/schema54"},"drills":{"$ref":"#/$defs/__shared/$defs/schema55"},"cues":{"$ref":"#/$defs/__shared/$defs/schema57"},"durationSeconds":{"$ref":"#/$defs/__shared/$defs/schema59"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema60"},"tags":{"$ref":"#/$defs/__shared/$defs/schema61"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema63"},"preview":{"$ref":"#/$defs/__shared/$defs/schema65"},"status":{"$ref":"#/$defs/courseStatusSchema"},"scheduledAt":{"$ref":"#/$defs/__shared/$defs/schema66"},"publishedAt":{"$ref":"#/$defs/__shared/$defs/schema67"},"archivedAt":{"$ref":"#/$defs/__shared/$defs/schema68"},"completionRules":{"$ref":"#/$defs/__shared/$defs/schema69"},"metadata":{"$ref":"#/$defs/__shared/$defs/schema71"},"offerProductId":{"$ref":"#/$defs/__shared/$defs/schema73"},"createdAt":{"$ref":"#/$defs/__shared/$defs/schema74"},"updatedAt":{"$ref":"#/$defs/__shared/$defs/schema75"}},"required":["id","slug","title","shortDescription","body","coverUrl","contentType","videoUrl","attachments","author","expert","goal","drills","cues","durationSeconds","difficulty","tags","equipment","preview","status","scheduledAt","publishedAt","archivedAt","completionRules","metadata","offerProductId","createdAt","updatedAt"],"additionalProperties":false},"shopProductRecordSchema":{"type":"object","properties":{"id":{"type":"string"},"categoryId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"shortDescription":{"type":"string"},"description":{"type":"string"},"images":{"$ref":"#/$defs/__shared/$defs/schema25"},"gallery":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema26"},{"type":"null"}]},"type":{"$ref":"#/$defs/shopProductTypeSchema"},"tags":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema27"},{"type":"null"}]},"price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"oldPrice":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"discountPercent":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"globalLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stockTracked":{"type":"boolean"},"availableFrom":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"availableUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"minLevel":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"requiredLeagueId":{"type":["string","null"]},"requiredAchievements":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema28"},{"type":"null"}]},"purchaseLimitPerUser":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"fulfillmentType":{"type":"string"},"status":{"$ref":"#/$defs/shopProductStatusSchema"},"cta":{"type":["string","null"]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metadata":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema29"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","categoryId","slug","name","shortDescription","description","images","gallery","type","tags","price","currency","oldPrice","discountPercent","globalLimit","stockTracked","availableFrom","availableUntil","minLevel","requiredLeagueId","requiredAchievements","purchaseLimitPerUser","fulfillmentType","status","cta","sortOrder","metadata","publishedAt","archivedAt","createdAt","updatedAt"],"additionalProperties":false},"shopProductStatusSchema":{"type":"string","enum":["DRAFT","SCHEDULED","ACTIVE","SOLD_OUT","EXPIRED","ARCHIVED"]},"shopProductTypeSchema":{"type":"string","enum":["DIGITAL_ITEM","PHYSICAL_PRODUCT","MERCH","PASS","SERVICE","RENTAL","GUEST_VISIT","COURSE","LESSON","ROUTE","SECRET_ROUTE","EVENT","TRIP","MYSTERY_BOX","SPECIAL_REWARD"]},"userEntitlementRecordSchema":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"orderId":{"type":["string","null"]},"orderItemId":{"type":["string","null"]},"type":{"$ref":"#/$defs/shopProductTypeSchema"},"referenceId":{"type":["string","null"]},"status":{"$ref":"#/$defs/entitlementStatusSchema"},"startsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"usedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"metadata":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema97"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","userId","orderId","orderItemId","type","referenceId","status","startsAt","expiresAt","activatedAt","usedAt","revokedAt","metadata","createdAt","updatedAt"],"additionalProperties":false},"apiFailureResponseSchema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"$ref":"#/$defs/__shared/$defs/schema98"},"requestId":{"type":"string","minLength":1}},"required":["code","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"mediaAccessResponseSchema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["url","expiresAt"],"additionalProperties":false},"learningMediaAccess":{"type":"object","properties":{"data":{"$ref":"#/$defs/mediaAccessResponseSchema"}},"required":["data"],"additionalProperties":false},"learningCatalog":{"type":"object","properties":{"data":{"$ref":"#/$defs/learningCatalogResponseSchema"}},"required":["data"],"additionalProperties":false},"learningLessonDetail":{"type":"object","properties":{"data":{"$ref":"#/$defs/learningLessonDetailSchema"}},"required":["data"],"additionalProperties":false},"learningCourseDetail":{"type":"object","properties":{"data":{"$ref":"#/$defs/learningCourseDetailSchema"}},"required":["data"],"additionalProperties":false},"learningLessonFreeAccess":{"type":"object","properties":{"data":{"$ref":"#/$defs/userEntitlementRecordSchema"}},"required":["data"],"additionalProperties":false},"learningCourseFreeAccess":{"type":"object","properties":{"data":{"$ref":"#/$defs/userEntitlementRecordSchema"}},"required":["data"],"additionalProperties":false},"learningLessonProgressPOST":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonProgressRecordSchema"}},"required":["data"],"additionalProperties":false},"learningLessonProgressPATCH":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonProgressRecordSchema"}},"required":["data"],"additionalProperties":false},"learningLessonCompletePOST":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonProgressRecordSchema"}},"required":["data"],"additionalProperties":false},"learningLessonCompletePATCH":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonProgressRecordSchema"}},"required":["data"],"additionalProperties":false},"learningLessonReopenPOST":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonProgressRecordSchema"}},"required":["data"],"additionalProperties":false},"learningLessonReopenPATCH":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonProgressRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningLessons":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/adminLearningLessonSchema"}}},"required":["data"],"additionalProperties":false},"adminLearningLesson":{"type":"object","properties":{"data":{"anyOf":[{"$ref":"#/$defs/adminLearningLessonSchema"},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"adminLearningLessonCreate":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningLessonPatch":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningLessonDuplicate":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningLessonArchive":{"type":"object","properties":{"data":{"$ref":"#/$defs/lessonRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningCourses":{"type":"object","properties":{"data":{"$ref":"#/$defs/adminLearningCourseListSchema"}},"required":["data"],"additionalProperties":false},"adminLearningCourse":{"type":"object","properties":{"data":{"anyOf":[{"$ref":"#/$defs/adminLearningCourseSchema"},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"adminLearningCourseCreate":{"type":"object","properties":{"data":{"$ref":"#/$defs/courseRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningCoursePatch":{"type":"object","properties":{"data":{"$ref":"#/$defs/courseRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningCourseProgram":{"type":"object","properties":{"data":{"$ref":"#/$defs/adminLearningCourseSchema"}},"required":["data"],"additionalProperties":false},"adminLearningCoursePublish":{"type":"object","properties":{"data":{"$ref":"#/$defs/courseRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningCourseArchive":{"type":"object","properties":{"data":{"$ref":"#/$defs/courseRecordSchema"}},"required":["data"],"additionalProperties":false},"adminLearningMedia":{"type":"object","properties":{"data":{"$ref":"#/$defs/learningMediaResponseSchema"}},"required":["data"],"additionalProperties":false},"__shared":{"$defs":{"schema0":{"type":"string"},"schema1":{"type":"string"},"schema2":{"type":"string"},"schema3":{"type":"string"},"schema4":{"type":["string","null"]},"schema5":{"type":"string"},"schema6":{"type":["string","null"]},"schema7":{"type":["string","null"]},"schema8":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema9"},{"type":"null"}]},"schema9":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema9"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema9"}}]},"schema10":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema11"},{"type":"null"}]},"schema11":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema11"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema11"}}]},"schema12":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema13"},{"type":"null"}]},"schema13":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema13"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema13"}}]},"schema14":{"type":"string"},"schema15":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"schema16":{"type":["string","null"]},"schema17":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"schema18":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"schema19":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"schema20":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema21"},{"type":"null"}]},"schema21":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema21"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema21"}}]},"schema22":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"schema23":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"schema24":{"anyOf":[{"$ref":"#/$defs/shopProductRecordSchema"},{"type":"null"}]},"schema25":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema25"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema25"}}]},"schema26":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema26"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema26"}}]},"schema27":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema27"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema27"}}]},"schema28":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema28"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema28"}}]},"schema29":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema29"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema29"}}]},"schema30":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema31"},"courseId":{"$ref":"#/$defs/__shared/$defs/schema32"},"title":{"$ref":"#/$defs/__shared/$defs/schema33"},"description":{"$ref":"#/$defs/__shared/$defs/schema34"},"sortOrder":{"$ref":"#/$defs/__shared/$defs/schema35"},"lessons":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema36"},"moduleId":{"$ref":"#/$defs/__shared/$defs/schema37"},"lessonId":{"$ref":"#/$defs/__shared/$defs/schema38"},"required":{"$ref":"#/$defs/__shared/$defs/schema39"},"settings":{"$ref":"#/$defs/__shared/$defs/schema40"},"sortOrder":{"$ref":"#/$defs/__shared/$defs/schema42"},"lesson":{"type":"object","properties":{"id":{"$ref":"#/$defs/__shared/$defs/schema43"},"slug":{"$ref":"#/$defs/__shared/$defs/schema44"},"title":{"$ref":"#/$defs/__shared/$defs/schema45"},"shortDescription":{"$ref":"#/$defs/__shared/$defs/schema46"},"body":{"$ref":"#/$defs/__shared/$defs/schema47"},"coverUrl":{"$ref":"#/$defs/__shared/$defs/schema48"},"contentType":{"$ref":"#/$defs/lessonContentTypeSchema"},"videoUrl":{"$ref":"#/$defs/__shared/$defs/schema49"},"attachments":{"$ref":"#/$defs/__shared/$defs/schema50"},"author":{"$ref":"#/$defs/__shared/$defs/schema52"},"expert":{"$ref":"#/$defs/__shared/$defs/schema53"},"goal":{"$ref":"#/$defs/__shared/$defs/schema54"},"drills":{"$ref":"#/$defs/__shared/$defs/schema55"},"cues":{"$ref":"#/$defs/__shared/$defs/schema57"},"durationSeconds":{"$ref":"#/$defs/__shared/$defs/schema59"},"difficulty":{"$ref":"#/$defs/__shared/$defs/schema60"},"tags":{"$ref":"#/$defs/__shared/$defs/schema61"},"equipment":{"$ref":"#/$defs/__shared/$defs/schema63"},"preview":{"$ref":"#/$defs/__shared/$defs/schema65"},"status":{"$ref":"#/$defs/courseStatusSchema"},"scheduledAt":{"$ref":"#/$defs/__shared/$defs/schema66"},"publishedAt":{"$ref":"#/$defs/__shared/$defs/schema67"},"archivedAt":{"$ref":"#/$defs/__shared/$defs/schema68"},"completionRules":{"$ref":"#/$defs/__shared/$defs/schema69"},"metadata":{"$ref":"#/$defs/__shared/$defs/schema71"},"offerProductId":{"$ref":"#/$defs/__shared/$defs/schema73"},"createdAt":{"$ref":"#/$defs/__shared/$defs/schema74"},"updatedAt":{"$ref":"#/$defs/__shared/$defs/schema75"},"offerProduct":{"$ref":"#/$defs/__shared/$defs/schema76"}},"required":["id","slug","title","shortDescription","body","coverUrl","contentType","videoUrl","attachments","author","expert","goal","drills","cues","durationSeconds","difficulty","tags","equipment","preview","status","scheduledAt","publishedAt","archivedAt","completionRules","metadata","offerProductId","createdAt","updatedAt","offerProduct"],"additionalProperties":false}},"required":["id","moduleId","lessonId","required","settings","sortOrder","lesson"],"additionalProperties":false}}},"required":["id","courseId","title","description","sortOrder","lessons"],"additionalProperties":false}},"schema31":{"type":"string"},"schema32":{"type":"string"},"schema33":{"type":"string"},"schema34":{"type":["string","null"]},"schema35":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"schema36":{"type":"string"},"schema37":{"type":"string"},"schema38":{"type":"string"},"schema39":{"type":"boolean"},"schema40":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema41"},{"type":"null"}]},"schema41":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema41"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema41"}}]},"schema42":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"schema43":{"type":"string"},"schema44":{"type":"string"},"schema45":{"type":"string"},"schema46":{"type":"string"},"schema47":{"type":["string","null"]},"schema48":{"type":["string","null"]},"schema49":{"type":["string","null"]},"schema50":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema51"},{"type":"null"}]},"schema51":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema51"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema51"}}]},"schema52":{"type":"string"},"schema53":{"type":["string","null"]},"schema54":{"type":["string","null"]},"schema55":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema56"},{"type":"null"}]},"schema56":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema56"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema56"}}]},"schema57":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema58"},{"type":"null"}]},"schema58":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema58"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema58"}}]},"schema59":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"schema60":{"type":"string"},"schema61":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema62"},{"type":"null"}]},"schema62":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema62"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema62"}}]},"schema63":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema64"},{"type":"null"}]},"schema64":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema64"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema64"}}]},"schema65":{"type":"boolean"},"schema66":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"schema67":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"schema68":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"schema69":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema70"},{"type":"null"}]},"schema70":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema70"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema70"}}]},"schema71":{"anyOf":[{"$ref":"#/$defs/__shared/$defs/schema72"},{"type":"null"}]},"schema72":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema72"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema72"}}]},"schema73":{"type":["string","null"]},"schema74":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"schema75":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"schema76":{"anyOf":[{"$ref":"#/$defs/shopProductRecordSchema"},{"type":"null"}]},"schema77":{"type":"integer","minimum":0,"maximum":9007199254740991},"schema78":{"type":["string","null"]},"schema79":{"type":"string"},"schema80":{"type":"string"},"schema81":{"type":"string"},"schema82":{"type":"string"},"schema83":{"type":"string"},"schema84":{"type":"string"},"schema85":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"schema86":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"schema87":{"type":"object","properties":{"accessible":{"type":"boolean"},"sources":{"type":"array","items":{"$ref":"#/$defs/learningAccessSourceSchema"}}},"required":["accessible","sources"],"additionalProperties":false},"schema88":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema88"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema88"}}]},"schema89":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema89"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema89"}}]},"schema90":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema90"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema90"}}]},"schema91":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema91"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema91"}}]},"schema92":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema92"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema92"}}]},"schema93":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema93"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema93"}}]},"schema94":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema94"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema94"}}]},"schema95":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema95"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema95"}}]},"schema96":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema96"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema96"}}]},"schema97":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema97"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema97"}}]},"schema98":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__shared/$defs/schema98"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__shared/$defs/schema98"}}]}}}},"failure":{"$ref":"#/$defs/apiFailureResponseSchema"},"operations":[{"access":"session","operationId":"learningMediaAccess","method":"POST","path":"/api/learning/media-access","status":200,"note":"Issues a path-bound 15-minute playback credential. GET/HEAD recheck account, sessionVersion and current entitlement; canonical URLs stored in the database do not include credentials.","requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2000}},"required":["url"]},"response":{"$ref":"#/$defs/learningMediaAccess"}},{"access":"session","operationId":"learningCatalog","method":"GET","path":"/api/learning","status":200,"query":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"filter":{"default":"all","type":"string","enum":["all","lessons","courses","owned","in-progress","completed"]}},"required":["filter"]},"response":{"$ref":"#/$defs/learningCatalog"}},{"access":"session","operationId":"learningLessonDetail","method":"GET","path":"/api/learning/lessons/{id}","status":200,"note":"Accepts an ID or slug; locked published content returns content=null; inaccessible unpublished content returns 404.","response":{"$ref":"#/$defs/learningLessonDetail"}},{"access":"session","operationId":"learningCourseDetail","method":"GET","path":"/api/learning/courses/{id}","status":200,"response":{"$ref":"#/$defs/learningCourseDetail"}},{"access":"session","operationId":"learningLessonFreeAccess","method":"POST","path":"/api/learning/lessons/{id}/free-access","status":201,"alternativeStatuses":[200],"note":"201 for a new active grant, 200 for replay. Requires a published entity with an active zero-price offer.","response":{"$ref":"#/$defs/learningLessonFreeAccess"}},{"access":"session","operationId":"learningCourseFreeAccess","method":"POST","path":"/api/learning/courses/{id}/free-access","status":201,"alternativeStatuses":[200],"note":"201 for a new active grant, 200 for replay. Requires a published entity with an active zero-price offer.","response":{"$ref":"#/$defs/learningCourseFreeAccess"}},{"access":"session","operationId":"learningLessonProgressPOST","method":"POST","path":"/api/learning/lessons/{id}/progress","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"progressSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"response":{"$ref":"#/$defs/learningLessonProgressPOST"}},{"access":"session","operationId":"learningLessonProgressPATCH","method":"PATCH","path":"/api/learning/lessons/{id}/progress","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"progressSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"response":{"$ref":"#/$defs/learningLessonProgressPATCH"}},{"access":"session","operationId":"learningLessonCompletePOST","method":"POST","path":"/api/learning/lessons/{id}/complete","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"progressSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"response":{"$ref":"#/$defs/learningLessonCompletePOST"}},{"access":"session","operationId":"learningLessonCompletePATCH","method":"PATCH","path":"/api/learning/lessons/{id}/complete","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"progressSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"response":{"$ref":"#/$defs/learningLessonCompletePATCH"}},{"access":"session","operationId":"learningLessonReopenPOST","method":"POST","path":"/api/learning/lessons/{id}/reopen","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"progressSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"response":{"$ref":"#/$defs/learningLessonReopenPOST"}},{"access":"session","operationId":"learningLessonReopenPATCH","method":"PATCH","path":"/api/learning/lessons/{id}/reopen","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"progressSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"response":{"$ref":"#/$defs/learningLessonReopenPATCH"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningLessons","method":"GET","path":"/api/admin/learning/lessons","status":200,"response":{"$ref":"#/$defs/adminLearningLessons"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningLesson","method":"GET","path":"/api/admin/learning/lessons/{id}","status":200,"note":"A missing ID returns data=null for compatibility.","response":{"$ref":"#/$defs/adminLearningLesson"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningLessonCreate","method":"POST","path":"/api/admin/learning/lessons","status":201,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string","minLength":2,"maxLength":120,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"title":{"type":"string","minLength":2,"maxLength":180},"shortDescription":{"type":"string","minLength":2,"maxLength":500},"body":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"contentType":{"type":"string","enum":["VIDEO","TEXT","MIXED"]},"videoUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"attachments":{"default":[],"maxItems":30,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":180},"url":{"type":"string","maxLength":2000},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["name","url"]}},"author":{"type":"string","minLength":2,"maxLength":180},"expert":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"goal":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"drills":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"cues":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"durationSeconds":{"type":"integer","minimum":0,"maximum":86400},"difficulty":{"type":"string","minLength":1,"maxLength":80},"tags":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"equipment":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"preview":{"default":false,"type":"boolean"},"status":{"default":"DRAFT","type":"string","enum":["DRAFT","SCHEDULED","PUBLISHED","ARCHIVED"]},"scheduledAt":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"completionRules":{"default":{"minimumPercent":90,"requireManualCompletion":false},"type":"object","properties":{"minimumPercent":{"default":90,"type":"integer","minimum":0,"maximum":100},"requireManualCompletion":{"default":false,"type":"boolean"}}},"offer":{"type":"object","properties":{"mode":{"type":"string","enum":["FREE","PAID","NONE"]},"price":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"oldPrice":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"availableFrom":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"availableUntil":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"purchaseLimitPerUser":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["mode"]}},"required":["slug","title","shortDescription","contentType","author","durationSeconds","difficulty","offer"]},"response":{"$ref":"#/$defs/adminLearningLessonCreate"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningLessonPatch","method":"PATCH","path":"/api/admin/learning/lessons/{id}","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string","minLength":2,"maxLength":120,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"title":{"type":"string","minLength":2,"maxLength":180},"shortDescription":{"type":"string","minLength":2,"maxLength":500},"body":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"contentType":{"type":"string","enum":["VIDEO","TEXT","MIXED"]},"videoUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"attachments":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":180},"url":{"type":"string","maxLength":2000},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["name","url"]}},"author":{"type":"string","minLength":2,"maxLength":180},"expert":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"goal":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"drills":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"cues":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"durationSeconds":{"type":"integer","minimum":0,"maximum":86400},"difficulty":{"type":"string","minLength":1,"maxLength":80},"tags":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"equipment":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"preview":{"type":"boolean"},"status":{"type":"string","enum":["DRAFT","SCHEDULED","PUBLISHED","ARCHIVED"]},"scheduledAt":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"completionRules":{"type":"object","properties":{"minimumPercent":{"default":90,"type":"integer","minimum":0,"maximum":100},"requireManualCompletion":{"default":false,"type":"boolean"}}},"offer":{"type":"object","properties":{"mode":{"type":"string","enum":["FREE","PAID","NONE"]},"price":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"oldPrice":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"availableFrom":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"availableUntil":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"purchaseLimitPerUser":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["mode"]}}},"response":{"$ref":"#/$defs/adminLearningLessonPatch"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningLessonDuplicate","method":"POST","path":"/api/admin/learning/lessons/{id}/duplicate","status":201,"response":{"$ref":"#/$defs/adminLearningLessonDuplicate"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningLessonArchive","method":"POST","path":"/api/admin/learning/lessons/{id}/archive","status":200,"response":{"$ref":"#/$defs/adminLearningLessonArchive"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningCourses","method":"GET","path":"/api/admin/learning/courses","status":200,"response":{"$ref":"#/$defs/adminLearningCourses"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningCourse","method":"GET","path":"/api/admin/learning/courses/{id}","status":200,"note":"A missing ID returns data=null for compatibility.","response":{"$ref":"#/$defs/adminLearningCourse"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningCourseCreate","method":"POST","path":"/api/admin/learning/courses","status":201,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string","minLength":2,"maxLength":120,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"title":{"type":"string","minLength":2,"maxLength":180},"author":{"type":"string","minLength":2,"maxLength":180},"expert":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"description":{"type":"string","minLength":2,"maxLength":30000},"coverUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"trailerUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"audience":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"outcomes":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"equipment":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"difficulty":{"type":"string","minLength":1,"maxLength":80},"durationMinutes":{"type":"integer","minimum":0,"maximum":100000},"status":{"default":"DRAFT","type":"string","enum":["DRAFT","SCHEDULED","PUBLISHED","ARCHIVED"]},"scheduledAt":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"offer":{"type":"object","properties":{"mode":{"type":"string","enum":["FREE","PAID","NONE"]},"price":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"oldPrice":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"availableFrom":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"availableUntil":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"purchaseLimitPerUser":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["mode"]}},"required":["slug","title","author","description","difficulty","durationMinutes","offer"]},"response":{"$ref":"#/$defs/adminLearningCourseCreate"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningCoursePatch","method":"PATCH","path":"/api/admin/learning/courses/{id}","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string","minLength":2,"maxLength":120,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"title":{"type":"string","minLength":2,"maxLength":180},"author":{"type":"string","minLength":2,"maxLength":180},"expert":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"description":{"type":"string","minLength":2,"maxLength":30000},"coverUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"trailerUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"audience":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"outcomes":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"equipment":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"difficulty":{"type":"string","minLength":1,"maxLength":80},"durationMinutes":{"type":"integer","minimum":0,"maximum":100000},"status":{"type":"string","enum":["DRAFT","SCHEDULED","PUBLISHED","ARCHIVED"]},"scheduledAt":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"offer":{"type":"object","properties":{"mode":{"type":"string","enum":["FREE","PAID","NONE"]},"price":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"oldPrice":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"availableFrom":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"availableUntil":{"anyOf":[{"description":"A valid date string (ISO 8601 recommended) or Unix time in milliseconds.","anyOf":[{"type":"string","minLength":1},{"type":"number"}]},{"type":"null"}]},"purchaseLimitPerUser":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["mode"]}}},"response":{"$ref":"#/$defs/adminLearningCoursePatch"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningCourseProgram","method":"PUT","path":"/api/admin/learning/courses/{id}/program","status":200,"requestBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"acknowledgePublishedChange":{"default":false,"type":"boolean"},"modules":{"minItems":1,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":180},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"lessons":{"minItems":1,"type":"array","items":{"type":"object","properties":{"lessonId":{"type":"string","minLength":1},"required":{"default":true,"type":"boolean"},"settings":{"type":"object","properties":{"label":{"type":"string","maxLength":180}}}},"required":["lessonId"]}}},"required":["title","lessons"]}}},"required":["modules"]},"response":{"$ref":"#/$defs/adminLearningCourseProgram"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningCoursePublish","method":"POST","path":"/api/admin/learning/courses/{id}/publish","status":200,"response":{"$ref":"#/$defs/adminLearningCoursePublish"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningCourseArchive","method":"POST","path":"/api/admin/learning/courses/{id}/archive","status":200,"response":{"$ref":"#/$defs/adminLearningCourseArchive"}},{"access":"session","permission":"OWNER, NETWORK_ADMIN, GYM_ADMIN or assigned COURSE_MANAGER","operationId":"adminLearningMedia","method":"POST","path":"/api/admin/learning/media","status":201,"requestContentType":"multipart/form-data","note":"Multipart file is required; optional purpose is learning-cover, learning-video or learning-trailer. No purpose uses the legacy video uploader.","response":{"$ref":"#/$defs/adminLearningMedia"}}]}