openapi.json 214 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175
  1. {
  2. "openapi": "3.1.1",
  3. "info": {
  4. "title": "opencode",
  5. "description": "opencode api",
  6. "version": "1.0.0"
  7. },
  8. "paths": {
  9. "/global/event": {
  10. "get": {
  11. "operationId": "global.event",
  12. "description": "Get events",
  13. "responses": {
  14. "200": {
  15. "description": "Event stream",
  16. "content": {
  17. "text/event-stream": {
  18. "schema": {
  19. "$ref": "#/components/schemas/GlobalEvent"
  20. }
  21. }
  22. }
  23. }
  24. }
  25. }
  26. },
  27. "/project": {
  28. "get": {
  29. "operationId": "project.list",
  30. "parameters": [
  31. {
  32. "in": "query",
  33. "name": "directory",
  34. "schema": {
  35. "type": "string"
  36. }
  37. }
  38. ],
  39. "description": "List all projects",
  40. "responses": {
  41. "200": {
  42. "description": "List of projects",
  43. "content": {
  44. "application/json": {
  45. "schema": {
  46. "type": "array",
  47. "items": {
  48. "$ref": "#/components/schemas/Project"
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }
  56. },
  57. "/project/current": {
  58. "get": {
  59. "operationId": "project.current",
  60. "parameters": [
  61. {
  62. "in": "query",
  63. "name": "directory",
  64. "schema": {
  65. "type": "string"
  66. }
  67. }
  68. ],
  69. "description": "Get the current project",
  70. "responses": {
  71. "200": {
  72. "description": "Current project",
  73. "content": {
  74. "application/json": {
  75. "schema": {
  76. "$ref": "#/components/schemas/Project"
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. },
  84. "/pty": {
  85. "get": {
  86. "operationId": "pty.list",
  87. "parameters": [
  88. {
  89. "in": "query",
  90. "name": "directory",
  91. "schema": {
  92. "type": "string"
  93. }
  94. }
  95. ],
  96. "description": "List all PTY sessions",
  97. "responses": {
  98. "200": {
  99. "description": "List of sessions",
  100. "content": {
  101. "application/json": {
  102. "schema": {
  103. "type": "array",
  104. "items": {
  105. "$ref": "#/components/schemas/Pty"
  106. }
  107. }
  108. }
  109. }
  110. }
  111. }
  112. },
  113. "post": {
  114. "operationId": "pty.create",
  115. "parameters": [
  116. {
  117. "in": "query",
  118. "name": "directory",
  119. "schema": {
  120. "type": "string"
  121. }
  122. }
  123. ],
  124. "description": "Create a new PTY session",
  125. "responses": {
  126. "200": {
  127. "description": "Created session",
  128. "content": {
  129. "application/json": {
  130. "schema": {
  131. "$ref": "#/components/schemas/Pty"
  132. }
  133. }
  134. }
  135. },
  136. "400": {
  137. "description": "Bad request",
  138. "content": {
  139. "application/json": {
  140. "schema": {
  141. "$ref": "#/components/schemas/BadRequestError"
  142. }
  143. }
  144. }
  145. }
  146. },
  147. "requestBody": {
  148. "content": {
  149. "application/json": {
  150. "schema": {
  151. "type": "object",
  152. "properties": {
  153. "command": {
  154. "type": "string"
  155. },
  156. "args": {
  157. "type": "array",
  158. "items": {
  159. "type": "string"
  160. }
  161. },
  162. "cwd": {
  163. "type": "string"
  164. },
  165. "title": {
  166. "type": "string"
  167. },
  168. "env": {
  169. "type": "object",
  170. "propertyNames": {
  171. "type": "string"
  172. },
  173. "additionalProperties": {
  174. "type": "string"
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. },
  184. "/pty/{ptyID}": {
  185. "get": {
  186. "operationId": "pty.get",
  187. "parameters": [
  188. {
  189. "in": "query",
  190. "name": "directory",
  191. "schema": {
  192. "type": "string"
  193. }
  194. },
  195. {
  196. "in": "path",
  197. "name": "ptyID",
  198. "schema": {
  199. "type": "string"
  200. },
  201. "required": true
  202. }
  203. ],
  204. "description": "Get PTY session info",
  205. "responses": {
  206. "200": {
  207. "description": "Session info",
  208. "content": {
  209. "application/json": {
  210. "schema": {
  211. "$ref": "#/components/schemas/Pty"
  212. }
  213. }
  214. }
  215. },
  216. "404": {
  217. "description": "Not found",
  218. "content": {
  219. "application/json": {
  220. "schema": {
  221. "$ref": "#/components/schemas/NotFoundError"
  222. }
  223. }
  224. }
  225. }
  226. }
  227. },
  228. "put": {
  229. "operationId": "pty.update",
  230. "parameters": [
  231. {
  232. "in": "query",
  233. "name": "directory",
  234. "schema": {
  235. "type": "string"
  236. }
  237. },
  238. {
  239. "in": "path",
  240. "name": "ptyID",
  241. "schema": {
  242. "type": "string"
  243. },
  244. "required": true
  245. }
  246. ],
  247. "description": "Update PTY session",
  248. "responses": {
  249. "200": {
  250. "description": "Updated session",
  251. "content": {
  252. "application/json": {
  253. "schema": {
  254. "$ref": "#/components/schemas/Pty"
  255. }
  256. }
  257. }
  258. },
  259. "400": {
  260. "description": "Bad request",
  261. "content": {
  262. "application/json": {
  263. "schema": {
  264. "$ref": "#/components/schemas/BadRequestError"
  265. }
  266. }
  267. }
  268. }
  269. },
  270. "requestBody": {
  271. "content": {
  272. "application/json": {
  273. "schema": {
  274. "type": "object",
  275. "properties": {
  276. "title": {
  277. "type": "string"
  278. },
  279. "size": {
  280. "type": "object",
  281. "properties": {
  282. "rows": {
  283. "type": "number"
  284. },
  285. "cols": {
  286. "type": "number"
  287. }
  288. },
  289. "required": ["rows", "cols"]
  290. }
  291. }
  292. }
  293. }
  294. }
  295. }
  296. },
  297. "delete": {
  298. "operationId": "pty.remove",
  299. "parameters": [
  300. {
  301. "in": "query",
  302. "name": "directory",
  303. "schema": {
  304. "type": "string"
  305. }
  306. },
  307. {
  308. "in": "path",
  309. "name": "ptyID",
  310. "schema": {
  311. "type": "string"
  312. },
  313. "required": true
  314. }
  315. ],
  316. "description": "Remove a PTY session",
  317. "responses": {
  318. "200": {
  319. "description": "Session removed",
  320. "content": {
  321. "application/json": {
  322. "schema": {
  323. "type": "boolean"
  324. }
  325. }
  326. }
  327. },
  328. "404": {
  329. "description": "Not found",
  330. "content": {
  331. "application/json": {
  332. "schema": {
  333. "$ref": "#/components/schemas/NotFoundError"
  334. }
  335. }
  336. }
  337. }
  338. }
  339. }
  340. },
  341. "/pty/{ptyID}/connect": {
  342. "get": {
  343. "operationId": "pty.connect",
  344. "parameters": [
  345. {
  346. "in": "query",
  347. "name": "directory",
  348. "schema": {
  349. "type": "string"
  350. }
  351. },
  352. {
  353. "in": "path",
  354. "name": "ptyID",
  355. "schema": {
  356. "type": "string"
  357. },
  358. "required": true
  359. }
  360. ],
  361. "description": "Connect to a PTY session",
  362. "responses": {
  363. "200": {
  364. "description": "Connected session",
  365. "content": {
  366. "application/json": {
  367. "schema": {
  368. "type": "boolean"
  369. }
  370. }
  371. }
  372. },
  373. "404": {
  374. "description": "Not found",
  375. "content": {
  376. "application/json": {
  377. "schema": {
  378. "$ref": "#/components/schemas/NotFoundError"
  379. }
  380. }
  381. }
  382. }
  383. }
  384. }
  385. },
  386. "/config": {
  387. "get": {
  388. "operationId": "config.get",
  389. "parameters": [
  390. {
  391. "in": "query",
  392. "name": "directory",
  393. "schema": {
  394. "type": "string"
  395. }
  396. }
  397. ],
  398. "description": "Get config info",
  399. "responses": {
  400. "200": {
  401. "description": "Get config info",
  402. "content": {
  403. "application/json": {
  404. "schema": {
  405. "$ref": "#/components/schemas/Config"
  406. }
  407. }
  408. }
  409. }
  410. }
  411. },
  412. "patch": {
  413. "operationId": "config.update",
  414. "parameters": [
  415. {
  416. "in": "query",
  417. "name": "directory",
  418. "schema": {
  419. "type": "string"
  420. }
  421. }
  422. ],
  423. "description": "Update config",
  424. "responses": {
  425. "200": {
  426. "description": "Successfully updated config",
  427. "content": {
  428. "application/json": {
  429. "schema": {
  430. "$ref": "#/components/schemas/Config"
  431. }
  432. }
  433. }
  434. },
  435. "400": {
  436. "description": "Bad request",
  437. "content": {
  438. "application/json": {
  439. "schema": {
  440. "$ref": "#/components/schemas/BadRequestError"
  441. }
  442. }
  443. }
  444. }
  445. },
  446. "requestBody": {
  447. "content": {
  448. "application/json": {
  449. "schema": {
  450. "$ref": "#/components/schemas/Config"
  451. }
  452. }
  453. }
  454. }
  455. }
  456. },
  457. "/experimental/tool/ids": {
  458. "get": {
  459. "operationId": "tool.ids",
  460. "parameters": [
  461. {
  462. "in": "query",
  463. "name": "directory",
  464. "schema": {
  465. "type": "string"
  466. }
  467. }
  468. ],
  469. "description": "List all tool IDs (including built-in and dynamically registered)",
  470. "responses": {
  471. "200": {
  472. "description": "Tool IDs",
  473. "content": {
  474. "application/json": {
  475. "schema": {
  476. "$ref": "#/components/schemas/ToolIDs"
  477. }
  478. }
  479. }
  480. },
  481. "400": {
  482. "description": "Bad request",
  483. "content": {
  484. "application/json": {
  485. "schema": {
  486. "$ref": "#/components/schemas/BadRequestError"
  487. }
  488. }
  489. }
  490. }
  491. }
  492. }
  493. },
  494. "/experimental/tool": {
  495. "get": {
  496. "operationId": "tool.list",
  497. "parameters": [
  498. {
  499. "in": "query",
  500. "name": "directory",
  501. "schema": {
  502. "type": "string"
  503. }
  504. },
  505. {
  506. "in": "query",
  507. "name": "provider",
  508. "schema": {
  509. "type": "string"
  510. },
  511. "required": true
  512. },
  513. {
  514. "in": "query",
  515. "name": "model",
  516. "schema": {
  517. "type": "string"
  518. },
  519. "required": true
  520. }
  521. ],
  522. "description": "List tools with JSON schema parameters for a provider/model",
  523. "responses": {
  524. "200": {
  525. "description": "Tools",
  526. "content": {
  527. "application/json": {
  528. "schema": {
  529. "$ref": "#/components/schemas/ToolList"
  530. }
  531. }
  532. }
  533. },
  534. "400": {
  535. "description": "Bad request",
  536. "content": {
  537. "application/json": {
  538. "schema": {
  539. "$ref": "#/components/schemas/BadRequestError"
  540. }
  541. }
  542. }
  543. }
  544. }
  545. }
  546. },
  547. "/instance/dispose": {
  548. "post": {
  549. "operationId": "instance.dispose",
  550. "parameters": [
  551. {
  552. "in": "query",
  553. "name": "directory",
  554. "schema": {
  555. "type": "string"
  556. }
  557. }
  558. ],
  559. "description": "Dispose the current instance",
  560. "responses": {
  561. "200": {
  562. "description": "Instance disposed",
  563. "content": {
  564. "application/json": {
  565. "schema": {
  566. "type": "boolean"
  567. }
  568. }
  569. }
  570. }
  571. }
  572. }
  573. },
  574. "/path": {
  575. "get": {
  576. "operationId": "path.get",
  577. "parameters": [
  578. {
  579. "in": "query",
  580. "name": "directory",
  581. "schema": {
  582. "type": "string"
  583. }
  584. }
  585. ],
  586. "description": "Get the current path",
  587. "responses": {
  588. "200": {
  589. "description": "Path",
  590. "content": {
  591. "application/json": {
  592. "schema": {
  593. "$ref": "#/components/schemas/Path"
  594. }
  595. }
  596. }
  597. }
  598. }
  599. }
  600. },
  601. "/vcs": {
  602. "get": {
  603. "operationId": "vcs.get",
  604. "parameters": [
  605. {
  606. "in": "query",
  607. "name": "directory",
  608. "schema": {
  609. "type": "string"
  610. }
  611. }
  612. ],
  613. "description": "Get VCS info for the current instance",
  614. "responses": {
  615. "200": {
  616. "description": "VCS info",
  617. "content": {
  618. "application/json": {
  619. "schema": {
  620. "$ref": "#/components/schemas/VcsInfo"
  621. }
  622. }
  623. }
  624. }
  625. }
  626. }
  627. },
  628. "/session": {
  629. "get": {
  630. "operationId": "session.list",
  631. "parameters": [
  632. {
  633. "in": "query",
  634. "name": "directory",
  635. "schema": {
  636. "type": "string"
  637. }
  638. }
  639. ],
  640. "description": "List all sessions",
  641. "responses": {
  642. "200": {
  643. "description": "List of sessions",
  644. "content": {
  645. "application/json": {
  646. "schema": {
  647. "type": "array",
  648. "items": {
  649. "$ref": "#/components/schemas/Session"
  650. }
  651. }
  652. }
  653. }
  654. }
  655. }
  656. },
  657. "post": {
  658. "operationId": "session.create",
  659. "parameters": [
  660. {
  661. "in": "query",
  662. "name": "directory",
  663. "schema": {
  664. "type": "string"
  665. }
  666. }
  667. ],
  668. "description": "Create a new session",
  669. "responses": {
  670. "200": {
  671. "description": "Successfully created session",
  672. "content": {
  673. "application/json": {
  674. "schema": {
  675. "$ref": "#/components/schemas/Session"
  676. }
  677. }
  678. }
  679. },
  680. "400": {
  681. "description": "Bad request",
  682. "content": {
  683. "application/json": {
  684. "schema": {
  685. "$ref": "#/components/schemas/BadRequestError"
  686. }
  687. }
  688. }
  689. }
  690. },
  691. "requestBody": {
  692. "content": {
  693. "application/json": {
  694. "schema": {
  695. "type": "object",
  696. "properties": {
  697. "parentID": {
  698. "type": "string",
  699. "pattern": "^ses.*"
  700. },
  701. "title": {
  702. "type": "string"
  703. }
  704. }
  705. }
  706. }
  707. }
  708. }
  709. }
  710. },
  711. "/session/status": {
  712. "get": {
  713. "operationId": "session.status",
  714. "parameters": [
  715. {
  716. "in": "query",
  717. "name": "directory",
  718. "schema": {
  719. "type": "string"
  720. }
  721. }
  722. ],
  723. "description": "Get session status",
  724. "responses": {
  725. "200": {
  726. "description": "Get session status",
  727. "content": {
  728. "application/json": {
  729. "schema": {
  730. "type": "object",
  731. "propertyNames": {
  732. "type": "string"
  733. },
  734. "additionalProperties": {
  735. "$ref": "#/components/schemas/SessionStatus"
  736. }
  737. }
  738. }
  739. }
  740. },
  741. "400": {
  742. "description": "Bad request",
  743. "content": {
  744. "application/json": {
  745. "schema": {
  746. "$ref": "#/components/schemas/BadRequestError"
  747. }
  748. }
  749. }
  750. }
  751. }
  752. }
  753. },
  754. "/session/{sessionID}": {
  755. "get": {
  756. "operationId": "session.get",
  757. "parameters": [
  758. {
  759. "in": "query",
  760. "name": "directory",
  761. "schema": {
  762. "type": "string"
  763. }
  764. },
  765. {
  766. "in": "path",
  767. "name": "sessionID",
  768. "schema": {
  769. "type": "string",
  770. "pattern": "^ses.*"
  771. },
  772. "required": true
  773. }
  774. ],
  775. "description": "Get session",
  776. "responses": {
  777. "200": {
  778. "description": "Get session",
  779. "content": {
  780. "application/json": {
  781. "schema": {
  782. "$ref": "#/components/schemas/Session"
  783. }
  784. }
  785. }
  786. },
  787. "400": {
  788. "description": "Bad request",
  789. "content": {
  790. "application/json": {
  791. "schema": {
  792. "$ref": "#/components/schemas/BadRequestError"
  793. }
  794. }
  795. }
  796. },
  797. "404": {
  798. "description": "Not found",
  799. "content": {
  800. "application/json": {
  801. "schema": {
  802. "$ref": "#/components/schemas/NotFoundError"
  803. }
  804. }
  805. }
  806. }
  807. }
  808. },
  809. "delete": {
  810. "operationId": "session.delete",
  811. "parameters": [
  812. {
  813. "in": "query",
  814. "name": "directory",
  815. "schema": {
  816. "type": "string"
  817. }
  818. },
  819. {
  820. "in": "path",
  821. "name": "sessionID",
  822. "schema": {
  823. "type": "string",
  824. "pattern": "^ses.*"
  825. },
  826. "required": true
  827. }
  828. ],
  829. "description": "Delete a session and all its data",
  830. "responses": {
  831. "200": {
  832. "description": "Successfully deleted session",
  833. "content": {
  834. "application/json": {
  835. "schema": {
  836. "type": "boolean"
  837. }
  838. }
  839. }
  840. },
  841. "400": {
  842. "description": "Bad request",
  843. "content": {
  844. "application/json": {
  845. "schema": {
  846. "$ref": "#/components/schemas/BadRequestError"
  847. }
  848. }
  849. }
  850. },
  851. "404": {
  852. "description": "Not found",
  853. "content": {
  854. "application/json": {
  855. "schema": {
  856. "$ref": "#/components/schemas/NotFoundError"
  857. }
  858. }
  859. }
  860. }
  861. }
  862. },
  863. "patch": {
  864. "operationId": "session.update",
  865. "parameters": [
  866. {
  867. "in": "query",
  868. "name": "directory",
  869. "schema": {
  870. "type": "string"
  871. }
  872. },
  873. {
  874. "in": "path",
  875. "name": "sessionID",
  876. "schema": {
  877. "type": "string"
  878. },
  879. "required": true
  880. }
  881. ],
  882. "description": "Update session properties",
  883. "responses": {
  884. "200": {
  885. "description": "Successfully updated session",
  886. "content": {
  887. "application/json": {
  888. "schema": {
  889. "$ref": "#/components/schemas/Session"
  890. }
  891. }
  892. }
  893. },
  894. "400": {
  895. "description": "Bad request",
  896. "content": {
  897. "application/json": {
  898. "schema": {
  899. "$ref": "#/components/schemas/BadRequestError"
  900. }
  901. }
  902. }
  903. },
  904. "404": {
  905. "description": "Not found",
  906. "content": {
  907. "application/json": {
  908. "schema": {
  909. "$ref": "#/components/schemas/NotFoundError"
  910. }
  911. }
  912. }
  913. }
  914. },
  915. "requestBody": {
  916. "content": {
  917. "application/json": {
  918. "schema": {
  919. "type": "object",
  920. "properties": {
  921. "title": {
  922. "type": "string"
  923. }
  924. }
  925. }
  926. }
  927. }
  928. }
  929. }
  930. },
  931. "/session/{sessionID}/children": {
  932. "get": {
  933. "operationId": "session.children",
  934. "parameters": [
  935. {
  936. "in": "query",
  937. "name": "directory",
  938. "schema": {
  939. "type": "string"
  940. }
  941. },
  942. {
  943. "in": "path",
  944. "name": "sessionID",
  945. "schema": {
  946. "type": "string",
  947. "pattern": "^ses.*"
  948. },
  949. "required": true
  950. }
  951. ],
  952. "description": "Get a session's children",
  953. "responses": {
  954. "200": {
  955. "description": "List of children",
  956. "content": {
  957. "application/json": {
  958. "schema": {
  959. "type": "array",
  960. "items": {
  961. "$ref": "#/components/schemas/Session"
  962. }
  963. }
  964. }
  965. }
  966. },
  967. "400": {
  968. "description": "Bad request",
  969. "content": {
  970. "application/json": {
  971. "schema": {
  972. "$ref": "#/components/schemas/BadRequestError"
  973. }
  974. }
  975. }
  976. },
  977. "404": {
  978. "description": "Not found",
  979. "content": {
  980. "application/json": {
  981. "schema": {
  982. "$ref": "#/components/schemas/NotFoundError"
  983. }
  984. }
  985. }
  986. }
  987. }
  988. }
  989. },
  990. "/session/{sessionID}/todo": {
  991. "get": {
  992. "operationId": "session.todo",
  993. "parameters": [
  994. {
  995. "in": "query",
  996. "name": "directory",
  997. "schema": {
  998. "type": "string"
  999. }
  1000. },
  1001. {
  1002. "in": "path",
  1003. "name": "sessionID",
  1004. "schema": {
  1005. "type": "string"
  1006. },
  1007. "required": true,
  1008. "description": "Session ID"
  1009. }
  1010. ],
  1011. "description": "Get the todo list for a session",
  1012. "responses": {
  1013. "200": {
  1014. "description": "Todo list",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "type": "array",
  1019. "items": {
  1020. "$ref": "#/components/schemas/Todo"
  1021. }
  1022. }
  1023. }
  1024. }
  1025. },
  1026. "400": {
  1027. "description": "Bad request",
  1028. "content": {
  1029. "application/json": {
  1030. "schema": {
  1031. "$ref": "#/components/schemas/BadRequestError"
  1032. }
  1033. }
  1034. }
  1035. },
  1036. "404": {
  1037. "description": "Not found",
  1038. "content": {
  1039. "application/json": {
  1040. "schema": {
  1041. "$ref": "#/components/schemas/NotFoundError"
  1042. }
  1043. }
  1044. }
  1045. }
  1046. }
  1047. }
  1048. },
  1049. "/session/{sessionID}/init": {
  1050. "post": {
  1051. "operationId": "session.init",
  1052. "parameters": [
  1053. {
  1054. "in": "query",
  1055. "name": "directory",
  1056. "schema": {
  1057. "type": "string"
  1058. }
  1059. },
  1060. {
  1061. "in": "path",
  1062. "name": "sessionID",
  1063. "schema": {
  1064. "type": "string"
  1065. },
  1066. "required": true,
  1067. "description": "Session ID"
  1068. }
  1069. ],
  1070. "description": "Analyze the app and create an AGENTS.md file",
  1071. "responses": {
  1072. "200": {
  1073. "description": "200",
  1074. "content": {
  1075. "application/json": {
  1076. "schema": {
  1077. "type": "boolean"
  1078. }
  1079. }
  1080. }
  1081. },
  1082. "400": {
  1083. "description": "Bad request",
  1084. "content": {
  1085. "application/json": {
  1086. "schema": {
  1087. "$ref": "#/components/schemas/BadRequestError"
  1088. }
  1089. }
  1090. }
  1091. },
  1092. "404": {
  1093. "description": "Not found",
  1094. "content": {
  1095. "application/json": {
  1096. "schema": {
  1097. "$ref": "#/components/schemas/NotFoundError"
  1098. }
  1099. }
  1100. }
  1101. }
  1102. },
  1103. "requestBody": {
  1104. "content": {
  1105. "application/json": {
  1106. "schema": {
  1107. "type": "object",
  1108. "properties": {
  1109. "modelID": {
  1110. "type": "string"
  1111. },
  1112. "providerID": {
  1113. "type": "string"
  1114. },
  1115. "messageID": {
  1116. "type": "string",
  1117. "pattern": "^msg.*"
  1118. }
  1119. },
  1120. "required": ["modelID", "providerID", "messageID"]
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. },
  1127. "/session/{sessionID}/fork": {
  1128. "post": {
  1129. "operationId": "session.fork",
  1130. "parameters": [
  1131. {
  1132. "in": "query",
  1133. "name": "directory",
  1134. "schema": {
  1135. "type": "string"
  1136. }
  1137. },
  1138. {
  1139. "in": "path",
  1140. "name": "sessionID",
  1141. "schema": {
  1142. "type": "string",
  1143. "pattern": "^ses.*"
  1144. },
  1145. "required": true
  1146. }
  1147. ],
  1148. "description": "Fork an existing session at a specific message",
  1149. "responses": {
  1150. "200": {
  1151. "description": "200",
  1152. "content": {
  1153. "application/json": {
  1154. "schema": {
  1155. "$ref": "#/components/schemas/Session"
  1156. }
  1157. }
  1158. }
  1159. }
  1160. },
  1161. "requestBody": {
  1162. "content": {
  1163. "application/json": {
  1164. "schema": {
  1165. "type": "object",
  1166. "properties": {
  1167. "messageID": {
  1168. "type": "string",
  1169. "pattern": "^msg.*"
  1170. }
  1171. }
  1172. }
  1173. }
  1174. }
  1175. }
  1176. }
  1177. },
  1178. "/session/{sessionID}/abort": {
  1179. "post": {
  1180. "operationId": "session.abort",
  1181. "parameters": [
  1182. {
  1183. "in": "query",
  1184. "name": "directory",
  1185. "schema": {
  1186. "type": "string"
  1187. }
  1188. },
  1189. {
  1190. "in": "path",
  1191. "name": "sessionID",
  1192. "schema": {
  1193. "type": "string"
  1194. },
  1195. "required": true
  1196. }
  1197. ],
  1198. "description": "Abort a session",
  1199. "responses": {
  1200. "200": {
  1201. "description": "Aborted session",
  1202. "content": {
  1203. "application/json": {
  1204. "schema": {
  1205. "type": "boolean"
  1206. }
  1207. }
  1208. }
  1209. },
  1210. "400": {
  1211. "description": "Bad request",
  1212. "content": {
  1213. "application/json": {
  1214. "schema": {
  1215. "$ref": "#/components/schemas/BadRequestError"
  1216. }
  1217. }
  1218. }
  1219. },
  1220. "404": {
  1221. "description": "Not found",
  1222. "content": {
  1223. "application/json": {
  1224. "schema": {
  1225. "$ref": "#/components/schemas/NotFoundError"
  1226. }
  1227. }
  1228. }
  1229. }
  1230. }
  1231. }
  1232. },
  1233. "/session/{sessionID}/share": {
  1234. "post": {
  1235. "operationId": "session.share",
  1236. "parameters": [
  1237. {
  1238. "in": "query",
  1239. "name": "directory",
  1240. "schema": {
  1241. "type": "string"
  1242. }
  1243. },
  1244. {
  1245. "in": "path",
  1246. "name": "sessionID",
  1247. "schema": {
  1248. "type": "string"
  1249. },
  1250. "required": true
  1251. }
  1252. ],
  1253. "description": "Share a session",
  1254. "responses": {
  1255. "200": {
  1256. "description": "Successfully shared session",
  1257. "content": {
  1258. "application/json": {
  1259. "schema": {
  1260. "$ref": "#/components/schemas/Session"
  1261. }
  1262. }
  1263. }
  1264. },
  1265. "400": {
  1266. "description": "Bad request",
  1267. "content": {
  1268. "application/json": {
  1269. "schema": {
  1270. "$ref": "#/components/schemas/BadRequestError"
  1271. }
  1272. }
  1273. }
  1274. },
  1275. "404": {
  1276. "description": "Not found",
  1277. "content": {
  1278. "application/json": {
  1279. "schema": {
  1280. "$ref": "#/components/schemas/NotFoundError"
  1281. }
  1282. }
  1283. }
  1284. }
  1285. }
  1286. },
  1287. "delete": {
  1288. "operationId": "session.unshare",
  1289. "parameters": [
  1290. {
  1291. "in": "query",
  1292. "name": "directory",
  1293. "schema": {
  1294. "type": "string"
  1295. }
  1296. },
  1297. {
  1298. "in": "path",
  1299. "name": "sessionID",
  1300. "schema": {
  1301. "type": "string",
  1302. "pattern": "^ses.*"
  1303. },
  1304. "required": true
  1305. }
  1306. ],
  1307. "description": "Unshare the session",
  1308. "responses": {
  1309. "200": {
  1310. "description": "Successfully unshared session",
  1311. "content": {
  1312. "application/json": {
  1313. "schema": {
  1314. "$ref": "#/components/schemas/Session"
  1315. }
  1316. }
  1317. }
  1318. },
  1319. "400": {
  1320. "description": "Bad request",
  1321. "content": {
  1322. "application/json": {
  1323. "schema": {
  1324. "$ref": "#/components/schemas/BadRequestError"
  1325. }
  1326. }
  1327. }
  1328. },
  1329. "404": {
  1330. "description": "Not found",
  1331. "content": {
  1332. "application/json": {
  1333. "schema": {
  1334. "$ref": "#/components/schemas/NotFoundError"
  1335. }
  1336. }
  1337. }
  1338. }
  1339. }
  1340. }
  1341. },
  1342. "/session/{sessionID}/diff": {
  1343. "get": {
  1344. "operationId": "session.diff",
  1345. "parameters": [
  1346. {
  1347. "in": "query",
  1348. "name": "directory",
  1349. "schema": {
  1350. "type": "string"
  1351. }
  1352. },
  1353. {
  1354. "in": "path",
  1355. "name": "sessionID",
  1356. "schema": {
  1357. "type": "string"
  1358. },
  1359. "required": true,
  1360. "description": "Session ID"
  1361. },
  1362. {
  1363. "in": "query",
  1364. "name": "messageID",
  1365. "schema": {
  1366. "type": "string",
  1367. "pattern": "^msg.*"
  1368. }
  1369. }
  1370. ],
  1371. "description": "Get the diff for this session",
  1372. "responses": {
  1373. "200": {
  1374. "description": "List of diffs",
  1375. "content": {
  1376. "application/json": {
  1377. "schema": {
  1378. "type": "array",
  1379. "items": {
  1380. "$ref": "#/components/schemas/FileDiff"
  1381. }
  1382. }
  1383. }
  1384. }
  1385. },
  1386. "400": {
  1387. "description": "Bad request",
  1388. "content": {
  1389. "application/json": {
  1390. "schema": {
  1391. "$ref": "#/components/schemas/BadRequestError"
  1392. }
  1393. }
  1394. }
  1395. },
  1396. "404": {
  1397. "description": "Not found",
  1398. "content": {
  1399. "application/json": {
  1400. "schema": {
  1401. "$ref": "#/components/schemas/NotFoundError"
  1402. }
  1403. }
  1404. }
  1405. }
  1406. }
  1407. }
  1408. },
  1409. "/session/{sessionID}/summarize": {
  1410. "post": {
  1411. "operationId": "session.summarize",
  1412. "parameters": [
  1413. {
  1414. "in": "query",
  1415. "name": "directory",
  1416. "schema": {
  1417. "type": "string"
  1418. }
  1419. },
  1420. {
  1421. "in": "path",
  1422. "name": "sessionID",
  1423. "schema": {
  1424. "type": "string"
  1425. },
  1426. "required": true,
  1427. "description": "Session ID"
  1428. }
  1429. ],
  1430. "description": "Summarize the session",
  1431. "responses": {
  1432. "200": {
  1433. "description": "Summarized session",
  1434. "content": {
  1435. "application/json": {
  1436. "schema": {
  1437. "type": "boolean"
  1438. }
  1439. }
  1440. }
  1441. },
  1442. "400": {
  1443. "description": "Bad request",
  1444. "content": {
  1445. "application/json": {
  1446. "schema": {
  1447. "$ref": "#/components/schemas/BadRequestError"
  1448. }
  1449. }
  1450. }
  1451. },
  1452. "404": {
  1453. "description": "Not found",
  1454. "content": {
  1455. "application/json": {
  1456. "schema": {
  1457. "$ref": "#/components/schemas/NotFoundError"
  1458. }
  1459. }
  1460. }
  1461. }
  1462. },
  1463. "requestBody": {
  1464. "content": {
  1465. "application/json": {
  1466. "schema": {
  1467. "type": "object",
  1468. "properties": {
  1469. "providerID": {
  1470. "type": "string"
  1471. },
  1472. "modelID": {
  1473. "type": "string"
  1474. }
  1475. },
  1476. "required": ["providerID", "modelID"]
  1477. }
  1478. }
  1479. }
  1480. }
  1481. }
  1482. },
  1483. "/session/{sessionID}/message": {
  1484. "get": {
  1485. "operationId": "session.messages",
  1486. "parameters": [
  1487. {
  1488. "in": "query",
  1489. "name": "directory",
  1490. "schema": {
  1491. "type": "string"
  1492. }
  1493. },
  1494. {
  1495. "in": "path",
  1496. "name": "sessionID",
  1497. "schema": {
  1498. "type": "string"
  1499. },
  1500. "required": true,
  1501. "description": "Session ID"
  1502. },
  1503. {
  1504. "in": "query",
  1505. "name": "limit",
  1506. "schema": {
  1507. "type": "number"
  1508. }
  1509. }
  1510. ],
  1511. "description": "List messages for a session",
  1512. "responses": {
  1513. "200": {
  1514. "description": "List of messages",
  1515. "content": {
  1516. "application/json": {
  1517. "schema": {
  1518. "type": "array",
  1519. "items": {
  1520. "type": "object",
  1521. "properties": {
  1522. "info": {
  1523. "$ref": "#/components/schemas/Message"
  1524. },
  1525. "parts": {
  1526. "type": "array",
  1527. "items": {
  1528. "$ref": "#/components/schemas/Part"
  1529. }
  1530. }
  1531. },
  1532. "required": ["info", "parts"]
  1533. }
  1534. }
  1535. }
  1536. }
  1537. },
  1538. "400": {
  1539. "description": "Bad request",
  1540. "content": {
  1541. "application/json": {
  1542. "schema": {
  1543. "$ref": "#/components/schemas/BadRequestError"
  1544. }
  1545. }
  1546. }
  1547. },
  1548. "404": {
  1549. "description": "Not found",
  1550. "content": {
  1551. "application/json": {
  1552. "schema": {
  1553. "$ref": "#/components/schemas/NotFoundError"
  1554. }
  1555. }
  1556. }
  1557. }
  1558. }
  1559. },
  1560. "post": {
  1561. "operationId": "session.prompt",
  1562. "parameters": [
  1563. {
  1564. "in": "query",
  1565. "name": "directory",
  1566. "schema": {
  1567. "type": "string"
  1568. }
  1569. },
  1570. {
  1571. "in": "path",
  1572. "name": "sessionID",
  1573. "schema": {
  1574. "type": "string"
  1575. },
  1576. "required": true,
  1577. "description": "Session ID"
  1578. }
  1579. ],
  1580. "description": "Create and send a new message to a session",
  1581. "responses": {
  1582. "200": {
  1583. "description": "Created message",
  1584. "content": {
  1585. "application/json": {
  1586. "schema": {
  1587. "type": "object",
  1588. "properties": {
  1589. "info": {
  1590. "$ref": "#/components/schemas/AssistantMessage"
  1591. },
  1592. "parts": {
  1593. "type": "array",
  1594. "items": {
  1595. "$ref": "#/components/schemas/Part"
  1596. }
  1597. }
  1598. },
  1599. "required": ["info", "parts"]
  1600. }
  1601. }
  1602. }
  1603. },
  1604. "400": {
  1605. "description": "Bad request",
  1606. "content": {
  1607. "application/json": {
  1608. "schema": {
  1609. "$ref": "#/components/schemas/BadRequestError"
  1610. }
  1611. }
  1612. }
  1613. },
  1614. "404": {
  1615. "description": "Not found",
  1616. "content": {
  1617. "application/json": {
  1618. "schema": {
  1619. "$ref": "#/components/schemas/NotFoundError"
  1620. }
  1621. }
  1622. }
  1623. }
  1624. },
  1625. "requestBody": {
  1626. "content": {
  1627. "application/json": {
  1628. "schema": {
  1629. "type": "object",
  1630. "properties": {
  1631. "messageID": {
  1632. "type": "string",
  1633. "pattern": "^msg.*"
  1634. },
  1635. "model": {
  1636. "type": "object",
  1637. "properties": {
  1638. "providerID": {
  1639. "type": "string"
  1640. },
  1641. "modelID": {
  1642. "type": "string"
  1643. }
  1644. },
  1645. "required": ["providerID", "modelID"]
  1646. },
  1647. "agent": {
  1648. "type": "string"
  1649. },
  1650. "noReply": {
  1651. "type": "boolean"
  1652. },
  1653. "system": {
  1654. "type": "string"
  1655. },
  1656. "tools": {
  1657. "type": "object",
  1658. "propertyNames": {
  1659. "type": "string"
  1660. },
  1661. "additionalProperties": {
  1662. "type": "boolean"
  1663. }
  1664. },
  1665. "parts": {
  1666. "type": "array",
  1667. "items": {
  1668. "anyOf": [
  1669. {
  1670. "$ref": "#/components/schemas/TextPartInput"
  1671. },
  1672. {
  1673. "$ref": "#/components/schemas/FilePartInput"
  1674. },
  1675. {
  1676. "$ref": "#/components/schemas/AgentPartInput"
  1677. },
  1678. {
  1679. "$ref": "#/components/schemas/SubtaskPartInput"
  1680. }
  1681. ]
  1682. }
  1683. }
  1684. },
  1685. "required": ["parts"]
  1686. }
  1687. }
  1688. }
  1689. }
  1690. }
  1691. },
  1692. "/session/{sessionID}/message/{messageID}": {
  1693. "get": {
  1694. "operationId": "session.message",
  1695. "parameters": [
  1696. {
  1697. "in": "query",
  1698. "name": "directory",
  1699. "schema": {
  1700. "type": "string"
  1701. }
  1702. },
  1703. {
  1704. "in": "path",
  1705. "name": "sessionID",
  1706. "schema": {
  1707. "type": "string"
  1708. },
  1709. "required": true,
  1710. "description": "Session ID"
  1711. },
  1712. {
  1713. "in": "path",
  1714. "name": "messageID",
  1715. "schema": {
  1716. "type": "string"
  1717. },
  1718. "required": true,
  1719. "description": "Message ID"
  1720. }
  1721. ],
  1722. "description": "Get a message from a session",
  1723. "responses": {
  1724. "200": {
  1725. "description": "Message",
  1726. "content": {
  1727. "application/json": {
  1728. "schema": {
  1729. "type": "object",
  1730. "properties": {
  1731. "info": {
  1732. "$ref": "#/components/schemas/Message"
  1733. },
  1734. "parts": {
  1735. "type": "array",
  1736. "items": {
  1737. "$ref": "#/components/schemas/Part"
  1738. }
  1739. }
  1740. },
  1741. "required": ["info", "parts"]
  1742. }
  1743. }
  1744. }
  1745. },
  1746. "400": {
  1747. "description": "Bad request",
  1748. "content": {
  1749. "application/json": {
  1750. "schema": {
  1751. "$ref": "#/components/schemas/BadRequestError"
  1752. }
  1753. }
  1754. }
  1755. },
  1756. "404": {
  1757. "description": "Not found",
  1758. "content": {
  1759. "application/json": {
  1760. "schema": {
  1761. "$ref": "#/components/schemas/NotFoundError"
  1762. }
  1763. }
  1764. }
  1765. }
  1766. }
  1767. }
  1768. },
  1769. "/session/{sessionID}/prompt_async": {
  1770. "post": {
  1771. "operationId": "session.prompt_async",
  1772. "parameters": [
  1773. {
  1774. "in": "query",
  1775. "name": "directory",
  1776. "schema": {
  1777. "type": "string"
  1778. }
  1779. },
  1780. {
  1781. "in": "path",
  1782. "name": "sessionID",
  1783. "schema": {
  1784. "type": "string"
  1785. },
  1786. "required": true,
  1787. "description": "Session ID"
  1788. }
  1789. ],
  1790. "description": "Create and send a new message to a session, start if needed and return immediately",
  1791. "responses": {
  1792. "204": {
  1793. "description": "Prompt accepted"
  1794. },
  1795. "400": {
  1796. "description": "Bad request",
  1797. "content": {
  1798. "application/json": {
  1799. "schema": {
  1800. "$ref": "#/components/schemas/BadRequestError"
  1801. }
  1802. }
  1803. }
  1804. },
  1805. "404": {
  1806. "description": "Not found",
  1807. "content": {
  1808. "application/json": {
  1809. "schema": {
  1810. "$ref": "#/components/schemas/NotFoundError"
  1811. }
  1812. }
  1813. }
  1814. }
  1815. },
  1816. "requestBody": {
  1817. "content": {
  1818. "application/json": {
  1819. "schema": {
  1820. "type": "object",
  1821. "properties": {
  1822. "messageID": {
  1823. "type": "string",
  1824. "pattern": "^msg.*"
  1825. },
  1826. "model": {
  1827. "type": "object",
  1828. "properties": {
  1829. "providerID": {
  1830. "type": "string"
  1831. },
  1832. "modelID": {
  1833. "type": "string"
  1834. }
  1835. },
  1836. "required": ["providerID", "modelID"]
  1837. },
  1838. "agent": {
  1839. "type": "string"
  1840. },
  1841. "noReply": {
  1842. "type": "boolean"
  1843. },
  1844. "system": {
  1845. "type": "string"
  1846. },
  1847. "tools": {
  1848. "type": "object",
  1849. "propertyNames": {
  1850. "type": "string"
  1851. },
  1852. "additionalProperties": {
  1853. "type": "boolean"
  1854. }
  1855. },
  1856. "parts": {
  1857. "type": "array",
  1858. "items": {
  1859. "anyOf": [
  1860. {
  1861. "$ref": "#/components/schemas/TextPartInput"
  1862. },
  1863. {
  1864. "$ref": "#/components/schemas/FilePartInput"
  1865. },
  1866. {
  1867. "$ref": "#/components/schemas/AgentPartInput"
  1868. },
  1869. {
  1870. "$ref": "#/components/schemas/SubtaskPartInput"
  1871. }
  1872. ]
  1873. }
  1874. }
  1875. },
  1876. "required": ["parts"]
  1877. }
  1878. }
  1879. }
  1880. }
  1881. }
  1882. },
  1883. "/session/{sessionID}/command": {
  1884. "post": {
  1885. "operationId": "session.command",
  1886. "parameters": [
  1887. {
  1888. "in": "query",
  1889. "name": "directory",
  1890. "schema": {
  1891. "type": "string"
  1892. }
  1893. },
  1894. {
  1895. "in": "path",
  1896. "name": "sessionID",
  1897. "schema": {
  1898. "type": "string"
  1899. },
  1900. "required": true,
  1901. "description": "Session ID"
  1902. }
  1903. ],
  1904. "description": "Send a new command to a session",
  1905. "responses": {
  1906. "200": {
  1907. "description": "Created message",
  1908. "content": {
  1909. "application/json": {
  1910. "schema": {
  1911. "type": "object",
  1912. "properties": {
  1913. "info": {
  1914. "$ref": "#/components/schemas/AssistantMessage"
  1915. },
  1916. "parts": {
  1917. "type": "array",
  1918. "items": {
  1919. "$ref": "#/components/schemas/Part"
  1920. }
  1921. }
  1922. },
  1923. "required": ["info", "parts"]
  1924. }
  1925. }
  1926. }
  1927. },
  1928. "400": {
  1929. "description": "Bad request",
  1930. "content": {
  1931. "application/json": {
  1932. "schema": {
  1933. "$ref": "#/components/schemas/BadRequestError"
  1934. }
  1935. }
  1936. }
  1937. },
  1938. "404": {
  1939. "description": "Not found",
  1940. "content": {
  1941. "application/json": {
  1942. "schema": {
  1943. "$ref": "#/components/schemas/NotFoundError"
  1944. }
  1945. }
  1946. }
  1947. }
  1948. },
  1949. "requestBody": {
  1950. "content": {
  1951. "application/json": {
  1952. "schema": {
  1953. "type": "object",
  1954. "properties": {
  1955. "messageID": {
  1956. "type": "string",
  1957. "pattern": "^msg.*"
  1958. },
  1959. "agent": {
  1960. "type": "string"
  1961. },
  1962. "model": {
  1963. "type": "string"
  1964. },
  1965. "arguments": {
  1966. "type": "string"
  1967. },
  1968. "command": {
  1969. "type": "string"
  1970. }
  1971. },
  1972. "required": ["arguments", "command"]
  1973. }
  1974. }
  1975. }
  1976. }
  1977. }
  1978. },
  1979. "/session/{sessionID}/shell": {
  1980. "post": {
  1981. "operationId": "session.shell",
  1982. "parameters": [
  1983. {
  1984. "in": "query",
  1985. "name": "directory",
  1986. "schema": {
  1987. "type": "string"
  1988. }
  1989. },
  1990. {
  1991. "in": "path",
  1992. "name": "sessionID",
  1993. "schema": {
  1994. "type": "string"
  1995. },
  1996. "required": true,
  1997. "description": "Session ID"
  1998. }
  1999. ],
  2000. "description": "Run a shell command",
  2001. "responses": {
  2002. "200": {
  2003. "description": "Created message",
  2004. "content": {
  2005. "application/json": {
  2006. "schema": {
  2007. "$ref": "#/components/schemas/AssistantMessage"
  2008. }
  2009. }
  2010. }
  2011. },
  2012. "400": {
  2013. "description": "Bad request",
  2014. "content": {
  2015. "application/json": {
  2016. "schema": {
  2017. "$ref": "#/components/schemas/BadRequestError"
  2018. }
  2019. }
  2020. }
  2021. },
  2022. "404": {
  2023. "description": "Not found",
  2024. "content": {
  2025. "application/json": {
  2026. "schema": {
  2027. "$ref": "#/components/schemas/NotFoundError"
  2028. }
  2029. }
  2030. }
  2031. }
  2032. },
  2033. "requestBody": {
  2034. "content": {
  2035. "application/json": {
  2036. "schema": {
  2037. "type": "object",
  2038. "properties": {
  2039. "agent": {
  2040. "type": "string"
  2041. },
  2042. "model": {
  2043. "type": "object",
  2044. "properties": {
  2045. "providerID": {
  2046. "type": "string"
  2047. },
  2048. "modelID": {
  2049. "type": "string"
  2050. }
  2051. },
  2052. "required": ["providerID", "modelID"]
  2053. },
  2054. "command": {
  2055. "type": "string"
  2056. }
  2057. },
  2058. "required": ["agent", "command"]
  2059. }
  2060. }
  2061. }
  2062. }
  2063. }
  2064. },
  2065. "/session/{sessionID}/revert": {
  2066. "post": {
  2067. "operationId": "session.revert",
  2068. "parameters": [
  2069. {
  2070. "in": "query",
  2071. "name": "directory",
  2072. "schema": {
  2073. "type": "string"
  2074. }
  2075. },
  2076. {
  2077. "in": "path",
  2078. "name": "sessionID",
  2079. "schema": {
  2080. "type": "string"
  2081. },
  2082. "required": true
  2083. }
  2084. ],
  2085. "description": "Revert a message",
  2086. "responses": {
  2087. "200": {
  2088. "description": "Updated session",
  2089. "content": {
  2090. "application/json": {
  2091. "schema": {
  2092. "$ref": "#/components/schemas/Session"
  2093. }
  2094. }
  2095. }
  2096. },
  2097. "400": {
  2098. "description": "Bad request",
  2099. "content": {
  2100. "application/json": {
  2101. "schema": {
  2102. "$ref": "#/components/schemas/BadRequestError"
  2103. }
  2104. }
  2105. }
  2106. },
  2107. "404": {
  2108. "description": "Not found",
  2109. "content": {
  2110. "application/json": {
  2111. "schema": {
  2112. "$ref": "#/components/schemas/NotFoundError"
  2113. }
  2114. }
  2115. }
  2116. }
  2117. },
  2118. "requestBody": {
  2119. "content": {
  2120. "application/json": {
  2121. "schema": {
  2122. "type": "object",
  2123. "properties": {
  2124. "messageID": {
  2125. "type": "string",
  2126. "pattern": "^msg.*"
  2127. },
  2128. "partID": {
  2129. "type": "string",
  2130. "pattern": "^prt.*"
  2131. }
  2132. },
  2133. "required": ["messageID"]
  2134. }
  2135. }
  2136. }
  2137. }
  2138. }
  2139. },
  2140. "/session/{sessionID}/unrevert": {
  2141. "post": {
  2142. "operationId": "session.unrevert",
  2143. "parameters": [
  2144. {
  2145. "in": "query",
  2146. "name": "directory",
  2147. "schema": {
  2148. "type": "string"
  2149. }
  2150. },
  2151. {
  2152. "in": "path",
  2153. "name": "sessionID",
  2154. "schema": {
  2155. "type": "string"
  2156. },
  2157. "required": true
  2158. }
  2159. ],
  2160. "description": "Restore all reverted messages",
  2161. "responses": {
  2162. "200": {
  2163. "description": "Updated session",
  2164. "content": {
  2165. "application/json": {
  2166. "schema": {
  2167. "$ref": "#/components/schemas/Session"
  2168. }
  2169. }
  2170. }
  2171. },
  2172. "400": {
  2173. "description": "Bad request",
  2174. "content": {
  2175. "application/json": {
  2176. "schema": {
  2177. "$ref": "#/components/schemas/BadRequestError"
  2178. }
  2179. }
  2180. }
  2181. },
  2182. "404": {
  2183. "description": "Not found",
  2184. "content": {
  2185. "application/json": {
  2186. "schema": {
  2187. "$ref": "#/components/schemas/NotFoundError"
  2188. }
  2189. }
  2190. }
  2191. }
  2192. }
  2193. }
  2194. },
  2195. "/session/{sessionID}/permissions/{permissionID}": {
  2196. "post": {
  2197. "operationId": "permission.respond",
  2198. "parameters": [
  2199. {
  2200. "in": "query",
  2201. "name": "directory",
  2202. "schema": {
  2203. "type": "string"
  2204. }
  2205. },
  2206. {
  2207. "in": "path",
  2208. "name": "sessionID",
  2209. "schema": {
  2210. "type": "string"
  2211. },
  2212. "required": true
  2213. },
  2214. {
  2215. "in": "path",
  2216. "name": "permissionID",
  2217. "schema": {
  2218. "type": "string"
  2219. },
  2220. "required": true
  2221. }
  2222. ],
  2223. "description": "Respond to a permission request",
  2224. "responses": {
  2225. "200": {
  2226. "description": "Permission processed successfully",
  2227. "content": {
  2228. "application/json": {
  2229. "schema": {
  2230. "type": "boolean"
  2231. }
  2232. }
  2233. }
  2234. },
  2235. "400": {
  2236. "description": "Bad request",
  2237. "content": {
  2238. "application/json": {
  2239. "schema": {
  2240. "$ref": "#/components/schemas/BadRequestError"
  2241. }
  2242. }
  2243. }
  2244. },
  2245. "404": {
  2246. "description": "Not found",
  2247. "content": {
  2248. "application/json": {
  2249. "schema": {
  2250. "$ref": "#/components/schemas/NotFoundError"
  2251. }
  2252. }
  2253. }
  2254. }
  2255. },
  2256. "requestBody": {
  2257. "content": {
  2258. "application/json": {
  2259. "schema": {
  2260. "type": "object",
  2261. "properties": {
  2262. "response": {
  2263. "type": "string",
  2264. "enum": ["once", "always", "reject"]
  2265. }
  2266. },
  2267. "required": ["response"]
  2268. }
  2269. }
  2270. }
  2271. }
  2272. }
  2273. },
  2274. "/command": {
  2275. "get": {
  2276. "operationId": "command.list",
  2277. "parameters": [
  2278. {
  2279. "in": "query",
  2280. "name": "directory",
  2281. "schema": {
  2282. "type": "string"
  2283. }
  2284. }
  2285. ],
  2286. "description": "List all commands",
  2287. "responses": {
  2288. "200": {
  2289. "description": "List of commands",
  2290. "content": {
  2291. "application/json": {
  2292. "schema": {
  2293. "type": "array",
  2294. "items": {
  2295. "$ref": "#/components/schemas/Command"
  2296. }
  2297. }
  2298. }
  2299. }
  2300. }
  2301. }
  2302. }
  2303. },
  2304. "/config/providers": {
  2305. "get": {
  2306. "operationId": "config.providers",
  2307. "parameters": [
  2308. {
  2309. "in": "query",
  2310. "name": "directory",
  2311. "schema": {
  2312. "type": "string"
  2313. }
  2314. }
  2315. ],
  2316. "description": "List all providers",
  2317. "responses": {
  2318. "200": {
  2319. "description": "List of providers",
  2320. "content": {
  2321. "application/json": {
  2322. "schema": {
  2323. "type": "object",
  2324. "properties": {
  2325. "providers": {
  2326. "type": "array",
  2327. "items": {
  2328. "$ref": "#/components/schemas/Provider"
  2329. }
  2330. },
  2331. "default": {
  2332. "type": "object",
  2333. "propertyNames": {
  2334. "type": "string"
  2335. },
  2336. "additionalProperties": {
  2337. "type": "string"
  2338. }
  2339. }
  2340. },
  2341. "required": ["providers", "default"]
  2342. }
  2343. }
  2344. }
  2345. }
  2346. }
  2347. }
  2348. },
  2349. "/provider": {
  2350. "get": {
  2351. "operationId": "provider.list",
  2352. "parameters": [
  2353. {
  2354. "in": "query",
  2355. "name": "directory",
  2356. "schema": {
  2357. "type": "string"
  2358. }
  2359. }
  2360. ],
  2361. "description": "List all providers",
  2362. "responses": {
  2363. "200": {
  2364. "description": "List of providers",
  2365. "content": {
  2366. "application/json": {
  2367. "schema": {
  2368. "type": "object",
  2369. "properties": {
  2370. "all": {
  2371. "type": "array",
  2372. "items": {
  2373. "type": "object",
  2374. "properties": {
  2375. "api": {
  2376. "type": "string"
  2377. },
  2378. "name": {
  2379. "type": "string"
  2380. },
  2381. "env": {
  2382. "type": "array",
  2383. "items": {
  2384. "type": "string"
  2385. }
  2386. },
  2387. "id": {
  2388. "type": "string"
  2389. },
  2390. "npm": {
  2391. "type": "string"
  2392. },
  2393. "models": {
  2394. "type": "object",
  2395. "propertyNames": {
  2396. "type": "string"
  2397. },
  2398. "additionalProperties": {
  2399. "type": "object",
  2400. "properties": {
  2401. "id": {
  2402. "type": "string"
  2403. },
  2404. "name": {
  2405. "type": "string"
  2406. },
  2407. "release_date": {
  2408. "type": "string"
  2409. },
  2410. "attachment": {
  2411. "type": "boolean"
  2412. },
  2413. "reasoning": {
  2414. "type": "boolean"
  2415. },
  2416. "temperature": {
  2417. "type": "boolean"
  2418. },
  2419. "tool_call": {
  2420. "type": "boolean"
  2421. },
  2422. "cost": {
  2423. "type": "object",
  2424. "properties": {
  2425. "input": {
  2426. "type": "number"
  2427. },
  2428. "output": {
  2429. "type": "number"
  2430. },
  2431. "cache_read": {
  2432. "type": "number"
  2433. },
  2434. "cache_write": {
  2435. "type": "number"
  2436. },
  2437. "context_over_200k": {
  2438. "type": "object",
  2439. "properties": {
  2440. "input": {
  2441. "type": "number"
  2442. },
  2443. "output": {
  2444. "type": "number"
  2445. },
  2446. "cache_read": {
  2447. "type": "number"
  2448. },
  2449. "cache_write": {
  2450. "type": "number"
  2451. }
  2452. },
  2453. "required": ["input", "output"]
  2454. }
  2455. },
  2456. "required": ["input", "output"]
  2457. },
  2458. "limit": {
  2459. "type": "object",
  2460. "properties": {
  2461. "context": {
  2462. "type": "number"
  2463. },
  2464. "output": {
  2465. "type": "number"
  2466. }
  2467. },
  2468. "required": ["context", "output"]
  2469. },
  2470. "modalities": {
  2471. "type": "object",
  2472. "properties": {
  2473. "input": {
  2474. "type": "array",
  2475. "items": {
  2476. "type": "string",
  2477. "enum": ["text", "audio", "image", "video", "pdf"]
  2478. }
  2479. },
  2480. "output": {
  2481. "type": "array",
  2482. "items": {
  2483. "type": "string",
  2484. "enum": ["text", "audio", "image", "video", "pdf"]
  2485. }
  2486. }
  2487. },
  2488. "required": ["input", "output"]
  2489. },
  2490. "experimental": {
  2491. "type": "boolean"
  2492. },
  2493. "status": {
  2494. "type": "string",
  2495. "enum": ["alpha", "beta", "deprecated"]
  2496. },
  2497. "options": {
  2498. "type": "object",
  2499. "propertyNames": {
  2500. "type": "string"
  2501. },
  2502. "additionalProperties": {}
  2503. },
  2504. "headers": {
  2505. "type": "object",
  2506. "propertyNames": {
  2507. "type": "string"
  2508. },
  2509. "additionalProperties": {
  2510. "type": "string"
  2511. }
  2512. },
  2513. "provider": {
  2514. "type": "object",
  2515. "properties": {
  2516. "npm": {
  2517. "type": "string"
  2518. }
  2519. },
  2520. "required": ["npm"]
  2521. }
  2522. },
  2523. "required": [
  2524. "id",
  2525. "name",
  2526. "release_date",
  2527. "attachment",
  2528. "reasoning",
  2529. "temperature",
  2530. "tool_call",
  2531. "limit",
  2532. "options"
  2533. ]
  2534. }
  2535. }
  2536. },
  2537. "required": ["name", "env", "id", "models"]
  2538. }
  2539. },
  2540. "default": {
  2541. "type": "object",
  2542. "propertyNames": {
  2543. "type": "string"
  2544. },
  2545. "additionalProperties": {
  2546. "type": "string"
  2547. }
  2548. },
  2549. "connected": {
  2550. "type": "array",
  2551. "items": {
  2552. "type": "string"
  2553. }
  2554. }
  2555. },
  2556. "required": ["all", "default", "connected"]
  2557. }
  2558. }
  2559. }
  2560. }
  2561. }
  2562. }
  2563. },
  2564. "/provider/auth": {
  2565. "get": {
  2566. "operationId": "provider.auth",
  2567. "parameters": [
  2568. {
  2569. "in": "query",
  2570. "name": "directory",
  2571. "schema": {
  2572. "type": "string"
  2573. }
  2574. }
  2575. ],
  2576. "description": "Get provider authentication methods",
  2577. "responses": {
  2578. "200": {
  2579. "description": "Provider auth methods",
  2580. "content": {
  2581. "application/json": {
  2582. "schema": {
  2583. "type": "object",
  2584. "propertyNames": {
  2585. "type": "string"
  2586. },
  2587. "additionalProperties": {
  2588. "type": "array",
  2589. "items": {
  2590. "$ref": "#/components/schemas/ProviderAuthMethod"
  2591. }
  2592. }
  2593. }
  2594. }
  2595. }
  2596. }
  2597. }
  2598. }
  2599. },
  2600. "/provider/{providerID}/oauth/authorize": {
  2601. "post": {
  2602. "operationId": "provider.oauth.authorize",
  2603. "parameters": [
  2604. {
  2605. "in": "query",
  2606. "name": "directory",
  2607. "schema": {
  2608. "type": "string"
  2609. }
  2610. },
  2611. {
  2612. "in": "path",
  2613. "name": "providerID",
  2614. "schema": {
  2615. "type": "string"
  2616. },
  2617. "required": true,
  2618. "description": "Provider ID"
  2619. }
  2620. ],
  2621. "description": "Authorize a provider using OAuth",
  2622. "responses": {
  2623. "200": {
  2624. "description": "Authorization URL and method",
  2625. "content": {
  2626. "application/json": {
  2627. "schema": {
  2628. "$ref": "#/components/schemas/ProviderAuthAuthorization"
  2629. }
  2630. }
  2631. }
  2632. },
  2633. "400": {
  2634. "description": "Bad request",
  2635. "content": {
  2636. "application/json": {
  2637. "schema": {
  2638. "$ref": "#/components/schemas/BadRequestError"
  2639. }
  2640. }
  2641. }
  2642. }
  2643. },
  2644. "requestBody": {
  2645. "content": {
  2646. "application/json": {
  2647. "schema": {
  2648. "type": "object",
  2649. "properties": {
  2650. "method": {
  2651. "description": "Auth method index",
  2652. "type": "number"
  2653. }
  2654. },
  2655. "required": ["method"]
  2656. }
  2657. }
  2658. }
  2659. }
  2660. }
  2661. },
  2662. "/provider/{providerID}/oauth/callback": {
  2663. "post": {
  2664. "operationId": "provider.oauth.callback",
  2665. "parameters": [
  2666. {
  2667. "in": "query",
  2668. "name": "directory",
  2669. "schema": {
  2670. "type": "string"
  2671. }
  2672. },
  2673. {
  2674. "in": "path",
  2675. "name": "providerID",
  2676. "schema": {
  2677. "type": "string"
  2678. },
  2679. "required": true,
  2680. "description": "Provider ID"
  2681. }
  2682. ],
  2683. "description": "Handle OAuth callback for a provider",
  2684. "responses": {
  2685. "200": {
  2686. "description": "OAuth callback processed successfully",
  2687. "content": {
  2688. "application/json": {
  2689. "schema": {
  2690. "type": "boolean"
  2691. }
  2692. }
  2693. }
  2694. },
  2695. "400": {
  2696. "description": "Bad request",
  2697. "content": {
  2698. "application/json": {
  2699. "schema": {
  2700. "$ref": "#/components/schemas/BadRequestError"
  2701. }
  2702. }
  2703. }
  2704. }
  2705. },
  2706. "requestBody": {
  2707. "content": {
  2708. "application/json": {
  2709. "schema": {
  2710. "type": "object",
  2711. "properties": {
  2712. "method": {
  2713. "description": "Auth method index",
  2714. "type": "number"
  2715. },
  2716. "code": {
  2717. "description": "OAuth authorization code",
  2718. "type": "string"
  2719. }
  2720. },
  2721. "required": ["method"]
  2722. }
  2723. }
  2724. }
  2725. }
  2726. }
  2727. },
  2728. "/find": {
  2729. "get": {
  2730. "operationId": "find.text",
  2731. "parameters": [
  2732. {
  2733. "in": "query",
  2734. "name": "directory",
  2735. "schema": {
  2736. "type": "string"
  2737. }
  2738. },
  2739. {
  2740. "in": "query",
  2741. "name": "pattern",
  2742. "schema": {
  2743. "type": "string"
  2744. },
  2745. "required": true
  2746. }
  2747. ],
  2748. "description": "Find text in files",
  2749. "responses": {
  2750. "200": {
  2751. "description": "Matches",
  2752. "content": {
  2753. "application/json": {
  2754. "schema": {
  2755. "type": "array",
  2756. "items": {
  2757. "type": "object",
  2758. "properties": {
  2759. "path": {
  2760. "type": "object",
  2761. "properties": {
  2762. "text": {
  2763. "type": "string"
  2764. }
  2765. },
  2766. "required": ["text"]
  2767. },
  2768. "lines": {
  2769. "type": "object",
  2770. "properties": {
  2771. "text": {
  2772. "type": "string"
  2773. }
  2774. },
  2775. "required": ["text"]
  2776. },
  2777. "line_number": {
  2778. "type": "number"
  2779. },
  2780. "absolute_offset": {
  2781. "type": "number"
  2782. },
  2783. "submatches": {
  2784. "type": "array",
  2785. "items": {
  2786. "type": "object",
  2787. "properties": {
  2788. "match": {
  2789. "type": "object",
  2790. "properties": {
  2791. "text": {
  2792. "type": "string"
  2793. }
  2794. },
  2795. "required": ["text"]
  2796. },
  2797. "start": {
  2798. "type": "number"
  2799. },
  2800. "end": {
  2801. "type": "number"
  2802. }
  2803. },
  2804. "required": ["match", "start", "end"]
  2805. }
  2806. }
  2807. },
  2808. "required": ["path", "lines", "line_number", "absolute_offset", "submatches"]
  2809. }
  2810. }
  2811. }
  2812. }
  2813. }
  2814. }
  2815. }
  2816. },
  2817. "/find/file": {
  2818. "get": {
  2819. "operationId": "find.files",
  2820. "parameters": [
  2821. {
  2822. "in": "query",
  2823. "name": "directory",
  2824. "schema": {
  2825. "type": "string"
  2826. }
  2827. },
  2828. {
  2829. "in": "query",
  2830. "name": "query",
  2831. "schema": {
  2832. "type": "string"
  2833. },
  2834. "required": true
  2835. },
  2836. {
  2837. "in": "query",
  2838. "name": "dirs",
  2839. "schema": {
  2840. "type": "string",
  2841. "enum": ["true", "false"]
  2842. }
  2843. }
  2844. ],
  2845. "description": "Find files",
  2846. "responses": {
  2847. "200": {
  2848. "description": "File paths",
  2849. "content": {
  2850. "application/json": {
  2851. "schema": {
  2852. "type": "array",
  2853. "items": {
  2854. "type": "string"
  2855. }
  2856. }
  2857. }
  2858. }
  2859. }
  2860. }
  2861. }
  2862. },
  2863. "/find/symbol": {
  2864. "get": {
  2865. "operationId": "find.symbols",
  2866. "parameters": [
  2867. {
  2868. "in": "query",
  2869. "name": "directory",
  2870. "schema": {
  2871. "type": "string"
  2872. }
  2873. },
  2874. {
  2875. "in": "query",
  2876. "name": "query",
  2877. "schema": {
  2878. "type": "string"
  2879. },
  2880. "required": true
  2881. }
  2882. ],
  2883. "description": "Find workspace symbols",
  2884. "responses": {
  2885. "200": {
  2886. "description": "Symbols",
  2887. "content": {
  2888. "application/json": {
  2889. "schema": {
  2890. "type": "array",
  2891. "items": {
  2892. "$ref": "#/components/schemas/Symbol"
  2893. }
  2894. }
  2895. }
  2896. }
  2897. }
  2898. }
  2899. }
  2900. },
  2901. "/file": {
  2902. "get": {
  2903. "operationId": "file.list",
  2904. "parameters": [
  2905. {
  2906. "in": "query",
  2907. "name": "directory",
  2908. "schema": {
  2909. "type": "string"
  2910. }
  2911. },
  2912. {
  2913. "in": "query",
  2914. "name": "path",
  2915. "schema": {
  2916. "type": "string"
  2917. },
  2918. "required": true
  2919. }
  2920. ],
  2921. "description": "List files and directories",
  2922. "responses": {
  2923. "200": {
  2924. "description": "Files and directories",
  2925. "content": {
  2926. "application/json": {
  2927. "schema": {
  2928. "type": "array",
  2929. "items": {
  2930. "$ref": "#/components/schemas/FileNode"
  2931. }
  2932. }
  2933. }
  2934. }
  2935. }
  2936. }
  2937. }
  2938. },
  2939. "/file/content": {
  2940. "get": {
  2941. "operationId": "file.read",
  2942. "parameters": [
  2943. {
  2944. "in": "query",
  2945. "name": "directory",
  2946. "schema": {
  2947. "type": "string"
  2948. }
  2949. },
  2950. {
  2951. "in": "query",
  2952. "name": "path",
  2953. "schema": {
  2954. "type": "string"
  2955. },
  2956. "required": true
  2957. }
  2958. ],
  2959. "description": "Read a file",
  2960. "responses": {
  2961. "200": {
  2962. "description": "File content",
  2963. "content": {
  2964. "application/json": {
  2965. "schema": {
  2966. "$ref": "#/components/schemas/FileContent"
  2967. }
  2968. }
  2969. }
  2970. }
  2971. }
  2972. }
  2973. },
  2974. "/file/status": {
  2975. "get": {
  2976. "operationId": "file.status",
  2977. "parameters": [
  2978. {
  2979. "in": "query",
  2980. "name": "directory",
  2981. "schema": {
  2982. "type": "string"
  2983. }
  2984. }
  2985. ],
  2986. "description": "Get file status",
  2987. "responses": {
  2988. "200": {
  2989. "description": "File status",
  2990. "content": {
  2991. "application/json": {
  2992. "schema": {
  2993. "type": "array",
  2994. "items": {
  2995. "$ref": "#/components/schemas/File"
  2996. }
  2997. }
  2998. }
  2999. }
  3000. }
  3001. }
  3002. }
  3003. },
  3004. "/log": {
  3005. "post": {
  3006. "operationId": "app.log",
  3007. "parameters": [
  3008. {
  3009. "in": "query",
  3010. "name": "directory",
  3011. "schema": {
  3012. "type": "string"
  3013. }
  3014. }
  3015. ],
  3016. "description": "Write a log entry to the server logs",
  3017. "responses": {
  3018. "200": {
  3019. "description": "Log entry written successfully",
  3020. "content": {
  3021. "application/json": {
  3022. "schema": {
  3023. "type": "boolean"
  3024. }
  3025. }
  3026. }
  3027. },
  3028. "400": {
  3029. "description": "Bad request",
  3030. "content": {
  3031. "application/json": {
  3032. "schema": {
  3033. "$ref": "#/components/schemas/BadRequestError"
  3034. }
  3035. }
  3036. }
  3037. }
  3038. },
  3039. "requestBody": {
  3040. "content": {
  3041. "application/json": {
  3042. "schema": {
  3043. "type": "object",
  3044. "properties": {
  3045. "service": {
  3046. "description": "Service name for the log entry",
  3047. "type": "string"
  3048. },
  3049. "level": {
  3050. "description": "Log level",
  3051. "type": "string",
  3052. "enum": ["debug", "info", "error", "warn"]
  3053. },
  3054. "message": {
  3055. "description": "Log message",
  3056. "type": "string"
  3057. },
  3058. "extra": {
  3059. "description": "Additional metadata for the log entry",
  3060. "type": "object",
  3061. "propertyNames": {
  3062. "type": "string"
  3063. },
  3064. "additionalProperties": {}
  3065. }
  3066. },
  3067. "required": ["service", "level", "message"]
  3068. }
  3069. }
  3070. }
  3071. }
  3072. }
  3073. },
  3074. "/agent": {
  3075. "get": {
  3076. "operationId": "app.agents",
  3077. "parameters": [
  3078. {
  3079. "in": "query",
  3080. "name": "directory",
  3081. "schema": {
  3082. "type": "string"
  3083. }
  3084. }
  3085. ],
  3086. "description": "List all agents",
  3087. "responses": {
  3088. "200": {
  3089. "description": "List of agents",
  3090. "content": {
  3091. "application/json": {
  3092. "schema": {
  3093. "type": "array",
  3094. "items": {
  3095. "$ref": "#/components/schemas/Agent"
  3096. }
  3097. }
  3098. }
  3099. }
  3100. }
  3101. }
  3102. }
  3103. },
  3104. "/mcp": {
  3105. "get": {
  3106. "operationId": "mcp.status",
  3107. "parameters": [
  3108. {
  3109. "in": "query",
  3110. "name": "directory",
  3111. "schema": {
  3112. "type": "string"
  3113. }
  3114. }
  3115. ],
  3116. "description": "Get MCP server status",
  3117. "responses": {
  3118. "200": {
  3119. "description": "MCP server status",
  3120. "content": {
  3121. "application/json": {
  3122. "schema": {
  3123. "type": "object",
  3124. "propertyNames": {
  3125. "type": "string"
  3126. },
  3127. "additionalProperties": {
  3128. "$ref": "#/components/schemas/MCPStatus"
  3129. }
  3130. }
  3131. }
  3132. }
  3133. }
  3134. }
  3135. },
  3136. "post": {
  3137. "operationId": "mcp.add",
  3138. "parameters": [
  3139. {
  3140. "in": "query",
  3141. "name": "directory",
  3142. "schema": {
  3143. "type": "string"
  3144. }
  3145. }
  3146. ],
  3147. "description": "Add MCP server dynamically",
  3148. "responses": {
  3149. "200": {
  3150. "description": "MCP server added successfully",
  3151. "content": {
  3152. "application/json": {
  3153. "schema": {
  3154. "type": "object",
  3155. "propertyNames": {
  3156. "type": "string"
  3157. },
  3158. "additionalProperties": {
  3159. "$ref": "#/components/schemas/MCPStatus"
  3160. }
  3161. }
  3162. }
  3163. }
  3164. },
  3165. "400": {
  3166. "description": "Bad request",
  3167. "content": {
  3168. "application/json": {
  3169. "schema": {
  3170. "$ref": "#/components/schemas/BadRequestError"
  3171. }
  3172. }
  3173. }
  3174. }
  3175. },
  3176. "requestBody": {
  3177. "content": {
  3178. "application/json": {
  3179. "schema": {
  3180. "type": "object",
  3181. "properties": {
  3182. "name": {
  3183. "type": "string"
  3184. },
  3185. "config": {
  3186. "anyOf": [
  3187. {
  3188. "$ref": "#/components/schemas/McpLocalConfig"
  3189. },
  3190. {
  3191. "$ref": "#/components/schemas/McpRemoteConfig"
  3192. }
  3193. ]
  3194. }
  3195. },
  3196. "required": ["name", "config"]
  3197. }
  3198. }
  3199. }
  3200. }
  3201. }
  3202. },
  3203. "/mcp/{name}/auth": {
  3204. "post": {
  3205. "operationId": "mcp.auth.start",
  3206. "parameters": [
  3207. {
  3208. "in": "query",
  3209. "name": "directory",
  3210. "schema": {
  3211. "type": "string"
  3212. }
  3213. },
  3214. {
  3215. "schema": {
  3216. "type": "string"
  3217. },
  3218. "in": "path",
  3219. "name": "name",
  3220. "required": true
  3221. }
  3222. ],
  3223. "description": "Start OAuth authentication flow for an MCP server",
  3224. "responses": {
  3225. "200": {
  3226. "description": "OAuth flow started",
  3227. "content": {
  3228. "application/json": {
  3229. "schema": {
  3230. "type": "object",
  3231. "properties": {
  3232. "authorizationUrl": {
  3233. "description": "URL to open in browser for authorization",
  3234. "type": "string"
  3235. }
  3236. },
  3237. "required": ["authorizationUrl"]
  3238. }
  3239. }
  3240. }
  3241. },
  3242. "400": {
  3243. "description": "Bad request",
  3244. "content": {
  3245. "application/json": {
  3246. "schema": {
  3247. "$ref": "#/components/schemas/BadRequestError"
  3248. }
  3249. }
  3250. }
  3251. },
  3252. "404": {
  3253. "description": "Not found",
  3254. "content": {
  3255. "application/json": {
  3256. "schema": {
  3257. "$ref": "#/components/schemas/NotFoundError"
  3258. }
  3259. }
  3260. }
  3261. }
  3262. }
  3263. },
  3264. "delete": {
  3265. "operationId": "mcp.auth.remove",
  3266. "parameters": [
  3267. {
  3268. "in": "query",
  3269. "name": "directory",
  3270. "schema": {
  3271. "type": "string"
  3272. }
  3273. },
  3274. {
  3275. "schema": {
  3276. "type": "string"
  3277. },
  3278. "in": "path",
  3279. "name": "name",
  3280. "required": true
  3281. }
  3282. ],
  3283. "description": "Remove OAuth credentials for an MCP server",
  3284. "responses": {
  3285. "200": {
  3286. "description": "OAuth credentials removed",
  3287. "content": {
  3288. "application/json": {
  3289. "schema": {
  3290. "type": "object",
  3291. "properties": {
  3292. "success": {
  3293. "type": "boolean",
  3294. "const": true
  3295. }
  3296. },
  3297. "required": ["success"]
  3298. }
  3299. }
  3300. }
  3301. },
  3302. "404": {
  3303. "description": "Not found",
  3304. "content": {
  3305. "application/json": {
  3306. "schema": {
  3307. "$ref": "#/components/schemas/NotFoundError"
  3308. }
  3309. }
  3310. }
  3311. }
  3312. }
  3313. }
  3314. },
  3315. "/mcp/{name}/auth/callback": {
  3316. "post": {
  3317. "operationId": "mcp.auth.callback",
  3318. "parameters": [
  3319. {
  3320. "in": "query",
  3321. "name": "directory",
  3322. "schema": {
  3323. "type": "string"
  3324. }
  3325. },
  3326. {
  3327. "schema": {
  3328. "type": "string"
  3329. },
  3330. "in": "path",
  3331. "name": "name",
  3332. "required": true
  3333. }
  3334. ],
  3335. "description": "Complete OAuth authentication with authorization code",
  3336. "responses": {
  3337. "200": {
  3338. "description": "OAuth authentication completed",
  3339. "content": {
  3340. "application/json": {
  3341. "schema": {
  3342. "$ref": "#/components/schemas/MCPStatus"
  3343. }
  3344. }
  3345. }
  3346. },
  3347. "400": {
  3348. "description": "Bad request",
  3349. "content": {
  3350. "application/json": {
  3351. "schema": {
  3352. "$ref": "#/components/schemas/BadRequestError"
  3353. }
  3354. }
  3355. }
  3356. },
  3357. "404": {
  3358. "description": "Not found",
  3359. "content": {
  3360. "application/json": {
  3361. "schema": {
  3362. "$ref": "#/components/schemas/NotFoundError"
  3363. }
  3364. }
  3365. }
  3366. }
  3367. },
  3368. "requestBody": {
  3369. "content": {
  3370. "application/json": {
  3371. "schema": {
  3372. "type": "object",
  3373. "properties": {
  3374. "code": {
  3375. "description": "Authorization code from OAuth callback",
  3376. "type": "string"
  3377. }
  3378. },
  3379. "required": ["code"]
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. },
  3386. "/mcp/{name}/auth/authenticate": {
  3387. "post": {
  3388. "operationId": "mcp.auth.authenticate",
  3389. "parameters": [
  3390. {
  3391. "in": "query",
  3392. "name": "directory",
  3393. "schema": {
  3394. "type": "string"
  3395. }
  3396. },
  3397. {
  3398. "schema": {
  3399. "type": "string"
  3400. },
  3401. "in": "path",
  3402. "name": "name",
  3403. "required": true
  3404. }
  3405. ],
  3406. "description": "Start OAuth flow and wait for callback (opens browser)",
  3407. "responses": {
  3408. "200": {
  3409. "description": "OAuth authentication completed",
  3410. "content": {
  3411. "application/json": {
  3412. "schema": {
  3413. "$ref": "#/components/schemas/MCPStatus"
  3414. }
  3415. }
  3416. }
  3417. },
  3418. "400": {
  3419. "description": "Bad request",
  3420. "content": {
  3421. "application/json": {
  3422. "schema": {
  3423. "$ref": "#/components/schemas/BadRequestError"
  3424. }
  3425. }
  3426. }
  3427. },
  3428. "404": {
  3429. "description": "Not found",
  3430. "content": {
  3431. "application/json": {
  3432. "schema": {
  3433. "$ref": "#/components/schemas/NotFoundError"
  3434. }
  3435. }
  3436. }
  3437. }
  3438. }
  3439. }
  3440. },
  3441. "/lsp": {
  3442. "get": {
  3443. "operationId": "lsp.status",
  3444. "parameters": [
  3445. {
  3446. "in": "query",
  3447. "name": "directory",
  3448. "schema": {
  3449. "type": "string"
  3450. }
  3451. }
  3452. ],
  3453. "description": "Get LSP server status",
  3454. "responses": {
  3455. "200": {
  3456. "description": "LSP server status",
  3457. "content": {
  3458. "application/json": {
  3459. "schema": {
  3460. "type": "array",
  3461. "items": {
  3462. "$ref": "#/components/schemas/LSPStatus"
  3463. }
  3464. }
  3465. }
  3466. }
  3467. }
  3468. }
  3469. }
  3470. },
  3471. "/formatter": {
  3472. "get": {
  3473. "operationId": "formatter.status",
  3474. "parameters": [
  3475. {
  3476. "in": "query",
  3477. "name": "directory",
  3478. "schema": {
  3479. "type": "string"
  3480. }
  3481. }
  3482. ],
  3483. "description": "Get formatter status",
  3484. "responses": {
  3485. "200": {
  3486. "description": "Formatter status",
  3487. "content": {
  3488. "application/json": {
  3489. "schema": {
  3490. "type": "array",
  3491. "items": {
  3492. "$ref": "#/components/schemas/FormatterStatus"
  3493. }
  3494. }
  3495. }
  3496. }
  3497. }
  3498. }
  3499. }
  3500. },
  3501. "/tui/append-prompt": {
  3502. "post": {
  3503. "operationId": "tui.appendPrompt",
  3504. "parameters": [
  3505. {
  3506. "in": "query",
  3507. "name": "directory",
  3508. "schema": {
  3509. "type": "string"
  3510. }
  3511. }
  3512. ],
  3513. "description": "Append prompt to the TUI",
  3514. "responses": {
  3515. "200": {
  3516. "description": "Prompt processed successfully",
  3517. "content": {
  3518. "application/json": {
  3519. "schema": {
  3520. "type": "boolean"
  3521. }
  3522. }
  3523. }
  3524. },
  3525. "400": {
  3526. "description": "Bad request",
  3527. "content": {
  3528. "application/json": {
  3529. "schema": {
  3530. "$ref": "#/components/schemas/BadRequestError"
  3531. }
  3532. }
  3533. }
  3534. }
  3535. },
  3536. "requestBody": {
  3537. "content": {
  3538. "application/json": {
  3539. "schema": {
  3540. "type": "object",
  3541. "properties": {
  3542. "text": {
  3543. "type": "string"
  3544. }
  3545. },
  3546. "required": ["text"]
  3547. }
  3548. }
  3549. }
  3550. }
  3551. }
  3552. },
  3553. "/tui/open-help": {
  3554. "post": {
  3555. "operationId": "tui.openHelp",
  3556. "parameters": [
  3557. {
  3558. "in": "query",
  3559. "name": "directory",
  3560. "schema": {
  3561. "type": "string"
  3562. }
  3563. }
  3564. ],
  3565. "description": "Open the help dialog",
  3566. "responses": {
  3567. "200": {
  3568. "description": "Help dialog opened successfully",
  3569. "content": {
  3570. "application/json": {
  3571. "schema": {
  3572. "type": "boolean"
  3573. }
  3574. }
  3575. }
  3576. }
  3577. }
  3578. }
  3579. },
  3580. "/tui/open-sessions": {
  3581. "post": {
  3582. "operationId": "tui.openSessions",
  3583. "parameters": [
  3584. {
  3585. "in": "query",
  3586. "name": "directory",
  3587. "schema": {
  3588. "type": "string"
  3589. }
  3590. }
  3591. ],
  3592. "description": "Open the session dialog",
  3593. "responses": {
  3594. "200": {
  3595. "description": "Session dialog opened successfully",
  3596. "content": {
  3597. "application/json": {
  3598. "schema": {
  3599. "type": "boolean"
  3600. }
  3601. }
  3602. }
  3603. }
  3604. }
  3605. }
  3606. },
  3607. "/tui/open-themes": {
  3608. "post": {
  3609. "operationId": "tui.openThemes",
  3610. "parameters": [
  3611. {
  3612. "in": "query",
  3613. "name": "directory",
  3614. "schema": {
  3615. "type": "string"
  3616. }
  3617. }
  3618. ],
  3619. "description": "Open the theme dialog",
  3620. "responses": {
  3621. "200": {
  3622. "description": "Theme dialog opened successfully",
  3623. "content": {
  3624. "application/json": {
  3625. "schema": {
  3626. "type": "boolean"
  3627. }
  3628. }
  3629. }
  3630. }
  3631. }
  3632. }
  3633. },
  3634. "/tui/open-models": {
  3635. "post": {
  3636. "operationId": "tui.openModels",
  3637. "parameters": [
  3638. {
  3639. "in": "query",
  3640. "name": "directory",
  3641. "schema": {
  3642. "type": "string"
  3643. }
  3644. }
  3645. ],
  3646. "description": "Open the model dialog",
  3647. "responses": {
  3648. "200": {
  3649. "description": "Model dialog opened successfully",
  3650. "content": {
  3651. "application/json": {
  3652. "schema": {
  3653. "type": "boolean"
  3654. }
  3655. }
  3656. }
  3657. }
  3658. }
  3659. }
  3660. },
  3661. "/tui/submit-prompt": {
  3662. "post": {
  3663. "operationId": "tui.submitPrompt",
  3664. "parameters": [
  3665. {
  3666. "in": "query",
  3667. "name": "directory",
  3668. "schema": {
  3669. "type": "string"
  3670. }
  3671. }
  3672. ],
  3673. "description": "Submit the prompt",
  3674. "responses": {
  3675. "200": {
  3676. "description": "Prompt submitted successfully",
  3677. "content": {
  3678. "application/json": {
  3679. "schema": {
  3680. "type": "boolean"
  3681. }
  3682. }
  3683. }
  3684. }
  3685. }
  3686. }
  3687. },
  3688. "/tui/clear-prompt": {
  3689. "post": {
  3690. "operationId": "tui.clearPrompt",
  3691. "parameters": [
  3692. {
  3693. "in": "query",
  3694. "name": "directory",
  3695. "schema": {
  3696. "type": "string"
  3697. }
  3698. }
  3699. ],
  3700. "description": "Clear the prompt",
  3701. "responses": {
  3702. "200": {
  3703. "description": "Prompt cleared successfully",
  3704. "content": {
  3705. "application/json": {
  3706. "schema": {
  3707. "type": "boolean"
  3708. }
  3709. }
  3710. }
  3711. }
  3712. }
  3713. }
  3714. },
  3715. "/tui/execute-command": {
  3716. "post": {
  3717. "operationId": "tui.executeCommand",
  3718. "parameters": [
  3719. {
  3720. "in": "query",
  3721. "name": "directory",
  3722. "schema": {
  3723. "type": "string"
  3724. }
  3725. }
  3726. ],
  3727. "description": "Execute a TUI command (e.g. agent_cycle)",
  3728. "responses": {
  3729. "200": {
  3730. "description": "Command executed successfully",
  3731. "content": {
  3732. "application/json": {
  3733. "schema": {
  3734. "type": "boolean"
  3735. }
  3736. }
  3737. }
  3738. },
  3739. "400": {
  3740. "description": "Bad request",
  3741. "content": {
  3742. "application/json": {
  3743. "schema": {
  3744. "$ref": "#/components/schemas/BadRequestError"
  3745. }
  3746. }
  3747. }
  3748. }
  3749. },
  3750. "requestBody": {
  3751. "content": {
  3752. "application/json": {
  3753. "schema": {
  3754. "type": "object",
  3755. "properties": {
  3756. "command": {
  3757. "type": "string"
  3758. }
  3759. },
  3760. "required": ["command"]
  3761. }
  3762. }
  3763. }
  3764. }
  3765. }
  3766. },
  3767. "/tui/show-toast": {
  3768. "post": {
  3769. "operationId": "tui.showToast",
  3770. "parameters": [
  3771. {
  3772. "in": "query",
  3773. "name": "directory",
  3774. "schema": {
  3775. "type": "string"
  3776. }
  3777. }
  3778. ],
  3779. "description": "Show a toast notification in the TUI",
  3780. "responses": {
  3781. "200": {
  3782. "description": "Toast notification shown successfully",
  3783. "content": {
  3784. "application/json": {
  3785. "schema": {
  3786. "type": "boolean"
  3787. }
  3788. }
  3789. }
  3790. }
  3791. },
  3792. "requestBody": {
  3793. "content": {
  3794. "application/json": {
  3795. "schema": {
  3796. "type": "object",
  3797. "properties": {
  3798. "title": {
  3799. "type": "string"
  3800. },
  3801. "message": {
  3802. "type": "string"
  3803. },
  3804. "variant": {
  3805. "type": "string",
  3806. "enum": ["info", "success", "warning", "error"]
  3807. },
  3808. "duration": {
  3809. "description": "Duration in milliseconds",
  3810. "default": 5000,
  3811. "type": "number"
  3812. }
  3813. },
  3814. "required": ["message", "variant"]
  3815. }
  3816. }
  3817. }
  3818. }
  3819. }
  3820. },
  3821. "/tui/publish": {
  3822. "post": {
  3823. "operationId": "tui.publish",
  3824. "parameters": [
  3825. {
  3826. "in": "query",
  3827. "name": "directory",
  3828. "schema": {
  3829. "type": "string"
  3830. }
  3831. }
  3832. ],
  3833. "description": "Publish a TUI event",
  3834. "responses": {
  3835. "200": {
  3836. "description": "Event published successfully",
  3837. "content": {
  3838. "application/json": {
  3839. "schema": {
  3840. "type": "boolean"
  3841. }
  3842. }
  3843. }
  3844. },
  3845. "400": {
  3846. "description": "Bad request",
  3847. "content": {
  3848. "application/json": {
  3849. "schema": {
  3850. "$ref": "#/components/schemas/BadRequestError"
  3851. }
  3852. }
  3853. }
  3854. }
  3855. },
  3856. "requestBody": {
  3857. "content": {
  3858. "application/json": {
  3859. "schema": {
  3860. "anyOf": [
  3861. {
  3862. "$ref": "#/components/schemas/Event.tui.prompt.append"
  3863. },
  3864. {
  3865. "$ref": "#/components/schemas/Event.tui.command.execute"
  3866. },
  3867. {
  3868. "$ref": "#/components/schemas/Event.tui.toast.show"
  3869. }
  3870. ]
  3871. }
  3872. }
  3873. }
  3874. }
  3875. }
  3876. },
  3877. "/tui/control/next": {
  3878. "get": {
  3879. "operationId": "tui.control.next",
  3880. "parameters": [
  3881. {
  3882. "in": "query",
  3883. "name": "directory",
  3884. "schema": {
  3885. "type": "string"
  3886. }
  3887. }
  3888. ],
  3889. "description": "Get the next TUI request from the queue",
  3890. "responses": {
  3891. "200": {
  3892. "description": "Next TUI request",
  3893. "content": {
  3894. "application/json": {
  3895. "schema": {
  3896. "type": "object",
  3897. "properties": {
  3898. "path": {
  3899. "type": "string"
  3900. },
  3901. "body": {}
  3902. },
  3903. "required": ["path", "body"]
  3904. }
  3905. }
  3906. }
  3907. }
  3908. }
  3909. }
  3910. },
  3911. "/tui/control/response": {
  3912. "post": {
  3913. "operationId": "tui.control.response",
  3914. "parameters": [
  3915. {
  3916. "in": "query",
  3917. "name": "directory",
  3918. "schema": {
  3919. "type": "string"
  3920. }
  3921. }
  3922. ],
  3923. "description": "Submit a response to the TUI request queue",
  3924. "responses": {
  3925. "200": {
  3926. "description": "Response submitted successfully",
  3927. "content": {
  3928. "application/json": {
  3929. "schema": {
  3930. "type": "boolean"
  3931. }
  3932. }
  3933. }
  3934. }
  3935. },
  3936. "requestBody": {
  3937. "content": {
  3938. "application/json": {
  3939. "schema": {}
  3940. }
  3941. }
  3942. }
  3943. }
  3944. },
  3945. "/auth/{providerID}": {
  3946. "put": {
  3947. "operationId": "auth.set",
  3948. "parameters": [
  3949. {
  3950. "in": "query",
  3951. "name": "directory",
  3952. "schema": {
  3953. "type": "string"
  3954. }
  3955. },
  3956. {
  3957. "in": "path",
  3958. "name": "providerID",
  3959. "schema": {
  3960. "type": "string"
  3961. },
  3962. "required": true
  3963. }
  3964. ],
  3965. "description": "Set authentication credentials",
  3966. "responses": {
  3967. "200": {
  3968. "description": "Successfully set authentication credentials",
  3969. "content": {
  3970. "application/json": {
  3971. "schema": {
  3972. "type": "boolean"
  3973. }
  3974. }
  3975. }
  3976. },
  3977. "400": {
  3978. "description": "Bad request",
  3979. "content": {
  3980. "application/json": {
  3981. "schema": {
  3982. "$ref": "#/components/schemas/BadRequestError"
  3983. }
  3984. }
  3985. }
  3986. }
  3987. },
  3988. "requestBody": {
  3989. "content": {
  3990. "application/json": {
  3991. "schema": {
  3992. "$ref": "#/components/schemas/Auth"
  3993. }
  3994. }
  3995. }
  3996. }
  3997. }
  3998. },
  3999. "/event": {
  4000. "get": {
  4001. "operationId": "event.subscribe",
  4002. "parameters": [
  4003. {
  4004. "in": "query",
  4005. "name": "directory",
  4006. "schema": {
  4007. "type": "string"
  4008. }
  4009. }
  4010. ],
  4011. "description": "Get events",
  4012. "responses": {
  4013. "200": {
  4014. "description": "Event stream",
  4015. "content": {
  4016. "text/event-stream": {
  4017. "schema": {
  4018. "$ref": "#/components/schemas/Event"
  4019. }
  4020. }
  4021. }
  4022. }
  4023. }
  4024. }
  4025. }
  4026. },
  4027. "components": {
  4028. "schemas": {
  4029. "Event.server.instance.disposed": {
  4030. "type": "object",
  4031. "properties": {
  4032. "type": {
  4033. "type": "string",
  4034. "const": "server.instance.disposed"
  4035. },
  4036. "properties": {
  4037. "type": "object",
  4038. "properties": {
  4039. "directory": {
  4040. "type": "string"
  4041. }
  4042. },
  4043. "required": ["directory"]
  4044. }
  4045. },
  4046. "required": ["type", "properties"]
  4047. },
  4048. "Event.installation.updated": {
  4049. "type": "object",
  4050. "properties": {
  4051. "type": {
  4052. "type": "string",
  4053. "const": "installation.updated"
  4054. },
  4055. "properties": {
  4056. "type": "object",
  4057. "properties": {
  4058. "version": {
  4059. "type": "string"
  4060. }
  4061. },
  4062. "required": ["version"]
  4063. }
  4064. },
  4065. "required": ["type", "properties"]
  4066. },
  4067. "Event.installation.update-available": {
  4068. "type": "object",
  4069. "properties": {
  4070. "type": {
  4071. "type": "string",
  4072. "const": "installation.update-available"
  4073. },
  4074. "properties": {
  4075. "type": "object",
  4076. "properties": {
  4077. "version": {
  4078. "type": "string"
  4079. }
  4080. },
  4081. "required": ["version"]
  4082. }
  4083. },
  4084. "required": ["type", "properties"]
  4085. },
  4086. "Event.lsp.client.diagnostics": {
  4087. "type": "object",
  4088. "properties": {
  4089. "type": {
  4090. "type": "string",
  4091. "const": "lsp.client.diagnostics"
  4092. },
  4093. "properties": {
  4094. "type": "object",
  4095. "properties": {
  4096. "serverID": {
  4097. "type": "string"
  4098. },
  4099. "path": {
  4100. "type": "string"
  4101. }
  4102. },
  4103. "required": ["serverID", "path"]
  4104. }
  4105. },
  4106. "required": ["type", "properties"]
  4107. },
  4108. "Event.lsp.updated": {
  4109. "type": "object",
  4110. "properties": {
  4111. "type": {
  4112. "type": "string",
  4113. "const": "lsp.updated"
  4114. },
  4115. "properties": {
  4116. "type": "object",
  4117. "properties": {}
  4118. }
  4119. },
  4120. "required": ["type", "properties"]
  4121. },
  4122. "FileDiff": {
  4123. "type": "object",
  4124. "properties": {
  4125. "file": {
  4126. "type": "string"
  4127. },
  4128. "before": {
  4129. "type": "string"
  4130. },
  4131. "after": {
  4132. "type": "string"
  4133. },
  4134. "additions": {
  4135. "type": "number"
  4136. },
  4137. "deletions": {
  4138. "type": "number"
  4139. }
  4140. },
  4141. "required": ["file", "before", "after", "additions", "deletions"]
  4142. },
  4143. "UserMessage": {
  4144. "type": "object",
  4145. "properties": {
  4146. "id": {
  4147. "type": "string"
  4148. },
  4149. "sessionID": {
  4150. "type": "string"
  4151. },
  4152. "role": {
  4153. "type": "string",
  4154. "const": "user"
  4155. },
  4156. "time": {
  4157. "type": "object",
  4158. "properties": {
  4159. "created": {
  4160. "type": "number"
  4161. }
  4162. },
  4163. "required": ["created"]
  4164. },
  4165. "summary": {
  4166. "type": "object",
  4167. "properties": {
  4168. "title": {
  4169. "type": "string"
  4170. },
  4171. "body": {
  4172. "type": "string"
  4173. },
  4174. "diffs": {
  4175. "type": "array",
  4176. "items": {
  4177. "$ref": "#/components/schemas/FileDiff"
  4178. }
  4179. }
  4180. },
  4181. "required": ["diffs"]
  4182. },
  4183. "agent": {
  4184. "type": "string"
  4185. },
  4186. "model": {
  4187. "type": "object",
  4188. "properties": {
  4189. "providerID": {
  4190. "type": "string"
  4191. },
  4192. "modelID": {
  4193. "type": "string"
  4194. }
  4195. },
  4196. "required": ["providerID", "modelID"]
  4197. },
  4198. "system": {
  4199. "type": "string"
  4200. },
  4201. "tools": {
  4202. "type": "object",
  4203. "propertyNames": {
  4204. "type": "string"
  4205. },
  4206. "additionalProperties": {
  4207. "type": "boolean"
  4208. }
  4209. }
  4210. },
  4211. "required": ["id", "sessionID", "role", "time", "agent", "model"]
  4212. },
  4213. "ProviderAuthError": {
  4214. "type": "object",
  4215. "properties": {
  4216. "name": {
  4217. "type": "string",
  4218. "const": "ProviderAuthError"
  4219. },
  4220. "data": {
  4221. "type": "object",
  4222. "properties": {
  4223. "providerID": {
  4224. "type": "string"
  4225. },
  4226. "message": {
  4227. "type": "string"
  4228. }
  4229. },
  4230. "required": ["providerID", "message"]
  4231. }
  4232. },
  4233. "required": ["name", "data"]
  4234. },
  4235. "UnknownError": {
  4236. "type": "object",
  4237. "properties": {
  4238. "name": {
  4239. "type": "string",
  4240. "const": "UnknownError"
  4241. },
  4242. "data": {
  4243. "type": "object",
  4244. "properties": {
  4245. "message": {
  4246. "type": "string"
  4247. }
  4248. },
  4249. "required": ["message"]
  4250. }
  4251. },
  4252. "required": ["name", "data"]
  4253. },
  4254. "MessageOutputLengthError": {
  4255. "type": "object",
  4256. "properties": {
  4257. "name": {
  4258. "type": "string",
  4259. "const": "MessageOutputLengthError"
  4260. },
  4261. "data": {
  4262. "type": "object",
  4263. "properties": {}
  4264. }
  4265. },
  4266. "required": ["name", "data"]
  4267. },
  4268. "MessageAbortedError": {
  4269. "type": "object",
  4270. "properties": {
  4271. "name": {
  4272. "type": "string",
  4273. "const": "MessageAbortedError"
  4274. },
  4275. "data": {
  4276. "type": "object",
  4277. "properties": {
  4278. "message": {
  4279. "type": "string"
  4280. }
  4281. },
  4282. "required": ["message"]
  4283. }
  4284. },
  4285. "required": ["name", "data"]
  4286. },
  4287. "APIError": {
  4288. "type": "object",
  4289. "properties": {
  4290. "name": {
  4291. "type": "string",
  4292. "const": "APIError"
  4293. },
  4294. "data": {
  4295. "type": "object",
  4296. "properties": {
  4297. "message": {
  4298. "type": "string"
  4299. },
  4300. "statusCode": {
  4301. "type": "number"
  4302. },
  4303. "isRetryable": {
  4304. "type": "boolean"
  4305. },
  4306. "responseHeaders": {
  4307. "type": "object",
  4308. "propertyNames": {
  4309. "type": "string"
  4310. },
  4311. "additionalProperties": {
  4312. "type": "string"
  4313. }
  4314. },
  4315. "responseBody": {
  4316. "type": "string"
  4317. }
  4318. },
  4319. "required": ["message", "isRetryable"]
  4320. }
  4321. },
  4322. "required": ["name", "data"]
  4323. },
  4324. "AssistantMessage": {
  4325. "type": "object",
  4326. "properties": {
  4327. "id": {
  4328. "type": "string"
  4329. },
  4330. "sessionID": {
  4331. "type": "string"
  4332. },
  4333. "role": {
  4334. "type": "string",
  4335. "const": "assistant"
  4336. },
  4337. "time": {
  4338. "type": "object",
  4339. "properties": {
  4340. "created": {
  4341. "type": "number"
  4342. },
  4343. "completed": {
  4344. "type": "number"
  4345. }
  4346. },
  4347. "required": ["created"]
  4348. },
  4349. "error": {
  4350. "anyOf": [
  4351. {
  4352. "$ref": "#/components/schemas/ProviderAuthError"
  4353. },
  4354. {
  4355. "$ref": "#/components/schemas/UnknownError"
  4356. },
  4357. {
  4358. "$ref": "#/components/schemas/MessageOutputLengthError"
  4359. },
  4360. {
  4361. "$ref": "#/components/schemas/MessageAbortedError"
  4362. },
  4363. {
  4364. "$ref": "#/components/schemas/APIError"
  4365. }
  4366. ]
  4367. },
  4368. "parentID": {
  4369. "type": "string"
  4370. },
  4371. "modelID": {
  4372. "type": "string"
  4373. },
  4374. "providerID": {
  4375. "type": "string"
  4376. },
  4377. "mode": {
  4378. "type": "string"
  4379. },
  4380. "path": {
  4381. "type": "object",
  4382. "properties": {
  4383. "cwd": {
  4384. "type": "string"
  4385. },
  4386. "root": {
  4387. "type": "string"
  4388. }
  4389. },
  4390. "required": ["cwd", "root"]
  4391. },
  4392. "summary": {
  4393. "type": "boolean"
  4394. },
  4395. "cost": {
  4396. "type": "number"
  4397. },
  4398. "tokens": {
  4399. "type": "object",
  4400. "properties": {
  4401. "input": {
  4402. "type": "number"
  4403. },
  4404. "output": {
  4405. "type": "number"
  4406. },
  4407. "reasoning": {
  4408. "type": "number"
  4409. },
  4410. "cache": {
  4411. "type": "object",
  4412. "properties": {
  4413. "read": {
  4414. "type": "number"
  4415. },
  4416. "write": {
  4417. "type": "number"
  4418. }
  4419. },
  4420. "required": ["read", "write"]
  4421. }
  4422. },
  4423. "required": ["input", "output", "reasoning", "cache"]
  4424. },
  4425. "finish": {
  4426. "type": "string"
  4427. }
  4428. },
  4429. "required": [
  4430. "id",
  4431. "sessionID",
  4432. "role",
  4433. "time",
  4434. "parentID",
  4435. "modelID",
  4436. "providerID",
  4437. "mode",
  4438. "path",
  4439. "cost",
  4440. "tokens"
  4441. ]
  4442. },
  4443. "Message": {
  4444. "anyOf": [
  4445. {
  4446. "$ref": "#/components/schemas/UserMessage"
  4447. },
  4448. {
  4449. "$ref": "#/components/schemas/AssistantMessage"
  4450. }
  4451. ]
  4452. },
  4453. "Event.message.updated": {
  4454. "type": "object",
  4455. "properties": {
  4456. "type": {
  4457. "type": "string",
  4458. "const": "message.updated"
  4459. },
  4460. "properties": {
  4461. "type": "object",
  4462. "properties": {
  4463. "info": {
  4464. "$ref": "#/components/schemas/Message"
  4465. }
  4466. },
  4467. "required": ["info"]
  4468. }
  4469. },
  4470. "required": ["type", "properties"]
  4471. },
  4472. "Event.message.removed": {
  4473. "type": "object",
  4474. "properties": {
  4475. "type": {
  4476. "type": "string",
  4477. "const": "message.removed"
  4478. },
  4479. "properties": {
  4480. "type": "object",
  4481. "properties": {
  4482. "sessionID": {
  4483. "type": "string"
  4484. },
  4485. "messageID": {
  4486. "type": "string"
  4487. }
  4488. },
  4489. "required": ["sessionID", "messageID"]
  4490. }
  4491. },
  4492. "required": ["type", "properties"]
  4493. },
  4494. "TextPart": {
  4495. "type": "object",
  4496. "properties": {
  4497. "id": {
  4498. "type": "string"
  4499. },
  4500. "sessionID": {
  4501. "type": "string"
  4502. },
  4503. "messageID": {
  4504. "type": "string"
  4505. },
  4506. "type": {
  4507. "type": "string",
  4508. "const": "text"
  4509. },
  4510. "text": {
  4511. "type": "string"
  4512. },
  4513. "synthetic": {
  4514. "type": "boolean"
  4515. },
  4516. "ignored": {
  4517. "type": "boolean"
  4518. },
  4519. "time": {
  4520. "type": "object",
  4521. "properties": {
  4522. "start": {
  4523. "type": "number"
  4524. },
  4525. "end": {
  4526. "type": "number"
  4527. }
  4528. },
  4529. "required": ["start"]
  4530. },
  4531. "metadata": {
  4532. "type": "object",
  4533. "propertyNames": {
  4534. "type": "string"
  4535. },
  4536. "additionalProperties": {}
  4537. }
  4538. },
  4539. "required": ["id", "sessionID", "messageID", "type", "text"]
  4540. },
  4541. "ReasoningPart": {
  4542. "type": "object",
  4543. "properties": {
  4544. "id": {
  4545. "type": "string"
  4546. },
  4547. "sessionID": {
  4548. "type": "string"
  4549. },
  4550. "messageID": {
  4551. "type": "string"
  4552. },
  4553. "type": {
  4554. "type": "string",
  4555. "const": "reasoning"
  4556. },
  4557. "text": {
  4558. "type": "string"
  4559. },
  4560. "metadata": {
  4561. "type": "object",
  4562. "propertyNames": {
  4563. "type": "string"
  4564. },
  4565. "additionalProperties": {}
  4566. },
  4567. "time": {
  4568. "type": "object",
  4569. "properties": {
  4570. "start": {
  4571. "type": "number"
  4572. },
  4573. "end": {
  4574. "type": "number"
  4575. }
  4576. },
  4577. "required": ["start"]
  4578. }
  4579. },
  4580. "required": ["id", "sessionID", "messageID", "type", "text", "time"]
  4581. },
  4582. "FilePartSourceText": {
  4583. "type": "object",
  4584. "properties": {
  4585. "value": {
  4586. "type": "string"
  4587. },
  4588. "start": {
  4589. "type": "integer",
  4590. "minimum": -9007199254740991,
  4591. "maximum": 9007199254740991
  4592. },
  4593. "end": {
  4594. "type": "integer",
  4595. "minimum": -9007199254740991,
  4596. "maximum": 9007199254740991
  4597. }
  4598. },
  4599. "required": ["value", "start", "end"]
  4600. },
  4601. "FileSource": {
  4602. "type": "object",
  4603. "properties": {
  4604. "text": {
  4605. "$ref": "#/components/schemas/FilePartSourceText"
  4606. },
  4607. "type": {
  4608. "type": "string",
  4609. "const": "file"
  4610. },
  4611. "path": {
  4612. "type": "string"
  4613. }
  4614. },
  4615. "required": ["text", "type", "path"]
  4616. },
  4617. "Range": {
  4618. "type": "object",
  4619. "properties": {
  4620. "start": {
  4621. "type": "object",
  4622. "properties": {
  4623. "line": {
  4624. "type": "number"
  4625. },
  4626. "character": {
  4627. "type": "number"
  4628. }
  4629. },
  4630. "required": ["line", "character"]
  4631. },
  4632. "end": {
  4633. "type": "object",
  4634. "properties": {
  4635. "line": {
  4636. "type": "number"
  4637. },
  4638. "character": {
  4639. "type": "number"
  4640. }
  4641. },
  4642. "required": ["line", "character"]
  4643. }
  4644. },
  4645. "required": ["start", "end"]
  4646. },
  4647. "SymbolSource": {
  4648. "type": "object",
  4649. "properties": {
  4650. "text": {
  4651. "$ref": "#/components/schemas/FilePartSourceText"
  4652. },
  4653. "type": {
  4654. "type": "string",
  4655. "const": "symbol"
  4656. },
  4657. "path": {
  4658. "type": "string"
  4659. },
  4660. "range": {
  4661. "$ref": "#/components/schemas/Range"
  4662. },
  4663. "name": {
  4664. "type": "string"
  4665. },
  4666. "kind": {
  4667. "type": "integer",
  4668. "minimum": -9007199254740991,
  4669. "maximum": 9007199254740991
  4670. }
  4671. },
  4672. "required": ["text", "type", "path", "range", "name", "kind"]
  4673. },
  4674. "FilePartSource": {
  4675. "anyOf": [
  4676. {
  4677. "$ref": "#/components/schemas/FileSource"
  4678. },
  4679. {
  4680. "$ref": "#/components/schemas/SymbolSource"
  4681. }
  4682. ]
  4683. },
  4684. "FilePart": {
  4685. "type": "object",
  4686. "properties": {
  4687. "id": {
  4688. "type": "string"
  4689. },
  4690. "sessionID": {
  4691. "type": "string"
  4692. },
  4693. "messageID": {
  4694. "type": "string"
  4695. },
  4696. "type": {
  4697. "type": "string",
  4698. "const": "file"
  4699. },
  4700. "mime": {
  4701. "type": "string"
  4702. },
  4703. "filename": {
  4704. "type": "string"
  4705. },
  4706. "url": {
  4707. "type": "string"
  4708. },
  4709. "source": {
  4710. "$ref": "#/components/schemas/FilePartSource"
  4711. }
  4712. },
  4713. "required": ["id", "sessionID", "messageID", "type", "mime", "url"]
  4714. },
  4715. "ToolStatePending": {
  4716. "type": "object",
  4717. "properties": {
  4718. "status": {
  4719. "type": "string",
  4720. "const": "pending"
  4721. },
  4722. "input": {
  4723. "type": "object",
  4724. "propertyNames": {
  4725. "type": "string"
  4726. },
  4727. "additionalProperties": {}
  4728. },
  4729. "raw": {
  4730. "type": "string"
  4731. }
  4732. },
  4733. "required": ["status", "input", "raw"]
  4734. },
  4735. "ToolStateRunning": {
  4736. "type": "object",
  4737. "properties": {
  4738. "status": {
  4739. "type": "string",
  4740. "const": "running"
  4741. },
  4742. "input": {
  4743. "type": "object",
  4744. "propertyNames": {
  4745. "type": "string"
  4746. },
  4747. "additionalProperties": {}
  4748. },
  4749. "title": {
  4750. "type": "string"
  4751. },
  4752. "metadata": {
  4753. "type": "object",
  4754. "propertyNames": {
  4755. "type": "string"
  4756. },
  4757. "additionalProperties": {}
  4758. },
  4759. "time": {
  4760. "type": "object",
  4761. "properties": {
  4762. "start": {
  4763. "type": "number"
  4764. }
  4765. },
  4766. "required": ["start"]
  4767. }
  4768. },
  4769. "required": ["status", "input", "time"]
  4770. },
  4771. "ToolStateCompleted": {
  4772. "type": "object",
  4773. "properties": {
  4774. "status": {
  4775. "type": "string",
  4776. "const": "completed"
  4777. },
  4778. "input": {
  4779. "type": "object",
  4780. "propertyNames": {
  4781. "type": "string"
  4782. },
  4783. "additionalProperties": {}
  4784. },
  4785. "output": {
  4786. "type": "string"
  4787. },
  4788. "title": {
  4789. "type": "string"
  4790. },
  4791. "metadata": {
  4792. "type": "object",
  4793. "propertyNames": {
  4794. "type": "string"
  4795. },
  4796. "additionalProperties": {}
  4797. },
  4798. "time": {
  4799. "type": "object",
  4800. "properties": {
  4801. "start": {
  4802. "type": "number"
  4803. },
  4804. "end": {
  4805. "type": "number"
  4806. },
  4807. "compacted": {
  4808. "type": "number"
  4809. }
  4810. },
  4811. "required": ["start", "end"]
  4812. },
  4813. "attachments": {
  4814. "type": "array",
  4815. "items": {
  4816. "$ref": "#/components/schemas/FilePart"
  4817. }
  4818. }
  4819. },
  4820. "required": ["status", "input", "output", "title", "metadata", "time"]
  4821. },
  4822. "ToolStateError": {
  4823. "type": "object",
  4824. "properties": {
  4825. "status": {
  4826. "type": "string",
  4827. "const": "error"
  4828. },
  4829. "input": {
  4830. "type": "object",
  4831. "propertyNames": {
  4832. "type": "string"
  4833. },
  4834. "additionalProperties": {}
  4835. },
  4836. "error": {
  4837. "type": "string"
  4838. },
  4839. "metadata": {
  4840. "type": "object",
  4841. "propertyNames": {
  4842. "type": "string"
  4843. },
  4844. "additionalProperties": {}
  4845. },
  4846. "time": {
  4847. "type": "object",
  4848. "properties": {
  4849. "start": {
  4850. "type": "number"
  4851. },
  4852. "end": {
  4853. "type": "number"
  4854. }
  4855. },
  4856. "required": ["start", "end"]
  4857. }
  4858. },
  4859. "required": ["status", "input", "error", "time"]
  4860. },
  4861. "ToolState": {
  4862. "anyOf": [
  4863. {
  4864. "$ref": "#/components/schemas/ToolStatePending"
  4865. },
  4866. {
  4867. "$ref": "#/components/schemas/ToolStateRunning"
  4868. },
  4869. {
  4870. "$ref": "#/components/schemas/ToolStateCompleted"
  4871. },
  4872. {
  4873. "$ref": "#/components/schemas/ToolStateError"
  4874. }
  4875. ]
  4876. },
  4877. "ToolPart": {
  4878. "type": "object",
  4879. "properties": {
  4880. "id": {
  4881. "type": "string"
  4882. },
  4883. "sessionID": {
  4884. "type": "string"
  4885. },
  4886. "messageID": {
  4887. "type": "string"
  4888. },
  4889. "type": {
  4890. "type": "string",
  4891. "const": "tool"
  4892. },
  4893. "callID": {
  4894. "type": "string"
  4895. },
  4896. "tool": {
  4897. "type": "string"
  4898. },
  4899. "state": {
  4900. "$ref": "#/components/schemas/ToolState"
  4901. },
  4902. "metadata": {
  4903. "type": "object",
  4904. "propertyNames": {
  4905. "type": "string"
  4906. },
  4907. "additionalProperties": {}
  4908. }
  4909. },
  4910. "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"]
  4911. },
  4912. "StepStartPart": {
  4913. "type": "object",
  4914. "properties": {
  4915. "id": {
  4916. "type": "string"
  4917. },
  4918. "sessionID": {
  4919. "type": "string"
  4920. },
  4921. "messageID": {
  4922. "type": "string"
  4923. },
  4924. "type": {
  4925. "type": "string",
  4926. "const": "step-start"
  4927. },
  4928. "snapshot": {
  4929. "type": "string"
  4930. }
  4931. },
  4932. "required": ["id", "sessionID", "messageID", "type"]
  4933. },
  4934. "StepFinishPart": {
  4935. "type": "object",
  4936. "properties": {
  4937. "id": {
  4938. "type": "string"
  4939. },
  4940. "sessionID": {
  4941. "type": "string"
  4942. },
  4943. "messageID": {
  4944. "type": "string"
  4945. },
  4946. "type": {
  4947. "type": "string",
  4948. "const": "step-finish"
  4949. },
  4950. "reason": {
  4951. "type": "string"
  4952. },
  4953. "snapshot": {
  4954. "type": "string"
  4955. },
  4956. "cost": {
  4957. "type": "number"
  4958. },
  4959. "tokens": {
  4960. "type": "object",
  4961. "properties": {
  4962. "input": {
  4963. "type": "number"
  4964. },
  4965. "output": {
  4966. "type": "number"
  4967. },
  4968. "reasoning": {
  4969. "type": "number"
  4970. },
  4971. "cache": {
  4972. "type": "object",
  4973. "properties": {
  4974. "read": {
  4975. "type": "number"
  4976. },
  4977. "write": {
  4978. "type": "number"
  4979. }
  4980. },
  4981. "required": ["read", "write"]
  4982. }
  4983. },
  4984. "required": ["input", "output", "reasoning", "cache"]
  4985. }
  4986. },
  4987. "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"]
  4988. },
  4989. "SnapshotPart": {
  4990. "type": "object",
  4991. "properties": {
  4992. "id": {
  4993. "type": "string"
  4994. },
  4995. "sessionID": {
  4996. "type": "string"
  4997. },
  4998. "messageID": {
  4999. "type": "string"
  5000. },
  5001. "type": {
  5002. "type": "string",
  5003. "const": "snapshot"
  5004. },
  5005. "snapshot": {
  5006. "type": "string"
  5007. }
  5008. },
  5009. "required": ["id", "sessionID", "messageID", "type", "snapshot"]
  5010. },
  5011. "PatchPart": {
  5012. "type": "object",
  5013. "properties": {
  5014. "id": {
  5015. "type": "string"
  5016. },
  5017. "sessionID": {
  5018. "type": "string"
  5019. },
  5020. "messageID": {
  5021. "type": "string"
  5022. },
  5023. "type": {
  5024. "type": "string",
  5025. "const": "patch"
  5026. },
  5027. "hash": {
  5028. "type": "string"
  5029. },
  5030. "files": {
  5031. "type": "array",
  5032. "items": {
  5033. "type": "string"
  5034. }
  5035. }
  5036. },
  5037. "required": ["id", "sessionID", "messageID", "type", "hash", "files"]
  5038. },
  5039. "AgentPart": {
  5040. "type": "object",
  5041. "properties": {
  5042. "id": {
  5043. "type": "string"
  5044. },
  5045. "sessionID": {
  5046. "type": "string"
  5047. },
  5048. "messageID": {
  5049. "type": "string"
  5050. },
  5051. "type": {
  5052. "type": "string",
  5053. "const": "agent"
  5054. },
  5055. "name": {
  5056. "type": "string"
  5057. },
  5058. "source": {
  5059. "type": "object",
  5060. "properties": {
  5061. "value": {
  5062. "type": "string"
  5063. },
  5064. "start": {
  5065. "type": "integer",
  5066. "minimum": -9007199254740991,
  5067. "maximum": 9007199254740991
  5068. },
  5069. "end": {
  5070. "type": "integer",
  5071. "minimum": -9007199254740991,
  5072. "maximum": 9007199254740991
  5073. }
  5074. },
  5075. "required": ["value", "start", "end"]
  5076. }
  5077. },
  5078. "required": ["id", "sessionID", "messageID", "type", "name"]
  5079. },
  5080. "RetryPart": {
  5081. "type": "object",
  5082. "properties": {
  5083. "id": {
  5084. "type": "string"
  5085. },
  5086. "sessionID": {
  5087. "type": "string"
  5088. },
  5089. "messageID": {
  5090. "type": "string"
  5091. },
  5092. "type": {
  5093. "type": "string",
  5094. "const": "retry"
  5095. },
  5096. "attempt": {
  5097. "type": "number"
  5098. },
  5099. "error": {
  5100. "$ref": "#/components/schemas/APIError"
  5101. },
  5102. "time": {
  5103. "type": "object",
  5104. "properties": {
  5105. "created": {
  5106. "type": "number"
  5107. }
  5108. },
  5109. "required": ["created"]
  5110. }
  5111. },
  5112. "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"]
  5113. },
  5114. "CompactionPart": {
  5115. "type": "object",
  5116. "properties": {
  5117. "id": {
  5118. "type": "string"
  5119. },
  5120. "sessionID": {
  5121. "type": "string"
  5122. },
  5123. "messageID": {
  5124. "type": "string"
  5125. },
  5126. "type": {
  5127. "type": "string",
  5128. "const": "compaction"
  5129. },
  5130. "auto": {
  5131. "type": "boolean"
  5132. }
  5133. },
  5134. "required": ["id", "sessionID", "messageID", "type", "auto"]
  5135. },
  5136. "Part": {
  5137. "anyOf": [
  5138. {
  5139. "$ref": "#/components/schemas/TextPart"
  5140. },
  5141. {
  5142. "type": "object",
  5143. "properties": {
  5144. "id": {
  5145. "type": "string"
  5146. },
  5147. "sessionID": {
  5148. "type": "string"
  5149. },
  5150. "messageID": {
  5151. "type": "string"
  5152. },
  5153. "type": {
  5154. "type": "string",
  5155. "const": "subtask"
  5156. },
  5157. "prompt": {
  5158. "type": "string"
  5159. },
  5160. "description": {
  5161. "type": "string"
  5162. },
  5163. "agent": {
  5164. "type": "string"
  5165. }
  5166. },
  5167. "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"]
  5168. },
  5169. {
  5170. "$ref": "#/components/schemas/ReasoningPart"
  5171. },
  5172. {
  5173. "$ref": "#/components/schemas/FilePart"
  5174. },
  5175. {
  5176. "$ref": "#/components/schemas/ToolPart"
  5177. },
  5178. {
  5179. "$ref": "#/components/schemas/StepStartPart"
  5180. },
  5181. {
  5182. "$ref": "#/components/schemas/StepFinishPart"
  5183. },
  5184. {
  5185. "$ref": "#/components/schemas/SnapshotPart"
  5186. },
  5187. {
  5188. "$ref": "#/components/schemas/PatchPart"
  5189. },
  5190. {
  5191. "$ref": "#/components/schemas/AgentPart"
  5192. },
  5193. {
  5194. "$ref": "#/components/schemas/RetryPart"
  5195. },
  5196. {
  5197. "$ref": "#/components/schemas/CompactionPart"
  5198. }
  5199. ]
  5200. },
  5201. "Event.message.part.updated": {
  5202. "type": "object",
  5203. "properties": {
  5204. "type": {
  5205. "type": "string",
  5206. "const": "message.part.updated"
  5207. },
  5208. "properties": {
  5209. "type": "object",
  5210. "properties": {
  5211. "part": {
  5212. "$ref": "#/components/schemas/Part"
  5213. },
  5214. "delta": {
  5215. "type": "string"
  5216. }
  5217. },
  5218. "required": ["part"]
  5219. }
  5220. },
  5221. "required": ["type", "properties"]
  5222. },
  5223. "Event.message.part.removed": {
  5224. "type": "object",
  5225. "properties": {
  5226. "type": {
  5227. "type": "string",
  5228. "const": "message.part.removed"
  5229. },
  5230. "properties": {
  5231. "type": "object",
  5232. "properties": {
  5233. "sessionID": {
  5234. "type": "string"
  5235. },
  5236. "messageID": {
  5237. "type": "string"
  5238. },
  5239. "partID": {
  5240. "type": "string"
  5241. }
  5242. },
  5243. "required": ["sessionID", "messageID", "partID"]
  5244. }
  5245. },
  5246. "required": ["type", "properties"]
  5247. },
  5248. "Permission": {
  5249. "type": "object",
  5250. "properties": {
  5251. "id": {
  5252. "type": "string"
  5253. },
  5254. "type": {
  5255. "type": "string"
  5256. },
  5257. "pattern": {
  5258. "anyOf": [
  5259. {
  5260. "type": "string"
  5261. },
  5262. {
  5263. "type": "array",
  5264. "items": {
  5265. "type": "string"
  5266. }
  5267. }
  5268. ]
  5269. },
  5270. "sessionID": {
  5271. "type": "string"
  5272. },
  5273. "messageID": {
  5274. "type": "string"
  5275. },
  5276. "callID": {
  5277. "type": "string"
  5278. },
  5279. "title": {
  5280. "type": "string"
  5281. },
  5282. "metadata": {
  5283. "type": "object",
  5284. "propertyNames": {
  5285. "type": "string"
  5286. },
  5287. "additionalProperties": {}
  5288. },
  5289. "time": {
  5290. "type": "object",
  5291. "properties": {
  5292. "created": {
  5293. "type": "number"
  5294. }
  5295. },
  5296. "required": ["created"]
  5297. }
  5298. },
  5299. "required": ["id", "type", "sessionID", "messageID", "title", "metadata", "time"]
  5300. },
  5301. "Event.permission.updated": {
  5302. "type": "object",
  5303. "properties": {
  5304. "type": {
  5305. "type": "string",
  5306. "const": "permission.updated"
  5307. },
  5308. "properties": {
  5309. "$ref": "#/components/schemas/Permission"
  5310. }
  5311. },
  5312. "required": ["type", "properties"]
  5313. },
  5314. "Event.permission.replied": {
  5315. "type": "object",
  5316. "properties": {
  5317. "type": {
  5318. "type": "string",
  5319. "const": "permission.replied"
  5320. },
  5321. "properties": {
  5322. "type": "object",
  5323. "properties": {
  5324. "sessionID": {
  5325. "type": "string"
  5326. },
  5327. "permissionID": {
  5328. "type": "string"
  5329. },
  5330. "response": {
  5331. "type": "string"
  5332. }
  5333. },
  5334. "required": ["sessionID", "permissionID", "response"]
  5335. }
  5336. },
  5337. "required": ["type", "properties"]
  5338. },
  5339. "SessionStatus": {
  5340. "anyOf": [
  5341. {
  5342. "type": "object",
  5343. "properties": {
  5344. "type": {
  5345. "type": "string",
  5346. "const": "idle"
  5347. }
  5348. },
  5349. "required": ["type"]
  5350. },
  5351. {
  5352. "type": "object",
  5353. "properties": {
  5354. "type": {
  5355. "type": "string",
  5356. "const": "retry"
  5357. },
  5358. "attempt": {
  5359. "type": "number"
  5360. },
  5361. "message": {
  5362. "type": "string"
  5363. },
  5364. "next": {
  5365. "type": "number"
  5366. }
  5367. },
  5368. "required": ["type", "attempt", "message", "next"]
  5369. },
  5370. {
  5371. "type": "object",
  5372. "properties": {
  5373. "type": {
  5374. "type": "string",
  5375. "const": "busy"
  5376. }
  5377. },
  5378. "required": ["type"]
  5379. }
  5380. ]
  5381. },
  5382. "Event.session.status": {
  5383. "type": "object",
  5384. "properties": {
  5385. "type": {
  5386. "type": "string",
  5387. "const": "session.status"
  5388. },
  5389. "properties": {
  5390. "type": "object",
  5391. "properties": {
  5392. "sessionID": {
  5393. "type": "string"
  5394. },
  5395. "status": {
  5396. "$ref": "#/components/schemas/SessionStatus"
  5397. }
  5398. },
  5399. "required": ["sessionID", "status"]
  5400. }
  5401. },
  5402. "required": ["type", "properties"]
  5403. },
  5404. "Event.session.idle": {
  5405. "type": "object",
  5406. "properties": {
  5407. "type": {
  5408. "type": "string",
  5409. "const": "session.idle"
  5410. },
  5411. "properties": {
  5412. "type": "object",
  5413. "properties": {
  5414. "sessionID": {
  5415. "type": "string"
  5416. }
  5417. },
  5418. "required": ["sessionID"]
  5419. }
  5420. },
  5421. "required": ["type", "properties"]
  5422. },
  5423. "Event.session.compacted": {
  5424. "type": "object",
  5425. "properties": {
  5426. "type": {
  5427. "type": "string",
  5428. "const": "session.compacted"
  5429. },
  5430. "properties": {
  5431. "type": "object",
  5432. "properties": {
  5433. "sessionID": {
  5434. "type": "string"
  5435. }
  5436. },
  5437. "required": ["sessionID"]
  5438. }
  5439. },
  5440. "required": ["type", "properties"]
  5441. },
  5442. "Event.file.edited": {
  5443. "type": "object",
  5444. "properties": {
  5445. "type": {
  5446. "type": "string",
  5447. "const": "file.edited"
  5448. },
  5449. "properties": {
  5450. "type": "object",
  5451. "properties": {
  5452. "file": {
  5453. "type": "string"
  5454. }
  5455. },
  5456. "required": ["file"]
  5457. }
  5458. },
  5459. "required": ["type", "properties"]
  5460. },
  5461. "Todo": {
  5462. "type": "object",
  5463. "properties": {
  5464. "content": {
  5465. "description": "Brief description of the task",
  5466. "type": "string"
  5467. },
  5468. "status": {
  5469. "description": "Current status of the task: pending, in_progress, completed, cancelled",
  5470. "type": "string"
  5471. },
  5472. "priority": {
  5473. "description": "Priority level of the task: high, medium, low",
  5474. "type": "string"
  5475. },
  5476. "id": {
  5477. "description": "Unique identifier for the todo item",
  5478. "type": "string"
  5479. }
  5480. },
  5481. "required": ["content", "status", "priority", "id"]
  5482. },
  5483. "Event.todo.updated": {
  5484. "type": "object",
  5485. "properties": {
  5486. "type": {
  5487. "type": "string",
  5488. "const": "todo.updated"
  5489. },
  5490. "properties": {
  5491. "type": "object",
  5492. "properties": {
  5493. "sessionID": {
  5494. "type": "string"
  5495. },
  5496. "todos": {
  5497. "type": "array",
  5498. "items": {
  5499. "$ref": "#/components/schemas/Todo"
  5500. }
  5501. }
  5502. },
  5503. "required": ["sessionID", "todos"]
  5504. }
  5505. },
  5506. "required": ["type", "properties"]
  5507. },
  5508. "Event.command.executed": {
  5509. "type": "object",
  5510. "properties": {
  5511. "type": {
  5512. "type": "string",
  5513. "const": "command.executed"
  5514. },
  5515. "properties": {
  5516. "type": "object",
  5517. "properties": {
  5518. "name": {
  5519. "type": "string"
  5520. },
  5521. "sessionID": {
  5522. "type": "string",
  5523. "pattern": "^ses.*"
  5524. },
  5525. "arguments": {
  5526. "type": "string"
  5527. },
  5528. "messageID": {
  5529. "type": "string",
  5530. "pattern": "^msg.*"
  5531. }
  5532. },
  5533. "required": ["name", "sessionID", "arguments", "messageID"]
  5534. }
  5535. },
  5536. "required": ["type", "properties"]
  5537. },
  5538. "Session": {
  5539. "type": "object",
  5540. "properties": {
  5541. "id": {
  5542. "type": "string",
  5543. "pattern": "^ses.*"
  5544. },
  5545. "projectID": {
  5546. "type": "string"
  5547. },
  5548. "directory": {
  5549. "type": "string"
  5550. },
  5551. "parentID": {
  5552. "type": "string",
  5553. "pattern": "^ses.*"
  5554. },
  5555. "summary": {
  5556. "type": "object",
  5557. "properties": {
  5558. "additions": {
  5559. "type": "number"
  5560. },
  5561. "deletions": {
  5562. "type": "number"
  5563. },
  5564. "files": {
  5565. "type": "number"
  5566. },
  5567. "diffs": {
  5568. "type": "array",
  5569. "items": {
  5570. "$ref": "#/components/schemas/FileDiff"
  5571. }
  5572. }
  5573. },
  5574. "required": ["additions", "deletions", "files"]
  5575. },
  5576. "share": {
  5577. "type": "object",
  5578. "properties": {
  5579. "url": {
  5580. "type": "string"
  5581. }
  5582. },
  5583. "required": ["url"]
  5584. },
  5585. "title": {
  5586. "type": "string"
  5587. },
  5588. "version": {
  5589. "type": "string"
  5590. },
  5591. "time": {
  5592. "type": "object",
  5593. "properties": {
  5594. "created": {
  5595. "type": "number"
  5596. },
  5597. "updated": {
  5598. "type": "number"
  5599. },
  5600. "compacting": {
  5601. "type": "number"
  5602. }
  5603. },
  5604. "required": ["created", "updated"]
  5605. },
  5606. "revert": {
  5607. "type": "object",
  5608. "properties": {
  5609. "messageID": {
  5610. "type": "string"
  5611. },
  5612. "partID": {
  5613. "type": "string"
  5614. },
  5615. "snapshot": {
  5616. "type": "string"
  5617. },
  5618. "diff": {
  5619. "type": "string"
  5620. }
  5621. },
  5622. "required": ["messageID"]
  5623. }
  5624. },
  5625. "required": ["id", "projectID", "directory", "title", "version", "time"]
  5626. },
  5627. "Event.session.created": {
  5628. "type": "object",
  5629. "properties": {
  5630. "type": {
  5631. "type": "string",
  5632. "const": "session.created"
  5633. },
  5634. "properties": {
  5635. "type": "object",
  5636. "properties": {
  5637. "info": {
  5638. "$ref": "#/components/schemas/Session"
  5639. }
  5640. },
  5641. "required": ["info"]
  5642. }
  5643. },
  5644. "required": ["type", "properties"]
  5645. },
  5646. "Event.session.updated": {
  5647. "type": "object",
  5648. "properties": {
  5649. "type": {
  5650. "type": "string",
  5651. "const": "session.updated"
  5652. },
  5653. "properties": {
  5654. "type": "object",
  5655. "properties": {
  5656. "info": {
  5657. "$ref": "#/components/schemas/Session"
  5658. }
  5659. },
  5660. "required": ["info"]
  5661. }
  5662. },
  5663. "required": ["type", "properties"]
  5664. },
  5665. "Event.session.deleted": {
  5666. "type": "object",
  5667. "properties": {
  5668. "type": {
  5669. "type": "string",
  5670. "const": "session.deleted"
  5671. },
  5672. "properties": {
  5673. "type": "object",
  5674. "properties": {
  5675. "info": {
  5676. "$ref": "#/components/schemas/Session"
  5677. }
  5678. },
  5679. "required": ["info"]
  5680. }
  5681. },
  5682. "required": ["type", "properties"]
  5683. },
  5684. "Event.session.diff": {
  5685. "type": "object",
  5686. "properties": {
  5687. "type": {
  5688. "type": "string",
  5689. "const": "session.diff"
  5690. },
  5691. "properties": {
  5692. "type": "object",
  5693. "properties": {
  5694. "sessionID": {
  5695. "type": "string"
  5696. },
  5697. "diff": {
  5698. "type": "array",
  5699. "items": {
  5700. "$ref": "#/components/schemas/FileDiff"
  5701. }
  5702. }
  5703. },
  5704. "required": ["sessionID", "diff"]
  5705. }
  5706. },
  5707. "required": ["type", "properties"]
  5708. },
  5709. "Event.session.error": {
  5710. "type": "object",
  5711. "properties": {
  5712. "type": {
  5713. "type": "string",
  5714. "const": "session.error"
  5715. },
  5716. "properties": {
  5717. "type": "object",
  5718. "properties": {
  5719. "sessionID": {
  5720. "type": "string"
  5721. },
  5722. "error": {
  5723. "anyOf": [
  5724. {
  5725. "$ref": "#/components/schemas/ProviderAuthError"
  5726. },
  5727. {
  5728. "$ref": "#/components/schemas/UnknownError"
  5729. },
  5730. {
  5731. "$ref": "#/components/schemas/MessageOutputLengthError"
  5732. },
  5733. {
  5734. "$ref": "#/components/schemas/MessageAbortedError"
  5735. },
  5736. {
  5737. "$ref": "#/components/schemas/APIError"
  5738. }
  5739. ]
  5740. }
  5741. }
  5742. }
  5743. },
  5744. "required": ["type", "properties"]
  5745. },
  5746. "Event.file.watcher.updated": {
  5747. "type": "object",
  5748. "properties": {
  5749. "type": {
  5750. "type": "string",
  5751. "const": "file.watcher.updated"
  5752. },
  5753. "properties": {
  5754. "type": "object",
  5755. "properties": {
  5756. "file": {
  5757. "type": "string"
  5758. },
  5759. "event": {
  5760. "anyOf": [
  5761. {
  5762. "type": "string",
  5763. "const": "add"
  5764. },
  5765. {
  5766. "type": "string",
  5767. "const": "change"
  5768. },
  5769. {
  5770. "type": "string",
  5771. "const": "unlink"
  5772. }
  5773. ]
  5774. }
  5775. },
  5776. "required": ["file", "event"]
  5777. }
  5778. },
  5779. "required": ["type", "properties"]
  5780. },
  5781. "Event.vcs.branch.updated": {
  5782. "type": "object",
  5783. "properties": {
  5784. "type": {
  5785. "type": "string",
  5786. "const": "vcs.branch.updated"
  5787. },
  5788. "properties": {
  5789. "type": "object",
  5790. "properties": {
  5791. "branch": {
  5792. "type": "string"
  5793. }
  5794. }
  5795. }
  5796. },
  5797. "required": ["type", "properties"]
  5798. },
  5799. "Event.tui.prompt.append": {
  5800. "type": "object",
  5801. "properties": {
  5802. "type": {
  5803. "type": "string",
  5804. "const": "tui.prompt.append"
  5805. },
  5806. "properties": {
  5807. "type": "object",
  5808. "properties": {
  5809. "text": {
  5810. "type": "string"
  5811. }
  5812. },
  5813. "required": ["text"]
  5814. }
  5815. },
  5816. "required": ["type", "properties"]
  5817. },
  5818. "Event.tui.command.execute": {
  5819. "type": "object",
  5820. "properties": {
  5821. "type": {
  5822. "type": "string",
  5823. "const": "tui.command.execute"
  5824. },
  5825. "properties": {
  5826. "type": "object",
  5827. "properties": {
  5828. "command": {
  5829. "anyOf": [
  5830. {
  5831. "type": "string",
  5832. "enum": [
  5833. "session.list",
  5834. "session.new",
  5835. "session.share",
  5836. "session.interrupt",
  5837. "session.compact",
  5838. "session.page.up",
  5839. "session.page.down",
  5840. "session.half.page.up",
  5841. "session.half.page.down",
  5842. "session.first",
  5843. "session.last",
  5844. "prompt.clear",
  5845. "prompt.submit",
  5846. "agent.cycle"
  5847. ]
  5848. },
  5849. {
  5850. "type": "string"
  5851. }
  5852. ]
  5853. }
  5854. },
  5855. "required": ["command"]
  5856. }
  5857. },
  5858. "required": ["type", "properties"]
  5859. },
  5860. "Event.tui.toast.show": {
  5861. "type": "object",
  5862. "properties": {
  5863. "type": {
  5864. "type": "string",
  5865. "const": "tui.toast.show"
  5866. },
  5867. "properties": {
  5868. "type": "object",
  5869. "properties": {
  5870. "title": {
  5871. "type": "string"
  5872. },
  5873. "message": {
  5874. "type": "string"
  5875. },
  5876. "variant": {
  5877. "type": "string",
  5878. "enum": ["info", "success", "warning", "error"]
  5879. },
  5880. "duration": {
  5881. "description": "Duration in milliseconds",
  5882. "default": 5000,
  5883. "type": "number"
  5884. }
  5885. },
  5886. "required": ["message", "variant"]
  5887. }
  5888. },
  5889. "required": ["type", "properties"]
  5890. },
  5891. "Pty": {
  5892. "type": "object",
  5893. "properties": {
  5894. "id": {
  5895. "type": "string",
  5896. "pattern": "^pty.*"
  5897. },
  5898. "title": {
  5899. "type": "string"
  5900. },
  5901. "command": {
  5902. "type": "string"
  5903. },
  5904. "args": {
  5905. "type": "array",
  5906. "items": {
  5907. "type": "string"
  5908. }
  5909. },
  5910. "cwd": {
  5911. "type": "string"
  5912. },
  5913. "status": {
  5914. "type": "string",
  5915. "enum": ["running", "exited"]
  5916. },
  5917. "pid": {
  5918. "type": "number"
  5919. }
  5920. },
  5921. "required": ["id", "title", "command", "args", "cwd", "status", "pid"]
  5922. },
  5923. "Event.pty.created": {
  5924. "type": "object",
  5925. "properties": {
  5926. "type": {
  5927. "type": "string",
  5928. "const": "pty.created"
  5929. },
  5930. "properties": {
  5931. "type": "object",
  5932. "properties": {
  5933. "info": {
  5934. "$ref": "#/components/schemas/Pty"
  5935. }
  5936. },
  5937. "required": ["info"]
  5938. }
  5939. },
  5940. "required": ["type", "properties"]
  5941. },
  5942. "Event.pty.updated": {
  5943. "type": "object",
  5944. "properties": {
  5945. "type": {
  5946. "type": "string",
  5947. "const": "pty.updated"
  5948. },
  5949. "properties": {
  5950. "type": "object",
  5951. "properties": {
  5952. "info": {
  5953. "$ref": "#/components/schemas/Pty"
  5954. }
  5955. },
  5956. "required": ["info"]
  5957. }
  5958. },
  5959. "required": ["type", "properties"]
  5960. },
  5961. "Event.pty.exited": {
  5962. "type": "object",
  5963. "properties": {
  5964. "type": {
  5965. "type": "string",
  5966. "const": "pty.exited"
  5967. },
  5968. "properties": {
  5969. "type": "object",
  5970. "properties": {
  5971. "id": {
  5972. "type": "string",
  5973. "pattern": "^pty.*"
  5974. },
  5975. "exitCode": {
  5976. "type": "number"
  5977. }
  5978. },
  5979. "required": ["id", "exitCode"]
  5980. }
  5981. },
  5982. "required": ["type", "properties"]
  5983. },
  5984. "Event.pty.deleted": {
  5985. "type": "object",
  5986. "properties": {
  5987. "type": {
  5988. "type": "string",
  5989. "const": "pty.deleted"
  5990. },
  5991. "properties": {
  5992. "type": "object",
  5993. "properties": {
  5994. "id": {
  5995. "type": "string",
  5996. "pattern": "^pty.*"
  5997. }
  5998. },
  5999. "required": ["id"]
  6000. }
  6001. },
  6002. "required": ["type", "properties"]
  6003. },
  6004. "Event.server.connected": {
  6005. "type": "object",
  6006. "properties": {
  6007. "type": {
  6008. "type": "string",
  6009. "const": "server.connected"
  6010. },
  6011. "properties": {
  6012. "type": "object",
  6013. "properties": {}
  6014. }
  6015. },
  6016. "required": ["type", "properties"]
  6017. },
  6018. "Event": {
  6019. "anyOf": [
  6020. {
  6021. "$ref": "#/components/schemas/Event.server.instance.disposed"
  6022. },
  6023. {
  6024. "$ref": "#/components/schemas/Event.installation.updated"
  6025. },
  6026. {
  6027. "$ref": "#/components/schemas/Event.installation.update-available"
  6028. },
  6029. {
  6030. "$ref": "#/components/schemas/Event.lsp.client.diagnostics"
  6031. },
  6032. {
  6033. "$ref": "#/components/schemas/Event.lsp.updated"
  6034. },
  6035. {
  6036. "$ref": "#/components/schemas/Event.message.updated"
  6037. },
  6038. {
  6039. "$ref": "#/components/schemas/Event.message.removed"
  6040. },
  6041. {
  6042. "$ref": "#/components/schemas/Event.message.part.updated"
  6043. },
  6044. {
  6045. "$ref": "#/components/schemas/Event.message.part.removed"
  6046. },
  6047. {
  6048. "$ref": "#/components/schemas/Event.permission.updated"
  6049. },
  6050. {
  6051. "$ref": "#/components/schemas/Event.permission.replied"
  6052. },
  6053. {
  6054. "$ref": "#/components/schemas/Event.session.status"
  6055. },
  6056. {
  6057. "$ref": "#/components/schemas/Event.session.idle"
  6058. },
  6059. {
  6060. "$ref": "#/components/schemas/Event.session.compacted"
  6061. },
  6062. {
  6063. "$ref": "#/components/schemas/Event.file.edited"
  6064. },
  6065. {
  6066. "$ref": "#/components/schemas/Event.todo.updated"
  6067. },
  6068. {
  6069. "$ref": "#/components/schemas/Event.command.executed"
  6070. },
  6071. {
  6072. "$ref": "#/components/schemas/Event.session.created"
  6073. },
  6074. {
  6075. "$ref": "#/components/schemas/Event.session.updated"
  6076. },
  6077. {
  6078. "$ref": "#/components/schemas/Event.session.deleted"
  6079. },
  6080. {
  6081. "$ref": "#/components/schemas/Event.session.diff"
  6082. },
  6083. {
  6084. "$ref": "#/components/schemas/Event.session.error"
  6085. },
  6086. {
  6087. "$ref": "#/components/schemas/Event.file.watcher.updated"
  6088. },
  6089. {
  6090. "$ref": "#/components/schemas/Event.vcs.branch.updated"
  6091. },
  6092. {
  6093. "$ref": "#/components/schemas/Event.tui.prompt.append"
  6094. },
  6095. {
  6096. "$ref": "#/components/schemas/Event.tui.command.execute"
  6097. },
  6098. {
  6099. "$ref": "#/components/schemas/Event.tui.toast.show"
  6100. },
  6101. {
  6102. "$ref": "#/components/schemas/Event.pty.created"
  6103. },
  6104. {
  6105. "$ref": "#/components/schemas/Event.pty.updated"
  6106. },
  6107. {
  6108. "$ref": "#/components/schemas/Event.pty.exited"
  6109. },
  6110. {
  6111. "$ref": "#/components/schemas/Event.pty.deleted"
  6112. },
  6113. {
  6114. "$ref": "#/components/schemas/Event.server.connected"
  6115. }
  6116. ]
  6117. },
  6118. "GlobalEvent": {
  6119. "type": "object",
  6120. "properties": {
  6121. "directory": {
  6122. "type": "string"
  6123. },
  6124. "payload": {
  6125. "$ref": "#/components/schemas/Event"
  6126. }
  6127. },
  6128. "required": ["directory", "payload"]
  6129. },
  6130. "Project": {
  6131. "type": "object",
  6132. "properties": {
  6133. "id": {
  6134. "type": "string"
  6135. },
  6136. "worktree": {
  6137. "type": "string"
  6138. },
  6139. "vcsDir": {
  6140. "type": "string"
  6141. },
  6142. "vcs": {
  6143. "type": "string",
  6144. "const": "git"
  6145. },
  6146. "time": {
  6147. "type": "object",
  6148. "properties": {
  6149. "created": {
  6150. "type": "number"
  6151. },
  6152. "initialized": {
  6153. "type": "number"
  6154. }
  6155. },
  6156. "required": ["created"]
  6157. }
  6158. },
  6159. "required": ["id", "worktree", "time"]
  6160. },
  6161. "BadRequestError": {
  6162. "type": "object",
  6163. "properties": {
  6164. "data": {},
  6165. "errors": {
  6166. "type": "array",
  6167. "items": {
  6168. "type": "object",
  6169. "propertyNames": {
  6170. "type": "string"
  6171. },
  6172. "additionalProperties": {}
  6173. }
  6174. },
  6175. "success": {
  6176. "type": "boolean",
  6177. "const": false
  6178. }
  6179. },
  6180. "required": ["data", "errors", "success"]
  6181. },
  6182. "NotFoundError": {
  6183. "type": "object",
  6184. "properties": {
  6185. "name": {
  6186. "type": "string",
  6187. "const": "NotFoundError"
  6188. },
  6189. "data": {
  6190. "type": "object",
  6191. "properties": {
  6192. "message": {
  6193. "type": "string"
  6194. }
  6195. },
  6196. "required": ["message"]
  6197. }
  6198. },
  6199. "required": ["name", "data"]
  6200. },
  6201. "KeybindsConfig": {
  6202. "description": "Custom keybind configurations",
  6203. "type": "object",
  6204. "properties": {
  6205. "leader": {
  6206. "description": "Leader key for keybind combinations",
  6207. "default": "ctrl+x",
  6208. "type": "string"
  6209. },
  6210. "app_exit": {
  6211. "description": "Exit the application",
  6212. "default": "ctrl+c,ctrl+d,<leader>q",
  6213. "type": "string"
  6214. },
  6215. "editor_open": {
  6216. "description": "Open external editor",
  6217. "default": "<leader>e",
  6218. "type": "string"
  6219. },
  6220. "theme_list": {
  6221. "description": "List available themes",
  6222. "default": "<leader>t",
  6223. "type": "string"
  6224. },
  6225. "sidebar_toggle": {
  6226. "description": "Toggle sidebar",
  6227. "default": "<leader>b",
  6228. "type": "string"
  6229. },
  6230. "scrollbar_toggle": {
  6231. "description": "Toggle session scrollbar",
  6232. "default": "none",
  6233. "type": "string"
  6234. },
  6235. "username_toggle": {
  6236. "description": "Toggle username visibility",
  6237. "default": "none",
  6238. "type": "string"
  6239. },
  6240. "status_view": {
  6241. "description": "View status",
  6242. "default": "<leader>s",
  6243. "type": "string"
  6244. },
  6245. "session_export": {
  6246. "description": "Export session to editor",
  6247. "default": "<leader>x",
  6248. "type": "string"
  6249. },
  6250. "session_new": {
  6251. "description": "Create a new session",
  6252. "default": "<leader>n",
  6253. "type": "string"
  6254. },
  6255. "session_list": {
  6256. "description": "List all sessions",
  6257. "default": "<leader>l",
  6258. "type": "string"
  6259. },
  6260. "session_timeline": {
  6261. "description": "Show session timeline",
  6262. "default": "<leader>g",
  6263. "type": "string"
  6264. },
  6265. "session_share": {
  6266. "description": "Share current session",
  6267. "default": "none",
  6268. "type": "string"
  6269. },
  6270. "session_unshare": {
  6271. "description": "Unshare current session",
  6272. "default": "none",
  6273. "type": "string"
  6274. },
  6275. "session_interrupt": {
  6276. "description": "Interrupt current session",
  6277. "default": "escape",
  6278. "type": "string"
  6279. },
  6280. "session_compact": {
  6281. "description": "Compact the session",
  6282. "default": "<leader>c",
  6283. "type": "string"
  6284. },
  6285. "messages_page_up": {
  6286. "description": "Scroll messages up by one page",
  6287. "default": "pageup",
  6288. "type": "string"
  6289. },
  6290. "messages_page_down": {
  6291. "description": "Scroll messages down by one page",
  6292. "default": "pagedown",
  6293. "type": "string"
  6294. },
  6295. "messages_half_page_up": {
  6296. "description": "Scroll messages up by half page",
  6297. "default": "ctrl+alt+u",
  6298. "type": "string"
  6299. },
  6300. "messages_half_page_down": {
  6301. "description": "Scroll messages down by half page",
  6302. "default": "ctrl+alt+d",
  6303. "type": "string"
  6304. },
  6305. "messages_first": {
  6306. "description": "Navigate to first message",
  6307. "default": "ctrl+g,home",
  6308. "type": "string"
  6309. },
  6310. "messages_last": {
  6311. "description": "Navigate to last message",
  6312. "default": "ctrl+alt+g,end",
  6313. "type": "string"
  6314. },
  6315. "messages_last_user": {
  6316. "description": "Navigate to last user message",
  6317. "default": "none",
  6318. "type": "string"
  6319. },
  6320. "messages_copy": {
  6321. "description": "Copy message",
  6322. "default": "<leader>y",
  6323. "type": "string"
  6324. },
  6325. "messages_undo": {
  6326. "description": "Undo message",
  6327. "default": "<leader>u",
  6328. "type": "string"
  6329. },
  6330. "messages_redo": {
  6331. "description": "Redo message",
  6332. "default": "<leader>r",
  6333. "type": "string"
  6334. },
  6335. "messages_toggle_conceal": {
  6336. "description": "Toggle code block concealment in messages",
  6337. "default": "<leader>h",
  6338. "type": "string"
  6339. },
  6340. "tool_details": {
  6341. "description": "Toggle tool details visibility",
  6342. "default": "none",
  6343. "type": "string"
  6344. },
  6345. "model_list": {
  6346. "description": "List available models",
  6347. "default": "<leader>m",
  6348. "type": "string"
  6349. },
  6350. "model_cycle_recent": {
  6351. "description": "Next recently used model",
  6352. "default": "f2",
  6353. "type": "string"
  6354. },
  6355. "model_cycle_recent_reverse": {
  6356. "description": "Previous recently used model",
  6357. "default": "shift+f2",
  6358. "type": "string"
  6359. },
  6360. "command_list": {
  6361. "description": "List available commands",
  6362. "default": "ctrl+p",
  6363. "type": "string"
  6364. },
  6365. "agent_list": {
  6366. "description": "List agents",
  6367. "default": "<leader>a",
  6368. "type": "string"
  6369. },
  6370. "agent_cycle": {
  6371. "description": "Next agent",
  6372. "default": "tab",
  6373. "type": "string"
  6374. },
  6375. "agent_cycle_reverse": {
  6376. "description": "Previous agent",
  6377. "default": "shift+tab",
  6378. "type": "string"
  6379. },
  6380. "input_clear": {
  6381. "description": "Clear input field",
  6382. "default": "ctrl+c",
  6383. "type": "string"
  6384. },
  6385. "input_forward_delete": {
  6386. "description": "Forward delete",
  6387. "default": "ctrl+d",
  6388. "type": "string"
  6389. },
  6390. "input_paste": {
  6391. "description": "Paste from clipboard",
  6392. "default": "ctrl+v",
  6393. "type": "string"
  6394. },
  6395. "input_submit": {
  6396. "description": "Submit input",
  6397. "default": "return",
  6398. "type": "string"
  6399. },
  6400. "input_newline": {
  6401. "description": "Insert newline in input",
  6402. "default": "shift+return,ctrl+j",
  6403. "type": "string"
  6404. },
  6405. "history_previous": {
  6406. "description": "Previous history item",
  6407. "default": "up",
  6408. "type": "string"
  6409. },
  6410. "history_next": {
  6411. "description": "Next history item",
  6412. "default": "down",
  6413. "type": "string"
  6414. },
  6415. "session_child_cycle": {
  6416. "description": "Next child session",
  6417. "default": "<leader>right",
  6418. "type": "string"
  6419. },
  6420. "session_child_cycle_reverse": {
  6421. "description": "Previous child session",
  6422. "default": "<leader>left",
  6423. "type": "string"
  6424. },
  6425. "terminal_suspend": {
  6426. "description": "Suspend terminal",
  6427. "default": "ctrl+z",
  6428. "type": "string"
  6429. }
  6430. },
  6431. "additionalProperties": false
  6432. },
  6433. "AgentConfig": {
  6434. "type": "object",
  6435. "properties": {
  6436. "model": {
  6437. "type": "string"
  6438. },
  6439. "temperature": {
  6440. "type": "number"
  6441. },
  6442. "top_p": {
  6443. "type": "number"
  6444. },
  6445. "prompt": {
  6446. "type": "string"
  6447. },
  6448. "tools": {
  6449. "type": "object",
  6450. "propertyNames": {
  6451. "type": "string"
  6452. },
  6453. "additionalProperties": {
  6454. "type": "boolean"
  6455. }
  6456. },
  6457. "disable": {
  6458. "type": "boolean"
  6459. },
  6460. "description": {
  6461. "description": "Description of when to use the agent",
  6462. "type": "string"
  6463. },
  6464. "mode": {
  6465. "type": "string",
  6466. "enum": ["subagent", "primary", "all"]
  6467. },
  6468. "color": {
  6469. "description": "Hex color code for the agent (e.g., #FF5733)",
  6470. "type": "string",
  6471. "pattern": "^#[0-9a-fA-F]{6}$"
  6472. },
  6473. "maxSteps": {
  6474. "description": "Maximum number of agentic iterations before forcing text-only response",
  6475. "type": "integer",
  6476. "exclusiveMinimum": 0,
  6477. "maximum": 9007199254740991
  6478. },
  6479. "permission": {
  6480. "type": "object",
  6481. "properties": {
  6482. "edit": {
  6483. "type": "string",
  6484. "enum": ["ask", "allow", "deny"]
  6485. },
  6486. "bash": {
  6487. "anyOf": [
  6488. {
  6489. "type": "string",
  6490. "enum": ["ask", "allow", "deny"]
  6491. },
  6492. {
  6493. "type": "object",
  6494. "propertyNames": {
  6495. "type": "string"
  6496. },
  6497. "additionalProperties": {
  6498. "type": "string",
  6499. "enum": ["ask", "allow", "deny"]
  6500. }
  6501. }
  6502. ]
  6503. },
  6504. "webfetch": {
  6505. "type": "string",
  6506. "enum": ["ask", "allow", "deny"]
  6507. },
  6508. "doom_loop": {
  6509. "type": "string",
  6510. "enum": ["ask", "allow", "deny"]
  6511. },
  6512. "external_directory": {
  6513. "type": "string",
  6514. "enum": ["ask", "allow", "deny"]
  6515. }
  6516. }
  6517. }
  6518. },
  6519. "additionalProperties": {}
  6520. },
  6521. "ProviderConfig": {
  6522. "type": "object",
  6523. "properties": {
  6524. "api": {
  6525. "type": "string"
  6526. },
  6527. "name": {
  6528. "type": "string"
  6529. },
  6530. "env": {
  6531. "type": "array",
  6532. "items": {
  6533. "type": "string"
  6534. }
  6535. },
  6536. "id": {
  6537. "type": "string"
  6538. },
  6539. "npm": {
  6540. "type": "string"
  6541. },
  6542. "models": {
  6543. "type": "object",
  6544. "propertyNames": {
  6545. "type": "string"
  6546. },
  6547. "additionalProperties": {
  6548. "type": "object",
  6549. "properties": {
  6550. "id": {
  6551. "type": "string"
  6552. },
  6553. "name": {
  6554. "type": "string"
  6555. },
  6556. "release_date": {
  6557. "type": "string"
  6558. },
  6559. "attachment": {
  6560. "type": "boolean"
  6561. },
  6562. "reasoning": {
  6563. "type": "boolean"
  6564. },
  6565. "temperature": {
  6566. "type": "boolean"
  6567. },
  6568. "tool_call": {
  6569. "type": "boolean"
  6570. },
  6571. "cost": {
  6572. "type": "object",
  6573. "properties": {
  6574. "input": {
  6575. "type": "number"
  6576. },
  6577. "output": {
  6578. "type": "number"
  6579. },
  6580. "cache_read": {
  6581. "type": "number"
  6582. },
  6583. "cache_write": {
  6584. "type": "number"
  6585. },
  6586. "context_over_200k": {
  6587. "type": "object",
  6588. "properties": {
  6589. "input": {
  6590. "type": "number"
  6591. },
  6592. "output": {
  6593. "type": "number"
  6594. },
  6595. "cache_read": {
  6596. "type": "number"
  6597. },
  6598. "cache_write": {
  6599. "type": "number"
  6600. }
  6601. },
  6602. "required": ["input", "output"]
  6603. }
  6604. },
  6605. "required": ["input", "output"]
  6606. },
  6607. "limit": {
  6608. "type": "object",
  6609. "properties": {
  6610. "context": {
  6611. "type": "number"
  6612. },
  6613. "output": {
  6614. "type": "number"
  6615. }
  6616. },
  6617. "required": ["context", "output"]
  6618. },
  6619. "modalities": {
  6620. "type": "object",
  6621. "properties": {
  6622. "input": {
  6623. "type": "array",
  6624. "items": {
  6625. "type": "string",
  6626. "enum": ["text", "audio", "image", "video", "pdf"]
  6627. }
  6628. },
  6629. "output": {
  6630. "type": "array",
  6631. "items": {
  6632. "type": "string",
  6633. "enum": ["text", "audio", "image", "video", "pdf"]
  6634. }
  6635. }
  6636. },
  6637. "required": ["input", "output"]
  6638. },
  6639. "experimental": {
  6640. "type": "boolean"
  6641. },
  6642. "status": {
  6643. "type": "string",
  6644. "enum": ["alpha", "beta", "deprecated"]
  6645. },
  6646. "options": {
  6647. "type": "object",
  6648. "propertyNames": {
  6649. "type": "string"
  6650. },
  6651. "additionalProperties": {}
  6652. },
  6653. "headers": {
  6654. "type": "object",
  6655. "propertyNames": {
  6656. "type": "string"
  6657. },
  6658. "additionalProperties": {
  6659. "type": "string"
  6660. }
  6661. },
  6662. "provider": {
  6663. "type": "object",
  6664. "properties": {
  6665. "npm": {
  6666. "type": "string"
  6667. }
  6668. },
  6669. "required": ["npm"]
  6670. }
  6671. }
  6672. }
  6673. },
  6674. "whitelist": {
  6675. "type": "array",
  6676. "items": {
  6677. "type": "string"
  6678. }
  6679. },
  6680. "blacklist": {
  6681. "type": "array",
  6682. "items": {
  6683. "type": "string"
  6684. }
  6685. },
  6686. "options": {
  6687. "type": "object",
  6688. "properties": {
  6689. "apiKey": {
  6690. "type": "string"
  6691. },
  6692. "baseURL": {
  6693. "type": "string"
  6694. },
  6695. "enterpriseUrl": {
  6696. "description": "GitHub Enterprise URL for copilot authentication",
  6697. "type": "string"
  6698. },
  6699. "setCacheKey": {
  6700. "description": "Enable promptCacheKey for this provider (default false)",
  6701. "type": "boolean"
  6702. },
  6703. "timeout": {
  6704. "description": "Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.",
  6705. "anyOf": [
  6706. {
  6707. "description": "Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.",
  6708. "type": "integer",
  6709. "exclusiveMinimum": 0,
  6710. "maximum": 9007199254740991
  6711. },
  6712. {
  6713. "description": "Disable timeout for this provider entirely.",
  6714. "type": "boolean",
  6715. "const": false
  6716. }
  6717. ]
  6718. }
  6719. },
  6720. "additionalProperties": {}
  6721. }
  6722. },
  6723. "additionalProperties": false
  6724. },
  6725. "McpLocalConfig": {
  6726. "type": "object",
  6727. "properties": {
  6728. "type": {
  6729. "description": "Type of MCP server connection",
  6730. "type": "string",
  6731. "const": "local"
  6732. },
  6733. "command": {
  6734. "description": "Command and arguments to run the MCP server",
  6735. "type": "array",
  6736. "items": {
  6737. "type": "string"
  6738. }
  6739. },
  6740. "environment": {
  6741. "description": "Environment variables to set when running the MCP server",
  6742. "type": "object",
  6743. "propertyNames": {
  6744. "type": "string"
  6745. },
  6746. "additionalProperties": {
  6747. "type": "string"
  6748. }
  6749. },
  6750. "enabled": {
  6751. "description": "Enable or disable the MCP server on startup",
  6752. "type": "boolean"
  6753. },
  6754. "timeout": {
  6755. "description": "Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.",
  6756. "type": "integer",
  6757. "exclusiveMinimum": 0,
  6758. "maximum": 9007199254740991
  6759. }
  6760. },
  6761. "required": ["type", "command"],
  6762. "additionalProperties": false
  6763. },
  6764. "McpOAuthConfig": {
  6765. "type": "object",
  6766. "properties": {
  6767. "clientId": {
  6768. "description": "OAuth client ID. If not provided, dynamic client registration (RFC 7591) will be attempted.",
  6769. "type": "string"
  6770. },
  6771. "clientSecret": {
  6772. "description": "OAuth client secret (if required by the authorization server)",
  6773. "type": "string"
  6774. },
  6775. "scope": {
  6776. "description": "OAuth scopes to request during authorization",
  6777. "type": "string"
  6778. }
  6779. },
  6780. "additionalProperties": false
  6781. },
  6782. "McpRemoteConfig": {
  6783. "type": "object",
  6784. "properties": {
  6785. "type": {
  6786. "description": "Type of MCP server connection",
  6787. "type": "string",
  6788. "const": "remote"
  6789. },
  6790. "url": {
  6791. "description": "URL of the remote MCP server",
  6792. "type": "string"
  6793. },
  6794. "enabled": {
  6795. "description": "Enable or disable the MCP server on startup",
  6796. "type": "boolean"
  6797. },
  6798. "headers": {
  6799. "description": "Headers to send with the request",
  6800. "type": "object",
  6801. "propertyNames": {
  6802. "type": "string"
  6803. },
  6804. "additionalProperties": {
  6805. "type": "string"
  6806. }
  6807. },
  6808. "oauth": {
  6809. "description": "OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection.",
  6810. "anyOf": [
  6811. {
  6812. "$ref": "#/components/schemas/McpOAuthConfig"
  6813. },
  6814. {
  6815. "type": "boolean",
  6816. "const": false
  6817. }
  6818. ]
  6819. },
  6820. "timeout": {
  6821. "description": "Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.",
  6822. "type": "integer",
  6823. "exclusiveMinimum": 0,
  6824. "maximum": 9007199254740991
  6825. }
  6826. },
  6827. "required": ["type", "url"],
  6828. "additionalProperties": false
  6829. },
  6830. "LayoutConfig": {
  6831. "description": "@deprecated Always uses stretch layout.",
  6832. "type": "string",
  6833. "enum": ["auto", "stretch"]
  6834. },
  6835. "Config": {
  6836. "type": "object",
  6837. "properties": {
  6838. "$schema": {
  6839. "description": "JSON schema reference for configuration validation",
  6840. "type": "string"
  6841. },
  6842. "theme": {
  6843. "description": "Theme name to use for the interface",
  6844. "type": "string"
  6845. },
  6846. "keybinds": {
  6847. "$ref": "#/components/schemas/KeybindsConfig"
  6848. },
  6849. "tui": {
  6850. "description": "TUI specific settings",
  6851. "type": "object",
  6852. "properties": {
  6853. "scroll_speed": {
  6854. "description": "TUI scroll speed",
  6855. "type": "number",
  6856. "minimum": 0.001
  6857. },
  6858. "scroll_acceleration": {
  6859. "description": "Scroll acceleration settings",
  6860. "type": "object",
  6861. "properties": {
  6862. "enabled": {
  6863. "description": "Enable scroll acceleration",
  6864. "type": "boolean"
  6865. }
  6866. },
  6867. "required": ["enabled"]
  6868. },
  6869. "diff_style": {
  6870. "description": "Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column",
  6871. "type": "string",
  6872. "enum": ["auto", "stacked"]
  6873. }
  6874. }
  6875. },
  6876. "command": {
  6877. "description": "Command configuration, see https://opencode.ai/docs/commands",
  6878. "type": "object",
  6879. "propertyNames": {
  6880. "type": "string"
  6881. },
  6882. "additionalProperties": {
  6883. "type": "object",
  6884. "properties": {
  6885. "template": {
  6886. "type": "string"
  6887. },
  6888. "description": {
  6889. "type": "string"
  6890. },
  6891. "agent": {
  6892. "type": "string"
  6893. },
  6894. "model": {
  6895. "type": "string"
  6896. },
  6897. "subtask": {
  6898. "type": "boolean"
  6899. }
  6900. },
  6901. "required": ["template"]
  6902. }
  6903. },
  6904. "watcher": {
  6905. "type": "object",
  6906. "properties": {
  6907. "ignore": {
  6908. "type": "array",
  6909. "items": {
  6910. "type": "string"
  6911. }
  6912. }
  6913. }
  6914. },
  6915. "plugin": {
  6916. "type": "array",
  6917. "items": {
  6918. "type": "string"
  6919. }
  6920. },
  6921. "snapshot": {
  6922. "type": "boolean"
  6923. },
  6924. "share": {
  6925. "description": "Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing",
  6926. "type": "string",
  6927. "enum": ["manual", "auto", "disabled"]
  6928. },
  6929. "autoshare": {
  6930. "description": "@deprecated Use 'share' field instead. Share newly created sessions automatically",
  6931. "type": "boolean"
  6932. },
  6933. "autoupdate": {
  6934. "description": "Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications",
  6935. "anyOf": [
  6936. {
  6937. "type": "boolean"
  6938. },
  6939. {
  6940. "type": "string",
  6941. "const": "notify"
  6942. }
  6943. ]
  6944. },
  6945. "disabled_providers": {
  6946. "description": "Disable providers that are loaded automatically",
  6947. "type": "array",
  6948. "items": {
  6949. "type": "string"
  6950. }
  6951. },
  6952. "enabled_providers": {
  6953. "description": "When set, ONLY these providers will be enabled. All other providers will be ignored",
  6954. "type": "array",
  6955. "items": {
  6956. "type": "string"
  6957. }
  6958. },
  6959. "model": {
  6960. "description": "Model to use in the format of provider/model, eg anthropic/claude-2",
  6961. "type": "string"
  6962. },
  6963. "small_model": {
  6964. "description": "Small model to use for tasks like title generation in the format of provider/model",
  6965. "type": "string"
  6966. },
  6967. "username": {
  6968. "description": "Custom username to display in conversations instead of system username",
  6969. "type": "string"
  6970. },
  6971. "mode": {
  6972. "description": "@deprecated Use `agent` field instead.",
  6973. "type": "object",
  6974. "properties": {
  6975. "build": {
  6976. "$ref": "#/components/schemas/AgentConfig"
  6977. },
  6978. "plan": {
  6979. "$ref": "#/components/schemas/AgentConfig"
  6980. }
  6981. },
  6982. "additionalProperties": {
  6983. "$ref": "#/components/schemas/AgentConfig"
  6984. }
  6985. },
  6986. "agent": {
  6987. "description": "Agent configuration, see https://opencode.ai/docs/agent",
  6988. "type": "object",
  6989. "properties": {
  6990. "plan": {
  6991. "$ref": "#/components/schemas/AgentConfig"
  6992. },
  6993. "build": {
  6994. "$ref": "#/components/schemas/AgentConfig"
  6995. },
  6996. "general": {
  6997. "$ref": "#/components/schemas/AgentConfig"
  6998. },
  6999. "explore": {
  7000. "$ref": "#/components/schemas/AgentConfig"
  7001. }
  7002. },
  7003. "additionalProperties": {
  7004. "$ref": "#/components/schemas/AgentConfig"
  7005. }
  7006. },
  7007. "provider": {
  7008. "description": "Custom provider configurations and model overrides",
  7009. "type": "object",
  7010. "propertyNames": {
  7011. "type": "string"
  7012. },
  7013. "additionalProperties": {
  7014. "$ref": "#/components/schemas/ProviderConfig"
  7015. }
  7016. },
  7017. "mcp": {
  7018. "description": "MCP (Model Context Protocol) server configurations",
  7019. "type": "object",
  7020. "propertyNames": {
  7021. "type": "string"
  7022. },
  7023. "additionalProperties": {
  7024. "anyOf": [
  7025. {
  7026. "$ref": "#/components/schemas/McpLocalConfig"
  7027. },
  7028. {
  7029. "$ref": "#/components/schemas/McpRemoteConfig"
  7030. }
  7031. ]
  7032. }
  7033. },
  7034. "formatter": {
  7035. "anyOf": [
  7036. {
  7037. "type": "boolean",
  7038. "const": false
  7039. },
  7040. {
  7041. "type": "object",
  7042. "propertyNames": {
  7043. "type": "string"
  7044. },
  7045. "additionalProperties": {
  7046. "type": "object",
  7047. "properties": {
  7048. "disabled": {
  7049. "type": "boolean"
  7050. },
  7051. "command": {
  7052. "type": "array",
  7053. "items": {
  7054. "type": "string"
  7055. }
  7056. },
  7057. "environment": {
  7058. "type": "object",
  7059. "propertyNames": {
  7060. "type": "string"
  7061. },
  7062. "additionalProperties": {
  7063. "type": "string"
  7064. }
  7065. },
  7066. "extensions": {
  7067. "type": "array",
  7068. "items": {
  7069. "type": "string"
  7070. }
  7071. }
  7072. }
  7073. }
  7074. }
  7075. ]
  7076. },
  7077. "lsp": {
  7078. "anyOf": [
  7079. {
  7080. "type": "boolean",
  7081. "const": false
  7082. },
  7083. {
  7084. "type": "object",
  7085. "propertyNames": {
  7086. "type": "string"
  7087. },
  7088. "additionalProperties": {
  7089. "anyOf": [
  7090. {
  7091. "type": "object",
  7092. "properties": {
  7093. "disabled": {
  7094. "type": "boolean",
  7095. "const": true
  7096. }
  7097. },
  7098. "required": ["disabled"]
  7099. },
  7100. {
  7101. "type": "object",
  7102. "properties": {
  7103. "command": {
  7104. "type": "array",
  7105. "items": {
  7106. "type": "string"
  7107. }
  7108. },
  7109. "extensions": {
  7110. "type": "array",
  7111. "items": {
  7112. "type": "string"
  7113. }
  7114. },
  7115. "disabled": {
  7116. "type": "boolean"
  7117. },
  7118. "env": {
  7119. "type": "object",
  7120. "propertyNames": {
  7121. "type": "string"
  7122. },
  7123. "additionalProperties": {
  7124. "type": "string"
  7125. }
  7126. },
  7127. "initialization": {
  7128. "type": "object",
  7129. "propertyNames": {
  7130. "type": "string"
  7131. },
  7132. "additionalProperties": {}
  7133. }
  7134. },
  7135. "required": ["command"]
  7136. }
  7137. ]
  7138. }
  7139. }
  7140. ]
  7141. },
  7142. "instructions": {
  7143. "description": "Additional instruction files or patterns to include",
  7144. "type": "array",
  7145. "items": {
  7146. "type": "string"
  7147. }
  7148. },
  7149. "layout": {
  7150. "$ref": "#/components/schemas/LayoutConfig"
  7151. },
  7152. "permission": {
  7153. "type": "object",
  7154. "properties": {
  7155. "edit": {
  7156. "type": "string",
  7157. "enum": ["ask", "allow", "deny"]
  7158. },
  7159. "bash": {
  7160. "anyOf": [
  7161. {
  7162. "type": "string",
  7163. "enum": ["ask", "allow", "deny"]
  7164. },
  7165. {
  7166. "type": "object",
  7167. "propertyNames": {
  7168. "type": "string"
  7169. },
  7170. "additionalProperties": {
  7171. "type": "string",
  7172. "enum": ["ask", "allow", "deny"]
  7173. }
  7174. }
  7175. ]
  7176. },
  7177. "webfetch": {
  7178. "type": "string",
  7179. "enum": ["ask", "allow", "deny"]
  7180. },
  7181. "doom_loop": {
  7182. "type": "string",
  7183. "enum": ["ask", "allow", "deny"]
  7184. },
  7185. "external_directory": {
  7186. "type": "string",
  7187. "enum": ["ask", "allow", "deny"]
  7188. }
  7189. }
  7190. },
  7191. "tools": {
  7192. "type": "object",
  7193. "propertyNames": {
  7194. "type": "string"
  7195. },
  7196. "additionalProperties": {
  7197. "type": "boolean"
  7198. }
  7199. },
  7200. "enterprise": {
  7201. "type": "object",
  7202. "properties": {
  7203. "url": {
  7204. "description": "Enterprise URL",
  7205. "type": "string"
  7206. }
  7207. }
  7208. },
  7209. "experimental": {
  7210. "type": "object",
  7211. "properties": {
  7212. "hook": {
  7213. "type": "object",
  7214. "properties": {
  7215. "file_edited": {
  7216. "type": "object",
  7217. "propertyNames": {
  7218. "type": "string"
  7219. },
  7220. "additionalProperties": {
  7221. "type": "array",
  7222. "items": {
  7223. "type": "object",
  7224. "properties": {
  7225. "command": {
  7226. "type": "array",
  7227. "items": {
  7228. "type": "string"
  7229. }
  7230. },
  7231. "environment": {
  7232. "type": "object",
  7233. "propertyNames": {
  7234. "type": "string"
  7235. },
  7236. "additionalProperties": {
  7237. "type": "string"
  7238. }
  7239. }
  7240. },
  7241. "required": ["command"]
  7242. }
  7243. }
  7244. },
  7245. "session_completed": {
  7246. "type": "array",
  7247. "items": {
  7248. "type": "object",
  7249. "properties": {
  7250. "command": {
  7251. "type": "array",
  7252. "items": {
  7253. "type": "string"
  7254. }
  7255. },
  7256. "environment": {
  7257. "type": "object",
  7258. "propertyNames": {
  7259. "type": "string"
  7260. },
  7261. "additionalProperties": {
  7262. "type": "string"
  7263. }
  7264. }
  7265. },
  7266. "required": ["command"]
  7267. }
  7268. }
  7269. }
  7270. },
  7271. "chatMaxRetries": {
  7272. "description": "Number of retries for chat completions on failure",
  7273. "type": "number"
  7274. },
  7275. "disable_paste_summary": {
  7276. "type": "boolean"
  7277. },
  7278. "batch_tool": {
  7279. "description": "Enable the batch tool",
  7280. "type": "boolean"
  7281. },
  7282. "openTelemetry": {
  7283. "description": "Enable OpenTelemetry spans for AI SDK calls (using the 'experimental_telemetry' flag)",
  7284. "type": "boolean"
  7285. },
  7286. "primary_tools": {
  7287. "description": "Tools that should only be available to primary agents.",
  7288. "type": "array",
  7289. "items": {
  7290. "type": "string"
  7291. }
  7292. }
  7293. }
  7294. }
  7295. },
  7296. "additionalProperties": false
  7297. },
  7298. "ToolIDs": {
  7299. "type": "array",
  7300. "items": {
  7301. "type": "string"
  7302. }
  7303. },
  7304. "ToolListItem": {
  7305. "type": "object",
  7306. "properties": {
  7307. "id": {
  7308. "type": "string"
  7309. },
  7310. "description": {
  7311. "type": "string"
  7312. },
  7313. "parameters": {}
  7314. },
  7315. "required": ["id", "description", "parameters"]
  7316. },
  7317. "ToolList": {
  7318. "type": "array",
  7319. "items": {
  7320. "$ref": "#/components/schemas/ToolListItem"
  7321. }
  7322. },
  7323. "Path": {
  7324. "type": "object",
  7325. "properties": {
  7326. "state": {
  7327. "type": "string"
  7328. },
  7329. "config": {
  7330. "type": "string"
  7331. },
  7332. "worktree": {
  7333. "type": "string"
  7334. },
  7335. "directory": {
  7336. "type": "string"
  7337. }
  7338. },
  7339. "required": ["state", "config", "worktree", "directory"]
  7340. },
  7341. "VcsInfo": {
  7342. "type": "object",
  7343. "properties": {
  7344. "branch": {
  7345. "type": "string"
  7346. }
  7347. },
  7348. "required": ["branch"]
  7349. },
  7350. "TextPartInput": {
  7351. "type": "object",
  7352. "properties": {
  7353. "id": {
  7354. "type": "string"
  7355. },
  7356. "type": {
  7357. "type": "string",
  7358. "const": "text"
  7359. },
  7360. "text": {
  7361. "type": "string"
  7362. },
  7363. "synthetic": {
  7364. "type": "boolean"
  7365. },
  7366. "ignored": {
  7367. "type": "boolean"
  7368. },
  7369. "time": {
  7370. "type": "object",
  7371. "properties": {
  7372. "start": {
  7373. "type": "number"
  7374. },
  7375. "end": {
  7376. "type": "number"
  7377. }
  7378. },
  7379. "required": ["start"]
  7380. },
  7381. "metadata": {
  7382. "type": "object",
  7383. "propertyNames": {
  7384. "type": "string"
  7385. },
  7386. "additionalProperties": {}
  7387. }
  7388. },
  7389. "required": ["type", "text"]
  7390. },
  7391. "FilePartInput": {
  7392. "type": "object",
  7393. "properties": {
  7394. "id": {
  7395. "type": "string"
  7396. },
  7397. "type": {
  7398. "type": "string",
  7399. "const": "file"
  7400. },
  7401. "mime": {
  7402. "type": "string"
  7403. },
  7404. "filename": {
  7405. "type": "string"
  7406. },
  7407. "url": {
  7408. "type": "string"
  7409. },
  7410. "source": {
  7411. "$ref": "#/components/schemas/FilePartSource"
  7412. }
  7413. },
  7414. "required": ["type", "mime", "url"]
  7415. },
  7416. "AgentPartInput": {
  7417. "type": "object",
  7418. "properties": {
  7419. "id": {
  7420. "type": "string"
  7421. },
  7422. "type": {
  7423. "type": "string",
  7424. "const": "agent"
  7425. },
  7426. "name": {
  7427. "type": "string"
  7428. },
  7429. "source": {
  7430. "type": "object",
  7431. "properties": {
  7432. "value": {
  7433. "type": "string"
  7434. },
  7435. "start": {
  7436. "type": "integer",
  7437. "minimum": -9007199254740991,
  7438. "maximum": 9007199254740991
  7439. },
  7440. "end": {
  7441. "type": "integer",
  7442. "minimum": -9007199254740991,
  7443. "maximum": 9007199254740991
  7444. }
  7445. },
  7446. "required": ["value", "start", "end"]
  7447. }
  7448. },
  7449. "required": ["type", "name"]
  7450. },
  7451. "SubtaskPartInput": {
  7452. "type": "object",
  7453. "properties": {
  7454. "id": {
  7455. "type": "string"
  7456. },
  7457. "type": {
  7458. "type": "string",
  7459. "const": "subtask"
  7460. },
  7461. "prompt": {
  7462. "type": "string"
  7463. },
  7464. "description": {
  7465. "type": "string"
  7466. },
  7467. "agent": {
  7468. "type": "string"
  7469. }
  7470. },
  7471. "required": ["type", "prompt", "description", "agent"]
  7472. },
  7473. "Command": {
  7474. "type": "object",
  7475. "properties": {
  7476. "name": {
  7477. "type": "string"
  7478. },
  7479. "description": {
  7480. "type": "string"
  7481. },
  7482. "agent": {
  7483. "type": "string"
  7484. },
  7485. "model": {
  7486. "type": "string"
  7487. },
  7488. "template": {
  7489. "type": "string"
  7490. },
  7491. "subtask": {
  7492. "type": "boolean"
  7493. }
  7494. },
  7495. "required": ["name", "template"]
  7496. },
  7497. "Model": {
  7498. "type": "object",
  7499. "properties": {
  7500. "id": {
  7501. "type": "string"
  7502. },
  7503. "providerID": {
  7504. "type": "string"
  7505. },
  7506. "api": {
  7507. "type": "object",
  7508. "properties": {
  7509. "id": {
  7510. "type": "string"
  7511. },
  7512. "url": {
  7513. "type": "string"
  7514. },
  7515. "npm": {
  7516. "type": "string"
  7517. }
  7518. },
  7519. "required": ["id", "url", "npm"]
  7520. },
  7521. "name": {
  7522. "type": "string"
  7523. },
  7524. "capabilities": {
  7525. "type": "object",
  7526. "properties": {
  7527. "temperature": {
  7528. "type": "boolean"
  7529. },
  7530. "reasoning": {
  7531. "type": "boolean"
  7532. },
  7533. "attachment": {
  7534. "type": "boolean"
  7535. },
  7536. "toolcall": {
  7537. "type": "boolean"
  7538. },
  7539. "input": {
  7540. "type": "object",
  7541. "properties": {
  7542. "text": {
  7543. "type": "boolean"
  7544. },
  7545. "audio": {
  7546. "type": "boolean"
  7547. },
  7548. "image": {
  7549. "type": "boolean"
  7550. },
  7551. "video": {
  7552. "type": "boolean"
  7553. },
  7554. "pdf": {
  7555. "type": "boolean"
  7556. }
  7557. },
  7558. "required": ["text", "audio", "image", "video", "pdf"]
  7559. },
  7560. "output": {
  7561. "type": "object",
  7562. "properties": {
  7563. "text": {
  7564. "type": "boolean"
  7565. },
  7566. "audio": {
  7567. "type": "boolean"
  7568. },
  7569. "image": {
  7570. "type": "boolean"
  7571. },
  7572. "video": {
  7573. "type": "boolean"
  7574. },
  7575. "pdf": {
  7576. "type": "boolean"
  7577. }
  7578. },
  7579. "required": ["text", "audio", "image", "video", "pdf"]
  7580. }
  7581. },
  7582. "required": ["temperature", "reasoning", "attachment", "toolcall", "input", "output"]
  7583. },
  7584. "cost": {
  7585. "type": "object",
  7586. "properties": {
  7587. "input": {
  7588. "type": "number"
  7589. },
  7590. "output": {
  7591. "type": "number"
  7592. },
  7593. "cache": {
  7594. "type": "object",
  7595. "properties": {
  7596. "read": {
  7597. "type": "number"
  7598. },
  7599. "write": {
  7600. "type": "number"
  7601. }
  7602. },
  7603. "required": ["read", "write"]
  7604. },
  7605. "experimentalOver200K": {
  7606. "type": "object",
  7607. "properties": {
  7608. "input": {
  7609. "type": "number"
  7610. },
  7611. "output": {
  7612. "type": "number"
  7613. },
  7614. "cache": {
  7615. "type": "object",
  7616. "properties": {
  7617. "read": {
  7618. "type": "number"
  7619. },
  7620. "write": {
  7621. "type": "number"
  7622. }
  7623. },
  7624. "required": ["read", "write"]
  7625. }
  7626. },
  7627. "required": ["input", "output", "cache"]
  7628. }
  7629. },
  7630. "required": ["input", "output", "cache"]
  7631. },
  7632. "limit": {
  7633. "type": "object",
  7634. "properties": {
  7635. "context": {
  7636. "type": "number"
  7637. },
  7638. "output": {
  7639. "type": "number"
  7640. }
  7641. },
  7642. "required": ["context", "output"]
  7643. },
  7644. "status": {
  7645. "type": "string",
  7646. "enum": ["alpha", "beta", "deprecated", "active"]
  7647. },
  7648. "options": {
  7649. "type": "object",
  7650. "propertyNames": {
  7651. "type": "string"
  7652. },
  7653. "additionalProperties": {}
  7654. },
  7655. "headers": {
  7656. "type": "object",
  7657. "propertyNames": {
  7658. "type": "string"
  7659. },
  7660. "additionalProperties": {
  7661. "type": "string"
  7662. }
  7663. }
  7664. },
  7665. "required": ["id", "providerID", "api", "name", "capabilities", "cost", "limit", "status", "options", "headers"]
  7666. },
  7667. "Provider": {
  7668. "type": "object",
  7669. "properties": {
  7670. "id": {
  7671. "type": "string"
  7672. },
  7673. "name": {
  7674. "type": "string"
  7675. },
  7676. "source": {
  7677. "type": "string",
  7678. "enum": ["env", "config", "custom", "api"]
  7679. },
  7680. "env": {
  7681. "type": "array",
  7682. "items": {
  7683. "type": "string"
  7684. }
  7685. },
  7686. "key": {
  7687. "type": "string"
  7688. },
  7689. "options": {
  7690. "type": "object",
  7691. "propertyNames": {
  7692. "type": "string"
  7693. },
  7694. "additionalProperties": {}
  7695. },
  7696. "models": {
  7697. "type": "object",
  7698. "propertyNames": {
  7699. "type": "string"
  7700. },
  7701. "additionalProperties": {
  7702. "$ref": "#/components/schemas/Model"
  7703. }
  7704. }
  7705. },
  7706. "required": ["id", "name", "source", "env", "options", "models"]
  7707. },
  7708. "ProviderAuthMethod": {
  7709. "type": "object",
  7710. "properties": {
  7711. "type": {
  7712. "anyOf": [
  7713. {
  7714. "type": "string",
  7715. "const": "oauth"
  7716. },
  7717. {
  7718. "type": "string",
  7719. "const": "api"
  7720. }
  7721. ]
  7722. },
  7723. "label": {
  7724. "type": "string"
  7725. }
  7726. },
  7727. "required": ["type", "label"]
  7728. },
  7729. "ProviderAuthAuthorization": {
  7730. "type": "object",
  7731. "properties": {
  7732. "url": {
  7733. "type": "string"
  7734. },
  7735. "method": {
  7736. "anyOf": [
  7737. {
  7738. "type": "string",
  7739. "const": "auto"
  7740. },
  7741. {
  7742. "type": "string",
  7743. "const": "code"
  7744. }
  7745. ]
  7746. },
  7747. "instructions": {
  7748. "type": "string"
  7749. }
  7750. },
  7751. "required": ["url", "method", "instructions"]
  7752. },
  7753. "Symbol": {
  7754. "type": "object",
  7755. "properties": {
  7756. "name": {
  7757. "type": "string"
  7758. },
  7759. "kind": {
  7760. "type": "number"
  7761. },
  7762. "location": {
  7763. "type": "object",
  7764. "properties": {
  7765. "uri": {
  7766. "type": "string"
  7767. },
  7768. "range": {
  7769. "$ref": "#/components/schemas/Range"
  7770. }
  7771. },
  7772. "required": ["uri", "range"]
  7773. }
  7774. },
  7775. "required": ["name", "kind", "location"]
  7776. },
  7777. "FileNode": {
  7778. "type": "object",
  7779. "properties": {
  7780. "name": {
  7781. "type": "string"
  7782. },
  7783. "path": {
  7784. "type": "string"
  7785. },
  7786. "absolute": {
  7787. "type": "string"
  7788. },
  7789. "type": {
  7790. "type": "string",
  7791. "enum": ["file", "directory"]
  7792. },
  7793. "ignored": {
  7794. "type": "boolean"
  7795. }
  7796. },
  7797. "required": ["name", "path", "absolute", "type", "ignored"]
  7798. },
  7799. "FileContent": {
  7800. "type": "object",
  7801. "properties": {
  7802. "type": {
  7803. "type": "string",
  7804. "const": "text"
  7805. },
  7806. "content": {
  7807. "type": "string"
  7808. },
  7809. "diff": {
  7810. "type": "string"
  7811. },
  7812. "patch": {
  7813. "type": "object",
  7814. "properties": {
  7815. "oldFileName": {
  7816. "type": "string"
  7817. },
  7818. "newFileName": {
  7819. "type": "string"
  7820. },
  7821. "oldHeader": {
  7822. "type": "string"
  7823. },
  7824. "newHeader": {
  7825. "type": "string"
  7826. },
  7827. "hunks": {
  7828. "type": "array",
  7829. "items": {
  7830. "type": "object",
  7831. "properties": {
  7832. "oldStart": {
  7833. "type": "number"
  7834. },
  7835. "oldLines": {
  7836. "type": "number"
  7837. },
  7838. "newStart": {
  7839. "type": "number"
  7840. },
  7841. "newLines": {
  7842. "type": "number"
  7843. },
  7844. "lines": {
  7845. "type": "array",
  7846. "items": {
  7847. "type": "string"
  7848. }
  7849. }
  7850. },
  7851. "required": ["oldStart", "oldLines", "newStart", "newLines", "lines"]
  7852. }
  7853. },
  7854. "index": {
  7855. "type": "string"
  7856. }
  7857. },
  7858. "required": ["oldFileName", "newFileName", "hunks"]
  7859. },
  7860. "encoding": {
  7861. "type": "string",
  7862. "const": "base64"
  7863. },
  7864. "mimeType": {
  7865. "type": "string"
  7866. }
  7867. },
  7868. "required": ["type", "content"]
  7869. },
  7870. "File": {
  7871. "type": "object",
  7872. "properties": {
  7873. "path": {
  7874. "type": "string"
  7875. },
  7876. "added": {
  7877. "type": "integer",
  7878. "minimum": -9007199254740991,
  7879. "maximum": 9007199254740991
  7880. },
  7881. "removed": {
  7882. "type": "integer",
  7883. "minimum": -9007199254740991,
  7884. "maximum": 9007199254740991
  7885. },
  7886. "status": {
  7887. "type": "string",
  7888. "enum": ["added", "deleted", "modified"]
  7889. }
  7890. },
  7891. "required": ["path", "added", "removed", "status"]
  7892. },
  7893. "Agent": {
  7894. "type": "object",
  7895. "properties": {
  7896. "name": {
  7897. "type": "string"
  7898. },
  7899. "description": {
  7900. "type": "string"
  7901. },
  7902. "mode": {
  7903. "type": "string",
  7904. "enum": ["subagent", "primary", "all"]
  7905. },
  7906. "builtIn": {
  7907. "type": "boolean"
  7908. },
  7909. "topP": {
  7910. "type": "number"
  7911. },
  7912. "temperature": {
  7913. "type": "number"
  7914. },
  7915. "color": {
  7916. "type": "string"
  7917. },
  7918. "permission": {
  7919. "type": "object",
  7920. "properties": {
  7921. "edit": {
  7922. "type": "string",
  7923. "enum": ["ask", "allow", "deny"]
  7924. },
  7925. "bash": {
  7926. "type": "object",
  7927. "propertyNames": {
  7928. "type": "string"
  7929. },
  7930. "additionalProperties": {
  7931. "type": "string",
  7932. "enum": ["ask", "allow", "deny"]
  7933. }
  7934. },
  7935. "webfetch": {
  7936. "type": "string",
  7937. "enum": ["ask", "allow", "deny"]
  7938. },
  7939. "doom_loop": {
  7940. "type": "string",
  7941. "enum": ["ask", "allow", "deny"]
  7942. },
  7943. "external_directory": {
  7944. "type": "string",
  7945. "enum": ["ask", "allow", "deny"]
  7946. }
  7947. },
  7948. "required": ["edit", "bash"]
  7949. },
  7950. "model": {
  7951. "type": "object",
  7952. "properties": {
  7953. "modelID": {
  7954. "type": "string"
  7955. },
  7956. "providerID": {
  7957. "type": "string"
  7958. }
  7959. },
  7960. "required": ["modelID", "providerID"]
  7961. },
  7962. "prompt": {
  7963. "type": "string"
  7964. },
  7965. "tools": {
  7966. "type": "object",
  7967. "propertyNames": {
  7968. "type": "string"
  7969. },
  7970. "additionalProperties": {
  7971. "type": "boolean"
  7972. }
  7973. },
  7974. "options": {
  7975. "type": "object",
  7976. "propertyNames": {
  7977. "type": "string"
  7978. },
  7979. "additionalProperties": {}
  7980. },
  7981. "maxSteps": {
  7982. "type": "integer",
  7983. "exclusiveMinimum": 0,
  7984. "maximum": 9007199254740991
  7985. }
  7986. },
  7987. "required": ["name", "mode", "builtIn", "permission", "tools", "options"]
  7988. },
  7989. "MCPStatusConnected": {
  7990. "type": "object",
  7991. "properties": {
  7992. "status": {
  7993. "type": "string",
  7994. "const": "connected"
  7995. }
  7996. },
  7997. "required": ["status"]
  7998. },
  7999. "MCPStatusDisabled": {
  8000. "type": "object",
  8001. "properties": {
  8002. "status": {
  8003. "type": "string",
  8004. "const": "disabled"
  8005. }
  8006. },
  8007. "required": ["status"]
  8008. },
  8009. "MCPStatusFailed": {
  8010. "type": "object",
  8011. "properties": {
  8012. "status": {
  8013. "type": "string",
  8014. "const": "failed"
  8015. },
  8016. "error": {
  8017. "type": "string"
  8018. }
  8019. },
  8020. "required": ["status", "error"]
  8021. },
  8022. "MCPStatusNeedsAuth": {
  8023. "type": "object",
  8024. "properties": {
  8025. "status": {
  8026. "type": "string",
  8027. "const": "needs_auth"
  8028. }
  8029. },
  8030. "required": ["status"]
  8031. },
  8032. "MCPStatusNeedsClientRegistration": {
  8033. "type": "object",
  8034. "properties": {
  8035. "status": {
  8036. "type": "string",
  8037. "const": "needs_client_registration"
  8038. },
  8039. "error": {
  8040. "type": "string"
  8041. }
  8042. },
  8043. "required": ["status", "error"]
  8044. },
  8045. "MCPStatus": {
  8046. "anyOf": [
  8047. {
  8048. "$ref": "#/components/schemas/MCPStatusConnected"
  8049. },
  8050. {
  8051. "$ref": "#/components/schemas/MCPStatusDisabled"
  8052. },
  8053. {
  8054. "$ref": "#/components/schemas/MCPStatusFailed"
  8055. },
  8056. {
  8057. "$ref": "#/components/schemas/MCPStatusNeedsAuth"
  8058. },
  8059. {
  8060. "$ref": "#/components/schemas/MCPStatusNeedsClientRegistration"
  8061. }
  8062. ]
  8063. },
  8064. "LSPStatus": {
  8065. "type": "object",
  8066. "properties": {
  8067. "id": {
  8068. "type": "string"
  8069. },
  8070. "name": {
  8071. "type": "string"
  8072. },
  8073. "root": {
  8074. "type": "string"
  8075. },
  8076. "status": {
  8077. "anyOf": [
  8078. {
  8079. "type": "string",
  8080. "const": "connected"
  8081. },
  8082. {
  8083. "type": "string",
  8084. "const": "error"
  8085. }
  8086. ]
  8087. }
  8088. },
  8089. "required": ["id", "name", "root", "status"]
  8090. },
  8091. "FormatterStatus": {
  8092. "type": "object",
  8093. "properties": {
  8094. "name": {
  8095. "type": "string"
  8096. },
  8097. "extensions": {
  8098. "type": "array",
  8099. "items": {
  8100. "type": "string"
  8101. }
  8102. },
  8103. "enabled": {
  8104. "type": "boolean"
  8105. }
  8106. },
  8107. "required": ["name", "extensions", "enabled"]
  8108. },
  8109. "OAuth": {
  8110. "type": "object",
  8111. "properties": {
  8112. "type": {
  8113. "type": "string",
  8114. "const": "oauth"
  8115. },
  8116. "refresh": {
  8117. "type": "string"
  8118. },
  8119. "access": {
  8120. "type": "string"
  8121. },
  8122. "expires": {
  8123. "type": "number"
  8124. },
  8125. "enterpriseUrl": {
  8126. "type": "string"
  8127. }
  8128. },
  8129. "required": ["type", "refresh", "access", "expires"]
  8130. },
  8131. "ApiAuth": {
  8132. "type": "object",
  8133. "properties": {
  8134. "type": {
  8135. "type": "string",
  8136. "const": "api"
  8137. },
  8138. "key": {
  8139. "type": "string"
  8140. }
  8141. },
  8142. "required": ["type", "key"]
  8143. },
  8144. "WellKnownAuth": {
  8145. "type": "object",
  8146. "properties": {
  8147. "type": {
  8148. "type": "string",
  8149. "const": "wellknown"
  8150. },
  8151. "key": {
  8152. "type": "string"
  8153. },
  8154. "token": {
  8155. "type": "string"
  8156. }
  8157. },
  8158. "required": ["type", "key", "token"]
  8159. },
  8160. "Auth": {
  8161. "anyOf": [
  8162. {
  8163. "$ref": "#/components/schemas/OAuth"
  8164. },
  8165. {
  8166. "$ref": "#/components/schemas/ApiAuth"
  8167. },
  8168. {
  8169. "$ref": "#/components/schemas/WellKnownAuth"
  8170. }
  8171. ]
  8172. }
  8173. }
  8174. }
  8175. }