{"openapi":"3.0.0","info":{"title":"mlm_academy API","version":"1.0.0"},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"TwoTalksOverview":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","enum":["GAME-004"]},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"cases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":1,"maximum":24},"title":{"type":"string"},"person":{"type":"string"},"shelf":{"type":"string"}},"required":["id","title","person","shelf"],"additionalProperties":false}},"attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caseId":{"type":"integer","minimum":1,"maximum":24},"number":{"type":"integer","minimum":0,"exclusiveMinimum":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"outcome":{"type":"object","nullable":true,"properties":{"partner":{"type":"string","enum":["agreed","pause","withdrew"]},"newbie":{"type":"string","enum":["taken","recovered","independent","unchecked","scheduled"]},"handling":{"type":"string","nullable":true,"enum":["notice","later","silent",null]},"repaired":{"type":"boolean"},"source":{"type":"boolean"},"verified":{"type":"boolean"},"submitted":{"type":"boolean"},"takeover":{"type":"boolean"},"third":{"type":"string","nullable":true,"enum":["agreed","push",null]},"heading":{"type":"string"}},"required":["partner","newbie","handling","repaired","source","verified","submitted","takeover","third","heading"],"additionalProperties":false}},"required":["id","caseId","number","version","startedAt","updatedAt","completedAt","outcome"],"additionalProperties":false}}},"required":["ownerId","trackId","access","cases","attempts"],"additionalProperties":false},"TwoTalksAttempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caseId":{"type":"integer","minimum":1,"maximum":24},"number":{"type":"integer","minimum":0,"exclusiveMinimum":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"outcome":{"type":"object","nullable":true,"properties":{"partner":{"type":"string","enum":["agreed","pause","withdrew"]},"newbie":{"type":"string","enum":["taken","recovered","independent","unchecked","scheduled"]},"handling":{"type":"string","nullable":true,"enum":["notice","later","silent",null]},"repaired":{"type":"boolean"},"source":{"type":"boolean"},"verified":{"type":"boolean"},"submitted":{"type":"boolean"},"takeover":{"type":"boolean"},"third":{"type":"string","nullable":true,"enum":["agreed","push",null]},"heading":{"type":"string"}},"required":["partner","newbie","handling","repaired","source","verified","submitted","takeover","third","heading"],"additionalProperties":false},"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","enum":["GAME-004"]},"readOnly":{"type":"boolean"},"view":{"type":"object","properties":{"caseId":{"type":"integer","minimum":1,"maximum":24},"title":{"type":"string"},"attempt":{"type":"integer","minimum":0,"exclusiveMinimum":true},"person":{"type":"object","properties":{"key":{"type":"string","enum":["anna","oleg","lida","denis"]},"name":{"type":"string"},"to":{"type":"string"}},"required":["key","name","to"],"additionalProperties":false},"screen":{"type":"string","enum":["story","phone","incomingP","incomingN","signal","partner","newbie","extra","messages","calls","browser","shelf","article","board","result"]},"time":{"type":"string"},"objective":{"type":"string"},"started":{"type":"boolean"},"finished":{"type":"boolean"},"intro":{"type":"integer","minimum":0,"maximum":2},"channel":{"type":"string","enum":["call","chat"]},"interrupt":{"type":"string","enum":["call","chat"]},"primary":{"type":"string","enum":["waiting","open","discussed","closed"]},"primaryCall":{"type":"string","enum":["none","ring","live","missed","ended"]},"newbie":{"type":"string","enum":["hidden","incoming","open","pending","taken","attempt","closed"]},"newCall":{"type":"string","enum":["none","ring","unread","missed","live","read","ended"]},"handling":{"type":"string","nullable":true,"enum":["notice","later","silent",null]},"primaryEnd":{"type":"string","nullable":true,"enum":["agreed","pause","withdrew",null]},"noviceEnd":{"type":"string","nullable":true,"enum":["taken","recovered","independent","unchecked","scheduled",null]},"third":{"type":"string","nullable":true,"enum":["new","agreed","push",null]},"extra":{"type":"object","nullable":true,"properties":{"key":{"type":"string","enum":["anna","oleg","lida","denis"]},"name":{"type":"string"},"request":{"type":"string"},"draft":{"type":"string","maxLength":700},"hasSavedDraft":{"type":"boolean"}},"required":["key","name","request","draft"],"additionalProperties":false},"story":{"type":"object","properties":{"image":{"type":"string"},"caption":{"type":"string"},"heading":{"type":"string"},"text":{"type":"string"},"audio":{"type":"string"}},"required":["image","caption","heading","text","audio"],"additionalProperties":false},"request":{"type":"string","nullable":true},"events":{"type":"array","items":{"type":"object","properties":{"key":{"type":"integer"},"actor":{"type":"string","enum":["p","n","x"]},"from":{"type":"string"},"text":{"type":"string"},"kind":{"type":"string"},"time":{"type":"string"}},"required":["key","actor","from","text","kind","time"],"additionalProperties":false}},"facts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"detail":{"type":"string"},"src":{"type":"string","enum":["p","n","x","doc","old"]},"event":{"type":"integer","nullable":true},"time":{"type":"string"}},"required":["id","label","detail","src","event","time"],"additionalProperties":false}},"focusFact":{"type":"integer","nullable":true},"notes":{"type":"string","maxLength":700},"tried":{"type":"boolean"},"payment":{"type":"boolean"},"choices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},"composer":{"type":"object","nullable":true,"properties":{"actor":{"type":"string","enum":["p","n"]},"intent":{"type":"string"},"label":{"type":"string"},"text":{"type":"string","maxLength":700}},"required":["actor","intent","label","text"],"additionalProperties":false},"savedDrafts":{"type":"array","items":{"type":"object","properties":{"actor":{"type":"string","enum":["p","n"]},"intent":{"type":"string"},"label":{"type":"string"},"text":{"type":"string","maxLength":700}},"required":["actor","intent","label","text"],"additionalProperties":false}},"shelves":{"type":"array","items":{"type":"string"}},"shelf":{"type":"string"},"articles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["current","archive","general"]},"title":{"type":"string"},"subtitle":{"type":"string"}},"required":["id","title","subtitle"],"additionalProperties":false}},"article":{"type":"object","nullable":true,"properties":{"id":{"type":"string","enum":["current","archive","general"]},"title":{"type":"string"},"body":{"type":"string"},"ledger":{"type":"array","items":{"type":"array","items":{"type":"string"},"minItems":3,"maxItems":3}},"update":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"detail":{"type":"string"}},"required":["title","detail"],"additionalProperties":false}},"required":["id","title","body","ledger","update"],"additionalProperties":false},"readArticles":{"type":"array","items":{"type":"object","properties":{"shelf":{"type":"string"},"article":{"type":"object","properties":{"id":{"type":"string","enum":["current","archive","general"]},"title":{"type":"string"},"body":{"type":"string"},"ledger":{"type":"array","items":{"type":"array","items":{"type":"string"},"minItems":3,"maxItems":3}},"update":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"detail":{"type":"string"}},"required":["title","detail"],"additionalProperties":false}},"required":["id","title","body","ledger","update"],"additionalProperties":false}},"required":["shelf","article"],"additionalProperties":false}},"source":{"type":"string","nullable":true,"enum":["current","archive",null]},"updateSeen":{"type":"boolean"},"origin":{"type":"string","enum":["partner","newbie","extra","signal","incomingP","incomingN","board","messages","calls","phone"]},"backScreen":{"type":"string","enum":["story","phone","incomingP","incomingN","signal","partner","newbie","extra","messages","calls","browser","shelf","article","board","result"]},"unread":{"type":"object","properties":{"primary":{"type":"boolean"},"newbie":{"type":"boolean"},"extra":{"type":"boolean"}},"required":["primary","newbie","extra"],"additionalProperties":false},"allowed":{"type":"array","items":{"type":"string"}},"feedback":{"type":"string"},"helpText":{"type":"string","nullable":true},"result":{"type":"object","nullable":true,"properties":{"heading":{"type":"string"},"description":{"type":"string"},"diagnostics":{"type":"array","items":{"type":"array","items":{"type":"string"},"minItems":2,"maxItems":2}},"comparison":{"type":"array","items":{"type":"array","items":{"type":"string"},"minItems":3,"maxItems":3}},"report":{"type":"string"}},"required":["heading","description","diagnostics","comparison","report"],"additionalProperties":false}},"required":["caseId","title","attempt","person","screen","time","objective","started","finished","intro","channel","interrupt","primary","primaryCall","newbie","newCall","handling","primaryEnd","noviceEnd","third","extra","story","request","events","facts","focusFact","notes","tried","payment","choices","composer","savedDrafts","shelves","shelf","articles","article","readArticles","source","updateSeen","origin","allowed","feedback","helpText","result"],"additionalProperties":false}},"required":["id","caseId","number","version","startedAt","updatedAt","completedAt","outcome","ownerId","trackId","readOnly","view"],"additionalProperties":false},"TrainerWeekAttempt":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"day":{"type":"integer","minimum":1,"maximum":7},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"archivedAt":{"type":"string","nullable":true,"format":"date-time"},"ownerId":{"type":"string","format":"uuid"},"readOnly":{"type":"boolean"},"trackId":{"type":"string","enum":["GAME-002"]},"view":{"type":"object","properties":{"screen":{"type":"object","properties":{"name":{"type":"string","enum":["intro","brief","morning","lock","home","chats","calls","team","academy","notes","stats","thread","person","article","review","final"]},"id":{"type":"string","nullable":true}},"required":["name","id"],"additionalProperties":false},"day":{"type":"integer"},"dayName":{"type":"string"},"time":{"type":"string"},"energy":{"type":"integer"},"hints":{"type":"integer"},"name":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"intro":{"type":"string"},"brief":{"type":"string"},"rules":{"type":"array","items":{"type":"string"}},"morning":{"type":"string"},"goal":{"type":"string"},"dayOutro":{"type":"string"},"nightWarning":{"type":"string"},"nextEventAt":{"type":"string","nullable":true,"format":"date-time"},"nextEventInMs":{"type":"integer","nullable":true,"minimum":0},"canEndDay":{"type":"boolean"},"canNextDay":{"type":"boolean"},"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"name":{"type":"string"},"role":{"type":"string"},"group":{"type":"string","enum":["partner","mentor","client"]},"portrait":{"type":"string"},"mood":{"type":"string"},"status":{"type":"string"},"trust":{"type":"integer"},"autonomy":{"type":"integer","nullable":true},"readiness":{"type":"integer","nullable":true},"ball":{"type":"string","nullable":true,"enum":["me","client",null]},"temperature":{"type":"integer","nullable":true},"bio":{"type":"string"},"personality":{"type":"string"},"facts":{"type":"array","items":{"type":"string"}},"guess":{"type":"string","nullable":true,"enum":["money","safety","freedom","recognition","belonging","facts","respect","growth",null]},"unread":{"type":"integer"},"active":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","properties":{"day":{"type":"integer"},"time":{"type":"string"},"from":{"type":"string","enum":["me","them","system","hint"]},"text":{"type":"string"},"feedback":{"type":"object","nullable":true,"properties":{"quality":{"type":"string","enum":["good","ok","bad"]},"label":{"type":"string"},"explanation":{"type":"string"}},"required":["quality","label","explanation"],"additionalProperties":false}},"required":["day","time","from","text","feedback"],"additionalProperties":false}}},"required":["id","name","role","group","portrait","mood","status","trust","autonomy","readiness","ball","temperature","bio","personality","facts","guess","unread","active","messages"],"additionalProperties":false}},"choices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":false}},"canHint":{"type":"boolean"},"call":{"type":"object","nullable":true,"properties":{"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"phase":{"type":"string","enum":["ring","talk","ended"]},"lines":{"type":"array","items":{"type":"object","properties":{"day":{"type":"integer"},"time":{"type":"string"},"from":{"type":"string","enum":["me","them","system","hint"]},"text":{"type":"string"},"feedback":{"type":"object","nullable":true,"properties":{"quality":{"type":"string","enum":["good","ok","bad"]},"label":{"type":"string"},"explanation":{"type":"string"}},"required":["quality","label","explanation"],"additionalProperties":false}},"required":["day","time","from","text","feedback"],"additionalProperties":false}}},"required":["person","phase","lines"],"additionalProperties":false},"calls":{"type":"array","items":{"type":"object","properties":{"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"day":{"type":"integer"},"time":{"type":"string"},"missed":{"type":"boolean"},"minutes":{"type":"integer"},"seen":{"type":"boolean"}},"required":["person","day","time","missed","minutes","seen"],"additionalProperties":false}},"needs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["money","safety","freedom","recognition","belonging","facts","respect","growth"]},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":false}},"questions":{"type":"array","items":{"type":"object","properties":{"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"answer":{"type":"string","nullable":true,"enum":["money","safety","freedom","recognition","belonging","facts","respect","growth",null]},"correct":{"type":"string","nullable":true,"enum":["money","safety","freedom","recognition","belonging","facts","respect","growth",null]},"explanation":{"type":"string"}},"required":["person","answer","correct","explanation"],"additionalProperties":false}},"observations":{"type":"array","items":{"type":"object","properties":{"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"day":{"type":"integer"},"selected":{"type":"string"},"correct":{"type":"boolean"},"explanation":{"type":"string"}},"required":["person","day","selected","correct","explanation"],"additionalProperties":false}},"decisions":{"type":"array","items":{"type":"object","properties":{"day":{"type":"integer"},"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"title":{"type":"string"},"you":{"type":"string"},"feedback":{"type":"object","properties":{"quality":{"type":"string","enum":["good","ok","bad"]},"label":{"type":"string"},"explanation":{"type":"string"}},"required":["quality","label","explanation"],"additionalProperties":false},"root":{"type":"string"},"better":{"type":"string"},"betterWhy":{"type":"string"},"repeat":{"type":"string"}},"required":["day","person","title","you","feedback","root","better","betterWhy","repeat"],"additionalProperties":false}},"goals":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"detail":{"type":"string"},"achieved":{"type":"boolean","nullable":true}},"required":["title","detail","achieved"],"additionalProperties":false}},"memo":{"type":"array","items":{"type":"string"}},"readArticles":{"type":"array","items":{"type":"string"}},"ending":{"type":"object","nullable":true,"properties":{"key":{"type":"string"},"number":{"type":"integer"},"title":{"type":"string"},"icon":{"type":"string"},"text":{"type":"string"}},"required":["key","number","title","icon","text"],"additionalProperties":false},"endings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"number":{"type":"integer"},"icon":{"type":"string"}},"required":["key","title","number","icon"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"percent":{"type":"integer"}},"required":["label","percent"],"additionalProperties":false}},"traps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"integer"}},"required":["label","count"],"additionalProperties":false}},"outcomes":{"type":"array","items":{"type":"object","properties":{"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"text":{"type":"string"}},"required":["person","text"],"additionalProperties":false}}},"required":["screen","day","dayName","time","energy","hints","name","gender","intro","brief","rules","morning","goal","dayOutro","nightWarning","nextEventAt","nextEventInMs","canEndDay","canNextDay","people","choices","canHint","call","calls","needs","questions","observations","decisions","goals","memo","readArticles","ending","endings","skills","traps","outcomes"],"additionalProperties":false}},"required":["id","day","version","startedAt","updatedAt","completedAt","archivedAt","ownerId","readOnly","trackId","view"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"day":{"type":"integer","minimum":1,"maximum":7},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"archivedAt":{"type":"string","nullable":true,"format":"date-time"},"ownerId":{"type":"string","format":"uuid"},"readOnly":{"type":"boolean"},"trackId":{"type":"string","enum":["GAME-003"]},"view":{"type":"object","properties":{"started":{"type":"boolean"},"name":{"type":"string"},"grammar":{"type":"string","enum":["masculine","feminine"]},"mode":{"type":"string","enum":["real","fast"]},"timeZone":{"type":"string"},"day":{"type":"integer","minimum":1,"maximum":7},"completed":{"type":"boolean"},"resume":{"type":"object","nullable":true,"properties":{"screen":{"type":"string","enum":["deals","situation","team"]},"dealId":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true}},"default":null,"required":["screen","dealId"],"additionalProperties":false},"canNext":{"type":"boolean"},"nextOpensAt":{"type":"string","nullable":true,"format":"date-time"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"integer","minimum":1,"maximum":7},"title":{"type":"string"},"icon":{"type":"string"},"principle":{"type":"string"},"morning":{"type":"string"},"focus":{"type":"string"},"closedOn":{"type":"string","nullable":true,"format":"date"},"tasks":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"category":{"type":"string","enum":["Свои клиенты","Команда","Обучение","Личное и силы","Рутина"]},"energy":{"type":"integer"},"menuId":{"type":"integer","nullable":true}},"required":["title","category","energy","menuId"],"additionalProperties":false}},"done":{"type":"array","items":{"type":"integer","minimum":0,"maximum":29}},"forecast":{"type":"integer","minimum":0},"charging":{"type":"integer","minimum":0},"evening":{"type":"boolean"},"updates":{"type":"object","additionalProperties":{"type":"object","properties":{"contact":{"type":"boolean"},"stageUp":{"type":"boolean"},"delta":{"type":"integer"}},"required":["contact","stageUp","delta"],"additionalProperties":false}},"deals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":0,"exclusiveMinimum":true},"name":{"type":"string","minLength":1,"maxLength":50},"stage":{"type":"integer","minimum":0,"maximum":5},"ball":{"type":"string","enum":["me","client"]},"next":{"type":"string","maxLength":600},"nextDate":{"anyOf":[{"type":"string","format":"date"},{"type":"string","enum":[""]}]},"closed":{"type":"boolean"},"temp":{"type":"integer","minimum":0,"maximum":100},"created":{"type":"integer","minimum":1,"maximum":7}},"required":["id","name","stage","ball","next","nextDate","closed","temp","created"],"additionalProperties":false}},"win":{"type":"object","nullable":true,"properties":{"what":{"type":"string","minLength":1,"maxLength":600},"helped":{"type":"string","maxLength":600},"repeat":{"type":"string","maxLength":600}},"required":["what","helped","repeat"],"additionalProperties":false},"situation":{"type":"object","properties":{"title":{"type":"string"},"person":{"type":"string"},"portrait":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","enum":["me","them","system"]},"text":{"type":"string"}},"required":["from","text"],"additionalProperties":false}},"log":{"type":"array","items":{"type":"object","properties":{"you":{"type":"string"},"quality":{"type":"string","enum":["good","ok","bad"]},"feedback":{"type":"string"},"root":{"type":"string"},"better":{"type":"string"},"betterFeedback":{"type":"string"}},"required":["you","quality","feedback","root","better","betterFeedback"],"additionalProperties":false}},"node":{"type":"string","nullable":true},"choices":{"type":"array","items":{"type":"string"}},"completed":{"type":"boolean"}},"required":["title","person","portrait","messages","log","node","choices","completed"],"additionalProperties":false},"analysis":{"type":"object","nullable":true,"properties":{"good":{"type":"array","items":{"type":"object","properties":{"t":{"type":"string"},"why":{"type":"string"},"repeat":{"type":"string"}},"required":["t","why","repeat"],"additionalProperties":false}},"bad":{"type":"array","items":{"type":"object","properties":{"t":{"type":"string"},"what":{"type":"string"},"root":{"type":"string"},"how":{"type":"string"},"why":{"type":"string"}},"required":["t","what","root","how","why"],"additionalProperties":false}}},"required":["good","bad"],"additionalProperties":false}},"required":["day","title","icon","principle","morning","focus","closedOn","tasks","done","forecast","charging","evening","updates","deals","win","situation","analysis"],"additionalProperties":false},"maxItems":7},"team":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50},"type":{"type":"string","enum":["D","I","S","C"]},"need":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["name","type","need","id"],"additionalProperties":false}},"recipe":{"type":"object","nullable":true,"properties":{"rules":{"type":"array","items":{"type":"string","minLength":1,"maxLength":600}},"next":{"type":"string","minLength":1,"maxLength":600}},"required":["rules","next"],"additionalProperties":false},"menu":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"category":{"type":"string","enum":["Свои клиенты","Команда","Обучение","Личное и силы","Рутина"]},"energy":{"type":"integer"},"menuId":{"type":"integer"}},"required":["title","category","energy","menuId"],"additionalProperties":false}},"stages":{"type":"array","items":{"type":"string"}},"discTypes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["D","I","S","C"]},"label":{"type":"string"}},"required":["type","label"],"additionalProperties":false}},"needs":{"type":"array","items":{"type":"string"}},"reminders":{"type":"array","items":{"type":"object","properties":{"day":{"type":"integer","minimum":1,"maximum":7},"title":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["day","title","start","end"],"additionalProperties":false}}},"required":["started","name","grammar","mode","timeZone","day","completed","canNext","nextOpensAt","days","team","recipe","menu","stages","discTypes","needs","reminders"],"additionalProperties":false}},"required":["id","day","version","startedAt","updatedAt","completedAt","archivedAt","ownerId","readOnly","trackId","view"],"additionalProperties":false}]}},"parameters":{}},"paths":{"/api/auth/registration-options":{"get":{"responses":{"200":{"description":"Public registration requirements","content":{"application/json":{"schema":{"type":"object","properties":{"emailVerificationRequired":{"type":"boolean"}},"required":["emailVerificationRequired"],"additionalProperties":false}}}}}}},"/api/auth/email-verification/request":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"},"returnTo":{"type":"string","maxLength":4096}},"required":["email"]}}}},"responses":{"202":{"description":"Request accepted","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]}},"required":["accepted"]}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Queue busy","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/email-verification/confirm":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":43,"maxLength":256},"password":{"type":"string","minLength":8,"maxLength":128}},"required":["token","password"]}}}},"responses":{"200":{"description":"Email verified; sign in with the confirmed password","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"}},"required":["email"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/session":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"default":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Verified existing browser session without changing cookies","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]},"accessToken":{"type":"string"}},"required":["user","accessToken"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Invalid or expired cookie session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Cookie auth request came from an untrusted browser origin","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/register":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"firstMessageDraft":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["commandId","text"],"additionalProperties":false},"email":{"type":"string","maxLength":254,"format":"email"},"password":{"type":"string","minLength":8,"maxLength":128},"displayName":{"type":"string","minLength":2,"maxLength":80},"personalDataConsent":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]},"version":{"type":"string","enum":["2026-10-20.2"]}},"required":["accepted","version"],"additionalProperties":false},"returnTo":{"type":"string","maxLength":4096}},"required":["email","displayName","personalDataConsent"]}}}},"responses":{"201":{"description":"Created user and browser session","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]},"accessToken":{"type":"string"}},"required":["user","accessToken"],"additionalProperties":false}}}},"202":{"description":"Registration awaits email verification","content":{"application/json":{"schema":{"type":"object","properties":{"verificationRequired":{"type":"boolean","enum":[true]}},"required":["verificationRequired"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Untrusted browser origin or email confirmation required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Requested free first-message practice is unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Email already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/token/register":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"firstMessageDraft":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["commandId","text"],"additionalProperties":false},"email":{"type":"string","maxLength":254,"format":"email"},"password":{"type":"string","minLength":8,"maxLength":128},"displayName":{"type":"string","minLength":2,"maxLength":80},"personalDataConsent":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]},"version":{"type":"string","enum":["2026-10-20.2"]}},"required":["accepted","version"],"additionalProperties":false},"returnTo":{"type":"string","maxLength":4096}},"required":["email","displayName","personalDataConsent"]}}}},"responses":{"201":{"description":"Created user and explicit token session","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]},"accessToken":{"type":"string"},"refreshToken":{"type":"string"}},"required":["user","accessToken","refreshToken"],"additionalProperties":false}}}},"202":{"description":"Registration awaits email verification","content":{"application/json":{"schema":{"type":"object","properties":{"verificationRequired":{"type":"boolean","enum":[true]}},"required":["verificationRequired"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Requested free first-message practice is unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Email already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/login":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"},"password":{"type":"string","minLength":8,"maxLength":128}},"required":["email","password"]}}}},"responses":{"200":{"description":"Created browser session","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]},"accessToken":{"type":"string"}},"required":["user","accessToken"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Invalid credentials","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Untrusted browser origin or email confirmation required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/token/login":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"},"password":{"type":"string","minLength":8,"maxLength":128}},"required":["email","password"]}}}},"responses":{"200":{"description":"Created explicit token session","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]},"accessToken":{"type":"string"},"refreshToken":{"type":"string"}},"required":["user","accessToken","refreshToken"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Invalid credentials","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Email confirmation required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/refresh":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"default":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Rotated browser session and returned a new access token","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"}},"required":["accessToken"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Invalid refresh token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Untrusted browser origin or email confirmation required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/token/refresh":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","minLength":32}},"required":["refreshToken"]}}}},"responses":{"200":{"description":"Rotated explicit token session","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"}},"required":["accessToken","refreshToken"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Invalid refresh token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/me":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Current user","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]}},"required":["user"]}}}},"401":{"description":"Invalid access token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/me/dismiss-welcome-gift":{"post":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Welcome dialog dismissed for the current account","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]}},"required":["user"]}}}},"401":{"description":"Invalid access token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/logout":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"default":{},"additionalProperties":false}}}},"responses":{"204":{"description":"Browser session revoked"},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Untrusted browser origin or email confirmation required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/token/logout":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","minLength":32}},"required":["refreshToken"]}}}},"responses":{"204":{"description":"Explicit token session revoked"},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/password-reset/request":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"},"returnTo":{"type":"string","maxLength":4096}},"required":["email"]}}}},"responses":{"202":{"description":"Password reset request accepted","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]}},"required":["accepted"]}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Recovery queue is busy; retry after Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/auth/password-reset/confirm":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":43,"maxLength":256},"password":{"type":"string","minLength":8,"maxLength":128}},"required":["token","password"]}}}},"responses":{"204":{"description":"Password changed and existing sessions revoked"},"400":{"description":"Invalid payload or reset link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many authentication requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/ai/allowance":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Own AI cycle","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"serverTime":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["eligible","inactive","unavailable"]},"cycle":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"allowanceVersion":{"type":"string","enum":["pro-30-v1"]},"limit":{"type":"number","enum":[30]},"used":{"type":"integer","minimum":0,"maximum":30},"reserved":{"type":"integer","minimum":0,"maximum":30},"remaining":{"type":"integer","minimum":0,"maximum":30}},"required":["id","startsAt","endsAt","allowanceVersion","limit","used","reserved","remaining"],"additionalProperties":false},"nextCycleAt":{"type":"string","nullable":true,"format":"date-time"},"paidEndsAt":{"type":"string","nullable":true,"format":"date-time"},"analysisEnabled":{"type":"boolean"}},"required":["accountId","serverTime","state","cycle","nextCycleAt","paidEndsAt","analysisEnabled"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/access":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Own Pulse access","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["active","read_only","unavailable"]},"accountId":{"type":"string","nullable":true,"format":"uuid"},"linkVersion":{"type":"string","nullable":true,"format":"uuid"},"plan":{"type":"string","nullable":true,"enum":["start","year","pro",null]},"paidEndsAt":{"type":"string","nullable":true,"format":"date-time"},"proEligibleSince":{"type":"string","nullable":true,"format":"date-time"},"capabilities":{"type":"array","items":{"type":"string","enum":["history","diary","planning","calendar","weekly_report","experiment","trends","guidance","wellbeing","reminders","work_ai"]}}},"required":["state","accountId","linkVersion","plan","paidEndsAt","proEligibleSince","capabilities"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/status":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"bot","in":"query"}],"responses":{"200":{"description":"Own identity state","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"enabled":{"type":"boolean"},"connected":{"type":"boolean"},"identity":{"type":"object","nullable":true,"properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false},"linkVersion":{"type":"string","nullable":true,"format":"uuid"},"linkedAt":{"type":"string","nullable":true,"format":"date-time"},"pending":{"type":"object","nullable":true,"properties":{"pendingId":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time"},"identity":{"type":"object","properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false}},"required":["pendingId","expiresAt","identity"],"additionalProperties":false},"challengeExpiresAt":{"type":"string","nullable":true,"format":"date-time"},"expired":{"type":"boolean"},"botUrl":{"type":"string","pattern":"^https:\\/\\/t\\.me\\/[A-Za-z0-9_]{5,32}$"}},"required":["accountId","enabled","connected","identity","linkVersion","linkedAt","pending","challengeExpiresAt","expired"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/issue":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Single-use Telegram link","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https:\\/\\/t\\.me\\/[A-Za-z0-9_]+\\?start=p1_[A-Za-z0-9_-]{43}$"},"expiresAt":{"type":"string","format":"date-time"}},"required":["url","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/confirm":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pendingId":{"type":"string","format":"uuid"}},"required":["pendingId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Confirmed own binding","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"enabled":{"type":"boolean"},"connected":{"type":"boolean"},"identity":{"type":"object","nullable":true,"properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false},"linkVersion":{"type":"string","nullable":true,"format":"uuid"},"linkedAt":{"type":"string","nullable":true,"format":"date-time"},"pending":{"type":"object","nullable":true,"properties":{"pendingId":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time"},"identity":{"type":"object","properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false}},"required":["pendingId","expiresAt","identity"],"additionalProperties":false},"challengeExpiresAt":{"type":"string","nullable":true,"format":"date-time"},"expired":{"type":"boolean"},"botUrl":{"type":"string","pattern":"^https:\\/\\/t\\.me\\/[A-Za-z0-9_]{5,32}$"}},"required":["accountId","enabled","connected","identity","linkVersion","linkedAt","pending","challengeExpiresAt","expired"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/cancel":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pendingId":{"type":"string","format":"uuid"}},"required":["pendingId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Canceled own pending link","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"enabled":{"type":"boolean"},"connected":{"type":"boolean"},"identity":{"type":"object","nullable":true,"properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false},"linkVersion":{"type":"string","nullable":true,"format":"uuid"},"linkedAt":{"type":"string","nullable":true,"format":"date-time"},"pending":{"type":"object","nullable":true,"properties":{"pendingId":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time"},"identity":{"type":"object","properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false}},"required":["pendingId","expiresAt","identity"],"additionalProperties":false},"challengeExpiresAt":{"type":"string","nullable":true,"format":"date-time"},"expired":{"type":"boolean"},"botUrl":{"type":"string","pattern":"^https:\\/\\/t\\.me\\/[A-Za-z0-9_]{5,32}$"}},"required":["accountId","enabled","connected","identity","linkVersion","linkedAt","pending","challengeExpiresAt","expired"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/unlink":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"linkVersion":{"type":"string","format":"uuid"}},"required":["linkVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Revoked own binding","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"enabled":{"type":"boolean"},"connected":{"type":"boolean"},"identity":{"type":"object","nullable":true,"properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false},"linkVersion":{"type":"string","nullable":true,"format":"uuid"},"linkedAt":{"type":"string","nullable":true,"format":"date-time"},"pending":{"type":"object","nullable":true,"properties":{"pendingId":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time"},"identity":{"type":"object","properties":{"telegramUserId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"firstName":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{0,32}$"}},"required":["telegramUserId","firstName","username"],"additionalProperties":false}},"required":["pendingId","expiresAt","identity"],"additionalProperties":false},"challengeExpiresAt":{"type":"string","nullable":true,"format":"date-time"},"expired":{"type":"boolean"},"botUrl":{"type":"string","pattern":"^https:\\/\\/t\\.me\\/[A-Za-z0-9_]{5,32}$"}},"required":["accountId","enabled","connected","identity","linkVersion","linkedAt","pending","challengeExpiresAt","expired"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/service/claim":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","pattern":"^telegram:[0-9]{1,20}$"},"webhookSecret":{"type":"string","minLength":1,"maxLength":256},"update":{"type":"object","properties":{"update_id":{"type":"integer","minimum":0},"message":{"type":"object","properties":{"date":{"type":"integer","minimum":0},"from":{"type":"object","properties":{"id":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"first_name":{"type":"string","maxLength":128},"username":{"type":"string","pattern":"^[A-Za-z0-9_]{1,32}$"}},"required":["id","first_name"]},"chat":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string","enum":["private"]}},"required":["id","type"]},"text":{"type":"string","maxLength":128}},"required":["date","from","chat","text"]}},"required":["update_id","message"]}},"required":["operationId","webhookSecret","update"],"additionalProperties":false}}}},"responses":{"200":{"description":"Telegram received; cabinet confirmation required","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"returnUrl":{"type":"string","format":"uri"}},"required":["ok","returnUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/service/binding":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"telegramId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"linkVersion":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","enum":[""]}]}},"required":["telegramId","linkVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Identity only; never a paid grant","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"bound":{"type":"boolean","enum":[false]},"reason":{"type":"string","enum":["not_linked","unlinked","stale"]}},"required":["bound","reason"],"additionalProperties":false},{"type":"object","properties":{"bound":{"type":"boolean","enum":[true]},"accountId":{"type":"string","format":"uuid"},"linkVersion":{"type":"string","format":"uuid"}},"required":["bound","accountId","linkVersion"],"additionalProperties":false}]}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/service/access":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"telegramId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"linkVersion":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","enum":[""]}]},"mode":{"type":"string","enum":["test","live"]}},"required":["telegramId","linkVersion","mode"],"additionalProperties":false}}}},"responses":{"200":{"description":"Assigned source and current capabilities","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["active","read_only","unavailable"]},"accountId":{"type":"string","nullable":true,"format":"uuid"},"linkVersion":{"type":"string","nullable":true,"format":"uuid"},"plan":{"type":"string","nullable":true,"enum":["start","year","pro",null]},"paidEndsAt":{"type":"string","nullable":true,"format":"date-time"},"proEligibleSince":{"type":"string","nullable":true,"format":"date-time"},"capabilities":{"type":"array","items":{"type":"string","enum":["history","diary","planning","calendar","weekly_report","experiment","trends","guidance","wellbeing","reminders","work_ai"]}}},"required":["state","accountId","linkVersion","plan","paidEndsAt","proEligibleSince","capabilities"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/service/ai/allowance":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"telegramId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"linkVersion":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["test","live"]},"accountId":{"type":"string","format":"uuid"}},"required":["telegramId","linkVersion","mode","accountId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current AI cycle","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"serverTime":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["eligible","inactive","unavailable"]},"cycle":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"allowanceVersion":{"type":"string","enum":["pro-30-v1"]},"limit":{"type":"number","enum":[30]},"used":{"type":"integer","minimum":0,"maximum":30},"reserved":{"type":"integer","minimum":0,"maximum":30},"remaining":{"type":"integer","minimum":0,"maximum":30}},"required":["id","startsAt","endsAt","allowanceVersion","limit","used","reserved","remaining"],"additionalProperties":false},"nextCycleAt":{"type":"string","nullable":true,"format":"date-time"},"paidEndsAt":{"type":"string","nullable":true,"format":"date-time"},"analysisEnabled":{"type":"boolean"}},"required":["accountId","serverTime","state","cycle","nextCycleAt","paidEndsAt","analysisEnabled"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/service/ai/reserve":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"telegramId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"linkVersion":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["test","live"]},"accountId":{"type":"string","format":"uuid"},"requestId":{"type":"string","format":"uuid"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"consentRevision":{"type":"string","minLength":1,"maxLength":128}},"required":["telegramId","linkVersion","mode","accountId","requestId","inputHash","consentRevision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Durable reservation","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"cycleId":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["reserved","unknown","unresolved","succeeded","released"]},"reservedUntil":{"type":"string","format":"date-time"},"reconcileUntil":{"type":"string","format":"date-time"},"resultId":{"type":"string","nullable":true,"format":"uuid"}},"required":["requestId","cycleId","state","reservedUntil","reconcileUntil","resultId"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/service/ai/recover":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"telegramId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"linkVersion":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["test","live"]},"accountId":{"type":"string","format":"uuid"},"requestId":{"type":"string","format":"uuid"}},"required":["telegramId","linkVersion","mode","accountId","requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Durable request receipt","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"cycleId":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["reserved","unknown","unresolved","succeeded","released"]},"reservedUntil":{"type":"string","format":"date-time"},"reconcileUntil":{"type":"string","format":"date-time"},"resultId":{"type":"string","nullable":true,"format":"uuid"}},"required":["requestId","cycleId","state","reservedUntil","reconcileUntil","resultId"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/pulse/service/ai/settle":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"telegramId":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"linkVersion":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["test","live"]},"accountId":{"type":"string","format":"uuid"},"requestId":{"type":"string","format":"uuid"},"outcome":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["success"]},"resultId":{"type":"string","format":"uuid"},"resultHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"consentRevision":{"type":"string","minLength":1,"maxLength":128}},"required":["kind","resultId","resultHash","consentRevision"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["failed","fallback","revoked","unknown"]}},"required":["kind"],"additionalProperties":false}]}},"required":["telegramId","linkVersion","mode","accountId","requestId","outcome"],"additionalProperties":false}}}},"responses":{"200":{"description":"Idempotent result settlement","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"cycleId":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["reserved","unknown","unresolved","succeeded","released"]},"reservedUntil":{"type":"string","format":"date-time"},"reconcileUntil":{"type":"string","format":"date-time"},"resultId":{"type":"string","nullable":true,"format":"uuid"}},"required":["requestId","cycleId","state","reservedUntil","reconcileUntil","resultId"],"additionalProperties":false}}}},"400":{"description":"Invalid or expired request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Identity conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Try later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Disabled or unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/offers":{"get":{"responses":{"200":{"description":"Public informational offers","content":{"application/json":{"schema":{"type":"object","properties":{"offers":{"type":"array","items":{"type":"object","properties":{"plan":{"type":"string","enum":["START","YEAR","PRO"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]}},"required":["plan","amountKopecks","currency","periodDays"]}}},"required":["offers"]}}}}}}},"/api/payments/conditions":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["START","YEAR","PRO"]},"required":true,"name":"plan","in":"query"}],"responses":{"200":{"description":"Current account offer conditions; no financial operation","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]},"change":{"type":"object","nullable":true,"properties":{"periodId":{"type":"string","format":"uuid"},"subscriptionVersion":{"type":"integer","minimum":0},"balanceVersion":{"type":"integer","minimum":0},"oldPlan":{"type":"string","enum":["START","YEAR","PRO"]},"oldStartsAt":{"type":"string","format":"date-time"},"oldEndsAt":{"type":"string","format":"date-time"},"calculatedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"usedMilliseconds":{"type":"integer","minimum":0},"balanceAvailableKopecks":{"type":"integer","minimum":0},"creditKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"providerAmountKopecks":{"type":"integer","minimum":0},"remainingKopecks":{"type":"integer","minimum":0}},"default":null,"required":["periodId","subscriptionVersion","balanceVersion","oldPlan","oldStartsAt","oldEndsAt","calculatedAt","expiresAt","usedMilliseconds","balanceAvailableKopecks","creditKopecks","balanceSpentKopecks","providerAmountKopecks","remainingKopecks"],"additionalProperties":false},"purchase":{"type":"object","nullable":true,"properties":{"calculatedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"balanceAvailableKopecks":{"type":"integer","minimum":0},"creditKopecks":{"type":"number","enum":[0]},"balanceSpentKopecks":{"type":"integer","minimum":0},"providerAmountKopecks":{"type":"integer","minimum":0},"remainingKopecks":{"type":"integer","minimum":0},"subscriptionVersion":{"type":"integer","nullable":true,"minimum":0},"balanceVersion":{"type":"integer","nullable":true,"minimum":0}},"default":null,"required":["calculatedAt","expiresAt","balanceAvailableKopecks","creditKopecks","balanceSpentKopecks","providerAmountKopecks","remainingKopecks","subscriptionVersion","balanceVersion"],"additionalProperties":false},"offer":{"type":"object","properties":{"plan":{"type":"string","enum":["START","YEAR","PRO"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]}},"required":["plan","amountKopecks","currency","periodDays"]},"mode":{"type":"string","enum":["test","live"]},"conditionsToken":{"type":"string","minLength":1},"offerUrl":{"type":"string","format":"uri"},"renewal":{"type":"object","properties":{"version":{"type":"string","minLength":1},"terms":{"type":"string","minLength":1}},"required":["version","terms"],"additionalProperties":false},"paymentsEnabled":{"type":"boolean"},"supportUrl":{"type":"string","nullable":true},"previewStartsAt":{"type":"string","format":"date-time"},"previewEndsAt":{"type":"string","format":"date-time"}},"required":["account","offer","mode","conditionsToken","offerUrl","renewal","paymentsEnabled","supportUrl","previewStartsAt","previewEndsAt"]}}}},"400":{"description":"Invalid selection","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/admin/users/{userId}/subscription":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"}],"responses":{"200":{"description":"Selected participant safe subscription and history","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"renewal":{"type":"object","properties":{"enabled":{"type":"boolean"},"consentPending":{"type":"boolean"},"methodAvailable":{"type":"boolean"},"plan":{"type":"string","nullable":true,"enum":["START","YEAR","PRO",null]},"amountKopecks":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]},{"nullable":true}]},"nextAt":{"type":"string","nullable":true,"format":"date-time"},"providerAmountKopecks":{"type":"integer","nullable":true,"minimum":0}},"required":["enabled","consentPending","methodAvailable","plan","amountKopecks","periodDays","nextAt","providerAmountKopecks"],"additionalProperties":false},"balance":{"type":"object","properties":{"availableKopecks":{"type":"integer","minimum":0},"reservedKopecks":{"type":"integer","minimum":0}},"default":{"availableKopecks":0,"reservedKopecks":0},"required":["availableKopecks","reservedKopecks"]},"serverTime":{"type":"string","format":"date-time"},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"kind":{"type":"string","enum":["purchase","change","renewal"]},"currency":{"type":"string","enum":["RUB"]},"creditKopecks":{"type":"integer","minimum":0},"resumeUrl":{"type":"string","nullable":true,"format":"uri"},"refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source":{"type":"string","enum":["yookassa"]},"mode":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["pending","succeeded","canceled"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"createdAt":{"type":"string","format":"date-time"},"verifiedAt":{"type":"string","format":"date-time"}},"required":["id","source","mode","status","amountKopecks","currency","createdAt","verifiedAt"],"additionalProperties":false},"default":[]},"movements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["credit","reserve","spend","release"]},"amountKopecks":{"type":"integer"},"reservedKopecks":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","kind","amountKopecks","reservedKopecks","createdAt"],"additionalProperties":false},"default":[]}},"required":["id","plan","mode","amountKopecks","providerAmountKopecks","balanceSpentKopecks","periodDays","status","needsReview","createdAt","startsAt","endsAt","autoRenew","kind","currency","creditKopecks","resumeUrl"],"additionalProperties":false},"maxItems":20},"nextCursor":{"type":"string","nullable":true,"format":"uuid"},"supportUrl":{"type":"string","nullable":true}},"required":["ownerId","renewal","serverTime","entitlement","items","nextCursor","supportUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/admin/users/{userId}/renewal/disable":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":1000}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Selected participant safe subscription and history","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"renewal":{"type":"object","properties":{"enabled":{"type":"boolean"},"consentPending":{"type":"boolean"},"methodAvailable":{"type":"boolean"},"plan":{"type":"string","nullable":true,"enum":["START","YEAR","PRO",null]},"amountKopecks":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]},{"nullable":true}]},"nextAt":{"type":"string","nullable":true,"format":"date-time"},"providerAmountKopecks":{"type":"integer","nullable":true,"minimum":0}},"required":["enabled","consentPending","methodAvailable","plan","amountKopecks","periodDays","nextAt","providerAmountKopecks"],"additionalProperties":false},"balance":{"type":"object","properties":{"availableKopecks":{"type":"integer","minimum":0},"reservedKopecks":{"type":"integer","minimum":0}},"default":{"availableKopecks":0,"reservedKopecks":0},"required":["availableKopecks","reservedKopecks"]},"serverTime":{"type":"string","format":"date-time"},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"kind":{"type":"string","enum":["purchase","change","renewal"]},"currency":{"type":"string","enum":["RUB"]},"creditKopecks":{"type":"integer","minimum":0},"resumeUrl":{"type":"string","nullable":true,"format":"uri"},"refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source":{"type":"string","enum":["yookassa"]},"mode":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["pending","succeeded","canceled"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"createdAt":{"type":"string","format":"date-time"},"verifiedAt":{"type":"string","format":"date-time"}},"required":["id","source","mode","status","amountKopecks","currency","createdAt","verifiedAt"],"additionalProperties":false},"default":[]},"movements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["credit","reserve","spend","release"]},"amountKopecks":{"type":"integer"},"reservedKopecks":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","kind","amountKopecks","reservedKopecks","createdAt"],"additionalProperties":false},"default":[]}},"required":["id","plan","mode","amountKopecks","providerAmountKopecks","balanceSpentKopecks","periodDays","status","needsReview","createdAt","startsAt","endsAt","autoRenew","kind","currency","creditKopecks","resumeUrl"],"additionalProperties":false},"maxItems":20},"nextCursor":{"type":"string","nullable":true,"format":"uuid"},"supportUrl":{"type":"string","nullable":true}},"required":["ownerId","renewal","serverTime","entitlement","items","nextCursor","supportUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/subscription":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"}],"responses":{"200":{"description":"Own subscription and bounded financial history","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"renewal":{"type":"object","properties":{"enabled":{"type":"boolean"},"consentPending":{"type":"boolean"},"methodAvailable":{"type":"boolean"},"plan":{"type":"string","nullable":true,"enum":["START","YEAR","PRO",null]},"amountKopecks":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]},{"nullable":true}]},"nextAt":{"type":"string","nullable":true,"format":"date-time"},"providerAmountKopecks":{"type":"integer","nullable":true,"minimum":0}},"required":["enabled","consentPending","methodAvailable","plan","amountKopecks","periodDays","nextAt","providerAmountKopecks"],"additionalProperties":false},"balance":{"type":"object","properties":{"availableKopecks":{"type":"integer","minimum":0},"reservedKopecks":{"type":"integer","minimum":0}},"default":{"availableKopecks":0,"reservedKopecks":0},"required":["availableKopecks","reservedKopecks"]},"serverTime":{"type":"string","format":"date-time"},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"kind":{"type":"string","enum":["purchase","change","renewal"]},"currency":{"type":"string","enum":["RUB"]},"creditKopecks":{"type":"integer","minimum":0},"resumeUrl":{"type":"string","nullable":true,"format":"uri"},"refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source":{"type":"string","enum":["yookassa"]},"mode":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["pending","succeeded","canceled"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"createdAt":{"type":"string","format":"date-time"},"verifiedAt":{"type":"string","format":"date-time"}},"required":["id","source","mode","status","amountKopecks","currency","createdAt","verifiedAt"],"additionalProperties":false},"default":[]},"movements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["credit","reserve","spend","release"]},"amountKopecks":{"type":"integer"},"reservedKopecks":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","kind","amountKopecks","reservedKopecks","createdAt"],"additionalProperties":false},"default":[]}},"required":["id","plan","mode","amountKopecks","providerAmountKopecks","balanceSpentKopecks","periodDays","status","needsReview","createdAt","startsAt","endsAt","autoRenew","kind","currency","creditKopecks","resumeUrl"],"additionalProperties":false},"maxItems":20},"nextCursor":{"type":"string","nullable":true,"format":"uuid"},"supportUrl":{"type":"string","nullable":true}},"required":["ownerId","renewal","serverTime","entitlement","items","nextCursor","supportUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/purchase":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["START","YEAR","PRO"]},"conditionsToken":{"type":"string","minLength":1,"maxLength":4096},"offerAccepted":{"type":"boolean","enum":[true]},"renewalAccepted":{"type":"boolean","default":false}},"required":["plan","conditionsToken","offerAccepted"],"additionalProperties":false}}}},"responses":{"200":{"description":"Verified account payment state","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"confirmationUrl":{"type":"string","nullable":true,"format":"uri"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"learningTrackIds":{"type":"array","items":{"type":"string"},"maxItems":14,"default":[]},"learningCaseId":{"type":"number","enum":[2]}},"required":["id","plan","mode","amountKopecks","periodDays","status","needsReview","confirmationUrl","createdAt","startsAt","endsAt","autoRenew"]},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]}},"required":["operation","entitlement"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/operations/{id}/learning-return":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackId":{"type":"string"},"caseId":{"type":"number","enum":[2]}},"required":["trackId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Verified account payment state","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"confirmationUrl":{"type":"string","nullable":true,"format":"uri"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"learningTrackIds":{"type":"array","items":{"type":"string"},"maxItems":14,"default":[]},"learningCaseId":{"type":"number","enum":[2]}},"required":["id","plan","mode","amountKopecks","periodDays","status","needsReview","confirmationUrl","createdAt","startsAt","endsAt","autoRenew"]},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]}},"required":["operation","entitlement"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/renewal/conditions":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Current paid-period renewal consent; no financial operation","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"serverTime":{"type":"string","format":"date-time"},"offer":{"type":"object","nullable":true,"properties":{"plan":{"type":"string","enum":["START","YEAR","PRO"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]}},"required":["plan","amountKopecks","currency","periodDays"]},"paidEndsAt":{"type":"string","nullable":true,"format":"date-time"},"renewal":{"type":"object","properties":{"version":{"type":"string","minLength":1},"terms":{"type":"string","minLength":1}},"required":["version","terms"],"additionalProperties":false},"blockedReason":{"type":"string","nullable":true,"enum":["expired","no_method","refused","unavailable",null]},"conditionsToken":{"type":"string","nullable":true,"minLength":1}},"required":["ownerId","serverTime","offer","paidEndsAt","renewal","blockedReason","conditionsToken"],"additionalProperties":false}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/renewal/enable":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"conditionsToken":{"type":"string","minLength":1,"maxLength":4096},"renewalAccepted":{"type":"boolean","enum":[true]}},"required":["conditionsToken","renewalAccepted"],"additionalProperties":false}}}},"responses":{"200":{"description":"Fresh consent for future renewal only","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"renewal":{"type":"object","properties":{"enabled":{"type":"boolean"},"consentPending":{"type":"boolean"},"methodAvailable":{"type":"boolean"},"plan":{"type":"string","nullable":true,"enum":["START","YEAR","PRO",null]},"amountKopecks":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]},{"nullable":true}]},"nextAt":{"type":"string","nullable":true,"format":"date-time"},"providerAmountKopecks":{"type":"integer","nullable":true,"minimum":0}},"required":["enabled","consentPending","methodAvailable","plan","amountKopecks","periodDays","nextAt","providerAmountKopecks"],"additionalProperties":false},"balance":{"type":"object","properties":{"availableKopecks":{"type":"integer","minimum":0},"reservedKopecks":{"type":"integer","minimum":0}},"default":{"availableKopecks":0,"reservedKopecks":0},"required":["availableKopecks","reservedKopecks"]},"serverTime":{"type":"string","format":"date-time"},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"kind":{"type":"string","enum":["purchase","change","renewal"]},"currency":{"type":"string","enum":["RUB"]},"creditKopecks":{"type":"integer","minimum":0},"resumeUrl":{"type":"string","nullable":true,"format":"uri"},"refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source":{"type":"string","enum":["yookassa"]},"mode":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["pending","succeeded","canceled"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"createdAt":{"type":"string","format":"date-time"},"verifiedAt":{"type":"string","format":"date-time"}},"required":["id","source","mode","status","amountKopecks","currency","createdAt","verifiedAt"],"additionalProperties":false},"default":[]},"movements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["credit","reserve","spend","release"]},"amountKopecks":{"type":"integer"},"reservedKopecks":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","kind","amountKopecks","reservedKopecks","createdAt"],"additionalProperties":false},"default":[]}},"required":["id","plan","mode","amountKopecks","providerAmountKopecks","balanceSpentKopecks","periodDays","status","needsReview","createdAt","startsAt","endsAt","autoRenew","kind","currency","creditKopecks","resumeUrl"],"additionalProperties":false},"maxItems":20},"nextCursor":{"type":"string","nullable":true,"format":"uuid"},"supportUrl":{"type":"string","nullable":true}},"required":["ownerId","renewal","serverTime","entitlement","items","nextCursor","supportUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/renewal/disable":{"post":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Own renewal disabled; dispatched operation keeps its verified result","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"renewal":{"type":"object","properties":{"enabled":{"type":"boolean"},"consentPending":{"type":"boolean"},"methodAvailable":{"type":"boolean"},"plan":{"type":"string","nullable":true,"enum":["START","YEAR","PRO",null]},"amountKopecks":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]},{"nullable":true}]},"nextAt":{"type":"string","nullable":true,"format":"date-time"},"providerAmountKopecks":{"type":"integer","nullable":true,"minimum":0}},"required":["enabled","consentPending","methodAvailable","plan","amountKopecks","periodDays","nextAt","providerAmountKopecks"],"additionalProperties":false},"balance":{"type":"object","properties":{"availableKopecks":{"type":"integer","minimum":0},"reservedKopecks":{"type":"integer","minimum":0}},"default":{"availableKopecks":0,"reservedKopecks":0},"required":["availableKopecks","reservedKopecks"]},"serverTime":{"type":"string","format":"date-time"},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"kind":{"type":"string","enum":["purchase","change","renewal"]},"currency":{"type":"string","enum":["RUB"]},"creditKopecks":{"type":"integer","minimum":0},"resumeUrl":{"type":"string","nullable":true,"format":"uri"},"refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source":{"type":"string","enum":["yookassa"]},"mode":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["pending","succeeded","canceled"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","enum":["RUB"]},"createdAt":{"type":"string","format":"date-time"},"verifiedAt":{"type":"string","format":"date-time"}},"required":["id","source","mode","status","amountKopecks","currency","createdAt","verifiedAt"],"additionalProperties":false},"default":[]},"movements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["credit","reserve","spend","release"]},"amountKopecks":{"type":"integer"},"reservedKopecks":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","kind","amountKopecks","reservedKopecks","createdAt"],"additionalProperties":false},"default":[]}},"required":["id","plan","mode","amountKopecks","providerAmountKopecks","balanceSpentKopecks","periodDays","status","needsReview","createdAt","startsAt","endsAt","autoRenew","kind","currency","creditKopecks","resumeUrl"],"additionalProperties":false},"maxItems":20},"nextCursor":{"type":"string","nullable":true,"format":"uuid"},"supportUrl":{"type":"string","nullable":true}},"required":["ownerId","renewal","serverTime","entitlement","items","nextCursor","supportUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/current":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Verified account payment state","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"confirmationUrl":{"type":"string","nullable":true,"format":"uri"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"learningTrackIds":{"type":"array","items":{"type":"string"},"maxItems":14,"default":[]},"learningCaseId":{"type":"number","enum":[2]}},"required":["id","plan","mode","amountKopecks","periodDays","status","needsReview","confirmationUrl","createdAt","startsAt","endsAt","autoRenew"]},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]}},"required":["operation","entitlement"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/operations/{id}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Verified account payment state","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"amountKopecks":{"type":"integer","minimum":0,"exclusiveMinimum":true},"providerAmountKopecks":{"type":"integer","minimum":0},"balanceSpentKopecks":{"type":"integer","minimum":0},"periodDays":{"anyOf":[{"type":"number","enum":[30]},{"type":"number","enum":[365]}]},"status":{"type":"string","enum":["checking","action_required","succeeded","canceled"]},"needsReview":{"type":"boolean"},"confirmationUrl":{"type":"string","nullable":true,"format":"uri"},"createdAt":{"type":"string","format":"date-time"},"startsAt":{"type":"string","nullable":true,"format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"autoRenew":{"type":"boolean"},"learningTrackIds":{"type":"array","items":{"type":"string"},"maxItems":14,"default":[]},"learningCaseId":{"type":"number","enum":[2]}},"required":["id","plan","mode","amountKopecks","periodDays","status","needsReview","confirmationUrl","createdAt","startsAt","endsAt","autoRenew"]},"entitlement":{"type":"object","nullable":true,"properties":{"source":{"type":"string","enum":["gift"]},"plan":{"type":"string","enum":["START","YEAR","PRO"]},"mode":{"type":"string","enum":["test","live"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"active":{"type":"boolean"},"autoRenew":{"type":"boolean"}},"required":["plan","mode","startsAt","endsAt","active","autoRenew"]}},"required":["operation","entitlement"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Member account required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conditions changed or active period","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/payments/webhook":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["notification"]},"event":{"type":"string","enum":["payment.succeeded","payment.canceled","payment.waiting_for_capture","refund.succeeded"]},"object":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]}},"required":["type","event","object"]}}}},"responses":{"200":{"description":"Verified result durably saved"},"400":{"description":"Unlinked payment","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Verification unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/marketing-plan/{id}":{"get":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/marketing-plan/{id}/messages":{"post":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"text":{"type":"string","minLength":1,"maxLength":5000}},"required":["commandId","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/marketing-plan/{id}/files/{kind}":{"get":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","enum":["source","result"]},"required":true,"name":"kind","in":"path"}],"responses":{"200":{"description":"Private document attachment","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/marketing-plan":{"get":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Participant gift workspace","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}},"required":["request"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"goal":{"type":"string","minLength":1,"maxLength":3000}},"required":["file","goal"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/marketing-plan/{id}/source":{"put":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/admin/marketing-plans/{id}":{"get":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/admin/marketing-plans/{id}/messages":{"post":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"text":{"type":"string","minLength":1,"maxLength":5000}},"required":["commandId","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/admin/marketing-plans/{id}/files/{kind}":{"get":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","enum":["source","result"]},"required":true,"name":"kind","in":"path"}],"responses":{"200":{"description":"Private document attachment","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/admin/marketing-plans":{"get":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","enum":["team"]},"required":false,"name":"waiting","in":"query"}],"responses":{"200":{"description":"Request queue","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true,"format":"uuid"}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/api/admin/marketing-plans/{id}/schedule":{"patch":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expectedDate":{"type":"string","format":"date"}},"required":["expectedDate"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/admin/marketing-plans/{id}/result":{"post":{"tags":["Marketing plans"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"string","format":"binary"}},"required":["summary","firstStep","file"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal":{"type":"string","minLength":1,"maxLength":3000},"status":{"type":"string","enum":["received","reviewing","waiting","delivered"]},"needsTeamReply":{"type":"boolean"},"expectedDate":{"type":"string","nullable":true,"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"participant":{"type":"string"},"source":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"result":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","minLength":1,"maxLength":3000},"firstStep":{"type":"string","minLength":1,"maxLength":3000},"file":{"type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":10485760}},"required":["format","byteSize"],"additionalProperties":false},"deliveredAt":{"type":"string","format":"date-time"}},"required":["summary","firstStep","file","deliveredAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["user","admin"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","text","createdAt"],"additionalProperties":false}}},"required":["id","goal","status","needsTeamReply","expectedDate","createdAt","updatedAt","participant","source","result","messages"],"additionalProperties":false}}}}}}},"/api/users/me/profile":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Current account profile","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]}},"required":["user"],"additionalProperties":false}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/users/me":{"patch":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":2,"maxLength":80}},"required":["displayName"],"additionalProperties":false}}}},"responses":{"200":{"description":"Updated current user profile","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"welcomeGiftPending":{"type":"boolean"}},"required":["id","email","displayName","role","createdAt"]}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/materials/catalogue":{"get":{"responses":{"200":{"description":"Public Academy catalogue without article bodies","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["article","collection"]}},"required":["title","description","section","series","position","collectionId","id","kind"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/materials/catalogue/{id}/replacement":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Current replacement workbook for a retired card","content":{"application/json":{"schema":{"type":"object","properties":{"replacementId":{"type":"string","nullable":true,"format":"uuid"}},"required":["replacementId"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/files":{"get":{"parameters":[{"schema":{"type":"string","maxLength":200},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":false,"name":"section","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":false,"name":"series","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":10000,"default":1},"required":false,"name":"page","in":"query"}],"responses":{"200":{"description":"Anonymous published file cards without file identifiers or bytes","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"}},"required":["title","description","section","series","isCollection","id"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true},"hasNext":{"type":"boolean"},"sections":{"type":"array","items":{"type":"string"}},"series":{"type":"array","items":{"type":"string"}}},"required":["items","page","hasNext","sections","series"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials/library":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":false,"name":"section","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":false,"name":"series","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":10000,"default":1},"required":false,"name":"page","in":"query"}],"responses":{"200":{"description":"Current paid library","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true},"hasNext":{"type":"boolean"},"sections":{"type":"array","items":{"type":"string"}},"series":{"type":"array","items":{"type":"string"}},"accessEndsAt":{"type":"string","format":"date-time"}},"required":["items","page","hasNext","sections","series","accessEndsAt"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials/library/{id}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Current paid publication","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false},"accessEndsAt":{"type":"string","format":"date-time"},"serverTime":{"type":"string","format":"date-time"}},"required":["material","accessEndsAt","serverTime"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials/library/{id}/revisions/{revisionId}/bytes":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"revisionId","in":"path"}],"responses":{"200":{"description":"Authenticated PDF bytes","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Authenticated PDF bytes","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"416":{"description":"Invalid range","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials/library/{id}/article":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Current paid article for earlier readers","content":{"application/json":{"schema":{"type":"object","properties":{"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]},"text":{"type":"string","minLength":1}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["callout"]},"runs":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false},"minItems":1}},"required":["type","runs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"runs":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false},"minItems":1}},"required":["type","runs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["list"]},"ordered":{"type":"boolean"},"items":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false},"minItems":1},"minItems":1}},"required":["type","ordered","items"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["table"]},"header":{"type":"boolean"},"rows":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false}},"minItems":1},"minItems":1}},"required":["type","header","rows"],"additionalProperties":false}]},"minItems":1},"accessEndsAt":{"type":"string","format":"date-time"},"serverTime":{"type":"string","format":"date-time"}},"required":["blocks","accessEndsAt","serverTime"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials/library/{id}/article/v2":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Current paid article with presentation hints","content":{"application/json":{"schema":{"type":"object","properties":{"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]},"text":{"type":"string","minLength":1},"role":{"type":"string","enum":["exercise","check","answer"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["callout"]},"runs":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false},"minItems":1},"layout":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["comparison","steps","cards"]},"group":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["kind","group"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["flow"]},"group":{"type":"integer","minimum":0,"exclusiveMinimum":true},"slot":{"type":"string","enum":["stage","alternative","connector","boundary"]}},"required":["kind","group","slot"],"additionalProperties":false}]}},"required":["type","runs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"runs":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false},"minItems":1}},"required":["type","runs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["list"]},"ordered":{"type":"boolean"},"items":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false},"minItems":1},"minItems":1}},"required":["type","ordered","items"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["table"]},"header":{"type":"boolean"},"rows":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"bold":{"type":"boolean"},"italic":{"type":"boolean"}},"required":["text"],"additionalProperties":false}},"minItems":1},"minItems":1}},"required":["type","header","rows"],"additionalProperties":false}]},"minItems":1},"accessEndsAt":{"type":"string","format":"date-time"},"serverTime":{"type":"string","format":"date-time"}},"required":["blocks","accessEndsAt","serverTime"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials/library/{id}/download":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Authenticated PDF bytes","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Authenticated PDF bytes","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"416":{"description":"Invalid range","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/subscriber-materials/files":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"responses":{"201":{"description":"Validated immutable PDF","content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false}},"required":["file"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/subscriber-materials/files/{id}/bytes":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Authenticated PDF bytes","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Authenticated PDF bytes","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"416":{"description":"Invalid range","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/subscriber-materials":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":false,"name":"section","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":false,"name":"series","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":10000,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"boolean"},"required":false,"name":"isCollection","in":"query"}],"responses":{"200":{"description":"Administrator draft list","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","nullable":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","nullable":true,"format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"published":{"type":"object","nullable":true,"properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","version","draft","file","published","updatedAt"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true},"hasNext":{"type":"boolean"}},"required":["items","page","hasNext"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string","nullable":true,"pattern":"^[a-z0-9][a-z0-9._-]{0,119}$"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false}},"required":["sourceId","draft"],"additionalProperties":false}}}},"responses":{"201":{"description":"Saved draft and current immutable publication","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","nullable":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","nullable":true,"format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"published":{"type":"object","nullable":true,"properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","version","draft","file","published","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/subscriber-materials/{id}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Saved draft and current immutable publication","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","nullable":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","nullable":true,"format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"published":{"type":"object","nullable":true,"properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","version","draft","file","published","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","nullable":true,"format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false}},"required":["version","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved draft and current immutable publication","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","nullable":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","nullable":true,"format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"published":{"type":"object","nullable":true,"properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","version","draft","file","published","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/subscriber-materials/{id}/publish":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved draft and current immutable publication","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","nullable":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","nullable":true,"format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"published":{"type":"object","nullable":true,"properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","version","draft","file","published","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/subscriber-materials/{id}/withdraw":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved draft and current immutable publication","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sourceId":{"type":"string","nullable":true},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"fileId":{"type":"string","nullable":true,"format":"uuid"}},"required":["title","description","section","series","position","collectionId","isCollection","fileId"],"additionalProperties":false},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"published":{"type":"object","nullable":true,"properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"section":{"type":"string","minLength":1,"maxLength":120},"series":{"type":"string","nullable":true,"minLength":1,"maxLength":120},"position":{"type":"integer","minimum":0,"maximum":100000},"collectionId":{"type":"string","nullable":true,"format":"uuid"},"isCollection":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"revisionId":{"type":"string","format":"uuid"},"file":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":67108864},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","byteSize","pages","sha256"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time"}},"required":["title","description","section","series","position","collectionId","isCollection","id","revisionId","file","publishedAt"],"additionalProperties":false},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","sourceId","version","draft","file","published","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid request or PDF","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Active session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found or no longer published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Upload exceeds 64 MiB","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials":{"get":{"tags":["Materials"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Materials available to every signed-in account","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":1000},"author":{"type":"string","minLength":1,"maxLength":200},"filename":{"type":"string","maxLength":200,"pattern":"^[a-zA-Z0-9_-]+\\.pdf$"},"contentType":{"type":"string","enum":["application/pdf"]},"pages":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["id","title","description","author","filename","contentType","pages"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Account request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/materials/{materialId}/download":{"get":{"tags":["Materials"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"required":true,"name":"materialId","in":"path"}],"responses":{"200":{"description":"Original workbook attachment","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid identifier","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Material not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Account request budget exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Material temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/dashboard":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Administrator dashboard metrics","content":{"application/json":{"schema":{"type":"object","properties":{"totalUsers":{"type":"integer","minimum":0},"totalAdmins":{"type":"integer","minimum":0},"newUsersLast7Days":{"type":"integer","minimum":0}},"required":["totalUsers","totalAdmins","newUsersLast7Days"],"additionalProperties":false}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator access required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/users":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"q","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100,"default":20},"required":false,"name":"pageSize","in":"query"}],"responses":{"200":{"description":"Paginated users","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"},"atlasStatus":{"type":"string","enum":["unstarted","draft","confirmed","changes","result","step","map"]}},"required":["id","email","displayName","role","createdAt","atlasStatus"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"pageSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"total":{"type":"integer","minimum":0},"hasNext":{"type":"boolean"}},"required":["items","page","pageSize","total","hasNext"],"additionalProperties":false}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator access required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/users/{userId}/role":{"patch":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["user","admin"]}},"required":["role"],"additionalProperties":false}}}},"responses":{"200":{"description":"Updated user role","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","email","displayName","role","createdAt"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator access required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"User not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Role update conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/library-release/prepared":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Prepared catalogue","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"active":{"type":"boolean"},"entry":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["published"]},"access":{"type":"string","enum":["free","subscription"]},"runtimeId":{"type":"string","minLength":1,"maxLength":80}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["embedded","merged"]},"direction":{"nullable":true},"parentCode":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false}]}},"required":["id","version","active","entry"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/library-release/prepared/{trackId}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"trackId","in":"path"}],"responses":{"200":{"description":"Prepared description","content":{"application/json":{"schema":{"type":"object","properties":{"track":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"active":{"type":"boolean"},"entry":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["published"]},"access":{"type":"string","enum":["free","subscription"]},"runtimeId":{"type":"string","minLength":1,"maxLength":80}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["embedded","merged"]},"direction":{"nullable":true},"parentCode":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false}]}},"required":["id","version","active","entry"],"additionalProperties":false}},"required":["track"],"additionalProperties":false}}}},"400":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"trackId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"expectedActive":{"type":"boolean"}},"required":["title","situation","result","visible","version","expectedActive"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepared description","content":{"application/json":{"schema":{"type":"object","properties":{"track":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"active":{"type":"boolean"},"entry":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["published"]},"access":{"type":"string","enum":["free","subscription"]},"runtimeId":{"type":"string","minLength":1,"maxLength":80}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"role":{"type":"string","enum":["embedded","merged"]},"direction":{"nullable":true},"parentCode":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","visible","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false}]}},"required":["id","version","active","entry"],"additionalProperties":false}},"required":["track"],"additionalProperties":false}}}},"400":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/library-release/activate":{"post":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Release activated","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"],"additionalProperties":false}}}},"401":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/library-release/rollback":{"post":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Legacy catalogue restored","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"401":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/library-release":{"get":{"responses":{"200":{"description":"Active catalogue release","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"role":{"type":"string","enum":["standalone"]},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"parentCode":{"nullable":true},"readiness":{"type":"string","enum":["published"]},"access":{"type":"string","enum":["free","subscription"]},"runtimeId":{"type":"string","minLength":1,"maxLength":80}},"required":["code","title","situation","result","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"role":{"type":"string","enum":["embedded","merged"]},"direction":{"nullable":true},"parentCode":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"readiness":{"type":"string","enum":["future"]},"access":{"nullable":true},"runtimeId":{"nullable":true}},"required":["code","title","situation","result","role","direction","parentCode","readiness","access","runtimeId"],"additionalProperties":false}]}}},"required":["id","items"],"additionalProperties":false}},"required":["release"],"additionalProperties":false}}}},"503":{"description":"Release request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":10000,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"anyOf":[{"type":"string","enum":["draft","published","withdrawn"]},{"type":"string","enum":[""]}],"default":""},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"News list","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true},"hasNext":{"type":"boolean"}},"required":["items","page","hasNext"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"creationKey":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false}},"required":["creationKey","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"201":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news/publish":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"creationKey":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","minLength":1,"maxLength":600},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title","excerpt"],"additionalProperties":false}},"required":["creationKey","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"201":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news/images":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}}}},"responses":{"201":{"description":"Uploaded image","content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":5242880}},"required":["id","contentType","byteSize"],"additionalProperties":false}},"required":["image"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news/images/{id}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Protected preview","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news/creations/{key}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"key","in":"path"}],"responses":{"200":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news/{id}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false}},"required":["version","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news/{id}/publish":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","minLength":1,"maxLength":600},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title","excerpt"],"additionalProperties":false}},"required":["version","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/news/{id}/withdraw":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["version"],"additionalProperties":false}}}},"responses":{"200":{"description":"News draft","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","maxLength":600,"default":""},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10}},"required":["title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hasSavedChanges":{"type":"boolean"}},"required":["id","draft","version","status","publishedAt","updatedAt","hasSavedChanges"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/news/{id}/image/{imageId}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"imageId","in":"path"},{"schema":{"type":"string","enum":["96","192","384","768","1280"]},"required":false,"name":"width","in":"query"}],"responses":{"200":{"description":"Published photograph (original or WebP)","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/news/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Published news detail","content":{"application/json":{"schema":{"type":"object","properties":{"news":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","minLength":1,"maxLength":600},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10},"id":{"type":"string","format":"uuid"},"publishedAt":{"type":"string","format":"date-time"},"modifiedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["title","excerpt","id","publishedAt"],"additionalProperties":false}},"required":["news"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/news":{"get":{"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":10000,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"anyOf":[{"type":"string","enum":["companies","market","events"]},{"type":"string","enum":[""]}],"default":""},"required":false,"name":"category","in":"query"}],"responses":{"200":{"description":"Published news","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["telegram","editorial"],"default":"telegram"},"category":{"type":"string","enum":["companies","market","events"],"default":"companies"},"body":{"type":"string","maxLength":20000,"default":""},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"url":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}]},"publishedOn":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","format":"date"}]}},"required":["name","url","publishedOn"],"additionalProperties":false},"maxItems":10,"default":[]},"excerpt":{"type":"string","minLength":1,"maxLength":600},"telegramUrl":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":2048}],"default":""},"imageId":{"type":"string","nullable":true,"format":"uuid","default":null},"formattedBody":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"object","properties":{"imageId":{"type":"string","format":"uuid"},"caption":{"type":"string","maxLength":250}},"required":["imageId","caption"],"additionalProperties":false},"maxItems":10},"id":{"type":"string","format":"uuid"},"publishedAt":{"type":"string","format":"date-time"},"modifiedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["title","excerpt","id","publishedAt"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true},"hasNext":{"type":"boolean"}},"required":["items","page","hasNext"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/search/availability":{"get":{"responses":{"200":{"description":"Public AI search availability without provider calls","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}}}}},"/api/content/search":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":3,"maxLength":400},"consent":{"type":"boolean","enum":[true]},"consentVersion":{"type":"string","enum":["2026-11-03.search.1"]},"scope":{"type":"string","enum":["all","tracks"]}},"required":["query","consent","consentVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Authenticated public material selection","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["matched","no_matches"]},"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["article"]},"href":{"type":"string","pattern":"^\\/articles\\/[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["library"]},"href":{"type":"string","pattern":"^\\/library\\/[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["track"]},"href":{"type":"string","pattern":"^\\/library\\?track=((?:NET|NMT|A[1-6])-\\d{3})#track-\\1$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false}]},"maxItems":5}},"required":["status","items"],"additionalProperties":false}}}},"400":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/search/v2":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":3,"maxLength":400},"consent":{"type":"boolean","enum":[true]},"consentVersion":{"type":"string","enum":["2026-11-03.search.1"]},"scope":{"type":"string","enum":["all","tracks"]}},"required":["query","consent","consentVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Authenticated public material selection","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["matched","no_matches"]},"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["article"]},"href":{"type":"string","pattern":"^\\/articles\\/[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["library"]},"href":{"type":"string","pattern":"^\\/library\\/[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["track"]},"href":{"type":"string","pattern":"^\\/library\\?track=((?:NET|NMT|A[1-6]|NEW)-\\d{3})#track-\\1$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false}]},"maxItems":5}},"required":["status","items"],"additionalProperties":false}}}},"400":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/search/v3":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":3,"maxLength":400},"consent":{"type":"boolean","enum":[true]},"consentVersion":{"type":"string","enum":["2026-11-03.search.1"]},"scope":{"type":"string","enum":["all","tracks","books","reading"]}},"required":["query","consent","consentVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Authenticated public material selection","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["matched","no_matches"]},"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["article"]},"href":{"type":"string","pattern":"^\\/articles\\/[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["library"]},"href":{"type":"string","pattern":"^\\/library\\/[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["track"]},"href":{"type":"string","pattern":"^\\/library\\?track=((?:NET|NMT|A[1-6]|NEW)-\\d{3})#track-\\1$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["book"]},"href":{"type":"string","pattern":"^/app/materials/library/.*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2200},"reason":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","enum":["subscriber_article"]},"href":{"type":"string","pattern":"^/app/materials/library/.*$"}},"required":["id","title","description","reason","type","href"],"additionalProperties":false}]},"maxItems":5}},"required":["status","items"],"additionalProperties":false}}}},"400":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Search unavailable, unauthorized or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/materials":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200,"default":""},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","enum":["memo","checklist","example"]},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"to","in":"query"},{"schema":{"type":"string","enum":["article","library"]},"required":false,"name":"type","in":"query"},{"schema":{"type":"string","enum":["draft","published","withdrawn"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":1000,"default":1},"required":false,"name":"page","in":"query"}],"responses":{"200":{"description":"Administrative material list","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"type":{"type":"string","enum":["article","library"]},"slug":{"type":"string"}},"required":["id","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt","title","type","slug"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true},"hasNext":{"type":"boolean"}},"required":["items","page","hasNext"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"creationKey":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false}},"required":["creationKey","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"201":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/materials/creations/{creationKey}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"creationKey","in":"path"}],"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/materials/{materialId}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"materialId","in":"path"}],"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"materialId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false}},"required":["version","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/materials/publish":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"creationKey":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false}},"required":["creationKey","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"201":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/materials/{materialId}/publish":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"materialId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false}},"required":["version","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/materials/{materialId}/withdraw":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"materialId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/materials/{materialId}/discard":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"materialId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Protected material","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":600,"default":""},"body":{"type":"object","nullable":true,"properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"default":null,"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120,"default":""},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null],"default":null},"author":{"type":"string","maxLength":120,"default":""}},"required":["type","title"],"additionalProperties":false},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"status":{"type":"string","enum":["draft","published","withdrawn"]},"publicDate":{"type":"string","nullable":true,"format":"date"},"dateOrigin":{"type":"string","enum":["first_publication","source_verified","source_unknown","editorial"]},"hasPublishedSnapshot":{"type":"boolean"},"hasSavedChanges":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","draft","version","status","publicDate","dateOrigin","hasPublishedSnapshot","hasSavedChanges","updatedAt"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Administrator required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Editorial conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/library-tracks":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200,"default":""},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","enum":["PRIMARY","SKILL","COMPONENT","REDIRECT"]},"required":false,"name":"category","in":"query"},{"schema":{"type":"string","enum":["NET","A1","A2","A3","A4","A5","A6","NMT"]},"required":false,"name":"section","in":"query"},{"schema":{"type":"string","enum":["visible","hidden"]},"required":false,"name":"visibility","in":"query"}],"responses":{"200":{"description":"Catalogue entries","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6])-\\d{3}$"},"section":{"type":"string","enum":["NET","A1","A2","A3","A4","A5","A6","NMT"]},"category":{"type":"string","enum":["PRIMARY","SKILL","COMPONENT","REDIRECT"]},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"id":{"type":"string","format":"uuid"},"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"updatedAt":{"type":"string","format":"date-time"},"updatedBy":{"type":"string","format":"uuid"}},"required":["code","section","category","title","situation","result","id","visible","version","updatedAt","updatedBy"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/library-tracks/{trackId}":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"trackId","in":"path"}],"responses":{"200":{"description":"Catalogue entry","content":{"application/json":{"schema":{"type":"object","properties":{"track":{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6])-\\d{3}$"},"section":{"type":"string","enum":["NET","A1","A2","A3","A4","A5","A6","NMT"]},"category":{"type":"string","enum":["PRIMARY","SKILL","COMPONENT","REDIRECT"]},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"id":{"type":"string","format":"uuid"},"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"updatedAt":{"type":"string","format":"date-time"},"updatedBy":{"type":"string","format":"uuid"}},"required":["code","section","category","title","situation","result","id","visible","version","updatedAt","updatedBy"],"additionalProperties":false}},"required":["track"],"additionalProperties":false}}}},"400":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"trackId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"expectedPreparedActive":{"type":"boolean"}},"required":["title","situation","result","visible","version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Catalogue entry","content":{"application/json":{"schema":{"type":"object","properties":{"track":{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6])-\\d{3}$"},"section":{"type":"string","enum":["NET","A1","A2","A3","A4","A5","A6","NMT"]},"category":{"type":"string","enum":["PRIMARY","SKILL","COMPONENT","REDIRECT"]},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000},"id":{"type":"string","format":"uuid"},"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"updatedAt":{"type":"string","format":"date-time"},"updatedBy":{"type":"string","format":"uuid"}},"required":["code","section","category","title","situation","result","id","visible","version","updatedAt","updatedBy"],"additionalProperties":false}},"required":["track"],"additionalProperties":false}}}},"400":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/library-tracks":{"get":{"parameters":[{"schema":{"type":"string","maxLength":200,"default":""},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","enum":["PRIMARY","SKILL","COMPONENT","REDIRECT"]},"required":false,"name":"category","in":"query"},{"schema":{"type":"string","enum":["NET","A1","A2","A3","A4","A5","A6","NMT"]},"required":false,"name":"section","in":"query"}],"responses":{"200":{"description":"Visible catalogue entries","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6])-\\d{3}$"},"section":{"type":"string","enum":["NET","A1","A2","A3","A4","A5","A6","NMT"]},"category":{"type":"string","enum":["PRIMARY","SKILL","COMPONENT","REDIRECT"]},"title":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","minLength":1,"maxLength":1000},"result":{"type":"string","minLength":1,"maxLength":1000}},"required":["code","section","category","title","situation","result"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Catalogue request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/articles/{slug}/read":{"get":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Full published article for a signed-in account","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":600},"body":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null]},"author":{"type":"string","maxLength":120},"publicDate":{"type":"string","nullable":true,"format":"date"}},"required":["type","title","description","body","slug","kind","author","publicDate"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Content temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/articles":{"get":{"parameters":[{"schema":{"type":"string","maxLength":200,"default":""},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","enum":["memo","checklist","example"]},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"to","in":"query"}],"responses":{"200":{"description":"Published materials","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":600},"slug":{"type":"string","maxLength":120},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null]},"publicDate":{"type":"string","nullable":true,"format":"date"}},"required":["type","title","description","slug"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Content temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/articles/{slug}":{"get":{"parameters":[{"schema":{"type":"string"},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Public reading material or article preview","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"type":{"type":"string","enum":["article"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":600},"slug":{"type":"string","maxLength":120},"kind":{"nullable":true},"author":{"type":"string","maxLength":120},"publicDate":{"type":"string","nullable":true,"format":"date"}},"required":["type","title","description","slug","kind","author","publicDate"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Content temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/library":{"get":{"parameters":[{"schema":{"type":"string","maxLength":200,"default":""},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","enum":["memo","checklist","example"]},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"to","in":"query"}],"responses":{"200":{"description":"Published materials","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":600},"slug":{"type":"string","maxLength":120},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null]},"publicDate":{"type":"string","nullable":true,"format":"date"}},"required":["type","title","description","slug"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Content temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/library/{slug}":{"get":{"parameters":[{"schema":{"type":"string"},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Public reading material or article preview","content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"type":{"type":"string","enum":["article","library"]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":600},"body":{"type":"object","properties":{"type":{"type":"string","enum":["doc"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"attrs":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[2]},{"type":"number","enum":[3]}]}},"required":["level"],"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type","attrs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["bulletList"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["orderedList"]},"attrs":{"type":"object","properties":{"start":{"type":"integer","minimum":1,"maximum":100000,"default":1},"type":{"nullable":true}},"additionalProperties":false},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["listItem"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["paragraph"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":100000},"marks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["bold"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["italic"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["link"]},"attrs":{"type":"object","properties":{"href":{"type":"string","maxLength":2048},"target":{"type":"string","nullable":true,"enum":["_blank",null]},"rel":{"type":"string","nullable":true,"maxLength":100},"class":{"nullable":true},"title":{"nullable":true}},"required":["href"],"additionalProperties":false}},"required":["type","attrs"],"additionalProperties":false}]},"maxItems":3}},"required":["type","text"],"additionalProperties":false},"maxItems":2000}},"required":["type"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"minItems":1,"maxItems":100}},"required":["type","content"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["type","content"],"additionalProperties":false}]},"maxItems":500}},"required":["type"],"additionalProperties":false},"slug":{"type":"string","maxLength":120},"kind":{"type":"string","nullable":true,"enum":["memo","checklist","example",null]},"author":{"type":"string","maxLength":120},"publicDate":{"type":"string","nullable":true,"format":"date"}},"required":["type","title","description","body","slug","kind","author","publicDate"],"additionalProperties":false}},"required":["material"],"additionalProperties":false}}}},"404":{"description":"Missing material","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Content temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/companies":{"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Company visibility settings","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["siberian-wellness","nl-international","greenway","ewa-product","vilavi","doterra","pm-international","avon","faberlic","oriflame","mary-kay","tupperware","atomy","tentorium"]},"name":{"type":"string","minLength":1,"maxLength":80},"logoPath":{"type":"string","pattern":"^\\/company-logos\\/[a-z-]+\\.svg$"},"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0}},"required":["id","name","logoPath","visible","version"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/companies/{companyId}":{"put":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["siberian-wellness","nl-international","greenway","ewa-product","vilavi","doterra","pm-international","avon","faberlic","oriflame","mary-kay","tupperware","atomy","tentorium"]},"required":true,"name":"companyId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0}},"required":["visible","version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved company visibility","content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"object","properties":{"id":{"type":"string","enum":["siberian-wellness","nl-international","greenway","ewa-product","vilavi","doterra","pm-international","avon","faberlic","oriflame","mary-kay","tupperware","atomy","tentorium"]},"name":{"type":"string","minLength":1,"maxLength":80},"logoPath":{"type":"string","pattern":"^\\/company-logos\\/[a-z-]+\\.svg$"},"visible":{"type":"boolean"},"version":{"type":"integer","minimum":0}},"required":["id","name","logoPath","visible","version"],"additionalProperties":false}},"required":["company"],"additionalProperties":false}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/content/companies":{"get":{"responses":{"200":{"description":"Visible companies","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["siberian-wellness","nl-international","greenway","ewa-product","vilavi","doterra","pm-international","avon","faberlic","oriflame","mary-kay","tupperware","atomy","tentorium"]},"name":{"type":"string","minLength":1,"maxLength":80},"logoPath":{"type":"string","pattern":"^\\/company-logos\\/[a-z-]+\\.svg$"}},"required":["id","name","logoPath"],"additionalProperties":false},"maxItems":14}},"required":["items"],"additionalProperties":false}}}},"503":{"description":"Request failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/uploads/avatar":{"post":{"security":[{"BearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/heic","image/heif"]},"byteSize":{"type":"integer","minimum":64,"maximum":5242880}},"required":["contentType","byteSize"],"additionalProperties":false}}}},"responses":{"201":{"description":"Presigned upload ticket for a new avatar","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"type":"object","properties":{"uploadId":{"type":"string","format":"uuid"},"method":{"type":"string","enum":["PUT"]},"url":{"type":"string","minLength":1,"maxLength":2048},"headers":{"type":"object","additionalProperties":{"type":"string"}},"contentLength":{"type":"integer","minimum":0,"exclusiveMinimum":true},"expiresAt":{"type":"string","format":"date-time"}},"required":["uploadId","method","url","headers","contentLength","expiresAt"],"additionalProperties":false}},"required":["upload"],"additionalProperties":false}}}},"400":{"description":"Invalid payload","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"File storage is disabled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"get":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"The current avatar, or null when there is none","content":{"application/json":{"schema":{"type":"object","properties":{"avatar":{"type":"object","nullable":true,"properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/heic","image/heif"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true},"updatedAt":{"type":"string","format":"date-time"},"downloadUrl":{"type":"string","minLength":1,"maxLength":2048},"downloadUrlExpiresAt":{"type":"string","format":"date-time"}},"required":["contentType","byteSize","updatedAt","downloadUrl","downloadUrlExpiresAt"],"additionalProperties":false}},"required":["avatar"],"additionalProperties":false}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"File storage is disabled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"delete":{"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Avatar removed; idempotent","content":{"application/json":{"schema":{"type":"object","properties":{"avatar":{"type":"object","nullable":true,"properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/heic","image/heif"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true},"updatedAt":{"type":"string","format":"date-time"},"downloadUrl":{"type":"string","minLength":1,"maxLength":2048},"downloadUrlExpiresAt":{"type":"string","format":"date-time"}},"required":["contentType","byteSize","updatedAt","downloadUrl","downloadUrlExpiresAt"],"additionalProperties":false}},"required":["avatar"],"additionalProperties":false}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"File storage is disabled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/uploads/avatar/{uploadId}/finalize":{"post":{"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"responses":{"200":{"description":"The stored avatar, now published","content":{"application/json":{"schema":{"type":"object","properties":{"avatar":{"type":"object","nullable":true,"properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/heic","image/heif"]},"byteSize":{"type":"integer","minimum":0,"exclusiveMinimum":true},"updatedAt":{"type":"string","format":"date-time"},"downloadUrl":{"type":"string","minLength":1,"maxLength":2048},"downloadUrlExpiresAt":{"type":"string","format":"date-time"}},"required":["contentType","byteSize","updatedAt","downloadUrl","downloadUrlExpiresAt"],"additionalProperties":false}},"required":["avatar"],"additionalProperties":false}}}},"400":{"description":"Invalid upload id","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Upload not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Upload incomplete or rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"410":{"description":"Upload window expired","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"File storage is disabled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/analytics/audience":{"get":{"tags":["Atlas audience"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Own removable audience profile and live permission","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"enabled":{"type":"boolean"},"aboutQuestions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["stage","company","tenure","team_size","source"]},"label":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["id","label","options"],"additionalProperties":false}},"permission":{"type":"object","nullable":true,"properties":{"revision":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time"}},"required":["revision","expiresAt"],"additionalProperties":false},"profile":{"type":"object","nullable":true,"properties":{"version":{"type":"integer","minimum":0},"values":{"type":"object","properties":{"stage":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"company":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"tenure":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"team_size":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"source":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"gender":{"type":"string","nullable":true,"enum":["male","female","refused",null]},"age":{"type":"string","nullable":true,"enum":["18-24","25-34","35-44","45-54","55-64","65+","refused",null]},"city":{"anyOf":[{"type":"string","enum":["refused"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":120}},"required":["text"],"additionalProperties":false},{"nullable":true}]}},"required":["gender","age","city"],"additionalProperties":false},"ageAnsweredAt":{"type":"string","nullable":true,"format":"date-time"},"aboutAnsweredAt":{"type":"string","nullable":true,"format":"date-time","default":null},"erasures":{"type":"object","properties":{"gender":{"type":"integer","minimum":0},"age":{"type":"integer","minimum":0},"city":{"type":"integer","minimum":0},"stage":{"type":"integer","minimum":0,"default":0},"company":{"type":"integer","minimum":0,"default":0},"tenure":{"type":"integer","minimum":0,"default":0},"team_size":{"type":"integer","minimum":0,"default":0},"source":{"type":"integer","minimum":0,"default":0}},"required":["gender","age","city"],"additionalProperties":false}},"required":["version","values","ageAnsweredAt","erasures"],"additionalProperties":false}},"required":["ownerId","enabled","permission","profile"],"additionalProperties":false}}}},"400":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"tags":["Atlas audience"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"block":{"type":"string","enum":["initial","about"],"default":"initial"},"commandId":{"type":"string","format":"uuid"},"atlasRevision":{"type":"string","nullable":true,"format":"uuid"},"eraseField":{"type":"string","enum":["gender","age","city","stage","company","tenure","team_size","source"]},"permissionRevision":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"values":{"type":"object","properties":{"stage":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"company":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"tenure":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"team_size":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"source":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"gender":{"type":"string","nullable":true,"enum":["male","female","refused",null]},"age":{"type":"string","nullable":true,"enum":["18-24","25-34","35-44","45-54","55-64","65+","refused",null]},"city":{"anyOf":[{"type":"string","enum":["refused"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":120}},"required":["text"],"additionalProperties":false},{"nullable":true}]}},"required":["gender","age","city"],"additionalProperties":false}},"required":["permissionRevision","version","values"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own removable audience profile and live permission","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"enabled":{"type":"boolean"},"aboutQuestions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["stage","company","tenure","team_size","source"]},"label":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["id","label","options"],"additionalProperties":false}},"permission":{"type":"object","nullable":true,"properties":{"revision":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time"}},"required":["revision","expiresAt"],"additionalProperties":false},"profile":{"type":"object","nullable":true,"properties":{"version":{"type":"integer","minimum":0},"values":{"type":"object","properties":{"stage":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"company":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"tenure":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"team_size":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"source":{"type":"string","nullable":true,"minLength":1,"maxLength":64,"default":null},"gender":{"type":"string","nullable":true,"enum":["male","female","refused",null]},"age":{"type":"string","nullable":true,"enum":["18-24","25-34","35-44","45-54","55-64","65+","refused",null]},"city":{"anyOf":[{"type":"string","enum":["refused"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":120}},"required":["text"],"additionalProperties":false},{"nullable":true}]}},"required":["gender","age","city"],"additionalProperties":false},"ageAnsweredAt":{"type":"string","nullable":true,"format":"date-time"},"aboutAnsweredAt":{"type":"string","nullable":true,"format":"date-time","default":null},"erasures":{"type":"object","properties":{"gender":{"type":"integer","minimum":0},"age":{"type":"integer","minimum":0},"city":{"type":"integer","minimum":0},"stage":{"type":"integer","minimum":0,"default":0},"company":{"type":"integer","minimum":0,"default":0},"tenure":{"type":"integer","minimum":0,"default":0},"team_size":{"type":"integer","minimum":0,"default":0},"source":{"type":"integer","minimum":0,"default":0}},"required":["gender","age","city"],"additionalProperties":false}},"required":["version","values","ageAnsweredAt","erasures"],"additionalProperties":false}},"required":["ownerId","enabled","permission","profile"],"additionalProperties":false}}}},"400":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Audience unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/quick":{"get":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Own latest attempt, without starting it","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"savedResultId":{"type":"string","nullable":true,"format":"uuid"},"attempt":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"resultId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","version","answers","startedAt","activityAt","resultId"],"additionalProperties":false}},"required":["ownerId","attempt"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"analyticsRevision":{"type":"string","nullable":true,"format":"uuid"},"intent":{"type":"string","enum":["save","start_new"]},"sourceResultId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"complete":{"type":"boolean"}},"required":["operationId","version","answers","complete"],"additionalProperties":false}}}},"responses":{"200":{"description":"Atomically saved answers and optional result","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"savedResultId":{"type":"string","nullable":true,"format":"uuid"},"attempt":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"resultId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","version","answers","startedAt","activityAt","resultId"],"additionalProperties":false}},"required":["ownerId","attempt"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/quick/catalog":{"get":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Questions from the verified v5 catalog","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"title":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"group":{"type":"string","enum":["main","more","main_last"]},"q2":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1}},"required":["id","label"],"additionalProperties":false}},"q3Title":{"type":"string"},"q3Options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1}},"required":["id","label"],"additionalProperties":false}}},"required":["id","label","group","q2","options","q3Title","q3Options"],"additionalProperties":false}}},"required":["version","title","topics"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/quick/results/{resultId}":{"get":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resultId","in":"path"}],"responses":{"200":{"description":"Immutable result with freshly checked material access","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"attemptId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"snapshot":{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"selection":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["single_step"]},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false}},"required":["mode","action"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["manual_probes"]},"ruleId":{"type":"string"},"title":{"type":"string"},"explanation":{"type":"string"},"completionCheck":{"type":"string"},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"probes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false}}},"required":["mode","ruleId","title","explanation","completionCheck","materialIds","probes"],"additionalProperties":false}]},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false}},"required":["catalogVersion","sourceVersions","answers","basis","guidance","selection","skillMap"],"additionalProperties":false},"materials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["article","library_description","track"]},"status":{"type":"string","enum":["available","missing","closed","read_error"]},"title":{"type":"string","nullable":true},"href":{"type":"string","nullable":true}},"required":["id","kind","status","title","href"],"additionalProperties":false},"maxItems":3}},"required":["id","ownerId","attemptId","createdAt","snapshot","materials"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/quick/current-step":{"get":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Explicit current step with fresh material availability","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"current":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"snapshot":{"oneOf":[{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false}},"required":["catalogVersion","sourceVersions","answers","basis","guidance","skillMap","source","sourceResultId","action"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","topic"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["repeat"]},"originAttemptId":{"type":"string","format":"uuid"},"provenance":{"oneOf":[{"type":"object","properties":{"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"}},"required":["answers","basis","guidance","source","sourceResultId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["source","originAttemptId","topic"],"additionalProperties":false}]}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","provenance"],"additionalProperties":false}]},"feedback":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"},"lastOperationId":{"type":"string","nullable":true,"format":"uuid"}},"required":["version","value","updatedAt","lastOperationId"],"additionalProperties":false}},"required":["id","ownerId","createdAt","snapshot","feedback"],"additionalProperties":false},"materials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["article","library_description","track"]},"status":{"type":"string","enum":["available","missing","closed","read_error"]},"title":{"type":"string","nullable":true},"href":{"type":"string","nullable":true}},"required":["id","kind","status","title","href"],"additionalProperties":false},"maxItems":3}},"required":["ownerId","version","current","materials"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"analyticsRevision":{"type":"string","nullable":true,"format":"uuid"},"version":{"type":"integer","minimum":0},"sourceResultId":{"type":"string","format":"uuid"},"probeId":{"type":"string","minLength":1,"maxLength":100},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"},"skillCatalogVersion":{"type":"string","minLength":1,"maxLength":100},"repeatAttemptId":{"type":"string","format":"uuid"},"originAttemptId":{"type":"string","format":"uuid"},"originFeedbackVersion":{"type":"integer","minimum":0,"exclusiveMinimum":true},"nextCatalogVersion":{"type":"string","minLength":1,"maxLength":100},"replace":{"type":"boolean"}},"required":["operationId","version","replace"],"additionalProperties":false}}}},"responses":{"200":{"description":"Original acceptance outcome; read current pointer separately","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"operationId":{"type":"string","format":"uuid"},"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"snapshot":{"oneOf":[{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false}},"required":["catalogVersion","sourceVersions","answers","basis","guidance","skillMap","source","sourceResultId","action"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","topic"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["repeat"]},"originAttemptId":{"type":"string","format":"uuid"},"provenance":{"oneOf":[{"type":"object","properties":{"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"}},"required":["answers","basis","guidance","source","sourceResultId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["source","originAttemptId","topic"],"additionalProperties":false}]}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","provenance"],"additionalProperties":false}]},"feedback":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"},"lastOperationId":{"type":"string","nullable":true,"format":"uuid"}},"required":["version","value","updatedAt","lastOperationId"],"additionalProperties":false}},"required":["id","ownerId","createdAt","snapshot","feedback"],"additionalProperties":false},"created":{"type":"boolean"}},"required":["ownerId","operationId","attempt","created"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/quick/action-attempts/{attemptId}":{"get":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"responses":{"200":{"description":"Own action, feedback and freshly resolved continuation","content":{"application/json":{"schema":{"type":"object","properties":{"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"snapshot":{"oneOf":[{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false}},"required":["catalogVersion","sourceVersions","answers","basis","guidance","skillMap","source","sourceResultId","action"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","topic"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["repeat"]},"originAttemptId":{"type":"string","format":"uuid"},"provenance":{"oneOf":[{"type":"object","properties":{"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"}},"required":["answers","basis","guidance","source","sourceResultId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["source","originAttemptId","topic"],"additionalProperties":false}]}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","provenance"],"additionalProperties":false}]},"feedback":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"},"lastOperationId":{"type":"string","nullable":true,"format":"uuid"}},"required":["version","value","updatedAt","lastOperationId"],"additionalProperties":false}},"required":["id","ownerId","createdAt","snapshot","feedback"],"additionalProperties":false},"materials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["article","library_description","track"]},"status":{"type":"string","enum":["available","missing","closed","read_error"]},"title":{"type":"string","nullable":true},"href":{"type":"string","nullable":true}},"required":["id","kind","status","title","href"],"additionalProperties":false},"maxItems":3},"nextOffer":{"type":"object","nullable":true,"properties":{"originAttemptId":{"type":"string","format":"uuid"},"feedbackVersion":{"type":"integer","minimum":0,"exclusiveMinimum":true},"catalogVersion":{"type":"string"},"topic":{"type":"string"},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"materials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["article","library_description","track"]},"status":{"type":"string","enum":["available","missing","closed","read_error"]},"title":{"type":"string","nullable":true},"href":{"type":"string","nullable":true}},"required":["id","kind","status","title","href"],"additionalProperties":false},"maxItems":3}},"required":["originAttemptId","feedbackVersion","catalogVersion","topic","action","materials"],"additionalProperties":false},"supportUrl":{"type":"string","nullable":true}},"required":["attempt","materials","nextOffer","supportUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/quick/action-attempts/{attemptId}/feedback":{"put":{"tags":["Atlas quick"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"analyticsRevision":{"type":"string","nullable":true,"format":"uuid"},"version":{"type":"integer","minimum":0},"value":{"type":"string","enum":["succeeded","need_help","not_tried"]}},"required":["operationId","version","value"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved feedback for the same own attempt","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"snapshot":{"oneOf":[{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false}},"required":["catalogVersion","sourceVersions","answers","basis","guidance","skillMap","source","sourceResultId","action"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","topic"],"additionalProperties":false},{"type":"object","properties":{"catalogVersion":{"type":"string"},"sourceVersions":{"type":"object","additionalProperties":{"type":"string"}},"skillMap":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false},"source":{"type":"string","enum":["repeat"]},"originAttemptId":{"type":"string","format":"uuid"},"provenance":{"oneOf":[{"type":"object","properties":{"answers":{"type":"object","properties":{"topicId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"optionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"q3Id":{"type":"string","nullable":true,"minLength":1,"maxLength":80}},"required":["topicId","optionId","q3Id"],"additionalProperties":false},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"instruction":{"type":"string"},"label_short":{"type":"string"}},"required":["id","label","instruction","label_short"],"additionalProperties":false},"source":{"type":"string","enum":["quick_result"]},"sourceResultId":{"type":"string","format":"uuid"}},"required":["answers","basis","guidance","source","sourceResultId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["skill_map"]},"sourceSkillId":{"type":"string"}},"required":["source","sourceSkillId"],"additionalProperties":false},{"type":"object","properties":{"source":{"type":"string","enum":["next_step"]},"originAttemptId":{"type":"string","format":"uuid"},"topic":{"type":"string"}},"required":["source","originAttemptId","topic"],"additionalProperties":false}]}},"required":["catalogVersion","sourceVersions","skillMap","action","source","originAttemptId","provenance"],"additionalProperties":false}]},"feedback":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"},"lastOperationId":{"type":"string","nullable":true,"format":"uuid"}},"required":["version","value","updatedAt","lastOperationId"],"additionalProperties":false}},"required":["id","ownerId","createdAt","snapshot","feedback"],"additionalProperties":false}}}},"400":{"description":"Invalid answer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version or operation conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/legacy":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Lossless owner-only frozen legacy draft and latest result","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["unstarted","draft","confirmed","changes"]},"draft":{"type":"object","nullable":true,"properties":{"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"answers":{"type":"object","additionalProperties":{}}},"required":["version","answers"],"additionalProperties":false},"latestResult":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"confirmedAt":{"type":"string","format":"date-time"},"task":{"type":"string"},"directionTitle":{"type":"string"}},"required":["id","confirmedAt","task","directionTitle"],"additionalProperties":false}},"required":["ownerId","status","draft","latestResult"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/skills-map":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Independent current v5 skills transferred once","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"tags":["Atlas skills map"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"analyticsRevision":{"type":"string","nullable":true,"format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"changes":{"type":"object","properties":{"directionId":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","unknown",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","with_help","independent_typical","repeated_independent",null]}},"additionalProperties":false}}},"additionalProperties":false}},"required":["operationId","version","changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Atomic partial map save","content":{"application/json":{"schema":{"type":"object","properties":{"map":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"lastOperationId":{"type":"string","nullable":true,"format":"uuid"}},"required":["map","lastOperationId"],"additionalProperties":false}}}},"400":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/achievement":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Own achievement from the earliest saved Atlas result","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"achievement":{"type":"object","nullable":true,"properties":{"kind":{"type":"string","enum":["legacy_result","quick_result"]},"resultId":{"type":"string","format":"uuid"},"obtainedAt":{"type":"string","format":"date-time"}},"required":["kind","resultId","obtainedAt"],"additionalProperties":false}},"required":["ownerId","achievement"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/history":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^(legacy_result|quick_result|action_attempt):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","enum":["true"]},"required":false,"name":"includeSourceResult","in":"query"}],"responses":{"200":{"description":"Bounded own results and action attempts","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"kind":{"type":"string","enum":["legacy_result"]}},"required":["id","createdAt","title","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"kind":{"type":"string","enum":["quick_result"]}},"required":["id","createdAt","title","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"kind":{"type":"string","enum":["action_attempt"]},"source":{"type":"string","enum":["quick_result","skill_map","next_step","repeat"]},"sourceResultId":{"type":"string","format":"uuid"},"feedback":{"type":"object","properties":{"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["value","updatedAt"],"additionalProperties":false}},"required":["id","createdAt","title","kind","source","feedback"],"additionalProperties":false}]},"maxItems":20},"nextCursor":{"type":"string","nullable":true,"pattern":"^(legacy_result|quick_result|action_attempt):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["ownerId","items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own cursor not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/summary":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Literal active answers and viewed versions","content":{"application/json":{"schema":{"type":"object","properties":{"draftVersion":{"type":"integer","minimum":0},"definition":{"type":"object","properties":{"questionnaireVersion":{"type":"string","minLength":1,"maxLength":80},"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"templateVersion":{"type":"string","minLength":1,"maxLength":80}},"required":["questionnaireVersion","catalogVersion","templateVersion"],"additionalProperties":false},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"required":["interest","experience"],"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"required":["currentSituation","goalId","blockerId","task","expectedOutcome","purpose","addressee","scope","experienceBranch","exampleAction","exampleOutcome","help","taskSource","directionId","skills","priorities"],"additionalProperties":false},"contextReviewRequired":{"type":"boolean"},"completion":{"type":"object","properties":{"start":{"type":"boolean"},"context":{"type":"boolean"},"direction":{"type":"boolean"},"completedSkills":{"type":"integer","minimum":0,"maximum":8},"evaluatedSkills":{"type":"integer","minimum":0,"maximum":8},"priorities":{"type":"boolean"},"skills":{"type":"boolean"}},"required":["start","context","direction","completedSkills","evaluatedSkills","priorities","skills"],"additionalProperties":false},"complete":{"type":"boolean"},"start":{"type":"object","properties":{"situation":{"type":"string"},"goal":{"type":"string"},"blocker":{"type":"string"}},"required":["situation","goal","blocker"],"additionalProperties":false},"context":{"type":"object","properties":{"addressee":{"type":"string"},"scope":{"type":"string"},"experience":{"type":"string"},"help":{"type":"string","nullable":true},"source":{"type":"string","nullable":true}},"required":["addressee","scope","experience","help","source"],"additionalProperties":false},"direction":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"boundaries":{"type":"string"},"applications":{"type":"string"},"outsideNetwork":{"type":"string"}},"required":["title","boundaries","applications","outsideNetwork"],"additionalProperties":false},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[stpblruid][1-8]$"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8},"groups":{"type":"object","properties":{"supports":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"develop":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"deepen":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknown":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknownContext":{"type":"array","items":{"type":"string"}}},"required":["supports","develop","deepen","unknown","unknownContext"],"additionalProperties":false}},"required":["draftVersion","definition","answers","contextReviewRequired","completion","complete","start","context","direction","skills","groups"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/confirm":{"post":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"questionnaireVersion":{"type":"string","minLength":1,"maxLength":80},"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"templateVersion":{"type":"string","minLength":1,"maxLength":80},"draftVersion":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":2147483646}},"required":["questionnaireVersion","catalogVersion","templateVersion","draftVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Immutable own result","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"confirmedAt":{"type":"string","format":"date-time"},"summary":{"type":"object","properties":{"draftVersion":{"type":"integer","minimum":0},"definition":{"type":"object","properties":{"questionnaireVersion":{"type":"string","minLength":1,"maxLength":80},"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"templateVersion":{"type":"string","minLength":1,"maxLength":80}},"required":["questionnaireVersion","catalogVersion","templateVersion"],"additionalProperties":false},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"required":["interest","experience"],"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"required":["currentSituation","goalId","blockerId","task","expectedOutcome","purpose","addressee","scope","experienceBranch","exampleAction","exampleOutcome","help","taskSource","directionId","skills","priorities"],"additionalProperties":false},"contextReviewRequired":{"type":"boolean"},"completion":{"type":"object","properties":{"start":{"type":"boolean"},"context":{"type":"boolean"},"direction":{"type":"boolean"},"completedSkills":{"type":"integer","minimum":0,"maximum":8},"evaluatedSkills":{"type":"integer","minimum":0,"maximum":8},"priorities":{"type":"boolean"},"skills":{"type":"boolean"}},"required":["start","context","direction","completedSkills","evaluatedSkills","priorities","skills"],"additionalProperties":false},"complete":{"type":"boolean"},"start":{"type":"object","properties":{"situation":{"type":"string"},"goal":{"type":"string"},"blocker":{"type":"string"}},"required":["situation","goal","blocker"],"additionalProperties":false},"context":{"type":"object","properties":{"addressee":{"type":"string"},"scope":{"type":"string"},"experience":{"type":"string"},"help":{"type":"string","nullable":true},"source":{"type":"string","nullable":true}},"required":["addressee","scope","experience","help","source"],"additionalProperties":false},"direction":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"boundaries":{"type":"string"},"applications":{"type":"string"},"outsideNetwork":{"type":"string"}},"required":["title","boundaries","applications","outsideNetwork"],"additionalProperties":false},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[stpblruid][1-8]$"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8},"groups":{"type":"object","properties":{"supports":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"develop":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"deepen":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknown":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknownContext":{"type":"array","items":{"type":"string"}}},"required":["supports","develop","deepen","unknown","unknownContext"],"additionalProperties":false}},"required":["draftVersion","definition","answers","contextReviewRequired","completion","complete","start","context","direction","skills","groups"],"additionalProperties":false}},"required":["id","ownerId","confirmedAt","summary"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/results/{resultId}":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resultId","in":"path"}],"responses":{"200":{"description":"Immutable own result","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"confirmedAt":{"type":"string","format":"date-time"},"summary":{"type":"object","properties":{"draftVersion":{"type":"integer","minimum":0},"definition":{"type":"object","properties":{"questionnaireVersion":{"type":"string","minLength":1,"maxLength":80},"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"templateVersion":{"type":"string","minLength":1,"maxLength":80}},"required":["questionnaireVersion","catalogVersion","templateVersion"],"additionalProperties":false},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"required":["interest","experience"],"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"required":["currentSituation","goalId","blockerId","task","expectedOutcome","purpose","addressee","scope","experienceBranch","exampleAction","exampleOutcome","help","taskSource","directionId","skills","priorities"],"additionalProperties":false},"contextReviewRequired":{"type":"boolean"},"completion":{"type":"object","properties":{"start":{"type":"boolean"},"context":{"type":"boolean"},"direction":{"type":"boolean"},"completedSkills":{"type":"integer","minimum":0,"maximum":8},"evaluatedSkills":{"type":"integer","minimum":0,"maximum":8},"priorities":{"type":"boolean"},"skills":{"type":"boolean"}},"required":["start","context","direction","completedSkills","evaluatedSkills","priorities","skills"],"additionalProperties":false},"complete":{"type":"boolean"},"start":{"type":"object","properties":{"situation":{"type":"string"},"goal":{"type":"string"},"blocker":{"type":"string"}},"required":["situation","goal","blocker"],"additionalProperties":false},"context":{"type":"object","properties":{"addressee":{"type":"string"},"scope":{"type":"string"},"experience":{"type":"string"},"help":{"type":"string","nullable":true},"source":{"type":"string","nullable":true}},"required":["addressee","scope","experience","help","source"],"additionalProperties":false},"direction":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"boundaries":{"type":"string"},"applications":{"type":"string"},"outsideNetwork":{"type":"string"}},"required":["title","boundaries","applications","outsideNetwork"],"additionalProperties":false},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[stpblruid][1-8]$"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8},"groups":{"type":"object","properties":{"supports":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"develop":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"deepen":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknown":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknownContext":{"type":"array","items":{"type":"string"}}},"required":["supports","develop","deepen","unknown","unknownContext"],"additionalProperties":false}},"required":["draftVersion","definition","answers","contextReviewRequired","completion","complete","start","context","direction","skills","groups"],"additionalProperties":false}},"required":["id","ownerId","confirmedAt","summary"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/results/{resultId}/pdf":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resultId","in":"path"}],"responses":{"200":{"description":"Private PDF of the selected immutable result","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"PDF budget exhausted; retry after the response delay","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"PDF renderer busy or timed out; retry after the response delay","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/catalog":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Versioned Atlas catalogue","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","minLength":1},"directions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[stpblruid]$"},"title":{"type":"string","minLength":1},"whenToChoose":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"applications":{"type":"string","minLength":1},"boundaries":{"type":"string","minLength":1},"outsideNetwork":{"type":"string","minLength":1},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[stpblruid][1-8]$"},"title":{"type":"string","minLength":1},"action":{"type":"string","minLength":5,"maxLength":240},"result":{"type":"string","minLength":5,"maxLength":240}},"required":["id","title","action","result"],"additionalProperties":false}}},"required":["id","title","whenToChoose","purpose","applications","boundaries","outsideNetwork","skills"],"additionalProperties":false}}},"required":["version","directions"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/draft":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Own current draft","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"overview":{"type":"object","properties":{"status":{"type":"string","enum":["unstarted","draft","confirmed","changes"]},"latestResult":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"confirmedAt":{"type":"string","format":"date-time"},"task":{"type":"string"},"directionTitle":{"type":"string"}},"required":["id","confirmedAt","task","directionTitle"],"additionalProperties":false}},"required":["status","latestResult"],"additionalProperties":false},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"required":["interest","experience"],"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"required":["currentSituation","goalId","blockerId","task","expectedOutcome","purpose","addressee","scope","experienceBranch","exampleAction","exampleOutcome","help","taskSource","directionId","skills","priorities"],"additionalProperties":false},"contextReviewRequired":{"type":"boolean"},"completion":{"type":"object","properties":{"start":{"type":"boolean"},"context":{"type":"boolean"},"direction":{"type":"boolean"},"completedSkills":{"type":"integer","minimum":0,"maximum":8},"evaluatedSkills":{"type":"integer","minimum":0,"maximum":8},"priorities":{"type":"boolean"},"skills":{"type":"boolean"}},"required":["start","context","direction","completedSkills","evaluatedSkills","priorities","skills"],"additionalProperties":false},"nextPart":{"type":"string","enum":["start","context","direction","skills","confirmation"]}},"required":["ownerId","version","overview","answers","contextReviewRequired","completion","nextPart"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"maximum":2147483646},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"additionalProperties":false},"completeContext":{"type":"boolean"},"completeSkills":{"type":"boolean"}},"required":["version","answers"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own current draft","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"overview":{"type":"object","properties":{"status":{"type":"string","enum":["unstarted","draft","confirmed","changes"]},"latestResult":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"confirmedAt":{"type":"string","format":"date-time"},"task":{"type":"string"},"directionTitle":{"type":"string"}},"required":["id","confirmedAt","task","directionTitle"],"additionalProperties":false}},"required":["status","latestResult"],"additionalProperties":false},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"required":["interest","experience"],"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"required":["currentSituation","goalId","blockerId","task","expectedOutcome","purpose","addressee","scope","experienceBranch","exampleAction","exampleOutcome","help","taskSource","directionId","skills","priorities"],"additionalProperties":false},"contextReviewRequired":{"type":"boolean"},"completion":{"type":"object","properties":{"start":{"type":"boolean"},"context":{"type":"boolean"},"direction":{"type":"boolean"},"completedSkills":{"type":"integer","minimum":0,"maximum":8},"evaluatedSkills":{"type":"integer","minimum":0,"maximum":8},"priorities":{"type":"boolean"},"skills":{"type":"boolean"}},"required":["start","context","direction","completedSkills","evaluatedSkills","priorities","skills"],"additionalProperties":false},"nextPart":{"type":"string","enum":["start","context","direction","skills","confirmation"]}},"required":["ownerId","version","overview","answers","contextReviewRequired","completion","nextPart"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/skills-map/state":{"get":{"tags":["Atlas skills map"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Current map and latest delivery identity","content":{"application/json":{"schema":{"type":"object","properties":{"map":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"legacyDraftVersion":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true},"directionId":{"type":"string","nullable":true},"skills":{"type":"object","additionalProperties":{}},"priorities":{"type":"array","items":{"type":"string"}}},"required":["ownerId","version","legacyDraftVersion","directionId","skills","priorities"],"additionalProperties":false},"lastOperationId":{"type":"string","nullable":true,"format":"uuid"}},"required":["map","lastOperationId"],"additionalProperties":false}}}},"400":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/skills-map/catalog":{"get":{"tags":["Atlas skills map"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"All verified directions and skills","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"skillIds":{"type":"array","items":{"type":"string"}}},"required":["id","title","description","skillIds"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"profileId":{"type":"string"},"title":{"type":"string"},"hint":{"type":"string"},"sourceCan":{"type":"string"},"sourceProof":{"type":"string"},"action":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"},"skillId":{"type":"string","nullable":true},"directionId":{"type":"string","nullable":true},"materialIds":{"type":"array","items":{"type":"string"},"maxItems":3},"nextRuleId":{"type":"string","nullable":true}},"required":["id","title","action","completionCheck","skillId","directionId","materialIds","nextRuleId"],"additionalProperties":false}},"required":["id","profileId","title","hint","sourceCan","sourceProof","action"],"additionalProperties":false}}},"required":["version","profiles","skills"],"additionalProperties":false}}}},"400":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Map unavailable or write rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/atlas/pdf":{"post":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["quick_result","action_attempt"]},"id":{"type":"string","format":"uuid"},"composition":{"type":"string","enum":["current","historical"]},"operationId":{"type":"string","format":"uuid"},"analyticsRevision":{"type":"string","nullable":true,"format":"uuid"}},"required":["kind","id","composition"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["skills_map"]},"composition":{"type":"string","enum":["current"]},"operationId":{"type":"string","format":"uuid"},"analyticsRevision":{"type":"string","nullable":true,"format":"uuid"}},"required":["kind","composition"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Private saved map or first-step PDF for the explicit source","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid source","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Own source not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"PDF budget exhausted; Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Renderer busy, timed out or source changed; Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/users/{userId}/atlas":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"}],"responses":{"200":{"description":"Selected current active Atlas","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["unstarted","draft","confirmed","changes","result","step","map"]},"summary":{"type":"object","nullable":true,"properties":{"draftVersion":{"type":"integer","minimum":0},"definition":{"type":"object","properties":{"questionnaireVersion":{"type":"string","minLength":1,"maxLength":80},"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"templateVersion":{"type":"string","minLength":1,"maxLength":80}},"required":["questionnaireVersion","catalogVersion","templateVersion"],"additionalProperties":false},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"required":["interest","experience"],"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"required":["currentSituation","goalId","blockerId","task","expectedOutcome","purpose","addressee","scope","experienceBranch","exampleAction","exampleOutcome","help","taskSource","directionId","skills","priorities"],"additionalProperties":false},"contextReviewRequired":{"type":"boolean"},"completion":{"type":"object","properties":{"start":{"type":"boolean"},"context":{"type":"boolean"},"direction":{"type":"boolean"},"completedSkills":{"type":"integer","minimum":0,"maximum":8},"evaluatedSkills":{"type":"integer","minimum":0,"maximum":8},"priorities":{"type":"boolean"},"skills":{"type":"boolean"}},"required":["start","context","direction","completedSkills","evaluatedSkills","priorities","skills"],"additionalProperties":false},"complete":{"type":"boolean"},"start":{"type":"object","properties":{"situation":{"type":"string"},"goal":{"type":"string"},"blocker":{"type":"string"}},"required":["situation","goal","blocker"],"additionalProperties":false},"context":{"type":"object","properties":{"addressee":{"type":"string"},"scope":{"type":"string"},"experience":{"type":"string"},"help":{"type":"string","nullable":true},"source":{"type":"string","nullable":true}},"required":["addressee","scope","experience","help","source"],"additionalProperties":false},"direction":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"boundaries":{"type":"string"},"applications":{"type":"string"},"outsideNetwork":{"type":"string"}},"required":["title","boundaries","applications","outsideNetwork"],"additionalProperties":false},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[stpblruid][1-8]$"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8},"groups":{"type":"object","properties":{"supports":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"develop":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"deepen":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknown":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknownContext":{"type":"array","items":{"type":"string"}}},"required":["supports","develop","deepen","unknown","unknownContext"],"additionalProperties":false}},"required":["draftVersion","definition","answers","contextReviewRequired","completion","complete","start","context","direction","skills","groups"],"additionalProperties":false},"legacyAnswers":{"type":"object","nullable":true,"properties":{"start":{"type":"object","properties":{"situation":{"type":"string"},"goal":{"type":"string"},"blocker":{"type":"string"}},"required":["situation","goal","blocker"],"additionalProperties":false},"context":{"type":"object","properties":{"addressee":{"type":"string"},"scope":{"type":"string"},"experience":{"type":"string"},"help":{"type":"string","nullable":true},"source":{"type":"string","nullable":true}},"required":["addressee","scope","experience","help","source"],"additionalProperties":false},"answers":{"type":"object","properties":{"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500}},"required":["task","expectedOutcome","purpose","experienceBranch","exampleAction","exampleOutcome"],"additionalProperties":false}},"required":["start","context","answers"],"additionalProperties":false},"currentStep":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["quick_result","skill_map","next_step","repeat"]},"originalSource":{"type":"string","nullable":true,"enum":["quick_result","skill_map","next_step",null]},"action":{"type":"object","properties":{"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"}},"required":["title","action","completionCheck"],"additionalProperties":false},"basis":{"type":"object","nullable":true,"properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","nullable":true,"properties":{"label":{"type":"string"},"instruction":{"type":"string"}},"required":["label","instruction"],"additionalProperties":false},"feedback":{"type":"object","properties":{"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["value","updatedAt"],"additionalProperties":false}},"required":["id","ownerId","createdAt","source","originalSource","action","basis","guidance","feedback"],"additionalProperties":false},"latestResult":{"type":"object","nullable":true,"properties":{"kind":{"type":"string","enum":["quick_result"]},"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"label":{"type":"string"},"instruction":{"type":"string"}},"required":["label","instruction"],"additionalProperties":false},"selection":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["single_step"]},"action":{"type":"object","properties":{"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"}},"required":["title","action","completionCheck"],"additionalProperties":false}},"required":["mode","action"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["manual_probes"]},"title":{"type":"string"},"explanation":{"type":"string"},"completionCheck":{"type":"string"},"probes":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"}},"required":["title","action","completionCheck"],"additionalProperties":false}}},"required":["mode","title","explanation","completionCheck","probes"],"additionalProperties":false}]}},"required":["kind","id","ownerId","createdAt","basis","guidance","selection"],"additionalProperties":false},"skillMap":{"type":"object","nullable":true,"properties":{"directionId":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8}},"required":["directionId","title","skills"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email"},"displayName":{"type":"string","nullable":true},"role":{"type":"string","enum":["user","admin"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","email","displayName","role","createdAt"],"additionalProperties":false}},"required":["status","summary","legacyAnswers","currentStep","latestResult","skillMap","user"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Selected user or result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/users/{userId}/atlas/history":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"},{"schema":{"type":"string","pattern":"^(?:(?:legacy_result|quick_result|action_attempt):)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":false,"name":"cursor","in":"query"}],"responses":{"200":{"description":"Bounded selected immutable history","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"kind":{"type":"string","enum":["legacy_result"]}},"required":["id","createdAt","title","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"kind":{"type":"string","enum":["quick_result"]}},"required":["id","createdAt","title","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"kind":{"type":"string","enum":["action_attempt"]},"source":{"type":"string","enum":["quick_result","skill_map","next_step","repeat"]},"sourceResultId":{"type":"string","format":"uuid"},"feedback":{"type":"object","properties":{"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["value","updatedAt"],"additionalProperties":false}},"required":["id","createdAt","title","kind","source","feedback"],"additionalProperties":false}]},"maxItems":20},"nextCursor":{"type":"string","nullable":true,"pattern":"^(legacy_result|quick_result|action_attempt):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["ownerId","items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Selected user or result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/admin/users/{userId}/atlas/results/{resultId}":{"get":{"tags":["Atlas"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"},{"schema":{"type":"string","pattern":"^(?:(?:legacy_result|quick_result|action_attempt):)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"name":"resultId","in":"path"}],"responses":{"200":{"description":"Selected immutable report","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"confirmedAt":{"type":"string","format":"date-time"},"summary":{"type":"object","properties":{"draftVersion":{"type":"integer","minimum":0},"definition":{"type":"object","properties":{"questionnaireVersion":{"type":"string","minLength":1,"maxLength":80},"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"templateVersion":{"type":"string","minLength":1,"maxLength":80}},"required":["questionnaireVersion","catalogVersion","templateVersion"],"additionalProperties":false},"answers":{"type":"object","properties":{"currentSituation":{"type":"string","nullable":true,"enum":["exploring","starting","client_practice","mentoring","team_work","returning","undecided",null]},"goalId":{"type":"string","nullable":true,"enum":["sales","service","teaching","events","business","mentoring","team","brand","public","innovation","digital","undecided",null]},"blockerId":{"type":"string","nullable":true,"enum":["unclear_next_step","conversation","follow_through","teach_others","rhythm","tools","evidence","time","no_blocker","unknown",null]},"task":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"expectedOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"purpose":{"type":"string","nullable":true,"minLength":5,"maxLength":240},"addressee":{"type":"string","nullable":true,"enum":["self","clients","newcomers","team","outside_network","unknown",null]},"scope":{"type":"string","nullable":true,"enum":["self","process","teach","system","unknown",null]},"experienceBranch":{"type":"string","nullable":true,"enum":["has_example","not_tried","cannot_recall","prefer_not_to_describe",null]},"exampleAction":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"exampleOutcome":{"type":"string","nullable":true,"minLength":5,"maxLength":500},"help":{"type":"string","nullable":true,"enum":["independently","hint","review","unknown",null]},"taskSource":{"type":"object","nullable":true,"properties":{"catalogVersion":{"type":"string","minLength":1,"maxLength":80},"skillId":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"required":["catalogVersion","skillId"],"additionalProperties":false},"directionId":{"type":"string","nullable":true,"enum":["s","t","p","b","l","r","u","i","d",null]},"skills":{"type":"object","additionalProperties":{"type":"object","properties":{"interest":{"type":"string","nullable":true,"enum":["want","not_now","undecided",null]},"experience":{"type":"string","nullable":true,"enum":["unknown","not_tried","help","familiar","varied",null]}},"required":["interest","experience"],"additionalProperties":false}},"priorities":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"},"maxItems":3}},"required":["currentSituation","goalId","blockerId","task","expectedOutcome","purpose","addressee","scope","experienceBranch","exampleAction","exampleOutcome","help","taskSource","directionId","skills","priorities"],"additionalProperties":false},"contextReviewRequired":{"type":"boolean"},"completion":{"type":"object","properties":{"start":{"type":"boolean"},"context":{"type":"boolean"},"direction":{"type":"boolean"},"completedSkills":{"type":"integer","minimum":0,"maximum":8},"evaluatedSkills":{"type":"integer","minimum":0,"maximum":8},"priorities":{"type":"boolean"},"skills":{"type":"boolean"}},"required":["start","context","direction","completedSkills","evaluatedSkills","priorities","skills"],"additionalProperties":false},"complete":{"type":"boolean"},"start":{"type":"object","properties":{"situation":{"type":"string"},"goal":{"type":"string"},"blocker":{"type":"string"}},"required":["situation","goal","blocker"],"additionalProperties":false},"context":{"type":"object","properties":{"addressee":{"type":"string"},"scope":{"type":"string"},"experience":{"type":"string"},"help":{"type":"string","nullable":true},"source":{"type":"string","nullable":true}},"required":["addressee","scope","experience","help","source"],"additionalProperties":false},"direction":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"boundaries":{"type":"string"},"applications":{"type":"string"},"outsideNetwork":{"type":"string"}},"required":["title","boundaries","applications","outsideNetwork"],"additionalProperties":false},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[stpblruid][1-8]$"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8},"groups":{"type":"object","properties":{"supports":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"develop":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"deepen":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknown":{"type":"array","items":{"type":"string","pattern":"^[stpblruid][1-8]$"}},"unknownContext":{"type":"array","items":{"type":"string"}}},"required":["supports","develop","deepen","unknown","unknownContext"],"additionalProperties":false}},"required":["draftVersion","definition","answers","contextReviewRequired","completion","complete","start","context","direction","skills","groups"],"additionalProperties":false}},"required":["id","ownerId","confirmedAt","summary"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["quick_result"]},"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"basis":{"type":"object","properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","properties":{"label":{"type":"string"},"instruction":{"type":"string"}},"required":["label","instruction"],"additionalProperties":false},"selection":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["single_step"]},"action":{"type":"object","properties":{"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"}},"required":["title","action","completionCheck"],"additionalProperties":false}},"required":["mode","action"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["manual_probes"]},"title":{"type":"string"},"explanation":{"type":"string"},"completionCheck":{"type":"string"},"probes":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"}},"required":["title","action","completionCheck"],"additionalProperties":false}}},"required":["mode","title","explanation","completionCheck","probes"],"additionalProperties":false}]},"skillMap":{"type":"object","properties":{"directionId":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8}},"required":["directionId","title","skills"],"additionalProperties":false}},"required":["kind","id","ownerId","createdAt","basis","guidance","selection","skillMap"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["quick_result","skill_map","next_step","repeat"]},"originalSource":{"type":"string","nullable":true,"enum":["quick_result","skill_map","next_step",null]},"action":{"type":"object","properties":{"title":{"type":"string"},"action":{"type":"string"},"completionCheck":{"type":"string"}},"required":["title","action","completionCheck"],"additionalProperties":false},"basis":{"type":"object","nullable":true,"properties":{"topic":{"type":"string"},"difficulty":{"type":"string"},"experience":{"type":"string"}},"required":["topic","difficulty","experience"],"additionalProperties":false},"guidance":{"type":"object","nullable":true,"properties":{"label":{"type":"string"},"instruction":{"type":"string"}},"required":["label","instruction"],"additionalProperties":false},"skillMap":{"type":"object","properties":{"directionId":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"interest":{"type":"string"},"experience":{"type":"string"}},"required":["id","title","interest","experience"],"additionalProperties":false},"maxItems":8}},"required":["directionId","title","skills"],"additionalProperties":false},"feedback":{"type":"object","properties":{"value":{"type":"string","nullable":true,"enum":["succeeded","need_help","not_tried",null]},"updatedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["value","updatedAt"],"additionalProperties":false},"kind":{"type":"string","enum":["action_attempt"]}},"required":["id","ownerId","createdAt","source","originalSource","action","basis","guidance","skillMap","feedback","kind"],"additionalProperties":false}]}}}},"400":{"description":"Invalid answer or prohibited clearing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Selected user or result not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Stale version; read current answers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-001/game":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"}],"responses":{"200":{"description":"Own game overview","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"resumeAttemptId":{"type":"string","nullable":true,"format":"uuid"},"completedConversations":{"type":"integer","minimum":0,"maximum":3},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"scenarios":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"name":{"type":"string"},"initials":{"type":"string"},"subtitle":{"type":"string"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"activeAttemptId":{"type":"string","nullable":true,"format":"uuid"},"completedAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","name","initials","subtitle","completedAt","activeAttemptId","completedAttemptId"],"additionalProperties":false}},"attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scenarioId":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"scenarioVersion":{"type":"string"},"status":{"type":"string","enum":["active","completed","abandoned"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"endingTitle":{"type":"string","nullable":true},"parentAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","scenarioId","scenarioVersion","status","version","startedAt","activityAt","completedAt","endingTitle","parentAttemptId"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true,"format":"uuid"}},"required":["ownerId","access","resumeAttemptId","completedConversations","completedAt","scenarios","attempts","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-001/result":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"}],"responses":{"200":{"description":"Own game overview","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"resumeAttemptId":{"type":"string","nullable":true,"format":"uuid"},"completedConversations":{"type":"integer","minimum":0,"maximum":3},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"scenarios":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"name":{"type":"string"},"initials":{"type":"string"},"subtitle":{"type":"string"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"activeAttemptId":{"type":"string","nullable":true,"format":"uuid"},"completedAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","name","initials","subtitle","completedAt","activeAttemptId","completedAttemptId"],"additionalProperties":false}},"attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scenarioId":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"scenarioVersion":{"type":"string"},"status":{"type":"string","enum":["active","completed","abandoned"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"endingTitle":{"type":"string","nullable":true},"parentAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","scenarioId","scenarioVersion","status","version","startedAt","activityAt","completedAt","endingTitle","parentAttemptId"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true,"format":"uuid"}},"required":["ownerId","access","resumeAttemptId","completedConversations","completedAt","scenarios","attempts","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-001/game/scenarios/{scenarioId}":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"required":true,"name":"scenarioId","in":"path"}],"responses":{"200":{"description":"Authorized preparation","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"scenario":{"type":"object","properties":{"manifest":{"type":"object","properties":{"id":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"version":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"intro":{"type":"string"},"exitNode":{"type":"string"}},"required":["id","version","title","subtitle","intro","exitNode"],"additionalProperties":false},"npc":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"context":{"type":"object","properties":{"card":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"facts":{"type":"array","items":{"type":"string"}},"assumptions":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}},"situation":{"type":"array","items":{"type":"string"}}},"required":["title","subtitle","facts","assumptions","unknown","situation"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false},"hypotheses":{"type":"object","properties":{"important":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false},"clarify":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false}},"required":["important","clarify"],"additionalProperties":false}},"required":["card","history","hypotheses"],"additionalProperties":false},"product":{"type":"object","properties":{"name":{"type":"string"},"disclaimer":{"type":"string"},"scenarioFacts":{"type":"array","items":{"type":"string"}},"sellerExperience":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"notAllowed":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}}},"required":["name","disclaimer","scenarioFacts","sellerExperience","allowed","notAllowed","unknown"],"additionalProperties":false}},"required":["manifest","npc","context","product"],"additionalProperties":false}},"required":["ownerId","access","scenario"],"additionalProperties":false}}}},"400":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-001/game/attempts":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"scenarioId":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false},"replaceAttemptId":{"type":"string","nullable":true,"format":"uuid","default":null}},"required":["commandId","scenarioId","hypotheses"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own game","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scenarioId":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"scenarioVersion":{"type":"string"},"status":{"type":"string","enum":["active","completed","abandoned"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"endingTitle":{"type":"string","nullable":true},"parentAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","scenarioId","scenarioVersion","status","version","startedAt","activityAt","completedAt","endingTitle","parentAttemptId"],"additionalProperties":false},"presentation":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}},"status":{"type":"string","enum":["active","ended"]},"node":{"type":"string"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false},"revisions":{"type":"array","items":{"type":"object","properties":{"turn":{"type":"integer"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false}},"required":["turn","hypotheses"],"additionalProperties":false}},"choices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":false}},"canExit":{"type":"boolean"},"mood":{"type":"object","properties":{"key":{"type":"string"},"emoji":{"type":"string"},"label":{"type":"string"}},"required":["key","emoji","label"],"additionalProperties":false},"fired":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"atMessage":{"type":"integer"}},"required":["id","atMessage"],"additionalProperties":false}},"branchHint":{"type":"object","nullable":true,"properties":{"choiceId":{"type":"string"}},"required":["choiceId"],"additionalProperties":false}},"required":["messages","status","node","hypotheses","revisions","choices","canExit","mood","fired","branchHint"],"additionalProperties":false},"debrief":{"type":"object","additionalProperties":{},"nullable":true},"scenario":{"type":"object","nullable":true,"properties":{"manifest":{"type":"object","properties":{"id":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"version":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"intro":{"type":"string"},"exitNode":{"type":"string"}},"required":["id","version","title","subtitle","intro","exitNode"],"additionalProperties":false},"npc":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"context":{"type":"object","properties":{"card":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"facts":{"type":"array","items":{"type":"string"}},"assumptions":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}},"situation":{"type":"array","items":{"type":"string"}}},"required":["title","subtitle","facts","assumptions","unknown","situation"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false},"hypotheses":{"type":"object","properties":{"important":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false},"clarify":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false}},"required":["important","clarify"],"additionalProperties":false}},"required":["card","history","hypotheses"],"additionalProperties":false},"product":{"type":"object","properties":{"name":{"type":"string"},"disclaimer":{"type":"string"},"scenarioFacts":{"type":"array","items":{"type":"string"}},"sellerExperience":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"notAllowed":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}}},"required":["name","disclaimer","scenarioFacts","sellerExperience","allowed","notAllowed","unknown"],"additionalProperties":false}},"required":["manifest","npc","context","product"],"additionalProperties":false},"character":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false}},"required":["ownerId","access","attempt","presentation","debrief","scenario","character","history"],"additionalProperties":false}}}},"400":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-001/game/attempts/{attemptId}":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"responses":{"200":{"description":"Own game","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scenarioId":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"scenarioVersion":{"type":"string"},"status":{"type":"string","enum":["active","completed","abandoned"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"endingTitle":{"type":"string","nullable":true},"parentAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","scenarioId","scenarioVersion","status","version","startedAt","activityAt","completedAt","endingTitle","parentAttemptId"],"additionalProperties":false},"presentation":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}},"status":{"type":"string","enum":["active","ended"]},"node":{"type":"string"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false},"revisions":{"type":"array","items":{"type":"object","properties":{"turn":{"type":"integer"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false}},"required":["turn","hypotheses"],"additionalProperties":false}},"choices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":false}},"canExit":{"type":"boolean"},"mood":{"type":"object","properties":{"key":{"type":"string"},"emoji":{"type":"string"},"label":{"type":"string"}},"required":["key","emoji","label"],"additionalProperties":false},"fired":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"atMessage":{"type":"integer"}},"required":["id","atMessage"],"additionalProperties":false}},"branchHint":{"type":"object","nullable":true,"properties":{"choiceId":{"type":"string"}},"required":["choiceId"],"additionalProperties":false}},"required":["messages","status","node","hypotheses","revisions","choices","canExit","mood","fired","branchHint"],"additionalProperties":false},"debrief":{"type":"object","additionalProperties":{},"nullable":true},"scenario":{"type":"object","nullable":true,"properties":{"manifest":{"type":"object","properties":{"id":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"version":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"intro":{"type":"string"},"exitNode":{"type":"string"}},"required":["id","version","title","subtitle","intro","exitNode"],"additionalProperties":false},"npc":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"context":{"type":"object","properties":{"card":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"facts":{"type":"array","items":{"type":"string"}},"assumptions":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}},"situation":{"type":"array","items":{"type":"string"}}},"required":["title","subtitle","facts","assumptions","unknown","situation"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false},"hypotheses":{"type":"object","properties":{"important":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false},"clarify":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false}},"required":["important","clarify"],"additionalProperties":false}},"required":["card","history","hypotheses"],"additionalProperties":false},"product":{"type":"object","properties":{"name":{"type":"string"},"disclaimer":{"type":"string"},"scenarioFacts":{"type":"array","items":{"type":"string"}},"sellerExperience":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"notAllowed":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}}},"required":["name","disclaimer","scenarioFacts","sellerExperience","allowed","notAllowed","unknown"],"additionalProperties":false}},"required":["manifest","npc","context","product"],"additionalProperties":false},"character":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false}},"required":["ownerId","access","attempt","presentation","debrief","scenario","character","history"],"additionalProperties":false}}}},"400":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-001/game/attempts/{attemptId}/commands":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["choose"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"choiceId":{"type":"string","minLength":1,"maxLength":80}},"required":["commandId","kind","version","choiceId"],"additionalProperties":false},{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["hypotheses"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false}},"required":["commandId","kind","version","hypotheses"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Own game","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scenarioId":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"scenarioVersion":{"type":"string"},"status":{"type":"string","enum":["active","completed","abandoned"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"endingTitle":{"type":"string","nullable":true},"parentAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","scenarioId","scenarioVersion","status","version","startedAt","activityAt","completedAt","endingTitle","parentAttemptId"],"additionalProperties":false},"presentation":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}},"status":{"type":"string","enum":["active","ended"]},"node":{"type":"string"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false},"revisions":{"type":"array","items":{"type":"object","properties":{"turn":{"type":"integer"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false}},"required":["turn","hypotheses"],"additionalProperties":false}},"choices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":false}},"canExit":{"type":"boolean"},"mood":{"type":"object","properties":{"key":{"type":"string"},"emoji":{"type":"string"},"label":{"type":"string"}},"required":["key","emoji","label"],"additionalProperties":false},"fired":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"atMessage":{"type":"integer"}},"required":["id","atMessage"],"additionalProperties":false}},"branchHint":{"type":"object","nullable":true,"properties":{"choiceId":{"type":"string"}},"required":["choiceId"],"additionalProperties":false}},"required":["messages","status","node","hypotheses","revisions","choices","canExit","mood","fired","branchHint"],"additionalProperties":false},"debrief":{"type":"object","additionalProperties":{},"nullable":true},"scenario":{"type":"object","nullable":true,"properties":{"manifest":{"type":"object","properties":{"id":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"version":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"intro":{"type":"string"},"exitNode":{"type":"string"}},"required":["id","version","title","subtitle","intro","exitNode"],"additionalProperties":false},"npc":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"context":{"type":"object","properties":{"card":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"facts":{"type":"array","items":{"type":"string"}},"assumptions":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}},"situation":{"type":"array","items":{"type":"string"}}},"required":["title","subtitle","facts","assumptions","unknown","situation"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false},"hypotheses":{"type":"object","properties":{"important":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false},"clarify":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false}},"required":["important","clarify"],"additionalProperties":false}},"required":["card","history","hypotheses"],"additionalProperties":false},"product":{"type":"object","properties":{"name":{"type":"string"},"disclaimer":{"type":"string"},"scenarioFacts":{"type":"array","items":{"type":"string"}},"sellerExperience":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"notAllowed":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}}},"required":["name","disclaimer","scenarioFacts","sellerExperience","allowed","notAllowed","unknown"],"additionalProperties":false}},"required":["manifest","npc","context","product"],"additionalProperties":false},"character":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false}},"required":["ownerId","access","attempt","presentation","debrief","scenario","character","history"],"additionalProperties":false}}}},"400":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-001/game/attempts/{attemptId}/branches":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"index":{"type":"integer","minimum":0,"maximum":1000},"replaceAttemptId":{"type":"string","nullable":true,"format":"uuid","default":null}},"required":["commandId","index"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own game","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scenarioId":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"scenarioVersion":{"type":"string"},"status":{"type":"string","enum":["active","completed","abandoned"]},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"endingTitle":{"type":"string","nullable":true},"parentAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","scenarioId","scenarioVersion","status","version","startedAt","activityAt","completedAt","endingTitle","parentAttemptId"],"additionalProperties":false},"presentation":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}},"status":{"type":"string","enum":["active","ended"]},"node":{"type":"string"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false},"revisions":{"type":"array","items":{"type":"object","properties":{"turn":{"type":"integer"},"hypotheses":{"type":"object","properties":{"important":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"clarify":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":8},"marks":{"type":"object","additionalProperties":{"type":"string","enum":["yes","doubt","unknown"]},"default":{}}},"required":["important","clarify"],"additionalProperties":false}},"required":["turn","hypotheses"],"additionalProperties":false}},"choices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":false}},"canExit":{"type":"boolean"},"mood":{"type":"object","properties":{"key":{"type":"string"},"emoji":{"type":"string"},"label":{"type":"string"}},"required":["key","emoji","label"],"additionalProperties":false},"fired":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"atMessage":{"type":"integer"}},"required":["id","atMessage"],"additionalProperties":false}},"branchHint":{"type":"object","nullable":true,"properties":{"choiceId":{"type":"string"}},"required":["choiceId"],"additionalProperties":false}},"required":["messages","status","node","hypotheses","revisions","choices","canExit","mood","fired","branchHint"],"additionalProperties":false},"debrief":{"type":"object","additionalProperties":{},"nullable":true},"scenario":{"type":"object","nullable":true,"properties":{"manifest":{"type":"object","properties":{"id":{"type":"string","enum":["first-dialogue-alexander","first-dialogue-irina","first-dialogue-maksim"]},"version":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"intro":{"type":"string"},"exitNode":{"type":"string"}},"required":["id","version","title","subtitle","intro","exitNode"],"additionalProperties":false},"npc":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"context":{"type":"object","properties":{"card":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"facts":{"type":"array","items":{"type":"string"}},"assumptions":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}},"situation":{"type":"array","items":{"type":"string"}}},"required":["title","subtitle","facts","assumptions","unknown","situation"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false},"hypotheses":{"type":"object","properties":{"important":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false},"clarify":{"type":"object","properties":{"question":{"type":"string"},"hint":{"type":"string"},"max":{"type":"integer"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}}},"required":["question","hint","max","options"],"additionalProperties":false}},"required":["important","clarify"],"additionalProperties":false}},"required":["card","history","hypotheses"],"additionalProperties":false},"product":{"type":"object","properties":{"name":{"type":"string"},"disclaimer":{"type":"string"},"scenarioFacts":{"type":"array","items":{"type":"string"}},"sellerExperience":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"notAllowed":{"type":"array","items":{"type":"string"}},"unknown":{"type":"array","items":{"type":"string"}}},"required":["name","disclaimer","scenarioFacts","sellerExperience","allowed","notAllowed","unknown"],"additionalProperties":false}},"required":["manifest","npc","context","product"],"additionalProperties":false},"character":{"type":"object","properties":{"name":{"type":"string"},"initials":{"type":"string"},"grammar":{"type":"object","additionalProperties":{"type":"string"}},"status":{"type":"object","properties":{"idle":{"type":"string"},"online":{"type":"string"},"typing":{"type":"string"}},"required":["idle","online","typing"],"additionalProperties":false}},"required":["name","initials","status"],"additionalProperties":false},"history":{"type":"object","properties":{"label":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"turn":{"type":"integer"},"from":{"type":"string","enum":["me","npc","system"]},"kind":{"type":"string","enum":["text","gap","deleted","read","typingStop","reaction"],"default":"text"},"clock":{"type":"string"},"text":{"type":"string"},"emoji":{"type":"string"},"target":{"type":"integer"}},"required":["from"],"additionalProperties":false}}},"required":["label","messages"],"additionalProperties":false}},"required":["ownerId","access","attempt","presentation","debrief","scenario","character","history"],"additionalProperties":false}}}},"400":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Game request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-004/two-talks":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Cases, own attempts and access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoTalksOverview"}}}},"400":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-004/two-talks/attempts":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"caseId":{"type":"integer","minimum":1,"maximum":24},"previousAttemptId":{"type":"string","nullable":true,"format":"uuid"}},"required":["commandId","caseId","previousAttemptId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Participant attempt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoTalksAttempt"}}}},"400":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-004/two-talks/attempts/{attemptId}":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"responses":{"200":{"description":"Participant attempt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoTalksAttempt"}}}},"400":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-004/two-talks/attempts/{attemptId}/recordings/{clipId}":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"},{"schema":{"type":"string","pattern":"^(?:intro|(?:anna|oleg|lida|denis|newbie)Intro|request(?:[1-9]|1\\d|2[0-4]))$"},"required":true,"name":"clipId","in":"path"}],"responses":{"200":{"description":"Current scene recording","content":{"application/json":{"schema":{"type":"object","properties":{"mimeType":{"type":"string","enum":["audio/mp4"]},"base64":{"type":"string","minLength":1}},"required":["mimeType","base64"],"additionalProperties":false}}}},"400":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/GAME-004/two-talks/attempts/{attemptId}/actions":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"action":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["press"]},"id":{"type":"string","minLength":1,"maxLength":80},"text":{"type":"string","maxLength":700}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["edit"]},"field":{"type":"string","enum":["notes","reply","extraReply"]},"text":{"type":"string","maxLength":700}},"required":["type","field","text"],"additionalProperties":false}]}},"required":["commandId","version","action"],"additionalProperties":false}}}},"responses":{"200":{"description":"Participant attempt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoTalksAttempt"}}}},"400":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Trainer request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/weeks":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["GAME-002","GAME-003"]},"required":true,"name":"trackId","in":"path"}],"responses":{"200":{"description":"Own week history and access","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","enum":["GAME-002","GAME-003"]},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"day":{"type":"integer","minimum":1,"maximum":7},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"startedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"archivedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","day","version","startedAt","updatedAt","completedAt","archivedAt"],"additionalProperties":false}}},"required":["ownerId","trackId","access","attempts"],"additionalProperties":false}}}},"400":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/weeks/attempts":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["GAME-002","GAME-003"]},"required":true,"name":"trackId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"replaceAttemptId":{"type":"string","nullable":true,"format":"uuid","default":null}},"required":["commandId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own week attempt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerWeekAttempt"}}}},"400":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/weeks/attempts/{attemptId}":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["GAME-002","GAME-003"]},"required":true,"name":"trackId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"responses":{"200":{"description":"Own week attempt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerWeekAttempt"}}}},"400":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/weeks/attempts/{attemptId}/actions":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["GAME-002","GAME-003"]},"required":true,"name":"trackId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0,"exclusiveMinimum":true},"action":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["identify"]},"name":{"type":"string","minLength":1,"maxLength":20},"gender":{"type":"string","enum":["male","female"]}},"required":["kind","name","gender"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["begin"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["wake"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["tick"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["back"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["accept"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["decline"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["hangup"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["endDay"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["nextDay"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["open"]},"screen":{"type":"string","enum":["home","chats","calls","team","academy","notes","stats"]}},"required":["kind","screen"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["contact"]},"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"screen":{"type":"string","enum":["thread","person"]}},"required":["kind","person","screen"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["article"]},"id":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["reply"]},"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"choiceId":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","person","choiceId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["hint"]},"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]}},"required":["kind","person"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["guess"]},"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"need":{"type":"string","enum":["money","safety","freedom","recognition","belonging","facts","respect","growth"]}},"required":["kind","person","need"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["review"]},"person":{"type":"string","enum":["ira","anya","dima","olga","serg","sveta","viktor","katya"]},"need":{"type":"string","enum":["money","safety","freedom","recognition","belonging","facts","respect","growth"]}},"required":["kind","person","need"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["start"]},"name":{"type":"string","minLength":1,"maxLength":50},"grammar":{"type":"string","enum":["masculine","feminine"]},"mode":{"type":"string","enum":["real","fast"]},"timeZone":{"type":"string","minLength":1,"maxLength":80}},"required":["kind","name","grammar","mode","timeZone"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["mode"]},"mode":{"type":"string","enum":["real","fast"]}},"required":["kind","mode"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["nextDay"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["setPlan"]},"tasks":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"menuId":{"type":"integer","minimum":0}},"required":["menuId"],"additionalProperties":false},{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":180},"category":{"type":"string","enum":["Свои клиенты","Команда","Обучение","Личное и силы","Рутина"]},"energy":{"anyOf":[{"type":"number","enum":[-8]},{"type":"number","enum":[8]}]}},"required":["title","category","energy"],"additionalProperties":false}]},"minItems":1,"maxItems":30}},"required":["kind","tasks"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["addDeal"]},"name":{"type":"string","minLength":1,"maxLength":50},"stage":{"type":"integer","minimum":0,"maximum":5},"ball":{"type":"string","enum":["me","client"]},"next":{"type":"string","maxLength":600},"nextDate":{"anyOf":[{"type":"string","format":"date"},{"type":"string","enum":[""]}]},"daysAgo":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[2]},{"type":"number","enum":[7]},{"type":"number","enum":[14]},{"type":"number","enum":[30]}]},"contact":{"type":"boolean"}},"required":["kind","name","stage","ball","next","nextDate","daysAgo","contact"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["updateDeal"]},"id":{"type":"integer","minimum":0,"exclusiveMinimum":true},"name":{"type":"string","minLength":1,"maxLength":50},"stage":{"type":"integer","minimum":0,"maximum":5},"ball":{"type":"string","enum":["me","client"]},"next":{"type":"string","maxLength":600},"nextDate":{"anyOf":[{"type":"string","format":"date"},{"type":"string","enum":[""]}]},"closed":{"type":"boolean"},"contact":{"type":"boolean"}},"required":["kind","id","name","stage","ball","next","nextDate","closed","contact"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["finishEvening"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["addMember"]},"member":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50},"type":{"type":"string","enum":["D","I","S","C"]},"need":{"type":"string","minLength":1,"maxLength":80}},"required":["name","type","need"],"additionalProperties":false}},"required":["kind","member"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["removeMember"]},"id":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["kind","id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["pick"]},"node":{"type":"string","minLength":1,"maxLength":20},"index":{"type":"integer","minimum":0,"maximum":5}},"required":["kind","node","index"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["win"]},"win":{"type":"object","properties":{"what":{"type":"string","minLength":1,"maxLength":600},"helped":{"type":"string","maxLength":600},"repeat":{"type":"string","maxLength":600}},"required":["what","helped","repeat"],"additionalProperties":false},"done":{"type":"array","items":{"type":"integer","minimum":0,"maximum":29},"maxItems":30}},"required":["kind","win","done"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["recipe"]},"recipe":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"string","minLength":1,"maxLength":600}},"next":{"type":"string","minLength":1,"maxLength":600}},"required":["rules","next"],"additionalProperties":false}},"required":["kind","recipe"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["closeDay"]}},"required":["kind"],"additionalProperties":false}]}},"required":["commandId","version","action"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own week attempt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerWeekAttempt"}}}},"400":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Week request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/A3-002/learning/first-message":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["commandId","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own saved attempt","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"title":{"type":"string","minLength":1,"maxLength":200},"contentVersion":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"version":{"type":"integer","minimum":1},"state":{"type":"object","properties":{"phase":{"type":"string","enum":["exercise","debrief","artifact","transfer","transfer_debrief","completed"]},"decisionIndex":{"type":"integer","minimum":0},"draft":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"rounds":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["exercise","artifact","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"artifact":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"artifactCalculated":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"transferAttempts":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["transfer","completed","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"transfer":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200}},"required":["phase","decisionIndex","draft","rounds","artifact","artifactCalculated","transferAttempts","transfer"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","ownerId","trackId","title","contentVersion","version","state","startedAt","activityAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/learning/current":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"trackId","in":"path"}],"responses":{"200":{"description":"Current attempt or null","content":{"application/json":{"schema":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"title":{"type":"string","minLength":1,"maxLength":200},"contentVersion":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"version":{"type":"integer","minimum":1},"state":{"type":"object","properties":{"phase":{"type":"string","enum":["exercise","debrief","artifact","transfer","transfer_debrief","completed"]},"decisionIndex":{"type":"integer","minimum":0},"draft":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"rounds":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["exercise","artifact","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"artifact":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"artifactCalculated":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"transferAttempts":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["transfer","completed","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"transfer":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200}},"required":["phase","decisionIndex","draft","rounds","artifact","artifactCalculated","transferAttempts","transfer"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","ownerId","trackId","title","contentVersion","version","state","startedAt","activityAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/learning/content":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"trackId","in":"path"}],"responses":{"200":{"description":"Authorized versioned content","content":{"application/json":{"schema":{"type":"object","properties":{"contentVersion":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"attemptId":{"type":"string","nullable":true,"format":"uuid"},"attemptVersion":{"type":"integer","nullable":true,"minimum":1},"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["text"]},"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["kind","key","text"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["choice"]},"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"compact":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["value","label"],"additionalProperties":false},"minItems":1,"maxItems":30}},"required":["kind","key","label","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["text_input"]},"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"singleLine":{"type":"boolean"}},"required":["kind","key","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["number_input"]},"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["kind","key","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["review"]},"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["kind","key","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["plan"]},"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"initial":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false}},"required":["kind","key","label"],"additionalProperties":false}]},"maxItems":200}},"required":["contentVersion","attemptId","attemptVersion","items"],"additionalProperties":false}}}},"400":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/learning/history":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"trackId","in":"path"}],"responses":{"200":{"description":"Own saved attempts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"title":{"type":"string","minLength":1,"maxLength":200},"contentVersion":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"version":{"type":"integer","minimum":1},"state":{"type":"object","properties":{"phase":{"type":"string","enum":["exercise","debrief","artifact","transfer","transfer_debrief","completed"]},"decisionIndex":{"type":"integer","minimum":0},"draft":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"rounds":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["exercise","artifact","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"artifact":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"artifactCalculated":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"transferAttempts":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["transfer","completed","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"transfer":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200}},"required":["phase","decisionIndex","draft","rounds","artifact","artifactCalculated","transferAttempts","transfer"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","ownerId","trackId","title","contentVersion","version","state","startedAt","activityAt","completedAt"],"additionalProperties":false}}}}},"400":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/learning/attempts/{attemptId}":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"required":true,"name":"trackId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"responses":{"200":{"description":"Own saved attempt","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"title":{"type":"string","minLength":1,"maxLength":200},"contentVersion":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"version":{"type":"integer","minimum":1},"state":{"type":"object","properties":{"phase":{"type":"string","enum":["exercise","debrief","artifact","transfer","transfer_debrief","completed"]},"decisionIndex":{"type":"integer","minimum":0},"draft":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"rounds":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["exercise","artifact","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"artifact":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"artifactCalculated":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"transferAttempts":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["transfer","completed","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"transfer":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200}},"required":["phase","decisionIndex","draft","rounds","artifact","artifactCalculated","transferAttempts","transfer"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","ownerId","trackId","title","contentVersion","version","state","startedAt","activityAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/learning/attempts":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"trackId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"}},"required":["commandId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own saved attempt","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"title":{"type":"string","minLength":1,"maxLength":200},"contentVersion":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"version":{"type":"integer","minimum":1},"state":{"type":"object","properties":{"phase":{"type":"string","enum":["exercise","debrief","artifact","transfer","transfer_debrief","completed"]},"decisionIndex":{"type":"integer","minimum":0},"draft":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"rounds":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["exercise","artifact","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"artifact":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"artifactCalculated":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"transferAttempts":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["transfer","completed","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"transfer":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200}},"required":["phase","decisionIndex","draft","rounds","artifact","artifactCalculated","transferAttempts","transfer"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","ownerId","trackId","title","contentVersion","version","state","startedAt","activityAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/learning/attempts/{attemptId}/commands":{"post":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"required":true,"name":"trackId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attemptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":1},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["save"]},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false}},"required":["key","kind","value"],"additionalProperties":false}]},"maxItems":200},"recordedTake":{"type":"boolean","enum":[true]}},"required":["kind","fields"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["advance"]},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]}},"required":["key","kind","value"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false}},"required":["key","kind","value"],"additionalProperties":false}]},"maxItems":200}},"required":["kind","fields"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["retry"]}},"required":["kind"],"additionalProperties":false}]}},"required":["commandId","version","action"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own saved attempt","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ownerId":{"type":"string","format":"uuid"},"trackId":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"title":{"type":"string","minLength":1,"maxLength":200},"contentVersion":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"version":{"type":"integer","minimum":1},"state":{"type":"object","properties":{"phase":{"type":"string","enum":["exercise","debrief","artifact","transfer","transfer_debrief","completed"]},"decisionIndex":{"type":"integer","minimum":0},"draft":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"rounds":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["exercise","artifact","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"artifact":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"artifactCalculated":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"transferAttempts":{"type":"array","items":{"type":"object","properties":{"decisionIndex":{"type":"integer","minimum":0},"fields":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"calculated":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200},"outcome":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"outcomeLabel":{"type":"string","minLength":1,"maxLength":4000},"next":{"type":"string","enum":["transfer","completed","retry"]}},"required":["decisionIndex","fields","calculated","outcome","outcomeLabel","next"],"additionalProperties":false},"maxItems":100},"transfer":{"type":"array","nullable":true,"items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string","maxLength":4000},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"label":{"type":"string","minLength":1,"maxLength":4000},"valueLabel":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label","valueLabel"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true},"label":{"type":"string","minLength":1,"maxLength":4000},"unit":{"type":"string","minLength":1,"maxLength":4000},"takeReceipt":{"type":"string","format":"uuid"}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["review"]},"value":{"type":"string","enum":["yes","no","unknown"]},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["plan"]},"value":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"interval":{"type":"integer","nullable":true,"minimum":1,"maximum":4},"repeats":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"duration":{"type":"number","nullable":true,"minimum":0,"maximum":1000000},"unit":{"type":"string","enum":["minutes","hours"]}},"required":["name","interval","repeats","duration","unit"],"additionalProperties":false},"maxItems":30},"checkpoints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"day":{"type":"integer","nullable":true,"minimum":1,"maximum":30}},"required":["name","day"],"additionalProperties":false},"maxItems":30}},"required":["actions","checkpoints"],"additionalProperties":false},"label":{"type":"string","minLength":1,"maxLength":4000}},"required":["key","kind","value","label"],"additionalProperties":false}]},"maxItems":200}},"required":["phase","decisionIndex","draft","rounds","artifact","artifactCalculated","transferAttempts","transfer"],"additionalProperties":false},"startedAt":{"type":"string","format":"date-time"},"activityAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","ownerId","trackId","title","contentVersion","version","state","startedAt","activityAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Learning request rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/release":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Active learning release","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"tracks":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"access":{"type":"string","enum":["free","subscription"]}},"required":["code","trackId","title","direction","access"],"additionalProperties":false}}},"required":["id","tracks"],"additionalProperties":false}},"required":["release"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/release/v2":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Active learning catalogue","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"tracks":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^(NET|NMT|A[1-6]|NEW)-\\d{3}$"},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"result":{"type":"string","minLength":1},"direction":{"type":"string","enum":["B1","B2","B3","B4","B5","B6","B7"]},"access":{"type":"string","enum":["free","subscription"]}},"required":["code","trackId","title","result","direction","access"],"additionalProperties":false}}},"required":["id","tracks"],"additionalProperties":false}},"required":["release"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Fixed own catalogue","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"tracks":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"availability":{"type":"string","enum":["learn","read_only","locked"]},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"description":{"type":"string","minLength":1},"totalSteps":{"type":"number","enum":[6]},"status":{"type":"string","enum":["not_started"]},"creditedSteps":{"type":"number","enum":[0]},"href":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+$"}},"required":["trackId","title","description","totalSteps","status","creditedSteps","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"availability":{"type":"string","enum":["learn","read_only","locked"]},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"description":{"type":"string","minLength":1},"totalSteps":{"type":"number","enum":[6]},"status":{"type":"string","enum":["in_progress"]},"creditedSteps":{"type":"integer","minimum":0,"maximum":5},"href":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+$"}},"required":["trackId","title","description","totalSteps","status","creditedSteps","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"availability":{"type":"string","enum":["learn","read_only","locked"]},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"description":{"type":"string","minLength":1},"totalSteps":{"type":"number","enum":[6]},"status":{"type":"string","enum":["completed"]},"creditedSteps":{"type":"number","enum":[6]},"href":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"}},"required":["trackId","title","description","totalSteps","status","creditedSteps","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["dialogue_game"]},"trackId":{"type":"string","enum":["GAME-001"]},"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["not_started","in_progress","completed"]},"completedConversations":{"type":"integer","minimum":0,"maximum":3},"totalConversations":{"type":"number","enum":[3]},"hasActiveAttempt":{"type":"boolean"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"availability":{"type":"string","enum":["learn","read_only","locked"]},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"href":{"type":"string","enum":["/app/tracks/GAME-001","/app/tracks/GAME-001/result"]}},"required":["kind","trackId","title","description","status","completedConversations","totalConversations","hasActiveAttempt","access","availability","plansUrl","href"],"additionalProperties":false}]},"minItems":1}},"required":["ownerId","tracks"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/continuation":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Selected own continuation","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"selected":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"creditedSteps":{"type":"integer","minimum":0,"maximum":5},"totalSteps":{"type":"number","enum":[6]},"available":{"type":"boolean","enum":[true]},"href":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+$"}},"required":["trackId","title","creditedSteps","totalSteps","available","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"creditedSteps":{"type":"integer","minimum":0,"maximum":5},"totalSteps":{"type":"number","enum":[6]},"available":{"type":"boolean","enum":[false]},"href":{"nullable":true}},"required":["trackId","title","creditedSteps","totalSteps","available","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["dialogue_game"]},"trackId":{"type":"string","enum":["GAME-001"]},"title":{"type":"string"},"completedConversations":{"type":"integer","minimum":0,"maximum":3},"totalConversations":{"type":"number","enum":[3]},"available":{"type":"boolean"},"href":{"type":"string","nullable":true,"enum":["/app/tracks/GAME-001"]},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","enum":["/app/tracks/GAME-001/result"]},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["kind","trackId","title","completedConversations","totalConversations","available","href","access","savedHref","plansUrl"],"additionalProperties":false},{"nullable":true}]},"hasAvailableLearning":{"type":"boolean"},"hasCompletedLearning":{"type":"boolean"}},"required":["ownerId","selected","hasAvailableLearning","hasCompletedLearning"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/continuation/v2":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Selected own continuation including versioned attempts","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"selected":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"creditedSteps":{"type":"integer","minimum":0,"maximum":5},"totalSteps":{"type":"number","enum":[6]},"available":{"type":"boolean","enum":[true]},"href":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+$"}},"required":["trackId","title","creditedSteps","totalSteps","available","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"creditedSteps":{"type":"integer","minimum":0,"maximum":5},"totalSteps":{"type":"number","enum":[6]},"available":{"type":"boolean","enum":[false]},"href":{"nullable":true}},"required":["trackId","title","creditedSteps","totalSteps","available","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["dialogue_game"]},"trackId":{"type":"string","enum":["GAME-001"]},"title":{"type":"string"},"completedConversations":{"type":"integer","minimum":0,"maximum":3},"totalConversations":{"type":"number","enum":[3]},"available":{"type":"boolean"},"href":{"type":"string","nullable":true,"enum":["/app/tracks/GAME-001"]},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","enum":["/app/tracks/GAME-001/result"]},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["kind","trackId","title","completedConversations","totalConversations","available","href","access","savedHref","plansUrl"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["versioned"]},"trackId":{"type":"string","pattern":"^[A-Za-z0-9-]+$"},"attemptId":{"type":"string","format":"uuid"},"title":{"type":"string","minLength":1},"contentVersion":{"type":"string","minLength":1},"available":{"type":"boolean"},"href":{"type":"string","nullable":true},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["kind","trackId","attemptId","title","contentVersion","available","href","savedHref"],"additionalProperties":false},{"nullable":true}]},"hasAvailableLearning":{"type":"boolean"},"hasCompletedLearning":{"type":"boolean"}},"required":["ownerId","selected","hasAvailableLearning","hasCompletedLearning"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/continuation/v3":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Selected own continuation and latest saved result","content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"type":"string","format":"uuid"},"selected":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"creditedSteps":{"type":"integer","minimum":0,"maximum":5},"totalSteps":{"type":"number","enum":[6]},"available":{"type":"boolean","enum":[true]},"href":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+$"}},"required":["trackId","title","creditedSteps","totalSteps","available","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["practice"]},"trackId":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string","minLength":1},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"plansUrl":{"type":"string","nullable":true,"format":"uri"},"creditedSteps":{"type":"integer","minimum":0,"maximum":5},"totalSteps":{"type":"number","enum":[6]},"available":{"type":"boolean","enum":[false]},"href":{"nullable":true}},"required":["trackId","title","creditedSteps","totalSteps","available","href"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["dialogue_game"]},"trackId":{"type":"string","enum":["GAME-001"]},"title":{"type":"string"},"completedConversations":{"type":"integer","minimum":0,"maximum":3},"totalConversations":{"type":"number","enum":[3]},"available":{"type":"boolean"},"href":{"type":"string","nullable":true,"enum":["/app/tracks/GAME-001"]},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"savedHref":{"type":"string","enum":["/app/tracks/GAME-001/result"]},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["kind","trackId","title","completedConversations","totalConversations","available","href","access","savedHref","plansUrl"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["versioned"]},"trackId":{"type":"string","pattern":"^[A-Za-z0-9-]+$"},"attemptId":{"type":"string","format":"uuid"},"title":{"type":"string","minLength":1},"contentVersion":{"type":"string","minLength":1},"available":{"type":"boolean"},"href":{"type":"string","nullable":true},"savedHref":{"type":"string","pattern":"^\\/app\\/tracks\\/[A-Za-z0-9-]+\\/result$"},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["kind","trackId","attemptId","title","contentVersion","available","href","savedHref"],"additionalProperties":false},{"nullable":true}]},"hasAvailableLearning":{"type":"boolean"},"hasCompletedLearning":{"type":"boolean"},"lastResult":{"oneOf":[{"type":"object","properties":{"trackId":{"type":"string","pattern":"^[A-Za-z0-9-]+$"},"title":{"type":"string","minLength":1},"href":{"type":"string"},"kind":{"type":"string","enum":["track"]}},"required":["trackId","title","href","kind"],"additionalProperties":false},{"type":"object","properties":{"trackId":{"type":"string","pattern":"^[A-Za-z0-9-]+$"},"title":{"type":"string","minLength":1},"href":{"type":"string"},"kind":{"type":"string","enum":["versioned"]},"attemptId":{"type":"string","format":"uuid"}},"required":["trackId","title","href","kind","attemptId"],"additionalProperties":false},{"type":"object","properties":{"trackId":{"type":"string","enum":["GAME-001"]},"title":{"type":"string","minLength":1},"href":{"type":"string"},"kind":{"type":"string","enum":["dialogue_game"]},"attemptId":{"type":"string","format":"uuid"}},"required":["trackId","title","href","kind","attemptId"],"additionalProperties":false},{"nullable":true}]}},"required":["ownerId","selected","hasAvailableLearning","hasCompletedLearning","lastResult"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/result":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"trackId","in":"path"}],"responses":{"200":{"description":"Own draft","content":{"application/json":{"schema":{"type":"object","properties":{"trackId":{"type":"string","minLength":1,"maxLength":80},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"ownerId":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"operation":{"type":"string","nullable":true,"enum":["find_material","account_navigation",null]},"expectedResult":{"type":"string","maxLength":4000},"sourceUrl":{"type":"string","maxLength":2000,"default":""},"sourceDate":{"type":"string","maxLength":10,"default":""},"sourceDetails":{"type":"string","maxLength":4000,"default":""},"sourceChecked":{"type":"boolean","default":false},"path":{"type":"string","maxLength":4000,"default":""},"pathState":{"type":"string","nullable":true,"enum":["understood","need_help",null],"default":null},"helpQuestion":{"type":"string","maxLength":4000,"default":""},"safeAccess":{"type":"boolean","default":false},"actionResult":{"type":"string","maxLength":4000,"default":""},"performer":{"type":"string","nullable":true,"enum":["self","mentor",null],"default":null},"actionCompleted":{"type":"boolean","default":false},"finalResult":{"type":"string","maxLength":4000,"default":""},"nextStep":{"type":"string","maxLength":4000,"default":""},"resultChecked":{"type":"boolean","default":false}},"required":["operation","expectedResult"],"additionalProperties":false},"version":{"type":"integer","minimum":0},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"activityAt":{"type":"string","nullable":true,"format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time","default":null},"currentStepId":{"type":"string","enum":["s1","s2","s3","s4","s5","s6"]},"creditedSteps":{"type":"integer","minimum":0,"maximum":6}},"required":["trackId","ownerId","draft","version","startedAt","activityAt","currentStepId","creditedSteps"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/tracks/{trackId}/steps/{stepId}":{"get":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"trackId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"stepId","in":"path"}],"responses":{"200":{"description":"Own draft","content":{"application/json":{"schema":{"type":"object","properties":{"trackId":{"type":"string","minLength":1,"maxLength":80},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"ownerId":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"operation":{"type":"string","nullable":true,"enum":["find_material","account_navigation",null]},"expectedResult":{"type":"string","maxLength":4000},"sourceUrl":{"type":"string","maxLength":2000,"default":""},"sourceDate":{"type":"string","maxLength":10,"default":""},"sourceDetails":{"type":"string","maxLength":4000,"default":""},"sourceChecked":{"type":"boolean","default":false},"path":{"type":"string","maxLength":4000,"default":""},"pathState":{"type":"string","nullable":true,"enum":["understood","need_help",null],"default":null},"helpQuestion":{"type":"string","maxLength":4000,"default":""},"safeAccess":{"type":"boolean","default":false},"actionResult":{"type":"string","maxLength":4000,"default":""},"performer":{"type":"string","nullable":true,"enum":["self","mentor",null],"default":null},"actionCompleted":{"type":"boolean","default":false},"finalResult":{"type":"string","maxLength":4000,"default":""},"nextStep":{"type":"string","maxLength":4000,"default":""},"resultChecked":{"type":"boolean","default":false}},"required":["operation","expectedResult"],"additionalProperties":false},"version":{"type":"integer","minimum":0},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"activityAt":{"type":"string","nullable":true,"format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time","default":null},"currentStepId":{"type":"string","enum":["s1","s2","s3","s4","s5","s6"]},"creditedSteps":{"type":"integer","minimum":0,"maximum":6}},"required":["trackId","ownerId","draft","version","startedAt","activityAt","currentStepId","creditedSteps"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}},"put":{"tags":["Tracks"],"security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"trackId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"stepId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"maximum":2147483646},"draft":{"type":"object","properties":{"operation":{"type":"string","nullable":true,"enum":["find_material","account_navigation",null]},"expectedResult":{"type":"string","maxLength":4000},"sourceUrl":{"type":"string","maxLength":2000,"default":""},"sourceDate":{"type":"string","maxLength":10,"default":""},"sourceDetails":{"type":"string","maxLength":4000,"default":""},"sourceChecked":{"type":"boolean","default":false},"path":{"type":"string","maxLength":4000,"default":""},"pathState":{"type":"string","nullable":true,"enum":["understood","need_help",null],"default":null},"helpQuestion":{"type":"string","maxLength":4000,"default":""},"safeAccess":{"type":"boolean","default":false},"actionResult":{"type":"string","maxLength":4000,"default":""},"performer":{"type":"string","nullable":true,"enum":["self","mentor",null],"default":null},"actionCompleted":{"type":"boolean","default":false},"finalResult":{"type":"string","maxLength":4000,"default":""},"nextStep":{"type":"string","maxLength":4000,"default":""},"resultChecked":{"type":"boolean","default":false}},"required":["operation","expectedResult"],"additionalProperties":false},"credit":{"type":"boolean","enum":[true]}},"required":["version","draft"],"additionalProperties":false}}}},"responses":{"200":{"description":"Own draft","content":{"application/json":{"schema":{"type":"object","properties":{"trackId":{"type":"string","minLength":1,"maxLength":80},"access":{"type":"object","properties":{"canLearn":{"type":"boolean"},"serverTime":{"type":"string","format":"date-time"},"endsAt":{"type":"string","nullable":true,"format":"date-time"},"plansUrl":{"type":"string","nullable":true,"format":"uri"}},"required":["canLearn","serverTime","endsAt","plansUrl"],"additionalProperties":false},"ownerId":{"type":"string","format":"uuid"},"draft":{"type":"object","properties":{"operation":{"type":"string","nullable":true,"enum":["find_material","account_navigation",null]},"expectedResult":{"type":"string","maxLength":4000},"sourceUrl":{"type":"string","maxLength":2000,"default":""},"sourceDate":{"type":"string","maxLength":10,"default":""},"sourceDetails":{"type":"string","maxLength":4000,"default":""},"sourceChecked":{"type":"boolean","default":false},"path":{"type":"string","maxLength":4000,"default":""},"pathState":{"type":"string","nullable":true,"enum":["understood","need_help",null],"default":null},"helpQuestion":{"type":"string","maxLength":4000,"default":""},"safeAccess":{"type":"boolean","default":false},"actionResult":{"type":"string","maxLength":4000,"default":""},"performer":{"type":"string","nullable":true,"enum":["self","mentor",null],"default":null},"actionCompleted":{"type":"boolean","default":false},"finalResult":{"type":"string","maxLength":4000,"default":""},"nextStep":{"type":"string","maxLength":4000,"default":""},"resultChecked":{"type":"boolean","default":false}},"required":["operation","expectedResult"],"additionalProperties":false},"version":{"type":"integer","minimum":0},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"activityAt":{"type":"string","nullable":true,"format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time","default":null},"currentStepId":{"type":"string","enum":["s1","s2","s3","s4","s5","s6"]},"creditedSteps":{"type":"integer","minimum":0,"maximum":6}},"required":["trackId","ownerId","draft","version","startedAt","activityAt","currentStepId","creditedSteps"],"additionalProperties":false}}}},"400":{"description":"Invalid draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Participant only","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Track or step unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Version conflict; read current draft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","SUBSCRIPTION_REQUIRED","NOT_FOUND","CONFLICT","VALIDATION_ERROR","PAYLOAD_TOO_LARGE","RATE_LIMITED","SERVICE_UNAVAILABLE","AUTH_PASSWORD_RESET_INVALID","AUTH_EMAIL_UNVERIFIED","AUTH_EMAIL_VERIFICATION_INVALID","MARKETING_PLAN_PDF_VALIDATION_UNAVAILABLE","UPLOADS_DISABLED","UPLOAD_NOT_COMPLETED","UPLOAD_REJECTED","UPLOAD_EXPIRED","INTERNAL_ERROR"]},"message":{"type":"string"},"details":{"nullable":true}},"required":["code","message"]}},"required":["error"]}}}}}}}}}