openapi.json 447 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131
  1. {
  2. "openapi": "3.1.1",
  3. "info": {
  4. "title": "kilo",
  5. "description": "kilo api",
  6. "version": "1.0.0"
  7. },
  8. "paths": {
  9. "/global/health": {
  10. "get": {
  11. "operationId": "global.health",
  12. "summary": "Get health",
  13. "description": "Get health information about the Kilo server.",
  14. "responses": {
  15. "200": {
  16. "description": "Health information",
  17. "content": {
  18. "application/json": {
  19. "schema": {
  20. "type": "object",
  21. "properties": {
  22. "healthy": {
  23. "type": "boolean",
  24. "const": true
  25. },
  26. "version": {
  27. "type": "string"
  28. }
  29. },
  30. "required": ["healthy", "version"]
  31. }
  32. }
  33. }
  34. }
  35. },
  36. "x-codeSamples": [
  37. {
  38. "lang": "js",
  39. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.global.health({\n ...\n})"
  40. }
  41. ]
  42. }
  43. },
  44. "/global/event": {
  45. "get": {
  46. "operationId": "global.event",
  47. "summary": "Get global events",
  48. "description": "Subscribe to global events from the Kilo system using server-sent events.",
  49. "responses": {
  50. "200": {
  51. "description": "Event stream",
  52. "content": {
  53. "text/event-stream": {
  54. "schema": {
  55. "$ref": "#/components/schemas/GlobalEvent"
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "x-codeSamples": [
  62. {
  63. "lang": "js",
  64. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.global.event({\n ...\n})"
  65. }
  66. ]
  67. }
  68. },
  69. "/global/sync-event": {
  70. "get": {
  71. "operationId": "global.sync-event.subscribe",
  72. "summary": "Subscribe to global sync events",
  73. "description": "Get global sync events",
  74. "responses": {
  75. "200": {
  76. "description": "Event stream",
  77. "content": {
  78. "text/event-stream": {
  79. "schema": {
  80. "$ref": "#/components/schemas/SyncEvent"
  81. }
  82. }
  83. }
  84. }
  85. },
  86. "x-codeSamples": [
  87. {
  88. "lang": "js",
  89. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.global.sync-event.subscribe({\n ...\n})"
  90. }
  91. ]
  92. }
  93. },
  94. "/global/config": {
  95. "get": {
  96. "operationId": "global.config.get",
  97. "summary": "Get global configuration",
  98. "description": "Retrieve the current global Kilo configuration settings and preferences.",
  99. "responses": {
  100. "200": {
  101. "description": "Get global config info",
  102. "content": {
  103. "application/json": {
  104. "schema": {
  105. "$ref": "#/components/schemas/Config"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "x-codeSamples": [
  112. {
  113. "lang": "js",
  114. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.global.config.get({\n ...\n})"
  115. }
  116. ]
  117. },
  118. "patch": {
  119. "operationId": "global.config.update",
  120. "summary": "Update global configuration",
  121. "description": "Update global Kilo configuration settings and preferences.",
  122. "responses": {
  123. "200": {
  124. "description": "Successfully updated global config",
  125. "content": {
  126. "application/json": {
  127. "schema": {
  128. "$ref": "#/components/schemas/Config"
  129. }
  130. }
  131. }
  132. },
  133. "400": {
  134. "description": "Bad request",
  135. "content": {
  136. "application/json": {
  137. "schema": {
  138. "$ref": "#/components/schemas/BadRequestError"
  139. }
  140. }
  141. }
  142. }
  143. },
  144. "requestBody": {
  145. "content": {
  146. "application/json": {
  147. "schema": {
  148. "$ref": "#/components/schemas/Config"
  149. }
  150. }
  151. }
  152. },
  153. "x-codeSamples": [
  154. {
  155. "lang": "js",
  156. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.global.config.update({\n ...\n})"
  157. }
  158. ]
  159. }
  160. },
  161. "/global/dispose": {
  162. "post": {
  163. "operationId": "global.dispose",
  164. "summary": "Dispose instance",
  165. "description": "Clean up and dispose all Kilo instances, releasing all resources.",
  166. "responses": {
  167. "200": {
  168. "description": "Global disposed",
  169. "content": {
  170. "application/json": {
  171. "schema": {
  172. "type": "boolean"
  173. }
  174. }
  175. }
  176. }
  177. },
  178. "x-codeSamples": [
  179. {
  180. "lang": "js",
  181. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.global.dispose({\n ...\n})"
  182. }
  183. ]
  184. }
  185. },
  186. "/global/upgrade": {
  187. "post": {
  188. "operationId": "global.upgrade",
  189. "summary": "Upgrade kilo",
  190. "description": "Upgrade kilo to the specified version or latest if not specified.",
  191. "responses": {
  192. "200": {
  193. "description": "Upgrade result",
  194. "content": {
  195. "application/json": {
  196. "schema": {
  197. "anyOf": [
  198. {
  199. "type": "object",
  200. "properties": {
  201. "success": {
  202. "type": "boolean",
  203. "const": true
  204. },
  205. "version": {
  206. "type": "string"
  207. }
  208. },
  209. "required": ["success", "version"]
  210. },
  211. {
  212. "type": "object",
  213. "properties": {
  214. "success": {
  215. "type": "boolean",
  216. "const": false
  217. },
  218. "error": {
  219. "type": "string"
  220. }
  221. },
  222. "required": ["success", "error"]
  223. }
  224. ]
  225. }
  226. }
  227. }
  228. },
  229. "400": {
  230. "description": "Bad request",
  231. "content": {
  232. "application/json": {
  233. "schema": {
  234. "$ref": "#/components/schemas/BadRequestError"
  235. }
  236. }
  237. }
  238. }
  239. },
  240. "requestBody": {
  241. "content": {
  242. "application/json": {
  243. "schema": {
  244. "type": "object",
  245. "properties": {
  246. "target": {
  247. "type": "string"
  248. }
  249. }
  250. }
  251. }
  252. }
  253. },
  254. "x-codeSamples": [
  255. {
  256. "lang": "js",
  257. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.global.upgrade({\n ...\n})"
  258. }
  259. ]
  260. }
  261. },
  262. "/auth/{providerID}": {
  263. "put": {
  264. "operationId": "auth.set",
  265. "summary": "Set auth credentials",
  266. "description": "Set authentication credentials",
  267. "responses": {
  268. "200": {
  269. "description": "Successfully set authentication credentials",
  270. "content": {
  271. "application/json": {
  272. "schema": {
  273. "type": "boolean"
  274. }
  275. }
  276. }
  277. },
  278. "400": {
  279. "description": "Bad request",
  280. "content": {
  281. "application/json": {
  282. "schema": {
  283. "$ref": "#/components/schemas/BadRequestError"
  284. }
  285. }
  286. }
  287. }
  288. },
  289. "parameters": [
  290. {
  291. "in": "path",
  292. "name": "providerID",
  293. "schema": {
  294. "type": "string"
  295. },
  296. "required": true
  297. }
  298. ],
  299. "requestBody": {
  300. "content": {
  301. "application/json": {
  302. "schema": {
  303. "$ref": "#/components/schemas/Auth"
  304. }
  305. }
  306. }
  307. },
  308. "x-codeSamples": [
  309. {
  310. "lang": "js",
  311. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.auth.set({\n ...\n})"
  312. }
  313. ]
  314. },
  315. "delete": {
  316. "operationId": "auth.remove",
  317. "summary": "Remove auth credentials",
  318. "description": "Remove authentication credentials",
  319. "responses": {
  320. "200": {
  321. "description": "Successfully removed authentication credentials",
  322. "content": {
  323. "application/json": {
  324. "schema": {
  325. "type": "boolean"
  326. }
  327. }
  328. }
  329. },
  330. "400": {
  331. "description": "Bad request",
  332. "content": {
  333. "application/json": {
  334. "schema": {
  335. "$ref": "#/components/schemas/BadRequestError"
  336. }
  337. }
  338. }
  339. }
  340. },
  341. "parameters": [
  342. {
  343. "in": "path",
  344. "name": "providerID",
  345. "schema": {
  346. "type": "string"
  347. },
  348. "required": true
  349. }
  350. ],
  351. "x-codeSamples": [
  352. {
  353. "lang": "js",
  354. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.auth.remove({\n ...\n})"
  355. }
  356. ]
  357. }
  358. },
  359. "/log": {
  360. "post": {
  361. "operationId": "app.log",
  362. "parameters": [
  363. {
  364. "in": "query",
  365. "name": "directory",
  366. "schema": {
  367. "type": "string"
  368. }
  369. },
  370. {
  371. "in": "query",
  372. "name": "workspace",
  373. "schema": {
  374. "type": "string"
  375. }
  376. }
  377. ],
  378. "summary": "Write log",
  379. "description": "Write a log entry to the server logs with specified level and metadata.",
  380. "responses": {
  381. "200": {
  382. "description": "Log entry written successfully",
  383. "content": {
  384. "application/json": {
  385. "schema": {
  386. "type": "boolean"
  387. }
  388. }
  389. }
  390. },
  391. "400": {
  392. "description": "Bad request",
  393. "content": {
  394. "application/json": {
  395. "schema": {
  396. "$ref": "#/components/schemas/BadRequestError"
  397. }
  398. }
  399. }
  400. }
  401. },
  402. "requestBody": {
  403. "content": {
  404. "application/json": {
  405. "schema": {
  406. "type": "object",
  407. "properties": {
  408. "service": {
  409. "description": "Service name for the log entry",
  410. "type": "string"
  411. },
  412. "level": {
  413. "description": "Log level",
  414. "type": "string",
  415. "enum": ["debug", "info", "error", "warn"]
  416. },
  417. "message": {
  418. "description": "Log message",
  419. "type": "string"
  420. },
  421. "extra": {
  422. "description": "Additional metadata for the log entry",
  423. "type": "object",
  424. "propertyNames": {
  425. "type": "string"
  426. },
  427. "additionalProperties": {}
  428. }
  429. },
  430. "required": ["service", "level", "message"]
  431. }
  432. }
  433. }
  434. },
  435. "x-codeSamples": [
  436. {
  437. "lang": "js",
  438. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.app.log({\n ...\n})"
  439. }
  440. ]
  441. }
  442. },
  443. "/project": {
  444. "get": {
  445. "operationId": "project.list",
  446. "parameters": [
  447. {
  448. "in": "query",
  449. "name": "directory",
  450. "schema": {
  451. "type": "string"
  452. }
  453. },
  454. {
  455. "in": "query",
  456. "name": "workspace",
  457. "schema": {
  458. "type": "string"
  459. }
  460. }
  461. ],
  462. "summary": "List all projects",
  463. "description": "Get a list of projects that have been opened with Kilo.",
  464. "responses": {
  465. "200": {
  466. "description": "List of projects",
  467. "content": {
  468. "application/json": {
  469. "schema": {
  470. "type": "array",
  471. "items": {
  472. "$ref": "#/components/schemas/Project"
  473. }
  474. }
  475. }
  476. }
  477. }
  478. },
  479. "x-codeSamples": [
  480. {
  481. "lang": "js",
  482. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.project.list({\n ...\n})"
  483. }
  484. ]
  485. }
  486. },
  487. "/project/current": {
  488. "get": {
  489. "operationId": "project.current",
  490. "parameters": [
  491. {
  492. "in": "query",
  493. "name": "directory",
  494. "schema": {
  495. "type": "string"
  496. }
  497. },
  498. {
  499. "in": "query",
  500. "name": "workspace",
  501. "schema": {
  502. "type": "string"
  503. }
  504. }
  505. ],
  506. "summary": "Get current project",
  507. "description": "Retrieve the currently active project that Kilo is working with.",
  508. "responses": {
  509. "200": {
  510. "description": "Current project information",
  511. "content": {
  512. "application/json": {
  513. "schema": {
  514. "$ref": "#/components/schemas/Project"
  515. }
  516. }
  517. }
  518. }
  519. },
  520. "x-codeSamples": [
  521. {
  522. "lang": "js",
  523. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.project.current({\n ...\n})"
  524. }
  525. ]
  526. }
  527. },
  528. "/project/git/init": {
  529. "post": {
  530. "operationId": "project.initGit",
  531. "parameters": [
  532. {
  533. "in": "query",
  534. "name": "directory",
  535. "schema": {
  536. "type": "string"
  537. }
  538. },
  539. {
  540. "in": "query",
  541. "name": "workspace",
  542. "schema": {
  543. "type": "string"
  544. }
  545. }
  546. ],
  547. "summary": "Initialize git repository",
  548. "description": "Create a git repository for the current project and return the refreshed project info.",
  549. "responses": {
  550. "200": {
  551. "description": "Project information after git initialization",
  552. "content": {
  553. "application/json": {
  554. "schema": {
  555. "$ref": "#/components/schemas/Project"
  556. }
  557. }
  558. }
  559. }
  560. },
  561. "x-codeSamples": [
  562. {
  563. "lang": "js",
  564. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.project.initGit({\n ...\n})"
  565. }
  566. ]
  567. }
  568. },
  569. "/project/{projectID}": {
  570. "patch": {
  571. "operationId": "project.update",
  572. "parameters": [
  573. {
  574. "in": "query",
  575. "name": "directory",
  576. "schema": {
  577. "type": "string"
  578. }
  579. },
  580. {
  581. "in": "query",
  582. "name": "workspace",
  583. "schema": {
  584. "type": "string"
  585. }
  586. },
  587. {
  588. "in": "path",
  589. "name": "projectID",
  590. "schema": {
  591. "type": "string"
  592. },
  593. "required": true
  594. }
  595. ],
  596. "summary": "Update project",
  597. "description": "Update project properties such as name, icon, and commands.",
  598. "responses": {
  599. "200": {
  600. "description": "Updated project information",
  601. "content": {
  602. "application/json": {
  603. "schema": {
  604. "$ref": "#/components/schemas/Project"
  605. }
  606. }
  607. }
  608. },
  609. "400": {
  610. "description": "Bad request",
  611. "content": {
  612. "application/json": {
  613. "schema": {
  614. "$ref": "#/components/schemas/BadRequestError"
  615. }
  616. }
  617. }
  618. },
  619. "404": {
  620. "description": "Not found",
  621. "content": {
  622. "application/json": {
  623. "schema": {
  624. "$ref": "#/components/schemas/NotFoundError"
  625. }
  626. }
  627. }
  628. }
  629. },
  630. "requestBody": {
  631. "content": {
  632. "application/json": {
  633. "schema": {
  634. "type": "object",
  635. "properties": {
  636. "name": {
  637. "type": "string"
  638. },
  639. "icon": {
  640. "type": "object",
  641. "properties": {
  642. "url": {
  643. "type": "string"
  644. },
  645. "override": {
  646. "type": "string"
  647. },
  648. "color": {
  649. "type": "string"
  650. }
  651. }
  652. },
  653. "commands": {
  654. "type": "object",
  655. "properties": {
  656. "start": {
  657. "description": "Startup script to run when creating a new workspace (worktree)",
  658. "type": "string"
  659. }
  660. }
  661. }
  662. }
  663. }
  664. }
  665. }
  666. },
  667. "x-codeSamples": [
  668. {
  669. "lang": "js",
  670. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.project.update({\n ...\n})"
  671. }
  672. ]
  673. }
  674. },
  675. "/pty": {
  676. "get": {
  677. "operationId": "pty.list",
  678. "parameters": [
  679. {
  680. "in": "query",
  681. "name": "directory",
  682. "schema": {
  683. "type": "string"
  684. }
  685. },
  686. {
  687. "in": "query",
  688. "name": "workspace",
  689. "schema": {
  690. "type": "string"
  691. }
  692. }
  693. ],
  694. "summary": "List PTY sessions",
  695. "description": "Get a list of all active pseudo-terminal (PTY) sessions managed by Kilo.",
  696. "responses": {
  697. "200": {
  698. "description": "List of sessions",
  699. "content": {
  700. "application/json": {
  701. "schema": {
  702. "type": "array",
  703. "items": {
  704. "$ref": "#/components/schemas/Pty"
  705. }
  706. }
  707. }
  708. }
  709. }
  710. },
  711. "x-codeSamples": [
  712. {
  713. "lang": "js",
  714. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.pty.list({\n ...\n})"
  715. }
  716. ]
  717. },
  718. "post": {
  719. "operationId": "pty.create",
  720. "parameters": [
  721. {
  722. "in": "query",
  723. "name": "directory",
  724. "schema": {
  725. "type": "string"
  726. }
  727. },
  728. {
  729. "in": "query",
  730. "name": "workspace",
  731. "schema": {
  732. "type": "string"
  733. }
  734. }
  735. ],
  736. "summary": "Create PTY session",
  737. "description": "Create a new pseudo-terminal (PTY) session for running shell commands and processes.",
  738. "responses": {
  739. "200": {
  740. "description": "Created session",
  741. "content": {
  742. "application/json": {
  743. "schema": {
  744. "$ref": "#/components/schemas/Pty"
  745. }
  746. }
  747. }
  748. },
  749. "400": {
  750. "description": "Bad request",
  751. "content": {
  752. "application/json": {
  753. "schema": {
  754. "$ref": "#/components/schemas/BadRequestError"
  755. }
  756. }
  757. }
  758. }
  759. },
  760. "requestBody": {
  761. "content": {
  762. "application/json": {
  763. "schema": {
  764. "type": "object",
  765. "properties": {
  766. "command": {
  767. "type": "string"
  768. },
  769. "args": {
  770. "type": "array",
  771. "items": {
  772. "type": "string"
  773. }
  774. },
  775. "cwd": {
  776. "type": "string"
  777. },
  778. "title": {
  779. "type": "string"
  780. },
  781. "env": {
  782. "type": "object",
  783. "propertyNames": {
  784. "type": "string"
  785. },
  786. "additionalProperties": {
  787. "type": "string"
  788. }
  789. }
  790. }
  791. }
  792. }
  793. }
  794. },
  795. "x-codeSamples": [
  796. {
  797. "lang": "js",
  798. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.pty.create({\n ...\n})"
  799. }
  800. ]
  801. }
  802. },
  803. "/pty/{ptyID}": {
  804. "get": {
  805. "operationId": "pty.get",
  806. "parameters": [
  807. {
  808. "in": "query",
  809. "name": "directory",
  810. "schema": {
  811. "type": "string"
  812. }
  813. },
  814. {
  815. "in": "query",
  816. "name": "workspace",
  817. "schema": {
  818. "type": "string"
  819. }
  820. },
  821. {
  822. "in": "path",
  823. "name": "ptyID",
  824. "schema": {
  825. "type": "string",
  826. "pattern": "^pty.*"
  827. },
  828. "required": true
  829. }
  830. ],
  831. "summary": "Get PTY session",
  832. "description": "Retrieve detailed information about a specific pseudo-terminal (PTY) session.",
  833. "responses": {
  834. "200": {
  835. "description": "Session info",
  836. "content": {
  837. "application/json": {
  838. "schema": {
  839. "$ref": "#/components/schemas/Pty"
  840. }
  841. }
  842. }
  843. },
  844. "404": {
  845. "description": "Not found",
  846. "content": {
  847. "application/json": {
  848. "schema": {
  849. "$ref": "#/components/schemas/NotFoundError"
  850. }
  851. }
  852. }
  853. }
  854. },
  855. "x-codeSamples": [
  856. {
  857. "lang": "js",
  858. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.pty.get({\n ...\n})"
  859. }
  860. ]
  861. },
  862. "put": {
  863. "operationId": "pty.update",
  864. "parameters": [
  865. {
  866. "in": "query",
  867. "name": "directory",
  868. "schema": {
  869. "type": "string"
  870. }
  871. },
  872. {
  873. "in": "query",
  874. "name": "workspace",
  875. "schema": {
  876. "type": "string"
  877. }
  878. },
  879. {
  880. "in": "path",
  881. "name": "ptyID",
  882. "schema": {
  883. "type": "string",
  884. "pattern": "^pty.*"
  885. },
  886. "required": true
  887. }
  888. ],
  889. "summary": "Update PTY session",
  890. "description": "Update properties of an existing pseudo-terminal (PTY) session.",
  891. "responses": {
  892. "200": {
  893. "description": "Updated session",
  894. "content": {
  895. "application/json": {
  896. "schema": {
  897. "$ref": "#/components/schemas/Pty"
  898. }
  899. }
  900. }
  901. },
  902. "400": {
  903. "description": "Bad request",
  904. "content": {
  905. "application/json": {
  906. "schema": {
  907. "$ref": "#/components/schemas/BadRequestError"
  908. }
  909. }
  910. }
  911. }
  912. },
  913. "requestBody": {
  914. "content": {
  915. "application/json": {
  916. "schema": {
  917. "type": "object",
  918. "properties": {
  919. "title": {
  920. "type": "string"
  921. },
  922. "size": {
  923. "type": "object",
  924. "properties": {
  925. "rows": {
  926. "type": "number"
  927. },
  928. "cols": {
  929. "type": "number"
  930. }
  931. },
  932. "required": ["rows", "cols"]
  933. }
  934. }
  935. }
  936. }
  937. }
  938. },
  939. "x-codeSamples": [
  940. {
  941. "lang": "js",
  942. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.pty.update({\n ...\n})"
  943. }
  944. ]
  945. },
  946. "delete": {
  947. "operationId": "pty.remove",
  948. "parameters": [
  949. {
  950. "in": "query",
  951. "name": "directory",
  952. "schema": {
  953. "type": "string"
  954. }
  955. },
  956. {
  957. "in": "query",
  958. "name": "workspace",
  959. "schema": {
  960. "type": "string"
  961. }
  962. },
  963. {
  964. "in": "path",
  965. "name": "ptyID",
  966. "schema": {
  967. "type": "string",
  968. "pattern": "^pty.*"
  969. },
  970. "required": true
  971. }
  972. ],
  973. "summary": "Remove PTY session",
  974. "description": "Remove and terminate a specific pseudo-terminal (PTY) session.",
  975. "responses": {
  976. "200": {
  977. "description": "Session removed",
  978. "content": {
  979. "application/json": {
  980. "schema": {
  981. "type": "boolean"
  982. }
  983. }
  984. }
  985. },
  986. "404": {
  987. "description": "Not found",
  988. "content": {
  989. "application/json": {
  990. "schema": {
  991. "$ref": "#/components/schemas/NotFoundError"
  992. }
  993. }
  994. }
  995. }
  996. },
  997. "x-codeSamples": [
  998. {
  999. "lang": "js",
  1000. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.pty.remove({\n ...\n})"
  1001. }
  1002. ]
  1003. }
  1004. },
  1005. "/pty/{ptyID}/connect": {
  1006. "get": {
  1007. "operationId": "pty.connect",
  1008. "parameters": [
  1009. {
  1010. "in": "query",
  1011. "name": "directory",
  1012. "schema": {
  1013. "type": "string"
  1014. }
  1015. },
  1016. {
  1017. "in": "query",
  1018. "name": "workspace",
  1019. "schema": {
  1020. "type": "string"
  1021. }
  1022. },
  1023. {
  1024. "in": "path",
  1025. "name": "ptyID",
  1026. "schema": {
  1027. "type": "string",
  1028. "pattern": "^pty.*"
  1029. },
  1030. "required": true
  1031. }
  1032. ],
  1033. "summary": "Connect to PTY session",
  1034. "description": "Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.",
  1035. "responses": {
  1036. "200": {
  1037. "description": "Connected session",
  1038. "content": {
  1039. "application/json": {
  1040. "schema": {
  1041. "type": "boolean"
  1042. }
  1043. }
  1044. }
  1045. },
  1046. "404": {
  1047. "description": "Not found",
  1048. "content": {
  1049. "application/json": {
  1050. "schema": {
  1051. "$ref": "#/components/schemas/NotFoundError"
  1052. }
  1053. }
  1054. }
  1055. }
  1056. },
  1057. "x-codeSamples": [
  1058. {
  1059. "lang": "js",
  1060. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.pty.connect({\n ...\n})"
  1061. }
  1062. ]
  1063. }
  1064. },
  1065. "/config": {
  1066. "get": {
  1067. "operationId": "config.get",
  1068. "parameters": [
  1069. {
  1070. "in": "query",
  1071. "name": "directory",
  1072. "schema": {
  1073. "type": "string"
  1074. }
  1075. },
  1076. {
  1077. "in": "query",
  1078. "name": "workspace",
  1079. "schema": {
  1080. "type": "string"
  1081. }
  1082. }
  1083. ],
  1084. "summary": "Get configuration",
  1085. "description": "Retrieve the current Kilo configuration settings and preferences.",
  1086. "responses": {
  1087. "200": {
  1088. "description": "Get config info",
  1089. "content": {
  1090. "application/json": {
  1091. "schema": {
  1092. "$ref": "#/components/schemas/Config"
  1093. }
  1094. }
  1095. }
  1096. }
  1097. },
  1098. "x-codeSamples": [
  1099. {
  1100. "lang": "js",
  1101. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.config.get({\n ...\n})"
  1102. }
  1103. ]
  1104. },
  1105. "patch": {
  1106. "operationId": "config.update",
  1107. "parameters": [
  1108. {
  1109. "in": "query",
  1110. "name": "directory",
  1111. "schema": {
  1112. "type": "string"
  1113. }
  1114. },
  1115. {
  1116. "in": "query",
  1117. "name": "workspace",
  1118. "schema": {
  1119. "type": "string"
  1120. }
  1121. }
  1122. ],
  1123. "summary": "Update configuration",
  1124. "description": "Update Kilo configuration settings and preferences.",
  1125. "responses": {
  1126. "200": {
  1127. "description": "Successfully updated config",
  1128. "content": {
  1129. "application/json": {
  1130. "schema": {
  1131. "$ref": "#/components/schemas/Config"
  1132. }
  1133. }
  1134. }
  1135. },
  1136. "400": {
  1137. "description": "Bad request",
  1138. "content": {
  1139. "application/json": {
  1140. "schema": {
  1141. "$ref": "#/components/schemas/BadRequestError"
  1142. }
  1143. }
  1144. }
  1145. }
  1146. },
  1147. "requestBody": {
  1148. "content": {
  1149. "application/json": {
  1150. "schema": {
  1151. "$ref": "#/components/schemas/Config"
  1152. }
  1153. }
  1154. }
  1155. },
  1156. "x-codeSamples": [
  1157. {
  1158. "lang": "js",
  1159. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.config.update({\n ...\n})"
  1160. }
  1161. ]
  1162. }
  1163. },
  1164. "/config/warnings": {
  1165. "get": {
  1166. "operationId": "config.warnings",
  1167. "parameters": [
  1168. {
  1169. "in": "query",
  1170. "name": "directory",
  1171. "schema": {
  1172. "type": "string"
  1173. }
  1174. },
  1175. {
  1176. "in": "query",
  1177. "name": "workspace",
  1178. "schema": {
  1179. "type": "string"
  1180. }
  1181. }
  1182. ],
  1183. "summary": "Get config warnings",
  1184. "description": "Get warnings generated during config loading (e.g., invalid JSON, schema errors).",
  1185. "responses": {
  1186. "200": {
  1187. "description": "Config warnings",
  1188. "content": {
  1189. "application/json": {
  1190. "schema": {
  1191. "type": "array",
  1192. "items": {
  1193. "type": "object",
  1194. "properties": {
  1195. "path": {
  1196. "type": "string"
  1197. },
  1198. "message": {
  1199. "type": "string"
  1200. },
  1201. "detail": {
  1202. "type": "string"
  1203. }
  1204. },
  1205. "required": ["path", "message"]
  1206. }
  1207. }
  1208. }
  1209. }
  1210. }
  1211. },
  1212. "x-codeSamples": [
  1213. {
  1214. "lang": "js",
  1215. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.config.warnings({\n ...\n})"
  1216. }
  1217. ]
  1218. }
  1219. },
  1220. "/config/providers": {
  1221. "get": {
  1222. "operationId": "config.providers",
  1223. "parameters": [
  1224. {
  1225. "in": "query",
  1226. "name": "directory",
  1227. "schema": {
  1228. "type": "string"
  1229. }
  1230. },
  1231. {
  1232. "in": "query",
  1233. "name": "workspace",
  1234. "schema": {
  1235. "type": "string"
  1236. }
  1237. }
  1238. ],
  1239. "summary": "List config providers",
  1240. "description": "Get a list of all configured AI providers and their default models.",
  1241. "responses": {
  1242. "200": {
  1243. "description": "List of providers",
  1244. "content": {
  1245. "application/json": {
  1246. "schema": {
  1247. "type": "object",
  1248. "properties": {
  1249. "providers": {
  1250. "type": "array",
  1251. "items": {
  1252. "$ref": "#/components/schemas/Provider"
  1253. }
  1254. },
  1255. "default": {
  1256. "type": "object",
  1257. "propertyNames": {
  1258. "type": "string"
  1259. },
  1260. "additionalProperties": {
  1261. "type": "string"
  1262. }
  1263. }
  1264. },
  1265. "required": ["providers", "default"]
  1266. }
  1267. }
  1268. }
  1269. }
  1270. },
  1271. "x-codeSamples": [
  1272. {
  1273. "lang": "js",
  1274. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.config.providers({\n ...\n})"
  1275. }
  1276. ]
  1277. }
  1278. },
  1279. "/experimental/tool/ids": {
  1280. "get": {
  1281. "operationId": "tool.ids",
  1282. "parameters": [
  1283. {
  1284. "in": "query",
  1285. "name": "directory",
  1286. "schema": {
  1287. "type": "string"
  1288. }
  1289. },
  1290. {
  1291. "in": "query",
  1292. "name": "workspace",
  1293. "schema": {
  1294. "type": "string"
  1295. }
  1296. }
  1297. ],
  1298. "summary": "List tool IDs",
  1299. "description": "Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.",
  1300. "responses": {
  1301. "200": {
  1302. "description": "Tool IDs",
  1303. "content": {
  1304. "application/json": {
  1305. "schema": {
  1306. "$ref": "#/components/schemas/ToolIDs"
  1307. }
  1308. }
  1309. }
  1310. },
  1311. "400": {
  1312. "description": "Bad request",
  1313. "content": {
  1314. "application/json": {
  1315. "schema": {
  1316. "$ref": "#/components/schemas/BadRequestError"
  1317. }
  1318. }
  1319. }
  1320. }
  1321. },
  1322. "x-codeSamples": [
  1323. {
  1324. "lang": "js",
  1325. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tool.ids({\n ...\n})"
  1326. }
  1327. ]
  1328. }
  1329. },
  1330. "/experimental/tool": {
  1331. "get": {
  1332. "operationId": "tool.list",
  1333. "parameters": [
  1334. {
  1335. "in": "query",
  1336. "name": "directory",
  1337. "schema": {
  1338. "type": "string"
  1339. }
  1340. },
  1341. {
  1342. "in": "query",
  1343. "name": "workspace",
  1344. "schema": {
  1345. "type": "string"
  1346. }
  1347. },
  1348. {
  1349. "in": "query",
  1350. "name": "provider",
  1351. "schema": {
  1352. "type": "string"
  1353. },
  1354. "required": true
  1355. },
  1356. {
  1357. "in": "query",
  1358. "name": "model",
  1359. "schema": {
  1360. "type": "string"
  1361. },
  1362. "required": true
  1363. }
  1364. ],
  1365. "summary": "List tools",
  1366. "description": "Get a list of available tools with their JSON schema parameters for a specific provider and model combination.",
  1367. "responses": {
  1368. "200": {
  1369. "description": "Tools",
  1370. "content": {
  1371. "application/json": {
  1372. "schema": {
  1373. "$ref": "#/components/schemas/ToolList"
  1374. }
  1375. }
  1376. }
  1377. },
  1378. "400": {
  1379. "description": "Bad request",
  1380. "content": {
  1381. "application/json": {
  1382. "schema": {
  1383. "$ref": "#/components/schemas/BadRequestError"
  1384. }
  1385. }
  1386. }
  1387. }
  1388. },
  1389. "x-codeSamples": [
  1390. {
  1391. "lang": "js",
  1392. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tool.list({\n ...\n})"
  1393. }
  1394. ]
  1395. }
  1396. },
  1397. "/experimental/workspace": {
  1398. "post": {
  1399. "operationId": "experimental.workspace.create",
  1400. "parameters": [
  1401. {
  1402. "in": "query",
  1403. "name": "directory",
  1404. "schema": {
  1405. "type": "string"
  1406. }
  1407. },
  1408. {
  1409. "in": "query",
  1410. "name": "workspace",
  1411. "schema": {
  1412. "type": "string"
  1413. }
  1414. }
  1415. ],
  1416. "summary": "Create workspace",
  1417. "description": "Create a workspace for the current project.",
  1418. "responses": {
  1419. "200": {
  1420. "description": "Workspace created",
  1421. "content": {
  1422. "application/json": {
  1423. "schema": {
  1424. "$ref": "#/components/schemas/Workspace"
  1425. }
  1426. }
  1427. }
  1428. },
  1429. "400": {
  1430. "description": "Bad request",
  1431. "content": {
  1432. "application/json": {
  1433. "schema": {
  1434. "$ref": "#/components/schemas/BadRequestError"
  1435. }
  1436. }
  1437. }
  1438. }
  1439. },
  1440. "requestBody": {
  1441. "content": {
  1442. "application/json": {
  1443. "schema": {
  1444. "type": "object",
  1445. "properties": {
  1446. "id": {
  1447. "type": "string",
  1448. "pattern": "^wrk.*"
  1449. },
  1450. "type": {
  1451. "type": "string"
  1452. },
  1453. "branch": {
  1454. "anyOf": [
  1455. {
  1456. "type": "string"
  1457. },
  1458. {
  1459. "type": "null"
  1460. }
  1461. ]
  1462. },
  1463. "extra": {
  1464. "anyOf": [
  1465. {},
  1466. {
  1467. "type": "null"
  1468. }
  1469. ]
  1470. }
  1471. },
  1472. "required": ["type", "branch", "extra"]
  1473. }
  1474. }
  1475. }
  1476. },
  1477. "x-codeSamples": [
  1478. {
  1479. "lang": "js",
  1480. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.experimental.workspace.create({\n ...\n})"
  1481. }
  1482. ]
  1483. },
  1484. "get": {
  1485. "operationId": "experimental.workspace.list",
  1486. "parameters": [
  1487. {
  1488. "in": "query",
  1489. "name": "directory",
  1490. "schema": {
  1491. "type": "string"
  1492. }
  1493. },
  1494. {
  1495. "in": "query",
  1496. "name": "workspace",
  1497. "schema": {
  1498. "type": "string"
  1499. }
  1500. }
  1501. ],
  1502. "summary": "List workspaces",
  1503. "description": "List all workspaces.",
  1504. "responses": {
  1505. "200": {
  1506. "description": "Workspaces",
  1507. "content": {
  1508. "application/json": {
  1509. "schema": {
  1510. "type": "array",
  1511. "items": {
  1512. "$ref": "#/components/schemas/Workspace"
  1513. }
  1514. }
  1515. }
  1516. }
  1517. }
  1518. },
  1519. "x-codeSamples": [
  1520. {
  1521. "lang": "js",
  1522. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.experimental.workspace.list({\n ...\n})"
  1523. }
  1524. ]
  1525. }
  1526. },
  1527. "/experimental/workspace/{id}": {
  1528. "delete": {
  1529. "operationId": "experimental.workspace.remove",
  1530. "parameters": [
  1531. {
  1532. "in": "query",
  1533. "name": "directory",
  1534. "schema": {
  1535. "type": "string"
  1536. }
  1537. },
  1538. {
  1539. "in": "query",
  1540. "name": "workspace",
  1541. "schema": {
  1542. "type": "string"
  1543. }
  1544. },
  1545. {
  1546. "in": "path",
  1547. "name": "id",
  1548. "schema": {
  1549. "type": "string",
  1550. "pattern": "^wrk.*"
  1551. },
  1552. "required": true
  1553. }
  1554. ],
  1555. "summary": "Remove workspace",
  1556. "description": "Remove an existing workspace.",
  1557. "responses": {
  1558. "200": {
  1559. "description": "Workspace removed",
  1560. "content": {
  1561. "application/json": {
  1562. "schema": {
  1563. "$ref": "#/components/schemas/Workspace"
  1564. }
  1565. }
  1566. }
  1567. },
  1568. "400": {
  1569. "description": "Bad request",
  1570. "content": {
  1571. "application/json": {
  1572. "schema": {
  1573. "$ref": "#/components/schemas/BadRequestError"
  1574. }
  1575. }
  1576. }
  1577. }
  1578. },
  1579. "x-codeSamples": [
  1580. {
  1581. "lang": "js",
  1582. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.experimental.workspace.remove({\n ...\n})"
  1583. }
  1584. ]
  1585. }
  1586. },
  1587. "/experimental/worktree": {
  1588. "post": {
  1589. "operationId": "worktree.create",
  1590. "parameters": [
  1591. {
  1592. "in": "query",
  1593. "name": "directory",
  1594. "schema": {
  1595. "type": "string"
  1596. }
  1597. },
  1598. {
  1599. "in": "query",
  1600. "name": "workspace",
  1601. "schema": {
  1602. "type": "string"
  1603. }
  1604. }
  1605. ],
  1606. "summary": "Create worktree",
  1607. "description": "Create a new git worktree for the current project and run any configured startup scripts.",
  1608. "responses": {
  1609. "200": {
  1610. "description": "Worktree created",
  1611. "content": {
  1612. "application/json": {
  1613. "schema": {
  1614. "$ref": "#/components/schemas/Worktree"
  1615. }
  1616. }
  1617. }
  1618. },
  1619. "400": {
  1620. "description": "Bad request",
  1621. "content": {
  1622. "application/json": {
  1623. "schema": {
  1624. "$ref": "#/components/schemas/BadRequestError"
  1625. }
  1626. }
  1627. }
  1628. }
  1629. },
  1630. "requestBody": {
  1631. "content": {
  1632. "application/json": {
  1633. "schema": {
  1634. "$ref": "#/components/schemas/WorktreeCreateInput"
  1635. }
  1636. }
  1637. }
  1638. },
  1639. "x-codeSamples": [
  1640. {
  1641. "lang": "js",
  1642. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.worktree.create({\n ...\n})"
  1643. }
  1644. ]
  1645. },
  1646. "get": {
  1647. "operationId": "worktree.list",
  1648. "parameters": [
  1649. {
  1650. "in": "query",
  1651. "name": "directory",
  1652. "schema": {
  1653. "type": "string"
  1654. }
  1655. },
  1656. {
  1657. "in": "query",
  1658. "name": "workspace",
  1659. "schema": {
  1660. "type": "string"
  1661. }
  1662. }
  1663. ],
  1664. "summary": "List worktrees",
  1665. "description": "List all sandbox worktrees for the current project.",
  1666. "responses": {
  1667. "200": {
  1668. "description": "List of worktree directories",
  1669. "content": {
  1670. "application/json": {
  1671. "schema": {
  1672. "type": "array",
  1673. "items": {
  1674. "type": "string"
  1675. }
  1676. }
  1677. }
  1678. }
  1679. }
  1680. },
  1681. "x-codeSamples": [
  1682. {
  1683. "lang": "js",
  1684. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.worktree.list({\n ...\n})"
  1685. }
  1686. ]
  1687. },
  1688. "delete": {
  1689. "operationId": "worktree.remove",
  1690. "parameters": [
  1691. {
  1692. "in": "query",
  1693. "name": "directory",
  1694. "schema": {
  1695. "type": "string"
  1696. }
  1697. },
  1698. {
  1699. "in": "query",
  1700. "name": "workspace",
  1701. "schema": {
  1702. "type": "string"
  1703. }
  1704. }
  1705. ],
  1706. "summary": "Remove worktree",
  1707. "description": "Remove a git worktree and delete its branch.",
  1708. "responses": {
  1709. "200": {
  1710. "description": "Worktree removed",
  1711. "content": {
  1712. "application/json": {
  1713. "schema": {
  1714. "type": "boolean"
  1715. }
  1716. }
  1717. }
  1718. },
  1719. "400": {
  1720. "description": "Bad request",
  1721. "content": {
  1722. "application/json": {
  1723. "schema": {
  1724. "$ref": "#/components/schemas/BadRequestError"
  1725. }
  1726. }
  1727. }
  1728. }
  1729. },
  1730. "requestBody": {
  1731. "content": {
  1732. "application/json": {
  1733. "schema": {
  1734. "$ref": "#/components/schemas/WorktreeRemoveInput"
  1735. }
  1736. }
  1737. }
  1738. },
  1739. "x-codeSamples": [
  1740. {
  1741. "lang": "js",
  1742. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.worktree.remove({\n ...\n})"
  1743. }
  1744. ]
  1745. }
  1746. },
  1747. "/experimental/worktree/reset": {
  1748. "post": {
  1749. "operationId": "worktree.reset",
  1750. "parameters": [
  1751. {
  1752. "in": "query",
  1753. "name": "directory",
  1754. "schema": {
  1755. "type": "string"
  1756. }
  1757. },
  1758. {
  1759. "in": "query",
  1760. "name": "workspace",
  1761. "schema": {
  1762. "type": "string"
  1763. }
  1764. }
  1765. ],
  1766. "summary": "Reset worktree",
  1767. "description": "Reset a worktree branch to the primary default branch.",
  1768. "responses": {
  1769. "200": {
  1770. "description": "Worktree reset",
  1771. "content": {
  1772. "application/json": {
  1773. "schema": {
  1774. "type": "boolean"
  1775. }
  1776. }
  1777. }
  1778. },
  1779. "400": {
  1780. "description": "Bad request",
  1781. "content": {
  1782. "application/json": {
  1783. "schema": {
  1784. "$ref": "#/components/schemas/BadRequestError"
  1785. }
  1786. }
  1787. }
  1788. }
  1789. },
  1790. "requestBody": {
  1791. "content": {
  1792. "application/json": {
  1793. "schema": {
  1794. "$ref": "#/components/schemas/WorktreeResetInput"
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "x-codeSamples": [
  1800. {
  1801. "lang": "js",
  1802. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.worktree.reset({\n ...\n})"
  1803. }
  1804. ]
  1805. }
  1806. },
  1807. "/experimental/worktree/diff": {
  1808. "get": {
  1809. "operationId": "worktree.diff",
  1810. "parameters": [
  1811. {
  1812. "in": "query",
  1813. "name": "directory",
  1814. "schema": {
  1815. "type": "string"
  1816. }
  1817. },
  1818. {
  1819. "in": "query",
  1820. "name": "workspace",
  1821. "schema": {
  1822. "type": "string"
  1823. }
  1824. },
  1825. {
  1826. "in": "query",
  1827. "name": "base",
  1828. "schema": {
  1829. "type": "string"
  1830. },
  1831. "description": "Base branch or ref to diff against"
  1832. }
  1833. ],
  1834. "summary": "Get worktree diff",
  1835. "description": "Get file diffs for a worktree compared to its base branch. Includes uncommitted changes.",
  1836. "responses": {
  1837. "200": {
  1838. "description": "File diffs",
  1839. "content": {
  1840. "application/json": {
  1841. "schema": {
  1842. "type": "array",
  1843. "items": {
  1844. "$ref": "#/components/schemas/FileDiff"
  1845. }
  1846. }
  1847. }
  1848. }
  1849. },
  1850. "400": {
  1851. "description": "Bad request",
  1852. "content": {
  1853. "application/json": {
  1854. "schema": {
  1855. "$ref": "#/components/schemas/BadRequestError"
  1856. }
  1857. }
  1858. }
  1859. }
  1860. },
  1861. "x-codeSamples": [
  1862. {
  1863. "lang": "js",
  1864. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.worktree.diff({\n ...\n})"
  1865. }
  1866. ]
  1867. }
  1868. },
  1869. "/experimental/worktree/diff/summary": {
  1870. "get": {
  1871. "operationId": "worktree.diffSummary",
  1872. "parameters": [
  1873. {
  1874. "in": "query",
  1875. "name": "directory",
  1876. "schema": {
  1877. "type": "string"
  1878. }
  1879. },
  1880. {
  1881. "in": "query",
  1882. "name": "workspace",
  1883. "schema": {
  1884. "type": "string"
  1885. }
  1886. },
  1887. {
  1888. "in": "query",
  1889. "name": "base",
  1890. "schema": {
  1891. "type": "string"
  1892. },
  1893. "description": "Base branch or ref to diff against"
  1894. }
  1895. ],
  1896. "summary": "Get worktree diff summary",
  1897. "description": "Get lightweight file diff metadata for a worktree compared to its base branch.",
  1898. "responses": {
  1899. "200": {
  1900. "description": "Diff summary items",
  1901. "content": {
  1902. "application/json": {
  1903. "schema": {
  1904. "type": "array",
  1905. "items": {
  1906. "$ref": "#/components/schemas/WorktreeDiffItem"
  1907. }
  1908. }
  1909. }
  1910. }
  1911. },
  1912. "400": {
  1913. "description": "Bad request",
  1914. "content": {
  1915. "application/json": {
  1916. "schema": {
  1917. "$ref": "#/components/schemas/BadRequestError"
  1918. }
  1919. }
  1920. }
  1921. }
  1922. },
  1923. "x-codeSamples": [
  1924. {
  1925. "lang": "js",
  1926. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.worktree.diffSummary({\n ...\n})"
  1927. }
  1928. ]
  1929. }
  1930. },
  1931. "/experimental/worktree/diff/file": {
  1932. "get": {
  1933. "operationId": "worktree.diffFile",
  1934. "parameters": [
  1935. {
  1936. "in": "query",
  1937. "name": "directory",
  1938. "schema": {
  1939. "type": "string"
  1940. }
  1941. },
  1942. {
  1943. "in": "query",
  1944. "name": "workspace",
  1945. "schema": {
  1946. "type": "string"
  1947. }
  1948. },
  1949. {
  1950. "in": "query",
  1951. "name": "base",
  1952. "schema": {
  1953. "type": "string"
  1954. },
  1955. "description": "Base branch or ref to diff against"
  1956. },
  1957. {
  1958. "in": "query",
  1959. "name": "file",
  1960. "schema": {
  1961. "type": "string"
  1962. },
  1963. "required": true,
  1964. "description": "Relative file path to load diff contents for"
  1965. }
  1966. ],
  1967. "summary": "Get worktree diff detail",
  1968. "description": "Get full diff contents for one worktree file compared to its base branch.",
  1969. "responses": {
  1970. "200": {
  1971. "description": "Diff detail item",
  1972. "content": {
  1973. "application/json": {
  1974. "schema": {
  1975. "anyOf": [
  1976. {
  1977. "$ref": "#/components/schemas/WorktreeDiffItem"
  1978. },
  1979. {
  1980. "type": "null"
  1981. }
  1982. ]
  1983. }
  1984. }
  1985. }
  1986. },
  1987. "400": {
  1988. "description": "Bad request",
  1989. "content": {
  1990. "application/json": {
  1991. "schema": {
  1992. "$ref": "#/components/schemas/BadRequestError"
  1993. }
  1994. }
  1995. }
  1996. }
  1997. },
  1998. "x-codeSamples": [
  1999. {
  2000. "lang": "js",
  2001. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.worktree.diffFile({\n ...\n})"
  2002. }
  2003. ]
  2004. }
  2005. },
  2006. "/experimental/session": {
  2007. "get": {
  2008. "operationId": "experimental.session.list",
  2009. "parameters": [
  2010. {
  2011. "in": "query",
  2012. "name": "directory",
  2013. "schema": {
  2014. "type": "string"
  2015. },
  2016. "description": "Filter sessions by project directory"
  2017. },
  2018. {
  2019. "in": "query",
  2020. "name": "workspace",
  2021. "schema": {
  2022. "type": "string"
  2023. }
  2024. },
  2025. {
  2026. "in": "query",
  2027. "name": "projectID",
  2028. "schema": {
  2029. "type": "string"
  2030. },
  2031. "description": "Filter sessions by project ID"
  2032. },
  2033. {
  2034. "in": "query",
  2035. "name": "worktrees",
  2036. "schema": {
  2037. "type": "boolean"
  2038. },
  2039. "description": "Restrict sessions to the current repo worktree family or current directory"
  2040. },
  2041. {
  2042. "in": "query",
  2043. "name": "roots",
  2044. "schema": {
  2045. "type": "boolean"
  2046. },
  2047. "description": "Only return root sessions (no parentID)"
  2048. },
  2049. {
  2050. "in": "query",
  2051. "name": "start",
  2052. "schema": {
  2053. "type": "number"
  2054. },
  2055. "description": "Filter sessions updated on or after this timestamp (milliseconds since epoch)"
  2056. },
  2057. {
  2058. "in": "query",
  2059. "name": "cursor",
  2060. "schema": {
  2061. "type": "number"
  2062. },
  2063. "description": "Return sessions updated before this timestamp (milliseconds since epoch)"
  2064. },
  2065. {
  2066. "in": "query",
  2067. "name": "search",
  2068. "schema": {
  2069. "type": "string"
  2070. },
  2071. "description": "Filter sessions by title (case-insensitive)"
  2072. },
  2073. {
  2074. "in": "query",
  2075. "name": "limit",
  2076. "schema": {
  2077. "type": "number"
  2078. },
  2079. "description": "Maximum number of sessions to return"
  2080. },
  2081. {
  2082. "in": "query",
  2083. "name": "archived",
  2084. "schema": {
  2085. "type": "boolean"
  2086. },
  2087. "description": "Include archived sessions (default false)"
  2088. }
  2089. ],
  2090. "summary": "List sessions",
  2091. "description": "Get a list of all Kilo sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.",
  2092. "responses": {
  2093. "200": {
  2094. "description": "List of sessions",
  2095. "content": {
  2096. "application/json": {
  2097. "schema": {
  2098. "type": "array",
  2099. "items": {
  2100. "$ref": "#/components/schemas/GlobalSession"
  2101. }
  2102. }
  2103. }
  2104. }
  2105. }
  2106. },
  2107. "x-codeSamples": [
  2108. {
  2109. "lang": "js",
  2110. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.experimental.session.list({\n ...\n})"
  2111. }
  2112. ]
  2113. }
  2114. },
  2115. "/experimental/resource": {
  2116. "get": {
  2117. "operationId": "experimental.resource.list",
  2118. "parameters": [
  2119. {
  2120. "in": "query",
  2121. "name": "directory",
  2122. "schema": {
  2123. "type": "string"
  2124. }
  2125. },
  2126. {
  2127. "in": "query",
  2128. "name": "workspace",
  2129. "schema": {
  2130. "type": "string"
  2131. }
  2132. }
  2133. ],
  2134. "summary": "Get MCP resources",
  2135. "description": "Get all available MCP resources from connected servers. Optionally filter by name.",
  2136. "responses": {
  2137. "200": {
  2138. "description": "MCP resources",
  2139. "content": {
  2140. "application/json": {
  2141. "schema": {
  2142. "type": "object",
  2143. "propertyNames": {
  2144. "type": "string"
  2145. },
  2146. "additionalProperties": {
  2147. "$ref": "#/components/schemas/McpResource"
  2148. }
  2149. }
  2150. }
  2151. }
  2152. }
  2153. },
  2154. "x-codeSamples": [
  2155. {
  2156. "lang": "js",
  2157. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.experimental.resource.list({\n ...\n})"
  2158. }
  2159. ]
  2160. }
  2161. },
  2162. "/session": {
  2163. "get": {
  2164. "operationId": "session.list",
  2165. "parameters": [
  2166. {
  2167. "in": "query",
  2168. "name": "directory",
  2169. "schema": {
  2170. "type": "string"
  2171. },
  2172. "description": "Filter sessions by project directory"
  2173. },
  2174. {
  2175. "in": "query",
  2176. "name": "workspace",
  2177. "schema": {
  2178. "type": "string"
  2179. }
  2180. },
  2181. {
  2182. "in": "query",
  2183. "name": "roots",
  2184. "schema": {
  2185. "type": "boolean"
  2186. },
  2187. "description": "Only return root sessions (no parentID)"
  2188. },
  2189. {
  2190. "in": "query",
  2191. "name": "start",
  2192. "schema": {
  2193. "type": "number"
  2194. },
  2195. "description": "Filter sessions updated on or after this timestamp (milliseconds since epoch)"
  2196. },
  2197. {
  2198. "in": "query",
  2199. "name": "search",
  2200. "schema": {
  2201. "type": "string"
  2202. },
  2203. "description": "Filter sessions by title (case-insensitive)"
  2204. },
  2205. {
  2206. "in": "query",
  2207. "name": "limit",
  2208. "schema": {
  2209. "type": "number"
  2210. },
  2211. "description": "Maximum number of sessions to return"
  2212. }
  2213. ],
  2214. "summary": "List sessions",
  2215. "description": "Get a list of all Kilo sessions, sorted by most recently updated.",
  2216. "responses": {
  2217. "200": {
  2218. "description": "List of sessions",
  2219. "content": {
  2220. "application/json": {
  2221. "schema": {
  2222. "type": "array",
  2223. "items": {
  2224. "$ref": "#/components/schemas/Session"
  2225. }
  2226. }
  2227. }
  2228. }
  2229. }
  2230. },
  2231. "x-codeSamples": [
  2232. {
  2233. "lang": "js",
  2234. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.list({\n ...\n})"
  2235. }
  2236. ]
  2237. },
  2238. "post": {
  2239. "operationId": "session.create",
  2240. "parameters": [
  2241. {
  2242. "in": "query",
  2243. "name": "directory",
  2244. "schema": {
  2245. "type": "string"
  2246. }
  2247. },
  2248. {
  2249. "in": "query",
  2250. "name": "workspace",
  2251. "schema": {
  2252. "type": "string"
  2253. }
  2254. }
  2255. ],
  2256. "summary": "Create session",
  2257. "description": "Create a new Kilo session for interacting with AI assistants and managing conversations.",
  2258. "responses": {
  2259. "200": {
  2260. "description": "Successfully created session",
  2261. "content": {
  2262. "application/json": {
  2263. "schema": {
  2264. "$ref": "#/components/schemas/Session"
  2265. }
  2266. }
  2267. }
  2268. },
  2269. "400": {
  2270. "description": "Bad request",
  2271. "content": {
  2272. "application/json": {
  2273. "schema": {
  2274. "$ref": "#/components/schemas/BadRequestError"
  2275. }
  2276. }
  2277. }
  2278. }
  2279. },
  2280. "requestBody": {
  2281. "content": {
  2282. "application/json": {
  2283. "schema": {
  2284. "type": "object",
  2285. "properties": {
  2286. "parentID": {
  2287. "type": "string",
  2288. "pattern": "^ses.*"
  2289. },
  2290. "title": {
  2291. "type": "string"
  2292. },
  2293. "permission": {
  2294. "$ref": "#/components/schemas/PermissionRuleset"
  2295. },
  2296. "platform": {
  2297. "type": "string"
  2298. },
  2299. "workspaceID": {
  2300. "type": "string",
  2301. "pattern": "^wrk.*"
  2302. }
  2303. }
  2304. }
  2305. }
  2306. }
  2307. },
  2308. "x-codeSamples": [
  2309. {
  2310. "lang": "js",
  2311. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.create({\n ...\n})"
  2312. }
  2313. ]
  2314. }
  2315. },
  2316. "/session/status": {
  2317. "get": {
  2318. "operationId": "session.status",
  2319. "parameters": [
  2320. {
  2321. "in": "query",
  2322. "name": "directory",
  2323. "schema": {
  2324. "type": "string"
  2325. }
  2326. },
  2327. {
  2328. "in": "query",
  2329. "name": "workspace",
  2330. "schema": {
  2331. "type": "string"
  2332. }
  2333. }
  2334. ],
  2335. "summary": "Get session status",
  2336. "description": "Retrieve the current status of all sessions, including active, idle, and completed states.",
  2337. "responses": {
  2338. "200": {
  2339. "description": "Get session status",
  2340. "content": {
  2341. "application/json": {
  2342. "schema": {
  2343. "type": "object",
  2344. "propertyNames": {
  2345. "type": "string"
  2346. },
  2347. "additionalProperties": {
  2348. "$ref": "#/components/schemas/SessionStatus"
  2349. }
  2350. }
  2351. }
  2352. }
  2353. },
  2354. "400": {
  2355. "description": "Bad request",
  2356. "content": {
  2357. "application/json": {
  2358. "schema": {
  2359. "$ref": "#/components/schemas/BadRequestError"
  2360. }
  2361. }
  2362. }
  2363. }
  2364. },
  2365. "x-codeSamples": [
  2366. {
  2367. "lang": "js",
  2368. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.status({\n ...\n})"
  2369. }
  2370. ]
  2371. }
  2372. },
  2373. "/session/{sessionID}": {
  2374. "get": {
  2375. "operationId": "session.get",
  2376. "parameters": [
  2377. {
  2378. "in": "query",
  2379. "name": "directory",
  2380. "schema": {
  2381. "type": "string"
  2382. }
  2383. },
  2384. {
  2385. "in": "query",
  2386. "name": "workspace",
  2387. "schema": {
  2388. "type": "string"
  2389. }
  2390. },
  2391. {
  2392. "in": "path",
  2393. "name": "sessionID",
  2394. "schema": {
  2395. "type": "string",
  2396. "pattern": "^ses.*"
  2397. },
  2398. "required": true
  2399. }
  2400. ],
  2401. "summary": "Get session",
  2402. "description": "Retrieve detailed information about a specific Kilo session.",
  2403. "tags": ["Session"],
  2404. "responses": {
  2405. "200": {
  2406. "description": "Get session",
  2407. "content": {
  2408. "application/json": {
  2409. "schema": {
  2410. "$ref": "#/components/schemas/Session"
  2411. }
  2412. }
  2413. }
  2414. },
  2415. "400": {
  2416. "description": "Bad request",
  2417. "content": {
  2418. "application/json": {
  2419. "schema": {
  2420. "$ref": "#/components/schemas/BadRequestError"
  2421. }
  2422. }
  2423. }
  2424. },
  2425. "404": {
  2426. "description": "Not found",
  2427. "content": {
  2428. "application/json": {
  2429. "schema": {
  2430. "$ref": "#/components/schemas/NotFoundError"
  2431. }
  2432. }
  2433. }
  2434. }
  2435. },
  2436. "x-codeSamples": [
  2437. {
  2438. "lang": "js",
  2439. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.get({\n ...\n})"
  2440. }
  2441. ]
  2442. },
  2443. "delete": {
  2444. "operationId": "session.delete",
  2445. "parameters": [
  2446. {
  2447. "in": "query",
  2448. "name": "directory",
  2449. "schema": {
  2450. "type": "string"
  2451. }
  2452. },
  2453. {
  2454. "in": "query",
  2455. "name": "workspace",
  2456. "schema": {
  2457. "type": "string"
  2458. }
  2459. },
  2460. {
  2461. "in": "path",
  2462. "name": "sessionID",
  2463. "schema": {
  2464. "type": "string",
  2465. "pattern": "^ses.*"
  2466. },
  2467. "required": true
  2468. }
  2469. ],
  2470. "summary": "Delete session",
  2471. "description": "Delete a session and permanently remove all associated data, including messages and history.",
  2472. "responses": {
  2473. "200": {
  2474. "description": "Successfully deleted session",
  2475. "content": {
  2476. "application/json": {
  2477. "schema": {
  2478. "type": "boolean"
  2479. }
  2480. }
  2481. }
  2482. },
  2483. "400": {
  2484. "description": "Bad request",
  2485. "content": {
  2486. "application/json": {
  2487. "schema": {
  2488. "$ref": "#/components/schemas/BadRequestError"
  2489. }
  2490. }
  2491. }
  2492. },
  2493. "404": {
  2494. "description": "Not found",
  2495. "content": {
  2496. "application/json": {
  2497. "schema": {
  2498. "$ref": "#/components/schemas/NotFoundError"
  2499. }
  2500. }
  2501. }
  2502. }
  2503. },
  2504. "x-codeSamples": [
  2505. {
  2506. "lang": "js",
  2507. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.delete({\n ...\n})"
  2508. }
  2509. ]
  2510. },
  2511. "patch": {
  2512. "operationId": "session.update",
  2513. "parameters": [
  2514. {
  2515. "in": "query",
  2516. "name": "directory",
  2517. "schema": {
  2518. "type": "string"
  2519. }
  2520. },
  2521. {
  2522. "in": "query",
  2523. "name": "workspace",
  2524. "schema": {
  2525. "type": "string"
  2526. }
  2527. },
  2528. {
  2529. "in": "path",
  2530. "name": "sessionID",
  2531. "schema": {
  2532. "type": "string",
  2533. "pattern": "^ses.*"
  2534. },
  2535. "required": true
  2536. }
  2537. ],
  2538. "summary": "Update session",
  2539. "description": "Update properties of an existing session, such as title or other metadata.",
  2540. "responses": {
  2541. "200": {
  2542. "description": "Successfully updated session",
  2543. "content": {
  2544. "application/json": {
  2545. "schema": {
  2546. "$ref": "#/components/schemas/Session"
  2547. }
  2548. }
  2549. }
  2550. },
  2551. "400": {
  2552. "description": "Bad request",
  2553. "content": {
  2554. "application/json": {
  2555. "schema": {
  2556. "$ref": "#/components/schemas/BadRequestError"
  2557. }
  2558. }
  2559. }
  2560. },
  2561. "404": {
  2562. "description": "Not found",
  2563. "content": {
  2564. "application/json": {
  2565. "schema": {
  2566. "$ref": "#/components/schemas/NotFoundError"
  2567. }
  2568. }
  2569. }
  2570. }
  2571. },
  2572. "requestBody": {
  2573. "content": {
  2574. "application/json": {
  2575. "schema": {
  2576. "type": "object",
  2577. "properties": {
  2578. "title": {
  2579. "type": "string"
  2580. },
  2581. "time": {
  2582. "type": "object",
  2583. "properties": {
  2584. "archived": {
  2585. "type": "number"
  2586. }
  2587. }
  2588. }
  2589. }
  2590. }
  2591. }
  2592. }
  2593. },
  2594. "x-codeSamples": [
  2595. {
  2596. "lang": "js",
  2597. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.update({\n ...\n})"
  2598. }
  2599. ]
  2600. }
  2601. },
  2602. "/session/{sessionID}/children": {
  2603. "get": {
  2604. "operationId": "session.children",
  2605. "parameters": [
  2606. {
  2607. "in": "query",
  2608. "name": "directory",
  2609. "schema": {
  2610. "type": "string"
  2611. }
  2612. },
  2613. {
  2614. "in": "query",
  2615. "name": "workspace",
  2616. "schema": {
  2617. "type": "string"
  2618. }
  2619. },
  2620. {
  2621. "in": "path",
  2622. "name": "sessionID",
  2623. "schema": {
  2624. "type": "string",
  2625. "pattern": "^ses.*"
  2626. },
  2627. "required": true
  2628. }
  2629. ],
  2630. "summary": "Get session children",
  2631. "tags": ["Session"],
  2632. "description": "Retrieve all child sessions that were forked from the specified parent session.",
  2633. "responses": {
  2634. "200": {
  2635. "description": "List of children",
  2636. "content": {
  2637. "application/json": {
  2638. "schema": {
  2639. "type": "array",
  2640. "items": {
  2641. "$ref": "#/components/schemas/Session"
  2642. }
  2643. }
  2644. }
  2645. }
  2646. },
  2647. "400": {
  2648. "description": "Bad request",
  2649. "content": {
  2650. "application/json": {
  2651. "schema": {
  2652. "$ref": "#/components/schemas/BadRequestError"
  2653. }
  2654. }
  2655. }
  2656. },
  2657. "404": {
  2658. "description": "Not found",
  2659. "content": {
  2660. "application/json": {
  2661. "schema": {
  2662. "$ref": "#/components/schemas/NotFoundError"
  2663. }
  2664. }
  2665. }
  2666. }
  2667. },
  2668. "x-codeSamples": [
  2669. {
  2670. "lang": "js",
  2671. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.children({\n ...\n})"
  2672. }
  2673. ]
  2674. }
  2675. },
  2676. "/session/{sessionID}/todo": {
  2677. "get": {
  2678. "operationId": "session.todo",
  2679. "parameters": [
  2680. {
  2681. "in": "query",
  2682. "name": "directory",
  2683. "schema": {
  2684. "type": "string"
  2685. }
  2686. },
  2687. {
  2688. "in": "query",
  2689. "name": "workspace",
  2690. "schema": {
  2691. "type": "string"
  2692. }
  2693. },
  2694. {
  2695. "in": "path",
  2696. "name": "sessionID",
  2697. "schema": {
  2698. "type": "string",
  2699. "pattern": "^ses.*"
  2700. },
  2701. "required": true
  2702. }
  2703. ],
  2704. "summary": "Get session todos",
  2705. "description": "Retrieve the todo list associated with a specific session, showing tasks and action items.",
  2706. "responses": {
  2707. "200": {
  2708. "description": "Todo list",
  2709. "content": {
  2710. "application/json": {
  2711. "schema": {
  2712. "type": "array",
  2713. "items": {
  2714. "$ref": "#/components/schemas/Todo"
  2715. }
  2716. }
  2717. }
  2718. }
  2719. },
  2720. "400": {
  2721. "description": "Bad request",
  2722. "content": {
  2723. "application/json": {
  2724. "schema": {
  2725. "$ref": "#/components/schemas/BadRequestError"
  2726. }
  2727. }
  2728. }
  2729. },
  2730. "404": {
  2731. "description": "Not found",
  2732. "content": {
  2733. "application/json": {
  2734. "schema": {
  2735. "$ref": "#/components/schemas/NotFoundError"
  2736. }
  2737. }
  2738. }
  2739. }
  2740. },
  2741. "x-codeSamples": [
  2742. {
  2743. "lang": "js",
  2744. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.todo({\n ...\n})"
  2745. }
  2746. ]
  2747. }
  2748. },
  2749. "/session/{sessionID}/init": {
  2750. "post": {
  2751. "operationId": "session.init",
  2752. "parameters": [
  2753. {
  2754. "in": "query",
  2755. "name": "directory",
  2756. "schema": {
  2757. "type": "string"
  2758. }
  2759. },
  2760. {
  2761. "in": "query",
  2762. "name": "workspace",
  2763. "schema": {
  2764. "type": "string"
  2765. }
  2766. },
  2767. {
  2768. "in": "path",
  2769. "name": "sessionID",
  2770. "schema": {
  2771. "type": "string",
  2772. "pattern": "^ses.*"
  2773. },
  2774. "required": true
  2775. }
  2776. ],
  2777. "summary": "Initialize session",
  2778. "description": "Analyze the current application and create an AGENTS.md file with project-specific agent configurations.",
  2779. "responses": {
  2780. "200": {
  2781. "description": "200",
  2782. "content": {
  2783. "application/json": {
  2784. "schema": {
  2785. "type": "boolean"
  2786. }
  2787. }
  2788. }
  2789. },
  2790. "400": {
  2791. "description": "Bad request",
  2792. "content": {
  2793. "application/json": {
  2794. "schema": {
  2795. "$ref": "#/components/schemas/BadRequestError"
  2796. }
  2797. }
  2798. }
  2799. },
  2800. "404": {
  2801. "description": "Not found",
  2802. "content": {
  2803. "application/json": {
  2804. "schema": {
  2805. "$ref": "#/components/schemas/NotFoundError"
  2806. }
  2807. }
  2808. }
  2809. }
  2810. },
  2811. "requestBody": {
  2812. "content": {
  2813. "application/json": {
  2814. "schema": {
  2815. "type": "object",
  2816. "properties": {
  2817. "modelID": {
  2818. "type": "string"
  2819. },
  2820. "providerID": {
  2821. "type": "string"
  2822. },
  2823. "messageID": {
  2824. "type": "string",
  2825. "pattern": "^msg.*"
  2826. }
  2827. },
  2828. "required": ["modelID", "providerID", "messageID"]
  2829. }
  2830. }
  2831. }
  2832. },
  2833. "x-codeSamples": [
  2834. {
  2835. "lang": "js",
  2836. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.init({\n ...\n})"
  2837. }
  2838. ]
  2839. }
  2840. },
  2841. "/session/{sessionID}/fork": {
  2842. "post": {
  2843. "operationId": "session.fork",
  2844. "parameters": [
  2845. {
  2846. "in": "query",
  2847. "name": "directory",
  2848. "schema": {
  2849. "type": "string"
  2850. }
  2851. },
  2852. {
  2853. "in": "query",
  2854. "name": "workspace",
  2855. "schema": {
  2856. "type": "string"
  2857. }
  2858. },
  2859. {
  2860. "in": "path",
  2861. "name": "sessionID",
  2862. "schema": {
  2863. "type": "string",
  2864. "pattern": "^ses.*"
  2865. },
  2866. "required": true
  2867. }
  2868. ],
  2869. "summary": "Fork session",
  2870. "description": "Create a new session by forking an existing session at a specific message point.",
  2871. "responses": {
  2872. "200": {
  2873. "description": "200",
  2874. "content": {
  2875. "application/json": {
  2876. "schema": {
  2877. "$ref": "#/components/schemas/Session"
  2878. }
  2879. }
  2880. }
  2881. }
  2882. },
  2883. "requestBody": {
  2884. "content": {
  2885. "application/json": {
  2886. "schema": {
  2887. "type": "object",
  2888. "properties": {
  2889. "messageID": {
  2890. "type": "string",
  2891. "pattern": "^msg.*"
  2892. }
  2893. }
  2894. }
  2895. }
  2896. }
  2897. },
  2898. "x-codeSamples": [
  2899. {
  2900. "lang": "js",
  2901. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.fork({\n ...\n})"
  2902. }
  2903. ]
  2904. }
  2905. },
  2906. "/session/{sessionID}/abort": {
  2907. "post": {
  2908. "operationId": "session.abort",
  2909. "parameters": [
  2910. {
  2911. "in": "query",
  2912. "name": "directory",
  2913. "schema": {
  2914. "type": "string"
  2915. }
  2916. },
  2917. {
  2918. "in": "query",
  2919. "name": "workspace",
  2920. "schema": {
  2921. "type": "string"
  2922. }
  2923. },
  2924. {
  2925. "in": "path",
  2926. "name": "sessionID",
  2927. "schema": {
  2928. "type": "string",
  2929. "pattern": "^ses.*"
  2930. },
  2931. "required": true
  2932. }
  2933. ],
  2934. "summary": "Abort session",
  2935. "description": "Abort an active session and stop any ongoing AI processing or command execution.",
  2936. "responses": {
  2937. "200": {
  2938. "description": "Aborted session",
  2939. "content": {
  2940. "application/json": {
  2941. "schema": {
  2942. "type": "boolean"
  2943. }
  2944. }
  2945. }
  2946. },
  2947. "400": {
  2948. "description": "Bad request",
  2949. "content": {
  2950. "application/json": {
  2951. "schema": {
  2952. "$ref": "#/components/schemas/BadRequestError"
  2953. }
  2954. }
  2955. }
  2956. },
  2957. "404": {
  2958. "description": "Not found",
  2959. "content": {
  2960. "application/json": {
  2961. "schema": {
  2962. "$ref": "#/components/schemas/NotFoundError"
  2963. }
  2964. }
  2965. }
  2966. }
  2967. },
  2968. "x-codeSamples": [
  2969. {
  2970. "lang": "js",
  2971. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.abort({\n ...\n})"
  2972. }
  2973. ]
  2974. }
  2975. },
  2976. "/session/{sessionID}/share": {
  2977. "post": {
  2978. "operationId": "session.share",
  2979. "parameters": [
  2980. {
  2981. "in": "query",
  2982. "name": "directory",
  2983. "schema": {
  2984. "type": "string"
  2985. }
  2986. },
  2987. {
  2988. "in": "query",
  2989. "name": "workspace",
  2990. "schema": {
  2991. "type": "string"
  2992. }
  2993. },
  2994. {
  2995. "in": "path",
  2996. "name": "sessionID",
  2997. "schema": {
  2998. "type": "string",
  2999. "pattern": "^ses.*"
  3000. },
  3001. "required": true
  3002. }
  3003. ],
  3004. "summary": "Share session",
  3005. "description": "Create a shareable link for a session, allowing others to view the conversation.",
  3006. "responses": {
  3007. "200": {
  3008. "description": "Successfully shared session",
  3009. "content": {
  3010. "application/json": {
  3011. "schema": {
  3012. "$ref": "#/components/schemas/Session"
  3013. }
  3014. }
  3015. }
  3016. },
  3017. "400": {
  3018. "description": "Bad request",
  3019. "content": {
  3020. "application/json": {
  3021. "schema": {
  3022. "$ref": "#/components/schemas/BadRequestError"
  3023. }
  3024. }
  3025. }
  3026. },
  3027. "404": {
  3028. "description": "Not found",
  3029. "content": {
  3030. "application/json": {
  3031. "schema": {
  3032. "$ref": "#/components/schemas/NotFoundError"
  3033. }
  3034. }
  3035. }
  3036. }
  3037. },
  3038. "x-codeSamples": [
  3039. {
  3040. "lang": "js",
  3041. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.share({\n ...\n})"
  3042. }
  3043. ]
  3044. },
  3045. "delete": {
  3046. "operationId": "session.unshare",
  3047. "parameters": [
  3048. {
  3049. "in": "query",
  3050. "name": "directory",
  3051. "schema": {
  3052. "type": "string"
  3053. }
  3054. },
  3055. {
  3056. "in": "query",
  3057. "name": "workspace",
  3058. "schema": {
  3059. "type": "string"
  3060. }
  3061. },
  3062. {
  3063. "in": "path",
  3064. "name": "sessionID",
  3065. "schema": {
  3066. "type": "string",
  3067. "pattern": "^ses.*"
  3068. },
  3069. "required": true
  3070. }
  3071. ],
  3072. "summary": "Unshare session",
  3073. "description": "Remove the shareable link for a session, making it private again.",
  3074. "responses": {
  3075. "200": {
  3076. "description": "Successfully unshared session",
  3077. "content": {
  3078. "application/json": {
  3079. "schema": {
  3080. "$ref": "#/components/schemas/Session"
  3081. }
  3082. }
  3083. }
  3084. },
  3085. "400": {
  3086. "description": "Bad request",
  3087. "content": {
  3088. "application/json": {
  3089. "schema": {
  3090. "$ref": "#/components/schemas/BadRequestError"
  3091. }
  3092. }
  3093. }
  3094. },
  3095. "404": {
  3096. "description": "Not found",
  3097. "content": {
  3098. "application/json": {
  3099. "schema": {
  3100. "$ref": "#/components/schemas/NotFoundError"
  3101. }
  3102. }
  3103. }
  3104. }
  3105. },
  3106. "x-codeSamples": [
  3107. {
  3108. "lang": "js",
  3109. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.unshare({\n ...\n})"
  3110. }
  3111. ]
  3112. }
  3113. },
  3114. "/session/{sessionID}/diff": {
  3115. "get": {
  3116. "operationId": "session.diff",
  3117. "parameters": [
  3118. {
  3119. "in": "query",
  3120. "name": "directory",
  3121. "schema": {
  3122. "type": "string"
  3123. }
  3124. },
  3125. {
  3126. "in": "query",
  3127. "name": "workspace",
  3128. "schema": {
  3129. "type": "string"
  3130. }
  3131. },
  3132. {
  3133. "in": "path",
  3134. "name": "sessionID",
  3135. "schema": {
  3136. "type": "string",
  3137. "pattern": "^ses.*"
  3138. },
  3139. "required": true
  3140. },
  3141. {
  3142. "in": "query",
  3143. "name": "messageID",
  3144. "schema": {
  3145. "type": "string",
  3146. "pattern": "^msg.*"
  3147. }
  3148. }
  3149. ],
  3150. "summary": "Get message diff",
  3151. "description": "Get the file changes (diff) that resulted from a specific user message in the session.",
  3152. "responses": {
  3153. "200": {
  3154. "description": "Successfully retrieved diff",
  3155. "content": {
  3156. "application/json": {
  3157. "schema": {
  3158. "type": "array",
  3159. "items": {
  3160. "$ref": "#/components/schemas/FileDiff"
  3161. }
  3162. }
  3163. }
  3164. }
  3165. }
  3166. },
  3167. "x-codeSamples": [
  3168. {
  3169. "lang": "js",
  3170. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.diff({\n ...\n})"
  3171. }
  3172. ]
  3173. }
  3174. },
  3175. "/session/{sessionID}/summarize": {
  3176. "post": {
  3177. "operationId": "session.summarize",
  3178. "parameters": [
  3179. {
  3180. "in": "query",
  3181. "name": "directory",
  3182. "schema": {
  3183. "type": "string"
  3184. }
  3185. },
  3186. {
  3187. "in": "query",
  3188. "name": "workspace",
  3189. "schema": {
  3190. "type": "string"
  3191. }
  3192. },
  3193. {
  3194. "in": "path",
  3195. "name": "sessionID",
  3196. "schema": {
  3197. "type": "string",
  3198. "pattern": "^ses.*"
  3199. },
  3200. "required": true
  3201. }
  3202. ],
  3203. "summary": "Summarize session",
  3204. "description": "Generate a concise summary of the session using AI compaction to preserve key information.",
  3205. "responses": {
  3206. "200": {
  3207. "description": "Summarized session",
  3208. "content": {
  3209. "application/json": {
  3210. "schema": {
  3211. "type": "boolean"
  3212. }
  3213. }
  3214. }
  3215. },
  3216. "400": {
  3217. "description": "Bad request",
  3218. "content": {
  3219. "application/json": {
  3220. "schema": {
  3221. "$ref": "#/components/schemas/BadRequestError"
  3222. }
  3223. }
  3224. }
  3225. },
  3226. "404": {
  3227. "description": "Not found",
  3228. "content": {
  3229. "application/json": {
  3230. "schema": {
  3231. "$ref": "#/components/schemas/NotFoundError"
  3232. }
  3233. }
  3234. }
  3235. }
  3236. },
  3237. "requestBody": {
  3238. "content": {
  3239. "application/json": {
  3240. "schema": {
  3241. "type": "object",
  3242. "properties": {
  3243. "providerID": {
  3244. "type": "string"
  3245. },
  3246. "modelID": {
  3247. "type": "string"
  3248. },
  3249. "auto": {
  3250. "default": false,
  3251. "type": "boolean"
  3252. }
  3253. },
  3254. "required": ["providerID", "modelID"]
  3255. }
  3256. }
  3257. }
  3258. },
  3259. "x-codeSamples": [
  3260. {
  3261. "lang": "js",
  3262. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.summarize({\n ...\n})"
  3263. }
  3264. ]
  3265. }
  3266. },
  3267. "/session/{sessionID}/message": {
  3268. "get": {
  3269. "operationId": "session.messages",
  3270. "parameters": [
  3271. {
  3272. "in": "query",
  3273. "name": "directory",
  3274. "schema": {
  3275. "type": "string"
  3276. }
  3277. },
  3278. {
  3279. "in": "query",
  3280. "name": "workspace",
  3281. "schema": {
  3282. "type": "string"
  3283. }
  3284. },
  3285. {
  3286. "in": "path",
  3287. "name": "sessionID",
  3288. "schema": {
  3289. "type": "string",
  3290. "pattern": "^ses.*"
  3291. },
  3292. "required": true
  3293. },
  3294. {
  3295. "in": "query",
  3296. "name": "limit",
  3297. "schema": {
  3298. "type": "integer",
  3299. "minimum": 0,
  3300. "maximum": 9007199254740991
  3301. },
  3302. "description": "Maximum number of messages to return"
  3303. },
  3304. {
  3305. "in": "query",
  3306. "name": "before",
  3307. "schema": {
  3308. "type": "string"
  3309. }
  3310. }
  3311. ],
  3312. "summary": "Get session messages",
  3313. "description": "Retrieve all messages in a session, including user prompts and AI responses.",
  3314. "responses": {
  3315. "200": {
  3316. "description": "List of messages",
  3317. "content": {
  3318. "application/json": {
  3319. "schema": {
  3320. "type": "array",
  3321. "items": {
  3322. "type": "object",
  3323. "properties": {
  3324. "info": {
  3325. "$ref": "#/components/schemas/Message"
  3326. },
  3327. "parts": {
  3328. "type": "array",
  3329. "items": {
  3330. "$ref": "#/components/schemas/Part"
  3331. }
  3332. }
  3333. },
  3334. "required": ["info", "parts"]
  3335. }
  3336. }
  3337. }
  3338. }
  3339. },
  3340. "400": {
  3341. "description": "Bad request",
  3342. "content": {
  3343. "application/json": {
  3344. "schema": {
  3345. "$ref": "#/components/schemas/BadRequestError"
  3346. }
  3347. }
  3348. }
  3349. },
  3350. "404": {
  3351. "description": "Not found",
  3352. "content": {
  3353. "application/json": {
  3354. "schema": {
  3355. "$ref": "#/components/schemas/NotFoundError"
  3356. }
  3357. }
  3358. }
  3359. }
  3360. },
  3361. "x-codeSamples": [
  3362. {
  3363. "lang": "js",
  3364. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.messages({\n ...\n})"
  3365. }
  3366. ]
  3367. },
  3368. "post": {
  3369. "operationId": "session.prompt",
  3370. "parameters": [
  3371. {
  3372. "in": "query",
  3373. "name": "directory",
  3374. "schema": {
  3375. "type": "string"
  3376. }
  3377. },
  3378. {
  3379. "in": "query",
  3380. "name": "workspace",
  3381. "schema": {
  3382. "type": "string"
  3383. }
  3384. },
  3385. {
  3386. "in": "path",
  3387. "name": "sessionID",
  3388. "schema": {
  3389. "type": "string",
  3390. "pattern": "^ses.*"
  3391. },
  3392. "required": true
  3393. }
  3394. ],
  3395. "summary": "Send message",
  3396. "description": "Create and send a new message to a session, streaming the AI response.",
  3397. "responses": {
  3398. "200": {
  3399. "description": "Created message",
  3400. "content": {
  3401. "application/json": {
  3402. "schema": {
  3403. "type": "object",
  3404. "properties": {
  3405. "info": {
  3406. "$ref": "#/components/schemas/AssistantMessage"
  3407. },
  3408. "parts": {
  3409. "type": "array",
  3410. "items": {
  3411. "$ref": "#/components/schemas/Part"
  3412. }
  3413. }
  3414. },
  3415. "required": ["info", "parts"]
  3416. }
  3417. }
  3418. }
  3419. },
  3420. "400": {
  3421. "description": "Bad request",
  3422. "content": {
  3423. "application/json": {
  3424. "schema": {
  3425. "$ref": "#/components/schemas/BadRequestError"
  3426. }
  3427. }
  3428. }
  3429. },
  3430. "404": {
  3431. "description": "Not found",
  3432. "content": {
  3433. "application/json": {
  3434. "schema": {
  3435. "$ref": "#/components/schemas/NotFoundError"
  3436. }
  3437. }
  3438. }
  3439. }
  3440. },
  3441. "requestBody": {
  3442. "content": {
  3443. "application/json": {
  3444. "schema": {
  3445. "type": "object",
  3446. "properties": {
  3447. "messageID": {
  3448. "type": "string",
  3449. "pattern": "^msg.*"
  3450. },
  3451. "model": {
  3452. "type": "object",
  3453. "properties": {
  3454. "providerID": {
  3455. "type": "string"
  3456. },
  3457. "modelID": {
  3458. "type": "string"
  3459. }
  3460. },
  3461. "required": ["providerID", "modelID"]
  3462. },
  3463. "agent": {
  3464. "type": "string"
  3465. },
  3466. "noReply": {
  3467. "type": "boolean"
  3468. },
  3469. "tools": {
  3470. "description": "@deprecated tools and permissions have been merged, you can set permissions on the session itself now",
  3471. "type": "object",
  3472. "propertyNames": {
  3473. "type": "string"
  3474. },
  3475. "additionalProperties": {
  3476. "type": "boolean"
  3477. }
  3478. },
  3479. "format": {
  3480. "$ref": "#/components/schemas/OutputFormat"
  3481. },
  3482. "system": {
  3483. "type": "string"
  3484. },
  3485. "variant": {
  3486. "type": "string"
  3487. },
  3488. "editorContext": {
  3489. "type": "object",
  3490. "properties": {
  3491. "visibleFiles": {
  3492. "type": "array",
  3493. "items": {
  3494. "type": "string"
  3495. }
  3496. },
  3497. "openTabs": {
  3498. "type": "array",
  3499. "items": {
  3500. "type": "string"
  3501. }
  3502. },
  3503. "activeFile": {
  3504. "type": "string"
  3505. },
  3506. "shell": {
  3507. "type": "string"
  3508. }
  3509. }
  3510. },
  3511. "parts": {
  3512. "type": "array",
  3513. "items": {
  3514. "anyOf": [
  3515. {
  3516. "$ref": "#/components/schemas/TextPartInput"
  3517. },
  3518. {
  3519. "$ref": "#/components/schemas/FilePartInput"
  3520. },
  3521. {
  3522. "$ref": "#/components/schemas/AgentPartInput"
  3523. },
  3524. {
  3525. "$ref": "#/components/schemas/SubtaskPartInput"
  3526. }
  3527. ]
  3528. }
  3529. }
  3530. },
  3531. "required": ["parts"]
  3532. }
  3533. }
  3534. }
  3535. },
  3536. "x-codeSamples": [
  3537. {
  3538. "lang": "js",
  3539. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.prompt({\n ...\n})"
  3540. }
  3541. ]
  3542. }
  3543. },
  3544. "/session/{sessionID}/message/{messageID}": {
  3545. "get": {
  3546. "operationId": "session.message",
  3547. "parameters": [
  3548. {
  3549. "in": "query",
  3550. "name": "directory",
  3551. "schema": {
  3552. "type": "string"
  3553. }
  3554. },
  3555. {
  3556. "in": "query",
  3557. "name": "workspace",
  3558. "schema": {
  3559. "type": "string"
  3560. }
  3561. },
  3562. {
  3563. "in": "path",
  3564. "name": "sessionID",
  3565. "schema": {
  3566. "type": "string",
  3567. "pattern": "^ses.*"
  3568. },
  3569. "required": true
  3570. },
  3571. {
  3572. "in": "path",
  3573. "name": "messageID",
  3574. "schema": {
  3575. "type": "string",
  3576. "pattern": "^msg.*"
  3577. },
  3578. "required": true
  3579. }
  3580. ],
  3581. "summary": "Get message",
  3582. "description": "Retrieve a specific message from a session by its message ID.",
  3583. "responses": {
  3584. "200": {
  3585. "description": "Message",
  3586. "content": {
  3587. "application/json": {
  3588. "schema": {
  3589. "type": "object",
  3590. "properties": {
  3591. "info": {
  3592. "$ref": "#/components/schemas/Message"
  3593. },
  3594. "parts": {
  3595. "type": "array",
  3596. "items": {
  3597. "$ref": "#/components/schemas/Part"
  3598. }
  3599. }
  3600. },
  3601. "required": ["info", "parts"]
  3602. }
  3603. }
  3604. }
  3605. },
  3606. "400": {
  3607. "description": "Bad request",
  3608. "content": {
  3609. "application/json": {
  3610. "schema": {
  3611. "$ref": "#/components/schemas/BadRequestError"
  3612. }
  3613. }
  3614. }
  3615. },
  3616. "404": {
  3617. "description": "Not found",
  3618. "content": {
  3619. "application/json": {
  3620. "schema": {
  3621. "$ref": "#/components/schemas/NotFoundError"
  3622. }
  3623. }
  3624. }
  3625. }
  3626. },
  3627. "x-codeSamples": [
  3628. {
  3629. "lang": "js",
  3630. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.message({\n ...\n})"
  3631. }
  3632. ]
  3633. },
  3634. "delete": {
  3635. "operationId": "session.deleteMessage",
  3636. "parameters": [
  3637. {
  3638. "in": "query",
  3639. "name": "directory",
  3640. "schema": {
  3641. "type": "string"
  3642. }
  3643. },
  3644. {
  3645. "in": "query",
  3646. "name": "workspace",
  3647. "schema": {
  3648. "type": "string"
  3649. }
  3650. },
  3651. {
  3652. "in": "path",
  3653. "name": "sessionID",
  3654. "schema": {
  3655. "type": "string",
  3656. "pattern": "^ses.*"
  3657. },
  3658. "required": true
  3659. },
  3660. {
  3661. "in": "path",
  3662. "name": "messageID",
  3663. "schema": {
  3664. "type": "string",
  3665. "pattern": "^msg.*"
  3666. },
  3667. "required": true
  3668. }
  3669. ],
  3670. "summary": "Delete message",
  3671. "description": "Permanently delete a specific message (and all of its parts) from a session. This does not revert any file changes that may have been made while processing the message.",
  3672. "responses": {
  3673. "200": {
  3674. "description": "Successfully deleted message",
  3675. "content": {
  3676. "application/json": {
  3677. "schema": {
  3678. "type": "boolean"
  3679. }
  3680. }
  3681. }
  3682. },
  3683. "400": {
  3684. "description": "Bad request",
  3685. "content": {
  3686. "application/json": {
  3687. "schema": {
  3688. "$ref": "#/components/schemas/BadRequestError"
  3689. }
  3690. }
  3691. }
  3692. },
  3693. "404": {
  3694. "description": "Not found",
  3695. "content": {
  3696. "application/json": {
  3697. "schema": {
  3698. "$ref": "#/components/schemas/NotFoundError"
  3699. }
  3700. }
  3701. }
  3702. }
  3703. },
  3704. "x-codeSamples": [
  3705. {
  3706. "lang": "js",
  3707. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.deleteMessage({\n ...\n})"
  3708. }
  3709. ]
  3710. }
  3711. },
  3712. "/session/{sessionID}/message/{messageID}/part/{partID}": {
  3713. "delete": {
  3714. "operationId": "part.delete",
  3715. "parameters": [
  3716. {
  3717. "in": "query",
  3718. "name": "directory",
  3719. "schema": {
  3720. "type": "string"
  3721. }
  3722. },
  3723. {
  3724. "in": "query",
  3725. "name": "workspace",
  3726. "schema": {
  3727. "type": "string"
  3728. }
  3729. },
  3730. {
  3731. "in": "path",
  3732. "name": "sessionID",
  3733. "schema": {
  3734. "type": "string",
  3735. "pattern": "^ses.*"
  3736. },
  3737. "required": true
  3738. },
  3739. {
  3740. "in": "path",
  3741. "name": "messageID",
  3742. "schema": {
  3743. "type": "string",
  3744. "pattern": "^msg.*"
  3745. },
  3746. "required": true
  3747. },
  3748. {
  3749. "in": "path",
  3750. "name": "partID",
  3751. "schema": {
  3752. "type": "string",
  3753. "pattern": "^prt.*"
  3754. },
  3755. "required": true
  3756. }
  3757. ],
  3758. "description": "Delete a part from a message",
  3759. "responses": {
  3760. "200": {
  3761. "description": "Successfully deleted part",
  3762. "content": {
  3763. "application/json": {
  3764. "schema": {
  3765. "type": "boolean"
  3766. }
  3767. }
  3768. }
  3769. },
  3770. "400": {
  3771. "description": "Bad request",
  3772. "content": {
  3773. "application/json": {
  3774. "schema": {
  3775. "$ref": "#/components/schemas/BadRequestError"
  3776. }
  3777. }
  3778. }
  3779. },
  3780. "404": {
  3781. "description": "Not found",
  3782. "content": {
  3783. "application/json": {
  3784. "schema": {
  3785. "$ref": "#/components/schemas/NotFoundError"
  3786. }
  3787. }
  3788. }
  3789. }
  3790. },
  3791. "x-codeSamples": [
  3792. {
  3793. "lang": "js",
  3794. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.part.delete({\n ...\n})"
  3795. }
  3796. ]
  3797. },
  3798. "patch": {
  3799. "operationId": "part.update",
  3800. "parameters": [
  3801. {
  3802. "in": "query",
  3803. "name": "directory",
  3804. "schema": {
  3805. "type": "string"
  3806. }
  3807. },
  3808. {
  3809. "in": "query",
  3810. "name": "workspace",
  3811. "schema": {
  3812. "type": "string"
  3813. }
  3814. },
  3815. {
  3816. "in": "path",
  3817. "name": "sessionID",
  3818. "schema": {
  3819. "type": "string",
  3820. "pattern": "^ses.*"
  3821. },
  3822. "required": true
  3823. },
  3824. {
  3825. "in": "path",
  3826. "name": "messageID",
  3827. "schema": {
  3828. "type": "string",
  3829. "pattern": "^msg.*"
  3830. },
  3831. "required": true
  3832. },
  3833. {
  3834. "in": "path",
  3835. "name": "partID",
  3836. "schema": {
  3837. "type": "string",
  3838. "pattern": "^prt.*"
  3839. },
  3840. "required": true
  3841. }
  3842. ],
  3843. "description": "Update a part in a message",
  3844. "responses": {
  3845. "200": {
  3846. "description": "Successfully updated part",
  3847. "content": {
  3848. "application/json": {
  3849. "schema": {
  3850. "$ref": "#/components/schemas/Part"
  3851. }
  3852. }
  3853. }
  3854. },
  3855. "400": {
  3856. "description": "Bad request",
  3857. "content": {
  3858. "application/json": {
  3859. "schema": {
  3860. "$ref": "#/components/schemas/BadRequestError"
  3861. }
  3862. }
  3863. }
  3864. },
  3865. "404": {
  3866. "description": "Not found",
  3867. "content": {
  3868. "application/json": {
  3869. "schema": {
  3870. "$ref": "#/components/schemas/NotFoundError"
  3871. }
  3872. }
  3873. }
  3874. }
  3875. },
  3876. "requestBody": {
  3877. "content": {
  3878. "application/json": {
  3879. "schema": {
  3880. "$ref": "#/components/schemas/Part"
  3881. }
  3882. }
  3883. }
  3884. },
  3885. "x-codeSamples": [
  3886. {
  3887. "lang": "js",
  3888. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.part.update({\n ...\n})"
  3889. }
  3890. ]
  3891. }
  3892. },
  3893. "/session/{sessionID}/prompt_async": {
  3894. "post": {
  3895. "operationId": "session.prompt_async",
  3896. "parameters": [
  3897. {
  3898. "in": "query",
  3899. "name": "directory",
  3900. "schema": {
  3901. "type": "string"
  3902. }
  3903. },
  3904. {
  3905. "in": "query",
  3906. "name": "workspace",
  3907. "schema": {
  3908. "type": "string"
  3909. }
  3910. },
  3911. {
  3912. "in": "path",
  3913. "name": "sessionID",
  3914. "schema": {
  3915. "type": "string",
  3916. "pattern": "^ses.*"
  3917. },
  3918. "required": true
  3919. }
  3920. ],
  3921. "summary": "Send async message",
  3922. "description": "Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.",
  3923. "responses": {
  3924. "204": {
  3925. "description": "Prompt accepted"
  3926. },
  3927. "400": {
  3928. "description": "Bad request",
  3929. "content": {
  3930. "application/json": {
  3931. "schema": {
  3932. "$ref": "#/components/schemas/BadRequestError"
  3933. }
  3934. }
  3935. }
  3936. },
  3937. "404": {
  3938. "description": "Not found",
  3939. "content": {
  3940. "application/json": {
  3941. "schema": {
  3942. "$ref": "#/components/schemas/NotFoundError"
  3943. }
  3944. }
  3945. }
  3946. }
  3947. },
  3948. "requestBody": {
  3949. "content": {
  3950. "application/json": {
  3951. "schema": {
  3952. "type": "object",
  3953. "properties": {
  3954. "messageID": {
  3955. "type": "string",
  3956. "pattern": "^msg.*"
  3957. },
  3958. "model": {
  3959. "type": "object",
  3960. "properties": {
  3961. "providerID": {
  3962. "type": "string"
  3963. },
  3964. "modelID": {
  3965. "type": "string"
  3966. }
  3967. },
  3968. "required": ["providerID", "modelID"]
  3969. },
  3970. "agent": {
  3971. "type": "string"
  3972. },
  3973. "noReply": {
  3974. "type": "boolean"
  3975. },
  3976. "tools": {
  3977. "description": "@deprecated tools and permissions have been merged, you can set permissions on the session itself now",
  3978. "type": "object",
  3979. "propertyNames": {
  3980. "type": "string"
  3981. },
  3982. "additionalProperties": {
  3983. "type": "boolean"
  3984. }
  3985. },
  3986. "format": {
  3987. "$ref": "#/components/schemas/OutputFormat"
  3988. },
  3989. "system": {
  3990. "type": "string"
  3991. },
  3992. "variant": {
  3993. "type": "string"
  3994. },
  3995. "editorContext": {
  3996. "type": "object",
  3997. "properties": {
  3998. "visibleFiles": {
  3999. "type": "array",
  4000. "items": {
  4001. "type": "string"
  4002. }
  4003. },
  4004. "openTabs": {
  4005. "type": "array",
  4006. "items": {
  4007. "type": "string"
  4008. }
  4009. },
  4010. "activeFile": {
  4011. "type": "string"
  4012. },
  4013. "shell": {
  4014. "type": "string"
  4015. }
  4016. }
  4017. },
  4018. "parts": {
  4019. "type": "array",
  4020. "items": {
  4021. "anyOf": [
  4022. {
  4023. "$ref": "#/components/schemas/TextPartInput"
  4024. },
  4025. {
  4026. "$ref": "#/components/schemas/FilePartInput"
  4027. },
  4028. {
  4029. "$ref": "#/components/schemas/AgentPartInput"
  4030. },
  4031. {
  4032. "$ref": "#/components/schemas/SubtaskPartInput"
  4033. }
  4034. ]
  4035. }
  4036. }
  4037. },
  4038. "required": ["parts"]
  4039. }
  4040. }
  4041. }
  4042. },
  4043. "x-codeSamples": [
  4044. {
  4045. "lang": "js",
  4046. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.prompt_async({\n ...\n})"
  4047. }
  4048. ]
  4049. }
  4050. },
  4051. "/session/{sessionID}/command": {
  4052. "post": {
  4053. "operationId": "session.command",
  4054. "parameters": [
  4055. {
  4056. "in": "query",
  4057. "name": "directory",
  4058. "schema": {
  4059. "type": "string"
  4060. }
  4061. },
  4062. {
  4063. "in": "query",
  4064. "name": "workspace",
  4065. "schema": {
  4066. "type": "string"
  4067. }
  4068. },
  4069. {
  4070. "in": "path",
  4071. "name": "sessionID",
  4072. "schema": {
  4073. "type": "string",
  4074. "pattern": "^ses.*"
  4075. },
  4076. "required": true
  4077. }
  4078. ],
  4079. "summary": "Send command",
  4080. "description": "Send a new command to a session for execution by the AI assistant.",
  4081. "responses": {
  4082. "200": {
  4083. "description": "Created message",
  4084. "content": {
  4085. "application/json": {
  4086. "schema": {
  4087. "type": "object",
  4088. "properties": {
  4089. "info": {
  4090. "$ref": "#/components/schemas/AssistantMessage"
  4091. },
  4092. "parts": {
  4093. "type": "array",
  4094. "items": {
  4095. "$ref": "#/components/schemas/Part"
  4096. }
  4097. }
  4098. },
  4099. "required": ["info", "parts"]
  4100. }
  4101. }
  4102. }
  4103. },
  4104. "400": {
  4105. "description": "Bad request",
  4106. "content": {
  4107. "application/json": {
  4108. "schema": {
  4109. "$ref": "#/components/schemas/BadRequestError"
  4110. }
  4111. }
  4112. }
  4113. },
  4114. "404": {
  4115. "description": "Not found",
  4116. "content": {
  4117. "application/json": {
  4118. "schema": {
  4119. "$ref": "#/components/schemas/NotFoundError"
  4120. }
  4121. }
  4122. }
  4123. }
  4124. },
  4125. "requestBody": {
  4126. "content": {
  4127. "application/json": {
  4128. "schema": {
  4129. "type": "object",
  4130. "properties": {
  4131. "messageID": {
  4132. "type": "string",
  4133. "pattern": "^msg.*"
  4134. },
  4135. "agent": {
  4136. "type": "string"
  4137. },
  4138. "model": {
  4139. "type": "string"
  4140. },
  4141. "arguments": {
  4142. "type": "string"
  4143. },
  4144. "command": {
  4145. "type": "string"
  4146. },
  4147. "variant": {
  4148. "type": "string"
  4149. },
  4150. "parts": {
  4151. "type": "array",
  4152. "items": {
  4153. "anyOf": [
  4154. {
  4155. "type": "object",
  4156. "properties": {
  4157. "id": {
  4158. "type": "string",
  4159. "pattern": "^prt.*"
  4160. },
  4161. "type": {
  4162. "type": "string",
  4163. "const": "file"
  4164. },
  4165. "mime": {
  4166. "type": "string"
  4167. },
  4168. "filename": {
  4169. "type": "string"
  4170. },
  4171. "url": {
  4172. "type": "string"
  4173. },
  4174. "source": {
  4175. "$ref": "#/components/schemas/FilePartSource"
  4176. }
  4177. },
  4178. "required": ["type", "mime", "url"]
  4179. }
  4180. ]
  4181. }
  4182. }
  4183. },
  4184. "required": ["arguments", "command"]
  4185. }
  4186. }
  4187. }
  4188. },
  4189. "x-codeSamples": [
  4190. {
  4191. "lang": "js",
  4192. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.command({\n ...\n})"
  4193. }
  4194. ]
  4195. }
  4196. },
  4197. "/session/{sessionID}/shell": {
  4198. "post": {
  4199. "operationId": "session.shell",
  4200. "parameters": [
  4201. {
  4202. "in": "query",
  4203. "name": "directory",
  4204. "schema": {
  4205. "type": "string"
  4206. }
  4207. },
  4208. {
  4209. "in": "query",
  4210. "name": "workspace",
  4211. "schema": {
  4212. "type": "string"
  4213. }
  4214. },
  4215. {
  4216. "in": "path",
  4217. "name": "sessionID",
  4218. "schema": {
  4219. "type": "string",
  4220. "pattern": "^ses.*"
  4221. },
  4222. "required": true
  4223. }
  4224. ],
  4225. "summary": "Run shell command",
  4226. "description": "Execute a shell command within the session context and return the AI's response.",
  4227. "responses": {
  4228. "200": {
  4229. "description": "Created message",
  4230. "content": {
  4231. "application/json": {
  4232. "schema": {
  4233. "$ref": "#/components/schemas/AssistantMessage"
  4234. }
  4235. }
  4236. }
  4237. },
  4238. "400": {
  4239. "description": "Bad request",
  4240. "content": {
  4241. "application/json": {
  4242. "schema": {
  4243. "$ref": "#/components/schemas/BadRequestError"
  4244. }
  4245. }
  4246. }
  4247. },
  4248. "404": {
  4249. "description": "Not found",
  4250. "content": {
  4251. "application/json": {
  4252. "schema": {
  4253. "$ref": "#/components/schemas/NotFoundError"
  4254. }
  4255. }
  4256. }
  4257. }
  4258. },
  4259. "requestBody": {
  4260. "content": {
  4261. "application/json": {
  4262. "schema": {
  4263. "type": "object",
  4264. "properties": {
  4265. "agent": {
  4266. "type": "string"
  4267. },
  4268. "model": {
  4269. "type": "object",
  4270. "properties": {
  4271. "providerID": {
  4272. "type": "string"
  4273. },
  4274. "modelID": {
  4275. "type": "string"
  4276. }
  4277. },
  4278. "required": ["providerID", "modelID"]
  4279. },
  4280. "command": {
  4281. "type": "string"
  4282. }
  4283. },
  4284. "required": ["agent", "command"]
  4285. }
  4286. }
  4287. }
  4288. },
  4289. "x-codeSamples": [
  4290. {
  4291. "lang": "js",
  4292. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.shell({\n ...\n})"
  4293. }
  4294. ]
  4295. }
  4296. },
  4297. "/session/{sessionID}/revert": {
  4298. "post": {
  4299. "operationId": "session.revert",
  4300. "parameters": [
  4301. {
  4302. "in": "query",
  4303. "name": "directory",
  4304. "schema": {
  4305. "type": "string"
  4306. }
  4307. },
  4308. {
  4309. "in": "query",
  4310. "name": "workspace",
  4311. "schema": {
  4312. "type": "string"
  4313. }
  4314. },
  4315. {
  4316. "in": "path",
  4317. "name": "sessionID",
  4318. "schema": {
  4319. "type": "string",
  4320. "pattern": "^ses.*"
  4321. },
  4322. "required": true
  4323. }
  4324. ],
  4325. "summary": "Revert message",
  4326. "description": "Revert a specific message in a session, undoing its effects and restoring the previous state.",
  4327. "responses": {
  4328. "200": {
  4329. "description": "Updated session",
  4330. "content": {
  4331. "application/json": {
  4332. "schema": {
  4333. "$ref": "#/components/schemas/Session"
  4334. }
  4335. }
  4336. }
  4337. },
  4338. "400": {
  4339. "description": "Bad request",
  4340. "content": {
  4341. "application/json": {
  4342. "schema": {
  4343. "$ref": "#/components/schemas/BadRequestError"
  4344. }
  4345. }
  4346. }
  4347. },
  4348. "404": {
  4349. "description": "Not found",
  4350. "content": {
  4351. "application/json": {
  4352. "schema": {
  4353. "$ref": "#/components/schemas/NotFoundError"
  4354. }
  4355. }
  4356. }
  4357. }
  4358. },
  4359. "requestBody": {
  4360. "content": {
  4361. "application/json": {
  4362. "schema": {
  4363. "type": "object",
  4364. "properties": {
  4365. "messageID": {
  4366. "type": "string",
  4367. "pattern": "^msg.*"
  4368. },
  4369. "partID": {
  4370. "type": "string",
  4371. "pattern": "^prt.*"
  4372. }
  4373. },
  4374. "required": ["messageID"]
  4375. }
  4376. }
  4377. }
  4378. },
  4379. "x-codeSamples": [
  4380. {
  4381. "lang": "js",
  4382. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.revert({\n ...\n})"
  4383. }
  4384. ]
  4385. }
  4386. },
  4387. "/session/{sessionID}/unrevert": {
  4388. "post": {
  4389. "operationId": "session.unrevert",
  4390. "parameters": [
  4391. {
  4392. "in": "query",
  4393. "name": "directory",
  4394. "schema": {
  4395. "type": "string"
  4396. }
  4397. },
  4398. {
  4399. "in": "query",
  4400. "name": "workspace",
  4401. "schema": {
  4402. "type": "string"
  4403. }
  4404. },
  4405. {
  4406. "in": "path",
  4407. "name": "sessionID",
  4408. "schema": {
  4409. "type": "string",
  4410. "pattern": "^ses.*"
  4411. },
  4412. "required": true
  4413. }
  4414. ],
  4415. "summary": "Restore reverted messages",
  4416. "description": "Restore all previously reverted messages in a session.",
  4417. "responses": {
  4418. "200": {
  4419. "description": "Updated session",
  4420. "content": {
  4421. "application/json": {
  4422. "schema": {
  4423. "$ref": "#/components/schemas/Session"
  4424. }
  4425. }
  4426. }
  4427. },
  4428. "400": {
  4429. "description": "Bad request",
  4430. "content": {
  4431. "application/json": {
  4432. "schema": {
  4433. "$ref": "#/components/schemas/BadRequestError"
  4434. }
  4435. }
  4436. }
  4437. },
  4438. "404": {
  4439. "description": "Not found",
  4440. "content": {
  4441. "application/json": {
  4442. "schema": {
  4443. "$ref": "#/components/schemas/NotFoundError"
  4444. }
  4445. }
  4446. }
  4447. }
  4448. },
  4449. "x-codeSamples": [
  4450. {
  4451. "lang": "js",
  4452. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.unrevert({\n ...\n})"
  4453. }
  4454. ]
  4455. }
  4456. },
  4457. "/session/{sessionID}/permissions/{permissionID}": {
  4458. "post": {
  4459. "operationId": "permission.respond",
  4460. "parameters": [
  4461. {
  4462. "in": "query",
  4463. "name": "directory",
  4464. "schema": {
  4465. "type": "string"
  4466. }
  4467. },
  4468. {
  4469. "in": "query",
  4470. "name": "workspace",
  4471. "schema": {
  4472. "type": "string"
  4473. }
  4474. },
  4475. {
  4476. "in": "path",
  4477. "name": "sessionID",
  4478. "schema": {
  4479. "type": "string",
  4480. "pattern": "^ses.*"
  4481. },
  4482. "required": true
  4483. },
  4484. {
  4485. "in": "path",
  4486. "name": "permissionID",
  4487. "schema": {
  4488. "type": "string",
  4489. "pattern": "^per.*"
  4490. },
  4491. "required": true
  4492. }
  4493. ],
  4494. "summary": "Respond to permission",
  4495. "deprecated": true,
  4496. "description": "Approve or deny a permission request from the AI assistant.",
  4497. "responses": {
  4498. "200": {
  4499. "description": "Permission processed successfully",
  4500. "content": {
  4501. "application/json": {
  4502. "schema": {
  4503. "type": "boolean"
  4504. }
  4505. }
  4506. }
  4507. },
  4508. "400": {
  4509. "description": "Bad request",
  4510. "content": {
  4511. "application/json": {
  4512. "schema": {
  4513. "$ref": "#/components/schemas/BadRequestError"
  4514. }
  4515. }
  4516. }
  4517. },
  4518. "404": {
  4519. "description": "Not found",
  4520. "content": {
  4521. "application/json": {
  4522. "schema": {
  4523. "$ref": "#/components/schemas/NotFoundError"
  4524. }
  4525. }
  4526. }
  4527. }
  4528. },
  4529. "requestBody": {
  4530. "content": {
  4531. "application/json": {
  4532. "schema": {
  4533. "type": "object",
  4534. "properties": {
  4535. "response": {
  4536. "type": "string",
  4537. "enum": ["once", "always", "reject"]
  4538. }
  4539. },
  4540. "required": ["response"]
  4541. }
  4542. }
  4543. }
  4544. },
  4545. "x-codeSamples": [
  4546. {
  4547. "lang": "js",
  4548. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.permission.respond({\n ...\n})"
  4549. }
  4550. ]
  4551. }
  4552. },
  4553. "/session/viewed": {
  4554. "post": {
  4555. "operationId": "session.viewed",
  4556. "parameters": [
  4557. {
  4558. "in": "query",
  4559. "name": "directory",
  4560. "schema": {
  4561. "type": "string"
  4562. }
  4563. },
  4564. {
  4565. "in": "query",
  4566. "name": "workspace",
  4567. "schema": {
  4568. "type": "string"
  4569. }
  4570. }
  4571. ],
  4572. "summary": "Set viewed sessions",
  4573. "description": "Notify the server which sessions the user is currently viewing, or clear all.",
  4574. "responses": {
  4575. "200": {
  4576. "description": "Viewed sessions updated",
  4577. "content": {
  4578. "application/json": {
  4579. "schema": {
  4580. "type": "boolean"
  4581. }
  4582. }
  4583. }
  4584. }
  4585. },
  4586. "requestBody": {
  4587. "content": {
  4588. "application/json": {
  4589. "schema": {
  4590. "type": "object",
  4591. "properties": {
  4592. "focused": {
  4593. "type": "array",
  4594. "items": {
  4595. "type": "string"
  4596. }
  4597. },
  4598. "open": {
  4599. "type": "array",
  4600. "items": {
  4601. "type": "string"
  4602. }
  4603. }
  4604. }
  4605. }
  4606. }
  4607. }
  4608. },
  4609. "x-codeSamples": [
  4610. {
  4611. "lang": "js",
  4612. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.session.viewed({\n ...\n})"
  4613. }
  4614. ]
  4615. }
  4616. },
  4617. "/permission/{requestID}/reply": {
  4618. "post": {
  4619. "operationId": "permission.reply",
  4620. "parameters": [
  4621. {
  4622. "in": "query",
  4623. "name": "directory",
  4624. "schema": {
  4625. "type": "string"
  4626. }
  4627. },
  4628. {
  4629. "in": "query",
  4630. "name": "workspace",
  4631. "schema": {
  4632. "type": "string"
  4633. }
  4634. },
  4635. {
  4636. "in": "path",
  4637. "name": "requestID",
  4638. "schema": {
  4639. "type": "string",
  4640. "pattern": "^per.*"
  4641. },
  4642. "required": true
  4643. }
  4644. ],
  4645. "summary": "Respond to permission request",
  4646. "description": "Approve or deny a permission request from the AI assistant.",
  4647. "responses": {
  4648. "200": {
  4649. "description": "Permission processed successfully",
  4650. "content": {
  4651. "application/json": {
  4652. "schema": {
  4653. "type": "boolean"
  4654. }
  4655. }
  4656. }
  4657. },
  4658. "400": {
  4659. "description": "Bad request",
  4660. "content": {
  4661. "application/json": {
  4662. "schema": {
  4663. "$ref": "#/components/schemas/BadRequestError"
  4664. }
  4665. }
  4666. }
  4667. },
  4668. "404": {
  4669. "description": "Not found",
  4670. "content": {
  4671. "application/json": {
  4672. "schema": {
  4673. "$ref": "#/components/schemas/NotFoundError"
  4674. }
  4675. }
  4676. }
  4677. }
  4678. },
  4679. "requestBody": {
  4680. "content": {
  4681. "application/json": {
  4682. "schema": {
  4683. "type": "object",
  4684. "properties": {
  4685. "reply": {
  4686. "type": "string",
  4687. "enum": ["once", "always", "reject"]
  4688. },
  4689. "message": {
  4690. "type": "string"
  4691. }
  4692. },
  4693. "required": ["reply"]
  4694. }
  4695. }
  4696. }
  4697. },
  4698. "x-codeSamples": [
  4699. {
  4700. "lang": "js",
  4701. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.permission.reply({\n ...\n})"
  4702. }
  4703. ]
  4704. }
  4705. },
  4706. "/permission/{requestID}/always-rules": {
  4707. "post": {
  4708. "operationId": "permission.saveAlwaysRules",
  4709. "parameters": [
  4710. {
  4711. "in": "query",
  4712. "name": "directory",
  4713. "schema": {
  4714. "type": "string"
  4715. }
  4716. },
  4717. {
  4718. "in": "query",
  4719. "name": "workspace",
  4720. "schema": {
  4721. "type": "string"
  4722. }
  4723. },
  4724. {
  4725. "in": "path",
  4726. "name": "requestID",
  4727. "schema": {
  4728. "type": "string",
  4729. "pattern": "^per.*"
  4730. },
  4731. "required": true
  4732. }
  4733. ],
  4734. "summary": "Save always-allow/deny permission rules",
  4735. "description": "Save approved/denied always-rules for a pending permission request.",
  4736. "responses": {
  4737. "200": {
  4738. "description": "Always rules saved successfully",
  4739. "content": {
  4740. "application/json": {
  4741. "schema": {
  4742. "type": "boolean"
  4743. }
  4744. }
  4745. }
  4746. },
  4747. "400": {
  4748. "description": "Bad request",
  4749. "content": {
  4750. "application/json": {
  4751. "schema": {
  4752. "$ref": "#/components/schemas/BadRequestError"
  4753. }
  4754. }
  4755. }
  4756. },
  4757. "404": {
  4758. "description": "Not found",
  4759. "content": {
  4760. "application/json": {
  4761. "schema": {
  4762. "$ref": "#/components/schemas/NotFoundError"
  4763. }
  4764. }
  4765. }
  4766. }
  4767. },
  4768. "requestBody": {
  4769. "content": {
  4770. "application/json": {
  4771. "schema": {
  4772. "type": "object",
  4773. "properties": {
  4774. "approvedAlways": {
  4775. "type": "array",
  4776. "items": {
  4777. "type": "string"
  4778. }
  4779. },
  4780. "deniedAlways": {
  4781. "type": "array",
  4782. "items": {
  4783. "type": "string"
  4784. }
  4785. }
  4786. }
  4787. }
  4788. }
  4789. }
  4790. },
  4791. "x-codeSamples": [
  4792. {
  4793. "lang": "js",
  4794. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.permission.saveAlwaysRules({\n ...\n})"
  4795. }
  4796. ]
  4797. }
  4798. },
  4799. "/permission": {
  4800. "get": {
  4801. "operationId": "permission.list",
  4802. "parameters": [
  4803. {
  4804. "in": "query",
  4805. "name": "directory",
  4806. "schema": {
  4807. "type": "string"
  4808. }
  4809. },
  4810. {
  4811. "in": "query",
  4812. "name": "workspace",
  4813. "schema": {
  4814. "type": "string"
  4815. }
  4816. }
  4817. ],
  4818. "summary": "List pending permissions",
  4819. "description": "Get all pending permission requests across all sessions.",
  4820. "responses": {
  4821. "200": {
  4822. "description": "List of pending permissions",
  4823. "content": {
  4824. "application/json": {
  4825. "schema": {
  4826. "type": "array",
  4827. "items": {
  4828. "$ref": "#/components/schemas/PermissionRequest"
  4829. }
  4830. }
  4831. }
  4832. }
  4833. }
  4834. },
  4835. "x-codeSamples": [
  4836. {
  4837. "lang": "js",
  4838. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.permission.list({\n ...\n})"
  4839. }
  4840. ]
  4841. }
  4842. },
  4843. "/question": {
  4844. "get": {
  4845. "operationId": "question.list",
  4846. "parameters": [
  4847. {
  4848. "in": "query",
  4849. "name": "directory",
  4850. "schema": {
  4851. "type": "string"
  4852. }
  4853. },
  4854. {
  4855. "in": "query",
  4856. "name": "workspace",
  4857. "schema": {
  4858. "type": "string"
  4859. }
  4860. }
  4861. ],
  4862. "summary": "List pending questions",
  4863. "description": "Get all pending question requests across all sessions.",
  4864. "responses": {
  4865. "200": {
  4866. "description": "List of pending questions",
  4867. "content": {
  4868. "application/json": {
  4869. "schema": {
  4870. "type": "array",
  4871. "items": {
  4872. "$ref": "#/components/schemas/QuestionRequest"
  4873. }
  4874. }
  4875. }
  4876. }
  4877. }
  4878. },
  4879. "x-codeSamples": [
  4880. {
  4881. "lang": "js",
  4882. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.question.list({\n ...\n})"
  4883. }
  4884. ]
  4885. }
  4886. },
  4887. "/question/{requestID}/reply": {
  4888. "post": {
  4889. "operationId": "question.reply",
  4890. "parameters": [
  4891. {
  4892. "in": "query",
  4893. "name": "directory",
  4894. "schema": {
  4895. "type": "string"
  4896. }
  4897. },
  4898. {
  4899. "in": "query",
  4900. "name": "workspace",
  4901. "schema": {
  4902. "type": "string"
  4903. }
  4904. },
  4905. {
  4906. "in": "path",
  4907. "name": "requestID",
  4908. "schema": {
  4909. "type": "string",
  4910. "pattern": "^que.*"
  4911. },
  4912. "required": true
  4913. }
  4914. ],
  4915. "summary": "Reply to question request",
  4916. "description": "Provide answers to a question request from the AI assistant.",
  4917. "responses": {
  4918. "200": {
  4919. "description": "Question answered successfully",
  4920. "content": {
  4921. "application/json": {
  4922. "schema": {
  4923. "type": "boolean"
  4924. }
  4925. }
  4926. }
  4927. },
  4928. "400": {
  4929. "description": "Bad request",
  4930. "content": {
  4931. "application/json": {
  4932. "schema": {
  4933. "$ref": "#/components/schemas/BadRequestError"
  4934. }
  4935. }
  4936. }
  4937. },
  4938. "404": {
  4939. "description": "Not found",
  4940. "content": {
  4941. "application/json": {
  4942. "schema": {
  4943. "$ref": "#/components/schemas/NotFoundError"
  4944. }
  4945. }
  4946. }
  4947. }
  4948. },
  4949. "requestBody": {
  4950. "content": {
  4951. "application/json": {
  4952. "schema": {
  4953. "type": "object",
  4954. "properties": {
  4955. "answers": {
  4956. "description": "User answers in order of questions (each answer is an array of selected labels)",
  4957. "type": "array",
  4958. "items": {
  4959. "$ref": "#/components/schemas/QuestionAnswer"
  4960. }
  4961. }
  4962. },
  4963. "required": ["answers"]
  4964. }
  4965. }
  4966. }
  4967. },
  4968. "x-codeSamples": [
  4969. {
  4970. "lang": "js",
  4971. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.question.reply({\n ...\n})"
  4972. }
  4973. ]
  4974. }
  4975. },
  4976. "/question/{requestID}/reject": {
  4977. "post": {
  4978. "operationId": "question.reject",
  4979. "parameters": [
  4980. {
  4981. "in": "query",
  4982. "name": "directory",
  4983. "schema": {
  4984. "type": "string"
  4985. }
  4986. },
  4987. {
  4988. "in": "query",
  4989. "name": "workspace",
  4990. "schema": {
  4991. "type": "string"
  4992. }
  4993. },
  4994. {
  4995. "in": "path",
  4996. "name": "requestID",
  4997. "schema": {
  4998. "type": "string",
  4999. "pattern": "^que.*"
  5000. },
  5001. "required": true
  5002. }
  5003. ],
  5004. "summary": "Reject question request",
  5005. "description": "Reject a question request from the AI assistant.",
  5006. "responses": {
  5007. "200": {
  5008. "description": "Question rejected successfully",
  5009. "content": {
  5010. "application/json": {
  5011. "schema": {
  5012. "type": "boolean"
  5013. }
  5014. }
  5015. }
  5016. },
  5017. "400": {
  5018. "description": "Bad request",
  5019. "content": {
  5020. "application/json": {
  5021. "schema": {
  5022. "$ref": "#/components/schemas/BadRequestError"
  5023. }
  5024. }
  5025. }
  5026. },
  5027. "404": {
  5028. "description": "Not found",
  5029. "content": {
  5030. "application/json": {
  5031. "schema": {
  5032. "$ref": "#/components/schemas/NotFoundError"
  5033. }
  5034. }
  5035. }
  5036. }
  5037. },
  5038. "x-codeSamples": [
  5039. {
  5040. "lang": "js",
  5041. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.question.reject({\n ...\n})"
  5042. }
  5043. ]
  5044. }
  5045. },
  5046. "/provider": {
  5047. "get": {
  5048. "operationId": "provider.list",
  5049. "parameters": [
  5050. {
  5051. "in": "query",
  5052. "name": "directory",
  5053. "schema": {
  5054. "type": "string"
  5055. }
  5056. },
  5057. {
  5058. "in": "query",
  5059. "name": "workspace",
  5060. "schema": {
  5061. "type": "string"
  5062. }
  5063. }
  5064. ],
  5065. "summary": "List providers",
  5066. "description": "Get a list of all available AI providers, including both available and connected ones.",
  5067. "responses": {
  5068. "200": {
  5069. "description": "List of providers",
  5070. "content": {
  5071. "application/json": {
  5072. "schema": {
  5073. "type": "object",
  5074. "properties": {
  5075. "all": {
  5076. "type": "array",
  5077. "items": {
  5078. "type": "object",
  5079. "properties": {
  5080. "api": {
  5081. "type": "string"
  5082. },
  5083. "name": {
  5084. "type": "string"
  5085. },
  5086. "env": {
  5087. "type": "array",
  5088. "items": {
  5089. "type": "string"
  5090. }
  5091. },
  5092. "id": {
  5093. "type": "string"
  5094. },
  5095. "npm": {
  5096. "type": "string"
  5097. },
  5098. "models": {
  5099. "type": "object",
  5100. "propertyNames": {
  5101. "type": "string"
  5102. },
  5103. "additionalProperties": {
  5104. "type": "object",
  5105. "properties": {
  5106. "id": {
  5107. "type": "string"
  5108. },
  5109. "name": {
  5110. "type": "string"
  5111. },
  5112. "family": {
  5113. "type": "string"
  5114. },
  5115. "release_date": {
  5116. "type": "string"
  5117. },
  5118. "attachment": {
  5119. "type": "boolean"
  5120. },
  5121. "reasoning": {
  5122. "type": "boolean"
  5123. },
  5124. "temperature": {
  5125. "type": "boolean"
  5126. },
  5127. "tool_call": {
  5128. "type": "boolean"
  5129. },
  5130. "interleaved": {
  5131. "anyOf": [
  5132. {
  5133. "type": "boolean",
  5134. "const": true
  5135. },
  5136. {
  5137. "type": "object",
  5138. "properties": {
  5139. "field": {
  5140. "type": "string",
  5141. "enum": ["reasoning_content", "reasoning_details"]
  5142. }
  5143. },
  5144. "required": ["field"],
  5145. "additionalProperties": false
  5146. }
  5147. ]
  5148. },
  5149. "cost": {
  5150. "type": "object",
  5151. "properties": {
  5152. "input": {
  5153. "type": "number"
  5154. },
  5155. "output": {
  5156. "type": "number"
  5157. },
  5158. "cache_read": {
  5159. "type": "number"
  5160. },
  5161. "cache_write": {
  5162. "type": "number"
  5163. },
  5164. "context_over_200k": {
  5165. "type": "object",
  5166. "properties": {
  5167. "input": {
  5168. "type": "number"
  5169. },
  5170. "output": {
  5171. "type": "number"
  5172. },
  5173. "cache_read": {
  5174. "type": "number"
  5175. },
  5176. "cache_write": {
  5177. "type": "number"
  5178. }
  5179. },
  5180. "required": ["input", "output"]
  5181. }
  5182. },
  5183. "required": ["input", "output"]
  5184. },
  5185. "limit": {
  5186. "type": "object",
  5187. "properties": {
  5188. "context": {
  5189. "type": "number"
  5190. },
  5191. "input": {
  5192. "type": "number"
  5193. },
  5194. "output": {
  5195. "type": "number"
  5196. }
  5197. },
  5198. "required": ["context", "output"]
  5199. },
  5200. "modalities": {
  5201. "type": "object",
  5202. "properties": {
  5203. "input": {
  5204. "type": "array",
  5205. "items": {
  5206. "type": "string",
  5207. "enum": ["text", "audio", "image", "video", "pdf"]
  5208. }
  5209. },
  5210. "output": {
  5211. "type": "array",
  5212. "items": {
  5213. "type": "string",
  5214. "enum": ["text", "audio", "image", "video", "pdf"]
  5215. }
  5216. }
  5217. },
  5218. "required": ["input", "output"]
  5219. },
  5220. "recommendedIndex": {
  5221. "type": "number"
  5222. },
  5223. "prompt": {
  5224. "type": "string",
  5225. "enum": ["codex", "gemini", "beast", "anthropic", "trinity", "anthropic_without_todo"]
  5226. },
  5227. "isFree": {
  5228. "type": "boolean"
  5229. },
  5230. "ai_sdk_provider": {
  5231. "type": "string",
  5232. "enum": ["anthropic", "openai", "openai-compatible", "openrouter"]
  5233. },
  5234. "experimental": {
  5235. "type": "boolean"
  5236. },
  5237. "status": {
  5238. "type": "string",
  5239. "enum": ["alpha", "beta", "deprecated"]
  5240. },
  5241. "options": {
  5242. "type": "object",
  5243. "propertyNames": {
  5244. "type": "string"
  5245. },
  5246. "additionalProperties": {}
  5247. },
  5248. "headers": {
  5249. "type": "object",
  5250. "propertyNames": {
  5251. "type": "string"
  5252. },
  5253. "additionalProperties": {
  5254. "type": "string"
  5255. }
  5256. },
  5257. "provider": {
  5258. "type": "object",
  5259. "properties": {
  5260. "npm": {
  5261. "type": "string"
  5262. },
  5263. "api": {
  5264. "type": "string"
  5265. }
  5266. }
  5267. },
  5268. "variants": {
  5269. "type": "object",
  5270. "propertyNames": {
  5271. "type": "string"
  5272. },
  5273. "additionalProperties": {
  5274. "type": "object",
  5275. "propertyNames": {
  5276. "type": "string"
  5277. },
  5278. "additionalProperties": {}
  5279. }
  5280. }
  5281. },
  5282. "required": [
  5283. "id",
  5284. "name",
  5285. "release_date",
  5286. "attachment",
  5287. "reasoning",
  5288. "temperature",
  5289. "tool_call",
  5290. "limit",
  5291. "options"
  5292. ]
  5293. }
  5294. }
  5295. },
  5296. "required": ["name", "env", "id", "models"]
  5297. }
  5298. },
  5299. "default": {
  5300. "type": "object",
  5301. "propertyNames": {
  5302. "type": "string"
  5303. },
  5304. "additionalProperties": {
  5305. "type": "string"
  5306. }
  5307. },
  5308. "connected": {
  5309. "type": "array",
  5310. "items": {
  5311. "type": "string"
  5312. }
  5313. }
  5314. },
  5315. "required": ["all", "default", "connected"]
  5316. }
  5317. }
  5318. }
  5319. }
  5320. },
  5321. "x-codeSamples": [
  5322. {
  5323. "lang": "js",
  5324. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.provider.list({\n ...\n})"
  5325. }
  5326. ]
  5327. }
  5328. },
  5329. "/provider/auth": {
  5330. "get": {
  5331. "operationId": "provider.auth",
  5332. "parameters": [
  5333. {
  5334. "in": "query",
  5335. "name": "directory",
  5336. "schema": {
  5337. "type": "string"
  5338. }
  5339. },
  5340. {
  5341. "in": "query",
  5342. "name": "workspace",
  5343. "schema": {
  5344. "type": "string"
  5345. }
  5346. }
  5347. ],
  5348. "summary": "Get provider auth methods",
  5349. "description": "Retrieve available authentication methods for all AI providers.",
  5350. "responses": {
  5351. "200": {
  5352. "description": "Provider auth methods",
  5353. "content": {
  5354. "application/json": {
  5355. "schema": {
  5356. "type": "object",
  5357. "propertyNames": {
  5358. "type": "string"
  5359. },
  5360. "additionalProperties": {
  5361. "type": "array",
  5362. "items": {
  5363. "$ref": "#/components/schemas/ProviderAuthMethod"
  5364. }
  5365. }
  5366. }
  5367. }
  5368. }
  5369. }
  5370. },
  5371. "x-codeSamples": [
  5372. {
  5373. "lang": "js",
  5374. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.provider.auth({\n ...\n})"
  5375. }
  5376. ]
  5377. }
  5378. },
  5379. "/provider/{providerID}/oauth/authorize": {
  5380. "post": {
  5381. "operationId": "provider.oauth.authorize",
  5382. "parameters": [
  5383. {
  5384. "in": "query",
  5385. "name": "directory",
  5386. "schema": {
  5387. "type": "string"
  5388. }
  5389. },
  5390. {
  5391. "in": "query",
  5392. "name": "workspace",
  5393. "schema": {
  5394. "type": "string"
  5395. }
  5396. },
  5397. {
  5398. "in": "path",
  5399. "name": "providerID",
  5400. "schema": {
  5401. "type": "string"
  5402. },
  5403. "required": true,
  5404. "description": "Provider ID"
  5405. }
  5406. ],
  5407. "summary": "OAuth authorize",
  5408. "description": "Initiate OAuth authorization for a specific AI provider to get an authorization URL.",
  5409. "responses": {
  5410. "200": {
  5411. "description": "Authorization URL and method",
  5412. "content": {
  5413. "application/json": {
  5414. "schema": {
  5415. "$ref": "#/components/schemas/ProviderAuthAuthorization"
  5416. }
  5417. }
  5418. }
  5419. },
  5420. "400": {
  5421. "description": "Bad request",
  5422. "content": {
  5423. "application/json": {
  5424. "schema": {
  5425. "$ref": "#/components/schemas/BadRequestError"
  5426. }
  5427. }
  5428. }
  5429. }
  5430. },
  5431. "requestBody": {
  5432. "content": {
  5433. "application/json": {
  5434. "schema": {
  5435. "type": "object",
  5436. "properties": {
  5437. "method": {
  5438. "description": "Auth method index",
  5439. "type": "number"
  5440. },
  5441. "inputs": {
  5442. "description": "Prompt inputs",
  5443. "type": "object",
  5444. "propertyNames": {
  5445. "type": "string"
  5446. },
  5447. "additionalProperties": {
  5448. "type": "string"
  5449. }
  5450. }
  5451. },
  5452. "required": ["method"]
  5453. }
  5454. }
  5455. }
  5456. },
  5457. "x-codeSamples": [
  5458. {
  5459. "lang": "js",
  5460. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.provider.oauth.authorize({\n ...\n})"
  5461. }
  5462. ]
  5463. }
  5464. },
  5465. "/provider/{providerID}/oauth/callback": {
  5466. "post": {
  5467. "operationId": "provider.oauth.callback",
  5468. "parameters": [
  5469. {
  5470. "in": "query",
  5471. "name": "directory",
  5472. "schema": {
  5473. "type": "string"
  5474. }
  5475. },
  5476. {
  5477. "in": "query",
  5478. "name": "workspace",
  5479. "schema": {
  5480. "type": "string"
  5481. }
  5482. },
  5483. {
  5484. "in": "path",
  5485. "name": "providerID",
  5486. "schema": {
  5487. "type": "string"
  5488. },
  5489. "required": true,
  5490. "description": "Provider ID"
  5491. }
  5492. ],
  5493. "summary": "OAuth callback",
  5494. "description": "Handle the OAuth callback from a provider after user authorization.",
  5495. "responses": {
  5496. "200": {
  5497. "description": "OAuth callback processed successfully",
  5498. "content": {
  5499. "application/json": {
  5500. "schema": {
  5501. "type": "boolean"
  5502. }
  5503. }
  5504. }
  5505. },
  5506. "400": {
  5507. "description": "Bad request",
  5508. "content": {
  5509. "application/json": {
  5510. "schema": {
  5511. "$ref": "#/components/schemas/BadRequestError"
  5512. }
  5513. }
  5514. }
  5515. }
  5516. },
  5517. "requestBody": {
  5518. "content": {
  5519. "application/json": {
  5520. "schema": {
  5521. "type": "object",
  5522. "properties": {
  5523. "method": {
  5524. "description": "Auth method index",
  5525. "type": "number"
  5526. },
  5527. "code": {
  5528. "description": "OAuth authorization code",
  5529. "type": "string"
  5530. }
  5531. },
  5532. "required": ["method"]
  5533. }
  5534. }
  5535. }
  5536. },
  5537. "x-codeSamples": [
  5538. {
  5539. "lang": "js",
  5540. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.provider.oauth.callback({\n ...\n})"
  5541. }
  5542. ]
  5543. }
  5544. },
  5545. "/find": {
  5546. "get": {
  5547. "operationId": "find.text",
  5548. "parameters": [
  5549. {
  5550. "in": "query",
  5551. "name": "directory",
  5552. "schema": {
  5553. "type": "string"
  5554. }
  5555. },
  5556. {
  5557. "in": "query",
  5558. "name": "workspace",
  5559. "schema": {
  5560. "type": "string"
  5561. }
  5562. },
  5563. {
  5564. "in": "query",
  5565. "name": "pattern",
  5566. "schema": {
  5567. "type": "string"
  5568. },
  5569. "required": true
  5570. }
  5571. ],
  5572. "summary": "Find text",
  5573. "description": "Search for text patterns across files in the project using ripgrep.",
  5574. "responses": {
  5575. "200": {
  5576. "description": "Matches",
  5577. "content": {
  5578. "application/json": {
  5579. "schema": {
  5580. "type": "array",
  5581. "items": {
  5582. "type": "object",
  5583. "properties": {
  5584. "path": {
  5585. "type": "object",
  5586. "properties": {
  5587. "text": {
  5588. "type": "string"
  5589. }
  5590. },
  5591. "required": ["text"]
  5592. },
  5593. "lines": {
  5594. "type": "object",
  5595. "properties": {
  5596. "text": {
  5597. "type": "string"
  5598. }
  5599. },
  5600. "required": ["text"]
  5601. },
  5602. "line_number": {
  5603. "type": "number"
  5604. },
  5605. "absolute_offset": {
  5606. "type": "number"
  5607. },
  5608. "submatches": {
  5609. "type": "array",
  5610. "items": {
  5611. "type": "object",
  5612. "properties": {
  5613. "match": {
  5614. "type": "object",
  5615. "properties": {
  5616. "text": {
  5617. "type": "string"
  5618. }
  5619. },
  5620. "required": ["text"]
  5621. },
  5622. "start": {
  5623. "type": "number"
  5624. },
  5625. "end": {
  5626. "type": "number"
  5627. }
  5628. },
  5629. "required": ["match", "start", "end"]
  5630. }
  5631. }
  5632. },
  5633. "required": ["path", "lines", "line_number", "absolute_offset", "submatches"]
  5634. }
  5635. }
  5636. }
  5637. }
  5638. }
  5639. },
  5640. "x-codeSamples": [
  5641. {
  5642. "lang": "js",
  5643. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.find.text({\n ...\n})"
  5644. }
  5645. ]
  5646. }
  5647. },
  5648. "/find/file": {
  5649. "get": {
  5650. "operationId": "find.files",
  5651. "parameters": [
  5652. {
  5653. "in": "query",
  5654. "name": "directory",
  5655. "schema": {
  5656. "type": "string"
  5657. }
  5658. },
  5659. {
  5660. "in": "query",
  5661. "name": "workspace",
  5662. "schema": {
  5663. "type": "string"
  5664. }
  5665. },
  5666. {
  5667. "in": "query",
  5668. "name": "query",
  5669. "schema": {
  5670. "type": "string"
  5671. },
  5672. "required": true
  5673. },
  5674. {
  5675. "in": "query",
  5676. "name": "dirs",
  5677. "schema": {
  5678. "type": "string",
  5679. "enum": ["true", "false"]
  5680. }
  5681. },
  5682. {
  5683. "in": "query",
  5684. "name": "type",
  5685. "schema": {
  5686. "type": "string",
  5687. "enum": ["file", "directory"]
  5688. }
  5689. },
  5690. {
  5691. "in": "query",
  5692. "name": "limit",
  5693. "schema": {
  5694. "type": "integer",
  5695. "minimum": 1,
  5696. "maximum": 200
  5697. }
  5698. }
  5699. ],
  5700. "summary": "Find files",
  5701. "description": "Search for files or directories by name or pattern in the project directory.",
  5702. "responses": {
  5703. "200": {
  5704. "description": "File paths",
  5705. "content": {
  5706. "application/json": {
  5707. "schema": {
  5708. "type": "array",
  5709. "items": {
  5710. "type": "string"
  5711. }
  5712. }
  5713. }
  5714. }
  5715. }
  5716. },
  5717. "x-codeSamples": [
  5718. {
  5719. "lang": "js",
  5720. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.find.files({\n ...\n})"
  5721. }
  5722. ]
  5723. }
  5724. },
  5725. "/find/symbol": {
  5726. "get": {
  5727. "operationId": "find.symbols",
  5728. "parameters": [
  5729. {
  5730. "in": "query",
  5731. "name": "directory",
  5732. "schema": {
  5733. "type": "string"
  5734. }
  5735. },
  5736. {
  5737. "in": "query",
  5738. "name": "workspace",
  5739. "schema": {
  5740. "type": "string"
  5741. }
  5742. },
  5743. {
  5744. "in": "query",
  5745. "name": "query",
  5746. "schema": {
  5747. "type": "string"
  5748. },
  5749. "required": true
  5750. }
  5751. ],
  5752. "summary": "Find symbols",
  5753. "description": "Search for workspace symbols like functions, classes, and variables using LSP.",
  5754. "responses": {
  5755. "200": {
  5756. "description": "Symbols",
  5757. "content": {
  5758. "application/json": {
  5759. "schema": {
  5760. "type": "array",
  5761. "items": {
  5762. "$ref": "#/components/schemas/Symbol"
  5763. }
  5764. }
  5765. }
  5766. }
  5767. }
  5768. },
  5769. "x-codeSamples": [
  5770. {
  5771. "lang": "js",
  5772. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.find.symbols({\n ...\n})"
  5773. }
  5774. ]
  5775. }
  5776. },
  5777. "/file": {
  5778. "get": {
  5779. "operationId": "file.list",
  5780. "parameters": [
  5781. {
  5782. "in": "query",
  5783. "name": "directory",
  5784. "schema": {
  5785. "type": "string"
  5786. }
  5787. },
  5788. {
  5789. "in": "query",
  5790. "name": "workspace",
  5791. "schema": {
  5792. "type": "string"
  5793. }
  5794. },
  5795. {
  5796. "in": "query",
  5797. "name": "path",
  5798. "schema": {
  5799. "type": "string"
  5800. },
  5801. "required": true
  5802. }
  5803. ],
  5804. "summary": "List files",
  5805. "description": "List files and directories in a specified path.",
  5806. "responses": {
  5807. "200": {
  5808. "description": "Files and directories",
  5809. "content": {
  5810. "application/json": {
  5811. "schema": {
  5812. "type": "array",
  5813. "items": {
  5814. "$ref": "#/components/schemas/FileNode"
  5815. }
  5816. }
  5817. }
  5818. }
  5819. }
  5820. },
  5821. "x-codeSamples": [
  5822. {
  5823. "lang": "js",
  5824. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.file.list({\n ...\n})"
  5825. }
  5826. ]
  5827. }
  5828. },
  5829. "/file/content": {
  5830. "get": {
  5831. "operationId": "file.read",
  5832. "parameters": [
  5833. {
  5834. "in": "query",
  5835. "name": "directory",
  5836. "schema": {
  5837. "type": "string"
  5838. }
  5839. },
  5840. {
  5841. "in": "query",
  5842. "name": "workspace",
  5843. "schema": {
  5844. "type": "string"
  5845. }
  5846. },
  5847. {
  5848. "in": "query",
  5849. "name": "path",
  5850. "schema": {
  5851. "type": "string"
  5852. },
  5853. "required": true
  5854. }
  5855. ],
  5856. "summary": "Read file",
  5857. "description": "Read the content of a specified file.",
  5858. "responses": {
  5859. "200": {
  5860. "description": "File content",
  5861. "content": {
  5862. "application/json": {
  5863. "schema": {
  5864. "$ref": "#/components/schemas/FileContent"
  5865. }
  5866. }
  5867. }
  5868. }
  5869. },
  5870. "x-codeSamples": [
  5871. {
  5872. "lang": "js",
  5873. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.file.read({\n ...\n})"
  5874. }
  5875. ]
  5876. }
  5877. },
  5878. "/file/status": {
  5879. "get": {
  5880. "operationId": "file.status",
  5881. "parameters": [
  5882. {
  5883. "in": "query",
  5884. "name": "directory",
  5885. "schema": {
  5886. "type": "string"
  5887. }
  5888. },
  5889. {
  5890. "in": "query",
  5891. "name": "workspace",
  5892. "schema": {
  5893. "type": "string"
  5894. }
  5895. }
  5896. ],
  5897. "summary": "Get file status",
  5898. "description": "Get the git status of all files in the project.",
  5899. "responses": {
  5900. "200": {
  5901. "description": "File status",
  5902. "content": {
  5903. "application/json": {
  5904. "schema": {
  5905. "type": "array",
  5906. "items": {
  5907. "$ref": "#/components/schemas/File"
  5908. }
  5909. }
  5910. }
  5911. }
  5912. }
  5913. },
  5914. "x-codeSamples": [
  5915. {
  5916. "lang": "js",
  5917. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.file.status({\n ...\n})"
  5918. }
  5919. ]
  5920. }
  5921. },
  5922. "/event": {
  5923. "get": {
  5924. "operationId": "event.subscribe",
  5925. "parameters": [
  5926. {
  5927. "in": "query",
  5928. "name": "directory",
  5929. "schema": {
  5930. "type": "string"
  5931. }
  5932. },
  5933. {
  5934. "in": "query",
  5935. "name": "workspace",
  5936. "schema": {
  5937. "type": "string"
  5938. }
  5939. }
  5940. ],
  5941. "summary": "Subscribe to events",
  5942. "description": "Get events",
  5943. "responses": {
  5944. "200": {
  5945. "description": "Event stream",
  5946. "content": {
  5947. "text/event-stream": {
  5948. "schema": {
  5949. "$ref": "#/components/schemas/Event"
  5950. }
  5951. }
  5952. }
  5953. }
  5954. },
  5955. "x-codeSamples": [
  5956. {
  5957. "lang": "js",
  5958. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.event.subscribe({\n ...\n})"
  5959. }
  5960. ]
  5961. }
  5962. },
  5963. "/mcp": {
  5964. "get": {
  5965. "operationId": "mcp.status",
  5966. "parameters": [
  5967. {
  5968. "in": "query",
  5969. "name": "directory",
  5970. "schema": {
  5971. "type": "string"
  5972. }
  5973. },
  5974. {
  5975. "in": "query",
  5976. "name": "workspace",
  5977. "schema": {
  5978. "type": "string"
  5979. }
  5980. }
  5981. ],
  5982. "summary": "Get MCP status",
  5983. "description": "Get the status of all Model Context Protocol (MCP) servers.",
  5984. "responses": {
  5985. "200": {
  5986. "description": "MCP server status",
  5987. "content": {
  5988. "application/json": {
  5989. "schema": {
  5990. "type": "object",
  5991. "propertyNames": {
  5992. "type": "string"
  5993. },
  5994. "additionalProperties": {
  5995. "$ref": "#/components/schemas/MCPStatus"
  5996. }
  5997. }
  5998. }
  5999. }
  6000. }
  6001. },
  6002. "x-codeSamples": [
  6003. {
  6004. "lang": "js",
  6005. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.status({\n ...\n})"
  6006. }
  6007. ]
  6008. },
  6009. "post": {
  6010. "operationId": "mcp.add",
  6011. "parameters": [
  6012. {
  6013. "in": "query",
  6014. "name": "directory",
  6015. "schema": {
  6016. "type": "string"
  6017. }
  6018. },
  6019. {
  6020. "in": "query",
  6021. "name": "workspace",
  6022. "schema": {
  6023. "type": "string"
  6024. }
  6025. }
  6026. ],
  6027. "summary": "Add MCP server",
  6028. "description": "Dynamically add a new Model Context Protocol (MCP) server to the system.",
  6029. "responses": {
  6030. "200": {
  6031. "description": "MCP server added successfully",
  6032. "content": {
  6033. "application/json": {
  6034. "schema": {
  6035. "type": "object",
  6036. "propertyNames": {
  6037. "type": "string"
  6038. },
  6039. "additionalProperties": {
  6040. "$ref": "#/components/schemas/MCPStatus"
  6041. }
  6042. }
  6043. }
  6044. }
  6045. },
  6046. "400": {
  6047. "description": "Bad request",
  6048. "content": {
  6049. "application/json": {
  6050. "schema": {
  6051. "$ref": "#/components/schemas/BadRequestError"
  6052. }
  6053. }
  6054. }
  6055. }
  6056. },
  6057. "requestBody": {
  6058. "content": {
  6059. "application/json": {
  6060. "schema": {
  6061. "type": "object",
  6062. "properties": {
  6063. "name": {
  6064. "type": "string"
  6065. },
  6066. "config": {
  6067. "anyOf": [
  6068. {
  6069. "$ref": "#/components/schemas/McpLocalConfig"
  6070. },
  6071. {
  6072. "$ref": "#/components/schemas/McpRemoteConfig"
  6073. }
  6074. ]
  6075. }
  6076. },
  6077. "required": ["name", "config"]
  6078. }
  6079. }
  6080. }
  6081. },
  6082. "x-codeSamples": [
  6083. {
  6084. "lang": "js",
  6085. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.add({\n ...\n})"
  6086. }
  6087. ]
  6088. }
  6089. },
  6090. "/mcp/{name}/auth": {
  6091. "post": {
  6092. "operationId": "mcp.auth.start",
  6093. "parameters": [
  6094. {
  6095. "in": "query",
  6096. "name": "directory",
  6097. "schema": {
  6098. "type": "string"
  6099. }
  6100. },
  6101. {
  6102. "in": "query",
  6103. "name": "workspace",
  6104. "schema": {
  6105. "type": "string"
  6106. }
  6107. },
  6108. {
  6109. "schema": {
  6110. "type": "string"
  6111. },
  6112. "in": "path",
  6113. "name": "name",
  6114. "required": true
  6115. }
  6116. ],
  6117. "summary": "Start MCP OAuth",
  6118. "description": "Start OAuth authentication flow for a Model Context Protocol (MCP) server.",
  6119. "responses": {
  6120. "200": {
  6121. "description": "OAuth flow started",
  6122. "content": {
  6123. "application/json": {
  6124. "schema": {
  6125. "type": "object",
  6126. "properties": {
  6127. "authorizationUrl": {
  6128. "description": "URL to open in browser for authorization",
  6129. "type": "string"
  6130. }
  6131. },
  6132. "required": ["authorizationUrl"]
  6133. }
  6134. }
  6135. }
  6136. },
  6137. "400": {
  6138. "description": "Bad request",
  6139. "content": {
  6140. "application/json": {
  6141. "schema": {
  6142. "$ref": "#/components/schemas/BadRequestError"
  6143. }
  6144. }
  6145. }
  6146. },
  6147. "404": {
  6148. "description": "Not found",
  6149. "content": {
  6150. "application/json": {
  6151. "schema": {
  6152. "$ref": "#/components/schemas/NotFoundError"
  6153. }
  6154. }
  6155. }
  6156. }
  6157. },
  6158. "x-codeSamples": [
  6159. {
  6160. "lang": "js",
  6161. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.auth.start({\n ...\n})"
  6162. }
  6163. ]
  6164. },
  6165. "delete": {
  6166. "operationId": "mcp.auth.remove",
  6167. "parameters": [
  6168. {
  6169. "in": "query",
  6170. "name": "directory",
  6171. "schema": {
  6172. "type": "string"
  6173. }
  6174. },
  6175. {
  6176. "in": "query",
  6177. "name": "workspace",
  6178. "schema": {
  6179. "type": "string"
  6180. }
  6181. },
  6182. {
  6183. "schema": {
  6184. "type": "string"
  6185. },
  6186. "in": "path",
  6187. "name": "name",
  6188. "required": true
  6189. }
  6190. ],
  6191. "summary": "Remove MCP OAuth",
  6192. "description": "Remove OAuth credentials for an MCP server",
  6193. "responses": {
  6194. "200": {
  6195. "description": "OAuth credentials removed",
  6196. "content": {
  6197. "application/json": {
  6198. "schema": {
  6199. "type": "object",
  6200. "properties": {
  6201. "success": {
  6202. "type": "boolean",
  6203. "const": true
  6204. }
  6205. },
  6206. "required": ["success"]
  6207. }
  6208. }
  6209. }
  6210. },
  6211. "404": {
  6212. "description": "Not found",
  6213. "content": {
  6214. "application/json": {
  6215. "schema": {
  6216. "$ref": "#/components/schemas/NotFoundError"
  6217. }
  6218. }
  6219. }
  6220. }
  6221. },
  6222. "x-codeSamples": [
  6223. {
  6224. "lang": "js",
  6225. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.auth.remove({\n ...\n})"
  6226. }
  6227. ]
  6228. }
  6229. },
  6230. "/mcp/{name}/auth/callback": {
  6231. "post": {
  6232. "operationId": "mcp.auth.callback",
  6233. "parameters": [
  6234. {
  6235. "in": "query",
  6236. "name": "directory",
  6237. "schema": {
  6238. "type": "string"
  6239. }
  6240. },
  6241. {
  6242. "in": "query",
  6243. "name": "workspace",
  6244. "schema": {
  6245. "type": "string"
  6246. }
  6247. },
  6248. {
  6249. "schema": {
  6250. "type": "string"
  6251. },
  6252. "in": "path",
  6253. "name": "name",
  6254. "required": true
  6255. }
  6256. ],
  6257. "summary": "Complete MCP OAuth",
  6258. "description": "Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.",
  6259. "responses": {
  6260. "200": {
  6261. "description": "OAuth authentication completed",
  6262. "content": {
  6263. "application/json": {
  6264. "schema": {
  6265. "$ref": "#/components/schemas/MCPStatus"
  6266. }
  6267. }
  6268. }
  6269. },
  6270. "400": {
  6271. "description": "Bad request",
  6272. "content": {
  6273. "application/json": {
  6274. "schema": {
  6275. "$ref": "#/components/schemas/BadRequestError"
  6276. }
  6277. }
  6278. }
  6279. },
  6280. "404": {
  6281. "description": "Not found",
  6282. "content": {
  6283. "application/json": {
  6284. "schema": {
  6285. "$ref": "#/components/schemas/NotFoundError"
  6286. }
  6287. }
  6288. }
  6289. }
  6290. },
  6291. "requestBody": {
  6292. "content": {
  6293. "application/json": {
  6294. "schema": {
  6295. "type": "object",
  6296. "properties": {
  6297. "code": {
  6298. "description": "Authorization code from OAuth callback",
  6299. "type": "string"
  6300. }
  6301. },
  6302. "required": ["code"]
  6303. }
  6304. }
  6305. }
  6306. },
  6307. "x-codeSamples": [
  6308. {
  6309. "lang": "js",
  6310. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.auth.callback({\n ...\n})"
  6311. }
  6312. ]
  6313. }
  6314. },
  6315. "/mcp/{name}/auth/authenticate": {
  6316. "post": {
  6317. "operationId": "mcp.auth.authenticate",
  6318. "parameters": [
  6319. {
  6320. "in": "query",
  6321. "name": "directory",
  6322. "schema": {
  6323. "type": "string"
  6324. }
  6325. },
  6326. {
  6327. "in": "query",
  6328. "name": "workspace",
  6329. "schema": {
  6330. "type": "string"
  6331. }
  6332. },
  6333. {
  6334. "schema": {
  6335. "type": "string"
  6336. },
  6337. "in": "path",
  6338. "name": "name",
  6339. "required": true
  6340. }
  6341. ],
  6342. "summary": "Authenticate MCP OAuth",
  6343. "description": "Start OAuth flow and wait for callback (opens browser)",
  6344. "responses": {
  6345. "200": {
  6346. "description": "OAuth authentication completed",
  6347. "content": {
  6348. "application/json": {
  6349. "schema": {
  6350. "$ref": "#/components/schemas/MCPStatus"
  6351. }
  6352. }
  6353. }
  6354. },
  6355. "400": {
  6356. "description": "Bad request",
  6357. "content": {
  6358. "application/json": {
  6359. "schema": {
  6360. "$ref": "#/components/schemas/BadRequestError"
  6361. }
  6362. }
  6363. }
  6364. },
  6365. "404": {
  6366. "description": "Not found",
  6367. "content": {
  6368. "application/json": {
  6369. "schema": {
  6370. "$ref": "#/components/schemas/NotFoundError"
  6371. }
  6372. }
  6373. }
  6374. }
  6375. },
  6376. "x-codeSamples": [
  6377. {
  6378. "lang": "js",
  6379. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.auth.authenticate({\n ...\n})"
  6380. }
  6381. ]
  6382. }
  6383. },
  6384. "/mcp/{name}/connect": {
  6385. "post": {
  6386. "operationId": "mcp.connect",
  6387. "parameters": [
  6388. {
  6389. "in": "query",
  6390. "name": "directory",
  6391. "schema": {
  6392. "type": "string"
  6393. }
  6394. },
  6395. {
  6396. "in": "query",
  6397. "name": "workspace",
  6398. "schema": {
  6399. "type": "string"
  6400. }
  6401. },
  6402. {
  6403. "in": "path",
  6404. "name": "name",
  6405. "schema": {
  6406. "type": "string"
  6407. },
  6408. "required": true
  6409. }
  6410. ],
  6411. "description": "Connect an MCP server",
  6412. "responses": {
  6413. "200": {
  6414. "description": "MCP server connected successfully",
  6415. "content": {
  6416. "application/json": {
  6417. "schema": {
  6418. "type": "boolean"
  6419. }
  6420. }
  6421. }
  6422. }
  6423. },
  6424. "x-codeSamples": [
  6425. {
  6426. "lang": "js",
  6427. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.connect({\n ...\n})"
  6428. }
  6429. ]
  6430. }
  6431. },
  6432. "/mcp/{name}/disconnect": {
  6433. "post": {
  6434. "operationId": "mcp.disconnect",
  6435. "parameters": [
  6436. {
  6437. "in": "query",
  6438. "name": "directory",
  6439. "schema": {
  6440. "type": "string"
  6441. }
  6442. },
  6443. {
  6444. "in": "query",
  6445. "name": "workspace",
  6446. "schema": {
  6447. "type": "string"
  6448. }
  6449. },
  6450. {
  6451. "in": "path",
  6452. "name": "name",
  6453. "schema": {
  6454. "type": "string"
  6455. },
  6456. "required": true
  6457. }
  6458. ],
  6459. "description": "Disconnect an MCP server",
  6460. "responses": {
  6461. "200": {
  6462. "description": "MCP server disconnected successfully",
  6463. "content": {
  6464. "application/json": {
  6465. "schema": {
  6466. "type": "boolean"
  6467. }
  6468. }
  6469. }
  6470. }
  6471. },
  6472. "x-codeSamples": [
  6473. {
  6474. "lang": "js",
  6475. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.mcp.disconnect({\n ...\n})"
  6476. }
  6477. ]
  6478. }
  6479. },
  6480. "/tui/append-prompt": {
  6481. "post": {
  6482. "operationId": "tui.appendPrompt",
  6483. "parameters": [
  6484. {
  6485. "in": "query",
  6486. "name": "directory",
  6487. "schema": {
  6488. "type": "string"
  6489. }
  6490. },
  6491. {
  6492. "in": "query",
  6493. "name": "workspace",
  6494. "schema": {
  6495. "type": "string"
  6496. }
  6497. }
  6498. ],
  6499. "summary": "Append TUI prompt",
  6500. "description": "Append prompt to the TUI",
  6501. "responses": {
  6502. "200": {
  6503. "description": "Prompt processed successfully",
  6504. "content": {
  6505. "application/json": {
  6506. "schema": {
  6507. "type": "boolean"
  6508. }
  6509. }
  6510. }
  6511. },
  6512. "400": {
  6513. "description": "Bad request",
  6514. "content": {
  6515. "application/json": {
  6516. "schema": {
  6517. "$ref": "#/components/schemas/BadRequestError"
  6518. }
  6519. }
  6520. }
  6521. }
  6522. },
  6523. "requestBody": {
  6524. "content": {
  6525. "application/json": {
  6526. "schema": {
  6527. "type": "object",
  6528. "properties": {
  6529. "text": {
  6530. "type": "string"
  6531. }
  6532. },
  6533. "required": ["text"]
  6534. }
  6535. }
  6536. }
  6537. },
  6538. "x-codeSamples": [
  6539. {
  6540. "lang": "js",
  6541. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.appendPrompt({\n ...\n})"
  6542. }
  6543. ]
  6544. }
  6545. },
  6546. "/tui/open-help": {
  6547. "post": {
  6548. "operationId": "tui.openHelp",
  6549. "parameters": [
  6550. {
  6551. "in": "query",
  6552. "name": "directory",
  6553. "schema": {
  6554. "type": "string"
  6555. }
  6556. },
  6557. {
  6558. "in": "query",
  6559. "name": "workspace",
  6560. "schema": {
  6561. "type": "string"
  6562. }
  6563. }
  6564. ],
  6565. "summary": "Open help dialog",
  6566. "description": "Open the help dialog in the TUI to display user assistance information.",
  6567. "responses": {
  6568. "200": {
  6569. "description": "Help dialog opened successfully",
  6570. "content": {
  6571. "application/json": {
  6572. "schema": {
  6573. "type": "boolean"
  6574. }
  6575. }
  6576. }
  6577. }
  6578. },
  6579. "x-codeSamples": [
  6580. {
  6581. "lang": "js",
  6582. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.openHelp({\n ...\n})"
  6583. }
  6584. ]
  6585. }
  6586. },
  6587. "/tui/open-sessions": {
  6588. "post": {
  6589. "operationId": "tui.openSessions",
  6590. "parameters": [
  6591. {
  6592. "in": "query",
  6593. "name": "directory",
  6594. "schema": {
  6595. "type": "string"
  6596. }
  6597. },
  6598. {
  6599. "in": "query",
  6600. "name": "workspace",
  6601. "schema": {
  6602. "type": "string"
  6603. }
  6604. }
  6605. ],
  6606. "summary": "Open sessions dialog",
  6607. "description": "Open the session dialog",
  6608. "responses": {
  6609. "200": {
  6610. "description": "Session dialog opened successfully",
  6611. "content": {
  6612. "application/json": {
  6613. "schema": {
  6614. "type": "boolean"
  6615. }
  6616. }
  6617. }
  6618. }
  6619. },
  6620. "x-codeSamples": [
  6621. {
  6622. "lang": "js",
  6623. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.openSessions({\n ...\n})"
  6624. }
  6625. ]
  6626. }
  6627. },
  6628. "/tui/open-themes": {
  6629. "post": {
  6630. "operationId": "tui.openThemes",
  6631. "parameters": [
  6632. {
  6633. "in": "query",
  6634. "name": "directory",
  6635. "schema": {
  6636. "type": "string"
  6637. }
  6638. },
  6639. {
  6640. "in": "query",
  6641. "name": "workspace",
  6642. "schema": {
  6643. "type": "string"
  6644. }
  6645. }
  6646. ],
  6647. "summary": "Open themes dialog",
  6648. "description": "Open the theme dialog",
  6649. "responses": {
  6650. "200": {
  6651. "description": "Theme dialog opened successfully",
  6652. "content": {
  6653. "application/json": {
  6654. "schema": {
  6655. "type": "boolean"
  6656. }
  6657. }
  6658. }
  6659. }
  6660. },
  6661. "x-codeSamples": [
  6662. {
  6663. "lang": "js",
  6664. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.openThemes({\n ...\n})"
  6665. }
  6666. ]
  6667. }
  6668. },
  6669. "/tui/open-models": {
  6670. "post": {
  6671. "operationId": "tui.openModels",
  6672. "parameters": [
  6673. {
  6674. "in": "query",
  6675. "name": "directory",
  6676. "schema": {
  6677. "type": "string"
  6678. }
  6679. },
  6680. {
  6681. "in": "query",
  6682. "name": "workspace",
  6683. "schema": {
  6684. "type": "string"
  6685. }
  6686. }
  6687. ],
  6688. "summary": "Open models dialog",
  6689. "description": "Open the model dialog",
  6690. "responses": {
  6691. "200": {
  6692. "description": "Model dialog opened successfully",
  6693. "content": {
  6694. "application/json": {
  6695. "schema": {
  6696. "type": "boolean"
  6697. }
  6698. }
  6699. }
  6700. }
  6701. },
  6702. "x-codeSamples": [
  6703. {
  6704. "lang": "js",
  6705. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.openModels({\n ...\n})"
  6706. }
  6707. ]
  6708. }
  6709. },
  6710. "/tui/submit-prompt": {
  6711. "post": {
  6712. "operationId": "tui.submitPrompt",
  6713. "parameters": [
  6714. {
  6715. "in": "query",
  6716. "name": "directory",
  6717. "schema": {
  6718. "type": "string"
  6719. }
  6720. },
  6721. {
  6722. "in": "query",
  6723. "name": "workspace",
  6724. "schema": {
  6725. "type": "string"
  6726. }
  6727. }
  6728. ],
  6729. "summary": "Submit TUI prompt",
  6730. "description": "Submit the prompt",
  6731. "responses": {
  6732. "200": {
  6733. "description": "Prompt submitted successfully",
  6734. "content": {
  6735. "application/json": {
  6736. "schema": {
  6737. "type": "boolean"
  6738. }
  6739. }
  6740. }
  6741. }
  6742. },
  6743. "x-codeSamples": [
  6744. {
  6745. "lang": "js",
  6746. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.submitPrompt({\n ...\n})"
  6747. }
  6748. ]
  6749. }
  6750. },
  6751. "/tui/clear-prompt": {
  6752. "post": {
  6753. "operationId": "tui.clearPrompt",
  6754. "parameters": [
  6755. {
  6756. "in": "query",
  6757. "name": "directory",
  6758. "schema": {
  6759. "type": "string"
  6760. }
  6761. },
  6762. {
  6763. "in": "query",
  6764. "name": "workspace",
  6765. "schema": {
  6766. "type": "string"
  6767. }
  6768. }
  6769. ],
  6770. "summary": "Clear TUI prompt",
  6771. "description": "Clear the prompt",
  6772. "responses": {
  6773. "200": {
  6774. "description": "Prompt cleared successfully",
  6775. "content": {
  6776. "application/json": {
  6777. "schema": {
  6778. "type": "boolean"
  6779. }
  6780. }
  6781. }
  6782. }
  6783. },
  6784. "x-codeSamples": [
  6785. {
  6786. "lang": "js",
  6787. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.clearPrompt({\n ...\n})"
  6788. }
  6789. ]
  6790. }
  6791. },
  6792. "/tui/execute-command": {
  6793. "post": {
  6794. "operationId": "tui.executeCommand",
  6795. "parameters": [
  6796. {
  6797. "in": "query",
  6798. "name": "directory",
  6799. "schema": {
  6800. "type": "string"
  6801. }
  6802. },
  6803. {
  6804. "in": "query",
  6805. "name": "workspace",
  6806. "schema": {
  6807. "type": "string"
  6808. }
  6809. }
  6810. ],
  6811. "summary": "Execute TUI command",
  6812. "description": "Execute a TUI command (e.g. agent_cycle)",
  6813. "responses": {
  6814. "200": {
  6815. "description": "Command executed successfully",
  6816. "content": {
  6817. "application/json": {
  6818. "schema": {
  6819. "type": "boolean"
  6820. }
  6821. }
  6822. }
  6823. },
  6824. "400": {
  6825. "description": "Bad request",
  6826. "content": {
  6827. "application/json": {
  6828. "schema": {
  6829. "$ref": "#/components/schemas/BadRequestError"
  6830. }
  6831. }
  6832. }
  6833. }
  6834. },
  6835. "requestBody": {
  6836. "content": {
  6837. "application/json": {
  6838. "schema": {
  6839. "type": "object",
  6840. "properties": {
  6841. "command": {
  6842. "type": "string"
  6843. }
  6844. },
  6845. "required": ["command"]
  6846. }
  6847. }
  6848. }
  6849. },
  6850. "x-codeSamples": [
  6851. {
  6852. "lang": "js",
  6853. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.executeCommand({\n ...\n})"
  6854. }
  6855. ]
  6856. }
  6857. },
  6858. "/tui/show-toast": {
  6859. "post": {
  6860. "operationId": "tui.showToast",
  6861. "parameters": [
  6862. {
  6863. "in": "query",
  6864. "name": "directory",
  6865. "schema": {
  6866. "type": "string"
  6867. }
  6868. },
  6869. {
  6870. "in": "query",
  6871. "name": "workspace",
  6872. "schema": {
  6873. "type": "string"
  6874. }
  6875. }
  6876. ],
  6877. "summary": "Show TUI toast",
  6878. "description": "Show a toast notification in the TUI",
  6879. "responses": {
  6880. "200": {
  6881. "description": "Toast notification shown successfully",
  6882. "content": {
  6883. "application/json": {
  6884. "schema": {
  6885. "type": "boolean"
  6886. }
  6887. }
  6888. }
  6889. }
  6890. },
  6891. "requestBody": {
  6892. "content": {
  6893. "application/json": {
  6894. "schema": {
  6895. "type": "object",
  6896. "properties": {
  6897. "title": {
  6898. "type": "string"
  6899. },
  6900. "message": {
  6901. "type": "string"
  6902. },
  6903. "variant": {
  6904. "type": "string",
  6905. "enum": ["info", "success", "warning", "error"]
  6906. },
  6907. "duration": {
  6908. "description": "Duration in milliseconds",
  6909. "default": 5000,
  6910. "type": "number"
  6911. }
  6912. },
  6913. "required": ["message", "variant"]
  6914. }
  6915. }
  6916. }
  6917. },
  6918. "x-codeSamples": [
  6919. {
  6920. "lang": "js",
  6921. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.showToast({\n ...\n})"
  6922. }
  6923. ]
  6924. }
  6925. },
  6926. "/tui/publish": {
  6927. "post": {
  6928. "operationId": "tui.publish",
  6929. "parameters": [
  6930. {
  6931. "in": "query",
  6932. "name": "directory",
  6933. "schema": {
  6934. "type": "string"
  6935. }
  6936. },
  6937. {
  6938. "in": "query",
  6939. "name": "workspace",
  6940. "schema": {
  6941. "type": "string"
  6942. }
  6943. }
  6944. ],
  6945. "summary": "Publish TUI event",
  6946. "description": "Publish a TUI event",
  6947. "responses": {
  6948. "200": {
  6949. "description": "Event published successfully",
  6950. "content": {
  6951. "application/json": {
  6952. "schema": {
  6953. "type": "boolean"
  6954. }
  6955. }
  6956. }
  6957. },
  6958. "400": {
  6959. "description": "Bad request",
  6960. "content": {
  6961. "application/json": {
  6962. "schema": {
  6963. "$ref": "#/components/schemas/BadRequestError"
  6964. }
  6965. }
  6966. }
  6967. }
  6968. },
  6969. "requestBody": {
  6970. "content": {
  6971. "application/json": {
  6972. "schema": {
  6973. "anyOf": [
  6974. {
  6975. "$ref": "#/components/schemas/Event.tui.prompt.append"
  6976. },
  6977. {
  6978. "$ref": "#/components/schemas/Event.tui.command.execute"
  6979. },
  6980. {
  6981. "$ref": "#/components/schemas/Event.tui.toast.show"
  6982. },
  6983. {
  6984. "$ref": "#/components/schemas/Event.tui.session.select"
  6985. }
  6986. ]
  6987. }
  6988. }
  6989. }
  6990. },
  6991. "x-codeSamples": [
  6992. {
  6993. "lang": "js",
  6994. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.publish({\n ...\n})"
  6995. }
  6996. ]
  6997. }
  6998. },
  6999. "/tui/select-session": {
  7000. "post": {
  7001. "operationId": "tui.selectSession",
  7002. "parameters": [
  7003. {
  7004. "in": "query",
  7005. "name": "directory",
  7006. "schema": {
  7007. "type": "string"
  7008. }
  7009. },
  7010. {
  7011. "in": "query",
  7012. "name": "workspace",
  7013. "schema": {
  7014. "type": "string"
  7015. }
  7016. }
  7017. ],
  7018. "summary": "Select session",
  7019. "description": "Navigate the TUI to display the specified session.",
  7020. "responses": {
  7021. "200": {
  7022. "description": "Session selected successfully",
  7023. "content": {
  7024. "application/json": {
  7025. "schema": {
  7026. "type": "boolean"
  7027. }
  7028. }
  7029. }
  7030. },
  7031. "400": {
  7032. "description": "Bad request",
  7033. "content": {
  7034. "application/json": {
  7035. "schema": {
  7036. "$ref": "#/components/schemas/BadRequestError"
  7037. }
  7038. }
  7039. }
  7040. },
  7041. "404": {
  7042. "description": "Not found",
  7043. "content": {
  7044. "application/json": {
  7045. "schema": {
  7046. "$ref": "#/components/schemas/NotFoundError"
  7047. }
  7048. }
  7049. }
  7050. }
  7051. },
  7052. "requestBody": {
  7053. "content": {
  7054. "application/json": {
  7055. "schema": {
  7056. "type": "object",
  7057. "properties": {
  7058. "sessionID": {
  7059. "description": "Session ID to navigate to",
  7060. "type": "string",
  7061. "pattern": "^ses.*"
  7062. }
  7063. },
  7064. "required": ["sessionID"]
  7065. }
  7066. }
  7067. }
  7068. },
  7069. "x-codeSamples": [
  7070. {
  7071. "lang": "js",
  7072. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.selectSession({\n ...\n})"
  7073. }
  7074. ]
  7075. }
  7076. },
  7077. "/tui/control/next": {
  7078. "get": {
  7079. "operationId": "tui.control.next",
  7080. "parameters": [
  7081. {
  7082. "in": "query",
  7083. "name": "directory",
  7084. "schema": {
  7085. "type": "string"
  7086. }
  7087. },
  7088. {
  7089. "in": "query",
  7090. "name": "workspace",
  7091. "schema": {
  7092. "type": "string"
  7093. }
  7094. }
  7095. ],
  7096. "summary": "Get next TUI request",
  7097. "description": "Retrieve the next TUI (Terminal User Interface) request from the queue for processing.",
  7098. "responses": {
  7099. "200": {
  7100. "description": "Next TUI request",
  7101. "content": {
  7102. "application/json": {
  7103. "schema": {
  7104. "type": "object",
  7105. "properties": {
  7106. "path": {
  7107. "type": "string"
  7108. },
  7109. "body": {}
  7110. },
  7111. "required": ["path", "body"]
  7112. }
  7113. }
  7114. }
  7115. }
  7116. },
  7117. "x-codeSamples": [
  7118. {
  7119. "lang": "js",
  7120. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.control.next({\n ...\n})"
  7121. }
  7122. ]
  7123. }
  7124. },
  7125. "/tui/control/response": {
  7126. "post": {
  7127. "operationId": "tui.control.response",
  7128. "parameters": [
  7129. {
  7130. "in": "query",
  7131. "name": "directory",
  7132. "schema": {
  7133. "type": "string"
  7134. }
  7135. },
  7136. {
  7137. "in": "query",
  7138. "name": "workspace",
  7139. "schema": {
  7140. "type": "string"
  7141. }
  7142. }
  7143. ],
  7144. "summary": "Submit TUI response",
  7145. "description": "Submit a response to the TUI request queue to complete a pending request.",
  7146. "responses": {
  7147. "200": {
  7148. "description": "Response submitted successfully",
  7149. "content": {
  7150. "application/json": {
  7151. "schema": {
  7152. "type": "boolean"
  7153. }
  7154. }
  7155. }
  7156. }
  7157. },
  7158. "requestBody": {
  7159. "content": {
  7160. "application/json": {
  7161. "schema": {}
  7162. }
  7163. }
  7164. },
  7165. "x-codeSamples": [
  7166. {
  7167. "lang": "js",
  7168. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.tui.control.response({\n ...\n})"
  7169. }
  7170. ]
  7171. }
  7172. },
  7173. "/instance/dispose": {
  7174. "post": {
  7175. "operationId": "instance.dispose",
  7176. "parameters": [
  7177. {
  7178. "in": "query",
  7179. "name": "directory",
  7180. "schema": {
  7181. "type": "string"
  7182. }
  7183. },
  7184. {
  7185. "in": "query",
  7186. "name": "workspace",
  7187. "schema": {
  7188. "type": "string"
  7189. }
  7190. }
  7191. ],
  7192. "summary": "Dispose instance",
  7193. "description": "Clean up and dispose the current Kilo instance, releasing all resources.",
  7194. "responses": {
  7195. "200": {
  7196. "description": "Instance disposed",
  7197. "content": {
  7198. "application/json": {
  7199. "schema": {
  7200. "type": "boolean"
  7201. }
  7202. }
  7203. }
  7204. }
  7205. },
  7206. "x-codeSamples": [
  7207. {
  7208. "lang": "js",
  7209. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.instance.dispose({\n ...\n})"
  7210. }
  7211. ]
  7212. }
  7213. },
  7214. "/path": {
  7215. "get": {
  7216. "operationId": "path.get",
  7217. "parameters": [
  7218. {
  7219. "in": "query",
  7220. "name": "directory",
  7221. "schema": {
  7222. "type": "string"
  7223. }
  7224. },
  7225. {
  7226. "in": "query",
  7227. "name": "workspace",
  7228. "schema": {
  7229. "type": "string"
  7230. }
  7231. }
  7232. ],
  7233. "summary": "Get paths",
  7234. "description": "Retrieve the current working directory and related path information for the Kilo instance.",
  7235. "responses": {
  7236. "200": {
  7237. "description": "Path",
  7238. "content": {
  7239. "application/json": {
  7240. "schema": {
  7241. "$ref": "#/components/schemas/Path"
  7242. }
  7243. }
  7244. }
  7245. }
  7246. },
  7247. "x-codeSamples": [
  7248. {
  7249. "lang": "js",
  7250. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.path.get({\n ...\n})"
  7251. }
  7252. ]
  7253. }
  7254. },
  7255. "/vcs": {
  7256. "get": {
  7257. "operationId": "vcs.get",
  7258. "parameters": [
  7259. {
  7260. "in": "query",
  7261. "name": "directory",
  7262. "schema": {
  7263. "type": "string"
  7264. }
  7265. },
  7266. {
  7267. "in": "query",
  7268. "name": "workspace",
  7269. "schema": {
  7270. "type": "string"
  7271. }
  7272. }
  7273. ],
  7274. "summary": "Get VCS info",
  7275. "description": "Retrieve version control system (VCS) information for the current project, such as git branch.",
  7276. "responses": {
  7277. "200": {
  7278. "description": "VCS info",
  7279. "content": {
  7280. "application/json": {
  7281. "schema": {
  7282. "$ref": "#/components/schemas/VcsInfo"
  7283. }
  7284. }
  7285. }
  7286. }
  7287. },
  7288. "x-codeSamples": [
  7289. {
  7290. "lang": "js",
  7291. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.vcs.get({\n ...\n})"
  7292. }
  7293. ]
  7294. }
  7295. },
  7296. "/command": {
  7297. "get": {
  7298. "operationId": "command.list",
  7299. "parameters": [
  7300. {
  7301. "in": "query",
  7302. "name": "directory",
  7303. "schema": {
  7304. "type": "string"
  7305. }
  7306. },
  7307. {
  7308. "in": "query",
  7309. "name": "workspace",
  7310. "schema": {
  7311. "type": "string"
  7312. }
  7313. }
  7314. ],
  7315. "summary": "List commands",
  7316. "description": "Get a list of all available commands in the Kilo system.",
  7317. "responses": {
  7318. "200": {
  7319. "description": "List of commands",
  7320. "content": {
  7321. "application/json": {
  7322. "schema": {
  7323. "type": "array",
  7324. "items": {
  7325. "$ref": "#/components/schemas/Command"
  7326. }
  7327. }
  7328. }
  7329. }
  7330. }
  7331. },
  7332. "x-codeSamples": [
  7333. {
  7334. "lang": "js",
  7335. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.command.list({\n ...\n})"
  7336. }
  7337. ]
  7338. }
  7339. },
  7340. "/agent": {
  7341. "get": {
  7342. "operationId": "app.agents",
  7343. "parameters": [
  7344. {
  7345. "in": "query",
  7346. "name": "directory",
  7347. "schema": {
  7348. "type": "string"
  7349. }
  7350. },
  7351. {
  7352. "in": "query",
  7353. "name": "workspace",
  7354. "schema": {
  7355. "type": "string"
  7356. }
  7357. }
  7358. ],
  7359. "summary": "List agents",
  7360. "description": "Get a list of all available AI agents in the Kilo system.",
  7361. "responses": {
  7362. "200": {
  7363. "description": "List of agents",
  7364. "content": {
  7365. "application/json": {
  7366. "schema": {
  7367. "type": "array",
  7368. "items": {
  7369. "$ref": "#/components/schemas/Agent"
  7370. }
  7371. }
  7372. }
  7373. }
  7374. }
  7375. },
  7376. "x-codeSamples": [
  7377. {
  7378. "lang": "js",
  7379. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.app.agents({\n ...\n})"
  7380. }
  7381. ]
  7382. }
  7383. },
  7384. "/skill": {
  7385. "get": {
  7386. "operationId": "app.skills",
  7387. "parameters": [
  7388. {
  7389. "in": "query",
  7390. "name": "directory",
  7391. "schema": {
  7392. "type": "string"
  7393. }
  7394. },
  7395. {
  7396. "in": "query",
  7397. "name": "workspace",
  7398. "schema": {
  7399. "type": "string"
  7400. }
  7401. }
  7402. ],
  7403. "summary": "List skills",
  7404. "description": "Get a list of all available skills in the Kilo system.",
  7405. "responses": {
  7406. "200": {
  7407. "description": "List of skills",
  7408. "content": {
  7409. "application/json": {
  7410. "schema": {
  7411. "type": "array",
  7412. "items": {
  7413. "type": "object",
  7414. "properties": {
  7415. "name": {
  7416. "type": "string"
  7417. },
  7418. "description": {
  7419. "type": "string"
  7420. },
  7421. "location": {
  7422. "type": "string"
  7423. },
  7424. "content": {
  7425. "type": "string"
  7426. }
  7427. },
  7428. "required": ["name", "description", "location", "content"]
  7429. }
  7430. }
  7431. }
  7432. }
  7433. }
  7434. },
  7435. "x-codeSamples": [
  7436. {
  7437. "lang": "js",
  7438. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.app.skills({\n ...\n})"
  7439. }
  7440. ]
  7441. }
  7442. },
  7443. "/lsp": {
  7444. "get": {
  7445. "operationId": "lsp.status",
  7446. "parameters": [
  7447. {
  7448. "in": "query",
  7449. "name": "directory",
  7450. "schema": {
  7451. "type": "string"
  7452. }
  7453. },
  7454. {
  7455. "in": "query",
  7456. "name": "workspace",
  7457. "schema": {
  7458. "type": "string"
  7459. }
  7460. }
  7461. ],
  7462. "summary": "Get LSP status",
  7463. "description": "Get LSP server status",
  7464. "responses": {
  7465. "200": {
  7466. "description": "LSP server status",
  7467. "content": {
  7468. "application/json": {
  7469. "schema": {
  7470. "type": "array",
  7471. "items": {
  7472. "$ref": "#/components/schemas/LSPStatus"
  7473. }
  7474. }
  7475. }
  7476. }
  7477. }
  7478. },
  7479. "x-codeSamples": [
  7480. {
  7481. "lang": "js",
  7482. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.lsp.status({\n ...\n})"
  7483. }
  7484. ]
  7485. }
  7486. },
  7487. "/formatter": {
  7488. "get": {
  7489. "operationId": "formatter.status",
  7490. "parameters": [
  7491. {
  7492. "in": "query",
  7493. "name": "directory",
  7494. "schema": {
  7495. "type": "string"
  7496. }
  7497. },
  7498. {
  7499. "in": "query",
  7500. "name": "workspace",
  7501. "schema": {
  7502. "type": "string"
  7503. }
  7504. }
  7505. ],
  7506. "summary": "Get formatter status",
  7507. "description": "Get formatter status",
  7508. "responses": {
  7509. "200": {
  7510. "description": "Formatter status",
  7511. "content": {
  7512. "application/json": {
  7513. "schema": {
  7514. "type": "array",
  7515. "items": {
  7516. "$ref": "#/components/schemas/FormatterStatus"
  7517. }
  7518. }
  7519. }
  7520. }
  7521. }
  7522. },
  7523. "x-codeSamples": [
  7524. {
  7525. "lang": "js",
  7526. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.formatter.status({\n ...\n})"
  7527. }
  7528. ]
  7529. }
  7530. },
  7531. "/permission/allow-everything": {
  7532. "post": {
  7533. "operationId": "permission.allowEverything",
  7534. "parameters": [
  7535. {
  7536. "in": "query",
  7537. "name": "directory",
  7538. "schema": {
  7539. "type": "string"
  7540. }
  7541. },
  7542. {
  7543. "in": "query",
  7544. "name": "workspace",
  7545. "schema": {
  7546. "type": "string"
  7547. }
  7548. }
  7549. ],
  7550. "summary": "Allow everything",
  7551. "description": "Enable or disable allowing all permissions without prompts.",
  7552. "responses": {
  7553. "200": {
  7554. "description": "Success",
  7555. "content": {
  7556. "application/json": {
  7557. "schema": {
  7558. "type": "boolean"
  7559. }
  7560. }
  7561. }
  7562. },
  7563. "400": {
  7564. "description": "Bad request",
  7565. "content": {
  7566. "application/json": {
  7567. "schema": {
  7568. "$ref": "#/components/schemas/BadRequestError"
  7569. }
  7570. }
  7571. }
  7572. },
  7573. "404": {
  7574. "description": "Not found",
  7575. "content": {
  7576. "application/json": {
  7577. "schema": {
  7578. "$ref": "#/components/schemas/NotFoundError"
  7579. }
  7580. }
  7581. }
  7582. }
  7583. },
  7584. "requestBody": {
  7585. "content": {
  7586. "application/json": {
  7587. "schema": {
  7588. "type": "object",
  7589. "properties": {
  7590. "enable": {
  7591. "type": "boolean"
  7592. },
  7593. "requestID": {
  7594. "type": "string"
  7595. },
  7596. "sessionID": {
  7597. "type": "string"
  7598. }
  7599. },
  7600. "required": ["enable"]
  7601. }
  7602. }
  7603. }
  7604. },
  7605. "x-codeSamples": [
  7606. {
  7607. "lang": "js",
  7608. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.permission.allowEverything({\n ...\n})"
  7609. }
  7610. ]
  7611. }
  7612. },
  7613. "/network": {
  7614. "get": {
  7615. "operationId": "network.list",
  7616. "parameters": [
  7617. {
  7618. "in": "query",
  7619. "name": "directory",
  7620. "schema": {
  7621. "type": "string"
  7622. }
  7623. },
  7624. {
  7625. "in": "query",
  7626. "name": "workspace",
  7627. "schema": {
  7628. "type": "string"
  7629. }
  7630. }
  7631. ],
  7632. "summary": "List pending network waits",
  7633. "description": "Get all pending network reconnect requests across all sessions.",
  7634. "responses": {
  7635. "200": {
  7636. "description": "List of pending network reconnect requests",
  7637. "content": {
  7638. "application/json": {
  7639. "schema": {
  7640. "type": "array",
  7641. "items": {
  7642. "$ref": "#/components/schemas/SessionNetworkWait"
  7643. }
  7644. }
  7645. }
  7646. }
  7647. }
  7648. },
  7649. "x-codeSamples": [
  7650. {
  7651. "lang": "js",
  7652. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.list({\n ...\n})"
  7653. }
  7654. ]
  7655. }
  7656. },
  7657. "/network/{requestID}/reply": {
  7658. "post": {
  7659. "operationId": "network.reply",
  7660. "parameters": [
  7661. {
  7662. "in": "query",
  7663. "name": "directory",
  7664. "schema": {
  7665. "type": "string"
  7666. }
  7667. },
  7668. {
  7669. "in": "query",
  7670. "name": "workspace",
  7671. "schema": {
  7672. "type": "string"
  7673. }
  7674. },
  7675. {
  7676. "in": "path",
  7677. "name": "requestID",
  7678. "schema": {
  7679. "type": "string"
  7680. },
  7681. "required": true
  7682. }
  7683. ],
  7684. "summary": "Resume after network wait",
  7685. "description": "Resume a pending session after reconnecting network-dependent services.",
  7686. "responses": {
  7687. "200": {
  7688. "description": "Network wait resumed successfully",
  7689. "content": {
  7690. "application/json": {
  7691. "schema": {
  7692. "type": "boolean"
  7693. }
  7694. }
  7695. }
  7696. },
  7697. "400": {
  7698. "description": "Bad request",
  7699. "content": {
  7700. "application/json": {
  7701. "schema": {
  7702. "$ref": "#/components/schemas/BadRequestError"
  7703. }
  7704. }
  7705. }
  7706. },
  7707. "404": {
  7708. "description": "Not found",
  7709. "content": {
  7710. "application/json": {
  7711. "schema": {
  7712. "$ref": "#/components/schemas/NotFoundError"
  7713. }
  7714. }
  7715. }
  7716. }
  7717. },
  7718. "x-codeSamples": [
  7719. {
  7720. "lang": "js",
  7721. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.reply({\n ...\n})"
  7722. }
  7723. ]
  7724. }
  7725. },
  7726. "/network/{requestID}/reject": {
  7727. "post": {
  7728. "operationId": "network.reject",
  7729. "parameters": [
  7730. {
  7731. "in": "query",
  7732. "name": "directory",
  7733. "schema": {
  7734. "type": "string"
  7735. }
  7736. },
  7737. {
  7738. "in": "query",
  7739. "name": "workspace",
  7740. "schema": {
  7741. "type": "string"
  7742. }
  7743. },
  7744. {
  7745. "in": "path",
  7746. "name": "requestID",
  7747. "schema": {
  7748. "type": "string"
  7749. },
  7750. "required": true
  7751. }
  7752. ],
  7753. "summary": "Reject network resume request",
  7754. "description": "Stop a pending session instead of resuming after network reconnect.",
  7755. "responses": {
  7756. "200": {
  7757. "description": "Network wait rejected successfully",
  7758. "content": {
  7759. "application/json": {
  7760. "schema": {
  7761. "type": "boolean"
  7762. }
  7763. }
  7764. }
  7765. },
  7766. "400": {
  7767. "description": "Bad request",
  7768. "content": {
  7769. "application/json": {
  7770. "schema": {
  7771. "$ref": "#/components/schemas/BadRequestError"
  7772. }
  7773. }
  7774. }
  7775. },
  7776. "404": {
  7777. "description": "Not found",
  7778. "content": {
  7779. "application/json": {
  7780. "schema": {
  7781. "$ref": "#/components/schemas/NotFoundError"
  7782. }
  7783. }
  7784. }
  7785. }
  7786. },
  7787. "x-codeSamples": [
  7788. {
  7789. "lang": "js",
  7790. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.reject({\n ...\n})"
  7791. }
  7792. ]
  7793. }
  7794. },
  7795. "/telemetry/capture": {
  7796. "post": {
  7797. "operationId": "telemetry.capture",
  7798. "parameters": [
  7799. {
  7800. "in": "query",
  7801. "name": "directory",
  7802. "schema": {
  7803. "type": "string"
  7804. }
  7805. },
  7806. {
  7807. "in": "query",
  7808. "name": "workspace",
  7809. "schema": {
  7810. "type": "string"
  7811. }
  7812. }
  7813. ],
  7814. "summary": "Capture telemetry event",
  7815. "description": "Forward a telemetry event to PostHog via kilo-telemetry.",
  7816. "responses": {
  7817. "200": {
  7818. "description": "Event captured",
  7819. "content": {
  7820. "application/json": {
  7821. "schema": {
  7822. "type": "boolean"
  7823. }
  7824. }
  7825. }
  7826. },
  7827. "400": {
  7828. "description": "Bad request",
  7829. "content": {
  7830. "application/json": {
  7831. "schema": {
  7832. "$ref": "#/components/schemas/BadRequestError"
  7833. }
  7834. }
  7835. }
  7836. }
  7837. },
  7838. "requestBody": {
  7839. "content": {
  7840. "application/json": {
  7841. "schema": {
  7842. "type": "object",
  7843. "properties": {
  7844. "event": {
  7845. "description": "Event name",
  7846. "type": "string"
  7847. },
  7848. "properties": {
  7849. "description": "Event properties",
  7850. "type": "object",
  7851. "propertyNames": {
  7852. "type": "string"
  7853. },
  7854. "additionalProperties": {}
  7855. }
  7856. },
  7857. "required": ["event"]
  7858. }
  7859. }
  7860. }
  7861. },
  7862. "x-codeSamples": [
  7863. {
  7864. "lang": "js",
  7865. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.telemetry.capture({\n ...\n})"
  7866. }
  7867. ]
  7868. }
  7869. },
  7870. "/remote/enable": {
  7871. "post": {
  7872. "operationId": "remote.enable",
  7873. "parameters": [
  7874. {
  7875. "in": "query",
  7876. "name": "directory",
  7877. "schema": {
  7878. "type": "string"
  7879. }
  7880. },
  7881. {
  7882. "in": "query",
  7883. "name": "workspace",
  7884. "schema": {
  7885. "type": "string"
  7886. }
  7887. }
  7888. ],
  7889. "summary": "Enable remote connection",
  7890. "description": "Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.",
  7891. "responses": {
  7892. "200": {
  7893. "description": "Remote connection enabled",
  7894. "content": {
  7895. "application/json": {
  7896. "schema": {
  7897. "type": "object",
  7898. "properties": {
  7899. "enabled": {
  7900. "type": "boolean"
  7901. },
  7902. "connected": {
  7903. "type": "boolean"
  7904. }
  7905. },
  7906. "required": ["enabled", "connected"]
  7907. }
  7908. }
  7909. }
  7910. }
  7911. },
  7912. "x-codeSamples": [
  7913. {
  7914. "lang": "js",
  7915. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.enable({\n ...\n})"
  7916. }
  7917. ]
  7918. }
  7919. },
  7920. "/remote/disable": {
  7921. "post": {
  7922. "operationId": "remote.disable",
  7923. "parameters": [
  7924. {
  7925. "in": "query",
  7926. "name": "directory",
  7927. "schema": {
  7928. "type": "string"
  7929. }
  7930. },
  7931. {
  7932. "in": "query",
  7933. "name": "workspace",
  7934. "schema": {
  7935. "type": "string"
  7936. }
  7937. }
  7938. ],
  7939. "summary": "Disable remote connection",
  7940. "description": "Close the remote WebSocket connection to UserConnectionDO.",
  7941. "responses": {
  7942. "200": {
  7943. "description": "Remote connection disabled",
  7944. "content": {
  7945. "application/json": {
  7946. "schema": {
  7947. "type": "object",
  7948. "properties": {
  7949. "enabled": {
  7950. "type": "boolean"
  7951. },
  7952. "connected": {
  7953. "type": "boolean"
  7954. }
  7955. },
  7956. "required": ["enabled", "connected"]
  7957. }
  7958. }
  7959. }
  7960. }
  7961. },
  7962. "x-codeSamples": [
  7963. {
  7964. "lang": "js",
  7965. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.disable({\n ...\n})"
  7966. }
  7967. ]
  7968. }
  7969. },
  7970. "/remote/status": {
  7971. "get": {
  7972. "operationId": "remote.status",
  7973. "parameters": [
  7974. {
  7975. "in": "query",
  7976. "name": "directory",
  7977. "schema": {
  7978. "type": "string"
  7979. }
  7980. },
  7981. {
  7982. "in": "query",
  7983. "name": "workspace",
  7984. "schema": {
  7985. "type": "string"
  7986. }
  7987. }
  7988. ],
  7989. "summary": "Get remote connection status",
  7990. "description": "Get the current state of the remote WebSocket connection.",
  7991. "responses": {
  7992. "200": {
  7993. "description": "Remote connection status",
  7994. "content": {
  7995. "application/json": {
  7996. "schema": {
  7997. "type": "object",
  7998. "properties": {
  7999. "enabled": {
  8000. "type": "boolean"
  8001. },
  8002. "connected": {
  8003. "type": "boolean"
  8004. }
  8005. },
  8006. "required": ["enabled", "connected"]
  8007. }
  8008. }
  8009. }
  8010. }
  8011. },
  8012. "x-codeSamples": [
  8013. {
  8014. "lang": "js",
  8015. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.status({\n ...\n})"
  8016. }
  8017. ]
  8018. }
  8019. },
  8020. "/commit-message": {
  8021. "post": {
  8022. "operationId": "commitMessage.generate",
  8023. "parameters": [
  8024. {
  8025. "in": "query",
  8026. "name": "directory",
  8027. "schema": {
  8028. "type": "string"
  8029. }
  8030. },
  8031. {
  8032. "in": "query",
  8033. "name": "workspace",
  8034. "schema": {
  8035. "type": "string"
  8036. }
  8037. }
  8038. ],
  8039. "summary": "Generate commit message",
  8040. "description": "Generate a commit message using AI based on the current git diff.",
  8041. "responses": {
  8042. "200": {
  8043. "description": "Generated commit message",
  8044. "content": {
  8045. "application/json": {
  8046. "schema": {
  8047. "type": "object",
  8048. "properties": {
  8049. "message": {
  8050. "type": "string"
  8051. }
  8052. },
  8053. "required": ["message"]
  8054. }
  8055. }
  8056. }
  8057. },
  8058. "400": {
  8059. "description": "Bad request",
  8060. "content": {
  8061. "application/json": {
  8062. "schema": {
  8063. "$ref": "#/components/schemas/BadRequestError"
  8064. }
  8065. }
  8066. }
  8067. }
  8068. },
  8069. "requestBody": {
  8070. "content": {
  8071. "application/json": {
  8072. "schema": {
  8073. "type": "object",
  8074. "properties": {
  8075. "path": {
  8076. "description": "Workspace/repo path",
  8077. "type": "string"
  8078. },
  8079. "selectedFiles": {
  8080. "description": "Optional subset of files to include",
  8081. "type": "array",
  8082. "items": {
  8083. "type": "string"
  8084. }
  8085. },
  8086. "previousMessage": {
  8087. "description": "Previously generated message — triggers regeneration with a different result",
  8088. "type": "string"
  8089. }
  8090. },
  8091. "required": ["path"]
  8092. }
  8093. }
  8094. }
  8095. },
  8096. "x-codeSamples": [
  8097. {
  8098. "lang": "js",
  8099. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.commitMessage.generate({\n ...\n})"
  8100. }
  8101. ]
  8102. }
  8103. },
  8104. "/enhance-prompt": {
  8105. "post": {
  8106. "operationId": "enhancePrompt.enhance",
  8107. "parameters": [
  8108. {
  8109. "in": "query",
  8110. "name": "directory",
  8111. "schema": {
  8112. "type": "string"
  8113. }
  8114. },
  8115. {
  8116. "in": "query",
  8117. "name": "workspace",
  8118. "schema": {
  8119. "type": "string"
  8120. }
  8121. }
  8122. ],
  8123. "summary": "Enhance prompt",
  8124. "description": "Rewrite a user's draft prompt into a clearer, more specific, and more effective prompt.",
  8125. "responses": {
  8126. "200": {
  8127. "description": "Enhanced prompt text",
  8128. "content": {
  8129. "application/json": {
  8130. "schema": {
  8131. "type": "object",
  8132. "properties": {
  8133. "text": {
  8134. "type": "string"
  8135. }
  8136. },
  8137. "required": ["text"]
  8138. }
  8139. }
  8140. }
  8141. },
  8142. "400": {
  8143. "description": "Bad request",
  8144. "content": {
  8145. "application/json": {
  8146. "schema": {
  8147. "$ref": "#/components/schemas/BadRequestError"
  8148. }
  8149. }
  8150. }
  8151. }
  8152. },
  8153. "requestBody": {
  8154. "content": {
  8155. "application/json": {
  8156. "schema": {
  8157. "type": "object",
  8158. "properties": {
  8159. "text": {
  8160. "description": "The user's draft prompt to enhance",
  8161. "type": "string",
  8162. "minLength": 1
  8163. }
  8164. },
  8165. "required": ["text"]
  8166. }
  8167. }
  8168. }
  8169. },
  8170. "x-codeSamples": [
  8171. {
  8172. "lang": "js",
  8173. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.enhancePrompt.enhance({\n ...\n})"
  8174. }
  8175. ]
  8176. }
  8177. },
  8178. "/kilocode/session-import/project": {
  8179. "post": {
  8180. "operationId": "kilocode.sessionImport.project",
  8181. "parameters": [
  8182. {
  8183. "in": "query",
  8184. "name": "directory",
  8185. "schema": {
  8186. "type": "string"
  8187. }
  8188. },
  8189. {
  8190. "in": "query",
  8191. "name": "workspace",
  8192. "schema": {
  8193. "type": "string"
  8194. }
  8195. }
  8196. ],
  8197. "summary": "Insert project for session import",
  8198. "description": "Insert or update a project row used by legacy session import.",
  8199. "responses": {
  8200. "200": {
  8201. "description": "Project import result",
  8202. "content": {
  8203. "application/json": {
  8204. "schema": {
  8205. "type": "object",
  8206. "properties": {
  8207. "ok": {
  8208. "type": "boolean"
  8209. },
  8210. "id": {
  8211. "type": "string"
  8212. },
  8213. "skipped": {
  8214. "type": "boolean"
  8215. }
  8216. },
  8217. "required": ["ok", "id"]
  8218. }
  8219. }
  8220. }
  8221. },
  8222. "400": {
  8223. "description": "Bad request",
  8224. "content": {
  8225. "application/json": {
  8226. "schema": {
  8227. "$ref": "#/components/schemas/BadRequestError"
  8228. }
  8229. }
  8230. }
  8231. }
  8232. },
  8233. "requestBody": {
  8234. "content": {
  8235. "application/json": {
  8236. "schema": {
  8237. "type": "object",
  8238. "properties": {
  8239. "id": {
  8240. "type": "string"
  8241. },
  8242. "worktree": {
  8243. "type": "string"
  8244. },
  8245. "vcs": {
  8246. "type": "string"
  8247. },
  8248. "name": {
  8249. "type": "string"
  8250. },
  8251. "iconUrl": {
  8252. "type": "string"
  8253. },
  8254. "iconColor": {
  8255. "type": "string"
  8256. },
  8257. "timeCreated": {
  8258. "type": "number"
  8259. },
  8260. "timeUpdated": {
  8261. "type": "number"
  8262. },
  8263. "timeInitialized": {
  8264. "type": "number"
  8265. },
  8266. "sandboxes": {
  8267. "type": "array",
  8268. "items": {
  8269. "type": "string"
  8270. }
  8271. },
  8272. "commands": {
  8273. "type": "object",
  8274. "properties": {
  8275. "start": {
  8276. "type": "string"
  8277. }
  8278. }
  8279. }
  8280. },
  8281. "required": ["id", "worktree", "timeCreated", "timeUpdated", "sandboxes"]
  8282. }
  8283. }
  8284. }
  8285. },
  8286. "x-codeSamples": [
  8287. {
  8288. "lang": "js",
  8289. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilocode.sessionImport.project({\n ...\n})"
  8290. }
  8291. ]
  8292. }
  8293. },
  8294. "/kilocode/session-import/session": {
  8295. "post": {
  8296. "operationId": "kilocode.sessionImport.session",
  8297. "parameters": [
  8298. {
  8299. "in": "query",
  8300. "name": "directory",
  8301. "schema": {
  8302. "type": "string"
  8303. }
  8304. },
  8305. {
  8306. "in": "query",
  8307. "name": "workspace",
  8308. "schema": {
  8309. "type": "string"
  8310. }
  8311. }
  8312. ],
  8313. "summary": "Insert session for session import",
  8314. "description": "Insert or update a session row used by legacy session import.",
  8315. "responses": {
  8316. "200": {
  8317. "description": "Session import result",
  8318. "content": {
  8319. "application/json": {
  8320. "schema": {
  8321. "type": "object",
  8322. "properties": {
  8323. "ok": {
  8324. "type": "boolean"
  8325. },
  8326. "id": {
  8327. "type": "string"
  8328. },
  8329. "skipped": {
  8330. "type": "boolean"
  8331. }
  8332. },
  8333. "required": ["ok", "id"]
  8334. }
  8335. }
  8336. }
  8337. },
  8338. "400": {
  8339. "description": "Bad request",
  8340. "content": {
  8341. "application/json": {
  8342. "schema": {
  8343. "$ref": "#/components/schemas/BadRequestError"
  8344. }
  8345. }
  8346. }
  8347. }
  8348. },
  8349. "requestBody": {
  8350. "content": {
  8351. "application/json": {
  8352. "schema": {
  8353. "type": "object",
  8354. "properties": {
  8355. "id": {
  8356. "type": "string"
  8357. },
  8358. "projectID": {
  8359. "type": "string"
  8360. },
  8361. "force": {
  8362. "type": "boolean"
  8363. },
  8364. "workspaceID": {
  8365. "type": "string"
  8366. },
  8367. "parentID": {
  8368. "type": "string"
  8369. },
  8370. "slug": {
  8371. "type": "string"
  8372. },
  8373. "directory": {
  8374. "type": "string"
  8375. },
  8376. "title": {
  8377. "type": "string"
  8378. },
  8379. "version": {
  8380. "type": "string"
  8381. },
  8382. "shareURL": {
  8383. "type": "string"
  8384. },
  8385. "summary": {
  8386. "type": "object",
  8387. "properties": {
  8388. "additions": {
  8389. "type": "number"
  8390. },
  8391. "deletions": {
  8392. "type": "number"
  8393. },
  8394. "files": {
  8395. "type": "number"
  8396. },
  8397. "diffs": {
  8398. "type": "array",
  8399. "items": {
  8400. "type": "object",
  8401. "propertyNames": {
  8402. "type": "string"
  8403. },
  8404. "additionalProperties": {}
  8405. }
  8406. }
  8407. },
  8408. "required": ["additions", "deletions", "files"]
  8409. },
  8410. "revert": {
  8411. "type": "object",
  8412. "properties": {
  8413. "messageID": {
  8414. "type": "string"
  8415. },
  8416. "partID": {
  8417. "type": "string"
  8418. },
  8419. "snapshot": {
  8420. "type": "string"
  8421. },
  8422. "diff": {
  8423. "type": "string"
  8424. }
  8425. },
  8426. "required": ["messageID"]
  8427. },
  8428. "permission": {
  8429. "type": "object",
  8430. "propertyNames": {
  8431. "type": "string"
  8432. },
  8433. "additionalProperties": {}
  8434. },
  8435. "timeCreated": {
  8436. "type": "number"
  8437. },
  8438. "timeUpdated": {
  8439. "type": "number"
  8440. },
  8441. "timeCompacting": {
  8442. "type": "number"
  8443. },
  8444. "timeArchived": {
  8445. "type": "number"
  8446. }
  8447. },
  8448. "required": ["id", "projectID", "slug", "directory", "title", "version", "timeCreated", "timeUpdated"]
  8449. }
  8450. }
  8451. }
  8452. },
  8453. "x-codeSamples": [
  8454. {
  8455. "lang": "js",
  8456. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilocode.sessionImport.session({\n ...\n})"
  8457. }
  8458. ]
  8459. }
  8460. },
  8461. "/kilocode/session-import/message": {
  8462. "post": {
  8463. "operationId": "kilocode.sessionImport.message",
  8464. "parameters": [
  8465. {
  8466. "in": "query",
  8467. "name": "directory",
  8468. "schema": {
  8469. "type": "string"
  8470. }
  8471. },
  8472. {
  8473. "in": "query",
  8474. "name": "workspace",
  8475. "schema": {
  8476. "type": "string"
  8477. }
  8478. }
  8479. ],
  8480. "summary": "Insert message for session import",
  8481. "description": "Insert or update a message row used by legacy session import.",
  8482. "responses": {
  8483. "200": {
  8484. "description": "Message import result",
  8485. "content": {
  8486. "application/json": {
  8487. "schema": {
  8488. "type": "object",
  8489. "properties": {
  8490. "ok": {
  8491. "type": "boolean"
  8492. },
  8493. "id": {
  8494. "type": "string"
  8495. },
  8496. "skipped": {
  8497. "type": "boolean"
  8498. }
  8499. },
  8500. "required": ["ok", "id"]
  8501. }
  8502. }
  8503. }
  8504. },
  8505. "400": {
  8506. "description": "Bad request",
  8507. "content": {
  8508. "application/json": {
  8509. "schema": {
  8510. "$ref": "#/components/schemas/BadRequestError"
  8511. }
  8512. }
  8513. }
  8514. }
  8515. },
  8516. "requestBody": {
  8517. "content": {
  8518. "application/json": {
  8519. "schema": {
  8520. "type": "object",
  8521. "properties": {
  8522. "id": {
  8523. "type": "string"
  8524. },
  8525. "sessionID": {
  8526. "type": "string"
  8527. },
  8528. "timeCreated": {
  8529. "type": "number"
  8530. },
  8531. "data": {
  8532. "anyOf": [
  8533. {
  8534. "type": "object",
  8535. "properties": {
  8536. "role": {
  8537. "type": "string",
  8538. "const": "user"
  8539. },
  8540. "time": {
  8541. "type": "object",
  8542. "properties": {
  8543. "created": {
  8544. "type": "number"
  8545. }
  8546. },
  8547. "required": ["created"]
  8548. },
  8549. "agent": {
  8550. "type": "string"
  8551. },
  8552. "model": {
  8553. "type": "object",
  8554. "properties": {
  8555. "providerID": {
  8556. "type": "string"
  8557. },
  8558. "modelID": {
  8559. "type": "string"
  8560. }
  8561. },
  8562. "required": ["providerID", "modelID"]
  8563. },
  8564. "tools": {
  8565. "type": "object",
  8566. "propertyNames": {
  8567. "type": "string"
  8568. },
  8569. "additionalProperties": {
  8570. "type": "boolean"
  8571. }
  8572. }
  8573. },
  8574. "required": ["role", "time", "agent", "model"]
  8575. },
  8576. {
  8577. "type": "object",
  8578. "properties": {
  8579. "role": {
  8580. "type": "string",
  8581. "const": "assistant"
  8582. },
  8583. "time": {
  8584. "type": "object",
  8585. "properties": {
  8586. "created": {
  8587. "type": "number"
  8588. },
  8589. "completed": {
  8590. "type": "number"
  8591. }
  8592. },
  8593. "required": ["created"]
  8594. },
  8595. "parentID": {
  8596. "type": "string"
  8597. },
  8598. "modelID": {
  8599. "type": "string"
  8600. },
  8601. "providerID": {
  8602. "type": "string"
  8603. },
  8604. "mode": {
  8605. "type": "string"
  8606. },
  8607. "agent": {
  8608. "type": "string"
  8609. },
  8610. "path": {
  8611. "type": "object",
  8612. "properties": {
  8613. "cwd": {
  8614. "type": "string"
  8615. },
  8616. "root": {
  8617. "type": "string"
  8618. }
  8619. },
  8620. "required": ["cwd", "root"]
  8621. },
  8622. "summary": {
  8623. "type": "boolean"
  8624. },
  8625. "cost": {
  8626. "type": "number"
  8627. },
  8628. "tokens": {
  8629. "type": "object",
  8630. "properties": {
  8631. "total": {
  8632. "type": "number"
  8633. },
  8634. "input": {
  8635. "type": "number"
  8636. },
  8637. "output": {
  8638. "type": "number"
  8639. },
  8640. "reasoning": {
  8641. "type": "number"
  8642. },
  8643. "cache": {
  8644. "type": "object",
  8645. "properties": {
  8646. "read": {
  8647. "type": "number"
  8648. },
  8649. "write": {
  8650. "type": "number"
  8651. }
  8652. },
  8653. "required": ["read", "write"]
  8654. }
  8655. },
  8656. "required": ["input", "output", "reasoning", "cache"]
  8657. },
  8658. "structured": {},
  8659. "variant": {
  8660. "type": "string"
  8661. },
  8662. "finish": {
  8663. "type": "string"
  8664. }
  8665. },
  8666. "required": [
  8667. "role",
  8668. "time",
  8669. "parentID",
  8670. "modelID",
  8671. "providerID",
  8672. "mode",
  8673. "agent",
  8674. "path",
  8675. "cost",
  8676. "tokens"
  8677. ]
  8678. }
  8679. ]
  8680. }
  8681. },
  8682. "required": ["id", "sessionID", "timeCreated", "data"]
  8683. }
  8684. }
  8685. }
  8686. },
  8687. "x-codeSamples": [
  8688. {
  8689. "lang": "js",
  8690. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilocode.sessionImport.message({\n ...\n})"
  8691. }
  8692. ]
  8693. }
  8694. },
  8695. "/kilocode/session-import/part": {
  8696. "post": {
  8697. "operationId": "kilocode.sessionImport.part",
  8698. "parameters": [
  8699. {
  8700. "in": "query",
  8701. "name": "directory",
  8702. "schema": {
  8703. "type": "string"
  8704. }
  8705. },
  8706. {
  8707. "in": "query",
  8708. "name": "workspace",
  8709. "schema": {
  8710. "type": "string"
  8711. }
  8712. }
  8713. ],
  8714. "summary": "Insert part for session import",
  8715. "description": "Insert or update a part row used by legacy session import.",
  8716. "responses": {
  8717. "200": {
  8718. "description": "Part import result",
  8719. "content": {
  8720. "application/json": {
  8721. "schema": {
  8722. "type": "object",
  8723. "properties": {
  8724. "ok": {
  8725. "type": "boolean"
  8726. },
  8727. "id": {
  8728. "type": "string"
  8729. },
  8730. "skipped": {
  8731. "type": "boolean"
  8732. }
  8733. },
  8734. "required": ["ok", "id"]
  8735. }
  8736. }
  8737. }
  8738. },
  8739. "400": {
  8740. "description": "Bad request",
  8741. "content": {
  8742. "application/json": {
  8743. "schema": {
  8744. "$ref": "#/components/schemas/BadRequestError"
  8745. }
  8746. }
  8747. }
  8748. }
  8749. },
  8750. "requestBody": {
  8751. "content": {
  8752. "application/json": {
  8753. "schema": {
  8754. "type": "object",
  8755. "properties": {
  8756. "id": {
  8757. "type": "string"
  8758. },
  8759. "messageID": {
  8760. "type": "string"
  8761. },
  8762. "sessionID": {
  8763. "type": "string"
  8764. },
  8765. "timeCreated": {
  8766. "type": "number"
  8767. },
  8768. "data": {
  8769. "anyOf": [
  8770. {
  8771. "type": "object",
  8772. "properties": {
  8773. "type": {
  8774. "type": "string",
  8775. "const": "text"
  8776. },
  8777. "text": {
  8778. "type": "string"
  8779. },
  8780. "synthetic": {
  8781. "type": "boolean"
  8782. },
  8783. "ignored": {
  8784. "type": "boolean"
  8785. },
  8786. "time": {
  8787. "type": "object",
  8788. "properties": {
  8789. "start": {
  8790. "type": "number"
  8791. },
  8792. "end": {
  8793. "type": "number"
  8794. }
  8795. },
  8796. "required": ["start"]
  8797. },
  8798. "metadata": {
  8799. "type": "object",
  8800. "propertyNames": {
  8801. "type": "string"
  8802. },
  8803. "additionalProperties": {}
  8804. }
  8805. },
  8806. "required": ["type", "text"]
  8807. },
  8808. {
  8809. "type": "object",
  8810. "properties": {
  8811. "type": {
  8812. "type": "string",
  8813. "const": "reasoning"
  8814. },
  8815. "text": {
  8816. "type": "string"
  8817. },
  8818. "metadata": {
  8819. "type": "object",
  8820. "propertyNames": {
  8821. "type": "string"
  8822. },
  8823. "additionalProperties": {}
  8824. },
  8825. "time": {
  8826. "type": "object",
  8827. "properties": {
  8828. "start": {
  8829. "type": "number"
  8830. },
  8831. "end": {
  8832. "type": "number"
  8833. }
  8834. },
  8835. "required": ["start"]
  8836. }
  8837. },
  8838. "required": ["type", "text", "time"]
  8839. },
  8840. {
  8841. "type": "object",
  8842. "properties": {
  8843. "type": {
  8844. "type": "string",
  8845. "const": "tool"
  8846. },
  8847. "callID": {
  8848. "type": "string"
  8849. },
  8850. "tool": {
  8851. "type": "string"
  8852. },
  8853. "state": {
  8854. "anyOf": [
  8855. {
  8856. "type": "object",
  8857. "properties": {
  8858. "status": {
  8859. "type": "string",
  8860. "const": "pending"
  8861. },
  8862. "input": {
  8863. "type": "object",
  8864. "propertyNames": {
  8865. "type": "string"
  8866. },
  8867. "additionalProperties": {}
  8868. },
  8869. "raw": {
  8870. "type": "string"
  8871. }
  8872. },
  8873. "required": ["status", "input", "raw"]
  8874. },
  8875. {
  8876. "type": "object",
  8877. "properties": {
  8878. "status": {
  8879. "type": "string",
  8880. "const": "running"
  8881. },
  8882. "input": {
  8883. "type": "object",
  8884. "propertyNames": {
  8885. "type": "string"
  8886. },
  8887. "additionalProperties": {}
  8888. },
  8889. "title": {
  8890. "type": "string"
  8891. },
  8892. "metadata": {
  8893. "type": "object",
  8894. "propertyNames": {
  8895. "type": "string"
  8896. },
  8897. "additionalProperties": {}
  8898. },
  8899. "time": {
  8900. "type": "object",
  8901. "properties": {
  8902. "start": {
  8903. "type": "number"
  8904. }
  8905. },
  8906. "required": ["start"]
  8907. }
  8908. },
  8909. "required": ["status", "input", "time"]
  8910. },
  8911. {
  8912. "type": "object",
  8913. "properties": {
  8914. "status": {
  8915. "type": "string",
  8916. "const": "completed"
  8917. },
  8918. "input": {
  8919. "type": "object",
  8920. "propertyNames": {
  8921. "type": "string"
  8922. },
  8923. "additionalProperties": {}
  8924. },
  8925. "output": {
  8926. "type": "string"
  8927. },
  8928. "title": {
  8929. "type": "string"
  8930. },
  8931. "metadata": {
  8932. "type": "object",
  8933. "propertyNames": {
  8934. "type": "string"
  8935. },
  8936. "additionalProperties": {}
  8937. },
  8938. "time": {
  8939. "type": "object",
  8940. "properties": {
  8941. "start": {
  8942. "type": "number"
  8943. },
  8944. "end": {
  8945. "type": "number"
  8946. },
  8947. "compacted": {
  8948. "type": "number"
  8949. }
  8950. },
  8951. "required": ["start", "end"]
  8952. }
  8953. },
  8954. "required": ["status", "input", "output", "title", "metadata", "time"]
  8955. },
  8956. {
  8957. "type": "object",
  8958. "properties": {
  8959. "status": {
  8960. "type": "string",
  8961. "const": "error"
  8962. },
  8963. "input": {
  8964. "type": "object",
  8965. "propertyNames": {
  8966. "type": "string"
  8967. },
  8968. "additionalProperties": {}
  8969. },
  8970. "error": {
  8971. "type": "string"
  8972. },
  8973. "metadata": {
  8974. "type": "object",
  8975. "propertyNames": {
  8976. "type": "string"
  8977. },
  8978. "additionalProperties": {}
  8979. },
  8980. "time": {
  8981. "type": "object",
  8982. "properties": {
  8983. "start": {
  8984. "type": "number"
  8985. },
  8986. "end": {
  8987. "type": "number"
  8988. }
  8989. },
  8990. "required": ["start", "end"]
  8991. }
  8992. },
  8993. "required": ["status", "input", "error", "time"]
  8994. }
  8995. ]
  8996. },
  8997. "metadata": {
  8998. "type": "object",
  8999. "propertyNames": {
  9000. "type": "string"
  9001. },
  9002. "additionalProperties": {}
  9003. }
  9004. },
  9005. "required": ["type", "callID", "tool", "state"]
  9006. }
  9007. ]
  9008. }
  9009. },
  9010. "required": ["id", "messageID", "sessionID", "data"]
  9011. }
  9012. }
  9013. }
  9014. },
  9015. "x-codeSamples": [
  9016. {
  9017. "lang": "js",
  9018. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilocode.sessionImport.part({\n ...\n})"
  9019. }
  9020. ]
  9021. }
  9022. },
  9023. "/kilocode/skill/remove": {
  9024. "post": {
  9025. "operationId": "kilocode.removeSkill",
  9026. "parameters": [
  9027. {
  9028. "in": "query",
  9029. "name": "directory",
  9030. "schema": {
  9031. "type": "string"
  9032. }
  9033. },
  9034. {
  9035. "in": "query",
  9036. "name": "workspace",
  9037. "schema": {
  9038. "type": "string"
  9039. }
  9040. }
  9041. ],
  9042. "summary": "Remove a skill",
  9043. "description": "Remove a skill by deleting its directory from disk and clearing it from cache.",
  9044. "responses": {
  9045. "200": {
  9046. "description": "Skill removed",
  9047. "content": {
  9048. "application/json": {
  9049. "schema": {
  9050. "type": "boolean"
  9051. }
  9052. }
  9053. }
  9054. },
  9055. "400": {
  9056. "description": "Bad request",
  9057. "content": {
  9058. "application/json": {
  9059. "schema": {
  9060. "$ref": "#/components/schemas/BadRequestError"
  9061. }
  9062. }
  9063. }
  9064. }
  9065. },
  9066. "requestBody": {
  9067. "content": {
  9068. "application/json": {
  9069. "schema": {
  9070. "type": "object",
  9071. "properties": {
  9072. "location": {
  9073. "type": "string"
  9074. }
  9075. },
  9076. "required": ["location"]
  9077. }
  9078. }
  9079. }
  9080. },
  9081. "x-codeSamples": [
  9082. {
  9083. "lang": "js",
  9084. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilocode.removeSkill({\n ...\n})"
  9085. }
  9086. ]
  9087. }
  9088. },
  9089. "/kilocode/agent/remove": {
  9090. "post": {
  9091. "operationId": "kilocode.removeAgent",
  9092. "parameters": [
  9093. {
  9094. "in": "query",
  9095. "name": "directory",
  9096. "schema": {
  9097. "type": "string"
  9098. }
  9099. },
  9100. {
  9101. "in": "query",
  9102. "name": "workspace",
  9103. "schema": {
  9104. "type": "string"
  9105. }
  9106. }
  9107. ],
  9108. "summary": "Remove a custom agent",
  9109. "description": "Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.",
  9110. "responses": {
  9111. "200": {
  9112. "description": "Agent removed",
  9113. "content": {
  9114. "application/json": {
  9115. "schema": {
  9116. "type": "boolean"
  9117. }
  9118. }
  9119. }
  9120. },
  9121. "400": {
  9122. "description": "Bad request",
  9123. "content": {
  9124. "application/json": {
  9125. "schema": {
  9126. "$ref": "#/components/schemas/BadRequestError"
  9127. }
  9128. }
  9129. }
  9130. }
  9131. },
  9132. "requestBody": {
  9133. "content": {
  9134. "application/json": {
  9135. "schema": {
  9136. "type": "object",
  9137. "properties": {
  9138. "name": {
  9139. "type": "string"
  9140. }
  9141. },
  9142. "required": ["name"]
  9143. }
  9144. }
  9145. }
  9146. },
  9147. "x-codeSamples": [
  9148. {
  9149. "lang": "js",
  9150. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilocode.removeAgent({\n ...\n})"
  9151. }
  9152. ]
  9153. }
  9154. },
  9155. "/kilo/profile": {
  9156. "get": {
  9157. "operationId": "kilo.profile",
  9158. "parameters": [
  9159. {
  9160. "in": "query",
  9161. "name": "directory",
  9162. "schema": {
  9163. "type": "string"
  9164. }
  9165. },
  9166. {
  9167. "in": "query",
  9168. "name": "workspace",
  9169. "schema": {
  9170. "type": "string"
  9171. }
  9172. }
  9173. ],
  9174. "summary": "Get Kilo Gateway profile",
  9175. "description": "Fetch user profile and organizations from Kilo Gateway",
  9176. "responses": {
  9177. "200": {
  9178. "description": "Profile data",
  9179. "content": {
  9180. "application/json": {
  9181. "schema": {
  9182. "type": "object",
  9183. "properties": {
  9184. "profile": {
  9185. "type": "object",
  9186. "properties": {
  9187. "email": {
  9188. "type": "string"
  9189. },
  9190. "name": {
  9191. "type": "string"
  9192. },
  9193. "organizations": {
  9194. "type": "array",
  9195. "items": {
  9196. "type": "object",
  9197. "properties": {
  9198. "id": {
  9199. "type": "string"
  9200. },
  9201. "name": {
  9202. "type": "string"
  9203. },
  9204. "role": {
  9205. "type": "string"
  9206. }
  9207. },
  9208. "required": ["id", "name", "role"]
  9209. }
  9210. }
  9211. },
  9212. "required": ["email"]
  9213. },
  9214. "balance": {
  9215. "anyOf": [
  9216. {
  9217. "type": "object",
  9218. "properties": {
  9219. "balance": {
  9220. "type": "number"
  9221. }
  9222. },
  9223. "required": ["balance"]
  9224. },
  9225. {
  9226. "type": "null"
  9227. }
  9228. ]
  9229. },
  9230. "currentOrgId": {
  9231. "anyOf": [
  9232. {
  9233. "type": "string"
  9234. },
  9235. {
  9236. "type": "null"
  9237. }
  9238. ]
  9239. }
  9240. },
  9241. "required": ["profile", "balance", "currentOrgId"]
  9242. }
  9243. }
  9244. }
  9245. },
  9246. "400": {
  9247. "description": "Bad request",
  9248. "content": {
  9249. "application/json": {
  9250. "schema": {
  9251. "$ref": "#/components/schemas/BadRequestError"
  9252. }
  9253. }
  9254. }
  9255. }
  9256. },
  9257. "x-codeSamples": [
  9258. {
  9259. "lang": "js",
  9260. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.profile({\n ...\n})"
  9261. }
  9262. ]
  9263. }
  9264. },
  9265. "/kilo/organization": {
  9266. "post": {
  9267. "operationId": "kilo.organization.set",
  9268. "parameters": [
  9269. {
  9270. "in": "query",
  9271. "name": "directory",
  9272. "schema": {
  9273. "type": "string"
  9274. }
  9275. },
  9276. {
  9277. "in": "query",
  9278. "name": "workspace",
  9279. "schema": {
  9280. "type": "string"
  9281. }
  9282. }
  9283. ],
  9284. "summary": "Update Kilo Gateway organization",
  9285. "description": "Switch to a different Kilo Gateway organization",
  9286. "responses": {
  9287. "200": {
  9288. "description": "Organization updated successfully",
  9289. "content": {
  9290. "application/json": {
  9291. "schema": {
  9292. "type": "boolean"
  9293. }
  9294. }
  9295. }
  9296. },
  9297. "400": {
  9298. "description": "Bad request",
  9299. "content": {
  9300. "application/json": {
  9301. "schema": {
  9302. "$ref": "#/components/schemas/BadRequestError"
  9303. }
  9304. }
  9305. }
  9306. }
  9307. },
  9308. "requestBody": {
  9309. "content": {
  9310. "application/json": {
  9311. "schema": {
  9312. "type": "object",
  9313. "properties": {
  9314. "organizationId": {
  9315. "anyOf": [
  9316. {
  9317. "type": "string"
  9318. },
  9319. {
  9320. "type": "null"
  9321. }
  9322. ]
  9323. }
  9324. },
  9325. "required": ["organizationId"]
  9326. }
  9327. }
  9328. }
  9329. },
  9330. "x-codeSamples": [
  9331. {
  9332. "lang": "js",
  9333. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.organization.set({\n ...\n})"
  9334. }
  9335. ]
  9336. }
  9337. },
  9338. "/kilo/modes": {
  9339. "get": {
  9340. "operationId": "kilo.modes",
  9341. "parameters": [
  9342. {
  9343. "in": "query",
  9344. "name": "directory",
  9345. "schema": {
  9346. "type": "string"
  9347. }
  9348. },
  9349. {
  9350. "in": "query",
  9351. "name": "workspace",
  9352. "schema": {
  9353. "type": "string"
  9354. }
  9355. }
  9356. ],
  9357. "summary": "Get organization custom modes",
  9358. "description": "Fetch custom modes defined for the current organization",
  9359. "responses": {
  9360. "200": {
  9361. "description": "Organization modes list",
  9362. "content": {
  9363. "application/json": {
  9364. "schema": {
  9365. "type": "object",
  9366. "properties": {
  9367. "modes": {
  9368. "type": "array",
  9369. "items": {
  9370. "type": "object",
  9371. "properties": {
  9372. "id": {
  9373. "type": "string"
  9374. },
  9375. "organization_id": {
  9376. "type": "string"
  9377. },
  9378. "name": {
  9379. "type": "string"
  9380. },
  9381. "slug": {
  9382. "type": "string"
  9383. },
  9384. "created_by": {
  9385. "type": "string"
  9386. },
  9387. "created_at": {
  9388. "type": "string"
  9389. },
  9390. "updated_at": {
  9391. "type": "string"
  9392. },
  9393. "config": {
  9394. "type": "object",
  9395. "properties": {
  9396. "roleDefinition": {
  9397. "type": "string"
  9398. },
  9399. "whenToUse": {
  9400. "type": "string"
  9401. },
  9402. "description": {
  9403. "type": "string"
  9404. },
  9405. "customInstructions": {
  9406. "type": "string"
  9407. },
  9408. "groups": {
  9409. "type": "array",
  9410. "items": {
  9411. "anyOf": [
  9412. {
  9413. "type": "string"
  9414. },
  9415. {
  9416. "type": "array",
  9417. "prefixItems": [
  9418. {
  9419. "type": "string"
  9420. },
  9421. {
  9422. "type": "object",
  9423. "properties": {
  9424. "fileRegex": {
  9425. "type": "string"
  9426. },
  9427. "description": {
  9428. "type": "string"
  9429. }
  9430. }
  9431. }
  9432. ]
  9433. }
  9434. ]
  9435. }
  9436. }
  9437. }
  9438. }
  9439. },
  9440. "required": [
  9441. "id",
  9442. "organization_id",
  9443. "name",
  9444. "slug",
  9445. "created_by",
  9446. "created_at",
  9447. "updated_at",
  9448. "config"
  9449. ]
  9450. }
  9451. }
  9452. },
  9453. "required": ["modes"]
  9454. }
  9455. }
  9456. }
  9457. }
  9458. },
  9459. "x-codeSamples": [
  9460. {
  9461. "lang": "js",
  9462. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.modes({\n ...\n})"
  9463. }
  9464. ]
  9465. }
  9466. },
  9467. "/kilo/fim": {
  9468. "post": {
  9469. "operationId": "kilo.fim",
  9470. "parameters": [
  9471. {
  9472. "in": "query",
  9473. "name": "directory",
  9474. "schema": {
  9475. "type": "string"
  9476. }
  9477. },
  9478. {
  9479. "in": "query",
  9480. "name": "workspace",
  9481. "schema": {
  9482. "type": "string"
  9483. }
  9484. }
  9485. ],
  9486. "summary": "FIM completion",
  9487. "description": "Proxy a Fill-in-the-Middle completion request to the Kilo Gateway",
  9488. "responses": {
  9489. "200": {
  9490. "description": "Streaming FIM completion response",
  9491. "content": {
  9492. "text/event-stream": {
  9493. "schema": {
  9494. "type": "object",
  9495. "properties": {
  9496. "choices": {
  9497. "type": "array",
  9498. "items": {
  9499. "type": "object",
  9500. "properties": {
  9501. "delta": {
  9502. "type": "object",
  9503. "properties": {
  9504. "content": {
  9505. "type": "string"
  9506. }
  9507. }
  9508. }
  9509. }
  9510. }
  9511. },
  9512. "usage": {
  9513. "type": "object",
  9514. "properties": {
  9515. "prompt_tokens": {
  9516. "type": "number"
  9517. },
  9518. "completion_tokens": {
  9519. "type": "number"
  9520. }
  9521. }
  9522. },
  9523. "cost": {
  9524. "type": "number"
  9525. }
  9526. }
  9527. }
  9528. }
  9529. }
  9530. },
  9531. "400": {
  9532. "description": "Bad request",
  9533. "content": {
  9534. "application/json": {
  9535. "schema": {
  9536. "$ref": "#/components/schemas/BadRequestError"
  9537. }
  9538. }
  9539. }
  9540. }
  9541. },
  9542. "requestBody": {
  9543. "content": {
  9544. "application/json": {
  9545. "schema": {
  9546. "type": "object",
  9547. "properties": {
  9548. "prefix": {
  9549. "type": "string"
  9550. },
  9551. "suffix": {
  9552. "type": "string"
  9553. },
  9554. "model": {
  9555. "type": "string"
  9556. },
  9557. "maxTokens": {
  9558. "type": "number"
  9559. },
  9560. "temperature": {
  9561. "type": "number"
  9562. }
  9563. },
  9564. "required": ["prefix", "suffix"]
  9565. }
  9566. }
  9567. }
  9568. },
  9569. "x-codeSamples": [
  9570. {
  9571. "lang": "js",
  9572. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.fim({\n ...\n})"
  9573. }
  9574. ]
  9575. }
  9576. },
  9577. "/kilo/notifications": {
  9578. "get": {
  9579. "operationId": "kilo.notifications",
  9580. "parameters": [
  9581. {
  9582. "in": "query",
  9583. "name": "directory",
  9584. "schema": {
  9585. "type": "string"
  9586. }
  9587. },
  9588. {
  9589. "in": "query",
  9590. "name": "workspace",
  9591. "schema": {
  9592. "type": "string"
  9593. }
  9594. }
  9595. ],
  9596. "summary": "Get Kilo notifications",
  9597. "description": "Fetch notifications from Kilo Gateway for CLI display",
  9598. "responses": {
  9599. "200": {
  9600. "description": "Notifications list",
  9601. "content": {
  9602. "application/json": {
  9603. "schema": {
  9604. "type": "array",
  9605. "items": {
  9606. "type": "object",
  9607. "properties": {
  9608. "id": {
  9609. "type": "string"
  9610. },
  9611. "title": {
  9612. "type": "string"
  9613. },
  9614. "message": {
  9615. "type": "string"
  9616. },
  9617. "action": {
  9618. "type": "object",
  9619. "properties": {
  9620. "actionText": {
  9621. "type": "string"
  9622. },
  9623. "actionURL": {
  9624. "type": "string"
  9625. }
  9626. },
  9627. "required": ["actionText", "actionURL"]
  9628. },
  9629. "showIn": {
  9630. "type": "array",
  9631. "items": {
  9632. "type": "string"
  9633. }
  9634. },
  9635. "suggestModelId": {
  9636. "type": "string"
  9637. }
  9638. },
  9639. "required": ["id", "title", "message"]
  9640. }
  9641. }
  9642. }
  9643. }
  9644. },
  9645. "400": {
  9646. "description": "Bad request",
  9647. "content": {
  9648. "application/json": {
  9649. "schema": {
  9650. "$ref": "#/components/schemas/BadRequestError"
  9651. }
  9652. }
  9653. }
  9654. }
  9655. },
  9656. "x-codeSamples": [
  9657. {
  9658. "lang": "js",
  9659. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.notifications({\n ...\n})"
  9660. }
  9661. ]
  9662. }
  9663. },
  9664. "/kilo/cloud/session/{id}": {
  9665. "get": {
  9666. "operationId": "kilo.cloud.session.get",
  9667. "parameters": [
  9668. {
  9669. "in": "query",
  9670. "name": "directory",
  9671. "schema": {
  9672. "type": "string"
  9673. }
  9674. },
  9675. {
  9676. "in": "query",
  9677. "name": "workspace",
  9678. "schema": {
  9679. "type": "string"
  9680. }
  9681. },
  9682. {
  9683. "in": "path",
  9684. "name": "id",
  9685. "schema": {
  9686. "type": "string"
  9687. },
  9688. "required": true
  9689. }
  9690. ],
  9691. "summary": "Get cloud session",
  9692. "description": "Fetch full session data from the Kilo cloud for preview",
  9693. "responses": {
  9694. "200": {
  9695. "description": "Cloud session data",
  9696. "content": {
  9697. "application/json": {
  9698. "schema": {}
  9699. }
  9700. }
  9701. },
  9702. "404": {
  9703. "description": "Not found",
  9704. "content": {
  9705. "application/json": {
  9706. "schema": {
  9707. "$ref": "#/components/schemas/NotFoundError"
  9708. }
  9709. }
  9710. }
  9711. }
  9712. },
  9713. "x-codeSamples": [
  9714. {
  9715. "lang": "js",
  9716. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.cloud.session.get({\n ...\n})"
  9717. }
  9718. ]
  9719. }
  9720. },
  9721. "/kilo/cloud/session/import": {
  9722. "post": {
  9723. "operationId": "kilo.cloud.session.import",
  9724. "parameters": [
  9725. {
  9726. "in": "query",
  9727. "name": "directory",
  9728. "schema": {
  9729. "type": "string"
  9730. }
  9731. },
  9732. {
  9733. "in": "query",
  9734. "name": "workspace",
  9735. "schema": {
  9736. "type": "string"
  9737. }
  9738. }
  9739. ],
  9740. "summary": "Import session from cloud",
  9741. "description": "Download a cloud-synced session and write it to local storage with fresh IDs.",
  9742. "responses": {
  9743. "200": {
  9744. "description": "Imported session info",
  9745. "content": {
  9746. "application/json": {
  9747. "schema": {}
  9748. }
  9749. }
  9750. },
  9751. "400": {
  9752. "description": "Bad request",
  9753. "content": {
  9754. "application/json": {
  9755. "schema": {
  9756. "$ref": "#/components/schemas/BadRequestError"
  9757. }
  9758. }
  9759. }
  9760. },
  9761. "404": {
  9762. "description": "Not found",
  9763. "content": {
  9764. "application/json": {
  9765. "schema": {
  9766. "$ref": "#/components/schemas/NotFoundError"
  9767. }
  9768. }
  9769. }
  9770. }
  9771. },
  9772. "requestBody": {
  9773. "content": {
  9774. "application/json": {
  9775. "schema": {
  9776. "type": "object",
  9777. "properties": {
  9778. "sessionId": {
  9779. "type": "string"
  9780. }
  9781. },
  9782. "required": ["sessionId"]
  9783. }
  9784. }
  9785. }
  9786. },
  9787. "x-codeSamples": [
  9788. {
  9789. "lang": "js",
  9790. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.cloud.session.import({\n ...\n})"
  9791. }
  9792. ]
  9793. }
  9794. },
  9795. "/kilo/claw/status": {
  9796. "get": {
  9797. "operationId": "kilo.claw.status",
  9798. "parameters": [
  9799. {
  9800. "in": "query",
  9801. "name": "directory",
  9802. "schema": {
  9803. "type": "string"
  9804. }
  9805. },
  9806. {
  9807. "in": "query",
  9808. "name": "workspace",
  9809. "schema": {
  9810. "type": "string"
  9811. }
  9812. }
  9813. ],
  9814. "summary": "Get KiloClaw instance status",
  9815. "description": "Fetch the user's KiloClaw instance status via the KiloClaw worker",
  9816. "responses": {
  9817. "200": {
  9818. "description": "Instance status",
  9819. "content": {
  9820. "application/json": {
  9821. "schema": {
  9822. "type": "object",
  9823. "properties": {
  9824. "status": {
  9825. "anyOf": [
  9826. {
  9827. "type": "string",
  9828. "enum": ["provisioned", "starting", "restarting", "running", "stopped", "destroying"]
  9829. },
  9830. {
  9831. "type": "null"
  9832. }
  9833. ]
  9834. },
  9835. "sandboxId": {
  9836. "type": "string"
  9837. },
  9838. "flyRegion": {
  9839. "type": "string"
  9840. },
  9841. "machineSize": {
  9842. "type": "object",
  9843. "properties": {
  9844. "cpus": {
  9845. "type": "number"
  9846. },
  9847. "memory_mb": {
  9848. "type": "number"
  9849. }
  9850. },
  9851. "required": ["cpus", "memory_mb"]
  9852. },
  9853. "openclawVersion": {
  9854. "anyOf": [
  9855. {
  9856. "type": "string"
  9857. },
  9858. {
  9859. "type": "null"
  9860. }
  9861. ]
  9862. },
  9863. "lastStartedAt": {
  9864. "anyOf": [
  9865. {
  9866. "type": "string"
  9867. },
  9868. {
  9869. "type": "null"
  9870. }
  9871. ]
  9872. },
  9873. "lastStoppedAt": {
  9874. "anyOf": [
  9875. {
  9876. "type": "string"
  9877. },
  9878. {
  9879. "type": "null"
  9880. }
  9881. ]
  9882. },
  9883. "channelCount": {
  9884. "type": "number"
  9885. },
  9886. "secretCount": {
  9887. "type": "number"
  9888. },
  9889. "userId": {
  9890. "type": "string"
  9891. }
  9892. },
  9893. "required": ["status"]
  9894. }
  9895. }
  9896. }
  9897. }
  9898. },
  9899. "x-codeSamples": [
  9900. {
  9901. "lang": "js",
  9902. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.claw.status({\n ...\n})"
  9903. }
  9904. ]
  9905. }
  9906. },
  9907. "/kilo/claw/chat-credentials": {
  9908. "get": {
  9909. "operationId": "kilo.claw.chatCredentials",
  9910. "parameters": [
  9911. {
  9912. "in": "query",
  9913. "name": "directory",
  9914. "schema": {
  9915. "type": "string"
  9916. }
  9917. },
  9918. {
  9919. "in": "query",
  9920. "name": "workspace",
  9921. "schema": {
  9922. "type": "string"
  9923. }
  9924. }
  9925. ],
  9926. "summary": "Get KiloClaw chat credentials",
  9927. "description": "Fetch Stream Chat credentials for the user's KiloClaw instance",
  9928. "responses": {
  9929. "200": {
  9930. "description": "Stream Chat credentials or null",
  9931. "content": {
  9932. "application/json": {
  9933. "schema": {
  9934. "anyOf": [
  9935. {
  9936. "type": "object",
  9937. "properties": {
  9938. "apiKey": {
  9939. "type": "string"
  9940. },
  9941. "userId": {
  9942. "type": "string"
  9943. },
  9944. "userToken": {
  9945. "type": "string"
  9946. },
  9947. "channelId": {
  9948. "type": "string"
  9949. }
  9950. },
  9951. "required": ["apiKey", "userId", "userToken", "channelId"]
  9952. },
  9953. {
  9954. "type": "null"
  9955. }
  9956. ]
  9957. }
  9958. }
  9959. }
  9960. }
  9961. },
  9962. "x-codeSamples": [
  9963. {
  9964. "lang": "js",
  9965. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.claw.chatCredentials({\n ...\n})"
  9966. }
  9967. ]
  9968. }
  9969. },
  9970. "/kilo/cloud-sessions": {
  9971. "get": {
  9972. "operationId": "kilo.cloudSessions",
  9973. "parameters": [
  9974. {
  9975. "in": "query",
  9976. "name": "directory",
  9977. "schema": {
  9978. "type": "string"
  9979. }
  9980. },
  9981. {
  9982. "in": "query",
  9983. "name": "workspace",
  9984. "schema": {
  9985. "type": "string"
  9986. }
  9987. },
  9988. {
  9989. "in": "query",
  9990. "name": "cursor",
  9991. "schema": {
  9992. "type": "string"
  9993. }
  9994. },
  9995. {
  9996. "in": "query",
  9997. "name": "limit",
  9998. "schema": {
  9999. "type": "number"
  10000. }
  10001. },
  10002. {
  10003. "in": "query",
  10004. "name": "gitUrl",
  10005. "schema": {
  10006. "type": "string"
  10007. }
  10008. }
  10009. ],
  10010. "summary": "Get cloud sessions",
  10011. "description": "Fetch cloud CLI sessions from Kilo API",
  10012. "responses": {
  10013. "200": {
  10014. "description": "Cloud sessions list",
  10015. "content": {
  10016. "application/json": {
  10017. "schema": {
  10018. "type": "object",
  10019. "properties": {
  10020. "cliSessions": {
  10021. "type": "array",
  10022. "items": {
  10023. "type": "object",
  10024. "properties": {
  10025. "session_id": {
  10026. "type": "string"
  10027. },
  10028. "title": {
  10029. "anyOf": [
  10030. {
  10031. "type": "string"
  10032. },
  10033. {
  10034. "type": "null"
  10035. }
  10036. ]
  10037. },
  10038. "created_at": {
  10039. "type": "string"
  10040. },
  10041. "updated_at": {
  10042. "type": "string"
  10043. },
  10044. "version": {
  10045. "type": "number"
  10046. }
  10047. },
  10048. "required": ["session_id", "title", "created_at", "updated_at", "version"]
  10049. }
  10050. },
  10051. "nextCursor": {
  10052. "anyOf": [
  10053. {
  10054. "type": "string"
  10055. },
  10056. {
  10057. "type": "null"
  10058. }
  10059. ]
  10060. }
  10061. },
  10062. "required": ["cliSessions", "nextCursor"]
  10063. }
  10064. }
  10065. }
  10066. },
  10067. "400": {
  10068. "description": "Bad request",
  10069. "content": {
  10070. "application/json": {
  10071. "schema": {
  10072. "$ref": "#/components/schemas/BadRequestError"
  10073. }
  10074. }
  10075. }
  10076. }
  10077. },
  10078. "x-codeSamples": [
  10079. {
  10080. "lang": "js",
  10081. "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.kilo.cloudSessions({\n ...\n})"
  10082. }
  10083. ]
  10084. }
  10085. }
  10086. },
  10087. "components": {
  10088. "schemas": {
  10089. "Event.installation.updated": {
  10090. "type": "object",
  10091. "properties": {
  10092. "type": {
  10093. "type": "string",
  10094. "const": "installation.updated"
  10095. },
  10096. "properties": {
  10097. "type": "object",
  10098. "properties": {
  10099. "version": {
  10100. "type": "string"
  10101. }
  10102. },
  10103. "required": ["version"]
  10104. }
  10105. },
  10106. "required": ["type", "properties"]
  10107. },
  10108. "Event.installation.update-available": {
  10109. "type": "object",
  10110. "properties": {
  10111. "type": {
  10112. "type": "string",
  10113. "const": "installation.update-available"
  10114. },
  10115. "properties": {
  10116. "type": "object",
  10117. "properties": {
  10118. "version": {
  10119. "type": "string"
  10120. }
  10121. },
  10122. "required": ["version"]
  10123. }
  10124. },
  10125. "required": ["type", "properties"]
  10126. },
  10127. "Project": {
  10128. "type": "object",
  10129. "properties": {
  10130. "id": {
  10131. "type": "string"
  10132. },
  10133. "worktree": {
  10134. "type": "string"
  10135. },
  10136. "vcs": {
  10137. "type": "string",
  10138. "const": "git"
  10139. },
  10140. "name": {
  10141. "type": "string"
  10142. },
  10143. "icon": {
  10144. "type": "object",
  10145. "properties": {
  10146. "url": {
  10147. "type": "string"
  10148. },
  10149. "override": {
  10150. "type": "string"
  10151. },
  10152. "color": {
  10153. "type": "string"
  10154. }
  10155. }
  10156. },
  10157. "commands": {
  10158. "type": "object",
  10159. "properties": {
  10160. "start": {
  10161. "description": "Startup script to run when creating a new workspace (worktree)",
  10162. "type": "string"
  10163. }
  10164. }
  10165. },
  10166. "time": {
  10167. "type": "object",
  10168. "properties": {
  10169. "created": {
  10170. "type": "number"
  10171. },
  10172. "updated": {
  10173. "type": "number"
  10174. },
  10175. "initialized": {
  10176. "type": "number"
  10177. }
  10178. },
  10179. "required": ["created", "updated"]
  10180. },
  10181. "sandboxes": {
  10182. "type": "array",
  10183. "items": {
  10184. "type": "string"
  10185. }
  10186. }
  10187. },
  10188. "required": ["id", "worktree", "time", "sandboxes"]
  10189. },
  10190. "Event.project.updated": {
  10191. "type": "object",
  10192. "properties": {
  10193. "type": {
  10194. "type": "string",
  10195. "const": "project.updated"
  10196. },
  10197. "properties": {
  10198. "$ref": "#/components/schemas/Project"
  10199. }
  10200. },
  10201. "required": ["type", "properties"]
  10202. },
  10203. "Event.server.instance.disposed": {
  10204. "type": "object",
  10205. "properties": {
  10206. "type": {
  10207. "type": "string",
  10208. "const": "server.instance.disposed"
  10209. },
  10210. "properties": {
  10211. "type": "object",
  10212. "properties": {
  10213. "directory": {
  10214. "type": "string"
  10215. }
  10216. },
  10217. "required": ["directory"]
  10218. }
  10219. },
  10220. "required": ["type", "properties"]
  10221. },
  10222. "Event.server.connected": {
  10223. "type": "object",
  10224. "properties": {
  10225. "type": {
  10226. "type": "string",
  10227. "const": "server.connected"
  10228. },
  10229. "properties": {
  10230. "type": "object",
  10231. "properties": {}
  10232. }
  10233. },
  10234. "required": ["type", "properties"]
  10235. },
  10236. "Event.global.disposed": {
  10237. "type": "object",
  10238. "properties": {
  10239. "type": {
  10240. "type": "string",
  10241. "const": "global.disposed"
  10242. },
  10243. "properties": {
  10244. "type": "object",
  10245. "properties": {}
  10246. }
  10247. },
  10248. "required": ["type", "properties"]
  10249. },
  10250. "Event.global.config.updated": {
  10251. "type": "object",
  10252. "properties": {
  10253. "type": {
  10254. "type": "string",
  10255. "const": "global.config.updated"
  10256. },
  10257. "properties": {
  10258. "type": "object",
  10259. "properties": {}
  10260. }
  10261. },
  10262. "required": ["type", "properties"]
  10263. },
  10264. "Event.lsp.client.diagnostics": {
  10265. "type": "object",
  10266. "properties": {
  10267. "type": {
  10268. "type": "string",
  10269. "const": "lsp.client.diagnostics"
  10270. },
  10271. "properties": {
  10272. "type": "object",
  10273. "properties": {
  10274. "serverID": {
  10275. "type": "string"
  10276. },
  10277. "path": {
  10278. "type": "string"
  10279. }
  10280. },
  10281. "required": ["serverID", "path"]
  10282. }
  10283. },
  10284. "required": ["type", "properties"]
  10285. },
  10286. "Event.lsp.updated": {
  10287. "type": "object",
  10288. "properties": {
  10289. "type": {
  10290. "type": "string",
  10291. "const": "lsp.updated"
  10292. },
  10293. "properties": {
  10294. "type": "object",
  10295. "properties": {}
  10296. }
  10297. },
  10298. "required": ["type", "properties"]
  10299. },
  10300. "Event.tui.prompt.append": {
  10301. "type": "object",
  10302. "properties": {
  10303. "type": {
  10304. "type": "string",
  10305. "const": "tui.prompt.append"
  10306. },
  10307. "properties": {
  10308. "type": "object",
  10309. "properties": {
  10310. "text": {
  10311. "type": "string"
  10312. }
  10313. },
  10314. "required": ["text"]
  10315. }
  10316. },
  10317. "required": ["type", "properties"]
  10318. },
  10319. "Event.tui.command.execute": {
  10320. "type": "object",
  10321. "properties": {
  10322. "type": {
  10323. "type": "string",
  10324. "const": "tui.command.execute"
  10325. },
  10326. "properties": {
  10327. "type": "object",
  10328. "properties": {
  10329. "command": {
  10330. "anyOf": [
  10331. {
  10332. "type": "string",
  10333. "enum": [
  10334. "session.list",
  10335. "session.new",
  10336. "session.share",
  10337. "session.interrupt",
  10338. "session.compact",
  10339. "session.page.up",
  10340. "session.page.down",
  10341. "session.line.up",
  10342. "session.line.down",
  10343. "session.half.page.up",
  10344. "session.half.page.down",
  10345. "session.first",
  10346. "session.last",
  10347. "prompt.clear",
  10348. "prompt.submit",
  10349. "agent.cycle"
  10350. ]
  10351. },
  10352. {
  10353. "type": "string"
  10354. }
  10355. ]
  10356. }
  10357. },
  10358. "required": ["command"]
  10359. }
  10360. },
  10361. "required": ["type", "properties"]
  10362. },
  10363. "Event.tui.toast.show": {
  10364. "type": "object",
  10365. "properties": {
  10366. "type": {
  10367. "type": "string",
  10368. "const": "tui.toast.show"
  10369. },
  10370. "properties": {
  10371. "type": "object",
  10372. "properties": {
  10373. "title": {
  10374. "type": "string"
  10375. },
  10376. "message": {
  10377. "type": "string"
  10378. },
  10379. "variant": {
  10380. "type": "string",
  10381. "enum": ["info", "success", "warning", "error"]
  10382. },
  10383. "duration": {
  10384. "description": "Duration in milliseconds",
  10385. "default": 5000,
  10386. "type": "number"
  10387. }
  10388. },
  10389. "required": ["message", "variant"]
  10390. }
  10391. },
  10392. "required": ["type", "properties"]
  10393. },
  10394. "Event.tui.session.select": {
  10395. "type": "object",
  10396. "properties": {
  10397. "type": {
  10398. "type": "string",
  10399. "const": "tui.session.select"
  10400. },
  10401. "properties": {
  10402. "type": "object",
  10403. "properties": {
  10404. "sessionID": {
  10405. "description": "Session ID to navigate to",
  10406. "type": "string",
  10407. "pattern": "^ses.*"
  10408. }
  10409. },
  10410. "required": ["sessionID"]
  10411. }
  10412. },
  10413. "required": ["type", "properties"]
  10414. },
  10415. "Event.mcp.tools.changed": {
  10416. "type": "object",
  10417. "properties": {
  10418. "type": {
  10419. "type": "string",
  10420. "const": "mcp.tools.changed"
  10421. },
  10422. "properties": {
  10423. "type": "object",
  10424. "properties": {
  10425. "server": {
  10426. "type": "string"
  10427. }
  10428. },
  10429. "required": ["server"]
  10430. }
  10431. },
  10432. "required": ["type", "properties"]
  10433. },
  10434. "Event.mcp.browser.open.failed": {
  10435. "type": "object",
  10436. "properties": {
  10437. "type": {
  10438. "type": "string",
  10439. "const": "mcp.browser.open.failed"
  10440. },
  10441. "properties": {
  10442. "type": "object",
  10443. "properties": {
  10444. "mcpName": {
  10445. "type": "string"
  10446. },
  10447. "url": {
  10448. "type": "string"
  10449. }
  10450. },
  10451. "required": ["mcpName", "url"]
  10452. }
  10453. },
  10454. "required": ["type", "properties"]
  10455. },
  10456. "SessionNetworkWait": {
  10457. "type": "object",
  10458. "properties": {
  10459. "id": {
  10460. "type": "string",
  10461. "pattern": "^que.*"
  10462. },
  10463. "sessionID": {
  10464. "type": "string",
  10465. "pattern": "^ses.*"
  10466. },
  10467. "message": {
  10468. "type": "string"
  10469. },
  10470. "restored": {
  10471. "type": "boolean"
  10472. },
  10473. "time": {
  10474. "type": "object",
  10475. "properties": {
  10476. "created": {
  10477. "type": "number"
  10478. }
  10479. },
  10480. "required": ["created"]
  10481. }
  10482. },
  10483. "required": ["id", "sessionID", "message", "restored", "time"]
  10484. },
  10485. "Event.session.network.asked": {
  10486. "type": "object",
  10487. "properties": {
  10488. "type": {
  10489. "type": "string",
  10490. "const": "session.network.asked"
  10491. },
  10492. "properties": {
  10493. "$ref": "#/components/schemas/SessionNetworkWait"
  10494. }
  10495. },
  10496. "required": ["type", "properties"]
  10497. },
  10498. "Event.session.network.replied": {
  10499. "type": "object",
  10500. "properties": {
  10501. "type": {
  10502. "type": "string",
  10503. "const": "session.network.replied"
  10504. },
  10505. "properties": {
  10506. "type": "object",
  10507. "properties": {
  10508. "sessionID": {
  10509. "type": "string"
  10510. },
  10511. "requestID": {
  10512. "type": "string"
  10513. }
  10514. },
  10515. "required": ["sessionID", "requestID"]
  10516. }
  10517. },
  10518. "required": ["type", "properties"]
  10519. },
  10520. "Event.session.network.rejected": {
  10521. "type": "object",
  10522. "properties": {
  10523. "type": {
  10524. "type": "string",
  10525. "const": "session.network.rejected"
  10526. },
  10527. "properties": {
  10528. "type": "object",
  10529. "properties": {
  10530. "sessionID": {
  10531. "type": "string"
  10532. },
  10533. "requestID": {
  10534. "type": "string"
  10535. }
  10536. },
  10537. "required": ["sessionID", "requestID"]
  10538. }
  10539. },
  10540. "required": ["type", "properties"]
  10541. },
  10542. "Event.session.network.restored": {
  10543. "type": "object",
  10544. "properties": {
  10545. "type": {
  10546. "type": "string",
  10547. "const": "session.network.restored"
  10548. },
  10549. "properties": {
  10550. "type": "object",
  10551. "properties": {
  10552. "sessionID": {
  10553. "type": "string"
  10554. },
  10555. "requestID": {
  10556. "type": "string"
  10557. }
  10558. },
  10559. "required": ["sessionID", "requestID"]
  10560. }
  10561. },
  10562. "required": ["type", "properties"]
  10563. },
  10564. "Event.message.part.delta": {
  10565. "type": "object",
  10566. "properties": {
  10567. "type": {
  10568. "type": "string",
  10569. "const": "message.part.delta"
  10570. },
  10571. "properties": {
  10572. "type": "object",
  10573. "properties": {
  10574. "sessionID": {
  10575. "type": "string",
  10576. "pattern": "^ses.*"
  10577. },
  10578. "messageID": {
  10579. "type": "string",
  10580. "pattern": "^msg.*"
  10581. },
  10582. "partID": {
  10583. "type": "string",
  10584. "pattern": "^prt.*"
  10585. },
  10586. "field": {
  10587. "type": "string"
  10588. },
  10589. "delta": {
  10590. "type": "string"
  10591. }
  10592. },
  10593. "required": ["sessionID", "messageID", "partID", "field", "delta"]
  10594. }
  10595. },
  10596. "required": ["type", "properties"]
  10597. },
  10598. "PermissionRequest": {
  10599. "type": "object",
  10600. "properties": {
  10601. "id": {
  10602. "type": "string",
  10603. "pattern": "^per.*"
  10604. },
  10605. "sessionID": {
  10606. "type": "string",
  10607. "pattern": "^ses.*"
  10608. },
  10609. "permission": {
  10610. "type": "string"
  10611. },
  10612. "patterns": {
  10613. "type": "array",
  10614. "items": {
  10615. "type": "string"
  10616. }
  10617. },
  10618. "metadata": {
  10619. "type": "object",
  10620. "propertyNames": {
  10621. "type": "string"
  10622. },
  10623. "additionalProperties": {}
  10624. },
  10625. "always": {
  10626. "type": "array",
  10627. "items": {
  10628. "type": "string"
  10629. }
  10630. },
  10631. "tool": {
  10632. "type": "object",
  10633. "properties": {
  10634. "messageID": {
  10635. "type": "string",
  10636. "pattern": "^msg.*"
  10637. },
  10638. "callID": {
  10639. "type": "string"
  10640. }
  10641. },
  10642. "required": ["messageID", "callID"]
  10643. }
  10644. },
  10645. "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"]
  10646. },
  10647. "Event.permission.asked": {
  10648. "type": "object",
  10649. "properties": {
  10650. "type": {
  10651. "type": "string",
  10652. "const": "permission.asked"
  10653. },
  10654. "properties": {
  10655. "$ref": "#/components/schemas/PermissionRequest"
  10656. }
  10657. },
  10658. "required": ["type", "properties"]
  10659. },
  10660. "Event.permission.replied": {
  10661. "type": "object",
  10662. "properties": {
  10663. "type": {
  10664. "type": "string",
  10665. "const": "permission.replied"
  10666. },
  10667. "properties": {
  10668. "type": "object",
  10669. "properties": {
  10670. "sessionID": {
  10671. "type": "string",
  10672. "pattern": "^ses.*"
  10673. },
  10674. "requestID": {
  10675. "type": "string",
  10676. "pattern": "^per.*"
  10677. },
  10678. "reply": {
  10679. "type": "string",
  10680. "enum": ["once", "always", "reject"]
  10681. }
  10682. },
  10683. "required": ["sessionID", "requestID", "reply"]
  10684. }
  10685. },
  10686. "required": ["type", "properties"]
  10687. },
  10688. "QuestionOption": {
  10689. "type": "object",
  10690. "properties": {
  10691. "label": {
  10692. "description": "Display text (1-5 words, concise)",
  10693. "type": "string"
  10694. },
  10695. "description": {
  10696. "description": "Explanation of choice",
  10697. "type": "string"
  10698. }
  10699. },
  10700. "required": ["label", "description"]
  10701. },
  10702. "QuestionInfo": {
  10703. "type": "object",
  10704. "properties": {
  10705. "question": {
  10706. "description": "Complete question",
  10707. "type": "string"
  10708. },
  10709. "header": {
  10710. "description": "Very short label (max 30 chars)",
  10711. "type": "string"
  10712. },
  10713. "options": {
  10714. "description": "Available choices",
  10715. "type": "array",
  10716. "items": {
  10717. "$ref": "#/components/schemas/QuestionOption"
  10718. }
  10719. },
  10720. "multiple": {
  10721. "description": "Allow selecting multiple choices",
  10722. "type": "boolean"
  10723. },
  10724. "custom": {
  10725. "description": "Allow typing a custom answer (default: true)",
  10726. "type": "boolean"
  10727. }
  10728. },
  10729. "required": ["question", "header", "options"]
  10730. },
  10731. "QuestionRequest": {
  10732. "type": "object",
  10733. "properties": {
  10734. "id": {
  10735. "type": "string",
  10736. "pattern": "^que.*"
  10737. },
  10738. "sessionID": {
  10739. "type": "string",
  10740. "pattern": "^ses.*"
  10741. },
  10742. "questions": {
  10743. "description": "Questions to ask",
  10744. "type": "array",
  10745. "items": {
  10746. "$ref": "#/components/schemas/QuestionInfo"
  10747. }
  10748. },
  10749. "tool": {
  10750. "type": "object",
  10751. "properties": {
  10752. "messageID": {
  10753. "type": "string",
  10754. "pattern": "^msg.*"
  10755. },
  10756. "callID": {
  10757. "type": "string"
  10758. }
  10759. },
  10760. "required": ["messageID", "callID"]
  10761. }
  10762. },
  10763. "required": ["id", "sessionID", "questions"]
  10764. },
  10765. "Event.question.asked": {
  10766. "type": "object",
  10767. "properties": {
  10768. "type": {
  10769. "type": "string",
  10770. "const": "question.asked"
  10771. },
  10772. "properties": {
  10773. "$ref": "#/components/schemas/QuestionRequest"
  10774. }
  10775. },
  10776. "required": ["type", "properties"]
  10777. },
  10778. "QuestionAnswer": {
  10779. "type": "array",
  10780. "items": {
  10781. "type": "string"
  10782. }
  10783. },
  10784. "Event.question.replied": {
  10785. "type": "object",
  10786. "properties": {
  10787. "type": {
  10788. "type": "string",
  10789. "const": "question.replied"
  10790. },
  10791. "properties": {
  10792. "type": "object",
  10793. "properties": {
  10794. "sessionID": {
  10795. "type": "string",
  10796. "pattern": "^ses.*"
  10797. },
  10798. "requestID": {
  10799. "type": "string",
  10800. "pattern": "^que.*"
  10801. },
  10802. "answers": {
  10803. "type": "array",
  10804. "items": {
  10805. "$ref": "#/components/schemas/QuestionAnswer"
  10806. }
  10807. }
  10808. },
  10809. "required": ["sessionID", "requestID", "answers"]
  10810. }
  10811. },
  10812. "required": ["type", "properties"]
  10813. },
  10814. "Event.question.rejected": {
  10815. "type": "object",
  10816. "properties": {
  10817. "type": {
  10818. "type": "string",
  10819. "const": "question.rejected"
  10820. },
  10821. "properties": {
  10822. "type": "object",
  10823. "properties": {
  10824. "sessionID": {
  10825. "type": "string",
  10826. "pattern": "^ses.*"
  10827. },
  10828. "requestID": {
  10829. "type": "string",
  10830. "pattern": "^que.*"
  10831. }
  10832. },
  10833. "required": ["sessionID", "requestID"]
  10834. }
  10835. },
  10836. "required": ["type", "properties"]
  10837. },
  10838. "Todo": {
  10839. "type": "object",
  10840. "properties": {
  10841. "content": {
  10842. "description": "Brief description of the task",
  10843. "type": "string"
  10844. },
  10845. "status": {
  10846. "description": "Current status of the task: pending, in_progress, completed, cancelled",
  10847. "type": "string"
  10848. },
  10849. "priority": {
  10850. "description": "Priority level of the task: high, medium, low",
  10851. "type": "string"
  10852. }
  10853. },
  10854. "required": ["content", "status", "priority"]
  10855. },
  10856. "Event.todo.updated": {
  10857. "type": "object",
  10858. "properties": {
  10859. "type": {
  10860. "type": "string",
  10861. "const": "todo.updated"
  10862. },
  10863. "properties": {
  10864. "type": "object",
  10865. "properties": {
  10866. "sessionID": {
  10867. "type": "string",
  10868. "pattern": "^ses.*"
  10869. },
  10870. "todos": {
  10871. "type": "array",
  10872. "items": {
  10873. "$ref": "#/components/schemas/Todo"
  10874. }
  10875. }
  10876. },
  10877. "required": ["sessionID", "todos"]
  10878. }
  10879. },
  10880. "required": ["type", "properties"]
  10881. },
  10882. "SessionStatus": {
  10883. "anyOf": [
  10884. {
  10885. "type": "object",
  10886. "properties": {
  10887. "type": {
  10888. "type": "string",
  10889. "const": "idle"
  10890. }
  10891. },
  10892. "required": ["type"]
  10893. },
  10894. {
  10895. "type": "object",
  10896. "properties": {
  10897. "type": {
  10898. "type": "string",
  10899. "const": "retry"
  10900. },
  10901. "attempt": {
  10902. "type": "number"
  10903. },
  10904. "message": {
  10905. "type": "string"
  10906. },
  10907. "next": {
  10908. "type": "number"
  10909. }
  10910. },
  10911. "required": ["type", "attempt", "message", "next"]
  10912. },
  10913. {
  10914. "type": "object",
  10915. "properties": {
  10916. "type": {
  10917. "type": "string",
  10918. "const": "busy"
  10919. }
  10920. },
  10921. "required": ["type"]
  10922. },
  10923. {
  10924. "type": "object",
  10925. "properties": {
  10926. "type": {
  10927. "type": "string",
  10928. "const": "offline"
  10929. },
  10930. "requestID": {
  10931. "type": "string"
  10932. },
  10933. "message": {
  10934. "type": "string"
  10935. }
  10936. },
  10937. "required": ["type", "requestID", "message"]
  10938. }
  10939. ]
  10940. },
  10941. "Event.session.status": {
  10942. "type": "object",
  10943. "properties": {
  10944. "type": {
  10945. "type": "string",
  10946. "const": "session.status"
  10947. },
  10948. "properties": {
  10949. "type": "object",
  10950. "properties": {
  10951. "sessionID": {
  10952. "type": "string",
  10953. "pattern": "^ses.*"
  10954. },
  10955. "status": {
  10956. "$ref": "#/components/schemas/SessionStatus"
  10957. }
  10958. },
  10959. "required": ["sessionID", "status"]
  10960. }
  10961. },
  10962. "required": ["type", "properties"]
  10963. },
  10964. "Event.session.idle": {
  10965. "type": "object",
  10966. "properties": {
  10967. "type": {
  10968. "type": "string",
  10969. "const": "session.idle"
  10970. },
  10971. "properties": {
  10972. "type": "object",
  10973. "properties": {
  10974. "sessionID": {
  10975. "type": "string",
  10976. "pattern": "^ses.*"
  10977. }
  10978. },
  10979. "required": ["sessionID"]
  10980. }
  10981. },
  10982. "required": ["type", "properties"]
  10983. },
  10984. "Event.session.compacted": {
  10985. "type": "object",
  10986. "properties": {
  10987. "type": {
  10988. "type": "string",
  10989. "const": "session.compacted"
  10990. },
  10991. "properties": {
  10992. "type": "object",
  10993. "properties": {
  10994. "sessionID": {
  10995. "type": "string",
  10996. "pattern": "^ses.*"
  10997. }
  10998. },
  10999. "required": ["sessionID"]
  11000. }
  11001. },
  11002. "required": ["type", "properties"]
  11003. },
  11004. "Event.file.edited": {
  11005. "type": "object",
  11006. "properties": {
  11007. "type": {
  11008. "type": "string",
  11009. "const": "file.edited"
  11010. },
  11011. "properties": {
  11012. "type": "object",
  11013. "properties": {
  11014. "file": {
  11015. "type": "string"
  11016. }
  11017. },
  11018. "required": ["file"]
  11019. }
  11020. },
  11021. "required": ["type", "properties"]
  11022. },
  11023. "Event.file.watcher.updated": {
  11024. "type": "object",
  11025. "properties": {
  11026. "type": {
  11027. "type": "string",
  11028. "const": "file.watcher.updated"
  11029. },
  11030. "properties": {
  11031. "type": "object",
  11032. "properties": {
  11033. "file": {
  11034. "type": "string"
  11035. },
  11036. "event": {
  11037. "anyOf": [
  11038. {
  11039. "type": "string",
  11040. "const": "add"
  11041. },
  11042. {
  11043. "type": "string",
  11044. "const": "change"
  11045. },
  11046. {
  11047. "type": "string",
  11048. "const": "unlink"
  11049. }
  11050. ]
  11051. }
  11052. },
  11053. "required": ["file", "event"]
  11054. }
  11055. },
  11056. "required": ["type", "properties"]
  11057. },
  11058. "Event.command.executed": {
  11059. "type": "object",
  11060. "properties": {
  11061. "type": {
  11062. "type": "string",
  11063. "const": "command.executed"
  11064. },
  11065. "properties": {
  11066. "type": "object",
  11067. "properties": {
  11068. "name": {
  11069. "type": "string"
  11070. },
  11071. "sessionID": {
  11072. "type": "string",
  11073. "pattern": "^ses.*"
  11074. },
  11075. "arguments": {
  11076. "type": "string"
  11077. },
  11078. "messageID": {
  11079. "type": "string",
  11080. "pattern": "^msg.*"
  11081. }
  11082. },
  11083. "required": ["name", "sessionID", "arguments", "messageID"]
  11084. }
  11085. },
  11086. "required": ["type", "properties"]
  11087. },
  11088. "Event.session.turn.open": {
  11089. "type": "object",
  11090. "properties": {
  11091. "type": {
  11092. "type": "string",
  11093. "const": "session.turn.open"
  11094. },
  11095. "properties": {
  11096. "type": "object",
  11097. "properties": {
  11098. "sessionID": {
  11099. "type": "string"
  11100. }
  11101. },
  11102. "required": ["sessionID"]
  11103. }
  11104. },
  11105. "required": ["type", "properties"]
  11106. },
  11107. "Event.session.turn.close": {
  11108. "type": "object",
  11109. "properties": {
  11110. "type": {
  11111. "type": "string",
  11112. "const": "session.turn.close"
  11113. },
  11114. "properties": {
  11115. "type": "object",
  11116. "properties": {
  11117. "sessionID": {
  11118. "type": "string"
  11119. },
  11120. "reason": {
  11121. "type": "string",
  11122. "enum": ["completed", "error", "interrupted"]
  11123. }
  11124. },
  11125. "required": ["sessionID", "reason"]
  11126. }
  11127. },
  11128. "required": ["type", "properties"]
  11129. },
  11130. "FileDiff": {
  11131. "type": "object",
  11132. "properties": {
  11133. "file": {
  11134. "type": "string"
  11135. },
  11136. "before": {
  11137. "type": "string"
  11138. },
  11139. "after": {
  11140. "type": "string"
  11141. },
  11142. "additions": {
  11143. "type": "number"
  11144. },
  11145. "deletions": {
  11146. "type": "number"
  11147. },
  11148. "status": {
  11149. "type": "string",
  11150. "enum": ["added", "deleted", "modified"]
  11151. }
  11152. },
  11153. "required": ["file", "before", "after", "additions", "deletions"]
  11154. },
  11155. "Event.session.diff": {
  11156. "type": "object",
  11157. "properties": {
  11158. "type": {
  11159. "type": "string",
  11160. "const": "session.diff"
  11161. },
  11162. "properties": {
  11163. "type": "object",
  11164. "properties": {
  11165. "sessionID": {
  11166. "type": "string",
  11167. "pattern": "^ses.*"
  11168. },
  11169. "diff": {
  11170. "type": "array",
  11171. "items": {
  11172. "$ref": "#/components/schemas/FileDiff"
  11173. }
  11174. }
  11175. },
  11176. "required": ["sessionID", "diff"]
  11177. }
  11178. },
  11179. "required": ["type", "properties"]
  11180. },
  11181. "ProviderAuthError": {
  11182. "type": "object",
  11183. "properties": {
  11184. "name": {
  11185. "type": "string",
  11186. "const": "ProviderAuthError"
  11187. },
  11188. "data": {
  11189. "type": "object",
  11190. "properties": {
  11191. "providerID": {
  11192. "type": "string"
  11193. },
  11194. "message": {
  11195. "type": "string"
  11196. }
  11197. },
  11198. "required": ["providerID", "message"]
  11199. }
  11200. },
  11201. "required": ["name", "data"]
  11202. },
  11203. "UnknownError": {
  11204. "type": "object",
  11205. "properties": {
  11206. "name": {
  11207. "type": "string",
  11208. "const": "UnknownError"
  11209. },
  11210. "data": {
  11211. "type": "object",
  11212. "properties": {
  11213. "message": {
  11214. "type": "string"
  11215. }
  11216. },
  11217. "required": ["message"]
  11218. }
  11219. },
  11220. "required": ["name", "data"]
  11221. },
  11222. "MessageOutputLengthError": {
  11223. "type": "object",
  11224. "properties": {
  11225. "name": {
  11226. "type": "string",
  11227. "const": "MessageOutputLengthError"
  11228. },
  11229. "data": {
  11230. "type": "object",
  11231. "properties": {}
  11232. }
  11233. },
  11234. "required": ["name", "data"]
  11235. },
  11236. "MessageAbortedError": {
  11237. "type": "object",
  11238. "properties": {
  11239. "name": {
  11240. "type": "string",
  11241. "const": "MessageAbortedError"
  11242. },
  11243. "data": {
  11244. "type": "object",
  11245. "properties": {
  11246. "message": {
  11247. "type": "string"
  11248. }
  11249. },
  11250. "required": ["message"]
  11251. }
  11252. },
  11253. "required": ["name", "data"]
  11254. },
  11255. "StructuredOutputError": {
  11256. "type": "object",
  11257. "properties": {
  11258. "name": {
  11259. "type": "string",
  11260. "const": "StructuredOutputError"
  11261. },
  11262. "data": {
  11263. "type": "object",
  11264. "properties": {
  11265. "message": {
  11266. "type": "string"
  11267. },
  11268. "retries": {
  11269. "type": "number"
  11270. }
  11271. },
  11272. "required": ["message", "retries"]
  11273. }
  11274. },
  11275. "required": ["name", "data"]
  11276. },
  11277. "ContextOverflowError": {
  11278. "type": "object",
  11279. "properties": {
  11280. "name": {
  11281. "type": "string",
  11282. "const": "ContextOverflowError"
  11283. },
  11284. "data": {
  11285. "type": "object",
  11286. "properties": {
  11287. "message": {
  11288. "type": "string"
  11289. },
  11290. "responseBody": {
  11291. "type": "string"
  11292. }
  11293. },
  11294. "required": ["message"]
  11295. }
  11296. },
  11297. "required": ["name", "data"]
  11298. },
  11299. "APIError": {
  11300. "type": "object",
  11301. "properties": {
  11302. "name": {
  11303. "type": "string",
  11304. "const": "APIError"
  11305. },
  11306. "data": {
  11307. "type": "object",
  11308. "properties": {
  11309. "message": {
  11310. "type": "string"
  11311. },
  11312. "statusCode": {
  11313. "type": "number"
  11314. },
  11315. "isRetryable": {
  11316. "type": "boolean"
  11317. },
  11318. "responseHeaders": {
  11319. "type": "object",
  11320. "propertyNames": {
  11321. "type": "string"
  11322. },
  11323. "additionalProperties": {
  11324. "type": "string"
  11325. }
  11326. },
  11327. "responseBody": {
  11328. "type": "string"
  11329. },
  11330. "metadata": {
  11331. "type": "object",
  11332. "propertyNames": {
  11333. "type": "string"
  11334. },
  11335. "additionalProperties": {
  11336. "type": "string"
  11337. }
  11338. }
  11339. },
  11340. "required": ["message", "isRetryable"]
  11341. }
  11342. },
  11343. "required": ["name", "data"]
  11344. },
  11345. "Event.session.error": {
  11346. "type": "object",
  11347. "properties": {
  11348. "type": {
  11349. "type": "string",
  11350. "const": "session.error"
  11351. },
  11352. "properties": {
  11353. "type": "object",
  11354. "properties": {
  11355. "sessionID": {
  11356. "type": "string",
  11357. "pattern": "^ses.*"
  11358. },
  11359. "error": {
  11360. "anyOf": [
  11361. {
  11362. "$ref": "#/components/schemas/ProviderAuthError"
  11363. },
  11364. {
  11365. "$ref": "#/components/schemas/UnknownError"
  11366. },
  11367. {
  11368. "$ref": "#/components/schemas/MessageOutputLengthError"
  11369. },
  11370. {
  11371. "$ref": "#/components/schemas/MessageAbortedError"
  11372. },
  11373. {
  11374. "$ref": "#/components/schemas/StructuredOutputError"
  11375. },
  11376. {
  11377. "$ref": "#/components/schemas/ContextOverflowError"
  11378. },
  11379. {
  11380. "$ref": "#/components/schemas/APIError"
  11381. }
  11382. ]
  11383. }
  11384. }
  11385. }
  11386. },
  11387. "required": ["type", "properties"]
  11388. },
  11389. "Event.vcs.branch.updated": {
  11390. "type": "object",
  11391. "properties": {
  11392. "type": {
  11393. "type": "string",
  11394. "const": "vcs.branch.updated"
  11395. },
  11396. "properties": {
  11397. "type": "object",
  11398. "properties": {
  11399. "branch": {
  11400. "type": "string"
  11401. }
  11402. }
  11403. }
  11404. },
  11405. "required": ["type", "properties"]
  11406. },
  11407. "Event.kilo-sessions.remote-status-changed": {
  11408. "type": "object",
  11409. "properties": {
  11410. "type": {
  11411. "type": "string",
  11412. "const": "kilo-sessions.remote-status-changed"
  11413. },
  11414. "properties": {
  11415. "type": "object",
  11416. "properties": {
  11417. "enabled": {
  11418. "type": "boolean"
  11419. },
  11420. "connected": {
  11421. "type": "boolean"
  11422. }
  11423. },
  11424. "required": ["enabled", "connected"]
  11425. }
  11426. },
  11427. "required": ["type", "properties"]
  11428. },
  11429. "Event.workspace.ready": {
  11430. "type": "object",
  11431. "properties": {
  11432. "type": {
  11433. "type": "string",
  11434. "const": "workspace.ready"
  11435. },
  11436. "properties": {
  11437. "type": "object",
  11438. "properties": {
  11439. "name": {
  11440. "type": "string"
  11441. }
  11442. },
  11443. "required": ["name"]
  11444. }
  11445. },
  11446. "required": ["type", "properties"]
  11447. },
  11448. "Event.workspace.failed": {
  11449. "type": "object",
  11450. "properties": {
  11451. "type": {
  11452. "type": "string",
  11453. "const": "workspace.failed"
  11454. },
  11455. "properties": {
  11456. "type": "object",
  11457. "properties": {
  11458. "message": {
  11459. "type": "string"
  11460. }
  11461. },
  11462. "required": ["message"]
  11463. }
  11464. },
  11465. "required": ["type", "properties"]
  11466. },
  11467. "Pty": {
  11468. "type": "object",
  11469. "properties": {
  11470. "id": {
  11471. "type": "string",
  11472. "pattern": "^pty.*"
  11473. },
  11474. "title": {
  11475. "type": "string"
  11476. },
  11477. "command": {
  11478. "type": "string"
  11479. },
  11480. "args": {
  11481. "type": "array",
  11482. "items": {
  11483. "type": "string"
  11484. }
  11485. },
  11486. "cwd": {
  11487. "type": "string"
  11488. },
  11489. "status": {
  11490. "type": "string",
  11491. "enum": ["running", "exited"]
  11492. },
  11493. "pid": {
  11494. "type": "number"
  11495. }
  11496. },
  11497. "required": ["id", "title", "command", "args", "cwd", "status", "pid"]
  11498. },
  11499. "Event.pty.created": {
  11500. "type": "object",
  11501. "properties": {
  11502. "type": {
  11503. "type": "string",
  11504. "const": "pty.created"
  11505. },
  11506. "properties": {
  11507. "type": "object",
  11508. "properties": {
  11509. "info": {
  11510. "$ref": "#/components/schemas/Pty"
  11511. }
  11512. },
  11513. "required": ["info"]
  11514. }
  11515. },
  11516. "required": ["type", "properties"]
  11517. },
  11518. "Event.pty.updated": {
  11519. "type": "object",
  11520. "properties": {
  11521. "type": {
  11522. "type": "string",
  11523. "const": "pty.updated"
  11524. },
  11525. "properties": {
  11526. "type": "object",
  11527. "properties": {
  11528. "info": {
  11529. "$ref": "#/components/schemas/Pty"
  11530. }
  11531. },
  11532. "required": ["info"]
  11533. }
  11534. },
  11535. "required": ["type", "properties"]
  11536. },
  11537. "Event.pty.exited": {
  11538. "type": "object",
  11539. "properties": {
  11540. "type": {
  11541. "type": "string",
  11542. "const": "pty.exited"
  11543. },
  11544. "properties": {
  11545. "type": "object",
  11546. "properties": {
  11547. "id": {
  11548. "type": "string",
  11549. "pattern": "^pty.*"
  11550. },
  11551. "exitCode": {
  11552. "type": "number"
  11553. }
  11554. },
  11555. "required": ["id", "exitCode"]
  11556. }
  11557. },
  11558. "required": ["type", "properties"]
  11559. },
  11560. "Event.pty.deleted": {
  11561. "type": "object",
  11562. "properties": {
  11563. "type": {
  11564. "type": "string",
  11565. "const": "pty.deleted"
  11566. },
  11567. "properties": {
  11568. "type": "object",
  11569. "properties": {
  11570. "id": {
  11571. "type": "string",
  11572. "pattern": "^pty.*"
  11573. }
  11574. },
  11575. "required": ["id"]
  11576. }
  11577. },
  11578. "required": ["type", "properties"]
  11579. },
  11580. "Event.worktree.ready": {
  11581. "type": "object",
  11582. "properties": {
  11583. "type": {
  11584. "type": "string",
  11585. "const": "worktree.ready"
  11586. },
  11587. "properties": {
  11588. "type": "object",
  11589. "properties": {
  11590. "name": {
  11591. "type": "string"
  11592. },
  11593. "branch": {
  11594. "type": "string"
  11595. }
  11596. },
  11597. "required": ["name", "branch"]
  11598. }
  11599. },
  11600. "required": ["type", "properties"]
  11601. },
  11602. "Event.worktree.failed": {
  11603. "type": "object",
  11604. "properties": {
  11605. "type": {
  11606. "type": "string",
  11607. "const": "worktree.failed"
  11608. },
  11609. "properties": {
  11610. "type": "object",
  11611. "properties": {
  11612. "message": {
  11613. "type": "string"
  11614. }
  11615. },
  11616. "required": ["message"]
  11617. }
  11618. },
  11619. "required": ["type", "properties"]
  11620. },
  11621. "OutputFormatText": {
  11622. "type": "object",
  11623. "properties": {
  11624. "type": {
  11625. "type": "string",
  11626. "const": "text"
  11627. }
  11628. },
  11629. "required": ["type"]
  11630. },
  11631. "JSONSchema": {
  11632. "type": "object",
  11633. "propertyNames": {
  11634. "type": "string"
  11635. },
  11636. "additionalProperties": {}
  11637. },
  11638. "OutputFormatJsonSchema": {
  11639. "type": "object",
  11640. "properties": {
  11641. "type": {
  11642. "type": "string",
  11643. "const": "json_schema"
  11644. },
  11645. "schema": {
  11646. "$ref": "#/components/schemas/JSONSchema"
  11647. },
  11648. "retryCount": {
  11649. "default": 2,
  11650. "type": "integer",
  11651. "minimum": 0,
  11652. "maximum": 9007199254740991
  11653. }
  11654. },
  11655. "required": ["type", "schema"]
  11656. },
  11657. "OutputFormat": {
  11658. "anyOf": [
  11659. {
  11660. "$ref": "#/components/schemas/OutputFormatText"
  11661. },
  11662. {
  11663. "$ref": "#/components/schemas/OutputFormatJsonSchema"
  11664. }
  11665. ]
  11666. },
  11667. "UserMessage": {
  11668. "type": "object",
  11669. "properties": {
  11670. "id": {
  11671. "type": "string",
  11672. "pattern": "^msg.*"
  11673. },
  11674. "sessionID": {
  11675. "type": "string",
  11676. "pattern": "^ses.*"
  11677. },
  11678. "role": {
  11679. "type": "string",
  11680. "const": "user"
  11681. },
  11682. "time": {
  11683. "type": "object",
  11684. "properties": {
  11685. "created": {
  11686. "type": "number"
  11687. }
  11688. },
  11689. "required": ["created"]
  11690. },
  11691. "format": {
  11692. "$ref": "#/components/schemas/OutputFormat"
  11693. },
  11694. "summary": {
  11695. "type": "object",
  11696. "properties": {
  11697. "title": {
  11698. "type": "string"
  11699. },
  11700. "body": {
  11701. "type": "string"
  11702. },
  11703. "diffs": {
  11704. "type": "array",
  11705. "items": {
  11706. "$ref": "#/components/schemas/FileDiff"
  11707. }
  11708. }
  11709. },
  11710. "required": ["diffs"]
  11711. },
  11712. "agent": {
  11713. "type": "string"
  11714. },
  11715. "model": {
  11716. "type": "object",
  11717. "properties": {
  11718. "providerID": {
  11719. "type": "string"
  11720. },
  11721. "modelID": {
  11722. "type": "string"
  11723. }
  11724. },
  11725. "required": ["providerID", "modelID"]
  11726. },
  11727. "system": {
  11728. "type": "string"
  11729. },
  11730. "tools": {
  11731. "type": "object",
  11732. "propertyNames": {
  11733. "type": "string"
  11734. },
  11735. "additionalProperties": {
  11736. "type": "boolean"
  11737. }
  11738. },
  11739. "variant": {
  11740. "type": "string"
  11741. },
  11742. "editorContext": {
  11743. "type": "object",
  11744. "properties": {
  11745. "visibleFiles": {
  11746. "type": "array",
  11747. "items": {
  11748. "type": "string"
  11749. }
  11750. },
  11751. "openTabs": {
  11752. "type": "array",
  11753. "items": {
  11754. "type": "string"
  11755. }
  11756. },
  11757. "activeFile": {
  11758. "type": "string"
  11759. },
  11760. "shell": {
  11761. "type": "string"
  11762. }
  11763. }
  11764. }
  11765. },
  11766. "required": ["id", "sessionID", "role", "time", "agent", "model"]
  11767. },
  11768. "AssistantMessage": {
  11769. "type": "object",
  11770. "properties": {
  11771. "id": {
  11772. "type": "string",
  11773. "pattern": "^msg.*"
  11774. },
  11775. "sessionID": {
  11776. "type": "string",
  11777. "pattern": "^ses.*"
  11778. },
  11779. "role": {
  11780. "type": "string",
  11781. "const": "assistant"
  11782. },
  11783. "time": {
  11784. "type": "object",
  11785. "properties": {
  11786. "created": {
  11787. "type": "number"
  11788. },
  11789. "completed": {
  11790. "type": "number"
  11791. }
  11792. },
  11793. "required": ["created"]
  11794. },
  11795. "error": {
  11796. "anyOf": [
  11797. {
  11798. "$ref": "#/components/schemas/ProviderAuthError"
  11799. },
  11800. {
  11801. "$ref": "#/components/schemas/UnknownError"
  11802. },
  11803. {
  11804. "$ref": "#/components/schemas/MessageOutputLengthError"
  11805. },
  11806. {
  11807. "$ref": "#/components/schemas/MessageAbortedError"
  11808. },
  11809. {
  11810. "$ref": "#/components/schemas/StructuredOutputError"
  11811. },
  11812. {
  11813. "$ref": "#/components/schemas/ContextOverflowError"
  11814. },
  11815. {
  11816. "$ref": "#/components/schemas/APIError"
  11817. }
  11818. ]
  11819. },
  11820. "parentID": {
  11821. "type": "string",
  11822. "pattern": "^msg.*"
  11823. },
  11824. "modelID": {
  11825. "type": "string"
  11826. },
  11827. "providerID": {
  11828. "type": "string"
  11829. },
  11830. "mode": {
  11831. "type": "string"
  11832. },
  11833. "agent": {
  11834. "type": "string"
  11835. },
  11836. "path": {
  11837. "type": "object",
  11838. "properties": {
  11839. "cwd": {
  11840. "type": "string"
  11841. },
  11842. "root": {
  11843. "type": "string"
  11844. }
  11845. },
  11846. "required": ["cwd", "root"]
  11847. },
  11848. "summary": {
  11849. "type": "boolean"
  11850. },
  11851. "cost": {
  11852. "type": "number"
  11853. },
  11854. "tokens": {
  11855. "type": "object",
  11856. "properties": {
  11857. "total": {
  11858. "type": "number"
  11859. },
  11860. "input": {
  11861. "type": "number"
  11862. },
  11863. "output": {
  11864. "type": "number"
  11865. },
  11866. "reasoning": {
  11867. "type": "number"
  11868. },
  11869. "cache": {
  11870. "type": "object",
  11871. "properties": {
  11872. "read": {
  11873. "type": "number"
  11874. },
  11875. "write": {
  11876. "type": "number"
  11877. }
  11878. },
  11879. "required": ["read", "write"]
  11880. }
  11881. },
  11882. "required": ["input", "output", "reasoning", "cache"]
  11883. },
  11884. "structured": {},
  11885. "variant": {
  11886. "type": "string"
  11887. },
  11888. "finish": {
  11889. "type": "string"
  11890. }
  11891. },
  11892. "required": [
  11893. "id",
  11894. "sessionID",
  11895. "role",
  11896. "time",
  11897. "parentID",
  11898. "modelID",
  11899. "providerID",
  11900. "mode",
  11901. "agent",
  11902. "path",
  11903. "cost",
  11904. "tokens"
  11905. ]
  11906. },
  11907. "Message": {
  11908. "anyOf": [
  11909. {
  11910. "$ref": "#/components/schemas/UserMessage"
  11911. },
  11912. {
  11913. "$ref": "#/components/schemas/AssistantMessage"
  11914. }
  11915. ]
  11916. },
  11917. "Event.message.updated": {
  11918. "type": "object",
  11919. "properties": {
  11920. "type": {
  11921. "type": "string",
  11922. "const": "message.updated"
  11923. },
  11924. "properties": {
  11925. "type": "object",
  11926. "properties": {
  11927. "sessionID": {
  11928. "type": "string",
  11929. "pattern": "^ses.*"
  11930. },
  11931. "info": {
  11932. "$ref": "#/components/schemas/Message"
  11933. }
  11934. },
  11935. "required": ["sessionID", "info"]
  11936. }
  11937. },
  11938. "required": ["type", "properties"]
  11939. },
  11940. "Event.message.removed": {
  11941. "type": "object",
  11942. "properties": {
  11943. "type": {
  11944. "type": "string",
  11945. "const": "message.removed"
  11946. },
  11947. "properties": {
  11948. "type": "object",
  11949. "properties": {
  11950. "sessionID": {
  11951. "type": "string",
  11952. "pattern": "^ses.*"
  11953. },
  11954. "messageID": {
  11955. "type": "string",
  11956. "pattern": "^msg.*"
  11957. }
  11958. },
  11959. "required": ["sessionID", "messageID"]
  11960. }
  11961. },
  11962. "required": ["type", "properties"]
  11963. },
  11964. "TextPart": {
  11965. "type": "object",
  11966. "properties": {
  11967. "id": {
  11968. "type": "string",
  11969. "pattern": "^prt.*"
  11970. },
  11971. "sessionID": {
  11972. "type": "string",
  11973. "pattern": "^ses.*"
  11974. },
  11975. "messageID": {
  11976. "type": "string",
  11977. "pattern": "^msg.*"
  11978. },
  11979. "type": {
  11980. "type": "string",
  11981. "const": "text"
  11982. },
  11983. "text": {
  11984. "type": "string"
  11985. },
  11986. "synthetic": {
  11987. "type": "boolean"
  11988. },
  11989. "ignored": {
  11990. "type": "boolean"
  11991. },
  11992. "time": {
  11993. "type": "object",
  11994. "properties": {
  11995. "start": {
  11996. "type": "number"
  11997. },
  11998. "end": {
  11999. "type": "number"
  12000. }
  12001. },
  12002. "required": ["start"]
  12003. },
  12004. "metadata": {
  12005. "type": "object",
  12006. "propertyNames": {
  12007. "type": "string"
  12008. },
  12009. "additionalProperties": {}
  12010. }
  12011. },
  12012. "required": ["id", "sessionID", "messageID", "type", "text"]
  12013. },
  12014. "SubtaskPart": {
  12015. "type": "object",
  12016. "properties": {
  12017. "id": {
  12018. "type": "string",
  12019. "pattern": "^prt.*"
  12020. },
  12021. "sessionID": {
  12022. "type": "string",
  12023. "pattern": "^ses.*"
  12024. },
  12025. "messageID": {
  12026. "type": "string",
  12027. "pattern": "^msg.*"
  12028. },
  12029. "type": {
  12030. "type": "string",
  12031. "const": "subtask"
  12032. },
  12033. "prompt": {
  12034. "type": "string"
  12035. },
  12036. "description": {
  12037. "type": "string"
  12038. },
  12039. "agent": {
  12040. "type": "string"
  12041. },
  12042. "model": {
  12043. "type": "object",
  12044. "properties": {
  12045. "providerID": {
  12046. "type": "string"
  12047. },
  12048. "modelID": {
  12049. "type": "string"
  12050. }
  12051. },
  12052. "required": ["providerID", "modelID"]
  12053. },
  12054. "command": {
  12055. "type": "string"
  12056. }
  12057. },
  12058. "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"]
  12059. },
  12060. "ReasoningPart": {
  12061. "type": "object",
  12062. "properties": {
  12063. "id": {
  12064. "type": "string",
  12065. "pattern": "^prt.*"
  12066. },
  12067. "sessionID": {
  12068. "type": "string",
  12069. "pattern": "^ses.*"
  12070. },
  12071. "messageID": {
  12072. "type": "string",
  12073. "pattern": "^msg.*"
  12074. },
  12075. "type": {
  12076. "type": "string",
  12077. "const": "reasoning"
  12078. },
  12079. "text": {
  12080. "type": "string"
  12081. },
  12082. "metadata": {
  12083. "type": "object",
  12084. "propertyNames": {
  12085. "type": "string"
  12086. },
  12087. "additionalProperties": {}
  12088. },
  12089. "time": {
  12090. "type": "object",
  12091. "properties": {
  12092. "start": {
  12093. "type": "number"
  12094. },
  12095. "end": {
  12096. "type": "number"
  12097. }
  12098. },
  12099. "required": ["start"]
  12100. }
  12101. },
  12102. "required": ["id", "sessionID", "messageID", "type", "text", "time"]
  12103. },
  12104. "FilePartSourceText": {
  12105. "type": "object",
  12106. "properties": {
  12107. "value": {
  12108. "type": "string"
  12109. },
  12110. "start": {
  12111. "type": "integer",
  12112. "minimum": -9007199254740991,
  12113. "maximum": 9007199254740991
  12114. },
  12115. "end": {
  12116. "type": "integer",
  12117. "minimum": -9007199254740991,
  12118. "maximum": 9007199254740991
  12119. }
  12120. },
  12121. "required": ["value", "start", "end"]
  12122. },
  12123. "FileSource": {
  12124. "type": "object",
  12125. "properties": {
  12126. "text": {
  12127. "$ref": "#/components/schemas/FilePartSourceText"
  12128. },
  12129. "type": {
  12130. "type": "string",
  12131. "const": "file"
  12132. },
  12133. "path": {
  12134. "type": "string"
  12135. }
  12136. },
  12137. "required": ["text", "type", "path"]
  12138. },
  12139. "Range": {
  12140. "type": "object",
  12141. "properties": {
  12142. "start": {
  12143. "type": "object",
  12144. "properties": {
  12145. "line": {
  12146. "type": "number"
  12147. },
  12148. "character": {
  12149. "type": "number"
  12150. }
  12151. },
  12152. "required": ["line", "character"]
  12153. },
  12154. "end": {
  12155. "type": "object",
  12156. "properties": {
  12157. "line": {
  12158. "type": "number"
  12159. },
  12160. "character": {
  12161. "type": "number"
  12162. }
  12163. },
  12164. "required": ["line", "character"]
  12165. }
  12166. },
  12167. "required": ["start", "end"]
  12168. },
  12169. "SymbolSource": {
  12170. "type": "object",
  12171. "properties": {
  12172. "text": {
  12173. "$ref": "#/components/schemas/FilePartSourceText"
  12174. },
  12175. "type": {
  12176. "type": "string",
  12177. "const": "symbol"
  12178. },
  12179. "path": {
  12180. "type": "string"
  12181. },
  12182. "range": {
  12183. "$ref": "#/components/schemas/Range"
  12184. },
  12185. "name": {
  12186. "type": "string"
  12187. },
  12188. "kind": {
  12189. "type": "integer",
  12190. "minimum": -9007199254740991,
  12191. "maximum": 9007199254740991
  12192. }
  12193. },
  12194. "required": ["text", "type", "path", "range", "name", "kind"]
  12195. },
  12196. "ResourceSource": {
  12197. "type": "object",
  12198. "properties": {
  12199. "text": {
  12200. "$ref": "#/components/schemas/FilePartSourceText"
  12201. },
  12202. "type": {
  12203. "type": "string",
  12204. "const": "resource"
  12205. },
  12206. "clientName": {
  12207. "type": "string"
  12208. },
  12209. "uri": {
  12210. "type": "string"
  12211. }
  12212. },
  12213. "required": ["text", "type", "clientName", "uri"]
  12214. },
  12215. "FilePartSource": {
  12216. "anyOf": [
  12217. {
  12218. "$ref": "#/components/schemas/FileSource"
  12219. },
  12220. {
  12221. "$ref": "#/components/schemas/SymbolSource"
  12222. },
  12223. {
  12224. "$ref": "#/components/schemas/ResourceSource"
  12225. }
  12226. ]
  12227. },
  12228. "FilePart": {
  12229. "type": "object",
  12230. "properties": {
  12231. "id": {
  12232. "type": "string",
  12233. "pattern": "^prt.*"
  12234. },
  12235. "sessionID": {
  12236. "type": "string",
  12237. "pattern": "^ses.*"
  12238. },
  12239. "messageID": {
  12240. "type": "string",
  12241. "pattern": "^msg.*"
  12242. },
  12243. "type": {
  12244. "type": "string",
  12245. "const": "file"
  12246. },
  12247. "mime": {
  12248. "type": "string"
  12249. },
  12250. "filename": {
  12251. "type": "string"
  12252. },
  12253. "url": {
  12254. "type": "string"
  12255. },
  12256. "source": {
  12257. "$ref": "#/components/schemas/FilePartSource"
  12258. }
  12259. },
  12260. "required": ["id", "sessionID", "messageID", "type", "mime", "url"]
  12261. },
  12262. "ToolStatePending": {
  12263. "type": "object",
  12264. "properties": {
  12265. "status": {
  12266. "type": "string",
  12267. "const": "pending"
  12268. },
  12269. "input": {
  12270. "type": "object",
  12271. "propertyNames": {
  12272. "type": "string"
  12273. },
  12274. "additionalProperties": {}
  12275. },
  12276. "raw": {
  12277. "type": "string"
  12278. }
  12279. },
  12280. "required": ["status", "input", "raw"]
  12281. },
  12282. "ToolStateRunning": {
  12283. "type": "object",
  12284. "properties": {
  12285. "status": {
  12286. "type": "string",
  12287. "const": "running"
  12288. },
  12289. "input": {
  12290. "type": "object",
  12291. "propertyNames": {
  12292. "type": "string"
  12293. },
  12294. "additionalProperties": {}
  12295. },
  12296. "title": {
  12297. "type": "string"
  12298. },
  12299. "metadata": {
  12300. "type": "object",
  12301. "propertyNames": {
  12302. "type": "string"
  12303. },
  12304. "additionalProperties": {}
  12305. },
  12306. "time": {
  12307. "type": "object",
  12308. "properties": {
  12309. "start": {
  12310. "type": "number"
  12311. }
  12312. },
  12313. "required": ["start"]
  12314. }
  12315. },
  12316. "required": ["status", "input", "time"]
  12317. },
  12318. "ToolStateCompleted": {
  12319. "type": "object",
  12320. "properties": {
  12321. "status": {
  12322. "type": "string",
  12323. "const": "completed"
  12324. },
  12325. "input": {
  12326. "type": "object",
  12327. "propertyNames": {
  12328. "type": "string"
  12329. },
  12330. "additionalProperties": {}
  12331. },
  12332. "output": {
  12333. "type": "string"
  12334. },
  12335. "title": {
  12336. "type": "string"
  12337. },
  12338. "metadata": {
  12339. "type": "object",
  12340. "propertyNames": {
  12341. "type": "string"
  12342. },
  12343. "additionalProperties": {}
  12344. },
  12345. "time": {
  12346. "type": "object",
  12347. "properties": {
  12348. "start": {
  12349. "type": "number"
  12350. },
  12351. "end": {
  12352. "type": "number"
  12353. },
  12354. "compacted": {
  12355. "type": "number"
  12356. }
  12357. },
  12358. "required": ["start", "end"]
  12359. },
  12360. "attachments": {
  12361. "type": "array",
  12362. "items": {
  12363. "$ref": "#/components/schemas/FilePart"
  12364. }
  12365. }
  12366. },
  12367. "required": ["status", "input", "output", "title", "metadata", "time"]
  12368. },
  12369. "ToolStateError": {
  12370. "type": "object",
  12371. "properties": {
  12372. "status": {
  12373. "type": "string",
  12374. "const": "error"
  12375. },
  12376. "input": {
  12377. "type": "object",
  12378. "propertyNames": {
  12379. "type": "string"
  12380. },
  12381. "additionalProperties": {}
  12382. },
  12383. "error": {
  12384. "type": "string"
  12385. },
  12386. "metadata": {
  12387. "type": "object",
  12388. "propertyNames": {
  12389. "type": "string"
  12390. },
  12391. "additionalProperties": {}
  12392. },
  12393. "time": {
  12394. "type": "object",
  12395. "properties": {
  12396. "start": {
  12397. "type": "number"
  12398. },
  12399. "end": {
  12400. "type": "number"
  12401. }
  12402. },
  12403. "required": ["start", "end"]
  12404. }
  12405. },
  12406. "required": ["status", "input", "error", "time"]
  12407. },
  12408. "ToolState": {
  12409. "anyOf": [
  12410. {
  12411. "$ref": "#/components/schemas/ToolStatePending"
  12412. },
  12413. {
  12414. "$ref": "#/components/schemas/ToolStateRunning"
  12415. },
  12416. {
  12417. "$ref": "#/components/schemas/ToolStateCompleted"
  12418. },
  12419. {
  12420. "$ref": "#/components/schemas/ToolStateError"
  12421. }
  12422. ]
  12423. },
  12424. "ToolPart": {
  12425. "type": "object",
  12426. "properties": {
  12427. "id": {
  12428. "type": "string",
  12429. "pattern": "^prt.*"
  12430. },
  12431. "sessionID": {
  12432. "type": "string",
  12433. "pattern": "^ses.*"
  12434. },
  12435. "messageID": {
  12436. "type": "string",
  12437. "pattern": "^msg.*"
  12438. },
  12439. "type": {
  12440. "type": "string",
  12441. "const": "tool"
  12442. },
  12443. "callID": {
  12444. "type": "string"
  12445. },
  12446. "tool": {
  12447. "type": "string"
  12448. },
  12449. "state": {
  12450. "$ref": "#/components/schemas/ToolState"
  12451. },
  12452. "metadata": {
  12453. "type": "object",
  12454. "propertyNames": {
  12455. "type": "string"
  12456. },
  12457. "additionalProperties": {}
  12458. }
  12459. },
  12460. "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"]
  12461. },
  12462. "StepStartPart": {
  12463. "type": "object",
  12464. "properties": {
  12465. "id": {
  12466. "type": "string",
  12467. "pattern": "^prt.*"
  12468. },
  12469. "sessionID": {
  12470. "type": "string",
  12471. "pattern": "^ses.*"
  12472. },
  12473. "messageID": {
  12474. "type": "string",
  12475. "pattern": "^msg.*"
  12476. },
  12477. "type": {
  12478. "type": "string",
  12479. "const": "step-start"
  12480. },
  12481. "snapshot": {
  12482. "type": "string"
  12483. }
  12484. },
  12485. "required": ["id", "sessionID", "messageID", "type"]
  12486. },
  12487. "StepFinishPart": {
  12488. "type": "object",
  12489. "properties": {
  12490. "id": {
  12491. "type": "string",
  12492. "pattern": "^prt.*"
  12493. },
  12494. "sessionID": {
  12495. "type": "string",
  12496. "pattern": "^ses.*"
  12497. },
  12498. "messageID": {
  12499. "type": "string",
  12500. "pattern": "^msg.*"
  12501. },
  12502. "type": {
  12503. "type": "string",
  12504. "const": "step-finish"
  12505. },
  12506. "reason": {
  12507. "type": "string"
  12508. },
  12509. "snapshot": {
  12510. "type": "string"
  12511. },
  12512. "cost": {
  12513. "type": "number"
  12514. },
  12515. "tokens": {
  12516. "type": "object",
  12517. "properties": {
  12518. "total": {
  12519. "type": "number"
  12520. },
  12521. "input": {
  12522. "type": "number"
  12523. },
  12524. "output": {
  12525. "type": "number"
  12526. },
  12527. "reasoning": {
  12528. "type": "number"
  12529. },
  12530. "cache": {
  12531. "type": "object",
  12532. "properties": {
  12533. "read": {
  12534. "type": "number"
  12535. },
  12536. "write": {
  12537. "type": "number"
  12538. }
  12539. },
  12540. "required": ["read", "write"]
  12541. }
  12542. },
  12543. "required": ["input", "output", "reasoning", "cache"]
  12544. }
  12545. },
  12546. "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"]
  12547. },
  12548. "SnapshotPart": {
  12549. "type": "object",
  12550. "properties": {
  12551. "id": {
  12552. "type": "string",
  12553. "pattern": "^prt.*"
  12554. },
  12555. "sessionID": {
  12556. "type": "string",
  12557. "pattern": "^ses.*"
  12558. },
  12559. "messageID": {
  12560. "type": "string",
  12561. "pattern": "^msg.*"
  12562. },
  12563. "type": {
  12564. "type": "string",
  12565. "const": "snapshot"
  12566. },
  12567. "snapshot": {
  12568. "type": "string"
  12569. }
  12570. },
  12571. "required": ["id", "sessionID", "messageID", "type", "snapshot"]
  12572. },
  12573. "PatchPart": {
  12574. "type": "object",
  12575. "properties": {
  12576. "id": {
  12577. "type": "string",
  12578. "pattern": "^prt.*"
  12579. },
  12580. "sessionID": {
  12581. "type": "string",
  12582. "pattern": "^ses.*"
  12583. },
  12584. "messageID": {
  12585. "type": "string",
  12586. "pattern": "^msg.*"
  12587. },
  12588. "type": {
  12589. "type": "string",
  12590. "const": "patch"
  12591. },
  12592. "hash": {
  12593. "type": "string"
  12594. },
  12595. "files": {
  12596. "type": "array",
  12597. "items": {
  12598. "type": "string"
  12599. }
  12600. }
  12601. },
  12602. "required": ["id", "sessionID", "messageID", "type", "hash", "files"]
  12603. },
  12604. "AgentPart": {
  12605. "type": "object",
  12606. "properties": {
  12607. "id": {
  12608. "type": "string",
  12609. "pattern": "^prt.*"
  12610. },
  12611. "sessionID": {
  12612. "type": "string",
  12613. "pattern": "^ses.*"
  12614. },
  12615. "messageID": {
  12616. "type": "string",
  12617. "pattern": "^msg.*"
  12618. },
  12619. "type": {
  12620. "type": "string",
  12621. "const": "agent"
  12622. },
  12623. "name": {
  12624. "type": "string"
  12625. },
  12626. "source": {
  12627. "type": "object",
  12628. "properties": {
  12629. "value": {
  12630. "type": "string"
  12631. },
  12632. "start": {
  12633. "type": "integer",
  12634. "minimum": -9007199254740991,
  12635. "maximum": 9007199254740991
  12636. },
  12637. "end": {
  12638. "type": "integer",
  12639. "minimum": -9007199254740991,
  12640. "maximum": 9007199254740991
  12641. }
  12642. },
  12643. "required": ["value", "start", "end"]
  12644. }
  12645. },
  12646. "required": ["id", "sessionID", "messageID", "type", "name"]
  12647. },
  12648. "RetryPart": {
  12649. "type": "object",
  12650. "properties": {
  12651. "id": {
  12652. "type": "string",
  12653. "pattern": "^prt.*"
  12654. },
  12655. "sessionID": {
  12656. "type": "string",
  12657. "pattern": "^ses.*"
  12658. },
  12659. "messageID": {
  12660. "type": "string",
  12661. "pattern": "^msg.*"
  12662. },
  12663. "type": {
  12664. "type": "string",
  12665. "const": "retry"
  12666. },
  12667. "attempt": {
  12668. "type": "number"
  12669. },
  12670. "error": {
  12671. "$ref": "#/components/schemas/APIError"
  12672. },
  12673. "time": {
  12674. "type": "object",
  12675. "properties": {
  12676. "created": {
  12677. "type": "number"
  12678. }
  12679. },
  12680. "required": ["created"]
  12681. }
  12682. },
  12683. "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"]
  12684. },
  12685. "CompactionPart": {
  12686. "type": "object",
  12687. "properties": {
  12688. "id": {
  12689. "type": "string",
  12690. "pattern": "^prt.*"
  12691. },
  12692. "sessionID": {
  12693. "type": "string",
  12694. "pattern": "^ses.*"
  12695. },
  12696. "messageID": {
  12697. "type": "string",
  12698. "pattern": "^msg.*"
  12699. },
  12700. "type": {
  12701. "type": "string",
  12702. "const": "compaction"
  12703. },
  12704. "auto": {
  12705. "type": "boolean"
  12706. },
  12707. "overflow": {
  12708. "type": "boolean"
  12709. }
  12710. },
  12711. "required": ["id", "sessionID", "messageID", "type", "auto"]
  12712. },
  12713. "Part": {
  12714. "anyOf": [
  12715. {
  12716. "$ref": "#/components/schemas/TextPart"
  12717. },
  12718. {
  12719. "$ref": "#/components/schemas/SubtaskPart"
  12720. },
  12721. {
  12722. "$ref": "#/components/schemas/ReasoningPart"
  12723. },
  12724. {
  12725. "$ref": "#/components/schemas/FilePart"
  12726. },
  12727. {
  12728. "$ref": "#/components/schemas/ToolPart"
  12729. },
  12730. {
  12731. "$ref": "#/components/schemas/StepStartPart"
  12732. },
  12733. {
  12734. "$ref": "#/components/schemas/StepFinishPart"
  12735. },
  12736. {
  12737. "$ref": "#/components/schemas/SnapshotPart"
  12738. },
  12739. {
  12740. "$ref": "#/components/schemas/PatchPart"
  12741. },
  12742. {
  12743. "$ref": "#/components/schemas/AgentPart"
  12744. },
  12745. {
  12746. "$ref": "#/components/schemas/RetryPart"
  12747. },
  12748. {
  12749. "$ref": "#/components/schemas/CompactionPart"
  12750. }
  12751. ]
  12752. },
  12753. "Event.message.part.updated": {
  12754. "type": "object",
  12755. "properties": {
  12756. "type": {
  12757. "type": "string",
  12758. "const": "message.part.updated"
  12759. },
  12760. "properties": {
  12761. "type": "object",
  12762. "properties": {
  12763. "sessionID": {
  12764. "type": "string",
  12765. "pattern": "^ses.*"
  12766. },
  12767. "part": {
  12768. "$ref": "#/components/schemas/Part"
  12769. },
  12770. "time": {
  12771. "type": "number"
  12772. }
  12773. },
  12774. "required": ["sessionID", "part", "time"]
  12775. }
  12776. },
  12777. "required": ["type", "properties"]
  12778. },
  12779. "Event.message.part.removed": {
  12780. "type": "object",
  12781. "properties": {
  12782. "type": {
  12783. "type": "string",
  12784. "const": "message.part.removed"
  12785. },
  12786. "properties": {
  12787. "type": "object",
  12788. "properties": {
  12789. "sessionID": {
  12790. "type": "string",
  12791. "pattern": "^ses.*"
  12792. },
  12793. "messageID": {
  12794. "type": "string",
  12795. "pattern": "^msg.*"
  12796. },
  12797. "partID": {
  12798. "type": "string",
  12799. "pattern": "^prt.*"
  12800. }
  12801. },
  12802. "required": ["sessionID", "messageID", "partID"]
  12803. }
  12804. },
  12805. "required": ["type", "properties"]
  12806. },
  12807. "PermissionAction": {
  12808. "type": "string",
  12809. "enum": ["allow", "deny", "ask"]
  12810. },
  12811. "PermissionRule": {
  12812. "type": "object",
  12813. "properties": {
  12814. "permission": {
  12815. "type": "string"
  12816. },
  12817. "pattern": {
  12818. "type": "string"
  12819. },
  12820. "action": {
  12821. "$ref": "#/components/schemas/PermissionAction"
  12822. }
  12823. },
  12824. "required": ["permission", "pattern", "action"]
  12825. },
  12826. "PermissionRuleset": {
  12827. "type": "array",
  12828. "items": {
  12829. "$ref": "#/components/schemas/PermissionRule"
  12830. }
  12831. },
  12832. "Session": {
  12833. "type": "object",
  12834. "properties": {
  12835. "id": {
  12836. "type": "string",
  12837. "pattern": "^ses.*"
  12838. },
  12839. "slug": {
  12840. "type": "string"
  12841. },
  12842. "projectID": {
  12843. "type": "string"
  12844. },
  12845. "workspaceID": {
  12846. "type": "string",
  12847. "pattern": "^wrk.*"
  12848. },
  12849. "directory": {
  12850. "type": "string"
  12851. },
  12852. "parentID": {
  12853. "type": "string",
  12854. "pattern": "^ses.*"
  12855. },
  12856. "summary": {
  12857. "type": "object",
  12858. "properties": {
  12859. "additions": {
  12860. "type": "number"
  12861. },
  12862. "deletions": {
  12863. "type": "number"
  12864. },
  12865. "files": {
  12866. "type": "number"
  12867. },
  12868. "diffs": {
  12869. "type": "array",
  12870. "items": {
  12871. "type": "object",
  12872. "properties": {
  12873. "file": {
  12874. "type": "string"
  12875. },
  12876. "additions": {
  12877. "type": "number"
  12878. },
  12879. "deletions": {
  12880. "type": "number"
  12881. },
  12882. "status": {
  12883. "type": "string",
  12884. "enum": ["added", "deleted", "modified"]
  12885. }
  12886. },
  12887. "required": ["file", "additions", "deletions"]
  12888. }
  12889. }
  12890. },
  12891. "required": ["additions", "deletions", "files"]
  12892. },
  12893. "share": {
  12894. "type": "object",
  12895. "properties": {
  12896. "url": {
  12897. "type": "string"
  12898. }
  12899. },
  12900. "required": ["url"]
  12901. },
  12902. "title": {
  12903. "type": "string"
  12904. },
  12905. "version": {
  12906. "type": "string"
  12907. },
  12908. "time": {
  12909. "type": "object",
  12910. "properties": {
  12911. "created": {
  12912. "type": "number"
  12913. },
  12914. "updated": {
  12915. "type": "number"
  12916. },
  12917. "compacting": {
  12918. "type": "number"
  12919. },
  12920. "archived": {
  12921. "type": "number"
  12922. }
  12923. },
  12924. "required": ["created", "updated"]
  12925. },
  12926. "permission": {
  12927. "$ref": "#/components/schemas/PermissionRuleset"
  12928. },
  12929. "revert": {
  12930. "type": "object",
  12931. "properties": {
  12932. "messageID": {
  12933. "type": "string",
  12934. "pattern": "^msg.*"
  12935. },
  12936. "partID": {
  12937. "type": "string",
  12938. "pattern": "^prt.*"
  12939. },
  12940. "snapshot": {
  12941. "type": "string"
  12942. },
  12943. "diff": {
  12944. "type": "string"
  12945. }
  12946. },
  12947. "required": ["messageID"]
  12948. }
  12949. },
  12950. "required": ["id", "slug", "projectID", "directory", "title", "version", "time"]
  12951. },
  12952. "Event.session.created": {
  12953. "type": "object",
  12954. "properties": {
  12955. "type": {
  12956. "type": "string",
  12957. "const": "session.created"
  12958. },
  12959. "properties": {
  12960. "type": "object",
  12961. "properties": {
  12962. "sessionID": {
  12963. "type": "string",
  12964. "pattern": "^ses.*"
  12965. },
  12966. "info": {
  12967. "$ref": "#/components/schemas/Session"
  12968. }
  12969. },
  12970. "required": ["sessionID", "info"]
  12971. }
  12972. },
  12973. "required": ["type", "properties"]
  12974. },
  12975. "Event.session.updated": {
  12976. "type": "object",
  12977. "properties": {
  12978. "type": {
  12979. "type": "string",
  12980. "const": "session.updated"
  12981. },
  12982. "properties": {
  12983. "type": "object",
  12984. "properties": {
  12985. "sessionID": {
  12986. "type": "string",
  12987. "pattern": "^ses.*"
  12988. },
  12989. "info": {
  12990. "$ref": "#/components/schemas/Session"
  12991. }
  12992. },
  12993. "required": ["sessionID", "info"]
  12994. }
  12995. },
  12996. "required": ["type", "properties"]
  12997. },
  12998. "Event.session.deleted": {
  12999. "type": "object",
  13000. "properties": {
  13001. "type": {
  13002. "type": "string",
  13003. "const": "session.deleted"
  13004. },
  13005. "properties": {
  13006. "type": "object",
  13007. "properties": {
  13008. "sessionID": {
  13009. "type": "string",
  13010. "pattern": "^ses.*"
  13011. },
  13012. "info": {
  13013. "$ref": "#/components/schemas/Session"
  13014. }
  13015. },
  13016. "required": ["sessionID", "info"]
  13017. }
  13018. },
  13019. "required": ["type", "properties"]
  13020. },
  13021. "Event": {
  13022. "anyOf": [
  13023. {
  13024. "$ref": "#/components/schemas/Event.installation.updated"
  13025. },
  13026. {
  13027. "$ref": "#/components/schemas/Event.installation.update-available"
  13028. },
  13029. {
  13030. "$ref": "#/components/schemas/Event.project.updated"
  13031. },
  13032. {
  13033. "$ref": "#/components/schemas/Event.server.instance.disposed"
  13034. },
  13035. {
  13036. "$ref": "#/components/schemas/Event.server.connected"
  13037. },
  13038. {
  13039. "$ref": "#/components/schemas/Event.global.disposed"
  13040. },
  13041. {
  13042. "$ref": "#/components/schemas/Event.global.config.updated"
  13043. },
  13044. {
  13045. "$ref": "#/components/schemas/Event.lsp.client.diagnostics"
  13046. },
  13047. {
  13048. "$ref": "#/components/schemas/Event.lsp.updated"
  13049. },
  13050. {
  13051. "$ref": "#/components/schemas/Event.tui.prompt.append"
  13052. },
  13053. {
  13054. "$ref": "#/components/schemas/Event.tui.command.execute"
  13055. },
  13056. {
  13057. "$ref": "#/components/schemas/Event.tui.toast.show"
  13058. },
  13059. {
  13060. "$ref": "#/components/schemas/Event.tui.session.select"
  13061. },
  13062. {
  13063. "$ref": "#/components/schemas/Event.mcp.tools.changed"
  13064. },
  13065. {
  13066. "$ref": "#/components/schemas/Event.mcp.browser.open.failed"
  13067. },
  13068. {
  13069. "$ref": "#/components/schemas/Event.session.network.asked"
  13070. },
  13071. {
  13072. "$ref": "#/components/schemas/Event.session.network.replied"
  13073. },
  13074. {
  13075. "$ref": "#/components/schemas/Event.session.network.rejected"
  13076. },
  13077. {
  13078. "$ref": "#/components/schemas/Event.session.network.restored"
  13079. },
  13080. {
  13081. "$ref": "#/components/schemas/Event.message.part.delta"
  13082. },
  13083. {
  13084. "$ref": "#/components/schemas/Event.permission.asked"
  13085. },
  13086. {
  13087. "$ref": "#/components/schemas/Event.permission.replied"
  13088. },
  13089. {
  13090. "$ref": "#/components/schemas/Event.question.asked"
  13091. },
  13092. {
  13093. "$ref": "#/components/schemas/Event.question.replied"
  13094. },
  13095. {
  13096. "$ref": "#/components/schemas/Event.question.rejected"
  13097. },
  13098. {
  13099. "$ref": "#/components/schemas/Event.todo.updated"
  13100. },
  13101. {
  13102. "$ref": "#/components/schemas/Event.session.status"
  13103. },
  13104. {
  13105. "$ref": "#/components/schemas/Event.session.idle"
  13106. },
  13107. {
  13108. "$ref": "#/components/schemas/Event.session.compacted"
  13109. },
  13110. {
  13111. "$ref": "#/components/schemas/Event.file.edited"
  13112. },
  13113. {
  13114. "$ref": "#/components/schemas/Event.file.watcher.updated"
  13115. },
  13116. {
  13117. "$ref": "#/components/schemas/Event.command.executed"
  13118. },
  13119. {
  13120. "$ref": "#/components/schemas/Event.session.turn.open"
  13121. },
  13122. {
  13123. "$ref": "#/components/schemas/Event.session.turn.close"
  13124. },
  13125. {
  13126. "$ref": "#/components/schemas/Event.session.diff"
  13127. },
  13128. {
  13129. "$ref": "#/components/schemas/Event.session.error"
  13130. },
  13131. {
  13132. "$ref": "#/components/schemas/Event.vcs.branch.updated"
  13133. },
  13134. {
  13135. "$ref": "#/components/schemas/Event.kilo-sessions.remote-status-changed"
  13136. },
  13137. {
  13138. "$ref": "#/components/schemas/Event.workspace.ready"
  13139. },
  13140. {
  13141. "$ref": "#/components/schemas/Event.workspace.failed"
  13142. },
  13143. {
  13144. "$ref": "#/components/schemas/Event.pty.created"
  13145. },
  13146. {
  13147. "$ref": "#/components/schemas/Event.pty.updated"
  13148. },
  13149. {
  13150. "$ref": "#/components/schemas/Event.pty.exited"
  13151. },
  13152. {
  13153. "$ref": "#/components/schemas/Event.pty.deleted"
  13154. },
  13155. {
  13156. "$ref": "#/components/schemas/Event.worktree.ready"
  13157. },
  13158. {
  13159. "$ref": "#/components/schemas/Event.worktree.failed"
  13160. },
  13161. {
  13162. "$ref": "#/components/schemas/Event.message.updated"
  13163. },
  13164. {
  13165. "$ref": "#/components/schemas/Event.message.removed"
  13166. },
  13167. {
  13168. "$ref": "#/components/schemas/Event.message.part.updated"
  13169. },
  13170. {
  13171. "$ref": "#/components/schemas/Event.message.part.removed"
  13172. },
  13173. {
  13174. "$ref": "#/components/schemas/Event.session.created"
  13175. },
  13176. {
  13177. "$ref": "#/components/schemas/Event.session.updated"
  13178. },
  13179. {
  13180. "$ref": "#/components/schemas/Event.session.deleted"
  13181. }
  13182. ]
  13183. },
  13184. "GlobalEvent": {
  13185. "type": "object",
  13186. "properties": {
  13187. "directory": {
  13188. "type": "string"
  13189. },
  13190. "payload": {
  13191. "$ref": "#/components/schemas/Event"
  13192. }
  13193. },
  13194. "required": ["directory", "payload"]
  13195. },
  13196. "SyncEvent.message.updated": {
  13197. "type": "object",
  13198. "properties": {
  13199. "type": {
  13200. "type": "string",
  13201. "const": "message.updated.1"
  13202. },
  13203. "aggregate": {
  13204. "type": "string",
  13205. "const": "sessionID"
  13206. },
  13207. "data": {
  13208. "type": "object",
  13209. "properties": {
  13210. "sessionID": {
  13211. "type": "string",
  13212. "pattern": "^ses.*"
  13213. },
  13214. "info": {
  13215. "$ref": "#/components/schemas/Message"
  13216. }
  13217. },
  13218. "required": ["sessionID", "info"]
  13219. }
  13220. },
  13221. "required": ["type", "aggregate", "data"]
  13222. },
  13223. "SyncEvent.message.removed": {
  13224. "type": "object",
  13225. "properties": {
  13226. "type": {
  13227. "type": "string",
  13228. "const": "message.removed.1"
  13229. },
  13230. "aggregate": {
  13231. "type": "string",
  13232. "const": "sessionID"
  13233. },
  13234. "data": {
  13235. "type": "object",
  13236. "properties": {
  13237. "sessionID": {
  13238. "type": "string",
  13239. "pattern": "^ses.*"
  13240. },
  13241. "messageID": {
  13242. "type": "string",
  13243. "pattern": "^msg.*"
  13244. }
  13245. },
  13246. "required": ["sessionID", "messageID"]
  13247. }
  13248. },
  13249. "required": ["type", "aggregate", "data"]
  13250. },
  13251. "SyncEvent.message.part.updated": {
  13252. "type": "object",
  13253. "properties": {
  13254. "type": {
  13255. "type": "string",
  13256. "const": "message.part.updated.1"
  13257. },
  13258. "aggregate": {
  13259. "type": "string",
  13260. "const": "sessionID"
  13261. },
  13262. "data": {
  13263. "type": "object",
  13264. "properties": {
  13265. "sessionID": {
  13266. "type": "string",
  13267. "pattern": "^ses.*"
  13268. },
  13269. "part": {
  13270. "$ref": "#/components/schemas/Part"
  13271. },
  13272. "time": {
  13273. "type": "number"
  13274. }
  13275. },
  13276. "required": ["sessionID", "part", "time"]
  13277. }
  13278. },
  13279. "required": ["type", "aggregate", "data"]
  13280. },
  13281. "SyncEvent.message.part.removed": {
  13282. "type": "object",
  13283. "properties": {
  13284. "type": {
  13285. "type": "string",
  13286. "const": "message.part.removed.1"
  13287. },
  13288. "aggregate": {
  13289. "type": "string",
  13290. "const": "sessionID"
  13291. },
  13292. "data": {
  13293. "type": "object",
  13294. "properties": {
  13295. "sessionID": {
  13296. "type": "string",
  13297. "pattern": "^ses.*"
  13298. },
  13299. "messageID": {
  13300. "type": "string",
  13301. "pattern": "^msg.*"
  13302. },
  13303. "partID": {
  13304. "type": "string",
  13305. "pattern": "^prt.*"
  13306. }
  13307. },
  13308. "required": ["sessionID", "messageID", "partID"]
  13309. }
  13310. },
  13311. "required": ["type", "aggregate", "data"]
  13312. },
  13313. "SyncEvent.session.created": {
  13314. "type": "object",
  13315. "properties": {
  13316. "type": {
  13317. "type": "string",
  13318. "const": "session.created.1"
  13319. },
  13320. "aggregate": {
  13321. "type": "string",
  13322. "const": "sessionID"
  13323. },
  13324. "data": {
  13325. "type": "object",
  13326. "properties": {
  13327. "sessionID": {
  13328. "type": "string",
  13329. "pattern": "^ses.*"
  13330. },
  13331. "info": {
  13332. "$ref": "#/components/schemas/Session"
  13333. }
  13334. },
  13335. "required": ["sessionID", "info"]
  13336. }
  13337. },
  13338. "required": ["type", "aggregate", "data"]
  13339. },
  13340. "SyncEvent.session.updated": {
  13341. "type": "object",
  13342. "properties": {
  13343. "type": {
  13344. "type": "string",
  13345. "const": "session.updated.1"
  13346. },
  13347. "aggregate": {
  13348. "type": "string",
  13349. "const": "sessionID"
  13350. },
  13351. "data": {
  13352. "type": "object",
  13353. "properties": {
  13354. "sessionID": {
  13355. "type": "string",
  13356. "pattern": "^ses.*"
  13357. },
  13358. "info": {
  13359. "type": "object",
  13360. "properties": {
  13361. "id": {
  13362. "anyOf": [
  13363. {
  13364. "type": "string",
  13365. "pattern": "^ses.*"
  13366. },
  13367. {
  13368. "type": "null"
  13369. }
  13370. ]
  13371. },
  13372. "slug": {
  13373. "anyOf": [
  13374. {
  13375. "type": "string"
  13376. },
  13377. {
  13378. "type": "null"
  13379. }
  13380. ]
  13381. },
  13382. "projectID": {
  13383. "anyOf": [
  13384. {
  13385. "type": "string"
  13386. },
  13387. {
  13388. "type": "null"
  13389. }
  13390. ]
  13391. },
  13392. "workspaceID": {
  13393. "anyOf": [
  13394. {
  13395. "type": "string",
  13396. "pattern": "^wrk.*"
  13397. },
  13398. {
  13399. "type": "null"
  13400. }
  13401. ]
  13402. },
  13403. "directory": {
  13404. "anyOf": [
  13405. {
  13406. "type": "string"
  13407. },
  13408. {
  13409. "type": "null"
  13410. }
  13411. ]
  13412. },
  13413. "parentID": {
  13414. "anyOf": [
  13415. {
  13416. "type": "string",
  13417. "pattern": "^ses.*"
  13418. },
  13419. {
  13420. "type": "null"
  13421. }
  13422. ]
  13423. },
  13424. "summary": {
  13425. "anyOf": [
  13426. {
  13427. "type": "object",
  13428. "properties": {
  13429. "additions": {
  13430. "type": "number"
  13431. },
  13432. "deletions": {
  13433. "type": "number"
  13434. },
  13435. "files": {
  13436. "type": "number"
  13437. },
  13438. "diffs": {
  13439. "type": "array",
  13440. "items": {
  13441. "type": "object",
  13442. "properties": {
  13443. "file": {
  13444. "type": "string"
  13445. },
  13446. "additions": {
  13447. "type": "number"
  13448. },
  13449. "deletions": {
  13450. "type": "number"
  13451. },
  13452. "status": {
  13453. "type": "string",
  13454. "enum": ["added", "deleted", "modified"]
  13455. }
  13456. },
  13457. "required": ["file", "additions", "deletions"]
  13458. }
  13459. }
  13460. },
  13461. "required": ["additions", "deletions", "files"]
  13462. },
  13463. {
  13464. "type": "null"
  13465. }
  13466. ]
  13467. },
  13468. "share": {
  13469. "type": "object",
  13470. "properties": {
  13471. "url": {
  13472. "anyOf": [
  13473. {
  13474. "type": "string"
  13475. },
  13476. {
  13477. "type": "null"
  13478. }
  13479. ]
  13480. }
  13481. },
  13482. "required": ["url"]
  13483. },
  13484. "title": {
  13485. "anyOf": [
  13486. {
  13487. "type": "string"
  13488. },
  13489. {
  13490. "type": "null"
  13491. }
  13492. ]
  13493. },
  13494. "version": {
  13495. "anyOf": [
  13496. {
  13497. "type": "string"
  13498. },
  13499. {
  13500. "type": "null"
  13501. }
  13502. ]
  13503. },
  13504. "time": {
  13505. "type": "object",
  13506. "properties": {
  13507. "created": {
  13508. "anyOf": [
  13509. {
  13510. "type": "number"
  13511. },
  13512. {
  13513. "type": "null"
  13514. }
  13515. ]
  13516. },
  13517. "updated": {
  13518. "anyOf": [
  13519. {
  13520. "type": "number"
  13521. },
  13522. {
  13523. "type": "null"
  13524. }
  13525. ]
  13526. },
  13527. "compacting": {
  13528. "anyOf": [
  13529. {
  13530. "type": "number"
  13531. },
  13532. {
  13533. "type": "null"
  13534. }
  13535. ]
  13536. },
  13537. "archived": {
  13538. "anyOf": [
  13539. {
  13540. "type": "number"
  13541. },
  13542. {
  13543. "type": "null"
  13544. }
  13545. ]
  13546. }
  13547. },
  13548. "required": ["created", "updated", "compacting", "archived"]
  13549. },
  13550. "permission": {
  13551. "anyOf": [
  13552. {
  13553. "$ref": "#/components/schemas/PermissionRuleset"
  13554. },
  13555. {
  13556. "type": "null"
  13557. }
  13558. ]
  13559. },
  13560. "revert": {
  13561. "anyOf": [
  13562. {
  13563. "type": "object",
  13564. "properties": {
  13565. "messageID": {
  13566. "type": "string",
  13567. "pattern": "^msg.*"
  13568. },
  13569. "partID": {
  13570. "type": "string",
  13571. "pattern": "^prt.*"
  13572. },
  13573. "snapshot": {
  13574. "type": "string"
  13575. },
  13576. "diff": {
  13577. "type": "string"
  13578. }
  13579. },
  13580. "required": ["messageID"]
  13581. },
  13582. {
  13583. "type": "null"
  13584. }
  13585. ]
  13586. }
  13587. },
  13588. "required": [
  13589. "id",
  13590. "slug",
  13591. "projectID",
  13592. "workspaceID",
  13593. "directory",
  13594. "parentID",
  13595. "summary",
  13596. "title",
  13597. "version",
  13598. "permission",
  13599. "revert"
  13600. ]
  13601. }
  13602. },
  13603. "required": ["sessionID", "info"]
  13604. }
  13605. },
  13606. "required": ["type", "aggregate", "data"]
  13607. },
  13608. "SyncEvent.session.deleted": {
  13609. "type": "object",
  13610. "properties": {
  13611. "type": {
  13612. "type": "string",
  13613. "const": "session.deleted.1"
  13614. },
  13615. "aggregate": {
  13616. "type": "string",
  13617. "const": "sessionID"
  13618. },
  13619. "data": {
  13620. "type": "object",
  13621. "properties": {
  13622. "sessionID": {
  13623. "type": "string",
  13624. "pattern": "^ses.*"
  13625. },
  13626. "info": {
  13627. "$ref": "#/components/schemas/Session"
  13628. }
  13629. },
  13630. "required": ["sessionID", "info"]
  13631. }
  13632. },
  13633. "required": ["type", "aggregate", "data"]
  13634. },
  13635. "SyncEvent": {
  13636. "type": "object",
  13637. "properties": {
  13638. "payload": {
  13639. "$ref": "#/components/schemas/SyncEvent"
  13640. }
  13641. },
  13642. "required": ["payload"]
  13643. },
  13644. "LogLevel": {
  13645. "description": "Log level",
  13646. "type": "string",
  13647. "enum": ["DEBUG", "INFO", "WARN", "ERROR"]
  13648. },
  13649. "ServerConfig": {
  13650. "description": "Server configuration for kilo serve and web commands",
  13651. "type": "object",
  13652. "properties": {
  13653. "port": {
  13654. "description": "Port to listen on",
  13655. "type": "integer",
  13656. "exclusiveMinimum": 0,
  13657. "maximum": 9007199254740991
  13658. },
  13659. "hostname": {
  13660. "description": "Hostname to listen on",
  13661. "type": "string"
  13662. },
  13663. "mdns": {
  13664. "description": "Enable mDNS service discovery",
  13665. "type": "boolean"
  13666. },
  13667. "mdnsDomain": {
  13668. "description": "Custom domain name for mDNS service (default: kilo.local)",
  13669. "type": "string"
  13670. },
  13671. "cors": {
  13672. "description": "Additional domains to allow for CORS",
  13673. "type": "array",
  13674. "items": {
  13675. "type": "string"
  13676. }
  13677. }
  13678. },
  13679. "additionalProperties": false
  13680. },
  13681. "PermissionActionConfig": {
  13682. "anyOf": [
  13683. {
  13684. "type": "string",
  13685. "enum": ["ask", "allow", "deny"]
  13686. },
  13687. {
  13688. "type": "null"
  13689. }
  13690. ]
  13691. },
  13692. "PermissionObjectConfig": {
  13693. "type": "object",
  13694. "propertyNames": {
  13695. "type": "string"
  13696. },
  13697. "additionalProperties": {
  13698. "$ref": "#/components/schemas/PermissionActionConfig"
  13699. }
  13700. },
  13701. "PermissionRuleConfig": {
  13702. "anyOf": [
  13703. {
  13704. "$ref": "#/components/schemas/PermissionActionConfig"
  13705. },
  13706. {
  13707. "$ref": "#/components/schemas/PermissionObjectConfig"
  13708. }
  13709. ]
  13710. },
  13711. "PermissionConfig": {
  13712. "anyOf": [
  13713. {
  13714. "type": "object",
  13715. "properties": {
  13716. "__originalKeys": {
  13717. "type": "array",
  13718. "items": {
  13719. "type": "string"
  13720. }
  13721. },
  13722. "read": {
  13723. "$ref": "#/components/schemas/PermissionRuleConfig"
  13724. },
  13725. "edit": {
  13726. "$ref": "#/components/schemas/PermissionRuleConfig"
  13727. },
  13728. "glob": {
  13729. "$ref": "#/components/schemas/PermissionRuleConfig"
  13730. },
  13731. "grep": {
  13732. "$ref": "#/components/schemas/PermissionRuleConfig"
  13733. },
  13734. "list": {
  13735. "$ref": "#/components/schemas/PermissionRuleConfig"
  13736. },
  13737. "bash": {
  13738. "$ref": "#/components/schemas/PermissionRuleConfig"
  13739. },
  13740. "task": {
  13741. "$ref": "#/components/schemas/PermissionRuleConfig"
  13742. },
  13743. "external_directory": {
  13744. "$ref": "#/components/schemas/PermissionRuleConfig"
  13745. },
  13746. "todowrite": {
  13747. "$ref": "#/components/schemas/PermissionActionConfig"
  13748. },
  13749. "question": {
  13750. "$ref": "#/components/schemas/PermissionActionConfig"
  13751. },
  13752. "webfetch": {
  13753. "$ref": "#/components/schemas/PermissionActionConfig"
  13754. },
  13755. "websearch": {
  13756. "$ref": "#/components/schemas/PermissionActionConfig"
  13757. },
  13758. "codesearch": {
  13759. "$ref": "#/components/schemas/PermissionActionConfig"
  13760. },
  13761. "lsp": {
  13762. "$ref": "#/components/schemas/PermissionRuleConfig"
  13763. },
  13764. "doom_loop": {
  13765. "$ref": "#/components/schemas/PermissionActionConfig"
  13766. },
  13767. "skill": {
  13768. "$ref": "#/components/schemas/PermissionRuleConfig"
  13769. }
  13770. },
  13771. "additionalProperties": {
  13772. "$ref": "#/components/schemas/PermissionRuleConfig"
  13773. }
  13774. },
  13775. {
  13776. "$ref": "#/components/schemas/PermissionActionConfig"
  13777. }
  13778. ]
  13779. },
  13780. "AgentConfig": {
  13781. "type": "object",
  13782. "properties": {
  13783. "model": {
  13784. "anyOf": [
  13785. {
  13786. "type": "string"
  13787. },
  13788. {
  13789. "type": "null"
  13790. }
  13791. ]
  13792. },
  13793. "variant": {
  13794. "description": "Default model variant for this agent (applies only when using the agent's configured model).",
  13795. "type": "string"
  13796. },
  13797. "temperature": {
  13798. "type": "number"
  13799. },
  13800. "top_p": {
  13801. "type": "number"
  13802. },
  13803. "prompt": {
  13804. "type": "string"
  13805. },
  13806. "tools": {
  13807. "description": "@deprecated Use 'permission' field instead",
  13808. "type": "object",
  13809. "propertyNames": {
  13810. "type": "string"
  13811. },
  13812. "additionalProperties": {
  13813. "type": "boolean"
  13814. }
  13815. },
  13816. "disable": {
  13817. "type": "boolean"
  13818. },
  13819. "description": {
  13820. "description": "Description of when to use the agent",
  13821. "type": "string"
  13822. },
  13823. "mode": {
  13824. "type": "string",
  13825. "enum": ["subagent", "primary", "all"]
  13826. },
  13827. "hidden": {
  13828. "description": "Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)",
  13829. "type": "boolean"
  13830. },
  13831. "options": {
  13832. "type": "object",
  13833. "propertyNames": {
  13834. "type": "string"
  13835. },
  13836. "additionalProperties": {}
  13837. },
  13838. "color": {
  13839. "description": "Hex color code (e.g., #FF5733) or theme color (e.g., primary)",
  13840. "anyOf": [
  13841. {
  13842. "type": "string",
  13843. "pattern": "^#[0-9a-fA-F]{6}$"
  13844. },
  13845. {
  13846. "type": "string",
  13847. "enum": ["primary", "secondary", "accent", "success", "warning", "error", "info"]
  13848. }
  13849. ]
  13850. },
  13851. "steps": {
  13852. "description": "Maximum number of agentic iterations before forcing text-only response",
  13853. "type": "integer",
  13854. "exclusiveMinimum": 0,
  13855. "maximum": 9007199254740991
  13856. },
  13857. "maxSteps": {
  13858. "description": "@deprecated Use 'steps' field instead.",
  13859. "type": "integer",
  13860. "exclusiveMinimum": 0,
  13861. "maximum": 9007199254740991
  13862. },
  13863. "permission": {
  13864. "$ref": "#/components/schemas/PermissionConfig"
  13865. }
  13866. },
  13867. "additionalProperties": {}
  13868. },
  13869. "ProviderConfig": {
  13870. "type": "object",
  13871. "properties": {
  13872. "api": {
  13873. "type": "string"
  13874. },
  13875. "name": {
  13876. "type": "string"
  13877. },
  13878. "env": {
  13879. "type": "array",
  13880. "items": {
  13881. "type": "string"
  13882. }
  13883. },
  13884. "id": {
  13885. "type": "string"
  13886. },
  13887. "npm": {
  13888. "type": "string"
  13889. },
  13890. "models": {
  13891. "type": "object",
  13892. "propertyNames": {
  13893. "type": "string"
  13894. },
  13895. "additionalProperties": {
  13896. "type": "object",
  13897. "properties": {
  13898. "id": {
  13899. "type": "string"
  13900. },
  13901. "name": {
  13902. "type": "string"
  13903. },
  13904. "family": {
  13905. "type": "string"
  13906. },
  13907. "release_date": {
  13908. "type": "string"
  13909. },
  13910. "attachment": {
  13911. "type": "boolean"
  13912. },
  13913. "reasoning": {
  13914. "type": "boolean"
  13915. },
  13916. "temperature": {
  13917. "type": "boolean"
  13918. },
  13919. "tool_call": {
  13920. "type": "boolean"
  13921. },
  13922. "interleaved": {
  13923. "anyOf": [
  13924. {
  13925. "type": "boolean",
  13926. "const": true
  13927. },
  13928. {
  13929. "type": "object",
  13930. "properties": {
  13931. "field": {
  13932. "type": "string",
  13933. "enum": ["reasoning_content", "reasoning_details"]
  13934. }
  13935. },
  13936. "required": ["field"],
  13937. "additionalProperties": false
  13938. }
  13939. ]
  13940. },
  13941. "cost": {
  13942. "type": "object",
  13943. "properties": {
  13944. "input": {
  13945. "type": "number"
  13946. },
  13947. "output": {
  13948. "type": "number"
  13949. },
  13950. "cache_read": {
  13951. "type": "number"
  13952. },
  13953. "cache_write": {
  13954. "type": "number"
  13955. },
  13956. "context_over_200k": {
  13957. "type": "object",
  13958. "properties": {
  13959. "input": {
  13960. "type": "number"
  13961. },
  13962. "output": {
  13963. "type": "number"
  13964. },
  13965. "cache_read": {
  13966. "type": "number"
  13967. },
  13968. "cache_write": {
  13969. "type": "number"
  13970. }
  13971. },
  13972. "required": ["input", "output"]
  13973. }
  13974. },
  13975. "required": ["input", "output"]
  13976. },
  13977. "limit": {
  13978. "type": "object",
  13979. "properties": {
  13980. "context": {
  13981. "type": "number"
  13982. },
  13983. "input": {
  13984. "type": "number"
  13985. },
  13986. "output": {
  13987. "type": "number"
  13988. }
  13989. },
  13990. "required": ["context", "output"]
  13991. },
  13992. "modalities": {
  13993. "type": "object",
  13994. "properties": {
  13995. "input": {
  13996. "type": "array",
  13997. "items": {
  13998. "type": "string",
  13999. "enum": ["text", "audio", "image", "video", "pdf"]
  14000. }
  14001. },
  14002. "output": {
  14003. "type": "array",
  14004. "items": {
  14005. "type": "string",
  14006. "enum": ["text", "audio", "image", "video", "pdf"]
  14007. }
  14008. }
  14009. },
  14010. "required": ["input", "output"]
  14011. },
  14012. "recommendedIndex": {
  14013. "type": "number"
  14014. },
  14015. "prompt": {
  14016. "type": "string",
  14017. "enum": ["codex", "gemini", "beast", "anthropic", "trinity", "anthropic_without_todo"]
  14018. },
  14019. "isFree": {
  14020. "type": "boolean"
  14021. },
  14022. "ai_sdk_provider": {
  14023. "type": "string",
  14024. "enum": ["anthropic", "openai", "openai-compatible", "openrouter"]
  14025. },
  14026. "experimental": {
  14027. "type": "boolean"
  14028. },
  14029. "status": {
  14030. "type": "string",
  14031. "enum": ["alpha", "beta", "deprecated"]
  14032. },
  14033. "options": {
  14034. "type": "object",
  14035. "propertyNames": {
  14036. "type": "string"
  14037. },
  14038. "additionalProperties": {}
  14039. },
  14040. "headers": {
  14041. "type": "object",
  14042. "propertyNames": {
  14043. "type": "string"
  14044. },
  14045. "additionalProperties": {
  14046. "type": "string"
  14047. }
  14048. },
  14049. "provider": {
  14050. "type": "object",
  14051. "properties": {
  14052. "npm": {
  14053. "type": "string"
  14054. },
  14055. "api": {
  14056. "type": "string"
  14057. }
  14058. }
  14059. },
  14060. "variants": {
  14061. "description": "Variant-specific configuration",
  14062. "type": "object",
  14063. "propertyNames": {
  14064. "type": "string"
  14065. },
  14066. "additionalProperties": {
  14067. "type": "object",
  14068. "properties": {
  14069. "disabled": {
  14070. "description": "Disable this variant for the model",
  14071. "type": "boolean"
  14072. }
  14073. },
  14074. "additionalProperties": {}
  14075. }
  14076. }
  14077. }
  14078. }
  14079. },
  14080. "whitelist": {
  14081. "type": "array",
  14082. "items": {
  14083. "type": "string"
  14084. }
  14085. },
  14086. "blacklist": {
  14087. "type": "array",
  14088. "items": {
  14089. "type": "string"
  14090. }
  14091. },
  14092. "options": {
  14093. "type": "object",
  14094. "properties": {
  14095. "apiKey": {
  14096. "type": "string"
  14097. },
  14098. "baseURL": {
  14099. "type": "string"
  14100. },
  14101. "enterpriseUrl": {
  14102. "description": "GitHub Enterprise URL for copilot authentication",
  14103. "type": "string"
  14104. },
  14105. "setCacheKey": {
  14106. "description": "Enable promptCacheKey for this provider (default false)",
  14107. "type": "boolean"
  14108. },
  14109. "timeout": {
  14110. "description": "Timeout in milliseconds for requests to this provider. Default is 120000 (2 minutes). Set to false to disable timeout.",
  14111. "anyOf": [
  14112. {
  14113. "description": "Timeout in milliseconds for requests to this provider. Default is 120000 (2 minutes). Set to false to disable timeout.",
  14114. "type": "integer",
  14115. "exclusiveMinimum": 0,
  14116. "maximum": 9007199254740991
  14117. },
  14118. {
  14119. "description": "Disable timeout for this provider entirely.",
  14120. "type": "boolean",
  14121. "const": false
  14122. }
  14123. ]
  14124. },
  14125. "chunkTimeout": {
  14126. "description": "Timeout in milliseconds between streamed SSE chunks for this provider. If no chunk arrives within this window, the request is aborted.",
  14127. "type": "integer",
  14128. "exclusiveMinimum": 0,
  14129. "maximum": 9007199254740991
  14130. }
  14131. },
  14132. "additionalProperties": {}
  14133. }
  14134. },
  14135. "additionalProperties": false
  14136. },
  14137. "McpLocalConfig": {
  14138. "type": "object",
  14139. "properties": {
  14140. "type": {
  14141. "description": "Type of MCP server connection",
  14142. "type": "string",
  14143. "const": "local"
  14144. },
  14145. "command": {
  14146. "description": "Command and arguments to run the MCP server",
  14147. "type": "array",
  14148. "items": {
  14149. "type": "string"
  14150. }
  14151. },
  14152. "environment": {
  14153. "description": "Environment variables to set when running the MCP server",
  14154. "type": "object",
  14155. "propertyNames": {
  14156. "type": "string"
  14157. },
  14158. "additionalProperties": {
  14159. "type": "string"
  14160. }
  14161. },
  14162. "enabled": {
  14163. "description": "Enable or disable the MCP server on startup",
  14164. "type": "boolean"
  14165. },
  14166. "timeout": {
  14167. "description": "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified.",
  14168. "type": "integer",
  14169. "exclusiveMinimum": 0,
  14170. "maximum": 9007199254740991
  14171. }
  14172. },
  14173. "required": ["type", "command"],
  14174. "additionalProperties": false
  14175. },
  14176. "McpOAuthConfig": {
  14177. "type": "object",
  14178. "properties": {
  14179. "clientId": {
  14180. "description": "OAuth client ID. If not provided, dynamic client registration (RFC 7591) will be attempted.",
  14181. "type": "string"
  14182. },
  14183. "clientSecret": {
  14184. "description": "OAuth client secret (if required by the authorization server)",
  14185. "type": "string"
  14186. },
  14187. "scope": {
  14188. "description": "OAuth scopes to request during authorization",
  14189. "type": "string"
  14190. }
  14191. },
  14192. "additionalProperties": false
  14193. },
  14194. "McpRemoteConfig": {
  14195. "type": "object",
  14196. "properties": {
  14197. "type": {
  14198. "description": "Type of MCP server connection",
  14199. "type": "string",
  14200. "const": "remote"
  14201. },
  14202. "url": {
  14203. "description": "URL of the remote MCP server",
  14204. "type": "string"
  14205. },
  14206. "enabled": {
  14207. "description": "Enable or disable the MCP server on startup",
  14208. "type": "boolean"
  14209. },
  14210. "headers": {
  14211. "description": "Headers to send with the request",
  14212. "type": "object",
  14213. "propertyNames": {
  14214. "type": "string"
  14215. },
  14216. "additionalProperties": {
  14217. "type": "string"
  14218. }
  14219. },
  14220. "oauth": {
  14221. "description": "OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection.",
  14222. "anyOf": [
  14223. {
  14224. "$ref": "#/components/schemas/McpOAuthConfig"
  14225. },
  14226. {
  14227. "type": "boolean",
  14228. "const": false
  14229. }
  14230. ]
  14231. },
  14232. "timeout": {
  14233. "description": "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified.",
  14234. "type": "integer",
  14235. "exclusiveMinimum": 0,
  14236. "maximum": 9007199254740991
  14237. }
  14238. },
  14239. "required": ["type", "url"],
  14240. "additionalProperties": false
  14241. },
  14242. "LayoutConfig": {
  14243. "description": "@deprecated Always uses stretch layout.",
  14244. "type": "string",
  14245. "enum": ["auto", "stretch"]
  14246. },
  14247. "Config": {
  14248. "type": "object",
  14249. "properties": {
  14250. "$schema": {
  14251. "description": "JSON schema reference for configuration validation",
  14252. "type": "string"
  14253. },
  14254. "logLevel": {
  14255. "$ref": "#/components/schemas/LogLevel"
  14256. },
  14257. "server": {
  14258. "$ref": "#/components/schemas/ServerConfig"
  14259. },
  14260. "command": {
  14261. "description": "Command configuration, see https://kilo.ai/docs/commands",
  14262. "type": "object",
  14263. "propertyNames": {
  14264. "type": "string"
  14265. },
  14266. "additionalProperties": {
  14267. "type": "object",
  14268. "properties": {
  14269. "template": {
  14270. "type": "string"
  14271. },
  14272. "description": {
  14273. "type": "string"
  14274. },
  14275. "agent": {
  14276. "type": "string"
  14277. },
  14278. "model": {
  14279. "type": "string"
  14280. },
  14281. "subtask": {
  14282. "type": "boolean"
  14283. }
  14284. },
  14285. "required": ["template"]
  14286. }
  14287. },
  14288. "skills": {
  14289. "description": "Additional skill folder paths",
  14290. "type": "object",
  14291. "properties": {
  14292. "paths": {
  14293. "description": "Additional paths to skill folders",
  14294. "type": "array",
  14295. "items": {
  14296. "type": "string"
  14297. }
  14298. },
  14299. "urls": {
  14300. "description": "URLs to fetch skills from (e.g., https://example.com/.well-known/skills/)",
  14301. "type": "array",
  14302. "items": {
  14303. "type": "string"
  14304. }
  14305. }
  14306. }
  14307. },
  14308. "watcher": {
  14309. "type": "object",
  14310. "properties": {
  14311. "ignore": {
  14312. "type": "array",
  14313. "items": {
  14314. "type": "string"
  14315. }
  14316. }
  14317. }
  14318. },
  14319. "snapshot": {
  14320. "description": "Enable or disable snapshot tracking. When false, filesystem snapshots are not recorded and undoing or reverting will not undo/redo file changes. Defaults to true.",
  14321. "type": "boolean"
  14322. },
  14323. "plugin": {
  14324. "type": "array",
  14325. "items": {
  14326. "anyOf": [
  14327. {
  14328. "type": "string"
  14329. },
  14330. {
  14331. "type": "array",
  14332. "prefixItems": [
  14333. {
  14334. "type": "string"
  14335. },
  14336. {
  14337. "type": "object",
  14338. "propertyNames": {
  14339. "type": "string"
  14340. },
  14341. "additionalProperties": {}
  14342. }
  14343. ]
  14344. }
  14345. ]
  14346. }
  14347. },
  14348. "share": {
  14349. "description": "Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing",
  14350. "type": "string",
  14351. "enum": ["manual", "auto", "disabled"]
  14352. },
  14353. "autoshare": {
  14354. "description": "@deprecated Use 'share' field instead. Share newly created sessions automatically",
  14355. "type": "boolean"
  14356. },
  14357. "remote_control": {
  14358. "description": "Enable remote control of sessions via Kilo Cloud. Equivalent to running /remote on startup.",
  14359. "type": "boolean"
  14360. },
  14361. "autoupdate": {
  14362. "description": "Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications",
  14363. "anyOf": [
  14364. {
  14365. "type": "boolean"
  14366. },
  14367. {
  14368. "type": "string",
  14369. "const": "notify"
  14370. }
  14371. ]
  14372. },
  14373. "disabled_providers": {
  14374. "description": "Disable providers that are loaded automatically",
  14375. "type": "array",
  14376. "items": {
  14377. "type": "string"
  14378. }
  14379. },
  14380. "enabled_providers": {
  14381. "description": "When set, ONLY these providers will be enabled. All other providers will be ignored",
  14382. "type": "array",
  14383. "items": {
  14384. "type": "string"
  14385. }
  14386. },
  14387. "model": {
  14388. "description": "Model to use in the format of provider/model, eg anthropic/claude-2",
  14389. "anyOf": [
  14390. {
  14391. "type": "string"
  14392. },
  14393. {
  14394. "type": "null"
  14395. }
  14396. ]
  14397. },
  14398. "small_model": {
  14399. "description": "Small model to use for tasks like title generation in the format of provider/model",
  14400. "anyOf": [
  14401. {
  14402. "type": "string"
  14403. },
  14404. {
  14405. "type": "null"
  14406. }
  14407. ]
  14408. },
  14409. "default_agent": {
  14410. "description": "Default agent to use when none is specified. Must be a primary agent. Falls back to 'code' if not set or if the specified agent is invalid.",
  14411. "type": "string"
  14412. },
  14413. "username": {
  14414. "description": "Custom username to display in conversations instead of system username",
  14415. "type": "string"
  14416. },
  14417. "mode": {
  14418. "description": "@deprecated Use `agent` field instead.",
  14419. "type": "object",
  14420. "properties": {
  14421. "build": {
  14422. "$ref": "#/components/schemas/AgentConfig"
  14423. },
  14424. "plan": {
  14425. "$ref": "#/components/schemas/AgentConfig"
  14426. }
  14427. },
  14428. "additionalProperties": {
  14429. "$ref": "#/components/schemas/AgentConfig"
  14430. }
  14431. },
  14432. "agent": {
  14433. "description": "Agent configuration, see https://kilo.ai/docs/agents",
  14434. "type": "object",
  14435. "properties": {
  14436. "plan": {
  14437. "$ref": "#/components/schemas/AgentConfig"
  14438. },
  14439. "build": {
  14440. "$ref": "#/components/schemas/AgentConfig"
  14441. },
  14442. "debug": {
  14443. "$ref": "#/components/schemas/AgentConfig"
  14444. },
  14445. "orchestrator": {
  14446. "$ref": "#/components/schemas/AgentConfig"
  14447. },
  14448. "ask": {
  14449. "$ref": "#/components/schemas/AgentConfig"
  14450. },
  14451. "general": {
  14452. "$ref": "#/components/schemas/AgentConfig"
  14453. },
  14454. "explore": {
  14455. "$ref": "#/components/schemas/AgentConfig"
  14456. },
  14457. "title": {
  14458. "$ref": "#/components/schemas/AgentConfig"
  14459. },
  14460. "summary": {
  14461. "$ref": "#/components/schemas/AgentConfig"
  14462. },
  14463. "compaction": {
  14464. "$ref": "#/components/schemas/AgentConfig"
  14465. }
  14466. },
  14467. "additionalProperties": {
  14468. "$ref": "#/components/schemas/AgentConfig"
  14469. }
  14470. },
  14471. "provider": {
  14472. "description": "Custom provider configurations and model overrides",
  14473. "type": "object",
  14474. "propertyNames": {
  14475. "type": "string"
  14476. },
  14477. "additionalProperties": {
  14478. "$ref": "#/components/schemas/ProviderConfig"
  14479. }
  14480. },
  14481. "mcp": {
  14482. "description": "MCP (Model Context Protocol) server configurations",
  14483. "type": "object",
  14484. "propertyNames": {
  14485. "type": "string"
  14486. },
  14487. "additionalProperties": {
  14488. "anyOf": [
  14489. {
  14490. "anyOf": [
  14491. {
  14492. "$ref": "#/components/schemas/McpLocalConfig"
  14493. },
  14494. {
  14495. "$ref": "#/components/schemas/McpRemoteConfig"
  14496. }
  14497. ]
  14498. },
  14499. {
  14500. "type": "object",
  14501. "properties": {
  14502. "enabled": {
  14503. "type": "boolean"
  14504. }
  14505. },
  14506. "required": ["enabled"],
  14507. "additionalProperties": false
  14508. }
  14509. ]
  14510. }
  14511. },
  14512. "formatter": {
  14513. "anyOf": [
  14514. {
  14515. "type": "boolean",
  14516. "const": false
  14517. },
  14518. {
  14519. "type": "object",
  14520. "propertyNames": {
  14521. "type": "string"
  14522. },
  14523. "additionalProperties": {
  14524. "type": "object",
  14525. "properties": {
  14526. "disabled": {
  14527. "type": "boolean"
  14528. },
  14529. "command": {
  14530. "type": "array",
  14531. "items": {
  14532. "type": "string"
  14533. }
  14534. },
  14535. "environment": {
  14536. "type": "object",
  14537. "propertyNames": {
  14538. "type": "string"
  14539. },
  14540. "additionalProperties": {
  14541. "type": "string"
  14542. }
  14543. },
  14544. "extensions": {
  14545. "type": "array",
  14546. "items": {
  14547. "type": "string"
  14548. }
  14549. }
  14550. }
  14551. }
  14552. }
  14553. ]
  14554. },
  14555. "lsp": {
  14556. "anyOf": [
  14557. {
  14558. "type": "boolean",
  14559. "const": false
  14560. },
  14561. {
  14562. "type": "object",
  14563. "propertyNames": {
  14564. "type": "string"
  14565. },
  14566. "additionalProperties": {
  14567. "anyOf": [
  14568. {
  14569. "type": "object",
  14570. "properties": {
  14571. "disabled": {
  14572. "type": "boolean",
  14573. "const": true
  14574. }
  14575. },
  14576. "required": ["disabled"]
  14577. },
  14578. {
  14579. "type": "object",
  14580. "properties": {
  14581. "command": {
  14582. "type": "array",
  14583. "items": {
  14584. "type": "string"
  14585. }
  14586. },
  14587. "extensions": {
  14588. "type": "array",
  14589. "items": {
  14590. "type": "string"
  14591. }
  14592. },
  14593. "disabled": {
  14594. "type": "boolean"
  14595. },
  14596. "env": {
  14597. "type": "object",
  14598. "propertyNames": {
  14599. "type": "string"
  14600. },
  14601. "additionalProperties": {
  14602. "type": "string"
  14603. }
  14604. },
  14605. "initialization": {
  14606. "type": "object",
  14607. "propertyNames": {
  14608. "type": "string"
  14609. },
  14610. "additionalProperties": {}
  14611. }
  14612. },
  14613. "required": ["command"]
  14614. }
  14615. ]
  14616. }
  14617. }
  14618. ]
  14619. },
  14620. "instructions": {
  14621. "description": "Additional instruction files or patterns to include",
  14622. "type": "array",
  14623. "items": {
  14624. "type": "string"
  14625. }
  14626. },
  14627. "layout": {
  14628. "$ref": "#/components/schemas/LayoutConfig"
  14629. },
  14630. "permission": {
  14631. "$ref": "#/components/schemas/PermissionConfig"
  14632. },
  14633. "tools": {
  14634. "type": "object",
  14635. "propertyNames": {
  14636. "type": "string"
  14637. },
  14638. "additionalProperties": {
  14639. "type": "boolean"
  14640. }
  14641. },
  14642. "enterprise": {
  14643. "type": "object",
  14644. "properties": {
  14645. "url": {
  14646. "description": "Enterprise URL",
  14647. "type": "string"
  14648. }
  14649. }
  14650. },
  14651. "compaction": {
  14652. "type": "object",
  14653. "properties": {
  14654. "auto": {
  14655. "description": "Enable automatic compaction when context is full (default: true)",
  14656. "type": "boolean"
  14657. },
  14658. "prune": {
  14659. "description": "Enable pruning of old tool outputs (default: true)",
  14660. "type": "boolean"
  14661. },
  14662. "reserved": {
  14663. "description": "Token buffer for compaction. Leaves enough window to avoid overflow during compaction.",
  14664. "type": "integer",
  14665. "minimum": 0,
  14666. "maximum": 9007199254740991
  14667. }
  14668. }
  14669. },
  14670. "experimental": {
  14671. "type": "object",
  14672. "properties": {
  14673. "disable_paste_summary": {
  14674. "type": "boolean"
  14675. },
  14676. "batch_tool": {
  14677. "description": "Enable the batch tool",
  14678. "type": "boolean"
  14679. },
  14680. "codebase_search": {
  14681. "description": "Enable AI-powered codebase search",
  14682. "type": "boolean"
  14683. },
  14684. "openTelemetry": {
  14685. "description": "Enable telemetry. Set to false to opt-out.",
  14686. "default": true,
  14687. "type": "boolean"
  14688. },
  14689. "primary_tools": {
  14690. "description": "Tools that should only be available to primary agents.",
  14691. "type": "array",
  14692. "items": {
  14693. "type": "string"
  14694. }
  14695. },
  14696. "continue_loop_on_deny": {
  14697. "description": "Continue the agent loop when a tool call is denied",
  14698. "type": "boolean"
  14699. },
  14700. "mcp_timeout": {
  14701. "description": "Timeout in milliseconds for model context protocol (MCP) requests",
  14702. "type": "integer",
  14703. "exclusiveMinimum": 0,
  14704. "maximum": 9007199254740991
  14705. }
  14706. }
  14707. }
  14708. },
  14709. "additionalProperties": false
  14710. },
  14711. "BadRequestError": {
  14712. "type": "object",
  14713. "properties": {
  14714. "data": {},
  14715. "errors": {
  14716. "type": "array",
  14717. "items": {
  14718. "type": "object",
  14719. "propertyNames": {
  14720. "type": "string"
  14721. },
  14722. "additionalProperties": {}
  14723. }
  14724. },
  14725. "success": {
  14726. "type": "boolean",
  14727. "const": false
  14728. }
  14729. },
  14730. "required": ["data", "errors", "success"]
  14731. },
  14732. "OAuth": {
  14733. "type": "object",
  14734. "properties": {
  14735. "type": {
  14736. "type": "string",
  14737. "const": "oauth"
  14738. },
  14739. "refresh": {
  14740. "type": "string"
  14741. },
  14742. "access": {
  14743. "type": "string"
  14744. },
  14745. "expires": {
  14746. "type": "number"
  14747. },
  14748. "accountId": {
  14749. "type": "string"
  14750. },
  14751. "enterpriseUrl": {
  14752. "type": "string"
  14753. }
  14754. },
  14755. "required": ["type", "refresh", "access", "expires"]
  14756. },
  14757. "ApiAuth": {
  14758. "type": "object",
  14759. "properties": {
  14760. "type": {
  14761. "type": "string",
  14762. "const": "api"
  14763. },
  14764. "key": {
  14765. "type": "string"
  14766. }
  14767. },
  14768. "required": ["type", "key"]
  14769. },
  14770. "WellKnownAuth": {
  14771. "type": "object",
  14772. "properties": {
  14773. "type": {
  14774. "type": "string",
  14775. "const": "wellknown"
  14776. },
  14777. "key": {
  14778. "type": "string"
  14779. },
  14780. "token": {
  14781. "type": "string"
  14782. }
  14783. },
  14784. "required": ["type", "key", "token"]
  14785. },
  14786. "Auth": {
  14787. "anyOf": [
  14788. {
  14789. "$ref": "#/components/schemas/OAuth"
  14790. },
  14791. {
  14792. "$ref": "#/components/schemas/ApiAuth"
  14793. },
  14794. {
  14795. "$ref": "#/components/schemas/WellKnownAuth"
  14796. }
  14797. ]
  14798. },
  14799. "NotFoundError": {
  14800. "type": "object",
  14801. "properties": {
  14802. "name": {
  14803. "type": "string",
  14804. "const": "NotFoundError"
  14805. },
  14806. "data": {
  14807. "type": "object",
  14808. "properties": {
  14809. "message": {
  14810. "type": "string"
  14811. }
  14812. },
  14813. "required": ["message"]
  14814. }
  14815. },
  14816. "required": ["name", "data"]
  14817. },
  14818. "Model": {
  14819. "type": "object",
  14820. "properties": {
  14821. "id": {
  14822. "type": "string"
  14823. },
  14824. "providerID": {
  14825. "type": "string"
  14826. },
  14827. "api": {
  14828. "type": "object",
  14829. "properties": {
  14830. "id": {
  14831. "type": "string"
  14832. },
  14833. "url": {
  14834. "type": "string"
  14835. },
  14836. "npm": {
  14837. "type": "string"
  14838. }
  14839. },
  14840. "required": ["id", "url", "npm"]
  14841. },
  14842. "name": {
  14843. "type": "string"
  14844. },
  14845. "family": {
  14846. "type": "string"
  14847. },
  14848. "capabilities": {
  14849. "type": "object",
  14850. "properties": {
  14851. "temperature": {
  14852. "type": "boolean"
  14853. },
  14854. "reasoning": {
  14855. "type": "boolean"
  14856. },
  14857. "attachment": {
  14858. "type": "boolean"
  14859. },
  14860. "toolcall": {
  14861. "type": "boolean"
  14862. },
  14863. "input": {
  14864. "type": "object",
  14865. "properties": {
  14866. "text": {
  14867. "type": "boolean"
  14868. },
  14869. "audio": {
  14870. "type": "boolean"
  14871. },
  14872. "image": {
  14873. "type": "boolean"
  14874. },
  14875. "video": {
  14876. "type": "boolean"
  14877. },
  14878. "pdf": {
  14879. "type": "boolean"
  14880. }
  14881. },
  14882. "required": ["text", "audio", "image", "video", "pdf"]
  14883. },
  14884. "output": {
  14885. "type": "object",
  14886. "properties": {
  14887. "text": {
  14888. "type": "boolean"
  14889. },
  14890. "audio": {
  14891. "type": "boolean"
  14892. },
  14893. "image": {
  14894. "type": "boolean"
  14895. },
  14896. "video": {
  14897. "type": "boolean"
  14898. },
  14899. "pdf": {
  14900. "type": "boolean"
  14901. }
  14902. },
  14903. "required": ["text", "audio", "image", "video", "pdf"]
  14904. },
  14905. "interleaved": {
  14906. "anyOf": [
  14907. {
  14908. "type": "boolean"
  14909. },
  14910. {
  14911. "type": "object",
  14912. "properties": {
  14913. "field": {
  14914. "type": "string",
  14915. "enum": ["reasoning_content", "reasoning_details"]
  14916. }
  14917. },
  14918. "required": ["field"]
  14919. }
  14920. ]
  14921. }
  14922. },
  14923. "required": ["temperature", "reasoning", "attachment", "toolcall", "input", "output", "interleaved"]
  14924. },
  14925. "cost": {
  14926. "type": "object",
  14927. "properties": {
  14928. "input": {
  14929. "type": "number"
  14930. },
  14931. "output": {
  14932. "type": "number"
  14933. },
  14934. "cache": {
  14935. "type": "object",
  14936. "properties": {
  14937. "read": {
  14938. "type": "number"
  14939. },
  14940. "write": {
  14941. "type": "number"
  14942. }
  14943. },
  14944. "required": ["read", "write"]
  14945. },
  14946. "experimentalOver200K": {
  14947. "type": "object",
  14948. "properties": {
  14949. "input": {
  14950. "type": "number"
  14951. },
  14952. "output": {
  14953. "type": "number"
  14954. },
  14955. "cache": {
  14956. "type": "object",
  14957. "properties": {
  14958. "read": {
  14959. "type": "number"
  14960. },
  14961. "write": {
  14962. "type": "number"
  14963. }
  14964. },
  14965. "required": ["read", "write"]
  14966. }
  14967. },
  14968. "required": ["input", "output", "cache"]
  14969. }
  14970. },
  14971. "required": ["input", "output", "cache"]
  14972. },
  14973. "limit": {
  14974. "type": "object",
  14975. "properties": {
  14976. "context": {
  14977. "type": "number"
  14978. },
  14979. "input": {
  14980. "type": "number"
  14981. },
  14982. "output": {
  14983. "type": "number"
  14984. }
  14985. },
  14986. "required": ["context", "output"]
  14987. },
  14988. "status": {
  14989. "type": "string",
  14990. "enum": ["alpha", "beta", "deprecated", "active"]
  14991. },
  14992. "options": {
  14993. "type": "object",
  14994. "propertyNames": {
  14995. "type": "string"
  14996. },
  14997. "additionalProperties": {}
  14998. },
  14999. "headers": {
  15000. "type": "object",
  15001. "propertyNames": {
  15002. "type": "string"
  15003. },
  15004. "additionalProperties": {
  15005. "type": "string"
  15006. }
  15007. },
  15008. "release_date": {
  15009. "type": "string"
  15010. },
  15011. "variants": {
  15012. "type": "object",
  15013. "propertyNames": {
  15014. "type": "string"
  15015. },
  15016. "additionalProperties": {
  15017. "type": "object",
  15018. "propertyNames": {
  15019. "type": "string"
  15020. },
  15021. "additionalProperties": {}
  15022. }
  15023. },
  15024. "recommendedIndex": {
  15025. "type": "number"
  15026. },
  15027. "prompt": {
  15028. "type": "string",
  15029. "enum": ["codex", "gemini", "beast", "anthropic", "trinity", "anthropic_without_todo"]
  15030. },
  15031. "isFree": {
  15032. "type": "boolean"
  15033. },
  15034. "ai_sdk_provider": {
  15035. "type": "string",
  15036. "enum": ["anthropic", "openai", "openai-compatible", "openrouter"]
  15037. }
  15038. },
  15039. "required": [
  15040. "id",
  15041. "providerID",
  15042. "api",
  15043. "name",
  15044. "capabilities",
  15045. "cost",
  15046. "limit",
  15047. "status",
  15048. "options",
  15049. "headers",
  15050. "release_date"
  15051. ]
  15052. },
  15053. "Provider": {
  15054. "type": "object",
  15055. "properties": {
  15056. "id": {
  15057. "type": "string"
  15058. },
  15059. "name": {
  15060. "type": "string"
  15061. },
  15062. "source": {
  15063. "type": "string",
  15064. "enum": ["env", "config", "custom", "api"]
  15065. },
  15066. "env": {
  15067. "type": "array",
  15068. "items": {
  15069. "type": "string"
  15070. }
  15071. },
  15072. "key": {
  15073. "type": "string"
  15074. },
  15075. "options": {
  15076. "type": "object",
  15077. "propertyNames": {
  15078. "type": "string"
  15079. },
  15080. "additionalProperties": {}
  15081. },
  15082. "models": {
  15083. "type": "object",
  15084. "propertyNames": {
  15085. "type": "string"
  15086. },
  15087. "additionalProperties": {
  15088. "$ref": "#/components/schemas/Model"
  15089. }
  15090. }
  15091. },
  15092. "required": ["id", "name", "source", "env", "options", "models"]
  15093. },
  15094. "ToolIDs": {
  15095. "type": "array",
  15096. "items": {
  15097. "type": "string"
  15098. }
  15099. },
  15100. "ToolListItem": {
  15101. "type": "object",
  15102. "properties": {
  15103. "id": {
  15104. "type": "string"
  15105. },
  15106. "description": {
  15107. "type": "string"
  15108. },
  15109. "parameters": {}
  15110. },
  15111. "required": ["id", "description", "parameters"]
  15112. },
  15113. "ToolList": {
  15114. "type": "array",
  15115. "items": {
  15116. "$ref": "#/components/schemas/ToolListItem"
  15117. }
  15118. },
  15119. "Workspace": {
  15120. "type": "object",
  15121. "properties": {
  15122. "id": {
  15123. "type": "string",
  15124. "pattern": "^wrk.*"
  15125. },
  15126. "type": {
  15127. "type": "string"
  15128. },
  15129. "branch": {
  15130. "anyOf": [
  15131. {
  15132. "type": "string"
  15133. },
  15134. {
  15135. "type": "null"
  15136. }
  15137. ]
  15138. },
  15139. "name": {
  15140. "anyOf": [
  15141. {
  15142. "type": "string"
  15143. },
  15144. {
  15145. "type": "null"
  15146. }
  15147. ]
  15148. },
  15149. "directory": {
  15150. "anyOf": [
  15151. {
  15152. "type": "string"
  15153. },
  15154. {
  15155. "type": "null"
  15156. }
  15157. ]
  15158. },
  15159. "extra": {
  15160. "anyOf": [
  15161. {},
  15162. {
  15163. "type": "null"
  15164. }
  15165. ]
  15166. },
  15167. "projectID": {
  15168. "type": "string"
  15169. }
  15170. },
  15171. "required": ["id", "type", "branch", "name", "directory", "extra", "projectID"]
  15172. },
  15173. "Worktree": {
  15174. "type": "object",
  15175. "properties": {
  15176. "name": {
  15177. "type": "string"
  15178. },
  15179. "branch": {
  15180. "type": "string"
  15181. },
  15182. "directory": {
  15183. "type": "string"
  15184. }
  15185. },
  15186. "required": ["name", "branch", "directory"]
  15187. },
  15188. "WorktreeCreateInput": {
  15189. "type": "object",
  15190. "properties": {
  15191. "name": {
  15192. "type": "string"
  15193. },
  15194. "startCommand": {
  15195. "description": "Additional startup script to run after the project's start command",
  15196. "type": "string"
  15197. }
  15198. }
  15199. },
  15200. "WorktreeRemoveInput": {
  15201. "type": "object",
  15202. "properties": {
  15203. "directory": {
  15204. "type": "string"
  15205. }
  15206. },
  15207. "required": ["directory"]
  15208. },
  15209. "WorktreeResetInput": {
  15210. "type": "object",
  15211. "properties": {
  15212. "directory": {
  15213. "type": "string"
  15214. }
  15215. },
  15216. "required": ["directory"]
  15217. },
  15218. "WorktreeDiffItem": {
  15219. "type": "object",
  15220. "properties": {
  15221. "file": {
  15222. "type": "string"
  15223. },
  15224. "before": {
  15225. "type": "string"
  15226. },
  15227. "after": {
  15228. "type": "string"
  15229. },
  15230. "additions": {
  15231. "type": "number"
  15232. },
  15233. "deletions": {
  15234. "type": "number"
  15235. },
  15236. "status": {
  15237. "type": "string",
  15238. "enum": ["added", "deleted", "modified"]
  15239. },
  15240. "tracked": {
  15241. "type": "boolean"
  15242. },
  15243. "generatedLike": {
  15244. "type": "boolean"
  15245. },
  15246. "summarized": {
  15247. "type": "boolean"
  15248. },
  15249. "stamp": {
  15250. "type": "string"
  15251. }
  15252. },
  15253. "required": [
  15254. "file",
  15255. "before",
  15256. "after",
  15257. "additions",
  15258. "deletions",
  15259. "tracked",
  15260. "generatedLike",
  15261. "summarized",
  15262. "stamp"
  15263. ]
  15264. },
  15265. "ProjectSummary": {
  15266. "type": "object",
  15267. "properties": {
  15268. "id": {
  15269. "type": "string"
  15270. },
  15271. "name": {
  15272. "type": "string"
  15273. },
  15274. "worktree": {
  15275. "type": "string"
  15276. }
  15277. },
  15278. "required": ["id", "worktree"]
  15279. },
  15280. "GlobalSession": {
  15281. "type": "object",
  15282. "properties": {
  15283. "id": {
  15284. "type": "string",
  15285. "pattern": "^ses.*"
  15286. },
  15287. "slug": {
  15288. "type": "string"
  15289. },
  15290. "projectID": {
  15291. "type": "string"
  15292. },
  15293. "workspaceID": {
  15294. "type": "string",
  15295. "pattern": "^wrk.*"
  15296. },
  15297. "directory": {
  15298. "type": "string"
  15299. },
  15300. "parentID": {
  15301. "type": "string",
  15302. "pattern": "^ses.*"
  15303. },
  15304. "summary": {
  15305. "type": "object",
  15306. "properties": {
  15307. "additions": {
  15308. "type": "number"
  15309. },
  15310. "deletions": {
  15311. "type": "number"
  15312. },
  15313. "files": {
  15314. "type": "number"
  15315. },
  15316. "diffs": {
  15317. "type": "array",
  15318. "items": {
  15319. "type": "object",
  15320. "properties": {
  15321. "file": {
  15322. "type": "string"
  15323. },
  15324. "additions": {
  15325. "type": "number"
  15326. },
  15327. "deletions": {
  15328. "type": "number"
  15329. },
  15330. "status": {
  15331. "type": "string",
  15332. "enum": ["added", "deleted", "modified"]
  15333. }
  15334. },
  15335. "required": ["file", "additions", "deletions"]
  15336. }
  15337. }
  15338. },
  15339. "required": ["additions", "deletions", "files"]
  15340. },
  15341. "share": {
  15342. "type": "object",
  15343. "properties": {
  15344. "url": {
  15345. "type": "string"
  15346. }
  15347. },
  15348. "required": ["url"]
  15349. },
  15350. "title": {
  15351. "type": "string"
  15352. },
  15353. "version": {
  15354. "type": "string"
  15355. },
  15356. "time": {
  15357. "type": "object",
  15358. "properties": {
  15359. "created": {
  15360. "type": "number"
  15361. },
  15362. "updated": {
  15363. "type": "number"
  15364. },
  15365. "compacting": {
  15366. "type": "number"
  15367. },
  15368. "archived": {
  15369. "type": "number"
  15370. }
  15371. },
  15372. "required": ["created", "updated"]
  15373. },
  15374. "permission": {
  15375. "$ref": "#/components/schemas/PermissionRuleset"
  15376. },
  15377. "revert": {
  15378. "type": "object",
  15379. "properties": {
  15380. "messageID": {
  15381. "type": "string",
  15382. "pattern": "^msg.*"
  15383. },
  15384. "partID": {
  15385. "type": "string",
  15386. "pattern": "^prt.*"
  15387. },
  15388. "snapshot": {
  15389. "type": "string"
  15390. },
  15391. "diff": {
  15392. "type": "string"
  15393. }
  15394. },
  15395. "required": ["messageID"]
  15396. },
  15397. "project": {
  15398. "anyOf": [
  15399. {
  15400. "$ref": "#/components/schemas/ProjectSummary"
  15401. },
  15402. {
  15403. "type": "null"
  15404. }
  15405. ]
  15406. },
  15407. "worktreeName": {
  15408. "type": "string"
  15409. }
  15410. },
  15411. "required": ["id", "slug", "projectID", "directory", "title", "version", "time", "project"]
  15412. },
  15413. "McpResource": {
  15414. "type": "object",
  15415. "properties": {
  15416. "name": {
  15417. "type": "string"
  15418. },
  15419. "uri": {
  15420. "type": "string"
  15421. },
  15422. "description": {
  15423. "type": "string"
  15424. },
  15425. "mimeType": {
  15426. "type": "string"
  15427. },
  15428. "client": {
  15429. "type": "string"
  15430. }
  15431. },
  15432. "required": ["name", "uri", "client"]
  15433. },
  15434. "TextPartInput": {
  15435. "type": "object",
  15436. "properties": {
  15437. "id": {
  15438. "type": "string",
  15439. "pattern": "^prt.*"
  15440. },
  15441. "type": {
  15442. "type": "string",
  15443. "const": "text"
  15444. },
  15445. "text": {
  15446. "type": "string"
  15447. },
  15448. "synthetic": {
  15449. "type": "boolean"
  15450. },
  15451. "ignored": {
  15452. "type": "boolean"
  15453. },
  15454. "time": {
  15455. "type": "object",
  15456. "properties": {
  15457. "start": {
  15458. "type": "number"
  15459. },
  15460. "end": {
  15461. "type": "number"
  15462. }
  15463. },
  15464. "required": ["start"]
  15465. },
  15466. "metadata": {
  15467. "type": "object",
  15468. "propertyNames": {
  15469. "type": "string"
  15470. },
  15471. "additionalProperties": {}
  15472. }
  15473. },
  15474. "required": ["type", "text"]
  15475. },
  15476. "FilePartInput": {
  15477. "type": "object",
  15478. "properties": {
  15479. "id": {
  15480. "type": "string",
  15481. "pattern": "^prt.*"
  15482. },
  15483. "type": {
  15484. "type": "string",
  15485. "const": "file"
  15486. },
  15487. "mime": {
  15488. "type": "string"
  15489. },
  15490. "filename": {
  15491. "type": "string"
  15492. },
  15493. "url": {
  15494. "type": "string"
  15495. },
  15496. "source": {
  15497. "$ref": "#/components/schemas/FilePartSource"
  15498. }
  15499. },
  15500. "required": ["type", "mime", "url"]
  15501. },
  15502. "AgentPartInput": {
  15503. "type": "object",
  15504. "properties": {
  15505. "id": {
  15506. "type": "string",
  15507. "pattern": "^prt.*"
  15508. },
  15509. "type": {
  15510. "type": "string",
  15511. "const": "agent"
  15512. },
  15513. "name": {
  15514. "type": "string"
  15515. },
  15516. "source": {
  15517. "type": "object",
  15518. "properties": {
  15519. "value": {
  15520. "type": "string"
  15521. },
  15522. "start": {
  15523. "type": "integer",
  15524. "minimum": -9007199254740991,
  15525. "maximum": 9007199254740991
  15526. },
  15527. "end": {
  15528. "type": "integer",
  15529. "minimum": -9007199254740991,
  15530. "maximum": 9007199254740991
  15531. }
  15532. },
  15533. "required": ["value", "start", "end"]
  15534. }
  15535. },
  15536. "required": ["type", "name"]
  15537. },
  15538. "SubtaskPartInput": {
  15539. "type": "object",
  15540. "properties": {
  15541. "id": {
  15542. "type": "string",
  15543. "pattern": "^prt.*"
  15544. },
  15545. "type": {
  15546. "type": "string",
  15547. "const": "subtask"
  15548. },
  15549. "prompt": {
  15550. "type": "string"
  15551. },
  15552. "description": {
  15553. "type": "string"
  15554. },
  15555. "agent": {
  15556. "type": "string"
  15557. },
  15558. "model": {
  15559. "type": "object",
  15560. "properties": {
  15561. "providerID": {
  15562. "type": "string"
  15563. },
  15564. "modelID": {
  15565. "type": "string"
  15566. }
  15567. },
  15568. "required": ["providerID", "modelID"]
  15569. },
  15570. "command": {
  15571. "type": "string"
  15572. }
  15573. },
  15574. "required": ["type", "prompt", "description", "agent"]
  15575. },
  15576. "ProviderAuthMethod": {
  15577. "type": "object",
  15578. "properties": {
  15579. "type": {
  15580. "anyOf": [
  15581. {
  15582. "type": "string",
  15583. "const": "oauth"
  15584. },
  15585. {
  15586. "type": "string",
  15587. "const": "api"
  15588. }
  15589. ]
  15590. },
  15591. "label": {
  15592. "type": "string"
  15593. },
  15594. "prompts": {
  15595. "type": "array",
  15596. "items": {
  15597. "anyOf": [
  15598. {
  15599. "type": "object",
  15600. "properties": {
  15601. "type": {
  15602. "type": "string",
  15603. "const": "text"
  15604. },
  15605. "key": {
  15606. "type": "string"
  15607. },
  15608. "message": {
  15609. "type": "string"
  15610. },
  15611. "placeholder": {
  15612. "type": "string"
  15613. },
  15614. "when": {
  15615. "type": "object",
  15616. "properties": {
  15617. "key": {
  15618. "type": "string"
  15619. },
  15620. "op": {
  15621. "anyOf": [
  15622. {
  15623. "type": "string",
  15624. "const": "eq"
  15625. },
  15626. {
  15627. "type": "string",
  15628. "const": "neq"
  15629. }
  15630. ]
  15631. },
  15632. "value": {
  15633. "type": "string"
  15634. }
  15635. },
  15636. "required": ["key", "op", "value"]
  15637. }
  15638. },
  15639. "required": ["type", "key", "message"]
  15640. },
  15641. {
  15642. "type": "object",
  15643. "properties": {
  15644. "type": {
  15645. "type": "string",
  15646. "const": "select"
  15647. },
  15648. "key": {
  15649. "type": "string"
  15650. },
  15651. "message": {
  15652. "type": "string"
  15653. },
  15654. "options": {
  15655. "type": "array",
  15656. "items": {
  15657. "type": "object",
  15658. "properties": {
  15659. "label": {
  15660. "type": "string"
  15661. },
  15662. "value": {
  15663. "type": "string"
  15664. },
  15665. "hint": {
  15666. "type": "string"
  15667. }
  15668. },
  15669. "required": ["label", "value"]
  15670. }
  15671. },
  15672. "when": {
  15673. "type": "object",
  15674. "properties": {
  15675. "key": {
  15676. "type": "string"
  15677. },
  15678. "op": {
  15679. "anyOf": [
  15680. {
  15681. "type": "string",
  15682. "const": "eq"
  15683. },
  15684. {
  15685. "type": "string",
  15686. "const": "neq"
  15687. }
  15688. ]
  15689. },
  15690. "value": {
  15691. "type": "string"
  15692. }
  15693. },
  15694. "required": ["key", "op", "value"]
  15695. }
  15696. },
  15697. "required": ["type", "key", "message", "options"]
  15698. }
  15699. ]
  15700. }
  15701. }
  15702. },
  15703. "required": ["type", "label"]
  15704. },
  15705. "ProviderAuthAuthorization": {
  15706. "type": "object",
  15707. "properties": {
  15708. "url": {
  15709. "type": "string"
  15710. },
  15711. "method": {
  15712. "anyOf": [
  15713. {
  15714. "type": "string",
  15715. "const": "auto"
  15716. },
  15717. {
  15718. "type": "string",
  15719. "const": "code"
  15720. }
  15721. ]
  15722. },
  15723. "instructions": {
  15724. "type": "string"
  15725. }
  15726. },
  15727. "required": ["url", "method", "instructions"]
  15728. },
  15729. "Symbol": {
  15730. "type": "object",
  15731. "properties": {
  15732. "name": {
  15733. "type": "string"
  15734. },
  15735. "kind": {
  15736. "type": "number"
  15737. },
  15738. "location": {
  15739. "type": "object",
  15740. "properties": {
  15741. "uri": {
  15742. "type": "string"
  15743. },
  15744. "range": {
  15745. "$ref": "#/components/schemas/Range"
  15746. }
  15747. },
  15748. "required": ["uri", "range"]
  15749. }
  15750. },
  15751. "required": ["name", "kind", "location"]
  15752. },
  15753. "FileNode": {
  15754. "type": "object",
  15755. "properties": {
  15756. "name": {
  15757. "type": "string"
  15758. },
  15759. "path": {
  15760. "type": "string"
  15761. },
  15762. "absolute": {
  15763. "type": "string"
  15764. },
  15765. "type": {
  15766. "type": "string",
  15767. "enum": ["file", "directory"]
  15768. },
  15769. "ignored": {
  15770. "type": "boolean"
  15771. }
  15772. },
  15773. "required": ["name", "path", "absolute", "type", "ignored"]
  15774. },
  15775. "FileContent": {
  15776. "type": "object",
  15777. "properties": {
  15778. "type": {
  15779. "type": "string",
  15780. "enum": ["text", "binary"]
  15781. },
  15782. "content": {
  15783. "type": "string"
  15784. },
  15785. "diff": {
  15786. "type": "string"
  15787. },
  15788. "patch": {
  15789. "type": "object",
  15790. "properties": {
  15791. "oldFileName": {
  15792. "type": "string"
  15793. },
  15794. "newFileName": {
  15795. "type": "string"
  15796. },
  15797. "oldHeader": {
  15798. "type": "string"
  15799. },
  15800. "newHeader": {
  15801. "type": "string"
  15802. },
  15803. "hunks": {
  15804. "type": "array",
  15805. "items": {
  15806. "type": "object",
  15807. "properties": {
  15808. "oldStart": {
  15809. "type": "number"
  15810. },
  15811. "oldLines": {
  15812. "type": "number"
  15813. },
  15814. "newStart": {
  15815. "type": "number"
  15816. },
  15817. "newLines": {
  15818. "type": "number"
  15819. },
  15820. "lines": {
  15821. "type": "array",
  15822. "items": {
  15823. "type": "string"
  15824. }
  15825. }
  15826. },
  15827. "required": ["oldStart", "oldLines", "newStart", "newLines", "lines"]
  15828. }
  15829. },
  15830. "index": {
  15831. "type": "string"
  15832. }
  15833. },
  15834. "required": ["oldFileName", "newFileName", "hunks"]
  15835. },
  15836. "encoding": {
  15837. "type": "string",
  15838. "const": "base64"
  15839. },
  15840. "mimeType": {
  15841. "type": "string"
  15842. }
  15843. },
  15844. "required": ["type", "content"]
  15845. },
  15846. "File": {
  15847. "type": "object",
  15848. "properties": {
  15849. "path": {
  15850. "type": "string"
  15851. },
  15852. "added": {
  15853. "type": "integer",
  15854. "minimum": -9007199254740991,
  15855. "maximum": 9007199254740991
  15856. },
  15857. "removed": {
  15858. "type": "integer",
  15859. "minimum": -9007199254740991,
  15860. "maximum": 9007199254740991
  15861. },
  15862. "status": {
  15863. "type": "string",
  15864. "enum": ["added", "deleted", "modified"]
  15865. }
  15866. },
  15867. "required": ["path", "added", "removed", "status"]
  15868. },
  15869. "MCPStatusConnected": {
  15870. "type": "object",
  15871. "properties": {
  15872. "status": {
  15873. "type": "string",
  15874. "const": "connected"
  15875. }
  15876. },
  15877. "required": ["status"]
  15878. },
  15879. "MCPStatusDisabled": {
  15880. "type": "object",
  15881. "properties": {
  15882. "status": {
  15883. "type": "string",
  15884. "const": "disabled"
  15885. }
  15886. },
  15887. "required": ["status"]
  15888. },
  15889. "MCPStatusFailed": {
  15890. "type": "object",
  15891. "properties": {
  15892. "status": {
  15893. "type": "string",
  15894. "const": "failed"
  15895. },
  15896. "error": {
  15897. "type": "string"
  15898. }
  15899. },
  15900. "required": ["status", "error"]
  15901. },
  15902. "MCPStatusNeedsAuth": {
  15903. "type": "object",
  15904. "properties": {
  15905. "status": {
  15906. "type": "string",
  15907. "const": "needs_auth"
  15908. }
  15909. },
  15910. "required": ["status"]
  15911. },
  15912. "MCPStatusNeedsClientRegistration": {
  15913. "type": "object",
  15914. "properties": {
  15915. "status": {
  15916. "type": "string",
  15917. "const": "needs_client_registration"
  15918. },
  15919. "error": {
  15920. "type": "string"
  15921. }
  15922. },
  15923. "required": ["status", "error"]
  15924. },
  15925. "MCPStatus": {
  15926. "anyOf": [
  15927. {
  15928. "$ref": "#/components/schemas/MCPStatusConnected"
  15929. },
  15930. {
  15931. "$ref": "#/components/schemas/MCPStatusDisabled"
  15932. },
  15933. {
  15934. "$ref": "#/components/schemas/MCPStatusFailed"
  15935. },
  15936. {
  15937. "$ref": "#/components/schemas/MCPStatusNeedsAuth"
  15938. },
  15939. {
  15940. "$ref": "#/components/schemas/MCPStatusNeedsClientRegistration"
  15941. }
  15942. ]
  15943. },
  15944. "Path": {
  15945. "type": "object",
  15946. "properties": {
  15947. "home": {
  15948. "type": "string"
  15949. },
  15950. "state": {
  15951. "type": "string"
  15952. },
  15953. "config": {
  15954. "type": "string"
  15955. },
  15956. "worktree": {
  15957. "type": "string"
  15958. },
  15959. "directory": {
  15960. "type": "string"
  15961. }
  15962. },
  15963. "required": ["home", "state", "config", "worktree", "directory"]
  15964. },
  15965. "VcsInfo": {
  15966. "type": "object",
  15967. "properties": {
  15968. "branch": {
  15969. "type": "string"
  15970. }
  15971. }
  15972. },
  15973. "Command": {
  15974. "type": "object",
  15975. "properties": {
  15976. "name": {
  15977. "type": "string"
  15978. },
  15979. "description": {
  15980. "type": "string"
  15981. },
  15982. "agent": {
  15983. "type": "string"
  15984. },
  15985. "model": {
  15986. "type": "string"
  15987. },
  15988. "source": {
  15989. "type": "string",
  15990. "enum": ["command", "mcp", "skill"]
  15991. },
  15992. "template": {
  15993. "anyOf": [
  15994. {
  15995. "type": "string"
  15996. },
  15997. {
  15998. "type": "string"
  15999. }
  16000. ]
  16001. },
  16002. "subtask": {
  16003. "type": "boolean"
  16004. },
  16005. "hints": {
  16006. "type": "array",
  16007. "items": {
  16008. "type": "string"
  16009. }
  16010. }
  16011. },
  16012. "required": ["name", "template", "hints"]
  16013. },
  16014. "Agent": {
  16015. "type": "object",
  16016. "properties": {
  16017. "name": {
  16018. "type": "string"
  16019. },
  16020. "displayName": {
  16021. "type": "string"
  16022. },
  16023. "description": {
  16024. "type": "string"
  16025. },
  16026. "deprecated": {
  16027. "type": "boolean"
  16028. },
  16029. "mode": {
  16030. "type": "string",
  16031. "enum": ["subagent", "primary", "all"]
  16032. },
  16033. "native": {
  16034. "type": "boolean"
  16035. },
  16036. "hidden": {
  16037. "type": "boolean"
  16038. },
  16039. "topP": {
  16040. "type": "number"
  16041. },
  16042. "temperature": {
  16043. "type": "number"
  16044. },
  16045. "color": {
  16046. "type": "string"
  16047. },
  16048. "permission": {
  16049. "$ref": "#/components/schemas/PermissionRuleset"
  16050. },
  16051. "model": {
  16052. "type": "object",
  16053. "properties": {
  16054. "modelID": {
  16055. "type": "string"
  16056. },
  16057. "providerID": {
  16058. "type": "string"
  16059. }
  16060. },
  16061. "required": ["modelID", "providerID"]
  16062. },
  16063. "variant": {
  16064. "type": "string"
  16065. },
  16066. "prompt": {
  16067. "type": "string"
  16068. },
  16069. "options": {
  16070. "type": "object",
  16071. "propertyNames": {
  16072. "type": "string"
  16073. },
  16074. "additionalProperties": {}
  16075. },
  16076. "steps": {
  16077. "type": "integer",
  16078. "exclusiveMinimum": 0,
  16079. "maximum": 9007199254740991
  16080. }
  16081. },
  16082. "required": ["name", "mode", "permission", "options"]
  16083. },
  16084. "LSPStatus": {
  16085. "type": "object",
  16086. "properties": {
  16087. "id": {
  16088. "type": "string"
  16089. },
  16090. "name": {
  16091. "type": "string"
  16092. },
  16093. "root": {
  16094. "type": "string"
  16095. },
  16096. "status": {
  16097. "anyOf": [
  16098. {
  16099. "type": "string",
  16100. "const": "connected"
  16101. },
  16102. {
  16103. "type": "string",
  16104. "const": "error"
  16105. }
  16106. ]
  16107. }
  16108. },
  16109. "required": ["id", "name", "root", "status"]
  16110. },
  16111. "FormatterStatus": {
  16112. "type": "object",
  16113. "properties": {
  16114. "name": {
  16115. "type": "string"
  16116. },
  16117. "extensions": {
  16118. "type": "array",
  16119. "items": {
  16120. "type": "string"
  16121. }
  16122. },
  16123. "enabled": {
  16124. "type": "boolean"
  16125. }
  16126. },
  16127. "required": ["name", "extensions", "enabled"]
  16128. }
  16129. }
  16130. }
  16131. }