openapi.json 644 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": ["health"],
  12. "operationId": "v2.health.get",
  13. "parameters": [],
  14. "security": [],
  15. "responses": {
  16. "200": {
  17. "description": "ServiceHealth",
  18. "content": {
  19. "application/json": {
  20. "schema": {
  21. "$ref": "#/components/schemas/ServiceHealth"
  22. }
  23. }
  24. }
  25. },
  26. "400": {
  27. "description": "InvalidRequestError",
  28. "content": {
  29. "application/json": {
  30. "schema": {
  31. "$ref": "#/components/schemas/InvalidRequestError"
  32. }
  33. }
  34. }
  35. },
  36. "401": {
  37. "description": "UnauthorizedError",
  38. "content": {
  39. "application/json": {
  40. "schema": {
  41. "$ref": "#/components/schemas/UnauthorizedError"
  42. }
  43. }
  44. }
  45. }
  46. },
  47. "description": "Report the owning server process and its application status.",
  48. "summary": "Check server health"
  49. }
  50. },
  51. "/api/service/stop": {
  52. "post": {
  53. "tags": ["health"],
  54. "operationId": "v2.health.stop",
  55. "parameters": [],
  56. "security": [],
  57. "responses": {
  58. "200": {
  59. "description": "ServiceStopResponse",
  60. "content": {
  61. "application/json": {
  62. "schema": {
  63. "$ref": "#/components/schemas/ServiceStopResponse"
  64. }
  65. }
  66. }
  67. },
  68. "400": {
  69. "description": "InvalidRequestError",
  70. "content": {
  71. "application/json": {
  72. "schema": {
  73. "$ref": "#/components/schemas/InvalidRequestError"
  74. }
  75. }
  76. }
  77. },
  78. "401": {
  79. "description": "UnauthorizedError",
  80. "content": {
  81. "application/json": {
  82. "schema": {
  83. "$ref": "#/components/schemas/UnauthorizedError"
  84. }
  85. }
  86. }
  87. }
  88. },
  89. "description": "Request graceful shutdown of one exact managed server instance.",
  90. "summary": "Stop the managed server",
  91. "requestBody": {
  92. "content": {
  93. "application/json": {
  94. "schema": {
  95. "$ref": "#/components/schemas/ServiceStopRequest"
  96. }
  97. }
  98. },
  99. "required": true
  100. }
  101. }
  102. },
  103. "/api/server": {
  104. "get": {
  105. "tags": ["server"],
  106. "operationId": "v2.server.get",
  107. "parameters": [],
  108. "security": [],
  109. "responses": {
  110. "200": {
  111. "description": "Success",
  112. "content": {
  113. "application/json": {
  114. "schema": {
  115. "type": "object",
  116. "properties": {
  117. "urls": {
  118. "type": "array",
  119. "items": {
  120. "type": "string"
  121. }
  122. }
  123. },
  124. "required": ["urls"],
  125. "additionalProperties": false
  126. }
  127. }
  128. }
  129. },
  130. "400": {
  131. "description": "InvalidRequestError",
  132. "content": {
  133. "application/json": {
  134. "schema": {
  135. "$ref": "#/components/schemas/InvalidRequestError"
  136. }
  137. }
  138. }
  139. },
  140. "401": {
  141. "description": "UnauthorizedError",
  142. "content": {
  143. "application/json": {
  144. "schema": {
  145. "$ref": "#/components/schemas/UnauthorizedError"
  146. }
  147. }
  148. }
  149. }
  150. },
  151. "description": "Return the URLs that can be used to connect to this server.",
  152. "summary": "Get server information"
  153. }
  154. },
  155. "/api/location": {
  156. "get": {
  157. "tags": ["location"],
  158. "operationId": "v2.location.get",
  159. "parameters": [
  160. {
  161. "name": "location",
  162. "in": "query",
  163. "schema": {
  164. "anyOf": [
  165. {
  166. "type": "object",
  167. "properties": {
  168. "directory": {
  169. "anyOf": [
  170. {
  171. "type": "string"
  172. },
  173. {
  174. "type": "null"
  175. }
  176. ]
  177. },
  178. "workspace": {
  179. "anyOf": [
  180. {
  181. "type": "string"
  182. },
  183. {
  184. "type": "null"
  185. }
  186. ]
  187. }
  188. },
  189. "additionalProperties": false
  190. },
  191. {
  192. "type": "null"
  193. }
  194. ]
  195. },
  196. "required": false,
  197. "style": "deepObject",
  198. "explode": true
  199. }
  200. ],
  201. "security": [],
  202. "responses": {
  203. "200": {
  204. "description": "Location.Info",
  205. "content": {
  206. "application/json": {
  207. "schema": {
  208. "$ref": "#/components/schemas/Location.Info"
  209. }
  210. }
  211. }
  212. },
  213. "400": {
  214. "description": "InvalidRequestError",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/InvalidRequestError"
  219. }
  220. }
  221. }
  222. },
  223. "401": {
  224. "description": "UnauthorizedError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/UnauthorizedError"
  229. }
  230. }
  231. }
  232. }
  233. },
  234. "description": "Resolve the requested location or the server default location.",
  235. "summary": "Get location"
  236. }
  237. },
  238. "/api/agent": {
  239. "get": {
  240. "tags": ["agent"],
  241. "operationId": "v2.agent.list",
  242. "parameters": [
  243. {
  244. "name": "location",
  245. "in": "query",
  246. "schema": {
  247. "anyOf": [
  248. {
  249. "type": "object",
  250. "properties": {
  251. "directory": {
  252. "anyOf": [
  253. {
  254. "type": "string"
  255. },
  256. {
  257. "type": "null"
  258. }
  259. ]
  260. },
  261. "workspace": {
  262. "anyOf": [
  263. {
  264. "type": "string"
  265. },
  266. {
  267. "type": "null"
  268. }
  269. ]
  270. }
  271. },
  272. "additionalProperties": false
  273. },
  274. {
  275. "type": "null"
  276. }
  277. ]
  278. },
  279. "required": false,
  280. "style": "deepObject",
  281. "explode": true
  282. }
  283. ],
  284. "security": [],
  285. "responses": {
  286. "200": {
  287. "description": "Success",
  288. "content": {
  289. "application/json": {
  290. "schema": {
  291. "type": "object",
  292. "properties": {
  293. "location": {
  294. "$ref": "#/components/schemas/Location.Info"
  295. },
  296. "data": {
  297. "type": "array",
  298. "items": {
  299. "$ref": "#/components/schemas/Agent.Info"
  300. }
  301. }
  302. },
  303. "required": ["location", "data"],
  304. "additionalProperties": false
  305. }
  306. }
  307. }
  308. },
  309. "400": {
  310. "description": "InvalidRequestError",
  311. "content": {
  312. "application/json": {
  313. "schema": {
  314. "$ref": "#/components/schemas/InvalidRequestError"
  315. }
  316. }
  317. }
  318. },
  319. "401": {
  320. "description": "UnauthorizedError",
  321. "content": {
  322. "application/json": {
  323. "schema": {
  324. "$ref": "#/components/schemas/UnauthorizedError"
  325. }
  326. }
  327. }
  328. }
  329. },
  330. "description": "Retrieve currently registered agents.",
  331. "summary": "List agents"
  332. }
  333. },
  334. "/api/agent/{agentID}": {
  335. "get": {
  336. "tags": ["agent"],
  337. "operationId": "v2.agent.get",
  338. "parameters": [
  339. {
  340. "name": "agentID",
  341. "in": "path",
  342. "schema": {
  343. "type": "string"
  344. },
  345. "required": true
  346. },
  347. {
  348. "name": "location",
  349. "in": "query",
  350. "schema": {
  351. "anyOf": [
  352. {
  353. "type": "object",
  354. "properties": {
  355. "directory": {
  356. "anyOf": [
  357. {
  358. "type": "string"
  359. },
  360. {
  361. "type": "null"
  362. }
  363. ]
  364. },
  365. "workspace": {
  366. "anyOf": [
  367. {
  368. "type": "string"
  369. },
  370. {
  371. "type": "null"
  372. }
  373. ]
  374. }
  375. },
  376. "additionalProperties": false
  377. },
  378. {
  379. "type": "null"
  380. }
  381. ]
  382. },
  383. "required": false,
  384. "style": "deepObject",
  385. "explode": true
  386. }
  387. ],
  388. "security": [],
  389. "responses": {
  390. "200": {
  391. "description": "Success",
  392. "content": {
  393. "application/json": {
  394. "schema": {
  395. "type": "object",
  396. "properties": {
  397. "location": {
  398. "$ref": "#/components/schemas/Location.Info"
  399. },
  400. "data": {
  401. "$ref": "#/components/schemas/Agent.Info"
  402. }
  403. },
  404. "required": ["location", "data"],
  405. "additionalProperties": false
  406. }
  407. }
  408. }
  409. },
  410. "400": {
  411. "description": "InvalidRequestError",
  412. "content": {
  413. "application/json": {
  414. "schema": {
  415. "$ref": "#/components/schemas/InvalidRequestError"
  416. }
  417. }
  418. }
  419. },
  420. "401": {
  421. "description": "UnauthorizedError",
  422. "content": {
  423. "application/json": {
  424. "schema": {
  425. "$ref": "#/components/schemas/UnauthorizedError"
  426. }
  427. }
  428. }
  429. },
  430. "404": {
  431. "description": "AgentNotFoundError",
  432. "content": {
  433. "application/json": {
  434. "schema": {
  435. "$ref": "#/components/schemas/AgentNotFoundError"
  436. }
  437. }
  438. }
  439. }
  440. },
  441. "description": "Retrieve a single currently registered agent.",
  442. "summary": "Get agent"
  443. }
  444. },
  445. "/api/plugin": {
  446. "get": {
  447. "tags": ["plugin"],
  448. "operationId": "v2.plugin.list",
  449. "parameters": [
  450. {
  451. "name": "location",
  452. "in": "query",
  453. "schema": {
  454. "anyOf": [
  455. {
  456. "type": "object",
  457. "properties": {
  458. "directory": {
  459. "anyOf": [
  460. {
  461. "type": "string"
  462. },
  463. {
  464. "type": "null"
  465. }
  466. ]
  467. },
  468. "workspace": {
  469. "anyOf": [
  470. {
  471. "type": "string"
  472. },
  473. {
  474. "type": "null"
  475. }
  476. ]
  477. }
  478. },
  479. "additionalProperties": false
  480. },
  481. {
  482. "type": "null"
  483. }
  484. ]
  485. },
  486. "required": false,
  487. "style": "deepObject",
  488. "explode": true
  489. }
  490. ],
  491. "security": [],
  492. "responses": {
  493. "200": {
  494. "description": "Success",
  495. "content": {
  496. "application/json": {
  497. "schema": {
  498. "type": "object",
  499. "properties": {
  500. "location": {
  501. "$ref": "#/components/schemas/Location.Info"
  502. },
  503. "data": {
  504. "type": "array",
  505. "items": {
  506. "$ref": "#/components/schemas/Plugin.Info"
  507. }
  508. }
  509. },
  510. "required": ["location", "data"],
  511. "additionalProperties": false
  512. }
  513. }
  514. }
  515. },
  516. "400": {
  517. "description": "InvalidRequestError",
  518. "content": {
  519. "application/json": {
  520. "schema": {
  521. "$ref": "#/components/schemas/InvalidRequestError"
  522. }
  523. }
  524. }
  525. },
  526. "401": {
  527. "description": "UnauthorizedError",
  528. "content": {
  529. "application/json": {
  530. "schema": {
  531. "$ref": "#/components/schemas/UnauthorizedError"
  532. }
  533. }
  534. }
  535. }
  536. },
  537. "description": "Retrieve currently loaded plugins.",
  538. "summary": "List plugins"
  539. }
  540. },
  541. "/api/session": {
  542. "get": {
  543. "tags": ["session"],
  544. "operationId": "v2.session.list",
  545. "parameters": [
  546. {
  547. "name": "workspace",
  548. "in": "query",
  549. "schema": {
  550. "anyOf": [
  551. {
  552. "type": "string",
  553. "allOf": [
  554. {
  555. "pattern": "^wrk"
  556. }
  557. ]
  558. },
  559. {
  560. "type": "null"
  561. }
  562. ]
  563. },
  564. "required": false
  565. },
  566. {
  567. "name": "limit",
  568. "in": "query",
  569. "schema": {
  570. "anyOf": [
  571. {
  572. "type": "string"
  573. },
  574. {
  575. "type": "null"
  576. }
  577. ],
  578. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  579. },
  580. "required": false
  581. },
  582. {
  583. "name": "order",
  584. "in": "query",
  585. "schema": {
  586. "anyOf": [
  587. {
  588. "type": "string",
  589. "enum": ["asc", "desc"]
  590. },
  591. {
  592. "type": "null"
  593. }
  594. ],
  595. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  596. },
  597. "required": false
  598. },
  599. {
  600. "name": "search",
  601. "in": "query",
  602. "schema": {
  603. "anyOf": [
  604. {
  605. "type": "string"
  606. },
  607. {
  608. "type": "null"
  609. }
  610. ]
  611. },
  612. "required": false
  613. },
  614. {
  615. "name": "parentID",
  616. "in": "query",
  617. "schema": {
  618. "anyOf": [
  619. {
  620. "anyOf": [
  621. {
  622. "type": "string",
  623. "allOf": [
  624. {
  625. "pattern": "^ses"
  626. }
  627. ]
  628. },
  629. {
  630. "type": "string",
  631. "enum": ["null"]
  632. }
  633. ],
  634. "description": "Filter by parent session. Use null to return only root sessions."
  635. },
  636. {
  637. "type": "null"
  638. }
  639. ]
  640. },
  641. "required": false
  642. },
  643. {
  644. "name": "directory",
  645. "in": "query",
  646. "schema": {
  647. "anyOf": [
  648. {
  649. "type": "string"
  650. },
  651. {
  652. "type": "null"
  653. }
  654. ]
  655. },
  656. "required": false
  657. },
  658. {
  659. "name": "project",
  660. "in": "query",
  661. "schema": {
  662. "anyOf": [
  663. {
  664. "type": "string"
  665. },
  666. {
  667. "type": "null"
  668. }
  669. ]
  670. },
  671. "required": false
  672. },
  673. {
  674. "name": "subpath",
  675. "in": "query",
  676. "schema": {
  677. "anyOf": [
  678. {
  679. "type": "string"
  680. },
  681. {
  682. "type": "null"
  683. }
  684. ]
  685. },
  686. "required": false
  687. },
  688. {
  689. "name": "cursor",
  690. "in": "query",
  691. "schema": {
  692. "anyOf": [
  693. {
  694. "type": "string",
  695. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  696. },
  697. {
  698. "type": "null"
  699. }
  700. ]
  701. },
  702. "required": false
  703. }
  704. ],
  705. "security": [],
  706. "responses": {
  707. "200": {
  708. "description": "SessionsResponse",
  709. "content": {
  710. "application/json": {
  711. "schema": {
  712. "$ref": "#/components/schemas/SessionsResponse"
  713. }
  714. }
  715. }
  716. },
  717. "400": {
  718. "description": "InvalidCursorError | InvalidRequestError",
  719. "content": {
  720. "application/json": {
  721. "schema": {
  722. "anyOf": [
  723. {
  724. "$ref": "#/components/schemas/InvalidCursorError"
  725. },
  726. {
  727. "$ref": "#/components/schemas/InvalidRequestError1"
  728. },
  729. {
  730. "$ref": "#/components/schemas/InvalidRequestError"
  731. }
  732. ]
  733. }
  734. }
  735. }
  736. },
  737. "401": {
  738. "description": "UnauthorizedError",
  739. "content": {
  740. "application/json": {
  741. "schema": {
  742. "$ref": "#/components/schemas/UnauthorizedError"
  743. }
  744. }
  745. }
  746. }
  747. },
  748. "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
  749. "summary": "List sessions"
  750. },
  751. "post": {
  752. "tags": ["session"],
  753. "operationId": "v2.session.create",
  754. "parameters": [],
  755. "security": [],
  756. "responses": {
  757. "200": {
  758. "description": "Success",
  759. "content": {
  760. "application/json": {
  761. "schema": {
  762. "type": "object",
  763. "properties": {
  764. "data": {
  765. "$ref": "#/components/schemas/Session.Info"
  766. }
  767. },
  768. "required": ["data"],
  769. "additionalProperties": false
  770. }
  771. }
  772. }
  773. },
  774. "400": {
  775. "description": "InvalidRequestError",
  776. "content": {
  777. "application/json": {
  778. "schema": {
  779. "$ref": "#/components/schemas/InvalidRequestError"
  780. }
  781. }
  782. }
  783. },
  784. "401": {
  785. "description": "UnauthorizedError",
  786. "content": {
  787. "application/json": {
  788. "schema": {
  789. "$ref": "#/components/schemas/UnauthorizedError"
  790. }
  791. }
  792. }
  793. }
  794. },
  795. "description": "Create a session at the requested location.",
  796. "summary": "Create session",
  797. "requestBody": {
  798. "content": {
  799. "application/json": {
  800. "schema": {
  801. "type": "object",
  802. "properties": {
  803. "id": {
  804. "anyOf": [
  805. {
  806. "type": "string",
  807. "allOf": [
  808. {
  809. "pattern": "^ses"
  810. }
  811. ]
  812. },
  813. {
  814. "type": "null"
  815. }
  816. ]
  817. },
  818. "title": {
  819. "anyOf": [
  820. {
  821. "type": "string"
  822. },
  823. {
  824. "type": "null"
  825. }
  826. ]
  827. },
  828. "agent": {
  829. "anyOf": [
  830. {
  831. "type": "string"
  832. },
  833. {
  834. "type": "null"
  835. }
  836. ]
  837. },
  838. "model": {
  839. "anyOf": [
  840. {
  841. "$ref": "#/components/schemas/Model.Ref"
  842. },
  843. {
  844. "type": "null"
  845. }
  846. ]
  847. },
  848. "location": {
  849. "anyOf": [
  850. {
  851. "$ref": "#/components/schemas/Location.Ref"
  852. },
  853. {
  854. "type": "null"
  855. }
  856. ]
  857. }
  858. },
  859. "additionalProperties": false
  860. }
  861. }
  862. },
  863. "required": true
  864. }
  865. }
  866. },
  867. "/api/session/import": {
  868. "post": {
  869. "tags": ["session"],
  870. "operationId": "v2.session.import",
  871. "parameters": [],
  872. "security": [],
  873. "responses": {
  874. "200": {
  875. "description": "Success",
  876. "content": {
  877. "application/json": {
  878. "schema": {
  879. "type": "object",
  880. "properties": {
  881. "data": {
  882. "$ref": "#/components/schemas/Session.Info"
  883. }
  884. },
  885. "required": ["data"],
  886. "additionalProperties": false
  887. }
  888. }
  889. }
  890. },
  891. "400": {
  892. "description": "InvalidRequestError",
  893. "content": {
  894. "application/json": {
  895. "schema": {
  896. "$ref": "#/components/schemas/InvalidRequestError"
  897. }
  898. }
  899. }
  900. },
  901. "401": {
  902. "description": "UnauthorizedError",
  903. "content": {
  904. "application/json": {
  905. "schema": {
  906. "$ref": "#/components/schemas/UnauthorizedError"
  907. }
  908. }
  909. }
  910. },
  911. "409": {
  912. "description": "ConflictError",
  913. "content": {
  914. "application/json": {
  915. "schema": {
  916. "$ref": "#/components/schemas/ConflictError"
  917. }
  918. }
  919. }
  920. }
  921. },
  922. "description": "Import a projected session transcript at the requested location.",
  923. "summary": "Import session",
  924. "requestBody": {
  925. "content": {
  926. "application/json": {
  927. "schema": {
  928. "type": "object",
  929. "properties": {
  930. "info": {
  931. "$ref": "#/components/schemas/Session.Info"
  932. },
  933. "messages": {
  934. "type": "array",
  935. "items": {
  936. "$ref": "#/components/schemas/Session.Message.Info"
  937. }
  938. },
  939. "location": {
  940. "anyOf": [
  941. {
  942. "$ref": "#/components/schemas/Location.Ref"
  943. },
  944. {
  945. "type": "null"
  946. }
  947. ]
  948. }
  949. },
  950. "required": ["info", "messages"],
  951. "additionalProperties": false
  952. }
  953. }
  954. },
  955. "required": true
  956. }
  957. }
  958. },
  959. "/api/session/{sessionID}/export": {
  960. "get": {
  961. "tags": ["session"],
  962. "operationId": "v2.session.export",
  963. "parameters": [
  964. {
  965. "name": "sessionID",
  966. "in": "path",
  967. "schema": {
  968. "type": "string",
  969. "allOf": [
  970. {
  971. "pattern": "^ses"
  972. }
  973. ]
  974. },
  975. "required": true
  976. },
  977. {
  978. "name": "sanitize",
  979. "in": "query",
  980. "schema": {
  981. "anyOf": [
  982. {
  983. "type": "string",
  984. "enum": ["true", "false"]
  985. },
  986. {
  987. "type": "null"
  988. }
  989. ]
  990. },
  991. "required": false
  992. }
  993. ],
  994. "security": [],
  995. "responses": {
  996. "200": {
  997. "description": "Success",
  998. "content": {
  999. "application/json": {
  1000. "schema": {
  1001. "type": "object",
  1002. "properties": {
  1003. "data": {
  1004. "$ref": "#/components/schemas/SessionTransfer.Data"
  1005. }
  1006. },
  1007. "required": ["data"],
  1008. "additionalProperties": false
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "400": {
  1014. "description": "InvalidRequestError",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "$ref": "#/components/schemas/InvalidRequestError"
  1019. }
  1020. }
  1021. }
  1022. },
  1023. "401": {
  1024. "description": "UnauthorizedError",
  1025. "content": {
  1026. "application/json": {
  1027. "schema": {
  1028. "$ref": "#/components/schemas/UnauthorizedError"
  1029. }
  1030. }
  1031. }
  1032. },
  1033. "404": {
  1034. "description": "SessionNotFoundError",
  1035. "content": {
  1036. "application/json": {
  1037. "schema": {
  1038. "$ref": "#/components/schemas/SessionNotFoundError"
  1039. }
  1040. }
  1041. }
  1042. },
  1043. "500": {
  1044. "description": "UnknownError",
  1045. "content": {
  1046. "application/json": {
  1047. "schema": {
  1048. "$ref": "#/components/schemas/UnknownError"
  1049. }
  1050. }
  1051. }
  1052. }
  1053. },
  1054. "description": "Export a complete projected session transcript.",
  1055. "summary": "Export session"
  1056. }
  1057. },
  1058. "/api/session/active": {
  1059. "get": {
  1060. "tags": ["session"],
  1061. "operationId": "v2.session.active",
  1062. "parameters": [],
  1063. "security": [],
  1064. "responses": {
  1065. "200": {
  1066. "description": "Success",
  1067. "content": {
  1068. "application/json": {
  1069. "schema": {
  1070. "type": "object",
  1071. "properties": {
  1072. "data": {
  1073. "type": "object",
  1074. "patternProperties": {
  1075. "^ses": {
  1076. "$ref": "#/components/schemas/SessionActive"
  1077. }
  1078. }
  1079. }
  1080. },
  1081. "required": ["data"],
  1082. "additionalProperties": false
  1083. }
  1084. }
  1085. }
  1086. },
  1087. "400": {
  1088. "description": "InvalidRequestError",
  1089. "content": {
  1090. "application/json": {
  1091. "schema": {
  1092. "$ref": "#/components/schemas/InvalidRequestError"
  1093. }
  1094. }
  1095. }
  1096. },
  1097. "401": {
  1098. "description": "UnauthorizedError",
  1099. "content": {
  1100. "application/json": {
  1101. "schema": {
  1102. "$ref": "#/components/schemas/UnauthorizedError"
  1103. }
  1104. }
  1105. }
  1106. }
  1107. },
  1108. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  1109. "summary": "List active sessions"
  1110. }
  1111. },
  1112. "/api/session/{sessionID}": {
  1113. "get": {
  1114. "tags": ["session"],
  1115. "operationId": "v2.session.get",
  1116. "parameters": [
  1117. {
  1118. "name": "sessionID",
  1119. "in": "path",
  1120. "schema": {
  1121. "type": "string",
  1122. "allOf": [
  1123. {
  1124. "pattern": "^ses"
  1125. }
  1126. ]
  1127. },
  1128. "required": true
  1129. }
  1130. ],
  1131. "security": [],
  1132. "responses": {
  1133. "200": {
  1134. "description": "Success",
  1135. "content": {
  1136. "application/json": {
  1137. "schema": {
  1138. "type": "object",
  1139. "properties": {
  1140. "data": {
  1141. "$ref": "#/components/schemas/Session.Info"
  1142. }
  1143. },
  1144. "required": ["data"],
  1145. "additionalProperties": false
  1146. }
  1147. }
  1148. }
  1149. },
  1150. "400": {
  1151. "description": "InvalidRequestError",
  1152. "content": {
  1153. "application/json": {
  1154. "schema": {
  1155. "$ref": "#/components/schemas/InvalidRequestError"
  1156. }
  1157. }
  1158. }
  1159. },
  1160. "401": {
  1161. "description": "UnauthorizedError",
  1162. "content": {
  1163. "application/json": {
  1164. "schema": {
  1165. "$ref": "#/components/schemas/UnauthorizedError"
  1166. }
  1167. }
  1168. }
  1169. },
  1170. "404": {
  1171. "description": "SessionNotFoundError",
  1172. "content": {
  1173. "application/json": {
  1174. "schema": {
  1175. "$ref": "#/components/schemas/SessionNotFoundError"
  1176. }
  1177. }
  1178. }
  1179. }
  1180. },
  1181. "description": "Retrieve a session by ID.",
  1182. "summary": "Get session"
  1183. },
  1184. "delete": {
  1185. "tags": ["session"],
  1186. "operationId": "v2.session.remove",
  1187. "parameters": [
  1188. {
  1189. "name": "sessionID",
  1190. "in": "path",
  1191. "schema": {
  1192. "type": "string",
  1193. "allOf": [
  1194. {
  1195. "pattern": "^ses"
  1196. }
  1197. ]
  1198. },
  1199. "required": true
  1200. }
  1201. ],
  1202. "security": [],
  1203. "responses": {
  1204. "204": {
  1205. "description": "<No Content>"
  1206. },
  1207. "400": {
  1208. "description": "InvalidRequestError",
  1209. "content": {
  1210. "application/json": {
  1211. "schema": {
  1212. "$ref": "#/components/schemas/InvalidRequestError"
  1213. }
  1214. }
  1215. }
  1216. },
  1217. "401": {
  1218. "description": "UnauthorizedError",
  1219. "content": {
  1220. "application/json": {
  1221. "schema": {
  1222. "$ref": "#/components/schemas/UnauthorizedError"
  1223. }
  1224. }
  1225. }
  1226. },
  1227. "404": {
  1228. "description": "SessionNotFoundError",
  1229. "content": {
  1230. "application/json": {
  1231. "schema": {
  1232. "anyOf": [
  1233. {
  1234. "$ref": "#/components/schemas/SessionNotFoundError"
  1235. },
  1236. {
  1237. "$ref": "#/components/schemas/SessionNotFoundError"
  1238. }
  1239. ]
  1240. }
  1241. }
  1242. }
  1243. }
  1244. },
  1245. "description": "Delete a session and its child sessions.",
  1246. "summary": "Delete session"
  1247. }
  1248. },
  1249. "/api/session/{sessionID}/fork": {
  1250. "post": {
  1251. "tags": ["session"],
  1252. "operationId": "v2.session.fork",
  1253. "parameters": [
  1254. {
  1255. "name": "sessionID",
  1256. "in": "path",
  1257. "schema": {
  1258. "type": "string",
  1259. "allOf": [
  1260. {
  1261. "pattern": "^ses"
  1262. }
  1263. ]
  1264. },
  1265. "required": true
  1266. }
  1267. ],
  1268. "security": [],
  1269. "responses": {
  1270. "200": {
  1271. "description": "Success",
  1272. "content": {
  1273. "application/json": {
  1274. "schema": {
  1275. "type": "object",
  1276. "properties": {
  1277. "data": {
  1278. "$ref": "#/components/schemas/Session.Info"
  1279. }
  1280. },
  1281. "required": ["data"],
  1282. "additionalProperties": false
  1283. }
  1284. }
  1285. }
  1286. },
  1287. "400": {
  1288. "description": "InvalidRequestError",
  1289. "content": {
  1290. "application/json": {
  1291. "schema": {
  1292. "anyOf": [
  1293. {
  1294. "$ref": "#/components/schemas/InvalidRequestError1"
  1295. },
  1296. {
  1297. "$ref": "#/components/schemas/InvalidRequestError"
  1298. }
  1299. ]
  1300. }
  1301. }
  1302. }
  1303. },
  1304. "401": {
  1305. "description": "UnauthorizedError",
  1306. "content": {
  1307. "application/json": {
  1308. "schema": {
  1309. "$ref": "#/components/schemas/UnauthorizedError"
  1310. }
  1311. }
  1312. }
  1313. },
  1314. "404": {
  1315. "description": "SessionNotFoundError | MessageNotFoundError",
  1316. "content": {
  1317. "application/json": {
  1318. "schema": {
  1319. "anyOf": [
  1320. {
  1321. "$ref": "#/components/schemas/MessageNotFoundError"
  1322. },
  1323. {
  1324. "$ref": "#/components/schemas/SessionNotFoundError"
  1325. },
  1326. {
  1327. "$ref": "#/components/schemas/SessionNotFoundError"
  1328. }
  1329. ]
  1330. }
  1331. }
  1332. }
  1333. }
  1334. },
  1335. "description": "Create a child session by copying projected history through or before a message boundary.",
  1336. "summary": "Fork session",
  1337. "requestBody": {
  1338. "content": {
  1339. "application/json": {
  1340. "schema": {
  1341. "type": "object",
  1342. "properties": {
  1343. "boundary": {
  1344. "$ref": "#/components/schemas/Session.ForkRequestBoundary"
  1345. }
  1346. },
  1347. "required": ["boundary"],
  1348. "additionalProperties": false
  1349. }
  1350. }
  1351. },
  1352. "required": true
  1353. }
  1354. }
  1355. },
  1356. "/api/session/{sessionID}/agent": {
  1357. "post": {
  1358. "tags": ["session"],
  1359. "operationId": "v2.session.switchAgent",
  1360. "parameters": [
  1361. {
  1362. "name": "sessionID",
  1363. "in": "path",
  1364. "schema": {
  1365. "type": "string",
  1366. "allOf": [
  1367. {
  1368. "pattern": "^ses"
  1369. }
  1370. ]
  1371. },
  1372. "required": true
  1373. }
  1374. ],
  1375. "security": [],
  1376. "responses": {
  1377. "204": {
  1378. "description": "<No Content>"
  1379. },
  1380. "400": {
  1381. "description": "InvalidRequestError",
  1382. "content": {
  1383. "application/json": {
  1384. "schema": {
  1385. "$ref": "#/components/schemas/InvalidRequestError"
  1386. }
  1387. }
  1388. }
  1389. },
  1390. "401": {
  1391. "description": "UnauthorizedError",
  1392. "content": {
  1393. "application/json": {
  1394. "schema": {
  1395. "$ref": "#/components/schemas/UnauthorizedError"
  1396. }
  1397. }
  1398. }
  1399. },
  1400. "404": {
  1401. "description": "SessionNotFoundError",
  1402. "content": {
  1403. "application/json": {
  1404. "schema": {
  1405. "anyOf": [
  1406. {
  1407. "$ref": "#/components/schemas/SessionNotFoundError"
  1408. },
  1409. {
  1410. "$ref": "#/components/schemas/SessionNotFoundError"
  1411. }
  1412. ]
  1413. }
  1414. }
  1415. }
  1416. }
  1417. },
  1418. "description": "Switch the agent used by subsequent provider turns.",
  1419. "summary": "Switch session agent",
  1420. "requestBody": {
  1421. "content": {
  1422. "application/json": {
  1423. "schema": {
  1424. "type": "object",
  1425. "properties": {
  1426. "agent": {
  1427. "type": "string"
  1428. }
  1429. },
  1430. "required": ["agent"],
  1431. "additionalProperties": false
  1432. }
  1433. }
  1434. },
  1435. "required": true
  1436. }
  1437. }
  1438. },
  1439. "/api/session/{sessionID}/model": {
  1440. "post": {
  1441. "tags": ["session"],
  1442. "operationId": "v2.session.switchModel",
  1443. "parameters": [
  1444. {
  1445. "name": "sessionID",
  1446. "in": "path",
  1447. "schema": {
  1448. "type": "string",
  1449. "allOf": [
  1450. {
  1451. "pattern": "^ses"
  1452. }
  1453. ]
  1454. },
  1455. "required": true
  1456. }
  1457. ],
  1458. "security": [],
  1459. "responses": {
  1460. "204": {
  1461. "description": "<No Content>"
  1462. },
  1463. "400": {
  1464. "description": "InvalidRequestError",
  1465. "content": {
  1466. "application/json": {
  1467. "schema": {
  1468. "$ref": "#/components/schemas/InvalidRequestError"
  1469. }
  1470. }
  1471. }
  1472. },
  1473. "401": {
  1474. "description": "UnauthorizedError",
  1475. "content": {
  1476. "application/json": {
  1477. "schema": {
  1478. "$ref": "#/components/schemas/UnauthorizedError"
  1479. }
  1480. }
  1481. }
  1482. },
  1483. "404": {
  1484. "description": "SessionNotFoundError",
  1485. "content": {
  1486. "application/json": {
  1487. "schema": {
  1488. "anyOf": [
  1489. {
  1490. "$ref": "#/components/schemas/SessionNotFoundError"
  1491. },
  1492. {
  1493. "$ref": "#/components/schemas/SessionNotFoundError"
  1494. }
  1495. ]
  1496. }
  1497. }
  1498. }
  1499. }
  1500. },
  1501. "description": "Switch the model used by subsequent provider turns.",
  1502. "summary": "Switch session model",
  1503. "requestBody": {
  1504. "content": {
  1505. "application/json": {
  1506. "schema": {
  1507. "type": "object",
  1508. "properties": {
  1509. "model": {
  1510. "$ref": "#/components/schemas/Model.Ref"
  1511. }
  1512. },
  1513. "required": ["model"],
  1514. "additionalProperties": false
  1515. }
  1516. }
  1517. },
  1518. "required": true
  1519. }
  1520. }
  1521. },
  1522. "/api/session/{sessionID}/rename": {
  1523. "post": {
  1524. "tags": ["session"],
  1525. "operationId": "v2.session.rename",
  1526. "parameters": [
  1527. {
  1528. "name": "sessionID",
  1529. "in": "path",
  1530. "schema": {
  1531. "type": "string",
  1532. "allOf": [
  1533. {
  1534. "pattern": "^ses"
  1535. }
  1536. ]
  1537. },
  1538. "required": true
  1539. }
  1540. ],
  1541. "security": [],
  1542. "responses": {
  1543. "204": {
  1544. "description": "<No Content>"
  1545. },
  1546. "400": {
  1547. "description": "InvalidRequestError",
  1548. "content": {
  1549. "application/json": {
  1550. "schema": {
  1551. "$ref": "#/components/schemas/InvalidRequestError"
  1552. }
  1553. }
  1554. }
  1555. },
  1556. "401": {
  1557. "description": "UnauthorizedError",
  1558. "content": {
  1559. "application/json": {
  1560. "schema": {
  1561. "$ref": "#/components/schemas/UnauthorizedError"
  1562. }
  1563. }
  1564. }
  1565. },
  1566. "404": {
  1567. "description": "SessionNotFoundError",
  1568. "content": {
  1569. "application/json": {
  1570. "schema": {
  1571. "anyOf": [
  1572. {
  1573. "$ref": "#/components/schemas/SessionNotFoundError"
  1574. },
  1575. {
  1576. "$ref": "#/components/schemas/SessionNotFoundError"
  1577. }
  1578. ]
  1579. }
  1580. }
  1581. }
  1582. }
  1583. },
  1584. "description": "Update the session title.",
  1585. "summary": "Rename session",
  1586. "requestBody": {
  1587. "content": {
  1588. "application/json": {
  1589. "schema": {
  1590. "type": "object",
  1591. "properties": {
  1592. "title": {
  1593. "type": "string"
  1594. }
  1595. },
  1596. "required": ["title"],
  1597. "additionalProperties": false
  1598. }
  1599. }
  1600. },
  1601. "required": true
  1602. }
  1603. }
  1604. },
  1605. "/api/session/{sessionID}/move": {
  1606. "post": {
  1607. "tags": ["session"],
  1608. "operationId": "v2.session.move",
  1609. "parameters": [
  1610. {
  1611. "name": "sessionID",
  1612. "in": "path",
  1613. "schema": {
  1614. "type": "string",
  1615. "allOf": [
  1616. {
  1617. "pattern": "^ses"
  1618. }
  1619. ]
  1620. },
  1621. "required": true
  1622. }
  1623. ],
  1624. "security": [],
  1625. "responses": {
  1626. "204": {
  1627. "description": "<No Content>"
  1628. },
  1629. "400": {
  1630. "description": "InvalidRequestError",
  1631. "content": {
  1632. "application/json": {
  1633. "schema": {
  1634. "anyOf": [
  1635. {
  1636. "$ref": "#/components/schemas/InvalidRequestError1"
  1637. },
  1638. {
  1639. "$ref": "#/components/schemas/InvalidRequestError"
  1640. }
  1641. ]
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "401": {
  1647. "description": "UnauthorizedError",
  1648. "content": {
  1649. "application/json": {
  1650. "schema": {
  1651. "$ref": "#/components/schemas/UnauthorizedError"
  1652. }
  1653. }
  1654. }
  1655. },
  1656. "404": {
  1657. "description": "SessionNotFoundError",
  1658. "content": {
  1659. "application/json": {
  1660. "schema": {
  1661. "$ref": "#/components/schemas/SessionNotFoundError"
  1662. }
  1663. }
  1664. }
  1665. }
  1666. },
  1667. "description": "Move a session to another project directory, optionally transferring local changes.",
  1668. "summary": "Move session",
  1669. "requestBody": {
  1670. "content": {
  1671. "application/json": {
  1672. "schema": {
  1673. "type": "object",
  1674. "properties": {
  1675. "directory": {
  1676. "type": "string"
  1677. },
  1678. "workspaceID": {
  1679. "type": "string",
  1680. "allOf": [
  1681. {
  1682. "pattern": "^wrk"
  1683. }
  1684. ]
  1685. },
  1686. "delivery": {
  1687. "anyOf": [
  1688. {
  1689. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  1690. },
  1691. {
  1692. "type": "null"
  1693. }
  1694. ]
  1695. }
  1696. },
  1697. "required": ["directory"],
  1698. "additionalProperties": false
  1699. }
  1700. }
  1701. },
  1702. "required": true
  1703. }
  1704. }
  1705. },
  1706. "/api/session/{sessionID}/prompt": {
  1707. "post": {
  1708. "tags": ["session"],
  1709. "operationId": "v2.session.prompt",
  1710. "parameters": [
  1711. {
  1712. "name": "sessionID",
  1713. "in": "path",
  1714. "schema": {
  1715. "type": "string",
  1716. "allOf": [
  1717. {
  1718. "pattern": "^ses"
  1719. }
  1720. ]
  1721. },
  1722. "required": true
  1723. }
  1724. ],
  1725. "security": [],
  1726. "responses": {
  1727. "200": {
  1728. "description": "Success",
  1729. "content": {
  1730. "application/json": {
  1731. "schema": {
  1732. "type": "object",
  1733. "properties": {
  1734. "data": {
  1735. "$ref": "#/components/schemas/Session.Inbox.User"
  1736. }
  1737. },
  1738. "required": ["data"],
  1739. "additionalProperties": false
  1740. }
  1741. }
  1742. }
  1743. },
  1744. "400": {
  1745. "description": "InvalidRequestError",
  1746. "content": {
  1747. "application/json": {
  1748. "schema": {
  1749. "anyOf": [
  1750. {
  1751. "$ref": "#/components/schemas/InvalidRequestError1"
  1752. },
  1753. {
  1754. "$ref": "#/components/schemas/InvalidRequestError"
  1755. }
  1756. ]
  1757. }
  1758. }
  1759. }
  1760. },
  1761. "401": {
  1762. "description": "UnauthorizedError",
  1763. "content": {
  1764. "application/json": {
  1765. "schema": {
  1766. "$ref": "#/components/schemas/UnauthorizedError"
  1767. }
  1768. }
  1769. }
  1770. },
  1771. "404": {
  1772. "description": "SessionNotFoundError",
  1773. "content": {
  1774. "application/json": {
  1775. "schema": {
  1776. "anyOf": [
  1777. {
  1778. "$ref": "#/components/schemas/SessionNotFoundError"
  1779. },
  1780. {
  1781. "$ref": "#/components/schemas/SessionNotFoundError"
  1782. }
  1783. ]
  1784. }
  1785. }
  1786. }
  1787. },
  1788. "409": {
  1789. "description": "ConflictError",
  1790. "content": {
  1791. "application/json": {
  1792. "schema": {
  1793. "$ref": "#/components/schemas/ConflictError"
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1800. "summary": "Send message",
  1801. "requestBody": {
  1802. "content": {
  1803. "application/json": {
  1804. "schema": {
  1805. "type": "object",
  1806. "properties": {
  1807. "id": {
  1808. "anyOf": [
  1809. {
  1810. "type": "string",
  1811. "allOf": [
  1812. {
  1813. "pattern": "^msg_"
  1814. }
  1815. ]
  1816. },
  1817. {
  1818. "type": "null"
  1819. }
  1820. ]
  1821. },
  1822. "text": {
  1823. "type": "string"
  1824. },
  1825. "files": {
  1826. "type": "array",
  1827. "items": {
  1828. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1829. }
  1830. },
  1831. "agents": {
  1832. "type": "array",
  1833. "items": {
  1834. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1835. }
  1836. },
  1837. "skills": {
  1838. "type": "array",
  1839. "items": {
  1840. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  1841. }
  1842. },
  1843. "metadata": {
  1844. "type": "object"
  1845. },
  1846. "delivery": {
  1847. "anyOf": [
  1848. {
  1849. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  1850. },
  1851. {
  1852. "type": "null"
  1853. }
  1854. ]
  1855. },
  1856. "resume": {
  1857. "anyOf": [
  1858. {
  1859. "type": "boolean"
  1860. },
  1861. {
  1862. "type": "null"
  1863. }
  1864. ]
  1865. }
  1866. },
  1867. "required": ["text"],
  1868. "additionalProperties": false
  1869. }
  1870. }
  1871. },
  1872. "required": true
  1873. }
  1874. }
  1875. },
  1876. "/api/session/{sessionID}/command": {
  1877. "post": {
  1878. "tags": ["session"],
  1879. "operationId": "v2.session.command",
  1880. "parameters": [
  1881. {
  1882. "name": "sessionID",
  1883. "in": "path",
  1884. "schema": {
  1885. "type": "string",
  1886. "allOf": [
  1887. {
  1888. "pattern": "^ses"
  1889. }
  1890. ]
  1891. },
  1892. "required": true
  1893. }
  1894. ],
  1895. "security": [],
  1896. "responses": {
  1897. "200": {
  1898. "description": "Success",
  1899. "content": {
  1900. "application/json": {
  1901. "schema": {
  1902. "type": "object",
  1903. "properties": {
  1904. "data": {
  1905. "$ref": "#/components/schemas/Session.Inbox.User"
  1906. }
  1907. },
  1908. "required": ["data"],
  1909. "additionalProperties": false
  1910. }
  1911. }
  1912. }
  1913. },
  1914. "400": {
  1915. "description": "InvalidRequestError",
  1916. "content": {
  1917. "application/json": {
  1918. "schema": {
  1919. "anyOf": [
  1920. {
  1921. "$ref": "#/components/schemas/InvalidRequestError1"
  1922. },
  1923. {
  1924. "$ref": "#/components/schemas/InvalidRequestError"
  1925. }
  1926. ]
  1927. }
  1928. }
  1929. }
  1930. },
  1931. "401": {
  1932. "description": "UnauthorizedError",
  1933. "content": {
  1934. "application/json": {
  1935. "schema": {
  1936. "$ref": "#/components/schemas/UnauthorizedError"
  1937. }
  1938. }
  1939. }
  1940. },
  1941. "404": {
  1942. "description": "SessionNotFoundError | CommandNotFoundError",
  1943. "content": {
  1944. "application/json": {
  1945. "schema": {
  1946. "anyOf": [
  1947. {
  1948. "$ref": "#/components/schemas/CommandNotFoundError"
  1949. },
  1950. {
  1951. "$ref": "#/components/schemas/SessionNotFoundError"
  1952. },
  1953. {
  1954. "$ref": "#/components/schemas/SessionNotFoundError"
  1955. }
  1956. ]
  1957. }
  1958. }
  1959. }
  1960. },
  1961. "409": {
  1962. "description": "ConflictError",
  1963. "content": {
  1964. "application/json": {
  1965. "schema": {
  1966. "$ref": "#/components/schemas/ConflictError"
  1967. }
  1968. }
  1969. }
  1970. },
  1971. "500": {
  1972. "description": "CommandEvaluationError",
  1973. "content": {
  1974. "application/json": {
  1975. "schema": {
  1976. "$ref": "#/components/schemas/CommandEvaluationError"
  1977. }
  1978. }
  1979. }
  1980. }
  1981. },
  1982. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1983. "summary": "Run command",
  1984. "requestBody": {
  1985. "content": {
  1986. "application/json": {
  1987. "schema": {
  1988. "type": "object",
  1989. "properties": {
  1990. "id": {
  1991. "anyOf": [
  1992. {
  1993. "type": "string",
  1994. "allOf": [
  1995. {
  1996. "pattern": "^msg_"
  1997. }
  1998. ]
  1999. },
  2000. {
  2001. "type": "null"
  2002. }
  2003. ]
  2004. },
  2005. "command": {
  2006. "type": "string"
  2007. },
  2008. "arguments": {
  2009. "anyOf": [
  2010. {
  2011. "type": "string"
  2012. },
  2013. {
  2014. "type": "null"
  2015. }
  2016. ]
  2017. },
  2018. "agent": {
  2019. "anyOf": [
  2020. {
  2021. "type": "string"
  2022. },
  2023. {
  2024. "type": "null"
  2025. }
  2026. ]
  2027. },
  2028. "model": {
  2029. "anyOf": [
  2030. {
  2031. "$ref": "#/components/schemas/Model.Ref"
  2032. },
  2033. {
  2034. "type": "null"
  2035. }
  2036. ]
  2037. },
  2038. "files": {
  2039. "type": "array",
  2040. "items": {
  2041. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  2042. }
  2043. },
  2044. "agents": {
  2045. "type": "array",
  2046. "items": {
  2047. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  2048. }
  2049. },
  2050. "skills": {
  2051. "type": "array",
  2052. "items": {
  2053. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  2054. }
  2055. },
  2056. "delivery": {
  2057. "anyOf": [
  2058. {
  2059. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2060. },
  2061. {
  2062. "type": "null"
  2063. }
  2064. ]
  2065. },
  2066. "resume": {
  2067. "anyOf": [
  2068. {
  2069. "type": "boolean"
  2070. },
  2071. {
  2072. "type": "null"
  2073. }
  2074. ]
  2075. }
  2076. },
  2077. "required": ["command"],
  2078. "additionalProperties": false
  2079. }
  2080. }
  2081. },
  2082. "required": true
  2083. }
  2084. }
  2085. },
  2086. "/api/session/{sessionID}/skill": {
  2087. "post": {
  2088. "tags": ["session"],
  2089. "operationId": "v2.session.skill",
  2090. "parameters": [
  2091. {
  2092. "name": "sessionID",
  2093. "in": "path",
  2094. "schema": {
  2095. "type": "string",
  2096. "allOf": [
  2097. {
  2098. "pattern": "^ses"
  2099. }
  2100. ]
  2101. },
  2102. "required": true
  2103. }
  2104. ],
  2105. "security": [],
  2106. "responses": {
  2107. "204": {
  2108. "description": "<No Content>"
  2109. },
  2110. "400": {
  2111. "description": "InvalidRequestError",
  2112. "content": {
  2113. "application/json": {
  2114. "schema": {
  2115. "$ref": "#/components/schemas/InvalidRequestError"
  2116. }
  2117. }
  2118. }
  2119. },
  2120. "401": {
  2121. "description": "UnauthorizedError",
  2122. "content": {
  2123. "application/json": {
  2124. "schema": {
  2125. "$ref": "#/components/schemas/UnauthorizedError"
  2126. }
  2127. }
  2128. }
  2129. },
  2130. "404": {
  2131. "description": "SessionNotFoundError | SkillNotFoundError",
  2132. "content": {
  2133. "application/json": {
  2134. "schema": {
  2135. "anyOf": [
  2136. {
  2137. "$ref": "#/components/schemas/SkillNotFoundError"
  2138. },
  2139. {
  2140. "$ref": "#/components/schemas/SessionNotFoundError"
  2141. },
  2142. {
  2143. "$ref": "#/components/schemas/SessionNotFoundError"
  2144. }
  2145. ]
  2146. }
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2152. "summary": "Activate skill",
  2153. "requestBody": {
  2154. "content": {
  2155. "application/json": {
  2156. "schema": {
  2157. "type": "object",
  2158. "properties": {
  2159. "id": {
  2160. "anyOf": [
  2161. {
  2162. "type": "string",
  2163. "allOf": [
  2164. {
  2165. "pattern": "^msg_"
  2166. }
  2167. ]
  2168. },
  2169. {
  2170. "type": "null"
  2171. }
  2172. ]
  2173. },
  2174. "skill": {
  2175. "type": "string"
  2176. },
  2177. "resume": {
  2178. "anyOf": [
  2179. {
  2180. "type": "boolean"
  2181. },
  2182. {
  2183. "type": "null"
  2184. }
  2185. ]
  2186. }
  2187. },
  2188. "required": ["skill"],
  2189. "additionalProperties": false
  2190. }
  2191. }
  2192. },
  2193. "required": true
  2194. }
  2195. }
  2196. },
  2197. "/api/session/{sessionID}/synthetic": {
  2198. "post": {
  2199. "tags": ["session"],
  2200. "operationId": "v2.session.synthetic",
  2201. "parameters": [
  2202. {
  2203. "name": "sessionID",
  2204. "in": "path",
  2205. "schema": {
  2206. "type": "string",
  2207. "allOf": [
  2208. {
  2209. "pattern": "^ses"
  2210. }
  2211. ]
  2212. },
  2213. "required": true
  2214. }
  2215. ],
  2216. "security": [],
  2217. "responses": {
  2218. "200": {
  2219. "description": "Success",
  2220. "content": {
  2221. "application/json": {
  2222. "schema": {
  2223. "type": "object",
  2224. "properties": {
  2225. "data": {
  2226. "$ref": "#/components/schemas/Session.Inbox.Synthetic"
  2227. }
  2228. },
  2229. "required": ["data"],
  2230. "additionalProperties": false
  2231. }
  2232. }
  2233. }
  2234. },
  2235. "400": {
  2236. "description": "InvalidRequestError",
  2237. "content": {
  2238. "application/json": {
  2239. "schema": {
  2240. "$ref": "#/components/schemas/InvalidRequestError"
  2241. }
  2242. }
  2243. }
  2244. },
  2245. "401": {
  2246. "description": "UnauthorizedError",
  2247. "content": {
  2248. "application/json": {
  2249. "schema": {
  2250. "$ref": "#/components/schemas/UnauthorizedError"
  2251. }
  2252. }
  2253. }
  2254. },
  2255. "404": {
  2256. "description": "SessionNotFoundError",
  2257. "content": {
  2258. "application/json": {
  2259. "schema": {
  2260. "anyOf": [
  2261. {
  2262. "$ref": "#/components/schemas/SessionNotFoundError"
  2263. },
  2264. {
  2265. "$ref": "#/components/schemas/SessionNotFoundError"
  2266. }
  2267. ]
  2268. }
  2269. }
  2270. }
  2271. },
  2272. "409": {
  2273. "description": "ConflictError",
  2274. "content": {
  2275. "application/json": {
  2276. "schema": {
  2277. "$ref": "#/components/schemas/ConflictError"
  2278. }
  2279. }
  2280. }
  2281. }
  2282. },
  2283. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2284. "summary": "Add synthetic message",
  2285. "requestBody": {
  2286. "content": {
  2287. "application/json": {
  2288. "schema": {
  2289. "type": "object",
  2290. "properties": {
  2291. "id": {
  2292. "anyOf": [
  2293. {
  2294. "type": "string",
  2295. "allOf": [
  2296. {
  2297. "pattern": "^msg_"
  2298. }
  2299. ]
  2300. },
  2301. {
  2302. "type": "null"
  2303. }
  2304. ]
  2305. },
  2306. "text": {
  2307. "type": "string"
  2308. },
  2309. "description": {
  2310. "anyOf": [
  2311. {
  2312. "type": "string"
  2313. },
  2314. {
  2315. "type": "null"
  2316. }
  2317. ]
  2318. },
  2319. "metadata": {
  2320. "type": "object"
  2321. },
  2322. "delivery": {
  2323. "anyOf": [
  2324. {
  2325. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2326. },
  2327. {
  2328. "type": "null"
  2329. }
  2330. ]
  2331. },
  2332. "resume": {
  2333. "anyOf": [
  2334. {
  2335. "type": "boolean"
  2336. },
  2337. {
  2338. "type": "null"
  2339. }
  2340. ]
  2341. }
  2342. },
  2343. "required": ["text"],
  2344. "additionalProperties": false
  2345. }
  2346. }
  2347. },
  2348. "required": true
  2349. }
  2350. }
  2351. },
  2352. "/api/session/{sessionID}/shell": {
  2353. "post": {
  2354. "tags": ["session"],
  2355. "operationId": "v2.session.shell",
  2356. "parameters": [
  2357. {
  2358. "name": "sessionID",
  2359. "in": "path",
  2360. "schema": {
  2361. "type": "string",
  2362. "allOf": [
  2363. {
  2364. "pattern": "^ses"
  2365. }
  2366. ]
  2367. },
  2368. "required": true
  2369. }
  2370. ],
  2371. "security": [],
  2372. "responses": {
  2373. "204": {
  2374. "description": "<No Content>"
  2375. },
  2376. "400": {
  2377. "description": "InvalidRequestError",
  2378. "content": {
  2379. "application/json": {
  2380. "schema": {
  2381. "$ref": "#/components/schemas/InvalidRequestError"
  2382. }
  2383. }
  2384. }
  2385. },
  2386. "401": {
  2387. "description": "UnauthorizedError",
  2388. "content": {
  2389. "application/json": {
  2390. "schema": {
  2391. "$ref": "#/components/schemas/UnauthorizedError"
  2392. }
  2393. }
  2394. }
  2395. },
  2396. "404": {
  2397. "description": "SessionNotFoundError",
  2398. "content": {
  2399. "application/json": {
  2400. "schema": {
  2401. "anyOf": [
  2402. {
  2403. "$ref": "#/components/schemas/SessionNotFoundError"
  2404. },
  2405. {
  2406. "$ref": "#/components/schemas/SessionNotFoundError"
  2407. }
  2408. ]
  2409. }
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "description": "Execute one shell command in the session's working directory. Emits a shell.started event before execution and a shell.ended event with the merged output after.",
  2415. "summary": "Run shell command",
  2416. "requestBody": {
  2417. "content": {
  2418. "application/json": {
  2419. "schema": {
  2420. "type": "object",
  2421. "properties": {
  2422. "id": {
  2423. "anyOf": [
  2424. {
  2425. "type": "string",
  2426. "allOf": [
  2427. {
  2428. "pattern": "^evt_"
  2429. }
  2430. ]
  2431. },
  2432. {
  2433. "type": "null"
  2434. }
  2435. ]
  2436. },
  2437. "command": {
  2438. "type": "string"
  2439. }
  2440. },
  2441. "required": ["command"],
  2442. "additionalProperties": false
  2443. }
  2444. }
  2445. },
  2446. "required": true
  2447. }
  2448. }
  2449. },
  2450. "/api/session/{sessionID}/compact": {
  2451. "post": {
  2452. "tags": ["session"],
  2453. "operationId": "v2.session.compact",
  2454. "parameters": [
  2455. {
  2456. "name": "sessionID",
  2457. "in": "path",
  2458. "schema": {
  2459. "type": "string",
  2460. "allOf": [
  2461. {
  2462. "pattern": "^ses"
  2463. }
  2464. ]
  2465. },
  2466. "required": true
  2467. }
  2468. ],
  2469. "security": [],
  2470. "responses": {
  2471. "200": {
  2472. "description": "Success",
  2473. "content": {
  2474. "application/json": {
  2475. "schema": {
  2476. "type": "object",
  2477. "properties": {
  2478. "data": {
  2479. "$ref": "#/components/schemas/Session.Inbox.Compaction"
  2480. }
  2481. },
  2482. "required": ["data"],
  2483. "additionalProperties": false
  2484. }
  2485. }
  2486. }
  2487. },
  2488. "400": {
  2489. "description": "InvalidRequestError",
  2490. "content": {
  2491. "application/json": {
  2492. "schema": {
  2493. "$ref": "#/components/schemas/InvalidRequestError"
  2494. }
  2495. }
  2496. }
  2497. },
  2498. "401": {
  2499. "description": "UnauthorizedError",
  2500. "content": {
  2501. "application/json": {
  2502. "schema": {
  2503. "$ref": "#/components/schemas/UnauthorizedError"
  2504. }
  2505. }
  2506. }
  2507. },
  2508. "404": {
  2509. "description": "SessionNotFoundError",
  2510. "content": {
  2511. "application/json": {
  2512. "schema": {
  2513. "anyOf": [
  2514. {
  2515. "$ref": "#/components/schemas/SessionNotFoundError"
  2516. },
  2517. {
  2518. "$ref": "#/components/schemas/SessionNotFoundError"
  2519. }
  2520. ]
  2521. }
  2522. }
  2523. }
  2524. },
  2525. "409": {
  2526. "description": "ConflictError",
  2527. "content": {
  2528. "application/json": {
  2529. "schema": {
  2530. "$ref": "#/components/schemas/ConflictError"
  2531. }
  2532. }
  2533. }
  2534. }
  2535. },
  2536. "description": "Queue a durable session compaction request.",
  2537. "summary": "Compact session",
  2538. "requestBody": {
  2539. "content": {
  2540. "application/json": {
  2541. "schema": {
  2542. "type": "object",
  2543. "properties": {
  2544. "id": {
  2545. "anyOf": [
  2546. {
  2547. "type": "string",
  2548. "allOf": [
  2549. {
  2550. "pattern": "^msg_"
  2551. }
  2552. ]
  2553. },
  2554. {
  2555. "type": "null"
  2556. }
  2557. ]
  2558. },
  2559. "delivery": {
  2560. "anyOf": [
  2561. {
  2562. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2563. },
  2564. {
  2565. "type": "null"
  2566. }
  2567. ]
  2568. }
  2569. },
  2570. "additionalProperties": false
  2571. }
  2572. }
  2573. },
  2574. "required": true
  2575. }
  2576. }
  2577. },
  2578. "/api/session/{sessionID}/wait": {
  2579. "post": {
  2580. "tags": ["session"],
  2581. "operationId": "v2.session.wait",
  2582. "parameters": [
  2583. {
  2584. "name": "sessionID",
  2585. "in": "path",
  2586. "schema": {
  2587. "type": "string",
  2588. "allOf": [
  2589. {
  2590. "pattern": "^ses"
  2591. }
  2592. ]
  2593. },
  2594. "required": true
  2595. }
  2596. ],
  2597. "security": [],
  2598. "responses": {
  2599. "204": {
  2600. "description": "<No Content>"
  2601. },
  2602. "400": {
  2603. "description": "InvalidRequestError",
  2604. "content": {
  2605. "application/json": {
  2606. "schema": {
  2607. "$ref": "#/components/schemas/InvalidRequestError"
  2608. }
  2609. }
  2610. }
  2611. },
  2612. "401": {
  2613. "description": "UnauthorizedError",
  2614. "content": {
  2615. "application/json": {
  2616. "schema": {
  2617. "$ref": "#/components/schemas/UnauthorizedError"
  2618. }
  2619. }
  2620. }
  2621. },
  2622. "404": {
  2623. "description": "SessionNotFoundError",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "anyOf": [
  2628. {
  2629. "$ref": "#/components/schemas/SessionNotFoundError"
  2630. },
  2631. {
  2632. "$ref": "#/components/schemas/SessionNotFoundError"
  2633. }
  2634. ]
  2635. }
  2636. }
  2637. }
  2638. },
  2639. "503": {
  2640. "description": "ServiceUnavailableError",
  2641. "content": {
  2642. "application/json": {
  2643. "schema": {
  2644. "$ref": "#/components/schemas/ServiceUnavailableError"
  2645. }
  2646. }
  2647. }
  2648. }
  2649. },
  2650. "description": "Wait for a session agent loop to become idle.",
  2651. "summary": "Wait for session"
  2652. }
  2653. },
  2654. "/api/session/{sessionID}/revert/stage": {
  2655. "post": {
  2656. "tags": ["session"],
  2657. "operationId": "v2.session.revert.stage",
  2658. "parameters": [
  2659. {
  2660. "name": "sessionID",
  2661. "in": "path",
  2662. "schema": {
  2663. "type": "string",
  2664. "allOf": [
  2665. {
  2666. "pattern": "^ses"
  2667. }
  2668. ]
  2669. },
  2670. "required": true
  2671. }
  2672. ],
  2673. "security": [],
  2674. "responses": {
  2675. "200": {
  2676. "description": "Success",
  2677. "content": {
  2678. "application/json": {
  2679. "schema": {
  2680. "type": "object",
  2681. "properties": {
  2682. "data": {
  2683. "$ref": "#/components/schemas/Session.Revert"
  2684. }
  2685. },
  2686. "required": ["data"],
  2687. "additionalProperties": false
  2688. }
  2689. }
  2690. }
  2691. },
  2692. "400": {
  2693. "description": "InvalidRequestError",
  2694. "content": {
  2695. "application/json": {
  2696. "schema": {
  2697. "$ref": "#/components/schemas/InvalidRequestError"
  2698. }
  2699. }
  2700. }
  2701. },
  2702. "401": {
  2703. "description": "UnauthorizedError",
  2704. "content": {
  2705. "application/json": {
  2706. "schema": {
  2707. "$ref": "#/components/schemas/UnauthorizedError"
  2708. }
  2709. }
  2710. }
  2711. },
  2712. "404": {
  2713. "description": "MessageNotFoundError | SessionNotFoundError",
  2714. "content": {
  2715. "application/json": {
  2716. "schema": {
  2717. "anyOf": [
  2718. {
  2719. "$ref": "#/components/schemas/MessageNotFoundError"
  2720. },
  2721. {
  2722. "$ref": "#/components/schemas/SessionNotFoundError"
  2723. },
  2724. {
  2725. "$ref": "#/components/schemas/SessionNotFoundError"
  2726. }
  2727. ]
  2728. }
  2729. }
  2730. }
  2731. },
  2732. "409": {
  2733. "description": "SessionBusyError",
  2734. "content": {
  2735. "application/json": {
  2736. "schema": {
  2737. "$ref": "#/components/schemas/SessionBusyError"
  2738. }
  2739. }
  2740. }
  2741. },
  2742. "500": {
  2743. "description": "UnknownError",
  2744. "content": {
  2745. "application/json": {
  2746. "schema": {
  2747. "$ref": "#/components/schemas/UnknownError"
  2748. }
  2749. }
  2750. }
  2751. }
  2752. },
  2753. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2754. "summary": "Stage session revert",
  2755. "requestBody": {
  2756. "content": {
  2757. "application/json": {
  2758. "schema": {
  2759. "type": "object",
  2760. "properties": {
  2761. "messageID": {
  2762. "type": "string",
  2763. "allOf": [
  2764. {
  2765. "pattern": "^msg_"
  2766. }
  2767. ]
  2768. },
  2769. "files": {
  2770. "anyOf": [
  2771. {
  2772. "type": "boolean"
  2773. },
  2774. {
  2775. "type": "null"
  2776. }
  2777. ]
  2778. }
  2779. },
  2780. "required": ["messageID"],
  2781. "additionalProperties": false
  2782. }
  2783. }
  2784. },
  2785. "required": true
  2786. }
  2787. }
  2788. },
  2789. "/api/session/{sessionID}/revert/clear": {
  2790. "post": {
  2791. "tags": ["session"],
  2792. "operationId": "v2.session.revert.clear",
  2793. "parameters": [
  2794. {
  2795. "name": "sessionID",
  2796. "in": "path",
  2797. "schema": {
  2798. "type": "string",
  2799. "allOf": [
  2800. {
  2801. "pattern": "^ses"
  2802. }
  2803. ]
  2804. },
  2805. "required": true
  2806. }
  2807. ],
  2808. "security": [],
  2809. "responses": {
  2810. "204": {
  2811. "description": "<No Content>"
  2812. },
  2813. "400": {
  2814. "description": "InvalidRequestError",
  2815. "content": {
  2816. "application/json": {
  2817. "schema": {
  2818. "$ref": "#/components/schemas/InvalidRequestError"
  2819. }
  2820. }
  2821. }
  2822. },
  2823. "401": {
  2824. "description": "UnauthorizedError",
  2825. "content": {
  2826. "application/json": {
  2827. "schema": {
  2828. "$ref": "#/components/schemas/UnauthorizedError"
  2829. }
  2830. }
  2831. }
  2832. },
  2833. "404": {
  2834. "description": "SessionNotFoundError",
  2835. "content": {
  2836. "application/json": {
  2837. "schema": {
  2838. "anyOf": [
  2839. {
  2840. "$ref": "#/components/schemas/SessionNotFoundError"
  2841. },
  2842. {
  2843. "$ref": "#/components/schemas/SessionNotFoundError"
  2844. }
  2845. ]
  2846. }
  2847. }
  2848. }
  2849. },
  2850. "409": {
  2851. "description": "SessionBusyError",
  2852. "content": {
  2853. "application/json": {
  2854. "schema": {
  2855. "$ref": "#/components/schemas/SessionBusyError"
  2856. }
  2857. }
  2858. }
  2859. },
  2860. "500": {
  2861. "description": "UnknownError",
  2862. "content": {
  2863. "application/json": {
  2864. "schema": {
  2865. "$ref": "#/components/schemas/UnknownError"
  2866. }
  2867. }
  2868. }
  2869. }
  2870. },
  2871. "summary": "Clear staged revert"
  2872. }
  2873. },
  2874. "/api/session/{sessionID}/revert/commit": {
  2875. "post": {
  2876. "tags": ["session"],
  2877. "operationId": "v2.session.revert.commit",
  2878. "parameters": [
  2879. {
  2880. "name": "sessionID",
  2881. "in": "path",
  2882. "schema": {
  2883. "type": "string",
  2884. "allOf": [
  2885. {
  2886. "pattern": "^ses"
  2887. }
  2888. ]
  2889. },
  2890. "required": true
  2891. }
  2892. ],
  2893. "security": [],
  2894. "responses": {
  2895. "204": {
  2896. "description": "<No Content>"
  2897. },
  2898. "400": {
  2899. "description": "InvalidRequestError",
  2900. "content": {
  2901. "application/json": {
  2902. "schema": {
  2903. "$ref": "#/components/schemas/InvalidRequestError"
  2904. }
  2905. }
  2906. }
  2907. },
  2908. "401": {
  2909. "description": "UnauthorizedError",
  2910. "content": {
  2911. "application/json": {
  2912. "schema": {
  2913. "$ref": "#/components/schemas/UnauthorizedError"
  2914. }
  2915. }
  2916. }
  2917. },
  2918. "404": {
  2919. "description": "SessionNotFoundError",
  2920. "content": {
  2921. "application/json": {
  2922. "schema": {
  2923. "anyOf": [
  2924. {
  2925. "$ref": "#/components/schemas/SessionNotFoundError"
  2926. },
  2927. {
  2928. "$ref": "#/components/schemas/SessionNotFoundError"
  2929. }
  2930. ]
  2931. }
  2932. }
  2933. }
  2934. },
  2935. "409": {
  2936. "description": "SessionBusyError",
  2937. "content": {
  2938. "application/json": {
  2939. "schema": {
  2940. "$ref": "#/components/schemas/SessionBusyError"
  2941. }
  2942. }
  2943. }
  2944. }
  2945. },
  2946. "summary": "Commit staged revert"
  2947. }
  2948. },
  2949. "/api/session/{sessionID}/context": {
  2950. "get": {
  2951. "tags": ["session"],
  2952. "operationId": "v2.session.context",
  2953. "parameters": [
  2954. {
  2955. "name": "sessionID",
  2956. "in": "path",
  2957. "schema": {
  2958. "type": "string",
  2959. "allOf": [
  2960. {
  2961. "pattern": "^ses"
  2962. }
  2963. ]
  2964. },
  2965. "required": true
  2966. }
  2967. ],
  2968. "security": [],
  2969. "responses": {
  2970. "200": {
  2971. "description": "Success",
  2972. "content": {
  2973. "application/json": {
  2974. "schema": {
  2975. "type": "object",
  2976. "properties": {
  2977. "data": {
  2978. "type": "array",
  2979. "items": {
  2980. "$ref": "#/components/schemas/Session.Message.Info"
  2981. }
  2982. }
  2983. },
  2984. "required": ["data"],
  2985. "additionalProperties": false
  2986. }
  2987. }
  2988. }
  2989. },
  2990. "400": {
  2991. "description": "InvalidRequestError",
  2992. "content": {
  2993. "application/json": {
  2994. "schema": {
  2995. "$ref": "#/components/schemas/InvalidRequestError"
  2996. }
  2997. }
  2998. }
  2999. },
  3000. "401": {
  3001. "description": "UnauthorizedError",
  3002. "content": {
  3003. "application/json": {
  3004. "schema": {
  3005. "$ref": "#/components/schemas/UnauthorizedError"
  3006. }
  3007. }
  3008. }
  3009. },
  3010. "404": {
  3011. "description": "SessionNotFoundError",
  3012. "content": {
  3013. "application/json": {
  3014. "schema": {
  3015. "$ref": "#/components/schemas/SessionNotFoundError"
  3016. }
  3017. }
  3018. }
  3019. },
  3020. "500": {
  3021. "description": "UnknownError",
  3022. "content": {
  3023. "application/json": {
  3024. "schema": {
  3025. "$ref": "#/components/schemas/UnknownError"
  3026. }
  3027. }
  3028. }
  3029. }
  3030. },
  3031. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  3032. "summary": "Get session context"
  3033. }
  3034. },
  3035. "/api/session/{sessionID}/inbox": {
  3036. "get": {
  3037. "tags": ["session"],
  3038. "operationId": "v2.session.inbox.list",
  3039. "parameters": [
  3040. {
  3041. "name": "sessionID",
  3042. "in": "path",
  3043. "schema": {
  3044. "type": "string",
  3045. "allOf": [
  3046. {
  3047. "pattern": "^ses"
  3048. }
  3049. ]
  3050. },
  3051. "required": true
  3052. }
  3053. ],
  3054. "security": [],
  3055. "responses": {
  3056. "200": {
  3057. "description": "Success",
  3058. "content": {
  3059. "application/json": {
  3060. "schema": {
  3061. "type": "object",
  3062. "properties": {
  3063. "data": {
  3064. "type": "array",
  3065. "items": {
  3066. "$ref": "#/components/schemas/Session.Inbox.Info"
  3067. }
  3068. }
  3069. },
  3070. "required": ["data"],
  3071. "additionalProperties": false
  3072. }
  3073. }
  3074. }
  3075. },
  3076. "400": {
  3077. "description": "InvalidRequestError",
  3078. "content": {
  3079. "application/json": {
  3080. "schema": {
  3081. "$ref": "#/components/schemas/InvalidRequestError"
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "401": {
  3087. "description": "UnauthorizedError",
  3088. "content": {
  3089. "application/json": {
  3090. "schema": {
  3091. "$ref": "#/components/schemas/UnauthorizedError"
  3092. }
  3093. }
  3094. }
  3095. },
  3096. "404": {
  3097. "description": "SessionNotFoundError",
  3098. "content": {
  3099. "application/json": {
  3100. "schema": {
  3101. "$ref": "#/components/schemas/SessionNotFoundError"
  3102. }
  3103. }
  3104. }
  3105. }
  3106. },
  3107. "description": "List durable enqueued session work not yet delivered, ordered by enqueue sequence. Includes user, synthetic, compaction, and move items.",
  3108. "summary": "List session inbox"
  3109. }
  3110. },
  3111. "/api/session/{sessionID}/inbox/{inboxID}": {
  3112. "delete": {
  3113. "tags": ["session"],
  3114. "operationId": "v2.session.inbox.cancel",
  3115. "parameters": [
  3116. {
  3117. "name": "sessionID",
  3118. "in": "path",
  3119. "schema": {
  3120. "type": "string",
  3121. "allOf": [
  3122. {
  3123. "pattern": "^ses"
  3124. }
  3125. ]
  3126. },
  3127. "required": true
  3128. },
  3129. {
  3130. "name": "inboxID",
  3131. "in": "path",
  3132. "schema": {
  3133. "type": "string",
  3134. "allOf": [
  3135. {
  3136. "pattern": "^msg_"
  3137. }
  3138. ]
  3139. },
  3140. "required": true
  3141. }
  3142. ],
  3143. "security": [],
  3144. "responses": {
  3145. "204": {
  3146. "description": "<No Content>"
  3147. },
  3148. "400": {
  3149. "description": "InvalidRequestError",
  3150. "content": {
  3151. "application/json": {
  3152. "schema": {
  3153. "$ref": "#/components/schemas/InvalidRequestError"
  3154. }
  3155. }
  3156. }
  3157. },
  3158. "401": {
  3159. "description": "UnauthorizedError",
  3160. "content": {
  3161. "application/json": {
  3162. "schema": {
  3163. "$ref": "#/components/schemas/UnauthorizedError"
  3164. }
  3165. }
  3166. }
  3167. },
  3168. "404": {
  3169. "description": "SessionNotFoundError",
  3170. "content": {
  3171. "application/json": {
  3172. "schema": {
  3173. "$ref": "#/components/schemas/SessionNotFoundError"
  3174. }
  3175. }
  3176. }
  3177. },
  3178. "409": {
  3179. "description": "ConflictError",
  3180. "content": {
  3181. "application/json": {
  3182. "schema": {
  3183. "$ref": "#/components/schemas/ConflictError"
  3184. }
  3185. }
  3186. }
  3187. }
  3188. },
  3189. "description": "Cancel an inbox item that has not yet been delivered.",
  3190. "summary": "Cancel inbox input"
  3191. }
  3192. },
  3193. "/api/session/{sessionID}/inbox/{inboxID}/steer": {
  3194. "post": {
  3195. "tags": ["session"],
  3196. "operationId": "v2.session.inbox.steer",
  3197. "parameters": [
  3198. {
  3199. "name": "sessionID",
  3200. "in": "path",
  3201. "schema": {
  3202. "type": "string",
  3203. "allOf": [
  3204. {
  3205. "pattern": "^ses"
  3206. }
  3207. ]
  3208. },
  3209. "required": true
  3210. },
  3211. {
  3212. "name": "inboxID",
  3213. "in": "path",
  3214. "schema": {
  3215. "type": "string",
  3216. "allOf": [
  3217. {
  3218. "pattern": "^msg_"
  3219. }
  3220. ]
  3221. },
  3222. "required": true
  3223. }
  3224. ],
  3225. "security": [],
  3226. "responses": {
  3227. "204": {
  3228. "description": "<No Content>"
  3229. },
  3230. "400": {
  3231. "description": "InvalidRequestError",
  3232. "content": {
  3233. "application/json": {
  3234. "schema": {
  3235. "$ref": "#/components/schemas/InvalidRequestError"
  3236. }
  3237. }
  3238. }
  3239. },
  3240. "401": {
  3241. "description": "UnauthorizedError",
  3242. "content": {
  3243. "application/json": {
  3244. "schema": {
  3245. "$ref": "#/components/schemas/UnauthorizedError"
  3246. }
  3247. }
  3248. }
  3249. },
  3250. "404": {
  3251. "description": "SessionNotFoundError",
  3252. "content": {
  3253. "application/json": {
  3254. "schema": {
  3255. "$ref": "#/components/schemas/SessionNotFoundError"
  3256. }
  3257. }
  3258. }
  3259. },
  3260. "409": {
  3261. "description": "ConflictError",
  3262. "content": {
  3263. "application/json": {
  3264. "schema": {
  3265. "$ref": "#/components/schemas/ConflictError"
  3266. }
  3267. }
  3268. }
  3269. }
  3270. },
  3271. "description": "Change a queued inbox item to steer delivery and wake session execution.",
  3272. "summary": "Steer queued item"
  3273. }
  3274. },
  3275. "/api/session/{sessionID}/inbox/{inboxID}/queue": {
  3276. "post": {
  3277. "tags": ["session"],
  3278. "operationId": "v2.session.inbox.queue",
  3279. "parameters": [
  3280. {
  3281. "name": "sessionID",
  3282. "in": "path",
  3283. "schema": {
  3284. "type": "string",
  3285. "allOf": [
  3286. {
  3287. "pattern": "^ses"
  3288. }
  3289. ]
  3290. },
  3291. "required": true
  3292. },
  3293. {
  3294. "name": "inboxID",
  3295. "in": "path",
  3296. "schema": {
  3297. "type": "string",
  3298. "allOf": [
  3299. {
  3300. "pattern": "^msg_"
  3301. }
  3302. ]
  3303. },
  3304. "required": true
  3305. }
  3306. ],
  3307. "security": [],
  3308. "responses": {
  3309. "204": {
  3310. "description": "<No Content>"
  3311. },
  3312. "400": {
  3313. "description": "InvalidRequestError",
  3314. "content": {
  3315. "application/json": {
  3316. "schema": {
  3317. "$ref": "#/components/schemas/InvalidRequestError"
  3318. }
  3319. }
  3320. }
  3321. },
  3322. "401": {
  3323. "description": "UnauthorizedError",
  3324. "content": {
  3325. "application/json": {
  3326. "schema": {
  3327. "$ref": "#/components/schemas/UnauthorizedError"
  3328. }
  3329. }
  3330. }
  3331. },
  3332. "404": {
  3333. "description": "SessionNotFoundError",
  3334. "content": {
  3335. "application/json": {
  3336. "schema": {
  3337. "$ref": "#/components/schemas/SessionNotFoundError"
  3338. }
  3339. }
  3340. }
  3341. },
  3342. "409": {
  3343. "description": "ConflictError",
  3344. "content": {
  3345. "application/json": {
  3346. "schema": {
  3347. "$ref": "#/components/schemas/ConflictError"
  3348. }
  3349. }
  3350. }
  3351. }
  3352. },
  3353. "description": "Change a steered inbox item to queued delivery.",
  3354. "summary": "Queue steered item"
  3355. }
  3356. },
  3357. "/api/session/{sessionID}/instructions/entries": {
  3358. "get": {
  3359. "tags": ["session"],
  3360. "operationId": "v2.session.instructions.entry.list",
  3361. "parameters": [
  3362. {
  3363. "name": "sessionID",
  3364. "in": "path",
  3365. "schema": {
  3366. "type": "string",
  3367. "allOf": [
  3368. {
  3369. "pattern": "^ses"
  3370. }
  3371. ]
  3372. },
  3373. "required": true
  3374. }
  3375. ],
  3376. "security": [],
  3377. "responses": {
  3378. "200": {
  3379. "description": "Success",
  3380. "content": {
  3381. "application/json": {
  3382. "schema": {
  3383. "type": "object",
  3384. "properties": {
  3385. "data": {
  3386. "type": "array",
  3387. "items": {
  3388. "$ref": "#/components/schemas/InstructionEntry.Info"
  3389. }
  3390. }
  3391. },
  3392. "required": ["data"],
  3393. "additionalProperties": false
  3394. }
  3395. }
  3396. }
  3397. },
  3398. "400": {
  3399. "description": "InvalidRequestError",
  3400. "content": {
  3401. "application/json": {
  3402. "schema": {
  3403. "$ref": "#/components/schemas/InvalidRequestError"
  3404. }
  3405. }
  3406. }
  3407. },
  3408. "401": {
  3409. "description": "UnauthorizedError",
  3410. "content": {
  3411. "application/json": {
  3412. "schema": {
  3413. "$ref": "#/components/schemas/UnauthorizedError"
  3414. }
  3415. }
  3416. }
  3417. },
  3418. "404": {
  3419. "description": "SessionNotFoundError",
  3420. "content": {
  3421. "application/json": {
  3422. "schema": {
  3423. "anyOf": [
  3424. {
  3425. "$ref": "#/components/schemas/SessionNotFoundError"
  3426. },
  3427. {
  3428. "$ref": "#/components/schemas/SessionNotFoundError"
  3429. }
  3430. ]
  3431. }
  3432. }
  3433. }
  3434. }
  3435. },
  3436. "description": "List API-managed instruction entries attached to the session.",
  3437. "summary": "List instruction entries"
  3438. }
  3439. },
  3440. "/api/session/{sessionID}/instructions/entries/{key}": {
  3441. "put": {
  3442. "tags": ["session"],
  3443. "operationId": "v2.session.instructions.entry.put",
  3444. "parameters": [
  3445. {
  3446. "name": "sessionID",
  3447. "in": "path",
  3448. "schema": {
  3449. "type": "string",
  3450. "allOf": [
  3451. {
  3452. "pattern": "^ses"
  3453. }
  3454. ]
  3455. },
  3456. "required": true
  3457. },
  3458. {
  3459. "name": "key",
  3460. "in": "path",
  3461. "schema": {
  3462. "$ref": "#/components/schemas/InstructionEntry.Key"
  3463. },
  3464. "required": true
  3465. }
  3466. ],
  3467. "security": [],
  3468. "responses": {
  3469. "204": {
  3470. "description": "<No Content>"
  3471. },
  3472. "400": {
  3473. "description": "InvalidRequestError",
  3474. "content": {
  3475. "application/json": {
  3476. "schema": {
  3477. "$ref": "#/components/schemas/InvalidRequestError"
  3478. }
  3479. }
  3480. }
  3481. },
  3482. "401": {
  3483. "description": "UnauthorizedError",
  3484. "content": {
  3485. "application/json": {
  3486. "schema": {
  3487. "$ref": "#/components/schemas/UnauthorizedError"
  3488. }
  3489. }
  3490. }
  3491. },
  3492. "404": {
  3493. "description": "SessionNotFoundError",
  3494. "content": {
  3495. "application/json": {
  3496. "schema": {
  3497. "anyOf": [
  3498. {
  3499. "$ref": "#/components/schemas/SessionNotFoundError"
  3500. },
  3501. {
  3502. "$ref": "#/components/schemas/SessionNotFoundError"
  3503. }
  3504. ]
  3505. }
  3506. }
  3507. }
  3508. },
  3509. "413": {
  3510. "description": "InstructionEntryValueTooLargeError",
  3511. "content": {
  3512. "application/json": {
  3513. "schema": {
  3514. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3515. }
  3516. }
  3517. }
  3518. }
  3519. },
  3520. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3521. "summary": "Put instruction entry",
  3522. "requestBody": {
  3523. "content": {
  3524. "application/json": {
  3525. "schema": {
  3526. "type": "object",
  3527. "properties": {
  3528. "value": {}
  3529. },
  3530. "required": ["value"],
  3531. "additionalProperties": false
  3532. }
  3533. }
  3534. },
  3535. "required": true
  3536. }
  3537. },
  3538. "delete": {
  3539. "tags": ["session"],
  3540. "operationId": "v2.session.instructions.entry.remove",
  3541. "parameters": [
  3542. {
  3543. "name": "sessionID",
  3544. "in": "path",
  3545. "schema": {
  3546. "type": "string",
  3547. "allOf": [
  3548. {
  3549. "pattern": "^ses"
  3550. }
  3551. ]
  3552. },
  3553. "required": true
  3554. },
  3555. {
  3556. "name": "key",
  3557. "in": "path",
  3558. "schema": {
  3559. "$ref": "#/components/schemas/InstructionEntry.Key"
  3560. },
  3561. "required": true
  3562. }
  3563. ],
  3564. "security": [],
  3565. "responses": {
  3566. "204": {
  3567. "description": "<No Content>"
  3568. },
  3569. "400": {
  3570. "description": "InvalidRequestError",
  3571. "content": {
  3572. "application/json": {
  3573. "schema": {
  3574. "$ref": "#/components/schemas/InvalidRequestError"
  3575. }
  3576. }
  3577. }
  3578. },
  3579. "401": {
  3580. "description": "UnauthorizedError",
  3581. "content": {
  3582. "application/json": {
  3583. "schema": {
  3584. "$ref": "#/components/schemas/UnauthorizedError"
  3585. }
  3586. }
  3587. }
  3588. },
  3589. "404": {
  3590. "description": "SessionNotFoundError",
  3591. "content": {
  3592. "application/json": {
  3593. "schema": {
  3594. "anyOf": [
  3595. {
  3596. "$ref": "#/components/schemas/SessionNotFoundError"
  3597. },
  3598. {
  3599. "$ref": "#/components/schemas/SessionNotFoundError"
  3600. }
  3601. ]
  3602. }
  3603. }
  3604. }
  3605. }
  3606. },
  3607. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3608. "summary": "Remove instruction entry"
  3609. }
  3610. },
  3611. "/api/session/{sessionID}/generate": {
  3612. "post": {
  3613. "tags": ["session"],
  3614. "operationId": "v2.session.generate",
  3615. "parameters": [
  3616. {
  3617. "name": "sessionID",
  3618. "in": "path",
  3619. "schema": {
  3620. "type": "string",
  3621. "allOf": [
  3622. {
  3623. "pattern": "^ses"
  3624. }
  3625. ]
  3626. },
  3627. "required": true
  3628. }
  3629. ],
  3630. "security": [],
  3631. "responses": {
  3632. "200": {
  3633. "description": "SessionGenerateResponse",
  3634. "content": {
  3635. "application/json": {
  3636. "schema": {
  3637. "$ref": "#/components/schemas/SessionGenerateResponse"
  3638. }
  3639. }
  3640. }
  3641. },
  3642. "400": {
  3643. "description": "InvalidRequestError",
  3644. "content": {
  3645. "application/json": {
  3646. "schema": {
  3647. "$ref": "#/components/schemas/InvalidRequestError"
  3648. }
  3649. }
  3650. }
  3651. },
  3652. "401": {
  3653. "description": "UnauthorizedError",
  3654. "content": {
  3655. "application/json": {
  3656. "schema": {
  3657. "$ref": "#/components/schemas/UnauthorizedError"
  3658. }
  3659. }
  3660. }
  3661. },
  3662. "404": {
  3663. "description": "SessionNotFoundError",
  3664. "content": {
  3665. "application/json": {
  3666. "schema": {
  3667. "anyOf": [
  3668. {
  3669. "$ref": "#/components/schemas/SessionNotFoundError"
  3670. },
  3671. {
  3672. "$ref": "#/components/schemas/SessionNotFoundError"
  3673. }
  3674. ]
  3675. }
  3676. }
  3677. }
  3678. },
  3679. "503": {
  3680. "description": "ServiceUnavailableError",
  3681. "content": {
  3682. "application/json": {
  3683. "schema": {
  3684. "$ref": "#/components/schemas/ServiceUnavailableError"
  3685. }
  3686. }
  3687. }
  3688. }
  3689. },
  3690. "description": "Generate transient text from the current session context without mutating session history.",
  3691. "summary": "Generate text from session context",
  3692. "requestBody": {
  3693. "content": {
  3694. "application/json": {
  3695. "schema": {
  3696. "type": "object",
  3697. "properties": {
  3698. "prompt": {
  3699. "type": "string"
  3700. }
  3701. },
  3702. "required": ["prompt"],
  3703. "additionalProperties": false
  3704. }
  3705. }
  3706. },
  3707. "required": true
  3708. }
  3709. }
  3710. },
  3711. "/api/experimental/session/{sessionID}/log": {
  3712. "get": {
  3713. "tags": ["session"],
  3714. "operationId": "v2.session.log",
  3715. "parameters": [
  3716. {
  3717. "name": "sessionID",
  3718. "in": "path",
  3719. "schema": {
  3720. "type": "string",
  3721. "allOf": [
  3722. {
  3723. "pattern": "^ses"
  3724. }
  3725. ]
  3726. },
  3727. "required": true
  3728. },
  3729. {
  3730. "name": "after",
  3731. "in": "query",
  3732. "schema": {
  3733. "anyOf": [
  3734. {
  3735. "type": "string"
  3736. },
  3737. {
  3738. "type": "null"
  3739. }
  3740. ]
  3741. },
  3742. "required": false
  3743. },
  3744. {
  3745. "name": "follow",
  3746. "in": "query",
  3747. "schema": {
  3748. "anyOf": [
  3749. {
  3750. "type": "string",
  3751. "enum": ["true", "false"]
  3752. },
  3753. {
  3754. "type": "null"
  3755. }
  3756. ]
  3757. },
  3758. "required": false
  3759. }
  3760. ],
  3761. "security": [],
  3762. "responses": {
  3763. "200": {
  3764. "description": "Success",
  3765. "content": {
  3766. "text/event-stream": {
  3767. "schema": {
  3768. "type": "object",
  3769. "properties": {
  3770. "id": {
  3771. "anyOf": [
  3772. {
  3773. "type": "string"
  3774. },
  3775. {
  3776. "type": "null"
  3777. }
  3778. ]
  3779. },
  3780. "event": {
  3781. "type": "string"
  3782. },
  3783. "data": {
  3784. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3785. }
  3786. },
  3787. "required": ["id", "event", "data"],
  3788. "additionalProperties": false
  3789. },
  3790. "x-effect-stream": {
  3791. "encoding": "sse",
  3792. "causeSchema": {
  3793. "type": "array",
  3794. "items": {
  3795. "anyOf": [
  3796. {
  3797. "type": "object",
  3798. "properties": {
  3799. "_tag": {
  3800. "type": "string",
  3801. "enum": ["Fail"]
  3802. },
  3803. "error": {
  3804. "not": {}
  3805. }
  3806. },
  3807. "required": ["_tag", "error"],
  3808. "additionalProperties": false
  3809. },
  3810. {
  3811. "type": "object",
  3812. "properties": {
  3813. "_tag": {
  3814. "type": "string",
  3815. "enum": ["Die"]
  3816. },
  3817. "defect": {}
  3818. },
  3819. "required": ["_tag", "defect"],
  3820. "additionalProperties": false
  3821. },
  3822. {
  3823. "type": "object",
  3824. "properties": {
  3825. "_tag": {
  3826. "type": "string",
  3827. "enum": ["Interrupt"]
  3828. },
  3829. "fiberId": {
  3830. "anyOf": [
  3831. {
  3832. "type": "number"
  3833. },
  3834. {
  3835. "type": "null"
  3836. }
  3837. ]
  3838. }
  3839. },
  3840. "required": ["_tag", "fiberId"],
  3841. "additionalProperties": false
  3842. }
  3843. ]
  3844. }
  3845. },
  3846. "errorSchema": {
  3847. "not": {}
  3848. },
  3849. "failureEvent": "effect/httpapi/stream/failure"
  3850. }
  3851. }
  3852. }
  3853. },
  3854. "400": {
  3855. "description": "InvalidRequestError",
  3856. "content": {
  3857. "application/json": {
  3858. "schema": {
  3859. "$ref": "#/components/schemas/InvalidRequestError"
  3860. }
  3861. }
  3862. }
  3863. },
  3864. "401": {
  3865. "description": "UnauthorizedError",
  3866. "content": {
  3867. "application/json": {
  3868. "schema": {
  3869. "$ref": "#/components/schemas/UnauthorizedError"
  3870. }
  3871. }
  3872. }
  3873. },
  3874. "404": {
  3875. "description": "SessionNotFoundError",
  3876. "content": {
  3877. "application/json": {
  3878. "schema": {
  3879. "$ref": "#/components/schemas/SessionNotFoundError"
  3880. }
  3881. }
  3882. }
  3883. }
  3884. },
  3885. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3886. "summary": "Read the session log"
  3887. }
  3888. },
  3889. "/api/session/{sessionID}/interrupt": {
  3890. "post": {
  3891. "tags": ["session"],
  3892. "operationId": "v2.session.interrupt",
  3893. "parameters": [
  3894. {
  3895. "name": "sessionID",
  3896. "in": "path",
  3897. "schema": {
  3898. "type": "string",
  3899. "allOf": [
  3900. {
  3901. "pattern": "^ses"
  3902. }
  3903. ]
  3904. },
  3905. "required": true
  3906. },
  3907. {
  3908. "name": "continue",
  3909. "in": "query",
  3910. "schema": {
  3911. "anyOf": [
  3912. {
  3913. "type": "string",
  3914. "enum": ["true", "false"]
  3915. },
  3916. {
  3917. "type": "null"
  3918. }
  3919. ]
  3920. },
  3921. "required": false
  3922. }
  3923. ],
  3924. "security": [],
  3925. "responses": {
  3926. "204": {
  3927. "description": "<No Content>"
  3928. },
  3929. "400": {
  3930. "description": "InvalidRequestError",
  3931. "content": {
  3932. "application/json": {
  3933. "schema": {
  3934. "$ref": "#/components/schemas/InvalidRequestError"
  3935. }
  3936. }
  3937. }
  3938. },
  3939. "401": {
  3940. "description": "UnauthorizedError",
  3941. "content": {
  3942. "application/json": {
  3943. "schema": {
  3944. "$ref": "#/components/schemas/UnauthorizedError"
  3945. }
  3946. }
  3947. }
  3948. },
  3949. "404": {
  3950. "description": "SessionNotFoundError",
  3951. "content": {
  3952. "application/json": {
  3953. "schema": {
  3954. "anyOf": [
  3955. {
  3956. "$ref": "#/components/schemas/SessionNotFoundError"
  3957. },
  3958. {
  3959. "$ref": "#/components/schemas/SessionNotFoundError"
  3960. }
  3961. ]
  3962. }
  3963. }
  3964. }
  3965. }
  3966. },
  3967. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op. When continue=true, execution resumes if durable inbox work remains after interruption.",
  3968. "summary": "Interrupt session execution"
  3969. }
  3970. },
  3971. "/api/session/{sessionID}/background": {
  3972. "post": {
  3973. "tags": ["session"],
  3974. "operationId": "v2.session.background",
  3975. "parameters": [
  3976. {
  3977. "name": "sessionID",
  3978. "in": "path",
  3979. "schema": {
  3980. "type": "string",
  3981. "allOf": [
  3982. {
  3983. "pattern": "^ses"
  3984. }
  3985. ]
  3986. },
  3987. "required": true
  3988. }
  3989. ],
  3990. "security": [],
  3991. "responses": {
  3992. "204": {
  3993. "description": "<No Content>"
  3994. },
  3995. "400": {
  3996. "description": "InvalidRequestError",
  3997. "content": {
  3998. "application/json": {
  3999. "schema": {
  4000. "$ref": "#/components/schemas/InvalidRequestError"
  4001. }
  4002. }
  4003. }
  4004. },
  4005. "401": {
  4006. "description": "UnauthorizedError",
  4007. "content": {
  4008. "application/json": {
  4009. "schema": {
  4010. "$ref": "#/components/schemas/UnauthorizedError"
  4011. }
  4012. }
  4013. }
  4014. },
  4015. "404": {
  4016. "description": "SessionNotFoundError",
  4017. "content": {
  4018. "application/json": {
  4019. "schema": {
  4020. "anyOf": [
  4021. {
  4022. "$ref": "#/components/schemas/SessionNotFoundError"
  4023. },
  4024. {
  4025. "$ref": "#/components/schemas/SessionNotFoundError"
  4026. }
  4027. ]
  4028. }
  4029. }
  4030. }
  4031. }
  4032. },
  4033. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  4034. "summary": "Background blocking session tools"
  4035. }
  4036. },
  4037. "/api/session/{sessionID}/message/{messageID}": {
  4038. "get": {
  4039. "tags": ["session"],
  4040. "operationId": "v2.session.message",
  4041. "parameters": [
  4042. {
  4043. "name": "sessionID",
  4044. "in": "path",
  4045. "schema": {
  4046. "type": "string",
  4047. "allOf": [
  4048. {
  4049. "pattern": "^ses"
  4050. }
  4051. ]
  4052. },
  4053. "required": true
  4054. },
  4055. {
  4056. "name": "messageID",
  4057. "in": "path",
  4058. "schema": {
  4059. "type": "string",
  4060. "allOf": [
  4061. {
  4062. "pattern": "^msg_"
  4063. }
  4064. ]
  4065. },
  4066. "required": true
  4067. }
  4068. ],
  4069. "security": [],
  4070. "responses": {
  4071. "200": {
  4072. "description": "Success",
  4073. "content": {
  4074. "application/json": {
  4075. "schema": {
  4076. "type": "object",
  4077. "properties": {
  4078. "data": {
  4079. "$ref": "#/components/schemas/Session.Message.Info"
  4080. }
  4081. },
  4082. "required": ["data"],
  4083. "additionalProperties": false
  4084. }
  4085. }
  4086. }
  4087. },
  4088. "400": {
  4089. "description": "InvalidRequestError",
  4090. "content": {
  4091. "application/json": {
  4092. "schema": {
  4093. "$ref": "#/components/schemas/InvalidRequestError"
  4094. }
  4095. }
  4096. }
  4097. },
  4098. "401": {
  4099. "description": "UnauthorizedError",
  4100. "content": {
  4101. "application/json": {
  4102. "schema": {
  4103. "$ref": "#/components/schemas/UnauthorizedError"
  4104. }
  4105. }
  4106. }
  4107. },
  4108. "404": {
  4109. "description": "SessionNotFoundError | MessageNotFoundError",
  4110. "content": {
  4111. "application/json": {
  4112. "schema": {
  4113. "anyOf": [
  4114. {
  4115. "$ref": "#/components/schemas/SessionNotFoundError"
  4116. },
  4117. {
  4118. "$ref": "#/components/schemas/MessageNotFoundError"
  4119. }
  4120. ]
  4121. }
  4122. }
  4123. }
  4124. }
  4125. },
  4126. "description": "Retrieve one projected message owned by the Session.",
  4127. "summary": "Get session message"
  4128. }
  4129. },
  4130. "/api/session/{sessionID}/message": {
  4131. "get": {
  4132. "tags": ["session"],
  4133. "operationId": "v2.message.list",
  4134. "parameters": [
  4135. {
  4136. "name": "sessionID",
  4137. "in": "path",
  4138. "schema": {
  4139. "type": "string",
  4140. "allOf": [
  4141. {
  4142. "pattern": "^ses"
  4143. }
  4144. ]
  4145. },
  4146. "required": true
  4147. },
  4148. {
  4149. "name": "limit",
  4150. "in": "query",
  4151. "schema": {
  4152. "anyOf": [
  4153. {
  4154. "type": "string"
  4155. },
  4156. {
  4157. "type": "null"
  4158. }
  4159. ],
  4160. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  4161. },
  4162. "required": false
  4163. },
  4164. {
  4165. "name": "order",
  4166. "in": "query",
  4167. "schema": {
  4168. "anyOf": [
  4169. {
  4170. "type": "string",
  4171. "enum": ["asc", "desc"]
  4172. },
  4173. {
  4174. "type": "null"
  4175. }
  4176. ],
  4177. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  4178. },
  4179. "required": false
  4180. },
  4181. {
  4182. "name": "cursor",
  4183. "in": "query",
  4184. "schema": {
  4185. "anyOf": [
  4186. {
  4187. "type": "string",
  4188. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  4189. },
  4190. {
  4191. "type": "null"
  4192. }
  4193. ]
  4194. },
  4195. "required": false
  4196. }
  4197. ],
  4198. "security": [],
  4199. "responses": {
  4200. "200": {
  4201. "description": "SessionMessagesResponse",
  4202. "content": {
  4203. "application/json": {
  4204. "schema": {
  4205. "$ref": "#/components/schemas/SessionMessagesResponse"
  4206. }
  4207. }
  4208. }
  4209. },
  4210. "400": {
  4211. "description": "InvalidCursorError | InvalidRequestError",
  4212. "content": {
  4213. "application/json": {
  4214. "schema": {
  4215. "anyOf": [
  4216. {
  4217. "$ref": "#/components/schemas/InvalidCursorError"
  4218. },
  4219. {
  4220. "$ref": "#/components/schemas/InvalidRequestError"
  4221. }
  4222. ]
  4223. }
  4224. }
  4225. }
  4226. },
  4227. "401": {
  4228. "description": "UnauthorizedError",
  4229. "content": {
  4230. "application/json": {
  4231. "schema": {
  4232. "$ref": "#/components/schemas/UnauthorizedError"
  4233. }
  4234. }
  4235. }
  4236. },
  4237. "404": {
  4238. "description": "SessionNotFoundError",
  4239. "content": {
  4240. "application/json": {
  4241. "schema": {
  4242. "$ref": "#/components/schemas/SessionNotFoundError"
  4243. }
  4244. }
  4245. }
  4246. },
  4247. "500": {
  4248. "description": "UnknownError",
  4249. "content": {
  4250. "application/json": {
  4251. "schema": {
  4252. "$ref": "#/components/schemas/UnknownError"
  4253. }
  4254. }
  4255. }
  4256. }
  4257. },
  4258. "description": "Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.",
  4259. "summary": "Get session messages"
  4260. }
  4261. },
  4262. "/api/model": {
  4263. "get": {
  4264. "tags": ["model"],
  4265. "operationId": "v2.model.list",
  4266. "parameters": [
  4267. {
  4268. "name": "location",
  4269. "in": "query",
  4270. "schema": {
  4271. "anyOf": [
  4272. {
  4273. "type": "object",
  4274. "properties": {
  4275. "directory": {
  4276. "anyOf": [
  4277. {
  4278. "type": "string"
  4279. },
  4280. {
  4281. "type": "null"
  4282. }
  4283. ]
  4284. },
  4285. "workspace": {
  4286. "anyOf": [
  4287. {
  4288. "type": "string"
  4289. },
  4290. {
  4291. "type": "null"
  4292. }
  4293. ]
  4294. }
  4295. },
  4296. "additionalProperties": false
  4297. },
  4298. {
  4299. "type": "null"
  4300. }
  4301. ]
  4302. },
  4303. "required": false,
  4304. "style": "deepObject",
  4305. "explode": true
  4306. }
  4307. ],
  4308. "security": [],
  4309. "responses": {
  4310. "200": {
  4311. "description": "Success",
  4312. "content": {
  4313. "application/json": {
  4314. "schema": {
  4315. "type": "object",
  4316. "properties": {
  4317. "location": {
  4318. "$ref": "#/components/schemas/Location.Info"
  4319. },
  4320. "data": {
  4321. "type": "array",
  4322. "items": {
  4323. "$ref": "#/components/schemas/Model.Info"
  4324. }
  4325. }
  4326. },
  4327. "required": ["location", "data"],
  4328. "additionalProperties": false
  4329. }
  4330. }
  4331. }
  4332. },
  4333. "400": {
  4334. "description": "InvalidRequestError",
  4335. "content": {
  4336. "application/json": {
  4337. "schema": {
  4338. "$ref": "#/components/schemas/InvalidRequestError"
  4339. }
  4340. }
  4341. }
  4342. },
  4343. "401": {
  4344. "description": "UnauthorizedError",
  4345. "content": {
  4346. "application/json": {
  4347. "schema": {
  4348. "$ref": "#/components/schemas/UnauthorizedError"
  4349. }
  4350. }
  4351. }
  4352. },
  4353. "503": {
  4354. "description": "ServiceUnavailableError",
  4355. "content": {
  4356. "application/json": {
  4357. "schema": {
  4358. "$ref": "#/components/schemas/ServiceUnavailableError"
  4359. }
  4360. }
  4361. }
  4362. }
  4363. },
  4364. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4365. "summary": "List models"
  4366. }
  4367. },
  4368. "/api/model/default": {
  4369. "get": {
  4370. "tags": ["model"],
  4371. "operationId": "v2.model.default",
  4372. "parameters": [
  4373. {
  4374. "name": "location",
  4375. "in": "query",
  4376. "schema": {
  4377. "anyOf": [
  4378. {
  4379. "type": "object",
  4380. "properties": {
  4381. "directory": {
  4382. "anyOf": [
  4383. {
  4384. "type": "string"
  4385. },
  4386. {
  4387. "type": "null"
  4388. }
  4389. ]
  4390. },
  4391. "workspace": {
  4392. "anyOf": [
  4393. {
  4394. "type": "string"
  4395. },
  4396. {
  4397. "type": "null"
  4398. }
  4399. ]
  4400. }
  4401. },
  4402. "additionalProperties": false
  4403. },
  4404. {
  4405. "type": "null"
  4406. }
  4407. ]
  4408. },
  4409. "required": false,
  4410. "style": "deepObject",
  4411. "explode": true
  4412. }
  4413. ],
  4414. "security": [],
  4415. "responses": {
  4416. "200": {
  4417. "description": "Success",
  4418. "content": {
  4419. "application/json": {
  4420. "schema": {
  4421. "type": "object",
  4422. "properties": {
  4423. "location": {
  4424. "$ref": "#/components/schemas/Location.Info"
  4425. },
  4426. "data": {
  4427. "anyOf": [
  4428. {
  4429. "$ref": "#/components/schemas/Model.Info"
  4430. },
  4431. {
  4432. "type": "null"
  4433. }
  4434. ]
  4435. }
  4436. },
  4437. "required": ["location", "data"],
  4438. "additionalProperties": false
  4439. }
  4440. }
  4441. }
  4442. },
  4443. "400": {
  4444. "description": "InvalidRequestError",
  4445. "content": {
  4446. "application/json": {
  4447. "schema": {
  4448. "$ref": "#/components/schemas/InvalidRequestError"
  4449. }
  4450. }
  4451. }
  4452. },
  4453. "401": {
  4454. "description": "UnauthorizedError",
  4455. "content": {
  4456. "application/json": {
  4457. "schema": {
  4458. "$ref": "#/components/schemas/UnauthorizedError"
  4459. }
  4460. }
  4461. }
  4462. },
  4463. "503": {
  4464. "description": "ServiceUnavailableError",
  4465. "content": {
  4466. "application/json": {
  4467. "schema": {
  4468. "$ref": "#/components/schemas/ServiceUnavailableError"
  4469. }
  4470. }
  4471. }
  4472. }
  4473. },
  4474. "description": "Retrieve the model used when a session has no explicit model selection.",
  4475. "summary": "Get default model"
  4476. }
  4477. },
  4478. "/api/generate": {
  4479. "post": {
  4480. "tags": ["generate"],
  4481. "operationId": "v2.generate.text",
  4482. "parameters": [
  4483. {
  4484. "name": "location",
  4485. "in": "query",
  4486. "schema": {
  4487. "anyOf": [
  4488. {
  4489. "type": "object",
  4490. "properties": {
  4491. "directory": {
  4492. "anyOf": [
  4493. {
  4494. "type": "string"
  4495. },
  4496. {
  4497. "type": "null"
  4498. }
  4499. ]
  4500. },
  4501. "workspace": {
  4502. "anyOf": [
  4503. {
  4504. "type": "string"
  4505. },
  4506. {
  4507. "type": "null"
  4508. }
  4509. ]
  4510. }
  4511. },
  4512. "additionalProperties": false
  4513. },
  4514. {
  4515. "type": "null"
  4516. }
  4517. ]
  4518. },
  4519. "required": false,
  4520. "style": "deepObject",
  4521. "explode": true
  4522. }
  4523. ],
  4524. "security": [],
  4525. "responses": {
  4526. "200": {
  4527. "description": "GenerateTextResponse",
  4528. "content": {
  4529. "application/json": {
  4530. "schema": {
  4531. "$ref": "#/components/schemas/GenerateTextResponse"
  4532. }
  4533. }
  4534. }
  4535. },
  4536. "400": {
  4537. "description": "InvalidRequestError",
  4538. "content": {
  4539. "application/json": {
  4540. "schema": {
  4541. "anyOf": [
  4542. {
  4543. "$ref": "#/components/schemas/InvalidRequestError1"
  4544. },
  4545. {
  4546. "$ref": "#/components/schemas/InvalidRequestError"
  4547. }
  4548. ]
  4549. }
  4550. }
  4551. }
  4552. },
  4553. "401": {
  4554. "description": "UnauthorizedError",
  4555. "content": {
  4556. "application/json": {
  4557. "schema": {
  4558. "$ref": "#/components/schemas/UnauthorizedError"
  4559. }
  4560. }
  4561. }
  4562. },
  4563. "503": {
  4564. "description": "ServiceUnavailableError",
  4565. "content": {
  4566. "application/json": {
  4567. "schema": {
  4568. "$ref": "#/components/schemas/ServiceUnavailableError"
  4569. }
  4570. }
  4571. }
  4572. }
  4573. },
  4574. "description": "Run one stateless model generation at the requested location and return the assistant text. Uses the location's default model when none is specified.",
  4575. "summary": "Generate text",
  4576. "requestBody": {
  4577. "content": {
  4578. "application/json": {
  4579. "schema": {
  4580. "type": "object",
  4581. "properties": {
  4582. "prompt": {
  4583. "type": "string"
  4584. },
  4585. "model": {
  4586. "anyOf": [
  4587. {
  4588. "$ref": "#/components/schemas/Model.Ref"
  4589. },
  4590. {
  4591. "type": "null"
  4592. }
  4593. ]
  4594. }
  4595. },
  4596. "required": ["prompt"],
  4597. "additionalProperties": false
  4598. }
  4599. }
  4600. },
  4601. "required": true
  4602. }
  4603. }
  4604. },
  4605. "/api/provider": {
  4606. "get": {
  4607. "tags": ["provider"],
  4608. "operationId": "v2.provider.list",
  4609. "parameters": [
  4610. {
  4611. "name": "location",
  4612. "in": "query",
  4613. "schema": {
  4614. "anyOf": [
  4615. {
  4616. "type": "object",
  4617. "properties": {
  4618. "directory": {
  4619. "anyOf": [
  4620. {
  4621. "type": "string"
  4622. },
  4623. {
  4624. "type": "null"
  4625. }
  4626. ]
  4627. },
  4628. "workspace": {
  4629. "anyOf": [
  4630. {
  4631. "type": "string"
  4632. },
  4633. {
  4634. "type": "null"
  4635. }
  4636. ]
  4637. }
  4638. },
  4639. "additionalProperties": false
  4640. },
  4641. {
  4642. "type": "null"
  4643. }
  4644. ]
  4645. },
  4646. "required": false,
  4647. "style": "deepObject",
  4648. "explode": true
  4649. }
  4650. ],
  4651. "security": [],
  4652. "responses": {
  4653. "200": {
  4654. "description": "Success",
  4655. "content": {
  4656. "application/json": {
  4657. "schema": {
  4658. "type": "object",
  4659. "properties": {
  4660. "location": {
  4661. "$ref": "#/components/schemas/Location.Info"
  4662. },
  4663. "data": {
  4664. "type": "array",
  4665. "items": {
  4666. "$ref": "#/components/schemas/Provider.Info"
  4667. }
  4668. }
  4669. },
  4670. "required": ["location", "data"],
  4671. "additionalProperties": false
  4672. }
  4673. }
  4674. }
  4675. },
  4676. "400": {
  4677. "description": "InvalidRequestError",
  4678. "content": {
  4679. "application/json": {
  4680. "schema": {
  4681. "$ref": "#/components/schemas/InvalidRequestError"
  4682. }
  4683. }
  4684. }
  4685. },
  4686. "401": {
  4687. "description": "UnauthorizedError",
  4688. "content": {
  4689. "application/json": {
  4690. "schema": {
  4691. "$ref": "#/components/schemas/UnauthorizedError"
  4692. }
  4693. }
  4694. }
  4695. },
  4696. "503": {
  4697. "description": "ServiceUnavailableError",
  4698. "content": {
  4699. "application/json": {
  4700. "schema": {
  4701. "$ref": "#/components/schemas/ServiceUnavailableError"
  4702. }
  4703. }
  4704. }
  4705. }
  4706. },
  4707. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4708. "summary": "List providers"
  4709. }
  4710. },
  4711. "/api/provider/{providerID}": {
  4712. "get": {
  4713. "tags": ["provider"],
  4714. "operationId": "v2.provider.get",
  4715. "parameters": [
  4716. {
  4717. "name": "providerID",
  4718. "in": "path",
  4719. "schema": {
  4720. "type": "string"
  4721. },
  4722. "required": true
  4723. },
  4724. {
  4725. "name": "location",
  4726. "in": "query",
  4727. "schema": {
  4728. "anyOf": [
  4729. {
  4730. "type": "object",
  4731. "properties": {
  4732. "directory": {
  4733. "anyOf": [
  4734. {
  4735. "type": "string"
  4736. },
  4737. {
  4738. "type": "null"
  4739. }
  4740. ]
  4741. },
  4742. "workspace": {
  4743. "anyOf": [
  4744. {
  4745. "type": "string"
  4746. },
  4747. {
  4748. "type": "null"
  4749. }
  4750. ]
  4751. }
  4752. },
  4753. "additionalProperties": false
  4754. },
  4755. {
  4756. "type": "null"
  4757. }
  4758. ]
  4759. },
  4760. "required": false,
  4761. "style": "deepObject",
  4762. "explode": true
  4763. }
  4764. ],
  4765. "security": [],
  4766. "responses": {
  4767. "200": {
  4768. "description": "Success",
  4769. "content": {
  4770. "application/json": {
  4771. "schema": {
  4772. "type": "object",
  4773. "properties": {
  4774. "location": {
  4775. "$ref": "#/components/schemas/Location.Info"
  4776. },
  4777. "data": {
  4778. "$ref": "#/components/schemas/Provider.Info"
  4779. }
  4780. },
  4781. "required": ["location", "data"],
  4782. "additionalProperties": false
  4783. }
  4784. }
  4785. }
  4786. },
  4787. "400": {
  4788. "description": "InvalidRequestError",
  4789. "content": {
  4790. "application/json": {
  4791. "schema": {
  4792. "$ref": "#/components/schemas/InvalidRequestError"
  4793. }
  4794. }
  4795. }
  4796. },
  4797. "401": {
  4798. "description": "UnauthorizedError",
  4799. "content": {
  4800. "application/json": {
  4801. "schema": {
  4802. "$ref": "#/components/schemas/UnauthorizedError"
  4803. }
  4804. }
  4805. }
  4806. },
  4807. "404": {
  4808. "description": "ProviderNotFoundError",
  4809. "content": {
  4810. "application/json": {
  4811. "schema": {
  4812. "$ref": "#/components/schemas/ProviderNotFoundError"
  4813. }
  4814. }
  4815. }
  4816. },
  4817. "503": {
  4818. "description": "ServiceUnavailableError",
  4819. "content": {
  4820. "application/json": {
  4821. "schema": {
  4822. "$ref": "#/components/schemas/ServiceUnavailableError"
  4823. }
  4824. }
  4825. }
  4826. }
  4827. },
  4828. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4829. "summary": "Get provider"
  4830. }
  4831. },
  4832. "/api/integration": {
  4833. "get": {
  4834. "tags": ["integration"],
  4835. "operationId": "v2.integration.list",
  4836. "parameters": [
  4837. {
  4838. "name": "location",
  4839. "in": "query",
  4840. "schema": {
  4841. "anyOf": [
  4842. {
  4843. "type": "object",
  4844. "properties": {
  4845. "directory": {
  4846. "anyOf": [
  4847. {
  4848. "type": "string"
  4849. },
  4850. {
  4851. "type": "null"
  4852. }
  4853. ]
  4854. },
  4855. "workspace": {
  4856. "anyOf": [
  4857. {
  4858. "type": "string"
  4859. },
  4860. {
  4861. "type": "null"
  4862. }
  4863. ]
  4864. }
  4865. },
  4866. "additionalProperties": false
  4867. },
  4868. {
  4869. "type": "null"
  4870. }
  4871. ]
  4872. },
  4873. "required": false,
  4874. "style": "deepObject",
  4875. "explode": true
  4876. }
  4877. ],
  4878. "security": [],
  4879. "responses": {
  4880. "200": {
  4881. "description": "Success",
  4882. "content": {
  4883. "application/json": {
  4884. "schema": {
  4885. "type": "object",
  4886. "properties": {
  4887. "location": {
  4888. "$ref": "#/components/schemas/Location.Info"
  4889. },
  4890. "data": {
  4891. "type": "array",
  4892. "items": {
  4893. "$ref": "#/components/schemas/Integration.Info"
  4894. }
  4895. }
  4896. },
  4897. "required": ["location", "data"],
  4898. "additionalProperties": false
  4899. }
  4900. }
  4901. }
  4902. },
  4903. "400": {
  4904. "description": "InvalidRequestError",
  4905. "content": {
  4906. "application/json": {
  4907. "schema": {
  4908. "$ref": "#/components/schemas/InvalidRequestError"
  4909. }
  4910. }
  4911. }
  4912. },
  4913. "401": {
  4914. "description": "UnauthorizedError",
  4915. "content": {
  4916. "application/json": {
  4917. "schema": {
  4918. "$ref": "#/components/schemas/UnauthorizedError"
  4919. }
  4920. }
  4921. }
  4922. }
  4923. },
  4924. "description": "Retrieve available integrations and their authentication methods.",
  4925. "summary": "List integrations"
  4926. }
  4927. },
  4928. "/api/integration/{integrationID}": {
  4929. "get": {
  4930. "tags": ["integration"],
  4931. "operationId": "v2.integration.get",
  4932. "parameters": [
  4933. {
  4934. "name": "integrationID",
  4935. "in": "path",
  4936. "schema": {
  4937. "type": "string"
  4938. },
  4939. "required": true
  4940. },
  4941. {
  4942. "name": "location",
  4943. "in": "query",
  4944. "schema": {
  4945. "anyOf": [
  4946. {
  4947. "type": "object",
  4948. "properties": {
  4949. "directory": {
  4950. "anyOf": [
  4951. {
  4952. "type": "string"
  4953. },
  4954. {
  4955. "type": "null"
  4956. }
  4957. ]
  4958. },
  4959. "workspace": {
  4960. "anyOf": [
  4961. {
  4962. "type": "string"
  4963. },
  4964. {
  4965. "type": "null"
  4966. }
  4967. ]
  4968. }
  4969. },
  4970. "additionalProperties": false
  4971. },
  4972. {
  4973. "type": "null"
  4974. }
  4975. ]
  4976. },
  4977. "required": false,
  4978. "style": "deepObject",
  4979. "explode": true
  4980. }
  4981. ],
  4982. "security": [],
  4983. "responses": {
  4984. "200": {
  4985. "description": "Success",
  4986. "content": {
  4987. "application/json": {
  4988. "schema": {
  4989. "type": "object",
  4990. "properties": {
  4991. "location": {
  4992. "$ref": "#/components/schemas/Location.Info"
  4993. },
  4994. "data": {
  4995. "anyOf": [
  4996. {
  4997. "$ref": "#/components/schemas/Integration.Info"
  4998. },
  4999. {
  5000. "type": "null"
  5001. }
  5002. ]
  5003. }
  5004. },
  5005. "required": ["location", "data"],
  5006. "additionalProperties": false
  5007. }
  5008. }
  5009. }
  5010. },
  5011. "400": {
  5012. "description": "InvalidRequestError",
  5013. "content": {
  5014. "application/json": {
  5015. "schema": {
  5016. "$ref": "#/components/schemas/InvalidRequestError"
  5017. }
  5018. }
  5019. }
  5020. },
  5021. "401": {
  5022. "description": "UnauthorizedError",
  5023. "content": {
  5024. "application/json": {
  5025. "schema": {
  5026. "$ref": "#/components/schemas/UnauthorizedError"
  5027. }
  5028. }
  5029. }
  5030. }
  5031. },
  5032. "description": "Retrieve one integration and its authentication methods.",
  5033. "summary": "Get integration"
  5034. }
  5035. },
  5036. "/api/experimental/integration/wellknown": {
  5037. "post": {
  5038. "tags": ["integration"],
  5039. "operationId": "v2.experimental.integration.wellknown.add",
  5040. "parameters": [
  5041. {
  5042. "name": "location",
  5043. "in": "query",
  5044. "schema": {
  5045. "anyOf": [
  5046. {
  5047. "type": "object",
  5048. "properties": {
  5049. "directory": {
  5050. "anyOf": [
  5051. {
  5052. "type": "string"
  5053. },
  5054. {
  5055. "type": "null"
  5056. }
  5057. ]
  5058. },
  5059. "workspace": {
  5060. "anyOf": [
  5061. {
  5062. "type": "string"
  5063. },
  5064. {
  5065. "type": "null"
  5066. }
  5067. ]
  5068. }
  5069. },
  5070. "additionalProperties": false
  5071. },
  5072. {
  5073. "type": "null"
  5074. }
  5075. ]
  5076. },
  5077. "required": false,
  5078. "style": "deepObject",
  5079. "explode": true
  5080. }
  5081. ],
  5082. "security": [],
  5083. "responses": {
  5084. "204": {
  5085. "description": "<No Content>"
  5086. },
  5087. "400": {
  5088. "description": "InvalidRequestError",
  5089. "content": {
  5090. "application/json": {
  5091. "schema": {
  5092. "anyOf": [
  5093. {
  5094. "$ref": "#/components/schemas/InvalidRequestError1"
  5095. },
  5096. {
  5097. "$ref": "#/components/schemas/InvalidRequestError"
  5098. }
  5099. ]
  5100. }
  5101. }
  5102. }
  5103. },
  5104. "401": {
  5105. "description": "UnauthorizedError",
  5106. "content": {
  5107. "application/json": {
  5108. "schema": {
  5109. "$ref": "#/components/schemas/UnauthorizedError"
  5110. }
  5111. }
  5112. }
  5113. }
  5114. },
  5115. "description": "Discover and persist an experimental wellknown integration source.",
  5116. "summary": "Add wellknown integration",
  5117. "requestBody": {
  5118. "content": {
  5119. "application/json": {
  5120. "schema": {
  5121. "type": "object",
  5122. "properties": {
  5123. "url": {
  5124. "type": "string"
  5125. }
  5126. },
  5127. "required": ["url"],
  5128. "additionalProperties": false
  5129. }
  5130. }
  5131. },
  5132. "required": true
  5133. }
  5134. }
  5135. },
  5136. "/api/integration/{integrationID}/connect/key": {
  5137. "post": {
  5138. "tags": ["integration"],
  5139. "operationId": "v2.integration.connect.key",
  5140. "parameters": [
  5141. {
  5142. "name": "integrationID",
  5143. "in": "path",
  5144. "schema": {
  5145. "type": "string"
  5146. },
  5147. "required": true
  5148. },
  5149. {
  5150. "name": "location",
  5151. "in": "query",
  5152. "schema": {
  5153. "anyOf": [
  5154. {
  5155. "type": "object",
  5156. "properties": {
  5157. "directory": {
  5158. "anyOf": [
  5159. {
  5160. "type": "string"
  5161. },
  5162. {
  5163. "type": "null"
  5164. }
  5165. ]
  5166. },
  5167. "workspace": {
  5168. "anyOf": [
  5169. {
  5170. "type": "string"
  5171. },
  5172. {
  5173. "type": "null"
  5174. }
  5175. ]
  5176. }
  5177. },
  5178. "additionalProperties": false
  5179. },
  5180. {
  5181. "type": "null"
  5182. }
  5183. ]
  5184. },
  5185. "required": false,
  5186. "style": "deepObject",
  5187. "explode": true
  5188. }
  5189. ],
  5190. "security": [],
  5191. "responses": {
  5192. "204": {
  5193. "description": "<No Content>"
  5194. },
  5195. "400": {
  5196. "description": "InvalidRequestError",
  5197. "content": {
  5198. "application/json": {
  5199. "schema": {
  5200. "anyOf": [
  5201. {
  5202. "$ref": "#/components/schemas/InvalidRequestError1"
  5203. },
  5204. {
  5205. "$ref": "#/components/schemas/InvalidRequestError"
  5206. }
  5207. ]
  5208. }
  5209. }
  5210. }
  5211. },
  5212. "401": {
  5213. "description": "UnauthorizedError",
  5214. "content": {
  5215. "application/json": {
  5216. "schema": {
  5217. "$ref": "#/components/schemas/UnauthorizedError"
  5218. }
  5219. }
  5220. }
  5221. }
  5222. },
  5223. "description": "Run a key authentication method and store the resulting credential.",
  5224. "summary": "Connect with key",
  5225. "requestBody": {
  5226. "content": {
  5227. "application/json": {
  5228. "schema": {
  5229. "type": "object",
  5230. "properties": {
  5231. "key": {
  5232. "type": "string"
  5233. },
  5234. "answer": {
  5235. "anyOf": [
  5236. {
  5237. "$ref": "#/components/schemas/Form.Answer"
  5238. },
  5239. {
  5240. "type": "null"
  5241. }
  5242. ]
  5243. },
  5244. "label": {
  5245. "anyOf": [
  5246. {
  5247. "type": "string"
  5248. },
  5249. {
  5250. "type": "null"
  5251. }
  5252. ]
  5253. }
  5254. },
  5255. "required": ["key"],
  5256. "additionalProperties": false
  5257. }
  5258. }
  5259. },
  5260. "required": true
  5261. }
  5262. }
  5263. },
  5264. "/api/integration/{integrationID}/connect/oauth": {
  5265. "post": {
  5266. "tags": ["integration"],
  5267. "operationId": "v2.integration.oauth.connect",
  5268. "parameters": [
  5269. {
  5270. "name": "integrationID",
  5271. "in": "path",
  5272. "schema": {
  5273. "type": "string"
  5274. },
  5275. "required": true
  5276. },
  5277. {
  5278. "name": "location",
  5279. "in": "query",
  5280. "schema": {
  5281. "anyOf": [
  5282. {
  5283. "type": "object",
  5284. "properties": {
  5285. "directory": {
  5286. "anyOf": [
  5287. {
  5288. "type": "string"
  5289. },
  5290. {
  5291. "type": "null"
  5292. }
  5293. ]
  5294. },
  5295. "workspace": {
  5296. "anyOf": [
  5297. {
  5298. "type": "string"
  5299. },
  5300. {
  5301. "type": "null"
  5302. }
  5303. ]
  5304. }
  5305. },
  5306. "additionalProperties": false
  5307. },
  5308. {
  5309. "type": "null"
  5310. }
  5311. ]
  5312. },
  5313. "required": false,
  5314. "style": "deepObject",
  5315. "explode": true
  5316. }
  5317. ],
  5318. "security": [],
  5319. "responses": {
  5320. "200": {
  5321. "description": "Success",
  5322. "content": {
  5323. "application/json": {
  5324. "schema": {
  5325. "type": "object",
  5326. "properties": {
  5327. "location": {
  5328. "$ref": "#/components/schemas/Location.Info"
  5329. },
  5330. "data": {
  5331. "$ref": "#/components/schemas/Integration.Attempt"
  5332. }
  5333. },
  5334. "required": ["location", "data"],
  5335. "additionalProperties": false
  5336. }
  5337. }
  5338. }
  5339. },
  5340. "400": {
  5341. "description": "InvalidRequestError",
  5342. "content": {
  5343. "application/json": {
  5344. "schema": {
  5345. "anyOf": [
  5346. {
  5347. "$ref": "#/components/schemas/InvalidRequestError1"
  5348. },
  5349. {
  5350. "$ref": "#/components/schemas/InvalidRequestError"
  5351. }
  5352. ]
  5353. }
  5354. }
  5355. }
  5356. },
  5357. "401": {
  5358. "description": "UnauthorizedError",
  5359. "content": {
  5360. "application/json": {
  5361. "schema": {
  5362. "$ref": "#/components/schemas/UnauthorizedError"
  5363. }
  5364. }
  5365. }
  5366. }
  5367. },
  5368. "description": "Start an OAuth attempt and return the authorization details.",
  5369. "summary": "Begin OAuth connection",
  5370. "requestBody": {
  5371. "content": {
  5372. "application/json": {
  5373. "schema": {
  5374. "type": "object",
  5375. "properties": {
  5376. "methodID": {
  5377. "type": "string"
  5378. },
  5379. "answer": {
  5380. "anyOf": [
  5381. {
  5382. "$ref": "#/components/schemas/Form.Answer"
  5383. },
  5384. {
  5385. "type": "null"
  5386. }
  5387. ]
  5388. },
  5389. "label": {
  5390. "anyOf": [
  5391. {
  5392. "type": "string"
  5393. },
  5394. {
  5395. "type": "null"
  5396. }
  5397. ]
  5398. }
  5399. },
  5400. "required": ["methodID"],
  5401. "additionalProperties": false
  5402. }
  5403. }
  5404. },
  5405. "required": true
  5406. }
  5407. }
  5408. },
  5409. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5410. "get": {
  5411. "tags": ["integration"],
  5412. "operationId": "v2.integration.oauth.status",
  5413. "parameters": [
  5414. {
  5415. "name": "integrationID",
  5416. "in": "path",
  5417. "schema": {
  5418. "type": "string"
  5419. },
  5420. "required": true
  5421. },
  5422. {
  5423. "name": "attemptID",
  5424. "in": "path",
  5425. "schema": {
  5426. "type": "string"
  5427. },
  5428. "required": true
  5429. },
  5430. {
  5431. "name": "location",
  5432. "in": "query",
  5433. "schema": {
  5434. "anyOf": [
  5435. {
  5436. "type": "object",
  5437. "properties": {
  5438. "directory": {
  5439. "anyOf": [
  5440. {
  5441. "type": "string"
  5442. },
  5443. {
  5444. "type": "null"
  5445. }
  5446. ]
  5447. },
  5448. "workspace": {
  5449. "anyOf": [
  5450. {
  5451. "type": "string"
  5452. },
  5453. {
  5454. "type": "null"
  5455. }
  5456. ]
  5457. }
  5458. },
  5459. "additionalProperties": false
  5460. },
  5461. {
  5462. "type": "null"
  5463. }
  5464. ]
  5465. },
  5466. "required": false,
  5467. "style": "deepObject",
  5468. "explode": true
  5469. }
  5470. ],
  5471. "security": [],
  5472. "responses": {
  5473. "200": {
  5474. "description": "Success",
  5475. "content": {
  5476. "application/json": {
  5477. "schema": {
  5478. "type": "object",
  5479. "properties": {
  5480. "location": {
  5481. "$ref": "#/components/schemas/Location.Info"
  5482. },
  5483. "data": {
  5484. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5485. }
  5486. },
  5487. "required": ["location", "data"],
  5488. "additionalProperties": false
  5489. }
  5490. }
  5491. }
  5492. },
  5493. "400": {
  5494. "description": "InvalidRequestError",
  5495. "content": {
  5496. "application/json": {
  5497. "schema": {
  5498. "$ref": "#/components/schemas/InvalidRequestError"
  5499. }
  5500. }
  5501. }
  5502. },
  5503. "401": {
  5504. "description": "UnauthorizedError",
  5505. "content": {
  5506. "application/json": {
  5507. "schema": {
  5508. "$ref": "#/components/schemas/UnauthorizedError"
  5509. }
  5510. }
  5511. }
  5512. }
  5513. },
  5514. "description": "Poll the current status of an OAuth attempt.",
  5515. "summary": "Get OAuth attempt status"
  5516. },
  5517. "delete": {
  5518. "tags": ["integration"],
  5519. "operationId": "v2.integration.oauth.cancel",
  5520. "parameters": [
  5521. {
  5522. "name": "integrationID",
  5523. "in": "path",
  5524. "schema": {
  5525. "type": "string"
  5526. },
  5527. "required": true
  5528. },
  5529. {
  5530. "name": "attemptID",
  5531. "in": "path",
  5532. "schema": {
  5533. "type": "string"
  5534. },
  5535. "required": true
  5536. },
  5537. {
  5538. "name": "location",
  5539. "in": "query",
  5540. "schema": {
  5541. "anyOf": [
  5542. {
  5543. "type": "object",
  5544. "properties": {
  5545. "directory": {
  5546. "anyOf": [
  5547. {
  5548. "type": "string"
  5549. },
  5550. {
  5551. "type": "null"
  5552. }
  5553. ]
  5554. },
  5555. "workspace": {
  5556. "anyOf": [
  5557. {
  5558. "type": "string"
  5559. },
  5560. {
  5561. "type": "null"
  5562. }
  5563. ]
  5564. }
  5565. },
  5566. "additionalProperties": false
  5567. },
  5568. {
  5569. "type": "null"
  5570. }
  5571. ]
  5572. },
  5573. "required": false,
  5574. "style": "deepObject",
  5575. "explode": true
  5576. }
  5577. ],
  5578. "security": [],
  5579. "responses": {
  5580. "204": {
  5581. "description": "<No Content>"
  5582. },
  5583. "400": {
  5584. "description": "InvalidRequestError",
  5585. "content": {
  5586. "application/json": {
  5587. "schema": {
  5588. "$ref": "#/components/schemas/InvalidRequestError"
  5589. }
  5590. }
  5591. }
  5592. },
  5593. "401": {
  5594. "description": "UnauthorizedError",
  5595. "content": {
  5596. "application/json": {
  5597. "schema": {
  5598. "$ref": "#/components/schemas/UnauthorizedError"
  5599. }
  5600. }
  5601. }
  5602. }
  5603. },
  5604. "description": "Cancel an OAuth attempt and release its resources.",
  5605. "summary": "Cancel OAuth connection"
  5606. }
  5607. },
  5608. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5609. "post": {
  5610. "tags": ["integration"],
  5611. "operationId": "v2.integration.oauth.complete",
  5612. "parameters": [
  5613. {
  5614. "name": "integrationID",
  5615. "in": "path",
  5616. "schema": {
  5617. "type": "string"
  5618. },
  5619. "required": true
  5620. },
  5621. {
  5622. "name": "attemptID",
  5623. "in": "path",
  5624. "schema": {
  5625. "type": "string"
  5626. },
  5627. "required": true
  5628. },
  5629. {
  5630. "name": "location",
  5631. "in": "query",
  5632. "schema": {
  5633. "anyOf": [
  5634. {
  5635. "type": "object",
  5636. "properties": {
  5637. "directory": {
  5638. "anyOf": [
  5639. {
  5640. "type": "string"
  5641. },
  5642. {
  5643. "type": "null"
  5644. }
  5645. ]
  5646. },
  5647. "workspace": {
  5648. "anyOf": [
  5649. {
  5650. "type": "string"
  5651. },
  5652. {
  5653. "type": "null"
  5654. }
  5655. ]
  5656. }
  5657. },
  5658. "additionalProperties": false
  5659. },
  5660. {
  5661. "type": "null"
  5662. }
  5663. ]
  5664. },
  5665. "required": false,
  5666. "style": "deepObject",
  5667. "explode": true
  5668. }
  5669. ],
  5670. "security": [],
  5671. "responses": {
  5672. "204": {
  5673. "description": "<No Content>"
  5674. },
  5675. "400": {
  5676. "description": "InvalidRequestError",
  5677. "content": {
  5678. "application/json": {
  5679. "schema": {
  5680. "anyOf": [
  5681. {
  5682. "$ref": "#/components/schemas/InvalidRequestError1"
  5683. },
  5684. {
  5685. "$ref": "#/components/schemas/InvalidRequestError"
  5686. }
  5687. ]
  5688. }
  5689. }
  5690. }
  5691. },
  5692. "401": {
  5693. "description": "UnauthorizedError",
  5694. "content": {
  5695. "application/json": {
  5696. "schema": {
  5697. "$ref": "#/components/schemas/UnauthorizedError"
  5698. }
  5699. }
  5700. }
  5701. }
  5702. },
  5703. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5704. "summary": "Complete OAuth connection",
  5705. "requestBody": {
  5706. "content": {
  5707. "application/json": {
  5708. "schema": {
  5709. "type": "object",
  5710. "properties": {
  5711. "code": {
  5712. "anyOf": [
  5713. {
  5714. "type": "string"
  5715. },
  5716. {
  5717. "type": "null"
  5718. }
  5719. ]
  5720. }
  5721. },
  5722. "additionalProperties": false
  5723. }
  5724. }
  5725. },
  5726. "required": true
  5727. }
  5728. }
  5729. },
  5730. "/api/integration/{integrationID}/connect/command": {
  5731. "post": {
  5732. "tags": ["integration"],
  5733. "operationId": "v2.integration.command.connect",
  5734. "parameters": [
  5735. {
  5736. "name": "integrationID",
  5737. "in": "path",
  5738. "schema": {
  5739. "type": "string"
  5740. },
  5741. "required": true
  5742. },
  5743. {
  5744. "name": "location",
  5745. "in": "query",
  5746. "schema": {
  5747. "anyOf": [
  5748. {
  5749. "type": "object",
  5750. "properties": {
  5751. "directory": {
  5752. "anyOf": [
  5753. {
  5754. "type": "string"
  5755. },
  5756. {
  5757. "type": "null"
  5758. }
  5759. ]
  5760. },
  5761. "workspace": {
  5762. "anyOf": [
  5763. {
  5764. "type": "string"
  5765. },
  5766. {
  5767. "type": "null"
  5768. }
  5769. ]
  5770. }
  5771. },
  5772. "additionalProperties": false
  5773. },
  5774. {
  5775. "type": "null"
  5776. }
  5777. ]
  5778. },
  5779. "required": false,
  5780. "style": "deepObject",
  5781. "explode": true
  5782. }
  5783. ],
  5784. "security": [],
  5785. "responses": {
  5786. "200": {
  5787. "description": "Success",
  5788. "content": {
  5789. "application/json": {
  5790. "schema": {
  5791. "type": "object",
  5792. "properties": {
  5793. "location": {
  5794. "$ref": "#/components/schemas/Location.Info"
  5795. },
  5796. "data": {
  5797. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5798. }
  5799. },
  5800. "required": ["location", "data"],
  5801. "additionalProperties": false
  5802. }
  5803. }
  5804. }
  5805. },
  5806. "400": {
  5807. "description": "InvalidRequestError",
  5808. "content": {
  5809. "application/json": {
  5810. "schema": {
  5811. "anyOf": [
  5812. {
  5813. "$ref": "#/components/schemas/InvalidRequestError1"
  5814. },
  5815. {
  5816. "$ref": "#/components/schemas/InvalidRequestError"
  5817. }
  5818. ]
  5819. }
  5820. }
  5821. }
  5822. },
  5823. "401": {
  5824. "description": "UnauthorizedError",
  5825. "content": {
  5826. "application/json": {
  5827. "schema": {
  5828. "$ref": "#/components/schemas/UnauthorizedError"
  5829. }
  5830. }
  5831. }
  5832. }
  5833. },
  5834. "description": "Start a command authentication attempt.",
  5835. "summary": "Begin command connection",
  5836. "requestBody": {
  5837. "content": {
  5838. "application/json": {
  5839. "schema": {
  5840. "type": "object",
  5841. "properties": {
  5842. "methodID": {
  5843. "type": "string"
  5844. },
  5845. "label": {
  5846. "anyOf": [
  5847. {
  5848. "type": "string"
  5849. },
  5850. {
  5851. "type": "null"
  5852. }
  5853. ]
  5854. }
  5855. },
  5856. "required": ["methodID"],
  5857. "additionalProperties": false
  5858. }
  5859. }
  5860. },
  5861. "required": true
  5862. }
  5863. }
  5864. },
  5865. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5866. "get": {
  5867. "tags": ["integration"],
  5868. "operationId": "v2.integration.command.status",
  5869. "parameters": [
  5870. {
  5871. "name": "integrationID",
  5872. "in": "path",
  5873. "schema": {
  5874. "type": "string"
  5875. },
  5876. "required": true
  5877. },
  5878. {
  5879. "name": "attemptID",
  5880. "in": "path",
  5881. "schema": {
  5882. "type": "string"
  5883. },
  5884. "required": true
  5885. },
  5886. {
  5887. "name": "location",
  5888. "in": "query",
  5889. "schema": {
  5890. "anyOf": [
  5891. {
  5892. "type": "object",
  5893. "properties": {
  5894. "directory": {
  5895. "anyOf": [
  5896. {
  5897. "type": "string"
  5898. },
  5899. {
  5900. "type": "null"
  5901. }
  5902. ]
  5903. },
  5904. "workspace": {
  5905. "anyOf": [
  5906. {
  5907. "type": "string"
  5908. },
  5909. {
  5910. "type": "null"
  5911. }
  5912. ]
  5913. }
  5914. },
  5915. "additionalProperties": false
  5916. },
  5917. {
  5918. "type": "null"
  5919. }
  5920. ]
  5921. },
  5922. "required": false,
  5923. "style": "deepObject",
  5924. "explode": true
  5925. }
  5926. ],
  5927. "security": [],
  5928. "responses": {
  5929. "200": {
  5930. "description": "Success",
  5931. "content": {
  5932. "application/json": {
  5933. "schema": {
  5934. "type": "object",
  5935. "properties": {
  5936. "location": {
  5937. "$ref": "#/components/schemas/Location.Info"
  5938. },
  5939. "data": {
  5940. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  5941. }
  5942. },
  5943. "required": ["location", "data"],
  5944. "additionalProperties": false
  5945. }
  5946. }
  5947. }
  5948. },
  5949. "400": {
  5950. "description": "InvalidRequestError",
  5951. "content": {
  5952. "application/json": {
  5953. "schema": {
  5954. "$ref": "#/components/schemas/InvalidRequestError"
  5955. }
  5956. }
  5957. }
  5958. },
  5959. "401": {
  5960. "description": "UnauthorizedError",
  5961. "content": {
  5962. "application/json": {
  5963. "schema": {
  5964. "$ref": "#/components/schemas/UnauthorizedError"
  5965. }
  5966. }
  5967. }
  5968. }
  5969. },
  5970. "description": "Poll the current status and output of a command authentication attempt.",
  5971. "summary": "Get command attempt status"
  5972. },
  5973. "delete": {
  5974. "tags": ["integration"],
  5975. "operationId": "v2.integration.command.cancel",
  5976. "parameters": [
  5977. {
  5978. "name": "integrationID",
  5979. "in": "path",
  5980. "schema": {
  5981. "type": "string"
  5982. },
  5983. "required": true
  5984. },
  5985. {
  5986. "name": "attemptID",
  5987. "in": "path",
  5988. "schema": {
  5989. "type": "string"
  5990. },
  5991. "required": true
  5992. },
  5993. {
  5994. "name": "location",
  5995. "in": "query",
  5996. "schema": {
  5997. "anyOf": [
  5998. {
  5999. "type": "object",
  6000. "properties": {
  6001. "directory": {
  6002. "anyOf": [
  6003. {
  6004. "type": "string"
  6005. },
  6006. {
  6007. "type": "null"
  6008. }
  6009. ]
  6010. },
  6011. "workspace": {
  6012. "anyOf": [
  6013. {
  6014. "type": "string"
  6015. },
  6016. {
  6017. "type": "null"
  6018. }
  6019. ]
  6020. }
  6021. },
  6022. "additionalProperties": false
  6023. },
  6024. {
  6025. "type": "null"
  6026. }
  6027. ]
  6028. },
  6029. "required": false,
  6030. "style": "deepObject",
  6031. "explode": true
  6032. }
  6033. ],
  6034. "security": [],
  6035. "responses": {
  6036. "204": {
  6037. "description": "<No Content>"
  6038. },
  6039. "400": {
  6040. "description": "InvalidRequestError",
  6041. "content": {
  6042. "application/json": {
  6043. "schema": {
  6044. "$ref": "#/components/schemas/InvalidRequestError"
  6045. }
  6046. }
  6047. }
  6048. },
  6049. "401": {
  6050. "description": "UnauthorizedError",
  6051. "content": {
  6052. "application/json": {
  6053. "schema": {
  6054. "$ref": "#/components/schemas/UnauthorizedError"
  6055. }
  6056. }
  6057. }
  6058. }
  6059. },
  6060. "description": "Cancel a command authentication attempt and terminate its process.",
  6061. "summary": "Cancel command connection"
  6062. }
  6063. },
  6064. "/api/mcp": {
  6065. "get": {
  6066. "tags": ["mcp"],
  6067. "operationId": "v2.mcp.list",
  6068. "parameters": [
  6069. {
  6070. "name": "location",
  6071. "in": "query",
  6072. "schema": {
  6073. "anyOf": [
  6074. {
  6075. "type": "object",
  6076. "properties": {
  6077. "directory": {
  6078. "anyOf": [
  6079. {
  6080. "type": "string"
  6081. },
  6082. {
  6083. "type": "null"
  6084. }
  6085. ]
  6086. },
  6087. "workspace": {
  6088. "anyOf": [
  6089. {
  6090. "type": "string"
  6091. },
  6092. {
  6093. "type": "null"
  6094. }
  6095. ]
  6096. }
  6097. },
  6098. "additionalProperties": false
  6099. },
  6100. {
  6101. "type": "null"
  6102. }
  6103. ]
  6104. },
  6105. "required": false,
  6106. "style": "deepObject",
  6107. "explode": true
  6108. }
  6109. ],
  6110. "security": [],
  6111. "responses": {
  6112. "200": {
  6113. "description": "Success",
  6114. "content": {
  6115. "application/json": {
  6116. "schema": {
  6117. "type": "object",
  6118. "properties": {
  6119. "location": {
  6120. "$ref": "#/components/schemas/Location.Info"
  6121. },
  6122. "data": {
  6123. "type": "array",
  6124. "items": {
  6125. "$ref": "#/components/schemas/Mcp.Server"
  6126. }
  6127. }
  6128. },
  6129. "required": ["location", "data"],
  6130. "additionalProperties": false
  6131. }
  6132. }
  6133. }
  6134. },
  6135. "400": {
  6136. "description": "InvalidRequestError",
  6137. "content": {
  6138. "application/json": {
  6139. "schema": {
  6140. "$ref": "#/components/schemas/InvalidRequestError"
  6141. }
  6142. }
  6143. }
  6144. },
  6145. "401": {
  6146. "description": "UnauthorizedError",
  6147. "content": {
  6148. "application/json": {
  6149. "schema": {
  6150. "$ref": "#/components/schemas/UnauthorizedError"
  6151. }
  6152. }
  6153. }
  6154. }
  6155. },
  6156. "description": "Retrieve configured MCP servers and their connection status.",
  6157. "summary": "List MCP servers"
  6158. }
  6159. },
  6160. "/api/mcp/{server}": {
  6161. "put": {
  6162. "tags": ["mcp"],
  6163. "operationId": "v2.mcp.add",
  6164. "parameters": [
  6165. {
  6166. "name": "server",
  6167. "in": "path",
  6168. "schema": {
  6169. "type": "string"
  6170. },
  6171. "required": true
  6172. },
  6173. {
  6174. "name": "location",
  6175. "in": "query",
  6176. "schema": {
  6177. "anyOf": [
  6178. {
  6179. "type": "object",
  6180. "properties": {
  6181. "directory": {
  6182. "anyOf": [
  6183. {
  6184. "type": "string"
  6185. },
  6186. {
  6187. "type": "null"
  6188. }
  6189. ]
  6190. },
  6191. "workspace": {
  6192. "anyOf": [
  6193. {
  6194. "type": "string"
  6195. },
  6196. {
  6197. "type": "null"
  6198. }
  6199. ]
  6200. }
  6201. },
  6202. "additionalProperties": false
  6203. },
  6204. {
  6205. "type": "null"
  6206. }
  6207. ]
  6208. },
  6209. "required": false,
  6210. "style": "deepObject",
  6211. "explode": true
  6212. }
  6213. ],
  6214. "security": [],
  6215. "responses": {
  6216. "204": {
  6217. "description": "<No Content>"
  6218. },
  6219. "400": {
  6220. "description": "InvalidRequestError",
  6221. "content": {
  6222. "application/json": {
  6223. "schema": {
  6224. "$ref": "#/components/schemas/InvalidRequestError"
  6225. }
  6226. }
  6227. }
  6228. },
  6229. "401": {
  6230. "description": "UnauthorizedError",
  6231. "content": {
  6232. "application/json": {
  6233. "schema": {
  6234. "$ref": "#/components/schemas/UnauthorizedError"
  6235. }
  6236. }
  6237. }
  6238. }
  6239. },
  6240. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  6241. "summary": "Add MCP server",
  6242. "requestBody": {
  6243. "content": {
  6244. "application/json": {
  6245. "schema": {
  6246. "type": "object",
  6247. "properties": {
  6248. "config": {
  6249. "anyOf": [
  6250. {
  6251. "$ref": "#/components/schemas/Mcp.LocalConfig"
  6252. },
  6253. {
  6254. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6255. }
  6256. ]
  6257. }
  6258. },
  6259. "required": ["config"],
  6260. "additionalProperties": false
  6261. }
  6262. }
  6263. },
  6264. "required": true
  6265. }
  6266. },
  6267. "delete": {
  6268. "tags": ["mcp"],
  6269. "operationId": "v2.mcp.remove",
  6270. "parameters": [
  6271. {
  6272. "name": "server",
  6273. "in": "path",
  6274. "schema": {
  6275. "type": "string"
  6276. },
  6277. "required": true
  6278. },
  6279. {
  6280. "name": "location",
  6281. "in": "query",
  6282. "schema": {
  6283. "anyOf": [
  6284. {
  6285. "type": "object",
  6286. "properties": {
  6287. "directory": {
  6288. "anyOf": [
  6289. {
  6290. "type": "string"
  6291. },
  6292. {
  6293. "type": "null"
  6294. }
  6295. ]
  6296. },
  6297. "workspace": {
  6298. "anyOf": [
  6299. {
  6300. "type": "string"
  6301. },
  6302. {
  6303. "type": "null"
  6304. }
  6305. ]
  6306. }
  6307. },
  6308. "additionalProperties": false
  6309. },
  6310. {
  6311. "type": "null"
  6312. }
  6313. ]
  6314. },
  6315. "required": false,
  6316. "style": "deepObject",
  6317. "explode": true
  6318. }
  6319. ],
  6320. "security": [],
  6321. "responses": {
  6322. "204": {
  6323. "description": "<No Content>"
  6324. },
  6325. "400": {
  6326. "description": "InvalidRequestError",
  6327. "content": {
  6328. "application/json": {
  6329. "schema": {
  6330. "$ref": "#/components/schemas/InvalidRequestError"
  6331. }
  6332. }
  6333. }
  6334. },
  6335. "401": {
  6336. "description": "UnauthorizedError",
  6337. "content": {
  6338. "application/json": {
  6339. "schema": {
  6340. "$ref": "#/components/schemas/UnauthorizedError"
  6341. }
  6342. }
  6343. }
  6344. },
  6345. "404": {
  6346. "description": "McpServerNotFoundError",
  6347. "content": {
  6348. "application/json": {
  6349. "schema": {
  6350. "$ref": "#/components/schemas/McpServerNotFoundError"
  6351. }
  6352. }
  6353. }
  6354. }
  6355. },
  6356. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6357. "summary": "Remove MCP server"
  6358. }
  6359. },
  6360. "/api/mcp/{server}/connect": {
  6361. "post": {
  6362. "tags": ["mcp"],
  6363. "operationId": "v2.mcp.connect",
  6364. "parameters": [
  6365. {
  6366. "name": "server",
  6367. "in": "path",
  6368. "schema": {
  6369. "type": "string"
  6370. },
  6371. "required": true
  6372. },
  6373. {
  6374. "name": "location",
  6375. "in": "query",
  6376. "schema": {
  6377. "anyOf": [
  6378. {
  6379. "type": "object",
  6380. "properties": {
  6381. "directory": {
  6382. "anyOf": [
  6383. {
  6384. "type": "string"
  6385. },
  6386. {
  6387. "type": "null"
  6388. }
  6389. ]
  6390. },
  6391. "workspace": {
  6392. "anyOf": [
  6393. {
  6394. "type": "string"
  6395. },
  6396. {
  6397. "type": "null"
  6398. }
  6399. ]
  6400. }
  6401. },
  6402. "additionalProperties": false
  6403. },
  6404. {
  6405. "type": "null"
  6406. }
  6407. ]
  6408. },
  6409. "required": false,
  6410. "style": "deepObject",
  6411. "explode": true
  6412. }
  6413. ],
  6414. "security": [],
  6415. "responses": {
  6416. "204": {
  6417. "description": "<No Content>"
  6418. },
  6419. "400": {
  6420. "description": "InvalidRequestError",
  6421. "content": {
  6422. "application/json": {
  6423. "schema": {
  6424. "$ref": "#/components/schemas/InvalidRequestError"
  6425. }
  6426. }
  6427. }
  6428. },
  6429. "401": {
  6430. "description": "UnauthorizedError",
  6431. "content": {
  6432. "application/json": {
  6433. "schema": {
  6434. "$ref": "#/components/schemas/UnauthorizedError"
  6435. }
  6436. }
  6437. }
  6438. },
  6439. "404": {
  6440. "description": "McpServerNotFoundError",
  6441. "content": {
  6442. "application/json": {
  6443. "schema": {
  6444. "$ref": "#/components/schemas/McpServerNotFoundError"
  6445. }
  6446. }
  6447. }
  6448. }
  6449. },
  6450. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6451. "summary": "Connect MCP server"
  6452. }
  6453. },
  6454. "/api/mcp/{server}/disconnect": {
  6455. "post": {
  6456. "tags": ["mcp"],
  6457. "operationId": "v2.mcp.disconnect",
  6458. "parameters": [
  6459. {
  6460. "name": "server",
  6461. "in": "path",
  6462. "schema": {
  6463. "type": "string"
  6464. },
  6465. "required": true
  6466. },
  6467. {
  6468. "name": "location",
  6469. "in": "query",
  6470. "schema": {
  6471. "anyOf": [
  6472. {
  6473. "type": "object",
  6474. "properties": {
  6475. "directory": {
  6476. "anyOf": [
  6477. {
  6478. "type": "string"
  6479. },
  6480. {
  6481. "type": "null"
  6482. }
  6483. ]
  6484. },
  6485. "workspace": {
  6486. "anyOf": [
  6487. {
  6488. "type": "string"
  6489. },
  6490. {
  6491. "type": "null"
  6492. }
  6493. ]
  6494. }
  6495. },
  6496. "additionalProperties": false
  6497. },
  6498. {
  6499. "type": "null"
  6500. }
  6501. ]
  6502. },
  6503. "required": false,
  6504. "style": "deepObject",
  6505. "explode": true
  6506. }
  6507. ],
  6508. "security": [],
  6509. "responses": {
  6510. "204": {
  6511. "description": "<No Content>"
  6512. },
  6513. "400": {
  6514. "description": "InvalidRequestError",
  6515. "content": {
  6516. "application/json": {
  6517. "schema": {
  6518. "$ref": "#/components/schemas/InvalidRequestError"
  6519. }
  6520. }
  6521. }
  6522. },
  6523. "401": {
  6524. "description": "UnauthorizedError",
  6525. "content": {
  6526. "application/json": {
  6527. "schema": {
  6528. "$ref": "#/components/schemas/UnauthorizedError"
  6529. }
  6530. }
  6531. }
  6532. },
  6533. "404": {
  6534. "description": "McpServerNotFoundError",
  6535. "content": {
  6536. "application/json": {
  6537. "schema": {
  6538. "$ref": "#/components/schemas/McpServerNotFoundError"
  6539. }
  6540. }
  6541. }
  6542. }
  6543. },
  6544. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6545. "summary": "Disconnect MCP server"
  6546. }
  6547. },
  6548. "/api/mcp/resource": {
  6549. "get": {
  6550. "tags": ["mcp"],
  6551. "operationId": "v2.mcp.resource.catalog",
  6552. "parameters": [
  6553. {
  6554. "name": "location",
  6555. "in": "query",
  6556. "schema": {
  6557. "anyOf": [
  6558. {
  6559. "type": "object",
  6560. "properties": {
  6561. "directory": {
  6562. "anyOf": [
  6563. {
  6564. "type": "string"
  6565. },
  6566. {
  6567. "type": "null"
  6568. }
  6569. ]
  6570. },
  6571. "workspace": {
  6572. "anyOf": [
  6573. {
  6574. "type": "string"
  6575. },
  6576. {
  6577. "type": "null"
  6578. }
  6579. ]
  6580. }
  6581. },
  6582. "additionalProperties": false
  6583. },
  6584. {
  6585. "type": "null"
  6586. }
  6587. ]
  6588. },
  6589. "required": false,
  6590. "style": "deepObject",
  6591. "explode": true
  6592. }
  6593. ],
  6594. "security": [],
  6595. "responses": {
  6596. "200": {
  6597. "description": "Success",
  6598. "content": {
  6599. "application/json": {
  6600. "schema": {
  6601. "type": "object",
  6602. "properties": {
  6603. "location": {
  6604. "$ref": "#/components/schemas/Location.Info"
  6605. },
  6606. "data": {
  6607. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6608. }
  6609. },
  6610. "required": ["location", "data"],
  6611. "additionalProperties": false
  6612. }
  6613. }
  6614. }
  6615. },
  6616. "400": {
  6617. "description": "InvalidRequestError",
  6618. "content": {
  6619. "application/json": {
  6620. "schema": {
  6621. "$ref": "#/components/schemas/InvalidRequestError"
  6622. }
  6623. }
  6624. }
  6625. },
  6626. "401": {
  6627. "description": "UnauthorizedError",
  6628. "content": {
  6629. "application/json": {
  6630. "schema": {
  6631. "$ref": "#/components/schemas/UnauthorizedError"
  6632. }
  6633. }
  6634. }
  6635. }
  6636. },
  6637. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6638. "summary": "List MCP resources"
  6639. }
  6640. },
  6641. "/api/credential/{credentialID}": {
  6642. "patch": {
  6643. "tags": ["credential"],
  6644. "operationId": "v2.credential.update",
  6645. "parameters": [
  6646. {
  6647. "name": "credentialID",
  6648. "in": "path",
  6649. "schema": {
  6650. "type": "string"
  6651. },
  6652. "required": true
  6653. },
  6654. {
  6655. "name": "location",
  6656. "in": "query",
  6657. "schema": {
  6658. "anyOf": [
  6659. {
  6660. "type": "object",
  6661. "properties": {
  6662. "directory": {
  6663. "anyOf": [
  6664. {
  6665. "type": "string"
  6666. },
  6667. {
  6668. "type": "null"
  6669. }
  6670. ]
  6671. },
  6672. "workspace": {
  6673. "anyOf": [
  6674. {
  6675. "type": "string"
  6676. },
  6677. {
  6678. "type": "null"
  6679. }
  6680. ]
  6681. }
  6682. },
  6683. "additionalProperties": false
  6684. },
  6685. {
  6686. "type": "null"
  6687. }
  6688. ]
  6689. },
  6690. "required": false,
  6691. "style": "deepObject",
  6692. "explode": true
  6693. }
  6694. ],
  6695. "security": [],
  6696. "responses": {
  6697. "204": {
  6698. "description": "<No Content>"
  6699. },
  6700. "400": {
  6701. "description": "InvalidRequestError",
  6702. "content": {
  6703. "application/json": {
  6704. "schema": {
  6705. "$ref": "#/components/schemas/InvalidRequestError"
  6706. }
  6707. }
  6708. }
  6709. },
  6710. "401": {
  6711. "description": "UnauthorizedError",
  6712. "content": {
  6713. "application/json": {
  6714. "schema": {
  6715. "$ref": "#/components/schemas/UnauthorizedError"
  6716. }
  6717. }
  6718. }
  6719. }
  6720. },
  6721. "description": "Update a stored credential label.",
  6722. "summary": "Update credential",
  6723. "requestBody": {
  6724. "content": {
  6725. "application/json": {
  6726. "schema": {
  6727. "type": "object",
  6728. "properties": {
  6729. "label": {
  6730. "type": "string"
  6731. }
  6732. },
  6733. "required": ["label"],
  6734. "additionalProperties": false
  6735. }
  6736. }
  6737. },
  6738. "required": true
  6739. }
  6740. },
  6741. "delete": {
  6742. "tags": ["credential"],
  6743. "operationId": "v2.credential.remove",
  6744. "parameters": [
  6745. {
  6746. "name": "credentialID",
  6747. "in": "path",
  6748. "schema": {
  6749. "type": "string"
  6750. },
  6751. "required": true
  6752. },
  6753. {
  6754. "name": "location",
  6755. "in": "query",
  6756. "schema": {
  6757. "anyOf": [
  6758. {
  6759. "type": "object",
  6760. "properties": {
  6761. "directory": {
  6762. "anyOf": [
  6763. {
  6764. "type": "string"
  6765. },
  6766. {
  6767. "type": "null"
  6768. }
  6769. ]
  6770. },
  6771. "workspace": {
  6772. "anyOf": [
  6773. {
  6774. "type": "string"
  6775. },
  6776. {
  6777. "type": "null"
  6778. }
  6779. ]
  6780. }
  6781. },
  6782. "additionalProperties": false
  6783. },
  6784. {
  6785. "type": "null"
  6786. }
  6787. ]
  6788. },
  6789. "required": false,
  6790. "style": "deepObject",
  6791. "explode": true
  6792. }
  6793. ],
  6794. "security": [],
  6795. "responses": {
  6796. "204": {
  6797. "description": "<No Content>"
  6798. },
  6799. "400": {
  6800. "description": "InvalidRequestError",
  6801. "content": {
  6802. "application/json": {
  6803. "schema": {
  6804. "$ref": "#/components/schemas/InvalidRequestError"
  6805. }
  6806. }
  6807. }
  6808. },
  6809. "401": {
  6810. "description": "UnauthorizedError",
  6811. "content": {
  6812. "application/json": {
  6813. "schema": {
  6814. "$ref": "#/components/schemas/UnauthorizedError"
  6815. }
  6816. }
  6817. }
  6818. }
  6819. },
  6820. "description": "Remove a stored integration credential.",
  6821. "summary": "Remove credential"
  6822. }
  6823. },
  6824. "/api/project": {
  6825. "get": {
  6826. "tags": ["project"],
  6827. "operationId": "v2.project.list",
  6828. "parameters": [],
  6829. "security": [],
  6830. "responses": {
  6831. "200": {
  6832. "description": "Success",
  6833. "content": {
  6834. "application/json": {
  6835. "schema": {
  6836. "type": "array",
  6837. "items": {
  6838. "$ref": "#/components/schemas/Project"
  6839. }
  6840. }
  6841. }
  6842. }
  6843. },
  6844. "400": {
  6845. "description": "InvalidRequestError",
  6846. "content": {
  6847. "application/json": {
  6848. "schema": {
  6849. "$ref": "#/components/schemas/InvalidRequestError"
  6850. }
  6851. }
  6852. }
  6853. },
  6854. "401": {
  6855. "description": "UnauthorizedError",
  6856. "content": {
  6857. "application/json": {
  6858. "schema": {
  6859. "$ref": "#/components/schemas/UnauthorizedError"
  6860. }
  6861. }
  6862. }
  6863. }
  6864. },
  6865. "description": "List known projects.",
  6866. "summary": "List projects"
  6867. }
  6868. },
  6869. "/api/project/current": {
  6870. "get": {
  6871. "tags": ["project"],
  6872. "operationId": "v2.project.current",
  6873. "parameters": [
  6874. {
  6875. "name": "location",
  6876. "in": "query",
  6877. "schema": {
  6878. "anyOf": [
  6879. {
  6880. "type": "object",
  6881. "properties": {
  6882. "directory": {
  6883. "anyOf": [
  6884. {
  6885. "type": "string"
  6886. },
  6887. {
  6888. "type": "null"
  6889. }
  6890. ]
  6891. },
  6892. "workspace": {
  6893. "anyOf": [
  6894. {
  6895. "type": "string"
  6896. },
  6897. {
  6898. "type": "null"
  6899. }
  6900. ]
  6901. }
  6902. },
  6903. "additionalProperties": false
  6904. },
  6905. {
  6906. "type": "null"
  6907. }
  6908. ]
  6909. },
  6910. "required": false,
  6911. "style": "deepObject",
  6912. "explode": true
  6913. }
  6914. ],
  6915. "security": [],
  6916. "responses": {
  6917. "200": {
  6918. "description": "Project.Current",
  6919. "content": {
  6920. "application/json": {
  6921. "schema": {
  6922. "$ref": "#/components/schemas/Project.Current"
  6923. }
  6924. }
  6925. }
  6926. },
  6927. "400": {
  6928. "description": "InvalidRequestError",
  6929. "content": {
  6930. "application/json": {
  6931. "schema": {
  6932. "$ref": "#/components/schemas/InvalidRequestError"
  6933. }
  6934. }
  6935. }
  6936. },
  6937. "401": {
  6938. "description": "UnauthorizedError",
  6939. "content": {
  6940. "application/json": {
  6941. "schema": {
  6942. "$ref": "#/components/schemas/UnauthorizedError"
  6943. }
  6944. }
  6945. }
  6946. }
  6947. },
  6948. "description": "Resolve the project for the requested location.",
  6949. "summary": "Get current project"
  6950. }
  6951. },
  6952. "/api/form/request": {
  6953. "get": {
  6954. "tags": ["form"],
  6955. "operationId": "v2.form.request.list",
  6956. "parameters": [
  6957. {
  6958. "name": "location",
  6959. "in": "query",
  6960. "schema": {
  6961. "anyOf": [
  6962. {
  6963. "type": "object",
  6964. "properties": {
  6965. "directory": {
  6966. "anyOf": [
  6967. {
  6968. "type": "string"
  6969. },
  6970. {
  6971. "type": "null"
  6972. }
  6973. ]
  6974. },
  6975. "workspace": {
  6976. "anyOf": [
  6977. {
  6978. "type": "string"
  6979. },
  6980. {
  6981. "type": "null"
  6982. }
  6983. ]
  6984. }
  6985. },
  6986. "additionalProperties": false
  6987. },
  6988. {
  6989. "type": "null"
  6990. }
  6991. ]
  6992. },
  6993. "required": false,
  6994. "style": "deepObject",
  6995. "explode": true
  6996. }
  6997. ],
  6998. "security": [],
  6999. "responses": {
  7000. "200": {
  7001. "description": "Success",
  7002. "content": {
  7003. "application/json": {
  7004. "schema": {
  7005. "type": "object",
  7006. "properties": {
  7007. "location": {
  7008. "$ref": "#/components/schemas/Location.Info"
  7009. },
  7010. "data": {
  7011. "type": "array",
  7012. "items": {
  7013. "$ref": "#/components/schemas/Form.Info"
  7014. }
  7015. }
  7016. },
  7017. "required": ["location", "data"],
  7018. "additionalProperties": false
  7019. }
  7020. }
  7021. }
  7022. },
  7023. "400": {
  7024. "description": "InvalidRequestError",
  7025. "content": {
  7026. "application/json": {
  7027. "schema": {
  7028. "$ref": "#/components/schemas/InvalidRequestError"
  7029. }
  7030. }
  7031. }
  7032. },
  7033. "401": {
  7034. "description": "UnauthorizedError",
  7035. "content": {
  7036. "application/json": {
  7037. "schema": {
  7038. "$ref": "#/components/schemas/UnauthorizedError"
  7039. }
  7040. }
  7041. }
  7042. }
  7043. },
  7044. "description": "Retrieve pending forms for a location.",
  7045. "summary": "List pending form requests"
  7046. }
  7047. },
  7048. "/api/session/{sessionID}/form": {
  7049. "get": {
  7050. "tags": ["form"],
  7051. "operationId": "v2.session.form.list",
  7052. "parameters": [
  7053. {
  7054. "name": "sessionID",
  7055. "in": "path",
  7056. "schema": {
  7057. "type": "string"
  7058. },
  7059. "required": true
  7060. }
  7061. ],
  7062. "security": [],
  7063. "responses": {
  7064. "200": {
  7065. "description": "Success",
  7066. "content": {
  7067. "application/json": {
  7068. "schema": {
  7069. "type": "object",
  7070. "properties": {
  7071. "data": {
  7072. "type": "array",
  7073. "items": {
  7074. "$ref": "#/components/schemas/Form.Info"
  7075. }
  7076. }
  7077. },
  7078. "required": ["data"],
  7079. "additionalProperties": false
  7080. }
  7081. }
  7082. }
  7083. },
  7084. "400": {
  7085. "description": "InvalidRequestError",
  7086. "content": {
  7087. "application/json": {
  7088. "schema": {
  7089. "$ref": "#/components/schemas/InvalidRequestError"
  7090. }
  7091. }
  7092. }
  7093. },
  7094. "401": {
  7095. "description": "UnauthorizedError",
  7096. "content": {
  7097. "application/json": {
  7098. "schema": {
  7099. "$ref": "#/components/schemas/UnauthorizedError"
  7100. }
  7101. }
  7102. }
  7103. },
  7104. "404": {
  7105. "description": "SessionNotFoundError",
  7106. "content": {
  7107. "application/json": {
  7108. "schema": {
  7109. "anyOf": [
  7110. {
  7111. "$ref": "#/components/schemas/SessionNotFoundError"
  7112. },
  7113. {
  7114. "$ref": "#/components/schemas/SessionNotFoundError"
  7115. }
  7116. ]
  7117. }
  7118. }
  7119. }
  7120. }
  7121. },
  7122. "description": "Retrieve pending forms for a session.",
  7123. "summary": "List session forms"
  7124. },
  7125. "post": {
  7126. "tags": ["form"],
  7127. "operationId": "v2.session.form.create",
  7128. "parameters": [
  7129. {
  7130. "name": "sessionID",
  7131. "in": "path",
  7132. "schema": {
  7133. "type": "string"
  7134. },
  7135. "required": true
  7136. }
  7137. ],
  7138. "security": [],
  7139. "responses": {
  7140. "200": {
  7141. "description": "Success",
  7142. "content": {
  7143. "application/json": {
  7144. "schema": {
  7145. "type": "object",
  7146. "properties": {
  7147. "data": {
  7148. "$ref": "#/components/schemas/Form.Info"
  7149. }
  7150. },
  7151. "required": ["data"],
  7152. "additionalProperties": false
  7153. }
  7154. }
  7155. }
  7156. },
  7157. "400": {
  7158. "description": "InvalidRequestError",
  7159. "content": {
  7160. "application/json": {
  7161. "schema": {
  7162. "anyOf": [
  7163. {
  7164. "$ref": "#/components/schemas/InvalidRequestError1"
  7165. },
  7166. {
  7167. "$ref": "#/components/schemas/InvalidRequestError"
  7168. }
  7169. ]
  7170. }
  7171. }
  7172. }
  7173. },
  7174. "401": {
  7175. "description": "UnauthorizedError",
  7176. "content": {
  7177. "application/json": {
  7178. "schema": {
  7179. "$ref": "#/components/schemas/UnauthorizedError"
  7180. }
  7181. }
  7182. }
  7183. },
  7184. "404": {
  7185. "description": "SessionNotFoundError",
  7186. "content": {
  7187. "application/json": {
  7188. "schema": {
  7189. "anyOf": [
  7190. {
  7191. "$ref": "#/components/schemas/SessionNotFoundError"
  7192. },
  7193. {
  7194. "$ref": "#/components/schemas/SessionNotFoundError"
  7195. }
  7196. ]
  7197. }
  7198. }
  7199. }
  7200. },
  7201. "409": {
  7202. "description": "ConflictError",
  7203. "content": {
  7204. "application/json": {
  7205. "schema": {
  7206. "$ref": "#/components/schemas/ConflictError"
  7207. }
  7208. }
  7209. }
  7210. }
  7211. },
  7212. "description": "Create a form for a session.",
  7213. "summary": "Create session form",
  7214. "requestBody": {
  7215. "content": {
  7216. "application/json": {
  7217. "schema": {
  7218. "$ref": "#/components/schemas/Form.CreatePayload"
  7219. }
  7220. }
  7221. },
  7222. "required": true
  7223. }
  7224. }
  7225. },
  7226. "/api/session/{sessionID}/form/{formID}": {
  7227. "get": {
  7228. "tags": ["form"],
  7229. "operationId": "v2.session.form.get",
  7230. "parameters": [
  7231. {
  7232. "name": "sessionID",
  7233. "in": "path",
  7234. "schema": {
  7235. "type": "string"
  7236. },
  7237. "required": true
  7238. },
  7239. {
  7240. "name": "formID",
  7241. "in": "path",
  7242. "schema": {
  7243. "type": "string",
  7244. "allOf": [
  7245. {
  7246. "pattern": "^frm_"
  7247. }
  7248. ]
  7249. },
  7250. "required": true
  7251. }
  7252. ],
  7253. "security": [],
  7254. "responses": {
  7255. "200": {
  7256. "description": "Success",
  7257. "content": {
  7258. "application/json": {
  7259. "schema": {
  7260. "type": "object",
  7261. "properties": {
  7262. "data": {
  7263. "$ref": "#/components/schemas/Form.Info"
  7264. }
  7265. },
  7266. "required": ["data"],
  7267. "additionalProperties": false
  7268. }
  7269. }
  7270. }
  7271. },
  7272. "400": {
  7273. "description": "InvalidRequestError",
  7274. "content": {
  7275. "application/json": {
  7276. "schema": {
  7277. "$ref": "#/components/schemas/InvalidRequestError"
  7278. }
  7279. }
  7280. }
  7281. },
  7282. "401": {
  7283. "description": "UnauthorizedError",
  7284. "content": {
  7285. "application/json": {
  7286. "schema": {
  7287. "$ref": "#/components/schemas/UnauthorizedError"
  7288. }
  7289. }
  7290. }
  7291. },
  7292. "404": {
  7293. "description": "SessionNotFoundError | FormNotFoundError",
  7294. "content": {
  7295. "application/json": {
  7296. "schema": {
  7297. "anyOf": [
  7298. {
  7299. "$ref": "#/components/schemas/FormNotFoundError"
  7300. },
  7301. {
  7302. "$ref": "#/components/schemas/SessionNotFoundError"
  7303. },
  7304. {
  7305. "$ref": "#/components/schemas/SessionNotFoundError"
  7306. }
  7307. ]
  7308. }
  7309. }
  7310. }
  7311. }
  7312. },
  7313. "description": "Retrieve a form for a session.",
  7314. "summary": "Get session form"
  7315. }
  7316. },
  7317. "/api/session/{sessionID}/form/{formID}/state": {
  7318. "get": {
  7319. "tags": ["form"],
  7320. "operationId": "v2.session.form.state",
  7321. "parameters": [
  7322. {
  7323. "name": "sessionID",
  7324. "in": "path",
  7325. "schema": {
  7326. "type": "string"
  7327. },
  7328. "required": true
  7329. },
  7330. {
  7331. "name": "formID",
  7332. "in": "path",
  7333. "schema": {
  7334. "type": "string",
  7335. "allOf": [
  7336. {
  7337. "pattern": "^frm_"
  7338. }
  7339. ]
  7340. },
  7341. "required": true
  7342. }
  7343. ],
  7344. "security": [],
  7345. "responses": {
  7346. "200": {
  7347. "description": "Success",
  7348. "content": {
  7349. "application/json": {
  7350. "schema": {
  7351. "type": "object",
  7352. "properties": {
  7353. "data": {
  7354. "$ref": "#/components/schemas/Form.State"
  7355. }
  7356. },
  7357. "required": ["data"],
  7358. "additionalProperties": false
  7359. }
  7360. }
  7361. }
  7362. },
  7363. "400": {
  7364. "description": "InvalidRequestError",
  7365. "content": {
  7366. "application/json": {
  7367. "schema": {
  7368. "$ref": "#/components/schemas/InvalidRequestError"
  7369. }
  7370. }
  7371. }
  7372. },
  7373. "401": {
  7374. "description": "UnauthorizedError",
  7375. "content": {
  7376. "application/json": {
  7377. "schema": {
  7378. "$ref": "#/components/schemas/UnauthorizedError"
  7379. }
  7380. }
  7381. }
  7382. },
  7383. "404": {
  7384. "description": "SessionNotFoundError | FormNotFoundError",
  7385. "content": {
  7386. "application/json": {
  7387. "schema": {
  7388. "anyOf": [
  7389. {
  7390. "$ref": "#/components/schemas/FormNotFoundError"
  7391. },
  7392. {
  7393. "$ref": "#/components/schemas/SessionNotFoundError"
  7394. },
  7395. {
  7396. "$ref": "#/components/schemas/SessionNotFoundError"
  7397. }
  7398. ]
  7399. }
  7400. }
  7401. }
  7402. }
  7403. },
  7404. "description": "Retrieve the current state for a form.",
  7405. "summary": "Get form state"
  7406. }
  7407. },
  7408. "/api/session/{sessionID}/form/{formID}/reply": {
  7409. "post": {
  7410. "tags": ["form"],
  7411. "operationId": "v2.session.form.reply",
  7412. "parameters": [
  7413. {
  7414. "name": "sessionID",
  7415. "in": "path",
  7416. "schema": {
  7417. "type": "string"
  7418. },
  7419. "required": true
  7420. },
  7421. {
  7422. "name": "formID",
  7423. "in": "path",
  7424. "schema": {
  7425. "type": "string",
  7426. "allOf": [
  7427. {
  7428. "pattern": "^frm_"
  7429. }
  7430. ]
  7431. },
  7432. "required": true
  7433. }
  7434. ],
  7435. "security": [],
  7436. "responses": {
  7437. "204": {
  7438. "description": "<No Content>"
  7439. },
  7440. "400": {
  7441. "description": "FormInvalidAnswerError | InvalidRequestError",
  7442. "content": {
  7443. "application/json": {
  7444. "schema": {
  7445. "anyOf": [
  7446. {
  7447. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7448. },
  7449. {
  7450. "$ref": "#/components/schemas/InvalidRequestError"
  7451. }
  7452. ]
  7453. }
  7454. }
  7455. }
  7456. },
  7457. "401": {
  7458. "description": "UnauthorizedError",
  7459. "content": {
  7460. "application/json": {
  7461. "schema": {
  7462. "$ref": "#/components/schemas/UnauthorizedError"
  7463. }
  7464. }
  7465. }
  7466. },
  7467. "404": {
  7468. "description": "SessionNotFoundError | FormNotFoundError",
  7469. "content": {
  7470. "application/json": {
  7471. "schema": {
  7472. "anyOf": [
  7473. {
  7474. "$ref": "#/components/schemas/FormNotFoundError"
  7475. },
  7476. {
  7477. "$ref": "#/components/schemas/SessionNotFoundError"
  7478. },
  7479. {
  7480. "$ref": "#/components/schemas/SessionNotFoundError"
  7481. }
  7482. ]
  7483. }
  7484. }
  7485. }
  7486. },
  7487. "409": {
  7488. "description": "FormAlreadySettledError",
  7489. "content": {
  7490. "application/json": {
  7491. "schema": {
  7492. "$ref": "#/components/schemas/FormAlreadySettledError"
  7493. }
  7494. }
  7495. }
  7496. }
  7497. },
  7498. "description": "Submit an answer to a pending form.",
  7499. "summary": "Reply to form",
  7500. "requestBody": {
  7501. "content": {
  7502. "application/json": {
  7503. "schema": {
  7504. "$ref": "#/components/schemas/Form.Reply"
  7505. }
  7506. }
  7507. },
  7508. "required": true
  7509. }
  7510. }
  7511. },
  7512. "/api/session/{sessionID}/form/{formID}/cancel": {
  7513. "post": {
  7514. "tags": ["form"],
  7515. "operationId": "v2.session.form.cancel",
  7516. "parameters": [
  7517. {
  7518. "name": "sessionID",
  7519. "in": "path",
  7520. "schema": {
  7521. "type": "string"
  7522. },
  7523. "required": true
  7524. },
  7525. {
  7526. "name": "formID",
  7527. "in": "path",
  7528. "schema": {
  7529. "type": "string",
  7530. "allOf": [
  7531. {
  7532. "pattern": "^frm_"
  7533. }
  7534. ]
  7535. },
  7536. "required": true
  7537. }
  7538. ],
  7539. "security": [],
  7540. "responses": {
  7541. "204": {
  7542. "description": "<No Content>"
  7543. },
  7544. "400": {
  7545. "description": "InvalidRequestError",
  7546. "content": {
  7547. "application/json": {
  7548. "schema": {
  7549. "$ref": "#/components/schemas/InvalidRequestError"
  7550. }
  7551. }
  7552. }
  7553. },
  7554. "401": {
  7555. "description": "UnauthorizedError",
  7556. "content": {
  7557. "application/json": {
  7558. "schema": {
  7559. "$ref": "#/components/schemas/UnauthorizedError"
  7560. }
  7561. }
  7562. }
  7563. },
  7564. "404": {
  7565. "description": "SessionNotFoundError | FormNotFoundError",
  7566. "content": {
  7567. "application/json": {
  7568. "schema": {
  7569. "anyOf": [
  7570. {
  7571. "$ref": "#/components/schemas/FormNotFoundError"
  7572. },
  7573. {
  7574. "$ref": "#/components/schemas/SessionNotFoundError"
  7575. },
  7576. {
  7577. "$ref": "#/components/schemas/SessionNotFoundError"
  7578. }
  7579. ]
  7580. }
  7581. }
  7582. }
  7583. },
  7584. "409": {
  7585. "description": "FormAlreadySettledError",
  7586. "content": {
  7587. "application/json": {
  7588. "schema": {
  7589. "$ref": "#/components/schemas/FormAlreadySettledError"
  7590. }
  7591. }
  7592. }
  7593. }
  7594. },
  7595. "description": "Cancel a pending form.",
  7596. "summary": "Cancel form"
  7597. }
  7598. },
  7599. "/api/permission/request": {
  7600. "get": {
  7601. "tags": ["permission"],
  7602. "operationId": "v2.permission.request.list",
  7603. "parameters": [
  7604. {
  7605. "name": "location",
  7606. "in": "query",
  7607. "schema": {
  7608. "anyOf": [
  7609. {
  7610. "type": "object",
  7611. "properties": {
  7612. "directory": {
  7613. "anyOf": [
  7614. {
  7615. "type": "string"
  7616. },
  7617. {
  7618. "type": "null"
  7619. }
  7620. ]
  7621. },
  7622. "workspace": {
  7623. "anyOf": [
  7624. {
  7625. "type": "string"
  7626. },
  7627. {
  7628. "type": "null"
  7629. }
  7630. ]
  7631. }
  7632. },
  7633. "additionalProperties": false
  7634. },
  7635. {
  7636. "type": "null"
  7637. }
  7638. ]
  7639. },
  7640. "required": false,
  7641. "style": "deepObject",
  7642. "explode": true
  7643. }
  7644. ],
  7645. "security": [],
  7646. "responses": {
  7647. "200": {
  7648. "description": "Success",
  7649. "content": {
  7650. "application/json": {
  7651. "schema": {
  7652. "type": "object",
  7653. "properties": {
  7654. "location": {
  7655. "$ref": "#/components/schemas/Location.Info"
  7656. },
  7657. "data": {
  7658. "type": "array",
  7659. "items": {
  7660. "$ref": "#/components/schemas/Permission.Request"
  7661. }
  7662. }
  7663. },
  7664. "required": ["location", "data"],
  7665. "additionalProperties": false
  7666. }
  7667. }
  7668. }
  7669. },
  7670. "400": {
  7671. "description": "InvalidRequestError",
  7672. "content": {
  7673. "application/json": {
  7674. "schema": {
  7675. "$ref": "#/components/schemas/InvalidRequestError"
  7676. }
  7677. }
  7678. }
  7679. },
  7680. "401": {
  7681. "description": "UnauthorizedError",
  7682. "content": {
  7683. "application/json": {
  7684. "schema": {
  7685. "$ref": "#/components/schemas/UnauthorizedError"
  7686. }
  7687. }
  7688. }
  7689. }
  7690. },
  7691. "description": "Retrieve pending permission requests for a location.",
  7692. "summary": "List pending permission requests"
  7693. }
  7694. },
  7695. "/api/permission/saved": {
  7696. "get": {
  7697. "tags": ["permission"],
  7698. "operationId": "v2.permission.saved.list",
  7699. "parameters": [
  7700. {
  7701. "name": "projectID",
  7702. "in": "query",
  7703. "schema": {
  7704. "anyOf": [
  7705. {
  7706. "type": "string"
  7707. },
  7708. {
  7709. "type": "null"
  7710. }
  7711. ]
  7712. },
  7713. "required": false
  7714. }
  7715. ],
  7716. "security": [],
  7717. "responses": {
  7718. "200": {
  7719. "description": "Success",
  7720. "content": {
  7721. "application/json": {
  7722. "schema": {
  7723. "type": "object",
  7724. "properties": {
  7725. "data": {
  7726. "type": "array",
  7727. "items": {
  7728. "$ref": "#/components/schemas/PermissionSaved.Info"
  7729. }
  7730. }
  7731. },
  7732. "required": ["data"],
  7733. "additionalProperties": false
  7734. }
  7735. }
  7736. }
  7737. },
  7738. "400": {
  7739. "description": "InvalidRequestError",
  7740. "content": {
  7741. "application/json": {
  7742. "schema": {
  7743. "$ref": "#/components/schemas/InvalidRequestError"
  7744. }
  7745. }
  7746. }
  7747. },
  7748. "401": {
  7749. "description": "UnauthorizedError",
  7750. "content": {
  7751. "application/json": {
  7752. "schema": {
  7753. "$ref": "#/components/schemas/UnauthorizedError"
  7754. }
  7755. }
  7756. }
  7757. }
  7758. },
  7759. "description": "Retrieve saved permissions, optionally filtered by project.",
  7760. "summary": "List saved permissions"
  7761. }
  7762. },
  7763. "/api/permission/saved/{id}": {
  7764. "delete": {
  7765. "tags": ["permission"],
  7766. "operationId": "v2.permission.saved.remove",
  7767. "parameters": [
  7768. {
  7769. "name": "id",
  7770. "in": "path",
  7771. "schema": {
  7772. "type": "string"
  7773. },
  7774. "required": true
  7775. }
  7776. ],
  7777. "security": [],
  7778. "responses": {
  7779. "204": {
  7780. "description": "<No Content>"
  7781. },
  7782. "400": {
  7783. "description": "InvalidRequestError",
  7784. "content": {
  7785. "application/json": {
  7786. "schema": {
  7787. "$ref": "#/components/schemas/InvalidRequestError"
  7788. }
  7789. }
  7790. }
  7791. },
  7792. "401": {
  7793. "description": "UnauthorizedError",
  7794. "content": {
  7795. "application/json": {
  7796. "schema": {
  7797. "$ref": "#/components/schemas/UnauthorizedError"
  7798. }
  7799. }
  7800. }
  7801. }
  7802. },
  7803. "description": "Remove a saved permission by ID.",
  7804. "summary": "Remove saved permission"
  7805. }
  7806. },
  7807. "/api/session/{sessionID}/permission": {
  7808. "post": {
  7809. "tags": ["permission"],
  7810. "operationId": "v2.session.permission.create",
  7811. "parameters": [
  7812. {
  7813. "name": "sessionID",
  7814. "in": "path",
  7815. "schema": {
  7816. "type": "string",
  7817. "allOf": [
  7818. {
  7819. "pattern": "^ses"
  7820. }
  7821. ]
  7822. },
  7823. "required": true
  7824. }
  7825. ],
  7826. "security": [],
  7827. "responses": {
  7828. "200": {
  7829. "description": "Success",
  7830. "content": {
  7831. "application/json": {
  7832. "schema": {
  7833. "type": "object",
  7834. "properties": {
  7835. "data": {
  7836. "type": "object",
  7837. "properties": {
  7838. "id": {
  7839. "type": "string",
  7840. "allOf": [
  7841. {
  7842. "pattern": "^per"
  7843. }
  7844. ]
  7845. },
  7846. "effect": {
  7847. "$ref": "#/components/schemas/Permission.Effect"
  7848. }
  7849. },
  7850. "required": ["id", "effect"],
  7851. "additionalProperties": false
  7852. }
  7853. },
  7854. "required": ["data"],
  7855. "additionalProperties": false
  7856. }
  7857. }
  7858. }
  7859. },
  7860. "400": {
  7861. "description": "InvalidRequestError",
  7862. "content": {
  7863. "application/json": {
  7864. "schema": {
  7865. "$ref": "#/components/schemas/InvalidRequestError"
  7866. }
  7867. }
  7868. }
  7869. },
  7870. "401": {
  7871. "description": "UnauthorizedError",
  7872. "content": {
  7873. "application/json": {
  7874. "schema": {
  7875. "$ref": "#/components/schemas/UnauthorizedError"
  7876. }
  7877. }
  7878. }
  7879. },
  7880. "404": {
  7881. "description": "SessionNotFoundError",
  7882. "content": {
  7883. "application/json": {
  7884. "schema": {
  7885. "anyOf": [
  7886. {
  7887. "$ref": "#/components/schemas/SessionNotFoundError"
  7888. },
  7889. {
  7890. "$ref": "#/components/schemas/SessionNotFoundError"
  7891. }
  7892. ]
  7893. }
  7894. }
  7895. }
  7896. }
  7897. },
  7898. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7899. "summary": "Create permission request",
  7900. "requestBody": {
  7901. "content": {
  7902. "application/json": {
  7903. "schema": {
  7904. "type": "object",
  7905. "properties": {
  7906. "id": {
  7907. "anyOf": [
  7908. {
  7909. "type": "string",
  7910. "allOf": [
  7911. {
  7912. "pattern": "^per"
  7913. }
  7914. ]
  7915. },
  7916. {
  7917. "type": "null"
  7918. }
  7919. ]
  7920. },
  7921. "action": {
  7922. "type": "string"
  7923. },
  7924. "resources": {
  7925. "type": "array",
  7926. "items": {
  7927. "type": "string"
  7928. }
  7929. },
  7930. "save": {
  7931. "type": "array",
  7932. "items": {
  7933. "type": "string"
  7934. }
  7935. },
  7936. "metadata": {
  7937. "type": "object"
  7938. },
  7939. "source": {
  7940. "$ref": "#/components/schemas/Permission.Source"
  7941. },
  7942. "agent": {
  7943. "anyOf": [
  7944. {
  7945. "type": "string"
  7946. },
  7947. {
  7948. "type": "null"
  7949. }
  7950. ]
  7951. }
  7952. },
  7953. "required": ["action", "resources"],
  7954. "additionalProperties": false
  7955. }
  7956. }
  7957. },
  7958. "required": true
  7959. }
  7960. },
  7961. "get": {
  7962. "tags": ["permission"],
  7963. "operationId": "v2.session.permission.list",
  7964. "parameters": [
  7965. {
  7966. "name": "sessionID",
  7967. "in": "path",
  7968. "schema": {
  7969. "type": "string",
  7970. "allOf": [
  7971. {
  7972. "pattern": "^ses"
  7973. }
  7974. ]
  7975. },
  7976. "required": true
  7977. }
  7978. ],
  7979. "security": [],
  7980. "responses": {
  7981. "200": {
  7982. "description": "Success",
  7983. "content": {
  7984. "application/json": {
  7985. "schema": {
  7986. "type": "object",
  7987. "properties": {
  7988. "data": {
  7989. "type": "array",
  7990. "items": {
  7991. "$ref": "#/components/schemas/Permission.Request"
  7992. }
  7993. }
  7994. },
  7995. "required": ["data"],
  7996. "additionalProperties": false
  7997. }
  7998. }
  7999. }
  8000. },
  8001. "400": {
  8002. "description": "InvalidRequestError",
  8003. "content": {
  8004. "application/json": {
  8005. "schema": {
  8006. "$ref": "#/components/schemas/InvalidRequestError"
  8007. }
  8008. }
  8009. }
  8010. },
  8011. "401": {
  8012. "description": "UnauthorizedError",
  8013. "content": {
  8014. "application/json": {
  8015. "schema": {
  8016. "$ref": "#/components/schemas/UnauthorizedError"
  8017. }
  8018. }
  8019. }
  8020. },
  8021. "404": {
  8022. "description": "SessionNotFoundError",
  8023. "content": {
  8024. "application/json": {
  8025. "schema": {
  8026. "anyOf": [
  8027. {
  8028. "$ref": "#/components/schemas/SessionNotFoundError"
  8029. },
  8030. {
  8031. "$ref": "#/components/schemas/SessionNotFoundError"
  8032. }
  8033. ]
  8034. }
  8035. }
  8036. }
  8037. }
  8038. },
  8039. "description": "Retrieve pending permission requests owned by a session.",
  8040. "summary": "List session permission requests"
  8041. }
  8042. },
  8043. "/api/session/{sessionID}/permission/{requestID}": {
  8044. "get": {
  8045. "tags": ["permission"],
  8046. "operationId": "v2.session.permission.get",
  8047. "parameters": [
  8048. {
  8049. "name": "sessionID",
  8050. "in": "path",
  8051. "schema": {
  8052. "type": "string",
  8053. "allOf": [
  8054. {
  8055. "pattern": "^ses"
  8056. }
  8057. ]
  8058. },
  8059. "required": true
  8060. },
  8061. {
  8062. "name": "requestID",
  8063. "in": "path",
  8064. "schema": {
  8065. "type": "string",
  8066. "allOf": [
  8067. {
  8068. "pattern": "^per"
  8069. }
  8070. ]
  8071. },
  8072. "required": true
  8073. }
  8074. ],
  8075. "security": [],
  8076. "responses": {
  8077. "200": {
  8078. "description": "Success",
  8079. "content": {
  8080. "application/json": {
  8081. "schema": {
  8082. "type": "object",
  8083. "properties": {
  8084. "data": {
  8085. "$ref": "#/components/schemas/Permission.Request"
  8086. }
  8087. },
  8088. "required": ["data"],
  8089. "additionalProperties": false
  8090. }
  8091. }
  8092. }
  8093. },
  8094. "400": {
  8095. "description": "InvalidRequestError",
  8096. "content": {
  8097. "application/json": {
  8098. "schema": {
  8099. "$ref": "#/components/schemas/InvalidRequestError"
  8100. }
  8101. }
  8102. }
  8103. },
  8104. "401": {
  8105. "description": "UnauthorizedError",
  8106. "content": {
  8107. "application/json": {
  8108. "schema": {
  8109. "$ref": "#/components/schemas/UnauthorizedError"
  8110. }
  8111. }
  8112. }
  8113. },
  8114. "404": {
  8115. "description": "SessionNotFoundError | PermissionNotFoundError",
  8116. "content": {
  8117. "application/json": {
  8118. "schema": {
  8119. "anyOf": [
  8120. {
  8121. "$ref": "#/components/schemas/PermissionNotFoundError"
  8122. },
  8123. {
  8124. "$ref": "#/components/schemas/SessionNotFoundError"
  8125. },
  8126. {
  8127. "$ref": "#/components/schemas/SessionNotFoundError"
  8128. }
  8129. ]
  8130. }
  8131. }
  8132. }
  8133. }
  8134. },
  8135. "description": "Retrieve a pending permission request owned by a session.",
  8136. "summary": "Get permission request"
  8137. }
  8138. },
  8139. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8140. "post": {
  8141. "tags": ["permission"],
  8142. "operationId": "v2.session.permission.reply",
  8143. "parameters": [
  8144. {
  8145. "name": "sessionID",
  8146. "in": "path",
  8147. "schema": {
  8148. "type": "string",
  8149. "allOf": [
  8150. {
  8151. "pattern": "^ses"
  8152. }
  8153. ]
  8154. },
  8155. "required": true
  8156. },
  8157. {
  8158. "name": "requestID",
  8159. "in": "path",
  8160. "schema": {
  8161. "type": "string",
  8162. "allOf": [
  8163. {
  8164. "pattern": "^per"
  8165. }
  8166. ]
  8167. },
  8168. "required": true
  8169. }
  8170. ],
  8171. "security": [],
  8172. "responses": {
  8173. "204": {
  8174. "description": "<No Content>"
  8175. },
  8176. "400": {
  8177. "description": "InvalidRequestError",
  8178. "content": {
  8179. "application/json": {
  8180. "schema": {
  8181. "$ref": "#/components/schemas/InvalidRequestError"
  8182. }
  8183. }
  8184. }
  8185. },
  8186. "401": {
  8187. "description": "UnauthorizedError",
  8188. "content": {
  8189. "application/json": {
  8190. "schema": {
  8191. "$ref": "#/components/schemas/UnauthorizedError"
  8192. }
  8193. }
  8194. }
  8195. },
  8196. "404": {
  8197. "description": "SessionNotFoundError | PermissionNotFoundError",
  8198. "content": {
  8199. "application/json": {
  8200. "schema": {
  8201. "anyOf": [
  8202. {
  8203. "$ref": "#/components/schemas/PermissionNotFoundError"
  8204. },
  8205. {
  8206. "$ref": "#/components/schemas/SessionNotFoundError"
  8207. },
  8208. {
  8209. "$ref": "#/components/schemas/SessionNotFoundError"
  8210. }
  8211. ]
  8212. }
  8213. }
  8214. }
  8215. }
  8216. },
  8217. "description": "Respond to a pending permission request owned by a session.",
  8218. "summary": "Reply to pending permission request",
  8219. "requestBody": {
  8220. "content": {
  8221. "application/json": {
  8222. "schema": {
  8223. "type": "object",
  8224. "properties": {
  8225. "reply": {
  8226. "$ref": "#/components/schemas/Permission.Reply"
  8227. },
  8228. "message": {
  8229. "anyOf": [
  8230. {
  8231. "type": "string"
  8232. },
  8233. {
  8234. "type": "null"
  8235. }
  8236. ]
  8237. }
  8238. },
  8239. "required": ["reply"],
  8240. "additionalProperties": false
  8241. }
  8242. }
  8243. },
  8244. "required": true
  8245. }
  8246. }
  8247. },
  8248. "/api/fs/read/*": {
  8249. "get": {
  8250. "tags": ["filesystem"],
  8251. "operationId": "v2.fs.read",
  8252. "parameters": [
  8253. {
  8254. "name": "location",
  8255. "in": "query",
  8256. "schema": {
  8257. "anyOf": [
  8258. {
  8259. "type": "object",
  8260. "properties": {
  8261. "directory": {
  8262. "anyOf": [
  8263. {
  8264. "type": "string"
  8265. },
  8266. {
  8267. "type": "null"
  8268. }
  8269. ]
  8270. },
  8271. "workspace": {
  8272. "anyOf": [
  8273. {
  8274. "type": "string"
  8275. },
  8276. {
  8277. "type": "null"
  8278. }
  8279. ]
  8280. }
  8281. },
  8282. "additionalProperties": false
  8283. },
  8284. {
  8285. "type": "null"
  8286. }
  8287. ]
  8288. },
  8289. "required": false,
  8290. "style": "deepObject",
  8291. "explode": true
  8292. }
  8293. ],
  8294. "security": [],
  8295. "responses": {
  8296. "200": {
  8297. "description": "Success",
  8298. "content": {
  8299. "application/octet-stream": {
  8300. "schema": {
  8301. "type": "string",
  8302. "format": "binary"
  8303. }
  8304. }
  8305. }
  8306. },
  8307. "400": {
  8308. "description": "InvalidRequestError",
  8309. "content": {
  8310. "application/json": {
  8311. "schema": {
  8312. "$ref": "#/components/schemas/InvalidRequestError"
  8313. }
  8314. }
  8315. }
  8316. },
  8317. "401": {
  8318. "description": "UnauthorizedError",
  8319. "content": {
  8320. "application/json": {
  8321. "schema": {
  8322. "$ref": "#/components/schemas/UnauthorizedError"
  8323. }
  8324. }
  8325. }
  8326. }
  8327. },
  8328. "description": "Serve one file relative to the requested location.",
  8329. "summary": "Read file"
  8330. }
  8331. },
  8332. "/api/fs/list": {
  8333. "get": {
  8334. "tags": ["filesystem"],
  8335. "operationId": "v2.fs.list",
  8336. "parameters": [
  8337. {
  8338. "name": "location",
  8339. "in": "query",
  8340. "schema": {
  8341. "anyOf": [
  8342. {
  8343. "type": "object",
  8344. "properties": {
  8345. "directory": {
  8346. "anyOf": [
  8347. {
  8348. "type": "string"
  8349. },
  8350. {
  8351. "type": "null"
  8352. }
  8353. ]
  8354. },
  8355. "workspace": {
  8356. "anyOf": [
  8357. {
  8358. "type": "string"
  8359. },
  8360. {
  8361. "type": "null"
  8362. }
  8363. ]
  8364. }
  8365. },
  8366. "additionalProperties": false
  8367. },
  8368. {
  8369. "type": "null"
  8370. }
  8371. ]
  8372. },
  8373. "required": false,
  8374. "style": "deepObject",
  8375. "explode": true
  8376. },
  8377. {
  8378. "name": "path",
  8379. "in": "query",
  8380. "schema": {
  8381. "anyOf": [
  8382. {
  8383. "type": "string"
  8384. },
  8385. {
  8386. "type": "null"
  8387. }
  8388. ]
  8389. },
  8390. "required": false
  8391. }
  8392. ],
  8393. "security": [],
  8394. "responses": {
  8395. "200": {
  8396. "description": "Success",
  8397. "content": {
  8398. "application/json": {
  8399. "schema": {
  8400. "type": "object",
  8401. "properties": {
  8402. "location": {
  8403. "$ref": "#/components/schemas/Location.Info"
  8404. },
  8405. "data": {
  8406. "type": "array",
  8407. "items": {
  8408. "$ref": "#/components/schemas/FileSystem.Entry"
  8409. }
  8410. }
  8411. },
  8412. "required": ["location", "data"],
  8413. "additionalProperties": false
  8414. }
  8415. }
  8416. }
  8417. },
  8418. "400": {
  8419. "description": "InvalidRequestError",
  8420. "content": {
  8421. "application/json": {
  8422. "schema": {
  8423. "$ref": "#/components/schemas/InvalidRequestError"
  8424. }
  8425. }
  8426. }
  8427. },
  8428. "401": {
  8429. "description": "UnauthorizedError",
  8430. "content": {
  8431. "application/json": {
  8432. "schema": {
  8433. "$ref": "#/components/schemas/UnauthorizedError"
  8434. }
  8435. }
  8436. }
  8437. }
  8438. },
  8439. "description": "List direct children of one directory relative to the requested location.",
  8440. "summary": "List directory"
  8441. }
  8442. },
  8443. "/api/fs/find": {
  8444. "get": {
  8445. "tags": ["filesystem"],
  8446. "operationId": "v2.fs.find",
  8447. "parameters": [
  8448. {
  8449. "name": "location",
  8450. "in": "query",
  8451. "schema": {
  8452. "anyOf": [
  8453. {
  8454. "type": "object",
  8455. "properties": {
  8456. "directory": {
  8457. "anyOf": [
  8458. {
  8459. "type": "string"
  8460. },
  8461. {
  8462. "type": "null"
  8463. }
  8464. ]
  8465. },
  8466. "workspace": {
  8467. "anyOf": [
  8468. {
  8469. "type": "string"
  8470. },
  8471. {
  8472. "type": "null"
  8473. }
  8474. ]
  8475. }
  8476. },
  8477. "additionalProperties": false
  8478. },
  8479. {
  8480. "type": "null"
  8481. }
  8482. ]
  8483. },
  8484. "required": false,
  8485. "style": "deepObject",
  8486. "explode": true
  8487. },
  8488. {
  8489. "name": "query",
  8490. "in": "query",
  8491. "schema": {
  8492. "type": "string"
  8493. },
  8494. "required": true
  8495. },
  8496. {
  8497. "name": "type",
  8498. "in": "query",
  8499. "schema": {
  8500. "type": "string",
  8501. "enum": ["file", "directory"]
  8502. },
  8503. "required": false
  8504. },
  8505. {
  8506. "name": "limit",
  8507. "in": "query",
  8508. "schema": {
  8509. "anyOf": [
  8510. {
  8511. "type": "string"
  8512. },
  8513. {
  8514. "type": "null"
  8515. }
  8516. ]
  8517. },
  8518. "required": false
  8519. }
  8520. ],
  8521. "security": [],
  8522. "responses": {
  8523. "200": {
  8524. "description": "Success",
  8525. "content": {
  8526. "application/json": {
  8527. "schema": {
  8528. "type": "object",
  8529. "properties": {
  8530. "location": {
  8531. "$ref": "#/components/schemas/Location.Info"
  8532. },
  8533. "data": {
  8534. "type": "array",
  8535. "items": {
  8536. "$ref": "#/components/schemas/FileSystem.Entry"
  8537. }
  8538. }
  8539. },
  8540. "required": ["location", "data"],
  8541. "additionalProperties": false
  8542. }
  8543. }
  8544. }
  8545. },
  8546. "400": {
  8547. "description": "InvalidRequestError",
  8548. "content": {
  8549. "application/json": {
  8550. "schema": {
  8551. "$ref": "#/components/schemas/InvalidRequestError"
  8552. }
  8553. }
  8554. }
  8555. },
  8556. "401": {
  8557. "description": "UnauthorizedError",
  8558. "content": {
  8559. "application/json": {
  8560. "schema": {
  8561. "$ref": "#/components/schemas/UnauthorizedError"
  8562. }
  8563. }
  8564. }
  8565. }
  8566. },
  8567. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8568. "summary": "Find files"
  8569. }
  8570. },
  8571. "/api/command": {
  8572. "get": {
  8573. "tags": ["command"],
  8574. "operationId": "v2.command.list",
  8575. "parameters": [
  8576. {
  8577. "name": "location",
  8578. "in": "query",
  8579. "schema": {
  8580. "anyOf": [
  8581. {
  8582. "type": "object",
  8583. "properties": {
  8584. "directory": {
  8585. "anyOf": [
  8586. {
  8587. "type": "string"
  8588. },
  8589. {
  8590. "type": "null"
  8591. }
  8592. ]
  8593. },
  8594. "workspace": {
  8595. "anyOf": [
  8596. {
  8597. "type": "string"
  8598. },
  8599. {
  8600. "type": "null"
  8601. }
  8602. ]
  8603. }
  8604. },
  8605. "additionalProperties": false
  8606. },
  8607. {
  8608. "type": "null"
  8609. }
  8610. ]
  8611. },
  8612. "required": false,
  8613. "style": "deepObject",
  8614. "explode": true
  8615. }
  8616. ],
  8617. "security": [],
  8618. "responses": {
  8619. "200": {
  8620. "description": "Success",
  8621. "content": {
  8622. "application/json": {
  8623. "schema": {
  8624. "type": "object",
  8625. "properties": {
  8626. "location": {
  8627. "$ref": "#/components/schemas/Location.Info"
  8628. },
  8629. "data": {
  8630. "type": "array",
  8631. "items": {
  8632. "$ref": "#/components/schemas/Command.Info"
  8633. }
  8634. }
  8635. },
  8636. "required": ["location", "data"],
  8637. "additionalProperties": false
  8638. }
  8639. }
  8640. }
  8641. },
  8642. "400": {
  8643. "description": "InvalidRequestError",
  8644. "content": {
  8645. "application/json": {
  8646. "schema": {
  8647. "$ref": "#/components/schemas/InvalidRequestError"
  8648. }
  8649. }
  8650. }
  8651. },
  8652. "401": {
  8653. "description": "UnauthorizedError",
  8654. "content": {
  8655. "application/json": {
  8656. "schema": {
  8657. "$ref": "#/components/schemas/UnauthorizedError"
  8658. }
  8659. }
  8660. }
  8661. }
  8662. },
  8663. "description": "Retrieve currently registered commands.",
  8664. "summary": "List commands"
  8665. }
  8666. },
  8667. "/api/skill": {
  8668. "get": {
  8669. "tags": ["skill"],
  8670. "operationId": "v2.skill.list",
  8671. "parameters": [
  8672. {
  8673. "name": "location",
  8674. "in": "query",
  8675. "schema": {
  8676. "anyOf": [
  8677. {
  8678. "type": "object",
  8679. "properties": {
  8680. "directory": {
  8681. "anyOf": [
  8682. {
  8683. "type": "string"
  8684. },
  8685. {
  8686. "type": "null"
  8687. }
  8688. ]
  8689. },
  8690. "workspace": {
  8691. "anyOf": [
  8692. {
  8693. "type": "string"
  8694. },
  8695. {
  8696. "type": "null"
  8697. }
  8698. ]
  8699. }
  8700. },
  8701. "additionalProperties": false
  8702. },
  8703. {
  8704. "type": "null"
  8705. }
  8706. ]
  8707. },
  8708. "required": false,
  8709. "style": "deepObject",
  8710. "explode": true
  8711. }
  8712. ],
  8713. "security": [],
  8714. "responses": {
  8715. "200": {
  8716. "description": "Success",
  8717. "content": {
  8718. "application/json": {
  8719. "schema": {
  8720. "type": "object",
  8721. "properties": {
  8722. "location": {
  8723. "$ref": "#/components/schemas/Location.Info"
  8724. },
  8725. "data": {
  8726. "type": "array",
  8727. "items": {
  8728. "$ref": "#/components/schemas/Skill.Info"
  8729. }
  8730. }
  8731. },
  8732. "required": ["location", "data"],
  8733. "additionalProperties": false
  8734. }
  8735. }
  8736. }
  8737. },
  8738. "400": {
  8739. "description": "InvalidRequestError",
  8740. "content": {
  8741. "application/json": {
  8742. "schema": {
  8743. "$ref": "#/components/schemas/InvalidRequestError"
  8744. }
  8745. }
  8746. }
  8747. },
  8748. "401": {
  8749. "description": "UnauthorizedError",
  8750. "content": {
  8751. "application/json": {
  8752. "schema": {
  8753. "$ref": "#/components/schemas/UnauthorizedError"
  8754. }
  8755. }
  8756. }
  8757. }
  8758. },
  8759. "description": "Retrieve currently registered skills.",
  8760. "summary": "List skills"
  8761. }
  8762. },
  8763. "/api/event": {
  8764. "get": {
  8765. "tags": ["event"],
  8766. "operationId": "v2.event.subscribe",
  8767. "parameters": [],
  8768. "security": [],
  8769. "responses": {
  8770. "200": {
  8771. "description": "Success",
  8772. "content": {
  8773. "text/event-stream": {
  8774. "schema": {
  8775. "type": "object",
  8776. "properties": {
  8777. "id": {
  8778. "anyOf": [
  8779. {
  8780. "type": "string"
  8781. },
  8782. {
  8783. "type": "null"
  8784. }
  8785. ]
  8786. },
  8787. "event": {
  8788. "type": "string"
  8789. },
  8790. "data": {
  8791. "$ref": "#/components/schemas/V2EventJsonString"
  8792. }
  8793. },
  8794. "required": ["id", "event", "data"],
  8795. "additionalProperties": false
  8796. },
  8797. "x-effect-stream": {
  8798. "encoding": "sse",
  8799. "causeSchema": {
  8800. "type": "array",
  8801. "items": {
  8802. "anyOf": [
  8803. {
  8804. "type": "object",
  8805. "properties": {
  8806. "_tag": {
  8807. "type": "string",
  8808. "enum": ["Fail"]
  8809. },
  8810. "error": {
  8811. "not": {}
  8812. }
  8813. },
  8814. "required": ["_tag", "error"],
  8815. "additionalProperties": false
  8816. },
  8817. {
  8818. "type": "object",
  8819. "properties": {
  8820. "_tag": {
  8821. "type": "string",
  8822. "enum": ["Die"]
  8823. },
  8824. "defect": {}
  8825. },
  8826. "required": ["_tag", "defect"],
  8827. "additionalProperties": false
  8828. },
  8829. {
  8830. "type": "object",
  8831. "properties": {
  8832. "_tag": {
  8833. "type": "string",
  8834. "enum": ["Interrupt"]
  8835. },
  8836. "fiberId": {
  8837. "anyOf": [
  8838. {
  8839. "type": "number"
  8840. },
  8841. {
  8842. "type": "null"
  8843. }
  8844. ]
  8845. }
  8846. },
  8847. "required": ["_tag", "fiberId"],
  8848. "additionalProperties": false
  8849. }
  8850. ]
  8851. }
  8852. },
  8853. "errorSchema": {
  8854. "not": {}
  8855. },
  8856. "failureEvent": "effect/httpapi/stream/failure"
  8857. }
  8858. }
  8859. }
  8860. },
  8861. "400": {
  8862. "description": "InvalidRequestError",
  8863. "content": {
  8864. "application/json": {
  8865. "schema": {
  8866. "$ref": "#/components/schemas/InvalidRequestError"
  8867. }
  8868. }
  8869. }
  8870. },
  8871. "401": {
  8872. "description": "UnauthorizedError",
  8873. "content": {
  8874. "application/json": {
  8875. "schema": {
  8876. "$ref": "#/components/schemas/UnauthorizedError"
  8877. }
  8878. }
  8879. }
  8880. }
  8881. },
  8882. "description": "Subscribe to native event payloads for the server. Volatile by contract: a slow consumer overflows and fails the stream, and events during disconnection are missed.",
  8883. "summary": "Subscribe to events"
  8884. }
  8885. },
  8886. "/api/pty": {
  8887. "get": {
  8888. "tags": ["pty"],
  8889. "operationId": "v2.pty.list",
  8890. "parameters": [
  8891. {
  8892. "name": "location",
  8893. "in": "query",
  8894. "schema": {
  8895. "anyOf": [
  8896. {
  8897. "type": "object",
  8898. "properties": {
  8899. "directory": {
  8900. "anyOf": [
  8901. {
  8902. "type": "string"
  8903. },
  8904. {
  8905. "type": "null"
  8906. }
  8907. ]
  8908. },
  8909. "workspace": {
  8910. "anyOf": [
  8911. {
  8912. "type": "string"
  8913. },
  8914. {
  8915. "type": "null"
  8916. }
  8917. ]
  8918. }
  8919. },
  8920. "additionalProperties": false
  8921. },
  8922. {
  8923. "type": "null"
  8924. }
  8925. ]
  8926. },
  8927. "required": false,
  8928. "style": "deepObject",
  8929. "explode": true
  8930. }
  8931. ],
  8932. "security": [],
  8933. "responses": {
  8934. "200": {
  8935. "description": "Success",
  8936. "content": {
  8937. "application/json": {
  8938. "schema": {
  8939. "type": "object",
  8940. "properties": {
  8941. "location": {
  8942. "$ref": "#/components/schemas/Location.Info"
  8943. },
  8944. "data": {
  8945. "type": "array",
  8946. "items": {
  8947. "$ref": "#/components/schemas/Pty"
  8948. }
  8949. }
  8950. },
  8951. "required": ["location", "data"],
  8952. "additionalProperties": false
  8953. }
  8954. }
  8955. }
  8956. },
  8957. "400": {
  8958. "description": "InvalidRequestError",
  8959. "content": {
  8960. "application/json": {
  8961. "schema": {
  8962. "$ref": "#/components/schemas/InvalidRequestError"
  8963. }
  8964. }
  8965. }
  8966. },
  8967. "401": {
  8968. "description": "UnauthorizedError",
  8969. "content": {
  8970. "application/json": {
  8971. "schema": {
  8972. "$ref": "#/components/schemas/UnauthorizedError"
  8973. }
  8974. }
  8975. }
  8976. }
  8977. },
  8978. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  8979. "summary": "List PTY sessions"
  8980. },
  8981. "post": {
  8982. "tags": ["pty"],
  8983. "operationId": "v2.pty.create",
  8984. "parameters": [
  8985. {
  8986. "name": "location",
  8987. "in": "query",
  8988. "schema": {
  8989. "anyOf": [
  8990. {
  8991. "type": "object",
  8992. "properties": {
  8993. "directory": {
  8994. "anyOf": [
  8995. {
  8996. "type": "string"
  8997. },
  8998. {
  8999. "type": "null"
  9000. }
  9001. ]
  9002. },
  9003. "workspace": {
  9004. "anyOf": [
  9005. {
  9006. "type": "string"
  9007. },
  9008. {
  9009. "type": "null"
  9010. }
  9011. ]
  9012. }
  9013. },
  9014. "additionalProperties": false
  9015. },
  9016. {
  9017. "type": "null"
  9018. }
  9019. ]
  9020. },
  9021. "required": false,
  9022. "style": "deepObject",
  9023. "explode": true
  9024. }
  9025. ],
  9026. "security": [],
  9027. "responses": {
  9028. "200": {
  9029. "description": "Success",
  9030. "content": {
  9031. "application/json": {
  9032. "schema": {
  9033. "type": "object",
  9034. "properties": {
  9035. "location": {
  9036. "$ref": "#/components/schemas/Location.Info"
  9037. },
  9038. "data": {
  9039. "$ref": "#/components/schemas/Pty"
  9040. }
  9041. },
  9042. "required": ["location", "data"],
  9043. "additionalProperties": false
  9044. }
  9045. }
  9046. }
  9047. },
  9048. "400": {
  9049. "description": "InvalidRequestError",
  9050. "content": {
  9051. "application/json": {
  9052. "schema": {
  9053. "$ref": "#/components/schemas/InvalidRequestError"
  9054. }
  9055. }
  9056. }
  9057. },
  9058. "401": {
  9059. "description": "UnauthorizedError",
  9060. "content": {
  9061. "application/json": {
  9062. "schema": {
  9063. "$ref": "#/components/schemas/UnauthorizedError"
  9064. }
  9065. }
  9066. }
  9067. }
  9068. },
  9069. "description": "Create a pseudo-terminal session for a location.",
  9070. "summary": "Create PTY session",
  9071. "requestBody": {
  9072. "content": {
  9073. "application/json": {
  9074. "schema": {
  9075. "type": "object",
  9076. "properties": {
  9077. "command": {
  9078. "type": "string"
  9079. },
  9080. "args": {
  9081. "type": "array",
  9082. "items": {
  9083. "type": "string"
  9084. }
  9085. },
  9086. "cwd": {
  9087. "type": "string"
  9088. },
  9089. "title": {
  9090. "type": "string"
  9091. },
  9092. "env": {
  9093. "type": "object",
  9094. "additionalProperties": {
  9095. "type": "string"
  9096. }
  9097. }
  9098. },
  9099. "additionalProperties": false
  9100. }
  9101. }
  9102. },
  9103. "required": true
  9104. }
  9105. }
  9106. },
  9107. "/api/pty/{ptyID}": {
  9108. "get": {
  9109. "tags": ["pty"],
  9110. "operationId": "v2.pty.get",
  9111. "parameters": [
  9112. {
  9113. "name": "ptyID",
  9114. "in": "path",
  9115. "schema": {
  9116. "type": "string",
  9117. "allOf": [
  9118. {
  9119. "pattern": "^pty"
  9120. }
  9121. ]
  9122. },
  9123. "required": true
  9124. },
  9125. {
  9126. "name": "location",
  9127. "in": "query",
  9128. "schema": {
  9129. "anyOf": [
  9130. {
  9131. "type": "object",
  9132. "properties": {
  9133. "directory": {
  9134. "anyOf": [
  9135. {
  9136. "type": "string"
  9137. },
  9138. {
  9139. "type": "null"
  9140. }
  9141. ]
  9142. },
  9143. "workspace": {
  9144. "anyOf": [
  9145. {
  9146. "type": "string"
  9147. },
  9148. {
  9149. "type": "null"
  9150. }
  9151. ]
  9152. }
  9153. },
  9154. "additionalProperties": false
  9155. },
  9156. {
  9157. "type": "null"
  9158. }
  9159. ]
  9160. },
  9161. "required": false,
  9162. "style": "deepObject",
  9163. "explode": true
  9164. }
  9165. ],
  9166. "security": [],
  9167. "responses": {
  9168. "200": {
  9169. "description": "Success",
  9170. "content": {
  9171. "application/json": {
  9172. "schema": {
  9173. "type": "object",
  9174. "properties": {
  9175. "location": {
  9176. "$ref": "#/components/schemas/Location.Info"
  9177. },
  9178. "data": {
  9179. "$ref": "#/components/schemas/Pty"
  9180. }
  9181. },
  9182. "required": ["location", "data"],
  9183. "additionalProperties": false
  9184. }
  9185. }
  9186. }
  9187. },
  9188. "400": {
  9189. "description": "InvalidRequestError",
  9190. "content": {
  9191. "application/json": {
  9192. "schema": {
  9193. "$ref": "#/components/schemas/InvalidRequestError"
  9194. }
  9195. }
  9196. }
  9197. },
  9198. "401": {
  9199. "description": "UnauthorizedError",
  9200. "content": {
  9201. "application/json": {
  9202. "schema": {
  9203. "$ref": "#/components/schemas/UnauthorizedError"
  9204. }
  9205. }
  9206. }
  9207. },
  9208. "404": {
  9209. "description": "PtyNotFoundError",
  9210. "content": {
  9211. "application/json": {
  9212. "schema": {
  9213. "$ref": "#/components/schemas/PtyNotFoundError"
  9214. }
  9215. }
  9216. }
  9217. }
  9218. },
  9219. "description": "Get one PTY session, including its exit code once exited.",
  9220. "summary": "Get PTY session"
  9221. },
  9222. "put": {
  9223. "tags": ["pty"],
  9224. "operationId": "v2.pty.update",
  9225. "parameters": [
  9226. {
  9227. "name": "ptyID",
  9228. "in": "path",
  9229. "schema": {
  9230. "type": "string",
  9231. "allOf": [
  9232. {
  9233. "pattern": "^pty"
  9234. }
  9235. ]
  9236. },
  9237. "required": true
  9238. },
  9239. {
  9240. "name": "location",
  9241. "in": "query",
  9242. "schema": {
  9243. "anyOf": [
  9244. {
  9245. "type": "object",
  9246. "properties": {
  9247. "directory": {
  9248. "anyOf": [
  9249. {
  9250. "type": "string"
  9251. },
  9252. {
  9253. "type": "null"
  9254. }
  9255. ]
  9256. },
  9257. "workspace": {
  9258. "anyOf": [
  9259. {
  9260. "type": "string"
  9261. },
  9262. {
  9263. "type": "null"
  9264. }
  9265. ]
  9266. }
  9267. },
  9268. "additionalProperties": false
  9269. },
  9270. {
  9271. "type": "null"
  9272. }
  9273. ]
  9274. },
  9275. "required": false,
  9276. "style": "deepObject",
  9277. "explode": true
  9278. }
  9279. ],
  9280. "security": [],
  9281. "responses": {
  9282. "200": {
  9283. "description": "Success",
  9284. "content": {
  9285. "application/json": {
  9286. "schema": {
  9287. "type": "object",
  9288. "properties": {
  9289. "location": {
  9290. "$ref": "#/components/schemas/Location.Info"
  9291. },
  9292. "data": {
  9293. "$ref": "#/components/schemas/Pty"
  9294. }
  9295. },
  9296. "required": ["location", "data"],
  9297. "additionalProperties": false
  9298. }
  9299. }
  9300. }
  9301. },
  9302. "400": {
  9303. "description": "InvalidRequestError",
  9304. "content": {
  9305. "application/json": {
  9306. "schema": {
  9307. "$ref": "#/components/schemas/InvalidRequestError"
  9308. }
  9309. }
  9310. }
  9311. },
  9312. "401": {
  9313. "description": "UnauthorizedError",
  9314. "content": {
  9315. "application/json": {
  9316. "schema": {
  9317. "$ref": "#/components/schemas/UnauthorizedError"
  9318. }
  9319. }
  9320. }
  9321. },
  9322. "404": {
  9323. "description": "PtyNotFoundError",
  9324. "content": {
  9325. "application/json": {
  9326. "schema": {
  9327. "$ref": "#/components/schemas/PtyNotFoundError"
  9328. }
  9329. }
  9330. }
  9331. }
  9332. },
  9333. "description": "Update the title or viewport size of one PTY session.",
  9334. "summary": "Update PTY session",
  9335. "requestBody": {
  9336. "content": {
  9337. "application/json": {
  9338. "schema": {
  9339. "type": "object",
  9340. "properties": {
  9341. "title": {
  9342. "type": "string"
  9343. },
  9344. "size": {
  9345. "type": "object",
  9346. "properties": {
  9347. "rows": {
  9348. "type": "integer",
  9349. "allOf": [
  9350. {
  9351. "exclusiveMinimum": 0
  9352. }
  9353. ]
  9354. },
  9355. "cols": {
  9356. "type": "integer",
  9357. "allOf": [
  9358. {
  9359. "exclusiveMinimum": 0
  9360. }
  9361. ]
  9362. }
  9363. },
  9364. "required": ["rows", "cols"],
  9365. "additionalProperties": false
  9366. }
  9367. },
  9368. "additionalProperties": false
  9369. }
  9370. }
  9371. },
  9372. "required": true
  9373. }
  9374. },
  9375. "delete": {
  9376. "tags": ["pty"],
  9377. "operationId": "v2.pty.remove",
  9378. "parameters": [
  9379. {
  9380. "name": "ptyID",
  9381. "in": "path",
  9382. "schema": {
  9383. "type": "string",
  9384. "allOf": [
  9385. {
  9386. "pattern": "^pty"
  9387. }
  9388. ]
  9389. },
  9390. "required": true
  9391. },
  9392. {
  9393. "name": "location",
  9394. "in": "query",
  9395. "schema": {
  9396. "anyOf": [
  9397. {
  9398. "type": "object",
  9399. "properties": {
  9400. "directory": {
  9401. "anyOf": [
  9402. {
  9403. "type": "string"
  9404. },
  9405. {
  9406. "type": "null"
  9407. }
  9408. ]
  9409. },
  9410. "workspace": {
  9411. "anyOf": [
  9412. {
  9413. "type": "string"
  9414. },
  9415. {
  9416. "type": "null"
  9417. }
  9418. ]
  9419. }
  9420. },
  9421. "additionalProperties": false
  9422. },
  9423. {
  9424. "type": "null"
  9425. }
  9426. ]
  9427. },
  9428. "required": false,
  9429. "style": "deepObject",
  9430. "explode": true
  9431. }
  9432. ],
  9433. "security": [],
  9434. "responses": {
  9435. "204": {
  9436. "description": "<No Content>"
  9437. },
  9438. "400": {
  9439. "description": "InvalidRequestError",
  9440. "content": {
  9441. "application/json": {
  9442. "schema": {
  9443. "$ref": "#/components/schemas/InvalidRequestError"
  9444. }
  9445. }
  9446. }
  9447. },
  9448. "401": {
  9449. "description": "UnauthorizedError",
  9450. "content": {
  9451. "application/json": {
  9452. "schema": {
  9453. "$ref": "#/components/schemas/UnauthorizedError"
  9454. }
  9455. }
  9456. }
  9457. },
  9458. "404": {
  9459. "description": "PtyNotFoundError",
  9460. "content": {
  9461. "application/json": {
  9462. "schema": {
  9463. "$ref": "#/components/schemas/PtyNotFoundError"
  9464. }
  9465. }
  9466. }
  9467. }
  9468. },
  9469. "description": "Terminate and remove one PTY session.",
  9470. "summary": "Remove PTY session"
  9471. }
  9472. },
  9473. "/api/pty/{ptyID}/connect-token": {
  9474. "post": {
  9475. "tags": ["pty"],
  9476. "operationId": "v2.pty.connect.token",
  9477. "parameters": [
  9478. {
  9479. "name": "ptyID",
  9480. "in": "path",
  9481. "schema": {
  9482. "type": "string",
  9483. "allOf": [
  9484. {
  9485. "pattern": "^pty"
  9486. }
  9487. ]
  9488. },
  9489. "required": true
  9490. },
  9491. {
  9492. "name": "location",
  9493. "in": "query",
  9494. "schema": {
  9495. "anyOf": [
  9496. {
  9497. "type": "object",
  9498. "properties": {
  9499. "directory": {
  9500. "anyOf": [
  9501. {
  9502. "type": "string"
  9503. },
  9504. {
  9505. "type": "null"
  9506. }
  9507. ]
  9508. },
  9509. "workspace": {
  9510. "anyOf": [
  9511. {
  9512. "type": "string"
  9513. },
  9514. {
  9515. "type": "null"
  9516. }
  9517. ]
  9518. }
  9519. },
  9520. "additionalProperties": false
  9521. },
  9522. {
  9523. "type": "null"
  9524. }
  9525. ]
  9526. },
  9527. "required": false,
  9528. "style": "deepObject",
  9529. "explode": true
  9530. }
  9531. ],
  9532. "security": [],
  9533. "responses": {
  9534. "200": {
  9535. "description": "Success",
  9536. "content": {
  9537. "application/json": {
  9538. "schema": {
  9539. "type": "object",
  9540. "properties": {
  9541. "location": {
  9542. "$ref": "#/components/schemas/Location.Info"
  9543. },
  9544. "data": {
  9545. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9546. }
  9547. },
  9548. "required": ["location", "data"],
  9549. "additionalProperties": false
  9550. }
  9551. }
  9552. }
  9553. },
  9554. "400": {
  9555. "description": "InvalidRequestError",
  9556. "content": {
  9557. "application/json": {
  9558. "schema": {
  9559. "$ref": "#/components/schemas/InvalidRequestError"
  9560. }
  9561. }
  9562. }
  9563. },
  9564. "401": {
  9565. "description": "UnauthorizedError",
  9566. "content": {
  9567. "application/json": {
  9568. "schema": {
  9569. "$ref": "#/components/schemas/UnauthorizedError"
  9570. }
  9571. }
  9572. }
  9573. },
  9574. "403": {
  9575. "description": "ForbiddenError",
  9576. "content": {
  9577. "application/json": {
  9578. "schema": {
  9579. "$ref": "#/components/schemas/ForbiddenError"
  9580. }
  9581. }
  9582. }
  9583. },
  9584. "404": {
  9585. "description": "PtyNotFoundError",
  9586. "content": {
  9587. "application/json": {
  9588. "schema": {
  9589. "$ref": "#/components/schemas/PtyNotFoundError"
  9590. }
  9591. }
  9592. }
  9593. }
  9594. },
  9595. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9596. "summary": "Create PTY WebSocket token"
  9597. }
  9598. },
  9599. "/api/pty/{ptyID}/connect": {
  9600. "get": {
  9601. "tags": ["pty"],
  9602. "operationId": "v2.pty.connect",
  9603. "parameters": [
  9604. {
  9605. "name": "ptyID",
  9606. "in": "path",
  9607. "schema": {
  9608. "type": "string",
  9609. "allOf": [
  9610. {
  9611. "pattern": "^pty"
  9612. }
  9613. ]
  9614. },
  9615. "required": true
  9616. },
  9617. {
  9618. "in": "query",
  9619. "name": "location[directory]",
  9620. "schema": {
  9621. "type": "string"
  9622. }
  9623. },
  9624. {
  9625. "in": "query",
  9626. "name": "location[workspace]",
  9627. "schema": {
  9628. "type": "string"
  9629. }
  9630. },
  9631. {
  9632. "in": "query",
  9633. "name": "cursor",
  9634. "schema": {
  9635. "type": "string"
  9636. }
  9637. },
  9638. {
  9639. "in": "query",
  9640. "name": "ticket",
  9641. "schema": {
  9642. "type": "string"
  9643. }
  9644. }
  9645. ],
  9646. "security": [],
  9647. "responses": {
  9648. "200": {
  9649. "description": "Success",
  9650. "content": {
  9651. "application/json": {
  9652. "schema": {
  9653. "type": "boolean"
  9654. }
  9655. }
  9656. }
  9657. },
  9658. "400": {
  9659. "description": "InvalidRequestError",
  9660. "content": {
  9661. "application/json": {
  9662. "schema": {
  9663. "$ref": "#/components/schemas/InvalidRequestError"
  9664. }
  9665. }
  9666. }
  9667. },
  9668. "401": {
  9669. "description": "UnauthorizedError",
  9670. "content": {
  9671. "application/json": {
  9672. "schema": {
  9673. "$ref": "#/components/schemas/UnauthorizedError"
  9674. }
  9675. }
  9676. }
  9677. },
  9678. "403": {
  9679. "description": "ForbiddenError",
  9680. "content": {
  9681. "application/json": {
  9682. "schema": {
  9683. "$ref": "#/components/schemas/ForbiddenError"
  9684. }
  9685. }
  9686. }
  9687. },
  9688. "404": {
  9689. "description": "PtyNotFoundError",
  9690. "content": {
  9691. "application/json": {
  9692. "schema": {
  9693. "$ref": "#/components/schemas/PtyNotFoundError"
  9694. }
  9695. }
  9696. }
  9697. }
  9698. },
  9699. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9700. "summary": "Connect to PTY session",
  9701. "x-websocket": true
  9702. }
  9703. },
  9704. "/api/shell": {
  9705. "get": {
  9706. "tags": ["shell"],
  9707. "operationId": "v2.shell.list",
  9708. "parameters": [
  9709. {
  9710. "name": "location",
  9711. "in": "query",
  9712. "schema": {
  9713. "anyOf": [
  9714. {
  9715. "type": "object",
  9716. "properties": {
  9717. "directory": {
  9718. "anyOf": [
  9719. {
  9720. "type": "string"
  9721. },
  9722. {
  9723. "type": "null"
  9724. }
  9725. ]
  9726. },
  9727. "workspace": {
  9728. "anyOf": [
  9729. {
  9730. "type": "string"
  9731. },
  9732. {
  9733. "type": "null"
  9734. }
  9735. ]
  9736. }
  9737. },
  9738. "additionalProperties": false
  9739. },
  9740. {
  9741. "type": "null"
  9742. }
  9743. ]
  9744. },
  9745. "required": false,
  9746. "style": "deepObject",
  9747. "explode": true
  9748. }
  9749. ],
  9750. "security": [],
  9751. "responses": {
  9752. "200": {
  9753. "description": "Success",
  9754. "content": {
  9755. "application/json": {
  9756. "schema": {
  9757. "type": "object",
  9758. "properties": {
  9759. "location": {
  9760. "$ref": "#/components/schemas/Location.Info"
  9761. },
  9762. "data": {
  9763. "type": "array",
  9764. "items": {
  9765. "$ref": "#/components/schemas/Shell.Info1"
  9766. }
  9767. }
  9768. },
  9769. "required": ["location", "data"],
  9770. "additionalProperties": false
  9771. }
  9772. }
  9773. }
  9774. },
  9775. "400": {
  9776. "description": "InvalidRequestError",
  9777. "content": {
  9778. "application/json": {
  9779. "schema": {
  9780. "$ref": "#/components/schemas/InvalidRequestError"
  9781. }
  9782. }
  9783. }
  9784. },
  9785. "401": {
  9786. "description": "UnauthorizedError",
  9787. "content": {
  9788. "application/json": {
  9789. "schema": {
  9790. "$ref": "#/components/schemas/UnauthorizedError"
  9791. }
  9792. }
  9793. }
  9794. }
  9795. },
  9796. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9797. "summary": "List running shell commands"
  9798. },
  9799. "post": {
  9800. "tags": ["shell"],
  9801. "operationId": "v2.shell.create",
  9802. "parameters": [
  9803. {
  9804. "name": "location",
  9805. "in": "query",
  9806. "schema": {
  9807. "anyOf": [
  9808. {
  9809. "type": "object",
  9810. "properties": {
  9811. "directory": {
  9812. "anyOf": [
  9813. {
  9814. "type": "string"
  9815. },
  9816. {
  9817. "type": "null"
  9818. }
  9819. ]
  9820. },
  9821. "workspace": {
  9822. "anyOf": [
  9823. {
  9824. "type": "string"
  9825. },
  9826. {
  9827. "type": "null"
  9828. }
  9829. ]
  9830. }
  9831. },
  9832. "additionalProperties": false
  9833. },
  9834. {
  9835. "type": "null"
  9836. }
  9837. ]
  9838. },
  9839. "required": false,
  9840. "style": "deepObject",
  9841. "explode": true
  9842. }
  9843. ],
  9844. "security": [],
  9845. "responses": {
  9846. "200": {
  9847. "description": "Success",
  9848. "content": {
  9849. "application/json": {
  9850. "schema": {
  9851. "type": "object",
  9852. "properties": {
  9853. "location": {
  9854. "$ref": "#/components/schemas/Location.Info"
  9855. },
  9856. "data": {
  9857. "$ref": "#/components/schemas/Shell.Info1"
  9858. }
  9859. },
  9860. "required": ["location", "data"],
  9861. "additionalProperties": false
  9862. }
  9863. }
  9864. }
  9865. },
  9866. "400": {
  9867. "description": "InvalidRequestError",
  9868. "content": {
  9869. "application/json": {
  9870. "schema": {
  9871. "$ref": "#/components/schemas/InvalidRequestError"
  9872. }
  9873. }
  9874. }
  9875. },
  9876. "401": {
  9877. "description": "UnauthorizedError",
  9878. "content": {
  9879. "application/json": {
  9880. "schema": {
  9881. "$ref": "#/components/schemas/UnauthorizedError"
  9882. }
  9883. }
  9884. }
  9885. }
  9886. },
  9887. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9888. "summary": "Run shell command",
  9889. "requestBody": {
  9890. "content": {
  9891. "application/json": {
  9892. "schema": {
  9893. "type": "object",
  9894. "properties": {
  9895. "command": {
  9896. "type": "string"
  9897. },
  9898. "cwd": {
  9899. "type": "string"
  9900. },
  9901. "timeout": {
  9902. "type": "integer",
  9903. "allOf": [
  9904. {
  9905. "minimum": 0
  9906. }
  9907. ]
  9908. },
  9909. "metadata": {
  9910. "type": "object"
  9911. }
  9912. },
  9913. "required": ["command", "timeout"],
  9914. "additionalProperties": false
  9915. }
  9916. }
  9917. },
  9918. "required": true
  9919. }
  9920. }
  9921. },
  9922. "/api/shell/{id}": {
  9923. "get": {
  9924. "tags": ["shell"],
  9925. "operationId": "v2.shell.get",
  9926. "parameters": [
  9927. {
  9928. "name": "id",
  9929. "in": "path",
  9930. "schema": {
  9931. "type": "string",
  9932. "allOf": [
  9933. {
  9934. "pattern": "^sh_"
  9935. }
  9936. ]
  9937. },
  9938. "required": true
  9939. },
  9940. {
  9941. "name": "location",
  9942. "in": "query",
  9943. "schema": {
  9944. "anyOf": [
  9945. {
  9946. "type": "object",
  9947. "properties": {
  9948. "directory": {
  9949. "anyOf": [
  9950. {
  9951. "type": "string"
  9952. },
  9953. {
  9954. "type": "null"
  9955. }
  9956. ]
  9957. },
  9958. "workspace": {
  9959. "anyOf": [
  9960. {
  9961. "type": "string"
  9962. },
  9963. {
  9964. "type": "null"
  9965. }
  9966. ]
  9967. }
  9968. },
  9969. "additionalProperties": false
  9970. },
  9971. {
  9972. "type": "null"
  9973. }
  9974. ]
  9975. },
  9976. "required": false,
  9977. "style": "deepObject",
  9978. "explode": true
  9979. }
  9980. ],
  9981. "security": [],
  9982. "responses": {
  9983. "200": {
  9984. "description": "Success",
  9985. "content": {
  9986. "application/json": {
  9987. "schema": {
  9988. "type": "object",
  9989. "properties": {
  9990. "location": {
  9991. "$ref": "#/components/schemas/Location.Info"
  9992. },
  9993. "data": {
  9994. "$ref": "#/components/schemas/Shell.Info1"
  9995. }
  9996. },
  9997. "required": ["location", "data"],
  9998. "additionalProperties": false
  9999. }
  10000. }
  10001. }
  10002. },
  10003. "400": {
  10004. "description": "InvalidRequestError",
  10005. "content": {
  10006. "application/json": {
  10007. "schema": {
  10008. "$ref": "#/components/schemas/InvalidRequestError"
  10009. }
  10010. }
  10011. }
  10012. },
  10013. "401": {
  10014. "description": "UnauthorizedError",
  10015. "content": {
  10016. "application/json": {
  10017. "schema": {
  10018. "$ref": "#/components/schemas/UnauthorizedError"
  10019. }
  10020. }
  10021. }
  10022. },
  10023. "404": {
  10024. "description": "ShellNotFoundError",
  10025. "content": {
  10026. "application/json": {
  10027. "schema": {
  10028. "$ref": "#/components/schemas/ShellNotFoundError"
  10029. }
  10030. }
  10031. }
  10032. }
  10033. },
  10034. "description": "Get one shell command, including its status and exit code once exited.",
  10035. "summary": "Get shell command"
  10036. },
  10037. "delete": {
  10038. "tags": ["shell"],
  10039. "operationId": "v2.shell.remove",
  10040. "parameters": [
  10041. {
  10042. "name": "id",
  10043. "in": "path",
  10044. "schema": {
  10045. "type": "string",
  10046. "allOf": [
  10047. {
  10048. "pattern": "^sh_"
  10049. }
  10050. ]
  10051. },
  10052. "required": true
  10053. },
  10054. {
  10055. "name": "location",
  10056. "in": "query",
  10057. "schema": {
  10058. "anyOf": [
  10059. {
  10060. "type": "object",
  10061. "properties": {
  10062. "directory": {
  10063. "anyOf": [
  10064. {
  10065. "type": "string"
  10066. },
  10067. {
  10068. "type": "null"
  10069. }
  10070. ]
  10071. },
  10072. "workspace": {
  10073. "anyOf": [
  10074. {
  10075. "type": "string"
  10076. },
  10077. {
  10078. "type": "null"
  10079. }
  10080. ]
  10081. }
  10082. },
  10083. "additionalProperties": false
  10084. },
  10085. {
  10086. "type": "null"
  10087. }
  10088. ]
  10089. },
  10090. "required": false,
  10091. "style": "deepObject",
  10092. "explode": true
  10093. }
  10094. ],
  10095. "security": [],
  10096. "responses": {
  10097. "204": {
  10098. "description": "<No Content>"
  10099. },
  10100. "400": {
  10101. "description": "InvalidRequestError",
  10102. "content": {
  10103. "application/json": {
  10104. "schema": {
  10105. "$ref": "#/components/schemas/InvalidRequestError"
  10106. }
  10107. }
  10108. }
  10109. },
  10110. "401": {
  10111. "description": "UnauthorizedError",
  10112. "content": {
  10113. "application/json": {
  10114. "schema": {
  10115. "$ref": "#/components/schemas/UnauthorizedError"
  10116. }
  10117. }
  10118. }
  10119. },
  10120. "404": {
  10121. "description": "ShellNotFoundError",
  10122. "content": {
  10123. "application/json": {
  10124. "schema": {
  10125. "$ref": "#/components/schemas/ShellNotFoundError"
  10126. }
  10127. }
  10128. }
  10129. }
  10130. },
  10131. "description": "Terminate and remove one shell command and its retained output.",
  10132. "summary": "Remove shell command"
  10133. }
  10134. },
  10135. "/api/shell/{id}/timeout": {
  10136. "patch": {
  10137. "tags": ["shell"],
  10138. "operationId": "v2.shell.timeout",
  10139. "parameters": [
  10140. {
  10141. "name": "id",
  10142. "in": "path",
  10143. "schema": {
  10144. "type": "string",
  10145. "allOf": [
  10146. {
  10147. "pattern": "^sh_"
  10148. }
  10149. ]
  10150. },
  10151. "required": true
  10152. },
  10153. {
  10154. "name": "location",
  10155. "in": "query",
  10156. "schema": {
  10157. "anyOf": [
  10158. {
  10159. "type": "object",
  10160. "properties": {
  10161. "directory": {
  10162. "anyOf": [
  10163. {
  10164. "type": "string"
  10165. },
  10166. {
  10167. "type": "null"
  10168. }
  10169. ]
  10170. },
  10171. "workspace": {
  10172. "anyOf": [
  10173. {
  10174. "type": "string"
  10175. },
  10176. {
  10177. "type": "null"
  10178. }
  10179. ]
  10180. }
  10181. },
  10182. "additionalProperties": false
  10183. },
  10184. {
  10185. "type": "null"
  10186. }
  10187. ]
  10188. },
  10189. "required": false,
  10190. "style": "deepObject",
  10191. "explode": true
  10192. }
  10193. ],
  10194. "security": [],
  10195. "responses": {
  10196. "200": {
  10197. "description": "Success",
  10198. "content": {
  10199. "application/json": {
  10200. "schema": {
  10201. "type": "object",
  10202. "properties": {
  10203. "location": {
  10204. "$ref": "#/components/schemas/Location.Info"
  10205. },
  10206. "data": {
  10207. "$ref": "#/components/schemas/Shell.Info1"
  10208. }
  10209. },
  10210. "required": ["location", "data"],
  10211. "additionalProperties": false
  10212. }
  10213. }
  10214. }
  10215. },
  10216. "400": {
  10217. "description": "InvalidRequestError",
  10218. "content": {
  10219. "application/json": {
  10220. "schema": {
  10221. "$ref": "#/components/schemas/InvalidRequestError"
  10222. }
  10223. }
  10224. }
  10225. },
  10226. "401": {
  10227. "description": "UnauthorizedError",
  10228. "content": {
  10229. "application/json": {
  10230. "schema": {
  10231. "$ref": "#/components/schemas/UnauthorizedError"
  10232. }
  10233. }
  10234. }
  10235. },
  10236. "404": {
  10237. "description": "ShellNotFoundError",
  10238. "content": {
  10239. "application/json": {
  10240. "schema": {
  10241. "$ref": "#/components/schemas/ShellNotFoundError"
  10242. }
  10243. }
  10244. }
  10245. }
  10246. },
  10247. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10248. "summary": "Update shell timeout",
  10249. "requestBody": {
  10250. "content": {
  10251. "application/json": {
  10252. "schema": {
  10253. "type": "object",
  10254. "properties": {
  10255. "timeout": {
  10256. "type": "integer",
  10257. "allOf": [
  10258. {
  10259. "minimum": 0
  10260. }
  10261. ]
  10262. }
  10263. },
  10264. "required": ["timeout"],
  10265. "additionalProperties": false
  10266. }
  10267. }
  10268. },
  10269. "required": true
  10270. }
  10271. }
  10272. },
  10273. "/api/shell/{id}/output": {
  10274. "get": {
  10275. "tags": ["shell"],
  10276. "operationId": "v2.shell.output",
  10277. "parameters": [
  10278. {
  10279. "name": "id",
  10280. "in": "path",
  10281. "schema": {
  10282. "type": "string",
  10283. "allOf": [
  10284. {
  10285. "pattern": "^sh_"
  10286. }
  10287. ]
  10288. },
  10289. "required": true
  10290. },
  10291. {
  10292. "name": "location",
  10293. "in": "query",
  10294. "schema": {
  10295. "anyOf": [
  10296. {
  10297. "type": "object",
  10298. "properties": {
  10299. "directory": {
  10300. "anyOf": [
  10301. {
  10302. "type": "string"
  10303. },
  10304. {
  10305. "type": "null"
  10306. }
  10307. ]
  10308. },
  10309. "workspace": {
  10310. "anyOf": [
  10311. {
  10312. "type": "string"
  10313. },
  10314. {
  10315. "type": "null"
  10316. }
  10317. ]
  10318. }
  10319. },
  10320. "additionalProperties": false
  10321. },
  10322. {
  10323. "type": "null"
  10324. }
  10325. ]
  10326. },
  10327. "required": false,
  10328. "style": "deepObject",
  10329. "explode": true
  10330. },
  10331. {
  10332. "name": "cursor",
  10333. "in": "query",
  10334. "schema": {
  10335. "type": "string",
  10336. "allOf": [
  10337. {
  10338. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10339. }
  10340. ]
  10341. },
  10342. "required": false
  10343. },
  10344. {
  10345. "name": "limit",
  10346. "in": "query",
  10347. "schema": {
  10348. "type": "string",
  10349. "allOf": [
  10350. {
  10351. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10352. }
  10353. ]
  10354. },
  10355. "required": false
  10356. }
  10357. ],
  10358. "security": [],
  10359. "responses": {
  10360. "200": {
  10361. "description": "Success",
  10362. "content": {
  10363. "application/json": {
  10364. "schema": {
  10365. "type": "object",
  10366. "properties": {
  10367. "location": {
  10368. "$ref": "#/components/schemas/Location.Info"
  10369. },
  10370. "data": {
  10371. "type": "object",
  10372. "properties": {
  10373. "output": {
  10374. "type": "string"
  10375. },
  10376. "cursor": {
  10377. "type": "integer",
  10378. "allOf": [
  10379. {
  10380. "minimum": 0
  10381. }
  10382. ]
  10383. },
  10384. "size": {
  10385. "type": "integer",
  10386. "allOf": [
  10387. {
  10388. "minimum": 0
  10389. }
  10390. ]
  10391. },
  10392. "truncated": {
  10393. "type": "boolean"
  10394. }
  10395. },
  10396. "required": ["output", "cursor", "size", "truncated"],
  10397. "additionalProperties": false
  10398. }
  10399. },
  10400. "required": ["location", "data"],
  10401. "additionalProperties": false
  10402. }
  10403. }
  10404. }
  10405. },
  10406. "400": {
  10407. "description": "InvalidRequestError",
  10408. "content": {
  10409. "application/json": {
  10410. "schema": {
  10411. "$ref": "#/components/schemas/InvalidRequestError"
  10412. }
  10413. }
  10414. }
  10415. },
  10416. "401": {
  10417. "description": "UnauthorizedError",
  10418. "content": {
  10419. "application/json": {
  10420. "schema": {
  10421. "$ref": "#/components/schemas/UnauthorizedError"
  10422. }
  10423. }
  10424. }
  10425. },
  10426. "404": {
  10427. "description": "ShellNotFoundError",
  10428. "content": {
  10429. "application/json": {
  10430. "schema": {
  10431. "$ref": "#/components/schemas/ShellNotFoundError"
  10432. }
  10433. }
  10434. }
  10435. }
  10436. },
  10437. "description": "Page through captured combined output by absolute byte cursor.",
  10438. "summary": "Read shell output"
  10439. }
  10440. },
  10441. "/api/reference": {
  10442. "get": {
  10443. "tags": ["reference"],
  10444. "operationId": "v2.reference.list",
  10445. "parameters": [
  10446. {
  10447. "name": "location",
  10448. "in": "query",
  10449. "schema": {
  10450. "anyOf": [
  10451. {
  10452. "type": "object",
  10453. "properties": {
  10454. "directory": {
  10455. "anyOf": [
  10456. {
  10457. "type": "string"
  10458. },
  10459. {
  10460. "type": "null"
  10461. }
  10462. ]
  10463. },
  10464. "workspace": {
  10465. "anyOf": [
  10466. {
  10467. "type": "string"
  10468. },
  10469. {
  10470. "type": "null"
  10471. }
  10472. ]
  10473. }
  10474. },
  10475. "additionalProperties": false
  10476. },
  10477. {
  10478. "type": "null"
  10479. }
  10480. ]
  10481. },
  10482. "required": false,
  10483. "style": "deepObject",
  10484. "explode": true
  10485. }
  10486. ],
  10487. "security": [],
  10488. "responses": {
  10489. "200": {
  10490. "description": "Success",
  10491. "content": {
  10492. "application/json": {
  10493. "schema": {
  10494. "type": "object",
  10495. "properties": {
  10496. "location": {
  10497. "$ref": "#/components/schemas/Location.Info"
  10498. },
  10499. "data": {
  10500. "type": "array",
  10501. "items": {
  10502. "$ref": "#/components/schemas/Reference.Info"
  10503. }
  10504. }
  10505. },
  10506. "required": ["location", "data"],
  10507. "additionalProperties": false
  10508. }
  10509. }
  10510. }
  10511. },
  10512. "400": {
  10513. "description": "InvalidRequestError",
  10514. "content": {
  10515. "application/json": {
  10516. "schema": {
  10517. "$ref": "#/components/schemas/InvalidRequestError"
  10518. }
  10519. }
  10520. }
  10521. },
  10522. "401": {
  10523. "description": "UnauthorizedError",
  10524. "content": {
  10525. "application/json": {
  10526. "schema": {
  10527. "$ref": "#/components/schemas/UnauthorizedError"
  10528. }
  10529. }
  10530. }
  10531. }
  10532. },
  10533. "description": "List references available in the requested location.",
  10534. "summary": "List references"
  10535. }
  10536. },
  10537. "/api/worktree/{projectID}": {
  10538. "get": {
  10539. "tags": ["worktree"],
  10540. "operationId": "v2.worktree.list",
  10541. "parameters": [
  10542. {
  10543. "name": "projectID",
  10544. "in": "path",
  10545. "schema": {
  10546. "type": "string"
  10547. },
  10548. "required": true
  10549. }
  10550. ],
  10551. "security": [],
  10552. "responses": {
  10553. "200": {
  10554. "description": "Worktree.List",
  10555. "content": {
  10556. "application/json": {
  10557. "schema": {
  10558. "$ref": "#/components/schemas/Worktree.List"
  10559. }
  10560. }
  10561. }
  10562. },
  10563. "400": {
  10564. "description": "InvalidRequestError",
  10565. "content": {
  10566. "application/json": {
  10567. "schema": {
  10568. "$ref": "#/components/schemas/InvalidRequestError"
  10569. }
  10570. }
  10571. }
  10572. },
  10573. "401": {
  10574. "description": "UnauthorizedError",
  10575. "content": {
  10576. "application/json": {
  10577. "schema": {
  10578. "$ref": "#/components/schemas/UnauthorizedError"
  10579. }
  10580. }
  10581. }
  10582. }
  10583. },
  10584. "description": "List known local worktrees for a project.",
  10585. "summary": "List worktrees"
  10586. },
  10587. "post": {
  10588. "tags": ["worktree"],
  10589. "operationId": "v2.worktree.create",
  10590. "parameters": [
  10591. {
  10592. "name": "projectID",
  10593. "in": "path",
  10594. "schema": {
  10595. "type": "string"
  10596. },
  10597. "required": true
  10598. }
  10599. ],
  10600. "security": [],
  10601. "responses": {
  10602. "200": {
  10603. "description": "Worktree.Info",
  10604. "content": {
  10605. "application/json": {
  10606. "schema": {
  10607. "$ref": "#/components/schemas/Worktree.Info"
  10608. }
  10609. }
  10610. }
  10611. },
  10612. "400": {
  10613. "description": "WorktreeError | InvalidRequestError",
  10614. "content": {
  10615. "application/json": {
  10616. "schema": {
  10617. "anyOf": [
  10618. {
  10619. "$ref": "#/components/schemas/WorktreeError"
  10620. },
  10621. {
  10622. "$ref": "#/components/schemas/InvalidRequestError"
  10623. }
  10624. ]
  10625. }
  10626. }
  10627. }
  10628. },
  10629. "401": {
  10630. "description": "UnauthorizedError",
  10631. "content": {
  10632. "application/json": {
  10633. "schema": {
  10634. "$ref": "#/components/schemas/UnauthorizedError"
  10635. }
  10636. }
  10637. }
  10638. }
  10639. },
  10640. "description": "Create a worktree for a project.",
  10641. "summary": "Create worktree",
  10642. "requestBody": {
  10643. "content": {
  10644. "application/json": {
  10645. "schema": {
  10646. "type": "object",
  10647. "properties": {
  10648. "strategy": {
  10649. "type": "string"
  10650. },
  10651. "from": {
  10652. "type": "string"
  10653. },
  10654. "directory": {
  10655. "type": "string"
  10656. },
  10657. "name": {
  10658. "type": "string"
  10659. }
  10660. },
  10661. "required": ["strategy", "directory"],
  10662. "additionalProperties": false
  10663. }
  10664. }
  10665. },
  10666. "required": true
  10667. }
  10668. },
  10669. "delete": {
  10670. "tags": ["worktree"],
  10671. "operationId": "v2.worktree.remove",
  10672. "parameters": [
  10673. {
  10674. "name": "projectID",
  10675. "in": "path",
  10676. "schema": {
  10677. "type": "string"
  10678. },
  10679. "required": true
  10680. }
  10681. ],
  10682. "security": [],
  10683. "responses": {
  10684. "204": {
  10685. "description": "<No Content>"
  10686. },
  10687. "400": {
  10688. "description": "WorktreeError | InvalidRequestError",
  10689. "content": {
  10690. "application/json": {
  10691. "schema": {
  10692. "anyOf": [
  10693. {
  10694. "$ref": "#/components/schemas/WorktreeError"
  10695. },
  10696. {
  10697. "$ref": "#/components/schemas/InvalidRequestError"
  10698. }
  10699. ]
  10700. }
  10701. }
  10702. }
  10703. },
  10704. "401": {
  10705. "description": "UnauthorizedError",
  10706. "content": {
  10707. "application/json": {
  10708. "schema": {
  10709. "$ref": "#/components/schemas/UnauthorizedError"
  10710. }
  10711. }
  10712. }
  10713. }
  10714. },
  10715. "description": "Remove a managed worktree from a project.",
  10716. "summary": "Remove worktree",
  10717. "requestBody": {
  10718. "content": {
  10719. "application/json": {
  10720. "schema": {
  10721. "type": "object",
  10722. "properties": {
  10723. "directory": {
  10724. "type": "string"
  10725. },
  10726. "force": {
  10727. "type": "boolean"
  10728. }
  10729. },
  10730. "required": ["directory", "force"],
  10731. "additionalProperties": false
  10732. }
  10733. }
  10734. },
  10735. "required": true
  10736. }
  10737. }
  10738. },
  10739. "/api/worktree/{projectID}/refresh": {
  10740. "post": {
  10741. "tags": ["worktree"],
  10742. "operationId": "v2.worktree.refresh",
  10743. "parameters": [
  10744. {
  10745. "name": "projectID",
  10746. "in": "path",
  10747. "schema": {
  10748. "type": "string"
  10749. },
  10750. "required": true
  10751. }
  10752. ],
  10753. "security": [],
  10754. "responses": {
  10755. "204": {
  10756. "description": "<No Content>"
  10757. },
  10758. "400": {
  10759. "description": "WorktreeError | InvalidRequestError",
  10760. "content": {
  10761. "application/json": {
  10762. "schema": {
  10763. "anyOf": [
  10764. {
  10765. "$ref": "#/components/schemas/WorktreeError"
  10766. },
  10767. {
  10768. "$ref": "#/components/schemas/InvalidRequestError"
  10769. }
  10770. ]
  10771. }
  10772. }
  10773. }
  10774. },
  10775. "401": {
  10776. "description": "UnauthorizedError",
  10777. "content": {
  10778. "application/json": {
  10779. "schema": {
  10780. "$ref": "#/components/schemas/UnauthorizedError"
  10781. }
  10782. }
  10783. }
  10784. }
  10785. },
  10786. "description": "Reconcile stored worktrees with the project repositories.",
  10787. "summary": "Refresh worktrees"
  10788. }
  10789. },
  10790. "/api/vcs": {
  10791. "get": {
  10792. "tags": ["vcs"],
  10793. "operationId": "v2.vcs.get",
  10794. "parameters": [
  10795. {
  10796. "name": "location",
  10797. "in": "query",
  10798. "schema": {
  10799. "anyOf": [
  10800. {
  10801. "type": "object",
  10802. "properties": {
  10803. "directory": {
  10804. "anyOf": [
  10805. {
  10806. "type": "string"
  10807. },
  10808. {
  10809. "type": "null"
  10810. }
  10811. ]
  10812. },
  10813. "workspace": {
  10814. "anyOf": [
  10815. {
  10816. "type": "string"
  10817. },
  10818. {
  10819. "type": "null"
  10820. }
  10821. ]
  10822. }
  10823. },
  10824. "additionalProperties": false
  10825. },
  10826. {
  10827. "type": "null"
  10828. }
  10829. ]
  10830. },
  10831. "required": false,
  10832. "style": "deepObject",
  10833. "explode": true
  10834. }
  10835. ],
  10836. "security": [],
  10837. "responses": {
  10838. "200": {
  10839. "description": "Success",
  10840. "content": {
  10841. "application/json": {
  10842. "schema": {
  10843. "type": "object",
  10844. "properties": {
  10845. "location": {
  10846. "$ref": "#/components/schemas/Location.Info"
  10847. },
  10848. "data": {
  10849. "$ref": "#/components/schemas/Vcs.Info"
  10850. }
  10851. },
  10852. "required": ["location", "data"],
  10853. "additionalProperties": false
  10854. }
  10855. }
  10856. }
  10857. },
  10858. "400": {
  10859. "description": "InvalidRequestError",
  10860. "content": {
  10861. "application/json": {
  10862. "schema": {
  10863. "$ref": "#/components/schemas/InvalidRequestError"
  10864. }
  10865. }
  10866. }
  10867. },
  10868. "401": {
  10869. "description": "UnauthorizedError",
  10870. "content": {
  10871. "application/json": {
  10872. "schema": {
  10873. "$ref": "#/components/schemas/UnauthorizedError"
  10874. }
  10875. }
  10876. }
  10877. }
  10878. },
  10879. "description": "Get current and default branch information for the requested location.",
  10880. "summary": "VCS info"
  10881. }
  10882. },
  10883. "/api/vcs/status": {
  10884. "get": {
  10885. "tags": ["vcs"],
  10886. "operationId": "v2.vcs.status",
  10887. "parameters": [
  10888. {
  10889. "name": "location",
  10890. "in": "query",
  10891. "schema": {
  10892. "anyOf": [
  10893. {
  10894. "type": "object",
  10895. "properties": {
  10896. "directory": {
  10897. "anyOf": [
  10898. {
  10899. "type": "string"
  10900. },
  10901. {
  10902. "type": "null"
  10903. }
  10904. ]
  10905. },
  10906. "workspace": {
  10907. "anyOf": [
  10908. {
  10909. "type": "string"
  10910. },
  10911. {
  10912. "type": "null"
  10913. }
  10914. ]
  10915. }
  10916. },
  10917. "additionalProperties": false
  10918. },
  10919. {
  10920. "type": "null"
  10921. }
  10922. ]
  10923. },
  10924. "required": false,
  10925. "style": "deepObject",
  10926. "explode": true
  10927. }
  10928. ],
  10929. "security": [],
  10930. "responses": {
  10931. "200": {
  10932. "description": "Success",
  10933. "content": {
  10934. "application/json": {
  10935. "schema": {
  10936. "type": "object",
  10937. "properties": {
  10938. "location": {
  10939. "$ref": "#/components/schemas/Location.Info"
  10940. },
  10941. "data": {
  10942. "type": "array",
  10943. "items": {
  10944. "$ref": "#/components/schemas/Vcs.FileStatus"
  10945. }
  10946. }
  10947. },
  10948. "required": ["location", "data"],
  10949. "additionalProperties": false
  10950. }
  10951. }
  10952. }
  10953. },
  10954. "400": {
  10955. "description": "InvalidRequestError",
  10956. "content": {
  10957. "application/json": {
  10958. "schema": {
  10959. "$ref": "#/components/schemas/InvalidRequestError"
  10960. }
  10961. }
  10962. }
  10963. },
  10964. "401": {
  10965. "description": "UnauthorizedError",
  10966. "content": {
  10967. "application/json": {
  10968. "schema": {
  10969. "$ref": "#/components/schemas/UnauthorizedError"
  10970. }
  10971. }
  10972. }
  10973. }
  10974. },
  10975. "description": "List uncommitted working-copy changes relative to the requested location.",
  10976. "summary": "VCS status"
  10977. }
  10978. },
  10979. "/api/vcs/diff": {
  10980. "get": {
  10981. "tags": ["vcs"],
  10982. "operationId": "v2.vcs.diff",
  10983. "parameters": [
  10984. {
  10985. "name": "location",
  10986. "in": "query",
  10987. "schema": {
  10988. "anyOf": [
  10989. {
  10990. "type": "object",
  10991. "properties": {
  10992. "directory": {
  10993. "anyOf": [
  10994. {
  10995. "type": "string"
  10996. },
  10997. {
  10998. "type": "null"
  10999. }
  11000. ]
  11001. },
  11002. "workspace": {
  11003. "anyOf": [
  11004. {
  11005. "type": "string"
  11006. },
  11007. {
  11008. "type": "null"
  11009. }
  11010. ]
  11011. }
  11012. },
  11013. "additionalProperties": false
  11014. },
  11015. {
  11016. "type": "null"
  11017. }
  11018. ]
  11019. },
  11020. "required": false,
  11021. "style": "deepObject",
  11022. "explode": true
  11023. },
  11024. {
  11025. "name": "mode",
  11026. "in": "query",
  11027. "schema": {
  11028. "$ref": "#/components/schemas/Vcs.Mode"
  11029. },
  11030. "required": true
  11031. },
  11032. {
  11033. "name": "context",
  11034. "in": "query",
  11035. "schema": {
  11036. "anyOf": [
  11037. {
  11038. "type": "string"
  11039. },
  11040. {
  11041. "type": "null"
  11042. }
  11043. ]
  11044. },
  11045. "required": false
  11046. }
  11047. ],
  11048. "security": [],
  11049. "responses": {
  11050. "200": {
  11051. "description": "Success",
  11052. "content": {
  11053. "application/json": {
  11054. "schema": {
  11055. "type": "object",
  11056. "properties": {
  11057. "location": {
  11058. "$ref": "#/components/schemas/Location.Info"
  11059. },
  11060. "data": {
  11061. "type": "array",
  11062. "items": {
  11063. "$ref": "#/components/schemas/FileDiff.Info"
  11064. }
  11065. }
  11066. },
  11067. "required": ["location", "data"],
  11068. "additionalProperties": false
  11069. }
  11070. }
  11071. }
  11072. },
  11073. "400": {
  11074. "description": "InvalidRequestError",
  11075. "content": {
  11076. "application/json": {
  11077. "schema": {
  11078. "$ref": "#/components/schemas/InvalidRequestError"
  11079. }
  11080. }
  11081. }
  11082. },
  11083. "401": {
  11084. "description": "UnauthorizedError",
  11085. "content": {
  11086. "application/json": {
  11087. "schema": {
  11088. "$ref": "#/components/schemas/UnauthorizedError"
  11089. }
  11090. }
  11091. }
  11092. }
  11093. },
  11094. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11095. "summary": "VCS diff"
  11096. }
  11097. },
  11098. "/api/debug/location": {
  11099. "get": {
  11100. "tags": ["debug"],
  11101. "operationId": "v2.debug.location.list",
  11102. "parameters": [],
  11103. "security": [],
  11104. "responses": {
  11105. "200": {
  11106. "description": "Success",
  11107. "content": {
  11108. "application/json": {
  11109. "schema": {
  11110. "type": "array",
  11111. "items": {
  11112. "$ref": "#/components/schemas/Location.Ref"
  11113. }
  11114. }
  11115. }
  11116. }
  11117. },
  11118. "400": {
  11119. "description": "InvalidRequestError",
  11120. "content": {
  11121. "application/json": {
  11122. "schema": {
  11123. "$ref": "#/components/schemas/InvalidRequestError"
  11124. }
  11125. }
  11126. }
  11127. },
  11128. "401": {
  11129. "description": "UnauthorizedError",
  11130. "content": {
  11131. "application/json": {
  11132. "schema": {
  11133. "$ref": "#/components/schemas/UnauthorizedError"
  11134. }
  11135. }
  11136. }
  11137. }
  11138. },
  11139. "description": "List locations currently loaded by the server.",
  11140. "summary": "List loaded locations"
  11141. },
  11142. "delete": {
  11143. "tags": ["debug"],
  11144. "operationId": "v2.debug.location.evict",
  11145. "parameters": [
  11146. {
  11147. "name": "location",
  11148. "in": "query",
  11149. "schema": {
  11150. "anyOf": [
  11151. {
  11152. "type": "object",
  11153. "properties": {
  11154. "directory": {
  11155. "anyOf": [
  11156. {
  11157. "type": "string"
  11158. },
  11159. {
  11160. "type": "null"
  11161. }
  11162. ]
  11163. },
  11164. "workspace": {
  11165. "anyOf": [
  11166. {
  11167. "type": "string"
  11168. },
  11169. {
  11170. "type": "null"
  11171. }
  11172. ]
  11173. }
  11174. },
  11175. "additionalProperties": false
  11176. },
  11177. {
  11178. "type": "null"
  11179. }
  11180. ]
  11181. },
  11182. "required": false,
  11183. "style": "deepObject",
  11184. "explode": true
  11185. }
  11186. ],
  11187. "security": [],
  11188. "responses": {
  11189. "204": {
  11190. "description": "<No Content>"
  11191. },
  11192. "400": {
  11193. "description": "InvalidRequestError",
  11194. "content": {
  11195. "application/json": {
  11196. "schema": {
  11197. "$ref": "#/components/schemas/InvalidRequestError"
  11198. }
  11199. }
  11200. }
  11201. },
  11202. "401": {
  11203. "description": "UnauthorizedError",
  11204. "content": {
  11205. "application/json": {
  11206. "schema": {
  11207. "$ref": "#/components/schemas/UnauthorizedError"
  11208. }
  11209. }
  11210. }
  11211. }
  11212. },
  11213. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11214. "summary": "Evict a loaded location"
  11215. }
  11216. },
  11217. "/api/experimental/migration/v1": {
  11218. "get": {
  11219. "tags": ["migration"],
  11220. "operationId": "v2.experimental.migration.v1.status",
  11221. "parameters": [],
  11222. "security": [],
  11223. "responses": {
  11224. "200": {
  11225. "description": "Success",
  11226. "content": {
  11227. "application/json": {
  11228. "schema": {
  11229. "anyOf": [
  11230. {
  11231. "type": "object",
  11232. "properties": {
  11233. "status": {
  11234. "type": "string",
  11235. "enum": ["required", "completed"]
  11236. }
  11237. },
  11238. "required": ["status"],
  11239. "additionalProperties": false
  11240. },
  11241. {
  11242. "type": "object",
  11243. "properties": {
  11244. "status": {
  11245. "type": "string",
  11246. "enum": ["running"]
  11247. },
  11248. "progress": {
  11249. "type": "object",
  11250. "properties": {
  11251. "label": {
  11252. "type": "string"
  11253. },
  11254. "numerator": {
  11255. "anyOf": [
  11256. {
  11257. "type": "integer",
  11258. "allOf": [
  11259. {
  11260. "minimum": 0
  11261. }
  11262. ]
  11263. },
  11264. {
  11265. "type": "null"
  11266. }
  11267. ]
  11268. },
  11269. "denominator": {
  11270. "anyOf": [
  11271. {
  11272. "type": "integer",
  11273. "allOf": [
  11274. {
  11275. "minimum": 0
  11276. }
  11277. ]
  11278. },
  11279. {
  11280. "type": "null"
  11281. }
  11282. ]
  11283. }
  11284. },
  11285. "required": ["label"],
  11286. "additionalProperties": false
  11287. }
  11288. },
  11289. "required": ["status", "progress"],
  11290. "additionalProperties": false
  11291. },
  11292. {
  11293. "type": "object",
  11294. "properties": {
  11295. "status": {
  11296. "type": "string",
  11297. "enum": ["error"]
  11298. },
  11299. "error": {
  11300. "type": "string"
  11301. }
  11302. },
  11303. "required": ["status", "error"],
  11304. "additionalProperties": false
  11305. }
  11306. ]
  11307. }
  11308. }
  11309. }
  11310. },
  11311. "400": {
  11312. "description": "InvalidRequestError",
  11313. "content": {
  11314. "application/json": {
  11315. "schema": {
  11316. "$ref": "#/components/schemas/InvalidRequestError"
  11317. }
  11318. }
  11319. }
  11320. },
  11321. "401": {
  11322. "description": "UnauthorizedError",
  11323. "content": {
  11324. "application/json": {
  11325. "schema": {
  11326. "$ref": "#/components/schemas/UnauthorizedError"
  11327. }
  11328. }
  11329. }
  11330. }
  11331. },
  11332. "description": "Return the progress of the V1 to V2 session history migration.",
  11333. "summary": "Get V1 migration status"
  11334. }
  11335. },
  11336. "/api/websearch/provider": {
  11337. "get": {
  11338. "tags": ["websearch"],
  11339. "operationId": "v2.websearch.providers",
  11340. "parameters": [
  11341. {
  11342. "name": "location",
  11343. "in": "query",
  11344. "schema": {
  11345. "anyOf": [
  11346. {
  11347. "type": "object",
  11348. "properties": {
  11349. "directory": {
  11350. "anyOf": [
  11351. {
  11352. "type": "string"
  11353. },
  11354. {
  11355. "type": "null"
  11356. }
  11357. ]
  11358. },
  11359. "workspace": {
  11360. "anyOf": [
  11361. {
  11362. "type": "string"
  11363. },
  11364. {
  11365. "type": "null"
  11366. }
  11367. ]
  11368. }
  11369. },
  11370. "additionalProperties": false
  11371. },
  11372. {
  11373. "type": "null"
  11374. }
  11375. ]
  11376. },
  11377. "required": false,
  11378. "style": "deepObject",
  11379. "explode": true
  11380. }
  11381. ],
  11382. "security": [],
  11383. "responses": {
  11384. "200": {
  11385. "description": "Success",
  11386. "content": {
  11387. "application/json": {
  11388. "schema": {
  11389. "type": "object",
  11390. "properties": {
  11391. "location": {
  11392. "$ref": "#/components/schemas/Location.Info"
  11393. },
  11394. "data": {
  11395. "type": "array",
  11396. "items": {
  11397. "$ref": "#/components/schemas/WebSearch.Provider"
  11398. }
  11399. }
  11400. },
  11401. "required": ["location", "data"],
  11402. "additionalProperties": false
  11403. }
  11404. }
  11405. }
  11406. },
  11407. "400": {
  11408. "description": "InvalidRequestError",
  11409. "content": {
  11410. "application/json": {
  11411. "schema": {
  11412. "$ref": "#/components/schemas/InvalidRequestError"
  11413. }
  11414. }
  11415. }
  11416. },
  11417. "401": {
  11418. "description": "UnauthorizedError",
  11419. "content": {
  11420. "application/json": {
  11421. "schema": {
  11422. "$ref": "#/components/schemas/UnauthorizedError"
  11423. }
  11424. }
  11425. }
  11426. },
  11427. "503": {
  11428. "description": "ServiceUnavailableError",
  11429. "content": {
  11430. "application/json": {
  11431. "schema": {
  11432. "$ref": "#/components/schemas/ServiceUnavailableError"
  11433. }
  11434. }
  11435. }
  11436. }
  11437. },
  11438. "description": "Return the registered web search providers.",
  11439. "summary": "List web search providers"
  11440. }
  11441. },
  11442. "/api/websearch": {
  11443. "post": {
  11444. "tags": ["websearch"],
  11445. "operationId": "v2.websearch.query",
  11446. "parameters": [
  11447. {
  11448. "name": "location",
  11449. "in": "query",
  11450. "schema": {
  11451. "anyOf": [
  11452. {
  11453. "type": "object",
  11454. "properties": {
  11455. "directory": {
  11456. "anyOf": [
  11457. {
  11458. "type": "string"
  11459. },
  11460. {
  11461. "type": "null"
  11462. }
  11463. ]
  11464. },
  11465. "workspace": {
  11466. "anyOf": [
  11467. {
  11468. "type": "string"
  11469. },
  11470. {
  11471. "type": "null"
  11472. }
  11473. ]
  11474. }
  11475. },
  11476. "additionalProperties": false
  11477. },
  11478. {
  11479. "type": "null"
  11480. }
  11481. ]
  11482. },
  11483. "required": false,
  11484. "style": "deepObject",
  11485. "explode": true
  11486. }
  11487. ],
  11488. "security": [],
  11489. "responses": {
  11490. "200": {
  11491. "description": "Success",
  11492. "content": {
  11493. "application/json": {
  11494. "schema": {
  11495. "type": "object",
  11496. "properties": {
  11497. "location": {
  11498. "$ref": "#/components/schemas/Location.Info"
  11499. },
  11500. "data": {
  11501. "$ref": "#/components/schemas/WebSearch.Response"
  11502. }
  11503. },
  11504. "required": ["location", "data"],
  11505. "additionalProperties": false
  11506. }
  11507. }
  11508. }
  11509. },
  11510. "400": {
  11511. "description": "InvalidRequestError",
  11512. "content": {
  11513. "application/json": {
  11514. "schema": {
  11515. "anyOf": [
  11516. {
  11517. "$ref": "#/components/schemas/InvalidRequestError1"
  11518. },
  11519. {
  11520. "$ref": "#/components/schemas/InvalidRequestError"
  11521. }
  11522. ]
  11523. }
  11524. }
  11525. }
  11526. },
  11527. "401": {
  11528. "description": "UnauthorizedError",
  11529. "content": {
  11530. "application/json": {
  11531. "schema": {
  11532. "$ref": "#/components/schemas/UnauthorizedError"
  11533. }
  11534. }
  11535. }
  11536. },
  11537. "503": {
  11538. "description": "ServiceUnavailableError",
  11539. "content": {
  11540. "application/json": {
  11541. "schema": {
  11542. "$ref": "#/components/schemas/ServiceUnavailableError"
  11543. }
  11544. }
  11545. }
  11546. }
  11547. },
  11548. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  11549. "summary": "Search the web",
  11550. "requestBody": {
  11551. "content": {
  11552. "application/json": {
  11553. "schema": {
  11554. "type": "object",
  11555. "properties": {
  11556. "query": {
  11557. "type": "string"
  11558. },
  11559. "providerID": {
  11560. "type": "string"
  11561. }
  11562. },
  11563. "required": ["query"],
  11564. "additionalProperties": false
  11565. }
  11566. }
  11567. },
  11568. "required": true
  11569. }
  11570. }
  11571. },
  11572. "/api/config": {
  11573. "get": {
  11574. "tags": ["config"],
  11575. "operationId": "v2.config.get",
  11576. "parameters": [
  11577. {
  11578. "name": "location",
  11579. "in": "query",
  11580. "schema": {
  11581. "anyOf": [
  11582. {
  11583. "type": "object",
  11584. "properties": {
  11585. "directory": {
  11586. "anyOf": [
  11587. {
  11588. "type": "string"
  11589. },
  11590. {
  11591. "type": "null"
  11592. }
  11593. ]
  11594. },
  11595. "workspace": {
  11596. "anyOf": [
  11597. {
  11598. "type": "string"
  11599. },
  11600. {
  11601. "type": "null"
  11602. }
  11603. ]
  11604. }
  11605. },
  11606. "additionalProperties": false
  11607. },
  11608. {
  11609. "type": "null"
  11610. }
  11611. ]
  11612. },
  11613. "required": false,
  11614. "style": "deepObject",
  11615. "explode": true
  11616. }
  11617. ],
  11618. "security": [],
  11619. "responses": {
  11620. "200": {
  11621. "description": "Success",
  11622. "content": {
  11623. "application/json": {
  11624. "schema": {
  11625. "type": "array",
  11626. "items": {
  11627. "$ref": "#/components/schemas/Config.Entry"
  11628. }
  11629. }
  11630. }
  11631. }
  11632. },
  11633. "400": {
  11634. "description": "InvalidRequestError",
  11635. "content": {
  11636. "application/json": {
  11637. "schema": {
  11638. "$ref": "#/components/schemas/InvalidRequestError"
  11639. }
  11640. }
  11641. }
  11642. },
  11643. "401": {
  11644. "description": "UnauthorizedError",
  11645. "content": {
  11646. "application/json": {
  11647. "schema": {
  11648. "$ref": "#/components/schemas/UnauthorizedError"
  11649. }
  11650. }
  11651. }
  11652. }
  11653. },
  11654. "description": "Return configuration documents and discovery sources for the requested location, from lowest to highest priority.",
  11655. "summary": "Get configuration"
  11656. }
  11657. }
  11658. },
  11659. "components": {
  11660. "schemas": {
  11661. "ServiceHealth": {
  11662. "type": "object",
  11663. "properties": {
  11664. "healthy": {
  11665. "type": "boolean",
  11666. "enum": [true]
  11667. },
  11668. "version": {
  11669. "type": "string"
  11670. },
  11671. "pid": {
  11672. "type": "integer",
  11673. "allOf": [
  11674. {
  11675. "minimum": 0
  11676. }
  11677. ]
  11678. }
  11679. },
  11680. "required": ["healthy", "version", "pid"],
  11681. "additionalProperties": false
  11682. },
  11683. "UnauthorizedError": {
  11684. "type": "object",
  11685. "properties": {
  11686. "_tag": {
  11687. "type": "string",
  11688. "enum": ["UnauthorizedError"]
  11689. },
  11690. "message": {
  11691. "type": "string"
  11692. }
  11693. },
  11694. "required": ["_tag", "message"],
  11695. "additionalProperties": false
  11696. },
  11697. "InvalidRequestError": {
  11698. "type": "object",
  11699. "properties": {
  11700. "_tag": {
  11701. "type": "string",
  11702. "enum": ["InvalidRequestError"]
  11703. },
  11704. "message": {
  11705. "type": "string"
  11706. },
  11707. "kind": {
  11708. "anyOf": [
  11709. {
  11710. "type": "string"
  11711. },
  11712. {
  11713. "type": "null"
  11714. }
  11715. ]
  11716. },
  11717. "field": {
  11718. "anyOf": [
  11719. {
  11720. "type": "string"
  11721. },
  11722. {
  11723. "type": "null"
  11724. }
  11725. ]
  11726. }
  11727. },
  11728. "required": ["_tag", "message"],
  11729. "additionalProperties": false
  11730. },
  11731. "ServiceStopRequest": {
  11732. "type": "object",
  11733. "properties": {
  11734. "instanceID": {
  11735. "type": "string"
  11736. }
  11737. },
  11738. "required": ["instanceID"],
  11739. "additionalProperties": false
  11740. },
  11741. "ServiceStopResponse": {
  11742. "type": "object",
  11743. "properties": {
  11744. "accepted": {
  11745. "type": "boolean"
  11746. }
  11747. },
  11748. "required": ["accepted"],
  11749. "additionalProperties": false
  11750. },
  11751. "Location.Info": {
  11752. "type": "object",
  11753. "properties": {
  11754. "directory": {
  11755. "type": "string"
  11756. },
  11757. "workspaceID": {
  11758. "type": "string",
  11759. "allOf": [
  11760. {
  11761. "pattern": "^wrk"
  11762. }
  11763. ]
  11764. },
  11765. "project": {
  11766. "type": "object",
  11767. "properties": {
  11768. "id": {
  11769. "type": "string"
  11770. },
  11771. "directory": {
  11772. "type": "string"
  11773. },
  11774. "canonical": {
  11775. "type": "string"
  11776. }
  11777. },
  11778. "required": ["id", "directory", "canonical"],
  11779. "additionalProperties": false
  11780. }
  11781. },
  11782. "required": ["directory", "project"],
  11783. "additionalProperties": false
  11784. },
  11785. "Model.Ref": {
  11786. "type": "object",
  11787. "properties": {
  11788. "id": {
  11789. "type": "string"
  11790. },
  11791. "providerID": {
  11792. "type": "string"
  11793. },
  11794. "variant": {
  11795. "type": "string"
  11796. }
  11797. },
  11798. "required": ["id", "providerID"],
  11799. "additionalProperties": false
  11800. },
  11801. "Provider.Settings": {
  11802. "type": "object"
  11803. },
  11804. "Provider.Request": {
  11805. "type": "object",
  11806. "properties": {
  11807. "settings": {
  11808. "$ref": "#/components/schemas/Provider.Settings"
  11809. },
  11810. "headers": {
  11811. "type": "object",
  11812. "additionalProperties": {
  11813. "type": "string"
  11814. }
  11815. },
  11816. "body": {
  11817. "type": "object"
  11818. }
  11819. },
  11820. "required": ["settings", "headers", "body"],
  11821. "additionalProperties": false
  11822. },
  11823. "Agent.Color": {
  11824. "type": "string"
  11825. },
  11826. "Permission.Effect": {
  11827. "type": "string",
  11828. "enum": ["allow", "deny", "ask"]
  11829. },
  11830. "Permission.Rule": {
  11831. "type": "object",
  11832. "properties": {
  11833. "action": {
  11834. "type": "string"
  11835. },
  11836. "resource": {
  11837. "type": "string"
  11838. },
  11839. "effect": {
  11840. "$ref": "#/components/schemas/Permission.Effect"
  11841. }
  11842. },
  11843. "required": ["action", "resource", "effect"],
  11844. "additionalProperties": false
  11845. },
  11846. "Permission.Ruleset": {
  11847. "type": "array",
  11848. "items": {
  11849. "$ref": "#/components/schemas/Permission.Rule"
  11850. }
  11851. },
  11852. "Agent.Info": {
  11853. "type": "object",
  11854. "properties": {
  11855. "id": {
  11856. "type": "string"
  11857. },
  11858. "name": {
  11859. "type": "string"
  11860. },
  11861. "model": {
  11862. "$ref": "#/components/schemas/Model.Ref"
  11863. },
  11864. "request": {
  11865. "$ref": "#/components/schemas/Provider.Request"
  11866. },
  11867. "system": {
  11868. "type": "string"
  11869. },
  11870. "description": {
  11871. "type": "string"
  11872. },
  11873. "mode": {
  11874. "type": "string",
  11875. "enum": ["subagent", "primary", "all"]
  11876. },
  11877. "hidden": {
  11878. "type": "boolean"
  11879. },
  11880. "color": {
  11881. "$ref": "#/components/schemas/Agent.Color"
  11882. },
  11883. "steps": {
  11884. "type": "integer",
  11885. "allOf": [
  11886. {
  11887. "exclusiveMinimum": 0
  11888. }
  11889. ]
  11890. },
  11891. "permissions": {
  11892. "$ref": "#/components/schemas/Permission.Ruleset"
  11893. }
  11894. },
  11895. "required": ["id", "name", "request", "mode", "hidden", "permissions"],
  11896. "additionalProperties": false
  11897. },
  11898. "AgentNotFoundError": {
  11899. "type": "object",
  11900. "properties": {
  11901. "_tag": {
  11902. "type": "string",
  11903. "enum": ["AgentNotFoundError"]
  11904. },
  11905. "agentID": {
  11906. "type": "string"
  11907. },
  11908. "message": {
  11909. "type": "string"
  11910. }
  11911. },
  11912. "required": ["_tag", "agentID", "message"],
  11913. "additionalProperties": false
  11914. },
  11915. "Plugin.Info": {
  11916. "type": "object",
  11917. "properties": {
  11918. "id": {
  11919. "type": "string"
  11920. }
  11921. },
  11922. "required": ["id"],
  11923. "additionalProperties": false
  11924. },
  11925. "Session.ForkBoundary": {
  11926. "anyOf": [
  11927. {
  11928. "type": "object",
  11929. "properties": {
  11930. "type": {
  11931. "type": "string",
  11932. "enum": ["before"]
  11933. },
  11934. "messageID": {
  11935. "type": "string",
  11936. "allOf": [
  11937. {
  11938. "pattern": "^msg_"
  11939. }
  11940. ]
  11941. }
  11942. },
  11943. "required": ["type", "messageID"],
  11944. "additionalProperties": false
  11945. },
  11946. {
  11947. "type": "object",
  11948. "properties": {
  11949. "type": {
  11950. "type": "string",
  11951. "enum": ["through"]
  11952. },
  11953. "messageID": {
  11954. "type": "string",
  11955. "allOf": [
  11956. {
  11957. "pattern": "^msg_"
  11958. }
  11959. ]
  11960. }
  11961. },
  11962. "required": ["type", "messageID"],
  11963. "additionalProperties": false
  11964. }
  11965. ]
  11966. },
  11967. "Money.USD": {
  11968. "type": "number"
  11969. },
  11970. "TokenUsage.Info": {
  11971. "type": "object",
  11972. "properties": {
  11973. "input": {
  11974. "type": "number"
  11975. },
  11976. "output": {
  11977. "type": "number"
  11978. },
  11979. "reasoning": {
  11980. "type": "number"
  11981. },
  11982. "cache": {
  11983. "type": "object",
  11984. "properties": {
  11985. "read": {
  11986. "type": "number"
  11987. },
  11988. "write": {
  11989. "type": "number"
  11990. }
  11991. },
  11992. "required": ["read", "write"],
  11993. "additionalProperties": false
  11994. }
  11995. },
  11996. "required": ["input", "output", "reasoning", "cache"],
  11997. "additionalProperties": false
  11998. },
  11999. "Location.Ref": {
  12000. "type": "object",
  12001. "properties": {
  12002. "directory": {
  12003. "type": "string"
  12004. },
  12005. "workspaceID": {
  12006. "type": "string",
  12007. "allOf": [
  12008. {
  12009. "pattern": "^wrk"
  12010. }
  12011. ]
  12012. }
  12013. },
  12014. "required": ["directory"],
  12015. "additionalProperties": false
  12016. },
  12017. "FileDiff.Info": {
  12018. "type": "object",
  12019. "properties": {
  12020. "file": {
  12021. "type": "string"
  12022. },
  12023. "patch": {
  12024. "type": "string"
  12025. },
  12026. "additions": {
  12027. "type": "integer",
  12028. "allOf": [
  12029. {
  12030. "minimum": 0
  12031. }
  12032. ]
  12033. },
  12034. "deletions": {
  12035. "type": "integer",
  12036. "allOf": [
  12037. {
  12038. "minimum": 0
  12039. }
  12040. ]
  12041. },
  12042. "status": {
  12043. "type": "string",
  12044. "enum": ["added", "deleted", "modified"]
  12045. }
  12046. },
  12047. "required": ["file", "patch", "additions", "deletions", "status"],
  12048. "additionalProperties": false
  12049. },
  12050. "Session.Revert": {
  12051. "type": "object",
  12052. "properties": {
  12053. "messageID": {
  12054. "type": "string",
  12055. "allOf": [
  12056. {
  12057. "pattern": "^msg_"
  12058. }
  12059. ]
  12060. },
  12061. "partID": {
  12062. "type": "string"
  12063. },
  12064. "snapshot": {
  12065. "type": "string"
  12066. },
  12067. "files": {
  12068. "type": "array",
  12069. "items": {
  12070. "$ref": "#/components/schemas/FileDiff.Info"
  12071. }
  12072. }
  12073. },
  12074. "required": ["messageID"],
  12075. "additionalProperties": false
  12076. },
  12077. "Session.Info": {
  12078. "type": "object",
  12079. "properties": {
  12080. "id": {
  12081. "type": "string",
  12082. "allOf": [
  12083. {
  12084. "pattern": "^ses"
  12085. }
  12086. ]
  12087. },
  12088. "parentID": {
  12089. "type": "string",
  12090. "allOf": [
  12091. {
  12092. "pattern": "^ses"
  12093. }
  12094. ]
  12095. },
  12096. "fork": {
  12097. "type": "object",
  12098. "properties": {
  12099. "sessionID": {
  12100. "type": "string",
  12101. "allOf": [
  12102. {
  12103. "pattern": "^ses"
  12104. }
  12105. ]
  12106. },
  12107. "boundary": {
  12108. "$ref": "#/components/schemas/Session.ForkBoundary"
  12109. }
  12110. },
  12111. "required": ["sessionID", "boundary"],
  12112. "additionalProperties": false
  12113. },
  12114. "projectID": {
  12115. "type": "string"
  12116. },
  12117. "agent": {
  12118. "type": "string"
  12119. },
  12120. "model": {
  12121. "$ref": "#/components/schemas/Model.Ref"
  12122. },
  12123. "cost": {
  12124. "$ref": "#/components/schemas/Money.USD"
  12125. },
  12126. "tokens": {
  12127. "$ref": "#/components/schemas/TokenUsage.Info"
  12128. },
  12129. "time": {
  12130. "type": "object",
  12131. "properties": {
  12132. "created": {
  12133. "type": "number"
  12134. },
  12135. "updated": {
  12136. "type": "number"
  12137. },
  12138. "archived": {
  12139. "type": "number"
  12140. }
  12141. },
  12142. "required": ["created", "updated"],
  12143. "additionalProperties": false
  12144. },
  12145. "title": {
  12146. "type": "string"
  12147. },
  12148. "location": {
  12149. "$ref": "#/components/schemas/Location.Ref"
  12150. },
  12151. "subpath": {
  12152. "type": "string"
  12153. },
  12154. "revert": {
  12155. "$ref": "#/components/schemas/Session.Revert"
  12156. }
  12157. },
  12158. "required": ["id", "projectID", "cost", "tokens", "time", "location"],
  12159. "additionalProperties": false
  12160. },
  12161. "SessionsResponse": {
  12162. "type": "object",
  12163. "properties": {
  12164. "data": {
  12165. "type": "array",
  12166. "items": {
  12167. "$ref": "#/components/schemas/Session.Info"
  12168. }
  12169. },
  12170. "cursor": {
  12171. "type": "object",
  12172. "properties": {
  12173. "previous": {
  12174. "anyOf": [
  12175. {
  12176. "type": "string"
  12177. },
  12178. {
  12179. "type": "null"
  12180. }
  12181. ]
  12182. },
  12183. "next": {
  12184. "anyOf": [
  12185. {
  12186. "type": "string"
  12187. },
  12188. {
  12189. "type": "null"
  12190. }
  12191. ]
  12192. }
  12193. },
  12194. "additionalProperties": false
  12195. }
  12196. },
  12197. "required": ["data", "cursor"],
  12198. "additionalProperties": false
  12199. },
  12200. "InvalidCursorError": {
  12201. "type": "object",
  12202. "properties": {
  12203. "_tag": {
  12204. "type": "string",
  12205. "enum": ["InvalidCursorError"]
  12206. },
  12207. "message": {
  12208. "type": "string"
  12209. }
  12210. },
  12211. "required": ["_tag", "message"],
  12212. "additionalProperties": false
  12213. },
  12214. "InvalidRequestError1": {
  12215. "type": "object",
  12216. "properties": {
  12217. "_tag": {
  12218. "type": "string",
  12219. "enum": ["InvalidRequestError"]
  12220. },
  12221. "message": {
  12222. "type": "string"
  12223. },
  12224. "kind": {
  12225. "anyOf": [
  12226. {
  12227. "type": "string"
  12228. },
  12229. {
  12230. "type": "null"
  12231. }
  12232. ]
  12233. },
  12234. "field": {
  12235. "anyOf": [
  12236. {
  12237. "type": "string"
  12238. },
  12239. {
  12240. "type": "null"
  12241. }
  12242. ]
  12243. }
  12244. },
  12245. "required": ["_tag", "message"],
  12246. "additionalProperties": false
  12247. },
  12248. "Session.Message.AgentSelected": {
  12249. "type": "object",
  12250. "properties": {
  12251. "id": {
  12252. "type": "string",
  12253. "allOf": [
  12254. {
  12255. "pattern": "^msg_"
  12256. }
  12257. ]
  12258. },
  12259. "metadata": {
  12260. "type": "object"
  12261. },
  12262. "time": {
  12263. "type": "object",
  12264. "properties": {
  12265. "created": {
  12266. "type": "number"
  12267. }
  12268. },
  12269. "required": ["created"],
  12270. "additionalProperties": false
  12271. },
  12272. "type": {
  12273. "type": "string",
  12274. "enum": ["agent-switched"]
  12275. },
  12276. "agent": {
  12277. "type": "string"
  12278. },
  12279. "previous": {
  12280. "type": "string"
  12281. }
  12282. },
  12283. "required": ["id", "time", "type", "agent"],
  12284. "additionalProperties": false
  12285. },
  12286. "Session.Message.ModelSelected": {
  12287. "type": "object",
  12288. "properties": {
  12289. "id": {
  12290. "type": "string",
  12291. "allOf": [
  12292. {
  12293. "pattern": "^msg_"
  12294. }
  12295. ]
  12296. },
  12297. "metadata": {
  12298. "type": "object"
  12299. },
  12300. "time": {
  12301. "type": "object",
  12302. "properties": {
  12303. "created": {
  12304. "type": "number"
  12305. }
  12306. },
  12307. "required": ["created"],
  12308. "additionalProperties": false
  12309. },
  12310. "type": {
  12311. "type": "string",
  12312. "enum": ["model-switched"]
  12313. },
  12314. "model": {
  12315. "$ref": "#/components/schemas/Model.Ref"
  12316. },
  12317. "previous": {
  12318. "$ref": "#/components/schemas/Model.Ref"
  12319. }
  12320. },
  12321. "required": ["id", "time", "type", "model"],
  12322. "additionalProperties": false
  12323. },
  12324. "Session.Message.LocationSwitched": {
  12325. "type": "object",
  12326. "properties": {
  12327. "id": {
  12328. "type": "string",
  12329. "allOf": [
  12330. {
  12331. "pattern": "^msg_"
  12332. }
  12333. ]
  12334. },
  12335. "metadata": {
  12336. "type": "object"
  12337. },
  12338. "time": {
  12339. "type": "object",
  12340. "properties": {
  12341. "created": {
  12342. "type": "number"
  12343. }
  12344. },
  12345. "required": ["created"],
  12346. "additionalProperties": false
  12347. },
  12348. "type": {
  12349. "type": "string",
  12350. "enum": ["location-switched"]
  12351. },
  12352. "location": {
  12353. "$ref": "#/components/schemas/Location.Ref"
  12354. },
  12355. "projectID": {
  12356. "type": "string"
  12357. },
  12358. "subpath": {
  12359. "type": "string"
  12360. },
  12361. "previous": {
  12362. "type": "object",
  12363. "properties": {
  12364. "location": {
  12365. "$ref": "#/components/schemas/Location.Ref"
  12366. },
  12367. "projectID": {
  12368. "type": "string"
  12369. },
  12370. "subpath": {
  12371. "type": "string"
  12372. }
  12373. },
  12374. "required": ["location"],
  12375. "additionalProperties": false
  12376. }
  12377. },
  12378. "required": ["id", "time", "type", "location"],
  12379. "additionalProperties": false
  12380. },
  12381. "Prompt.Base64": {
  12382. "type": "string",
  12383. "allOf": [
  12384. {
  12385. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12386. }
  12387. ]
  12388. },
  12389. "Prompt.FileSource": {
  12390. "anyOf": [
  12391. {
  12392. "type": "object",
  12393. "properties": {
  12394. "type": {
  12395. "type": "string",
  12396. "enum": ["inline"]
  12397. }
  12398. },
  12399. "required": ["type"],
  12400. "additionalProperties": false
  12401. },
  12402. {
  12403. "type": "object",
  12404. "properties": {
  12405. "type": {
  12406. "type": "string",
  12407. "enum": ["uri"]
  12408. },
  12409. "uri": {
  12410. "type": "string"
  12411. }
  12412. },
  12413. "required": ["type", "uri"],
  12414. "additionalProperties": false
  12415. }
  12416. ]
  12417. },
  12418. "Prompt.Mention": {
  12419. "type": "object",
  12420. "properties": {
  12421. "start": {
  12422. "type": "number"
  12423. },
  12424. "end": {
  12425. "type": "number"
  12426. },
  12427. "text": {
  12428. "type": "string"
  12429. }
  12430. },
  12431. "required": ["start", "end", "text"],
  12432. "additionalProperties": false
  12433. },
  12434. "Prompt.FileAttachment": {
  12435. "type": "object",
  12436. "properties": {
  12437. "data": {
  12438. "$ref": "#/components/schemas/Prompt.Base64"
  12439. },
  12440. "mime": {
  12441. "type": "string"
  12442. },
  12443. "source": {
  12444. "$ref": "#/components/schemas/Prompt.FileSource"
  12445. },
  12446. "name": {
  12447. "type": "string"
  12448. },
  12449. "description": {
  12450. "type": "string"
  12451. },
  12452. "mention": {
  12453. "$ref": "#/components/schemas/Prompt.Mention"
  12454. }
  12455. },
  12456. "required": ["data", "mime", "source"],
  12457. "additionalProperties": false
  12458. },
  12459. "Prompt.AgentAttachment": {
  12460. "type": "object",
  12461. "properties": {
  12462. "name": {
  12463. "type": "string"
  12464. },
  12465. "mention": {
  12466. "$ref": "#/components/schemas/Prompt.Mention"
  12467. }
  12468. },
  12469. "required": ["name"],
  12470. "additionalProperties": false
  12471. },
  12472. "Prompt.SkillAttachment": {
  12473. "type": "object",
  12474. "properties": {
  12475. "id": {
  12476. "type": "string"
  12477. },
  12478. "name": {
  12479. "type": "string"
  12480. },
  12481. "text": {
  12482. "type": "string"
  12483. },
  12484. "mention": {
  12485. "$ref": "#/components/schemas/Prompt.Mention"
  12486. }
  12487. },
  12488. "required": ["id", "name", "text"],
  12489. "additionalProperties": false
  12490. },
  12491. "Session.Message.User": {
  12492. "type": "object",
  12493. "properties": {
  12494. "id": {
  12495. "type": "string",
  12496. "allOf": [
  12497. {
  12498. "pattern": "^msg_"
  12499. }
  12500. ]
  12501. },
  12502. "metadata": {
  12503. "type": "object"
  12504. },
  12505. "time": {
  12506. "type": "object",
  12507. "properties": {
  12508. "created": {
  12509. "type": "number"
  12510. }
  12511. },
  12512. "required": ["created"],
  12513. "additionalProperties": false
  12514. },
  12515. "text": {
  12516. "type": "string"
  12517. },
  12518. "files": {
  12519. "type": "array",
  12520. "items": {
  12521. "$ref": "#/components/schemas/Prompt.FileAttachment"
  12522. }
  12523. },
  12524. "agents": {
  12525. "type": "array",
  12526. "items": {
  12527. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  12528. }
  12529. },
  12530. "skills": {
  12531. "type": "array",
  12532. "items": {
  12533. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  12534. }
  12535. },
  12536. "type": {
  12537. "type": "string",
  12538. "enum": ["user"]
  12539. }
  12540. },
  12541. "required": ["id", "time", "text", "type"],
  12542. "additionalProperties": false
  12543. },
  12544. "Session.Message.Synthetic": {
  12545. "type": "object",
  12546. "properties": {
  12547. "id": {
  12548. "type": "string",
  12549. "allOf": [
  12550. {
  12551. "pattern": "^msg_"
  12552. }
  12553. ]
  12554. },
  12555. "metadata": {
  12556. "type": "object"
  12557. },
  12558. "time": {
  12559. "type": "object",
  12560. "properties": {
  12561. "created": {
  12562. "type": "number"
  12563. }
  12564. },
  12565. "required": ["created"],
  12566. "additionalProperties": false
  12567. },
  12568. "text": {
  12569. "type": "string"
  12570. },
  12571. "description": {
  12572. "type": "string"
  12573. },
  12574. "type": {
  12575. "type": "string",
  12576. "enum": ["synthetic"]
  12577. }
  12578. },
  12579. "required": ["id", "time", "text", "type"],
  12580. "additionalProperties": false
  12581. },
  12582. "Session.Message.System": {
  12583. "type": "object",
  12584. "properties": {
  12585. "id": {
  12586. "type": "string",
  12587. "allOf": [
  12588. {
  12589. "pattern": "^msg_"
  12590. }
  12591. ]
  12592. },
  12593. "metadata": {
  12594. "type": "object"
  12595. },
  12596. "time": {
  12597. "type": "object",
  12598. "properties": {
  12599. "created": {
  12600. "type": "number"
  12601. }
  12602. },
  12603. "required": ["created"],
  12604. "additionalProperties": false
  12605. },
  12606. "type": {
  12607. "type": "string",
  12608. "enum": ["system"]
  12609. },
  12610. "text": {
  12611. "type": "string"
  12612. },
  12613. "description": {
  12614. "type": "string"
  12615. }
  12616. },
  12617. "required": ["id", "time", "type", "text"],
  12618. "additionalProperties": false
  12619. },
  12620. "Session.Message.Skill": {
  12621. "type": "object",
  12622. "properties": {
  12623. "id": {
  12624. "type": "string",
  12625. "allOf": [
  12626. {
  12627. "pattern": "^msg_"
  12628. }
  12629. ]
  12630. },
  12631. "metadata": {
  12632. "type": "object"
  12633. },
  12634. "time": {
  12635. "type": "object",
  12636. "properties": {
  12637. "created": {
  12638. "type": "number"
  12639. }
  12640. },
  12641. "required": ["created"],
  12642. "additionalProperties": false
  12643. },
  12644. "type": {
  12645. "type": "string",
  12646. "enum": ["skill"]
  12647. },
  12648. "skill": {
  12649. "type": "string"
  12650. },
  12651. "name": {
  12652. "type": "string"
  12653. },
  12654. "text": {
  12655. "type": "string"
  12656. }
  12657. },
  12658. "required": ["id", "time", "type", "skill", "name", "text"],
  12659. "additionalProperties": false
  12660. },
  12661. "Session.Message.Shell": {
  12662. "type": "object",
  12663. "properties": {
  12664. "id": {
  12665. "type": "string",
  12666. "allOf": [
  12667. {
  12668. "pattern": "^msg_"
  12669. }
  12670. ]
  12671. },
  12672. "metadata": {
  12673. "type": "object"
  12674. },
  12675. "time": {
  12676. "type": "object",
  12677. "properties": {
  12678. "created": {
  12679. "type": "number"
  12680. },
  12681. "completed": {
  12682. "type": "number"
  12683. }
  12684. },
  12685. "required": ["created"],
  12686. "additionalProperties": false
  12687. },
  12688. "type": {
  12689. "type": "string",
  12690. "enum": ["shell"]
  12691. },
  12692. "shellID": {
  12693. "type": "string",
  12694. "allOf": [
  12695. {
  12696. "pattern": "^sh_"
  12697. }
  12698. ]
  12699. },
  12700. "command": {
  12701. "type": "string"
  12702. },
  12703. "status": {
  12704. "type": "string",
  12705. "enum": ["running", "exited", "timeout", "killed"]
  12706. },
  12707. "exit": {
  12708. "anyOf": [
  12709. {
  12710. "anyOf": [
  12711. {
  12712. "type": "number"
  12713. },
  12714. {
  12715. "type": "string",
  12716. "enum": ["NaN"]
  12717. },
  12718. {
  12719. "type": "string",
  12720. "enum": ["Infinity"]
  12721. },
  12722. {
  12723. "type": "string",
  12724. "enum": ["-Infinity"]
  12725. }
  12726. ]
  12727. },
  12728. {
  12729. "type": "string",
  12730. "enum": ["Infinity", "-Infinity", "NaN"]
  12731. }
  12732. ]
  12733. },
  12734. "output": {
  12735. "type": "object",
  12736. "properties": {
  12737. "output": {
  12738. "type": "string"
  12739. },
  12740. "cursor": {
  12741. "type": "integer",
  12742. "allOf": [
  12743. {
  12744. "minimum": 0
  12745. }
  12746. ]
  12747. },
  12748. "size": {
  12749. "type": "integer",
  12750. "allOf": [
  12751. {
  12752. "minimum": 0
  12753. }
  12754. ]
  12755. },
  12756. "truncated": {
  12757. "type": "boolean"
  12758. }
  12759. },
  12760. "required": ["output", "cursor", "size", "truncated"],
  12761. "additionalProperties": false
  12762. }
  12763. },
  12764. "required": ["id", "time", "type", "shellID", "command", "status"],
  12765. "additionalProperties": false
  12766. },
  12767. "Session.Message.ProviderState": {
  12768. "type": "object"
  12769. },
  12770. "Session.Message.Assistant.Text": {
  12771. "type": "object",
  12772. "properties": {
  12773. "type": {
  12774. "type": "string",
  12775. "enum": ["text"]
  12776. },
  12777. "text": {
  12778. "type": "string"
  12779. },
  12780. "state": {
  12781. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12782. }
  12783. },
  12784. "required": ["type", "text"],
  12785. "additionalProperties": false
  12786. },
  12787. "Session.Message.Assistant.Reasoning": {
  12788. "type": "object",
  12789. "properties": {
  12790. "type": {
  12791. "type": "string",
  12792. "enum": ["reasoning"]
  12793. },
  12794. "text": {
  12795. "type": "string"
  12796. },
  12797. "state": {
  12798. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12799. },
  12800. "time": {
  12801. "type": "object",
  12802. "properties": {
  12803. "created": {
  12804. "type": "number"
  12805. },
  12806. "completed": {
  12807. "type": "number"
  12808. }
  12809. },
  12810. "required": ["created"],
  12811. "additionalProperties": false
  12812. }
  12813. },
  12814. "required": ["type", "text"],
  12815. "additionalProperties": false
  12816. },
  12817. "Session.Message.ToolState.Streaming": {
  12818. "type": "object",
  12819. "properties": {
  12820. "status": {
  12821. "type": "string",
  12822. "enum": ["streaming"]
  12823. },
  12824. "input": {
  12825. "type": "string"
  12826. }
  12827. },
  12828. "required": ["status", "input"],
  12829. "additionalProperties": false
  12830. },
  12831. "Session.Message.ToolState.Running": {
  12832. "type": "object",
  12833. "properties": {
  12834. "status": {
  12835. "type": "string",
  12836. "enum": ["running"]
  12837. },
  12838. "input": {
  12839. "type": "object"
  12840. },
  12841. "metadata": {
  12842. "type": "object"
  12843. }
  12844. },
  12845. "required": ["status", "input", "metadata"],
  12846. "additionalProperties": false
  12847. },
  12848. "Tool.TextContent": {
  12849. "type": "object",
  12850. "properties": {
  12851. "type": {
  12852. "type": "string",
  12853. "enum": ["text"]
  12854. },
  12855. "text": {
  12856. "type": "string"
  12857. }
  12858. },
  12859. "required": ["type", "text"],
  12860. "additionalProperties": false
  12861. },
  12862. "Tool.FileContent": {
  12863. "type": "object",
  12864. "properties": {
  12865. "type": {
  12866. "type": "string",
  12867. "enum": ["file"]
  12868. },
  12869. "uri": {
  12870. "type": "string"
  12871. },
  12872. "mime": {
  12873. "type": "string"
  12874. },
  12875. "name": {
  12876. "anyOf": [
  12877. {
  12878. "type": "string"
  12879. },
  12880. {
  12881. "type": "null"
  12882. }
  12883. ]
  12884. }
  12885. },
  12886. "required": ["type", "uri", "mime"],
  12887. "additionalProperties": false
  12888. },
  12889. "Tool.Content": {
  12890. "anyOf": [
  12891. {
  12892. "$ref": "#/components/schemas/Tool.TextContent"
  12893. },
  12894. {
  12895. "$ref": "#/components/schemas/Tool.FileContent"
  12896. }
  12897. ]
  12898. },
  12899. "Session.Message.ToolState.Completed": {
  12900. "type": "object",
  12901. "properties": {
  12902. "status": {
  12903. "type": "string",
  12904. "enum": ["completed"]
  12905. },
  12906. "input": {
  12907. "type": "object"
  12908. },
  12909. "content": {
  12910. "type": "array",
  12911. "prefixItems": [
  12912. {
  12913. "$ref": "#/components/schemas/Tool.Content"
  12914. }
  12915. ],
  12916. "minItems": 1,
  12917. "items": {
  12918. "$ref": "#/components/schemas/Tool.Content"
  12919. }
  12920. },
  12921. "metadata": {
  12922. "type": "object"
  12923. }
  12924. },
  12925. "required": ["status", "input", "content"],
  12926. "additionalProperties": false
  12927. },
  12928. "Session.StructuredError": {
  12929. "type": "object",
  12930. "properties": {
  12931. "type": {
  12932. "type": "string"
  12933. },
  12934. "message": {
  12935. "type": "string"
  12936. },
  12937. "status": {
  12938. "type": "integer",
  12939. "allOf": [
  12940. {
  12941. "minimum": 100,
  12942. "maximum": 599
  12943. }
  12944. ]
  12945. }
  12946. },
  12947. "required": ["type", "message"],
  12948. "additionalProperties": false
  12949. },
  12950. "Session.Message.ToolState.Error": {
  12951. "type": "object",
  12952. "properties": {
  12953. "status": {
  12954. "type": "string",
  12955. "enum": ["error"]
  12956. },
  12957. "input": {
  12958. "type": "object"
  12959. },
  12960. "error": {
  12961. "$ref": "#/components/schemas/Session.StructuredError"
  12962. },
  12963. "content": {
  12964. "type": "array",
  12965. "prefixItems": [
  12966. {
  12967. "$ref": "#/components/schemas/Tool.Content"
  12968. }
  12969. ],
  12970. "minItems": 1,
  12971. "items": {
  12972. "$ref": "#/components/schemas/Tool.Content"
  12973. }
  12974. },
  12975. "metadata": {
  12976. "type": "object"
  12977. }
  12978. },
  12979. "required": ["status", "input", "error"],
  12980. "additionalProperties": false
  12981. },
  12982. "Session.Message.Assistant.Tool": {
  12983. "type": "object",
  12984. "properties": {
  12985. "type": {
  12986. "type": "string",
  12987. "enum": ["tool"]
  12988. },
  12989. "id": {
  12990. "type": "string"
  12991. },
  12992. "name": {
  12993. "type": "string"
  12994. },
  12995. "executed": {
  12996. "type": "boolean"
  12997. },
  12998. "providerState": {
  12999. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13000. },
  13001. "providerResultState": {
  13002. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13003. },
  13004. "state": {
  13005. "anyOf": [
  13006. {
  13007. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  13008. },
  13009. {
  13010. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  13011. },
  13012. {
  13013. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  13014. },
  13015. {
  13016. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  13017. }
  13018. ]
  13019. },
  13020. "time": {
  13021. "type": "object",
  13022. "properties": {
  13023. "created": {
  13024. "type": "number"
  13025. },
  13026. "ran": {
  13027. "type": "number"
  13028. },
  13029. "completed": {
  13030. "type": "number"
  13031. }
  13032. },
  13033. "required": ["created"],
  13034. "additionalProperties": false
  13035. }
  13036. },
  13037. "required": ["type", "id", "name", "state", "time"],
  13038. "additionalProperties": false
  13039. },
  13040. "Session.Message.Assistant.Retry": {
  13041. "type": "object",
  13042. "properties": {
  13043. "attempt": {
  13044. "type": "integer",
  13045. "allOf": [
  13046. {
  13047. "exclusiveMinimum": 0
  13048. }
  13049. ]
  13050. },
  13051. "at": {
  13052. "type": "number"
  13053. },
  13054. "error": {
  13055. "$ref": "#/components/schemas/Session.StructuredError"
  13056. }
  13057. },
  13058. "required": ["attempt", "at", "error"],
  13059. "additionalProperties": false
  13060. },
  13061. "Session.Message.Assistant": {
  13062. "type": "object",
  13063. "properties": {
  13064. "id": {
  13065. "type": "string",
  13066. "allOf": [
  13067. {
  13068. "pattern": "^msg_"
  13069. }
  13070. ]
  13071. },
  13072. "metadata": {
  13073. "type": "object"
  13074. },
  13075. "time": {
  13076. "type": "object",
  13077. "properties": {
  13078. "created": {
  13079. "type": "number"
  13080. },
  13081. "completed": {
  13082. "type": "number"
  13083. }
  13084. },
  13085. "required": ["created"],
  13086. "additionalProperties": false
  13087. },
  13088. "type": {
  13089. "type": "string",
  13090. "enum": ["assistant"]
  13091. },
  13092. "agent": {
  13093. "type": "string"
  13094. },
  13095. "model": {
  13096. "$ref": "#/components/schemas/Model.Ref"
  13097. },
  13098. "content": {
  13099. "type": "array",
  13100. "items": {
  13101. "anyOf": [
  13102. {
  13103. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  13104. },
  13105. {
  13106. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  13107. },
  13108. {
  13109. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  13110. }
  13111. ]
  13112. }
  13113. },
  13114. "snapshot": {
  13115. "type": "object",
  13116. "properties": {
  13117. "start": {
  13118. "type": "string"
  13119. },
  13120. "end": {
  13121. "type": "string"
  13122. },
  13123. "files": {
  13124. "type": "array",
  13125. "items": {
  13126. "type": "string"
  13127. }
  13128. }
  13129. },
  13130. "additionalProperties": false
  13131. },
  13132. "finish": {
  13133. "type": "string",
  13134. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  13135. },
  13136. "cost": {
  13137. "$ref": "#/components/schemas/Money.USD"
  13138. },
  13139. "tokens": {
  13140. "$ref": "#/components/schemas/TokenUsage.Info"
  13141. },
  13142. "error": {
  13143. "$ref": "#/components/schemas/Session.StructuredError"
  13144. },
  13145. "retry": {
  13146. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  13147. }
  13148. },
  13149. "required": ["id", "time", "type", "agent", "model", "content"],
  13150. "additionalProperties": false
  13151. },
  13152. "Session.Message.Compaction.Running": {
  13153. "type": "object",
  13154. "properties": {
  13155. "type": {
  13156. "type": "string",
  13157. "enum": ["compaction"]
  13158. },
  13159. "id": {
  13160. "type": "string",
  13161. "allOf": [
  13162. {
  13163. "pattern": "^msg_"
  13164. }
  13165. ]
  13166. },
  13167. "metadata": {
  13168. "type": "object"
  13169. },
  13170. "time": {
  13171. "type": "object",
  13172. "properties": {
  13173. "created": {
  13174. "type": "number"
  13175. }
  13176. },
  13177. "required": ["created"],
  13178. "additionalProperties": false
  13179. },
  13180. "status": {
  13181. "type": "string",
  13182. "enum": ["running"]
  13183. },
  13184. "reason": {
  13185. "type": "string",
  13186. "enum": ["auto", "manual"]
  13187. },
  13188. "summary": {
  13189. "type": "string"
  13190. },
  13191. "recent": {
  13192. "type": "string"
  13193. }
  13194. },
  13195. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13196. "additionalProperties": false
  13197. },
  13198. "Session.Message.Compaction.Completed": {
  13199. "type": "object",
  13200. "properties": {
  13201. "type": {
  13202. "type": "string",
  13203. "enum": ["compaction"]
  13204. },
  13205. "id": {
  13206. "type": "string",
  13207. "allOf": [
  13208. {
  13209. "pattern": "^msg_"
  13210. }
  13211. ]
  13212. },
  13213. "metadata": {
  13214. "type": "object"
  13215. },
  13216. "time": {
  13217. "type": "object",
  13218. "properties": {
  13219. "created": {
  13220. "type": "number"
  13221. }
  13222. },
  13223. "required": ["created"],
  13224. "additionalProperties": false
  13225. },
  13226. "status": {
  13227. "type": "string",
  13228. "enum": ["completed"]
  13229. },
  13230. "reason": {
  13231. "type": "string",
  13232. "enum": ["auto", "manual"]
  13233. },
  13234. "summary": {
  13235. "type": "string"
  13236. },
  13237. "recent": {
  13238. "type": "string"
  13239. }
  13240. },
  13241. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13242. "additionalProperties": false
  13243. },
  13244. "Session.Message.Compaction.Failed": {
  13245. "type": "object",
  13246. "properties": {
  13247. "type": {
  13248. "type": "string",
  13249. "enum": ["compaction"]
  13250. },
  13251. "id": {
  13252. "type": "string",
  13253. "allOf": [
  13254. {
  13255. "pattern": "^msg_"
  13256. }
  13257. ]
  13258. },
  13259. "metadata": {
  13260. "type": "object"
  13261. },
  13262. "time": {
  13263. "type": "object",
  13264. "properties": {
  13265. "created": {
  13266. "type": "number"
  13267. }
  13268. },
  13269. "required": ["created"],
  13270. "additionalProperties": false
  13271. },
  13272. "status": {
  13273. "type": "string",
  13274. "enum": ["failed"]
  13275. },
  13276. "reason": {
  13277. "type": "string",
  13278. "enum": ["auto", "manual"]
  13279. },
  13280. "error": {
  13281. "$ref": "#/components/schemas/Session.StructuredError"
  13282. }
  13283. },
  13284. "required": ["type", "id", "time", "status", "reason", "error"],
  13285. "additionalProperties": false
  13286. },
  13287. "Session.Message.Compaction": {
  13288. "anyOf": [
  13289. {
  13290. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  13291. },
  13292. {
  13293. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  13294. },
  13295. {
  13296. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  13297. }
  13298. ]
  13299. },
  13300. "Session.Message.Info": {
  13301. "anyOf": [
  13302. {
  13303. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  13304. },
  13305. {
  13306. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  13307. },
  13308. {
  13309. "$ref": "#/components/schemas/Session.Message.LocationSwitched"
  13310. },
  13311. {
  13312. "$ref": "#/components/schemas/Session.Message.User"
  13313. },
  13314. {
  13315. "$ref": "#/components/schemas/Session.Message.Synthetic"
  13316. },
  13317. {
  13318. "$ref": "#/components/schemas/Session.Message.System"
  13319. },
  13320. {
  13321. "$ref": "#/components/schemas/Session.Message.Skill"
  13322. },
  13323. {
  13324. "$ref": "#/components/schemas/Session.Message.Shell"
  13325. },
  13326. {
  13327. "$ref": "#/components/schemas/Session.Message.Assistant"
  13328. },
  13329. {
  13330. "$ref": "#/components/schemas/Session.Message.Compaction"
  13331. }
  13332. ]
  13333. },
  13334. "ConflictError": {
  13335. "type": "object",
  13336. "properties": {
  13337. "_tag": {
  13338. "type": "string",
  13339. "enum": ["ConflictError"]
  13340. },
  13341. "message": {
  13342. "type": "string"
  13343. },
  13344. "resource": {
  13345. "anyOf": [
  13346. {
  13347. "type": "string"
  13348. },
  13349. {
  13350. "type": "null"
  13351. }
  13352. ]
  13353. }
  13354. },
  13355. "required": ["_tag", "message"],
  13356. "additionalProperties": false
  13357. },
  13358. "SessionTransfer.Data": {
  13359. "type": "object",
  13360. "properties": {
  13361. "info": {
  13362. "$ref": "#/components/schemas/Session.Info"
  13363. },
  13364. "messages": {
  13365. "type": "array",
  13366. "items": {
  13367. "$ref": "#/components/schemas/Session.Message.Info"
  13368. }
  13369. }
  13370. },
  13371. "required": ["info", "messages"],
  13372. "additionalProperties": false
  13373. },
  13374. "SessionNotFoundError": {
  13375. "type": "object",
  13376. "properties": {
  13377. "_tag": {
  13378. "type": "string",
  13379. "enum": ["SessionNotFoundError"]
  13380. },
  13381. "sessionID": {
  13382. "type": "string"
  13383. },
  13384. "message": {
  13385. "type": "string"
  13386. }
  13387. },
  13388. "required": ["_tag", "sessionID", "message"],
  13389. "additionalProperties": false
  13390. },
  13391. "UnknownError": {
  13392. "type": "object",
  13393. "properties": {
  13394. "_tag": {
  13395. "type": "string",
  13396. "enum": ["UnknownError"]
  13397. },
  13398. "message": {
  13399. "type": "string"
  13400. },
  13401. "ref": {
  13402. "anyOf": [
  13403. {
  13404. "type": "string"
  13405. },
  13406. {
  13407. "type": "null"
  13408. }
  13409. ]
  13410. }
  13411. },
  13412. "required": ["_tag", "message"],
  13413. "additionalProperties": false
  13414. },
  13415. "SessionActive": {
  13416. "type": "object",
  13417. "properties": {
  13418. "type": {
  13419. "type": "string",
  13420. "enum": ["running"]
  13421. }
  13422. },
  13423. "required": ["type"],
  13424. "additionalProperties": false
  13425. },
  13426. "Session.ForkRequestBoundary": {
  13427. "anyOf": [
  13428. {
  13429. "type": "object",
  13430. "properties": {
  13431. "type": {
  13432. "type": "string",
  13433. "enum": ["before"]
  13434. },
  13435. "messageID": {
  13436. "type": "string",
  13437. "allOf": [
  13438. {
  13439. "pattern": "^msg_"
  13440. }
  13441. ]
  13442. }
  13443. },
  13444. "required": ["type", "messageID"],
  13445. "additionalProperties": false
  13446. },
  13447. {
  13448. "type": "object",
  13449. "properties": {
  13450. "type": {
  13451. "type": "string",
  13452. "enum": ["through"]
  13453. }
  13454. },
  13455. "required": ["type"],
  13456. "additionalProperties": false
  13457. }
  13458. ]
  13459. },
  13460. "MessageNotFoundError": {
  13461. "type": "object",
  13462. "properties": {
  13463. "_tag": {
  13464. "type": "string",
  13465. "enum": ["MessageNotFoundError"]
  13466. },
  13467. "sessionID": {
  13468. "type": "string"
  13469. },
  13470. "messageID": {
  13471. "type": "string"
  13472. },
  13473. "message": {
  13474. "type": "string"
  13475. }
  13476. },
  13477. "required": ["_tag", "sessionID", "messageID", "message"],
  13478. "additionalProperties": false
  13479. },
  13480. "Session.Inbox.Delivery": {
  13481. "type": "string",
  13482. "enum": ["steer", "queue"]
  13483. },
  13484. "PromptInput.FileAttachment": {
  13485. "type": "object",
  13486. "properties": {
  13487. "uri": {
  13488. "type": "string"
  13489. },
  13490. "name": {
  13491. "type": "string"
  13492. },
  13493. "description": {
  13494. "type": "string"
  13495. },
  13496. "mention": {
  13497. "$ref": "#/components/schemas/Prompt.Mention"
  13498. }
  13499. },
  13500. "required": ["uri"],
  13501. "additionalProperties": false
  13502. },
  13503. "PromptInput.SkillAttachment": {
  13504. "type": "object",
  13505. "properties": {
  13506. "id": {
  13507. "type": "string"
  13508. },
  13509. "mention": {
  13510. "$ref": "#/components/schemas/Prompt.Mention"
  13511. }
  13512. },
  13513. "required": ["id"],
  13514. "additionalProperties": false
  13515. },
  13516. "Session.Inbox.UserPayload": {
  13517. "type": "object",
  13518. "properties": {
  13519. "text": {
  13520. "type": "string"
  13521. },
  13522. "files": {
  13523. "type": "array",
  13524. "items": {
  13525. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13526. }
  13527. },
  13528. "agents": {
  13529. "type": "array",
  13530. "items": {
  13531. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13532. }
  13533. },
  13534. "skills": {
  13535. "type": "array",
  13536. "items": {
  13537. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  13538. }
  13539. },
  13540. "metadata": {
  13541. "type": "object"
  13542. }
  13543. },
  13544. "required": ["text"],
  13545. "additionalProperties": false
  13546. },
  13547. "Session.Inbox.User": {
  13548. "type": "object",
  13549. "properties": {
  13550. "id": {
  13551. "type": "string",
  13552. "allOf": [
  13553. {
  13554. "pattern": "^msg_"
  13555. }
  13556. ]
  13557. },
  13558. "sessionID": {
  13559. "type": "string",
  13560. "allOf": [
  13561. {
  13562. "pattern": "^ses"
  13563. }
  13564. ]
  13565. },
  13566. "timeCreated": {
  13567. "type": "number"
  13568. },
  13569. "type": {
  13570. "type": "string",
  13571. "enum": ["user"]
  13572. },
  13573. "payload": {
  13574. "$ref": "#/components/schemas/Session.Inbox.UserPayload"
  13575. },
  13576. "delivery": {
  13577. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13578. }
  13579. },
  13580. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13581. "additionalProperties": false
  13582. },
  13583. "CommandNotFoundError": {
  13584. "type": "object",
  13585. "properties": {
  13586. "_tag": {
  13587. "type": "string",
  13588. "enum": ["CommandNotFoundError"]
  13589. },
  13590. "command": {
  13591. "type": "string"
  13592. },
  13593. "message": {
  13594. "type": "string"
  13595. }
  13596. },
  13597. "required": ["_tag", "command", "message"],
  13598. "additionalProperties": false
  13599. },
  13600. "CommandEvaluationError": {
  13601. "type": "object",
  13602. "properties": {
  13603. "_tag": {
  13604. "type": "string",
  13605. "enum": ["CommandEvaluationError"]
  13606. },
  13607. "command": {
  13608. "type": "string"
  13609. },
  13610. "message": {
  13611. "type": "string"
  13612. }
  13613. },
  13614. "required": ["_tag", "command", "message"],
  13615. "additionalProperties": false
  13616. },
  13617. "SkillNotFoundError": {
  13618. "type": "object",
  13619. "properties": {
  13620. "_tag": {
  13621. "type": "string",
  13622. "enum": ["SkillNotFoundError"]
  13623. },
  13624. "skill": {
  13625. "type": "string"
  13626. },
  13627. "message": {
  13628. "type": "string"
  13629. }
  13630. },
  13631. "required": ["_tag", "skill", "message"],
  13632. "additionalProperties": false
  13633. },
  13634. "Session.Inbox.SyntheticPayload": {
  13635. "type": "object",
  13636. "properties": {
  13637. "text": {
  13638. "type": "string"
  13639. },
  13640. "description": {
  13641. "type": "string"
  13642. },
  13643. "metadata": {
  13644. "type": "object"
  13645. }
  13646. },
  13647. "required": ["text"],
  13648. "additionalProperties": false
  13649. },
  13650. "Session.Inbox.Synthetic": {
  13651. "type": "object",
  13652. "properties": {
  13653. "id": {
  13654. "type": "string",
  13655. "allOf": [
  13656. {
  13657. "pattern": "^msg_"
  13658. }
  13659. ]
  13660. },
  13661. "sessionID": {
  13662. "type": "string",
  13663. "allOf": [
  13664. {
  13665. "pattern": "^ses"
  13666. }
  13667. ]
  13668. },
  13669. "timeCreated": {
  13670. "type": "number"
  13671. },
  13672. "type": {
  13673. "type": "string",
  13674. "enum": ["synthetic"]
  13675. },
  13676. "payload": {
  13677. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload"
  13678. },
  13679. "delivery": {
  13680. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13681. }
  13682. },
  13683. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13684. "additionalProperties": false
  13685. },
  13686. "Session.Inbox.CompactionPayload": {
  13687. "anyOf": [
  13688. {
  13689. "type": "object"
  13690. },
  13691. {
  13692. "type": "array"
  13693. }
  13694. ]
  13695. },
  13696. "Session.Inbox.Compaction": {
  13697. "type": "object",
  13698. "properties": {
  13699. "id": {
  13700. "type": "string",
  13701. "allOf": [
  13702. {
  13703. "pattern": "^msg_"
  13704. }
  13705. ]
  13706. },
  13707. "sessionID": {
  13708. "type": "string",
  13709. "allOf": [
  13710. {
  13711. "pattern": "^ses"
  13712. }
  13713. ]
  13714. },
  13715. "timeCreated": {
  13716. "type": "number"
  13717. },
  13718. "type": {
  13719. "type": "string",
  13720. "enum": ["compaction"]
  13721. },
  13722. "payload": {
  13723. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  13724. },
  13725. "delivery": {
  13726. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13727. }
  13728. },
  13729. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13730. "additionalProperties": false
  13731. },
  13732. "ServiceUnavailableError": {
  13733. "type": "object",
  13734. "properties": {
  13735. "_tag": {
  13736. "type": "string",
  13737. "enum": ["ServiceUnavailableError"]
  13738. },
  13739. "message": {
  13740. "type": "string"
  13741. },
  13742. "service": {
  13743. "anyOf": [
  13744. {
  13745. "type": "string"
  13746. },
  13747. {
  13748. "type": "null"
  13749. }
  13750. ]
  13751. }
  13752. },
  13753. "required": ["_tag", "message"],
  13754. "additionalProperties": false
  13755. },
  13756. "SessionBusyError": {
  13757. "type": "object",
  13758. "properties": {
  13759. "_tag": {
  13760. "type": "string",
  13761. "enum": ["SessionBusyError"]
  13762. },
  13763. "sessionID": {
  13764. "type": "string"
  13765. },
  13766. "message": {
  13767. "type": "string"
  13768. }
  13769. },
  13770. "required": ["_tag", "sessionID", "message"],
  13771. "additionalProperties": false
  13772. },
  13773. "Session.Inbox.MovePayload": {
  13774. "type": "object",
  13775. "properties": {
  13776. "location": {
  13777. "$ref": "#/components/schemas/Location.Ref"
  13778. },
  13779. "projectID": {
  13780. "type": "string"
  13781. },
  13782. "subpath": {
  13783. "type": "string"
  13784. }
  13785. },
  13786. "required": ["location", "projectID"],
  13787. "additionalProperties": false
  13788. },
  13789. "Session.Inbox.Move": {
  13790. "type": "object",
  13791. "properties": {
  13792. "id": {
  13793. "type": "string",
  13794. "allOf": [
  13795. {
  13796. "pattern": "^msg_"
  13797. }
  13798. ]
  13799. },
  13800. "sessionID": {
  13801. "type": "string",
  13802. "allOf": [
  13803. {
  13804. "pattern": "^ses"
  13805. }
  13806. ]
  13807. },
  13808. "timeCreated": {
  13809. "type": "number"
  13810. },
  13811. "type": {
  13812. "type": "string",
  13813. "enum": ["move"]
  13814. },
  13815. "payload": {
  13816. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  13817. },
  13818. "delivery": {
  13819. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13820. }
  13821. },
  13822. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13823. "additionalProperties": false
  13824. },
  13825. "Session.Inbox.Info": {
  13826. "anyOf": [
  13827. {
  13828. "$ref": "#/components/schemas/Session.Inbox.User"
  13829. },
  13830. {
  13831. "$ref": "#/components/schemas/Session.Inbox.Synthetic"
  13832. },
  13833. {
  13834. "$ref": "#/components/schemas/Session.Inbox.Compaction"
  13835. },
  13836. {
  13837. "$ref": "#/components/schemas/Session.Inbox.Move"
  13838. }
  13839. ]
  13840. },
  13841. "InstructionEntry.Key": {
  13842. "type": "string",
  13843. "allOf": [
  13844. {
  13845. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  13846. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  13847. }
  13848. ]
  13849. },
  13850. "InstructionEntry.Info": {
  13851. "type": "object",
  13852. "properties": {
  13853. "key": {
  13854. "$ref": "#/components/schemas/InstructionEntry.Key"
  13855. },
  13856. "value": {}
  13857. },
  13858. "required": ["key", "value"],
  13859. "additionalProperties": false
  13860. },
  13861. "InstructionEntryValueTooLargeError": {
  13862. "type": "object",
  13863. "properties": {
  13864. "_tag": {
  13865. "type": "string",
  13866. "enum": ["InstructionEntryValueTooLargeError"]
  13867. },
  13868. "actualBytes": {
  13869. "type": "integer"
  13870. },
  13871. "maxBytes": {
  13872. "type": "integer"
  13873. },
  13874. "message": {
  13875. "type": "string"
  13876. }
  13877. },
  13878. "required": ["_tag", "actualBytes", "maxBytes", "message"],
  13879. "additionalProperties": false
  13880. },
  13881. "SessionGenerateResponse": {
  13882. "type": "object",
  13883. "properties": {
  13884. "data": {
  13885. "type": "object",
  13886. "properties": {
  13887. "text": {
  13888. "type": "string"
  13889. }
  13890. },
  13891. "required": ["text"],
  13892. "additionalProperties": false
  13893. }
  13894. },
  13895. "required": ["data"],
  13896. "additionalProperties": false
  13897. },
  13898. "session.created": {
  13899. "type": "object",
  13900. "properties": {
  13901. "id": {
  13902. "type": "string",
  13903. "allOf": [
  13904. {
  13905. "pattern": "^evt_"
  13906. }
  13907. ]
  13908. },
  13909. "created": {
  13910. "type": "number"
  13911. },
  13912. "metadata": {
  13913. "type": "object"
  13914. },
  13915. "type": {
  13916. "type": "string",
  13917. "enum": ["session.created"]
  13918. },
  13919. "durable": {
  13920. "type": "object",
  13921. "properties": {
  13922. "aggregateID": {
  13923. "type": "string"
  13924. },
  13925. "seq": {
  13926. "type": "integer",
  13927. "allOf": [
  13928. {
  13929. "minimum": 0
  13930. }
  13931. ]
  13932. },
  13933. "version": {
  13934. "type": "number",
  13935. "enum": [1]
  13936. }
  13937. },
  13938. "required": ["aggregateID", "seq", "version"],
  13939. "additionalProperties": false
  13940. },
  13941. "location": {
  13942. "$ref": "#/components/schemas/Location.Ref"
  13943. },
  13944. "data": {
  13945. "type": "object",
  13946. "properties": {
  13947. "sessionID": {
  13948. "type": "string",
  13949. "allOf": [
  13950. {
  13951. "pattern": "^ses"
  13952. }
  13953. ]
  13954. },
  13955. "projectID": {
  13956. "type": "string"
  13957. },
  13958. "location": {
  13959. "$ref": "#/components/schemas/Location.Ref"
  13960. },
  13961. "subpath": {
  13962. "type": "string"
  13963. },
  13964. "parentID": {
  13965. "type": "string",
  13966. "allOf": [
  13967. {
  13968. "pattern": "^ses"
  13969. }
  13970. ]
  13971. },
  13972. "slug": {
  13973. "type": "string"
  13974. },
  13975. "title": {
  13976. "type": "string"
  13977. },
  13978. "agent": {
  13979. "type": "string"
  13980. },
  13981. "model": {
  13982. "$ref": "#/components/schemas/Model.Ref"
  13983. },
  13984. "version": {
  13985. "type": "string"
  13986. }
  13987. },
  13988. "required": ["sessionID", "projectID", "location", "slug", "version"],
  13989. "additionalProperties": false
  13990. }
  13991. },
  13992. "required": ["id", "created", "type", "durable", "data"],
  13993. "additionalProperties": false
  13994. },
  13995. "session.agent.selected": {
  13996. "type": "object",
  13997. "properties": {
  13998. "id": {
  13999. "type": "string",
  14000. "allOf": [
  14001. {
  14002. "pattern": "^evt_"
  14003. }
  14004. ]
  14005. },
  14006. "created": {
  14007. "type": "number"
  14008. },
  14009. "metadata": {
  14010. "type": "object"
  14011. },
  14012. "type": {
  14013. "type": "string",
  14014. "enum": ["session.agent.selected"]
  14015. },
  14016. "durable": {
  14017. "type": "object",
  14018. "properties": {
  14019. "aggregateID": {
  14020. "type": "string"
  14021. },
  14022. "seq": {
  14023. "type": "integer",
  14024. "allOf": [
  14025. {
  14026. "minimum": 0
  14027. }
  14028. ]
  14029. },
  14030. "version": {
  14031. "type": "number",
  14032. "enum": [1]
  14033. }
  14034. },
  14035. "required": ["aggregateID", "seq", "version"],
  14036. "additionalProperties": false
  14037. },
  14038. "location": {
  14039. "$ref": "#/components/schemas/Location.Ref"
  14040. },
  14041. "data": {
  14042. "type": "object",
  14043. "properties": {
  14044. "sessionID": {
  14045. "type": "string",
  14046. "allOf": [
  14047. {
  14048. "pattern": "^ses"
  14049. }
  14050. ]
  14051. },
  14052. "agent": {
  14053. "type": "string"
  14054. },
  14055. "previous": {
  14056. "type": "string"
  14057. }
  14058. },
  14059. "required": ["sessionID", "agent"],
  14060. "additionalProperties": false
  14061. }
  14062. },
  14063. "required": ["id", "created", "type", "durable", "data"],
  14064. "additionalProperties": false
  14065. },
  14066. "session.model.selected": {
  14067. "type": "object",
  14068. "properties": {
  14069. "id": {
  14070. "type": "string",
  14071. "allOf": [
  14072. {
  14073. "pattern": "^evt_"
  14074. }
  14075. ]
  14076. },
  14077. "created": {
  14078. "type": "number"
  14079. },
  14080. "metadata": {
  14081. "type": "object"
  14082. },
  14083. "type": {
  14084. "type": "string",
  14085. "enum": ["session.model.selected"]
  14086. },
  14087. "durable": {
  14088. "type": "object",
  14089. "properties": {
  14090. "aggregateID": {
  14091. "type": "string"
  14092. },
  14093. "seq": {
  14094. "type": "integer",
  14095. "allOf": [
  14096. {
  14097. "minimum": 0
  14098. }
  14099. ]
  14100. },
  14101. "version": {
  14102. "type": "number",
  14103. "enum": [1]
  14104. }
  14105. },
  14106. "required": ["aggregateID", "seq", "version"],
  14107. "additionalProperties": false
  14108. },
  14109. "location": {
  14110. "$ref": "#/components/schemas/Location.Ref"
  14111. },
  14112. "data": {
  14113. "type": "object",
  14114. "properties": {
  14115. "sessionID": {
  14116. "type": "string",
  14117. "allOf": [
  14118. {
  14119. "pattern": "^ses"
  14120. }
  14121. ]
  14122. },
  14123. "model": {
  14124. "$ref": "#/components/schemas/Model.Ref"
  14125. },
  14126. "previous": {
  14127. "$ref": "#/components/schemas/Model.Ref"
  14128. }
  14129. },
  14130. "required": ["sessionID", "model"],
  14131. "additionalProperties": false
  14132. }
  14133. },
  14134. "required": ["id", "created", "type", "durable", "data"],
  14135. "additionalProperties": false
  14136. },
  14137. "session.moved": {
  14138. "type": "object",
  14139. "properties": {
  14140. "id": {
  14141. "type": "string",
  14142. "allOf": [
  14143. {
  14144. "pattern": "^evt_"
  14145. }
  14146. ]
  14147. },
  14148. "created": {
  14149. "type": "number"
  14150. },
  14151. "metadata": {
  14152. "type": "object"
  14153. },
  14154. "type": {
  14155. "type": "string",
  14156. "enum": ["session.moved"]
  14157. },
  14158. "durable": {
  14159. "type": "object",
  14160. "properties": {
  14161. "aggregateID": {
  14162. "type": "string"
  14163. },
  14164. "seq": {
  14165. "type": "integer",
  14166. "allOf": [
  14167. {
  14168. "minimum": 0
  14169. }
  14170. ]
  14171. },
  14172. "version": {
  14173. "type": "number",
  14174. "enum": [1]
  14175. }
  14176. },
  14177. "required": ["aggregateID", "seq", "version"],
  14178. "additionalProperties": false
  14179. },
  14180. "location": {
  14181. "$ref": "#/components/schemas/Location.Ref"
  14182. },
  14183. "data": {
  14184. "type": "object",
  14185. "properties": {
  14186. "sessionID": {
  14187. "type": "string",
  14188. "allOf": [
  14189. {
  14190. "pattern": "^ses"
  14191. }
  14192. ]
  14193. },
  14194. "location": {
  14195. "$ref": "#/components/schemas/Location.Ref"
  14196. },
  14197. "projectID": {
  14198. "type": "string"
  14199. },
  14200. "subpath": {
  14201. "type": "string"
  14202. }
  14203. },
  14204. "required": ["sessionID", "location", "projectID"],
  14205. "additionalProperties": false
  14206. }
  14207. },
  14208. "required": ["id", "created", "type", "durable", "data"],
  14209. "additionalProperties": false
  14210. },
  14211. "session.renamed": {
  14212. "type": "object",
  14213. "properties": {
  14214. "id": {
  14215. "type": "string",
  14216. "allOf": [
  14217. {
  14218. "pattern": "^evt_"
  14219. }
  14220. ]
  14221. },
  14222. "created": {
  14223. "type": "number"
  14224. },
  14225. "metadata": {
  14226. "type": "object"
  14227. },
  14228. "type": {
  14229. "type": "string",
  14230. "enum": ["session.renamed"]
  14231. },
  14232. "durable": {
  14233. "type": "object",
  14234. "properties": {
  14235. "aggregateID": {
  14236. "type": "string"
  14237. },
  14238. "seq": {
  14239. "type": "integer",
  14240. "allOf": [
  14241. {
  14242. "minimum": 0
  14243. }
  14244. ]
  14245. },
  14246. "version": {
  14247. "type": "number",
  14248. "enum": [1]
  14249. }
  14250. },
  14251. "required": ["aggregateID", "seq", "version"],
  14252. "additionalProperties": false
  14253. },
  14254. "location": {
  14255. "$ref": "#/components/schemas/Location.Ref"
  14256. },
  14257. "data": {
  14258. "type": "object",
  14259. "properties": {
  14260. "sessionID": {
  14261. "type": "string",
  14262. "allOf": [
  14263. {
  14264. "pattern": "^ses"
  14265. }
  14266. ]
  14267. },
  14268. "title": {
  14269. "type": "string"
  14270. }
  14271. },
  14272. "required": ["sessionID", "title"],
  14273. "additionalProperties": false
  14274. }
  14275. },
  14276. "required": ["id", "created", "type", "durable", "data"],
  14277. "additionalProperties": false
  14278. },
  14279. "session.deleted": {
  14280. "type": "object",
  14281. "properties": {
  14282. "id": {
  14283. "type": "string",
  14284. "allOf": [
  14285. {
  14286. "pattern": "^evt_"
  14287. }
  14288. ]
  14289. },
  14290. "created": {
  14291. "type": "number"
  14292. },
  14293. "metadata": {
  14294. "type": "object"
  14295. },
  14296. "type": {
  14297. "type": "string",
  14298. "enum": ["session.deleted"]
  14299. },
  14300. "durable": {
  14301. "type": "object",
  14302. "properties": {
  14303. "aggregateID": {
  14304. "type": "string"
  14305. },
  14306. "seq": {
  14307. "type": "integer",
  14308. "allOf": [
  14309. {
  14310. "minimum": 0
  14311. }
  14312. ]
  14313. },
  14314. "version": {
  14315. "type": "number",
  14316. "enum": [2]
  14317. }
  14318. },
  14319. "required": ["aggregateID", "seq", "version"],
  14320. "additionalProperties": false
  14321. },
  14322. "location": {
  14323. "$ref": "#/components/schemas/Location.Ref"
  14324. },
  14325. "data": {
  14326. "type": "object",
  14327. "properties": {
  14328. "sessionID": {
  14329. "type": "string",
  14330. "allOf": [
  14331. {
  14332. "pattern": "^ses"
  14333. }
  14334. ]
  14335. }
  14336. },
  14337. "required": ["sessionID"],
  14338. "additionalProperties": false
  14339. }
  14340. },
  14341. "required": ["id", "created", "type", "durable", "data"],
  14342. "additionalProperties": false
  14343. },
  14344. "session.forked": {
  14345. "type": "object",
  14346. "properties": {
  14347. "id": {
  14348. "type": "string",
  14349. "allOf": [
  14350. {
  14351. "pattern": "^evt_"
  14352. }
  14353. ]
  14354. },
  14355. "created": {
  14356. "type": "number"
  14357. },
  14358. "metadata": {
  14359. "type": "object"
  14360. },
  14361. "type": {
  14362. "type": "string",
  14363. "enum": ["session.forked"]
  14364. },
  14365. "durable": {
  14366. "type": "object",
  14367. "properties": {
  14368. "aggregateID": {
  14369. "type": "string"
  14370. },
  14371. "seq": {
  14372. "type": "integer",
  14373. "allOf": [
  14374. {
  14375. "minimum": 0
  14376. }
  14377. ]
  14378. },
  14379. "version": {
  14380. "type": "number",
  14381. "enum": [2]
  14382. }
  14383. },
  14384. "required": ["aggregateID", "seq", "version"],
  14385. "additionalProperties": false
  14386. },
  14387. "location": {
  14388. "$ref": "#/components/schemas/Location.Ref"
  14389. },
  14390. "data": {
  14391. "type": "object",
  14392. "properties": {
  14393. "sessionID": {
  14394. "type": "string",
  14395. "allOf": [
  14396. {
  14397. "pattern": "^ses"
  14398. }
  14399. ]
  14400. },
  14401. "parentID": {
  14402. "type": "string",
  14403. "allOf": [
  14404. {
  14405. "pattern": "^ses"
  14406. }
  14407. ]
  14408. },
  14409. "boundary": {
  14410. "$ref": "#/components/schemas/Session.ForkBoundary"
  14411. },
  14412. "instructions": {
  14413. "type": "object",
  14414. "patternProperties": {
  14415. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  14416. "type": "string",
  14417. "allOf": [
  14418. {
  14419. "pattern": "^[a-f0-9]{64}$"
  14420. }
  14421. ]
  14422. }
  14423. }
  14424. }
  14425. },
  14426. "required": ["sessionID", "parentID", "boundary"],
  14427. "additionalProperties": false
  14428. }
  14429. },
  14430. "required": ["id", "created", "type", "durable", "data"],
  14431. "additionalProperties": false
  14432. },
  14433. "session.inbox.delivered": {
  14434. "type": "object",
  14435. "properties": {
  14436. "id": {
  14437. "type": "string",
  14438. "allOf": [
  14439. {
  14440. "pattern": "^evt_"
  14441. }
  14442. ]
  14443. },
  14444. "created": {
  14445. "type": "number"
  14446. },
  14447. "metadata": {
  14448. "type": "object"
  14449. },
  14450. "type": {
  14451. "type": "string",
  14452. "enum": ["session.inbox.delivered"]
  14453. },
  14454. "durable": {
  14455. "type": "object",
  14456. "properties": {
  14457. "aggregateID": {
  14458. "type": "string"
  14459. },
  14460. "seq": {
  14461. "type": "integer",
  14462. "allOf": [
  14463. {
  14464. "minimum": 0
  14465. }
  14466. ]
  14467. },
  14468. "version": {
  14469. "type": "number",
  14470. "enum": [1]
  14471. }
  14472. },
  14473. "required": ["aggregateID", "seq", "version"],
  14474. "additionalProperties": false
  14475. },
  14476. "location": {
  14477. "$ref": "#/components/schemas/Location.Ref"
  14478. },
  14479. "data": {
  14480. "type": "object",
  14481. "properties": {
  14482. "sessionID": {
  14483. "type": "string",
  14484. "allOf": [
  14485. {
  14486. "pattern": "^ses"
  14487. }
  14488. ]
  14489. },
  14490. "inboxID": {
  14491. "type": "string",
  14492. "allOf": [
  14493. {
  14494. "pattern": "^msg_"
  14495. }
  14496. ]
  14497. }
  14498. },
  14499. "required": ["sessionID", "inboxID"],
  14500. "additionalProperties": false
  14501. }
  14502. },
  14503. "required": ["id", "created", "type", "durable", "data"],
  14504. "additionalProperties": false
  14505. },
  14506. "Session.Inbox.UserPayload1": {
  14507. "type": "object",
  14508. "properties": {
  14509. "text": {
  14510. "type": "string"
  14511. },
  14512. "files": {
  14513. "type": "array",
  14514. "items": {
  14515. "$ref": "#/components/schemas/Prompt.FileAttachment"
  14516. }
  14517. },
  14518. "agents": {
  14519. "type": "array",
  14520. "items": {
  14521. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  14522. }
  14523. },
  14524. "skills": {
  14525. "type": "array",
  14526. "items": {
  14527. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  14528. }
  14529. },
  14530. "metadata": {
  14531. "type": "object"
  14532. }
  14533. },
  14534. "required": ["text"],
  14535. "additionalProperties": false
  14536. },
  14537. "Session.Inbox.SyntheticPayload1": {
  14538. "type": "object",
  14539. "properties": {
  14540. "text": {
  14541. "type": "string"
  14542. },
  14543. "description": {
  14544. "type": "string"
  14545. },
  14546. "metadata": {
  14547. "type": "object"
  14548. }
  14549. },
  14550. "required": ["text"],
  14551. "additionalProperties": false
  14552. },
  14553. "Session.Inbox.Item": {
  14554. "anyOf": [
  14555. {
  14556. "type": "object",
  14557. "properties": {
  14558. "type": {
  14559. "type": "string",
  14560. "enum": ["user"]
  14561. },
  14562. "payload": {
  14563. "$ref": "#/components/schemas/Session.Inbox.UserPayload1"
  14564. },
  14565. "delivery": {
  14566. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14567. }
  14568. },
  14569. "required": ["type", "payload", "delivery"],
  14570. "additionalProperties": false
  14571. },
  14572. {
  14573. "type": "object",
  14574. "properties": {
  14575. "type": {
  14576. "type": "string",
  14577. "enum": ["synthetic"]
  14578. },
  14579. "payload": {
  14580. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload1"
  14581. },
  14582. "delivery": {
  14583. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14584. }
  14585. },
  14586. "required": ["type", "payload", "delivery"],
  14587. "additionalProperties": false
  14588. },
  14589. {
  14590. "type": "object",
  14591. "properties": {
  14592. "type": {
  14593. "type": "string",
  14594. "enum": ["compaction"]
  14595. },
  14596. "payload": {
  14597. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  14598. },
  14599. "delivery": {
  14600. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14601. }
  14602. },
  14603. "required": ["type", "payload", "delivery"],
  14604. "additionalProperties": false
  14605. },
  14606. {
  14607. "type": "object",
  14608. "properties": {
  14609. "type": {
  14610. "type": "string",
  14611. "enum": ["move"]
  14612. },
  14613. "payload": {
  14614. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  14615. },
  14616. "delivery": {
  14617. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14618. }
  14619. },
  14620. "required": ["type", "payload", "delivery"],
  14621. "additionalProperties": false
  14622. }
  14623. ]
  14624. },
  14625. "session.inbox.enqueued": {
  14626. "type": "object",
  14627. "properties": {
  14628. "id": {
  14629. "type": "string",
  14630. "allOf": [
  14631. {
  14632. "pattern": "^evt_"
  14633. }
  14634. ]
  14635. },
  14636. "created": {
  14637. "type": "number"
  14638. },
  14639. "metadata": {
  14640. "type": "object"
  14641. },
  14642. "type": {
  14643. "type": "string",
  14644. "enum": ["session.inbox.enqueued"]
  14645. },
  14646. "durable": {
  14647. "type": "object",
  14648. "properties": {
  14649. "aggregateID": {
  14650. "type": "string"
  14651. },
  14652. "seq": {
  14653. "type": "integer",
  14654. "allOf": [
  14655. {
  14656. "minimum": 0
  14657. }
  14658. ]
  14659. },
  14660. "version": {
  14661. "type": "number",
  14662. "enum": [1]
  14663. }
  14664. },
  14665. "required": ["aggregateID", "seq", "version"],
  14666. "additionalProperties": false
  14667. },
  14668. "location": {
  14669. "$ref": "#/components/schemas/Location.Ref"
  14670. },
  14671. "data": {
  14672. "type": "object",
  14673. "properties": {
  14674. "sessionID": {
  14675. "type": "string",
  14676. "allOf": [
  14677. {
  14678. "pattern": "^ses"
  14679. }
  14680. ]
  14681. },
  14682. "inboxID": {
  14683. "type": "string",
  14684. "allOf": [
  14685. {
  14686. "pattern": "^msg_"
  14687. }
  14688. ]
  14689. },
  14690. "item": {
  14691. "$ref": "#/components/schemas/Session.Inbox.Item"
  14692. }
  14693. },
  14694. "required": ["sessionID", "inboxID", "item"],
  14695. "additionalProperties": false
  14696. }
  14697. },
  14698. "required": ["id", "created", "type", "durable", "data"],
  14699. "additionalProperties": false
  14700. },
  14701. "session.inbox.cancelled": {
  14702. "type": "object",
  14703. "properties": {
  14704. "id": {
  14705. "type": "string",
  14706. "allOf": [
  14707. {
  14708. "pattern": "^evt_"
  14709. }
  14710. ]
  14711. },
  14712. "created": {
  14713. "type": "number"
  14714. },
  14715. "metadata": {
  14716. "type": "object"
  14717. },
  14718. "type": {
  14719. "type": "string",
  14720. "enum": ["session.inbox.cancelled"]
  14721. },
  14722. "durable": {
  14723. "type": "object",
  14724. "properties": {
  14725. "aggregateID": {
  14726. "type": "string"
  14727. },
  14728. "seq": {
  14729. "type": "integer",
  14730. "allOf": [
  14731. {
  14732. "minimum": 0
  14733. }
  14734. ]
  14735. },
  14736. "version": {
  14737. "type": "number",
  14738. "enum": [1]
  14739. }
  14740. },
  14741. "required": ["aggregateID", "seq", "version"],
  14742. "additionalProperties": false
  14743. },
  14744. "location": {
  14745. "$ref": "#/components/schemas/Location.Ref"
  14746. },
  14747. "data": {
  14748. "type": "object",
  14749. "properties": {
  14750. "sessionID": {
  14751. "type": "string",
  14752. "allOf": [
  14753. {
  14754. "pattern": "^ses"
  14755. }
  14756. ]
  14757. },
  14758. "inboxID": {
  14759. "type": "string",
  14760. "allOf": [
  14761. {
  14762. "pattern": "^msg_"
  14763. }
  14764. ]
  14765. }
  14766. },
  14767. "required": ["sessionID", "inboxID"],
  14768. "additionalProperties": false
  14769. }
  14770. },
  14771. "required": ["id", "created", "type", "durable", "data"],
  14772. "additionalProperties": false
  14773. },
  14774. "session.inbox.delivery.changed": {
  14775. "type": "object",
  14776. "properties": {
  14777. "id": {
  14778. "type": "string",
  14779. "allOf": [
  14780. {
  14781. "pattern": "^evt_"
  14782. }
  14783. ]
  14784. },
  14785. "created": {
  14786. "type": "number"
  14787. },
  14788. "metadata": {
  14789. "type": "object"
  14790. },
  14791. "type": {
  14792. "type": "string",
  14793. "enum": ["session.inbox.delivery.changed"]
  14794. },
  14795. "durable": {
  14796. "type": "object",
  14797. "properties": {
  14798. "aggregateID": {
  14799. "type": "string"
  14800. },
  14801. "seq": {
  14802. "type": "integer",
  14803. "allOf": [
  14804. {
  14805. "minimum": 0
  14806. }
  14807. ]
  14808. },
  14809. "version": {
  14810. "type": "number",
  14811. "enum": [1]
  14812. }
  14813. },
  14814. "required": ["aggregateID", "seq", "version"],
  14815. "additionalProperties": false
  14816. },
  14817. "location": {
  14818. "$ref": "#/components/schemas/Location.Ref"
  14819. },
  14820. "data": {
  14821. "type": "object",
  14822. "properties": {
  14823. "sessionID": {
  14824. "type": "string",
  14825. "allOf": [
  14826. {
  14827. "pattern": "^ses"
  14828. }
  14829. ]
  14830. },
  14831. "inboxID": {
  14832. "type": "string",
  14833. "allOf": [
  14834. {
  14835. "pattern": "^msg_"
  14836. }
  14837. ]
  14838. },
  14839. "delivery": {
  14840. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14841. }
  14842. },
  14843. "required": ["sessionID", "inboxID", "delivery"],
  14844. "additionalProperties": false
  14845. }
  14846. },
  14847. "required": ["id", "created", "type", "durable", "data"],
  14848. "additionalProperties": false
  14849. },
  14850. "session.execution.started": {
  14851. "type": "object",
  14852. "properties": {
  14853. "id": {
  14854. "type": "string",
  14855. "allOf": [
  14856. {
  14857. "pattern": "^evt_"
  14858. }
  14859. ]
  14860. },
  14861. "created": {
  14862. "type": "number"
  14863. },
  14864. "metadata": {
  14865. "type": "object"
  14866. },
  14867. "type": {
  14868. "type": "string",
  14869. "enum": ["session.execution.started"]
  14870. },
  14871. "durable": {
  14872. "type": "object",
  14873. "properties": {
  14874. "aggregateID": {
  14875. "type": "string"
  14876. },
  14877. "seq": {
  14878. "type": "integer",
  14879. "allOf": [
  14880. {
  14881. "minimum": 0
  14882. }
  14883. ]
  14884. },
  14885. "version": {
  14886. "type": "number",
  14887. "enum": [1]
  14888. }
  14889. },
  14890. "required": ["aggregateID", "seq", "version"],
  14891. "additionalProperties": false
  14892. },
  14893. "location": {
  14894. "$ref": "#/components/schemas/Location.Ref"
  14895. },
  14896. "data": {
  14897. "type": "object",
  14898. "properties": {
  14899. "sessionID": {
  14900. "type": "string",
  14901. "allOf": [
  14902. {
  14903. "pattern": "^ses"
  14904. }
  14905. ]
  14906. }
  14907. },
  14908. "required": ["sessionID"],
  14909. "additionalProperties": false
  14910. }
  14911. },
  14912. "required": ["id", "created", "type", "durable", "data"],
  14913. "additionalProperties": false
  14914. },
  14915. "session.execution.succeeded": {
  14916. "type": "object",
  14917. "properties": {
  14918. "id": {
  14919. "type": "string",
  14920. "allOf": [
  14921. {
  14922. "pattern": "^evt_"
  14923. }
  14924. ]
  14925. },
  14926. "created": {
  14927. "type": "number"
  14928. },
  14929. "metadata": {
  14930. "type": "object"
  14931. },
  14932. "type": {
  14933. "type": "string",
  14934. "enum": ["session.execution.succeeded"]
  14935. },
  14936. "durable": {
  14937. "type": "object",
  14938. "properties": {
  14939. "aggregateID": {
  14940. "type": "string"
  14941. },
  14942. "seq": {
  14943. "type": "integer",
  14944. "allOf": [
  14945. {
  14946. "minimum": 0
  14947. }
  14948. ]
  14949. },
  14950. "version": {
  14951. "type": "number",
  14952. "enum": [1]
  14953. }
  14954. },
  14955. "required": ["aggregateID", "seq", "version"],
  14956. "additionalProperties": false
  14957. },
  14958. "location": {
  14959. "$ref": "#/components/schemas/Location.Ref"
  14960. },
  14961. "data": {
  14962. "type": "object",
  14963. "properties": {
  14964. "sessionID": {
  14965. "type": "string",
  14966. "allOf": [
  14967. {
  14968. "pattern": "^ses"
  14969. }
  14970. ]
  14971. }
  14972. },
  14973. "required": ["sessionID"],
  14974. "additionalProperties": false
  14975. }
  14976. },
  14977. "required": ["id", "created", "type", "durable", "data"],
  14978. "additionalProperties": false
  14979. },
  14980. "session.execution.failed": {
  14981. "type": "object",
  14982. "properties": {
  14983. "id": {
  14984. "type": "string",
  14985. "allOf": [
  14986. {
  14987. "pattern": "^evt_"
  14988. }
  14989. ]
  14990. },
  14991. "created": {
  14992. "type": "number"
  14993. },
  14994. "metadata": {
  14995. "type": "object"
  14996. },
  14997. "type": {
  14998. "type": "string",
  14999. "enum": ["session.execution.failed"]
  15000. },
  15001. "durable": {
  15002. "type": "object",
  15003. "properties": {
  15004. "aggregateID": {
  15005. "type": "string"
  15006. },
  15007. "seq": {
  15008. "type": "integer",
  15009. "allOf": [
  15010. {
  15011. "minimum": 0
  15012. }
  15013. ]
  15014. },
  15015. "version": {
  15016. "type": "number",
  15017. "enum": [1]
  15018. }
  15019. },
  15020. "required": ["aggregateID", "seq", "version"],
  15021. "additionalProperties": false
  15022. },
  15023. "location": {
  15024. "$ref": "#/components/schemas/Location.Ref"
  15025. },
  15026. "data": {
  15027. "type": "object",
  15028. "properties": {
  15029. "sessionID": {
  15030. "type": "string",
  15031. "allOf": [
  15032. {
  15033. "pattern": "^ses"
  15034. }
  15035. ]
  15036. },
  15037. "error": {
  15038. "$ref": "#/components/schemas/Session.StructuredError"
  15039. }
  15040. },
  15041. "required": ["sessionID", "error"],
  15042. "additionalProperties": false
  15043. }
  15044. },
  15045. "required": ["id", "created", "type", "durable", "data"],
  15046. "additionalProperties": false
  15047. },
  15048. "session.execution.interrupted": {
  15049. "type": "object",
  15050. "properties": {
  15051. "id": {
  15052. "type": "string",
  15053. "allOf": [
  15054. {
  15055. "pattern": "^evt_"
  15056. }
  15057. ]
  15058. },
  15059. "created": {
  15060. "type": "number"
  15061. },
  15062. "metadata": {
  15063. "type": "object"
  15064. },
  15065. "type": {
  15066. "type": "string",
  15067. "enum": ["session.execution.interrupted"]
  15068. },
  15069. "durable": {
  15070. "type": "object",
  15071. "properties": {
  15072. "aggregateID": {
  15073. "type": "string"
  15074. },
  15075. "seq": {
  15076. "type": "integer",
  15077. "allOf": [
  15078. {
  15079. "minimum": 0
  15080. }
  15081. ]
  15082. },
  15083. "version": {
  15084. "type": "number",
  15085. "enum": [1]
  15086. }
  15087. },
  15088. "required": ["aggregateID", "seq", "version"],
  15089. "additionalProperties": false
  15090. },
  15091. "location": {
  15092. "$ref": "#/components/schemas/Location.Ref"
  15093. },
  15094. "data": {
  15095. "type": "object",
  15096. "properties": {
  15097. "sessionID": {
  15098. "type": "string",
  15099. "allOf": [
  15100. {
  15101. "pattern": "^ses"
  15102. }
  15103. ]
  15104. },
  15105. "reason": {
  15106. "type": "string",
  15107. "enum": ["user", "shutdown", "superseded"]
  15108. }
  15109. },
  15110. "required": ["sessionID", "reason"],
  15111. "additionalProperties": false
  15112. }
  15113. },
  15114. "required": ["id", "created", "type", "durable", "data"],
  15115. "additionalProperties": false
  15116. },
  15117. "session.instructions.updated": {
  15118. "type": "object",
  15119. "properties": {
  15120. "id": {
  15121. "type": "string",
  15122. "allOf": [
  15123. {
  15124. "pattern": "^evt_"
  15125. }
  15126. ]
  15127. },
  15128. "created": {
  15129. "type": "number"
  15130. },
  15131. "metadata": {
  15132. "type": "object"
  15133. },
  15134. "type": {
  15135. "type": "string",
  15136. "enum": ["session.instructions.updated"]
  15137. },
  15138. "durable": {
  15139. "type": "object",
  15140. "properties": {
  15141. "aggregateID": {
  15142. "type": "string"
  15143. },
  15144. "seq": {
  15145. "type": "integer",
  15146. "allOf": [
  15147. {
  15148. "minimum": 0
  15149. }
  15150. ]
  15151. },
  15152. "version": {
  15153. "type": "number",
  15154. "enum": [2]
  15155. }
  15156. },
  15157. "required": ["aggregateID", "seq", "version"],
  15158. "additionalProperties": false
  15159. },
  15160. "location": {
  15161. "$ref": "#/components/schemas/Location.Ref"
  15162. },
  15163. "data": {
  15164. "type": "object",
  15165. "properties": {
  15166. "sessionID": {
  15167. "type": "string",
  15168. "allOf": [
  15169. {
  15170. "pattern": "^ses"
  15171. }
  15172. ]
  15173. },
  15174. "delta": {
  15175. "type": "object",
  15176. "additionalProperties": {
  15177. "anyOf": [
  15178. {
  15179. "type": "string",
  15180. "allOf": [
  15181. {
  15182. "pattern": "^[a-f0-9]{64}$"
  15183. }
  15184. ]
  15185. },
  15186. {
  15187. "type": "string",
  15188. "enum": ["removed"]
  15189. }
  15190. ]
  15191. }
  15192. },
  15193. "text": {
  15194. "type": "string"
  15195. }
  15196. },
  15197. "required": ["sessionID", "delta"],
  15198. "additionalProperties": false
  15199. }
  15200. },
  15201. "required": ["id", "created", "type", "durable", "data"],
  15202. "additionalProperties": false
  15203. },
  15204. "session.synthetic": {
  15205. "type": "object",
  15206. "properties": {
  15207. "id": {
  15208. "type": "string",
  15209. "allOf": [
  15210. {
  15211. "pattern": "^evt_"
  15212. }
  15213. ]
  15214. },
  15215. "created": {
  15216. "type": "number"
  15217. },
  15218. "metadata": {
  15219. "type": "object"
  15220. },
  15221. "type": {
  15222. "type": "string",
  15223. "enum": ["session.synthetic"]
  15224. },
  15225. "durable": {
  15226. "type": "object",
  15227. "properties": {
  15228. "aggregateID": {
  15229. "type": "string"
  15230. },
  15231. "seq": {
  15232. "type": "integer",
  15233. "allOf": [
  15234. {
  15235. "minimum": 0
  15236. }
  15237. ]
  15238. },
  15239. "version": {
  15240. "type": "number",
  15241. "enum": [1]
  15242. }
  15243. },
  15244. "required": ["aggregateID", "seq", "version"],
  15245. "additionalProperties": false
  15246. },
  15247. "location": {
  15248. "$ref": "#/components/schemas/Location.Ref"
  15249. },
  15250. "data": {
  15251. "type": "object",
  15252. "properties": {
  15253. "sessionID": {
  15254. "type": "string",
  15255. "allOf": [
  15256. {
  15257. "pattern": "^ses"
  15258. }
  15259. ]
  15260. },
  15261. "text": {
  15262. "type": "string"
  15263. },
  15264. "description": {
  15265. "type": "string"
  15266. },
  15267. "metadata": {
  15268. "type": "object"
  15269. }
  15270. },
  15271. "required": ["sessionID", "text"],
  15272. "additionalProperties": false
  15273. }
  15274. },
  15275. "required": ["id", "created", "type", "durable", "data"],
  15276. "additionalProperties": false
  15277. },
  15278. "session.skill.activated": {
  15279. "type": "object",
  15280. "properties": {
  15281. "id": {
  15282. "type": "string",
  15283. "allOf": [
  15284. {
  15285. "pattern": "^evt_"
  15286. }
  15287. ]
  15288. },
  15289. "created": {
  15290. "type": "number"
  15291. },
  15292. "metadata": {
  15293. "type": "object"
  15294. },
  15295. "type": {
  15296. "type": "string",
  15297. "enum": ["session.skill.activated"]
  15298. },
  15299. "durable": {
  15300. "type": "object",
  15301. "properties": {
  15302. "aggregateID": {
  15303. "type": "string"
  15304. },
  15305. "seq": {
  15306. "type": "integer",
  15307. "allOf": [
  15308. {
  15309. "minimum": 0
  15310. }
  15311. ]
  15312. },
  15313. "version": {
  15314. "type": "number",
  15315. "enum": [1]
  15316. }
  15317. },
  15318. "required": ["aggregateID", "seq", "version"],
  15319. "additionalProperties": false
  15320. },
  15321. "location": {
  15322. "$ref": "#/components/schemas/Location.Ref"
  15323. },
  15324. "data": {
  15325. "type": "object",
  15326. "properties": {
  15327. "sessionID": {
  15328. "type": "string",
  15329. "allOf": [
  15330. {
  15331. "pattern": "^ses"
  15332. }
  15333. ]
  15334. },
  15335. "id": {
  15336. "type": "string"
  15337. },
  15338. "name": {
  15339. "type": "string"
  15340. },
  15341. "text": {
  15342. "type": "string"
  15343. }
  15344. },
  15345. "required": ["sessionID", "id", "name", "text"],
  15346. "additionalProperties": false
  15347. }
  15348. },
  15349. "required": ["id", "created", "type", "durable", "data"],
  15350. "additionalProperties": false
  15351. },
  15352. "Shell.Info": {
  15353. "type": "object",
  15354. "properties": {
  15355. "id": {
  15356. "type": "string",
  15357. "allOf": [
  15358. {
  15359. "pattern": "^sh_"
  15360. }
  15361. ]
  15362. },
  15363. "status": {
  15364. "type": "string",
  15365. "enum": ["running", "exited", "timeout", "killed"]
  15366. },
  15367. "command": {
  15368. "type": "string"
  15369. },
  15370. "cwd": {
  15371. "type": "string"
  15372. },
  15373. "shell": {
  15374. "type": "string"
  15375. },
  15376. "file": {
  15377. "type": "string"
  15378. },
  15379. "pid": {
  15380. "type": "integer",
  15381. "allOf": [
  15382. {
  15383. "minimum": 0
  15384. }
  15385. ]
  15386. },
  15387. "exit": {
  15388. "type": "number"
  15389. },
  15390. "metadata": {
  15391. "type": "object"
  15392. },
  15393. "time": {
  15394. "type": "object",
  15395. "properties": {
  15396. "started": {
  15397. "type": "number"
  15398. },
  15399. "completed": {
  15400. "type": "number"
  15401. }
  15402. },
  15403. "required": ["started"],
  15404. "additionalProperties": false
  15405. }
  15406. },
  15407. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  15408. "additionalProperties": false
  15409. },
  15410. "session.shell.started": {
  15411. "type": "object",
  15412. "properties": {
  15413. "id": {
  15414. "type": "string",
  15415. "allOf": [
  15416. {
  15417. "pattern": "^evt_"
  15418. }
  15419. ]
  15420. },
  15421. "created": {
  15422. "type": "number"
  15423. },
  15424. "metadata": {
  15425. "type": "object"
  15426. },
  15427. "type": {
  15428. "type": "string",
  15429. "enum": ["session.shell.started"]
  15430. },
  15431. "durable": {
  15432. "type": "object",
  15433. "properties": {
  15434. "aggregateID": {
  15435. "type": "string"
  15436. },
  15437. "seq": {
  15438. "type": "integer",
  15439. "allOf": [
  15440. {
  15441. "minimum": 0
  15442. }
  15443. ]
  15444. },
  15445. "version": {
  15446. "type": "number",
  15447. "enum": [1]
  15448. }
  15449. },
  15450. "required": ["aggregateID", "seq", "version"],
  15451. "additionalProperties": false
  15452. },
  15453. "location": {
  15454. "$ref": "#/components/schemas/Location.Ref"
  15455. },
  15456. "data": {
  15457. "type": "object",
  15458. "properties": {
  15459. "sessionID": {
  15460. "type": "string",
  15461. "allOf": [
  15462. {
  15463. "pattern": "^ses"
  15464. }
  15465. ]
  15466. },
  15467. "shell": {
  15468. "$ref": "#/components/schemas/Shell.Info"
  15469. }
  15470. },
  15471. "required": ["sessionID", "shell"],
  15472. "additionalProperties": false
  15473. }
  15474. },
  15475. "required": ["id", "created", "type", "durable", "data"],
  15476. "additionalProperties": false
  15477. },
  15478. "session.shell.ended": {
  15479. "type": "object",
  15480. "properties": {
  15481. "id": {
  15482. "type": "string",
  15483. "allOf": [
  15484. {
  15485. "pattern": "^evt_"
  15486. }
  15487. ]
  15488. },
  15489. "created": {
  15490. "type": "number"
  15491. },
  15492. "metadata": {
  15493. "type": "object"
  15494. },
  15495. "type": {
  15496. "type": "string",
  15497. "enum": ["session.shell.ended"]
  15498. },
  15499. "durable": {
  15500. "type": "object",
  15501. "properties": {
  15502. "aggregateID": {
  15503. "type": "string"
  15504. },
  15505. "seq": {
  15506. "type": "integer",
  15507. "allOf": [
  15508. {
  15509. "minimum": 0
  15510. }
  15511. ]
  15512. },
  15513. "version": {
  15514. "type": "number",
  15515. "enum": [1]
  15516. }
  15517. },
  15518. "required": ["aggregateID", "seq", "version"],
  15519. "additionalProperties": false
  15520. },
  15521. "location": {
  15522. "$ref": "#/components/schemas/Location.Ref"
  15523. },
  15524. "data": {
  15525. "type": "object",
  15526. "properties": {
  15527. "sessionID": {
  15528. "type": "string",
  15529. "allOf": [
  15530. {
  15531. "pattern": "^ses"
  15532. }
  15533. ]
  15534. },
  15535. "shell": {
  15536. "$ref": "#/components/schemas/Shell.Info"
  15537. },
  15538. "output": {
  15539. "type": "object",
  15540. "properties": {
  15541. "output": {
  15542. "type": "string"
  15543. },
  15544. "cursor": {
  15545. "type": "integer",
  15546. "allOf": [
  15547. {
  15548. "minimum": 0
  15549. }
  15550. ]
  15551. },
  15552. "size": {
  15553. "type": "integer",
  15554. "allOf": [
  15555. {
  15556. "minimum": 0
  15557. }
  15558. ]
  15559. },
  15560. "truncated": {
  15561. "type": "boolean"
  15562. }
  15563. },
  15564. "required": ["output", "cursor", "size", "truncated"],
  15565. "additionalProperties": false
  15566. }
  15567. },
  15568. "required": ["sessionID", "shell", "output"],
  15569. "additionalProperties": false
  15570. }
  15571. },
  15572. "required": ["id", "created", "type", "durable", "data"],
  15573. "additionalProperties": false
  15574. },
  15575. "session.step.started": {
  15576. "type": "object",
  15577. "properties": {
  15578. "id": {
  15579. "type": "string",
  15580. "allOf": [
  15581. {
  15582. "pattern": "^evt_"
  15583. }
  15584. ]
  15585. },
  15586. "created": {
  15587. "type": "number"
  15588. },
  15589. "metadata": {
  15590. "type": "object"
  15591. },
  15592. "type": {
  15593. "type": "string",
  15594. "enum": ["session.step.started"]
  15595. },
  15596. "durable": {
  15597. "type": "object",
  15598. "properties": {
  15599. "aggregateID": {
  15600. "type": "string"
  15601. },
  15602. "seq": {
  15603. "type": "integer",
  15604. "allOf": [
  15605. {
  15606. "minimum": 0
  15607. }
  15608. ]
  15609. },
  15610. "version": {
  15611. "type": "number",
  15612. "enum": [1]
  15613. }
  15614. },
  15615. "required": ["aggregateID", "seq", "version"],
  15616. "additionalProperties": false
  15617. },
  15618. "location": {
  15619. "$ref": "#/components/schemas/Location.Ref"
  15620. },
  15621. "data": {
  15622. "type": "object",
  15623. "properties": {
  15624. "sessionID": {
  15625. "type": "string",
  15626. "allOf": [
  15627. {
  15628. "pattern": "^ses"
  15629. }
  15630. ]
  15631. },
  15632. "assistantMessageID": {
  15633. "type": "string",
  15634. "allOf": [
  15635. {
  15636. "pattern": "^msg_"
  15637. }
  15638. ]
  15639. },
  15640. "agent": {
  15641. "type": "string"
  15642. },
  15643. "model": {
  15644. "$ref": "#/components/schemas/Model.Ref"
  15645. },
  15646. "snapshot": {
  15647. "type": "string"
  15648. }
  15649. },
  15650. "required": ["sessionID", "assistantMessageID", "agent", "model"],
  15651. "additionalProperties": false
  15652. }
  15653. },
  15654. "required": ["id", "created", "type", "durable", "data"],
  15655. "additionalProperties": false
  15656. },
  15657. "session.step.ended": {
  15658. "type": "object",
  15659. "properties": {
  15660. "id": {
  15661. "type": "string",
  15662. "allOf": [
  15663. {
  15664. "pattern": "^evt_"
  15665. }
  15666. ]
  15667. },
  15668. "created": {
  15669. "type": "number"
  15670. },
  15671. "metadata": {
  15672. "type": "object"
  15673. },
  15674. "type": {
  15675. "type": "string",
  15676. "enum": ["session.step.ended"]
  15677. },
  15678. "durable": {
  15679. "type": "object",
  15680. "properties": {
  15681. "aggregateID": {
  15682. "type": "string"
  15683. },
  15684. "seq": {
  15685. "type": "integer",
  15686. "allOf": [
  15687. {
  15688. "minimum": 0
  15689. }
  15690. ]
  15691. },
  15692. "version": {
  15693. "type": "number",
  15694. "enum": [1]
  15695. }
  15696. },
  15697. "required": ["aggregateID", "seq", "version"],
  15698. "additionalProperties": false
  15699. },
  15700. "location": {
  15701. "$ref": "#/components/schemas/Location.Ref"
  15702. },
  15703. "data": {
  15704. "type": "object",
  15705. "properties": {
  15706. "sessionID": {
  15707. "type": "string",
  15708. "allOf": [
  15709. {
  15710. "pattern": "^ses"
  15711. }
  15712. ]
  15713. },
  15714. "assistantMessageID": {
  15715. "type": "string",
  15716. "allOf": [
  15717. {
  15718. "pattern": "^msg_"
  15719. }
  15720. ]
  15721. },
  15722. "finish": {
  15723. "type": "string",
  15724. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  15725. },
  15726. "cost": {
  15727. "$ref": "#/components/schemas/Money.USD"
  15728. },
  15729. "tokens": {
  15730. "$ref": "#/components/schemas/TokenUsage.Info"
  15731. },
  15732. "snapshot": {
  15733. "type": "string"
  15734. },
  15735. "files": {
  15736. "type": "array",
  15737. "items": {
  15738. "type": "string"
  15739. }
  15740. }
  15741. },
  15742. "required": ["sessionID", "assistantMessageID", "finish", "cost", "tokens"],
  15743. "additionalProperties": false
  15744. }
  15745. },
  15746. "required": ["id", "created", "type", "durable", "data"],
  15747. "additionalProperties": false
  15748. },
  15749. "session.step.failed": {
  15750. "type": "object",
  15751. "properties": {
  15752. "id": {
  15753. "type": "string",
  15754. "allOf": [
  15755. {
  15756. "pattern": "^evt_"
  15757. }
  15758. ]
  15759. },
  15760. "created": {
  15761. "type": "number"
  15762. },
  15763. "metadata": {
  15764. "type": "object"
  15765. },
  15766. "type": {
  15767. "type": "string",
  15768. "enum": ["session.step.failed"]
  15769. },
  15770. "durable": {
  15771. "type": "object",
  15772. "properties": {
  15773. "aggregateID": {
  15774. "type": "string"
  15775. },
  15776. "seq": {
  15777. "type": "integer",
  15778. "allOf": [
  15779. {
  15780. "minimum": 0
  15781. }
  15782. ]
  15783. },
  15784. "version": {
  15785. "type": "number",
  15786. "enum": [1]
  15787. }
  15788. },
  15789. "required": ["aggregateID", "seq", "version"],
  15790. "additionalProperties": false
  15791. },
  15792. "location": {
  15793. "$ref": "#/components/schemas/Location.Ref"
  15794. },
  15795. "data": {
  15796. "type": "object",
  15797. "properties": {
  15798. "sessionID": {
  15799. "type": "string",
  15800. "allOf": [
  15801. {
  15802. "pattern": "^ses"
  15803. }
  15804. ]
  15805. },
  15806. "assistantMessageID": {
  15807. "type": "string",
  15808. "allOf": [
  15809. {
  15810. "pattern": "^msg_"
  15811. }
  15812. ]
  15813. },
  15814. "error": {
  15815. "$ref": "#/components/schemas/Session.StructuredError"
  15816. },
  15817. "cost": {
  15818. "$ref": "#/components/schemas/Money.USD"
  15819. },
  15820. "tokens": {
  15821. "$ref": "#/components/schemas/TokenUsage.Info"
  15822. },
  15823. "snapshot": {
  15824. "type": "string"
  15825. },
  15826. "files": {
  15827. "type": "array",
  15828. "items": {
  15829. "type": "string"
  15830. }
  15831. }
  15832. },
  15833. "required": ["sessionID", "assistantMessageID", "error"],
  15834. "additionalProperties": false
  15835. }
  15836. },
  15837. "required": ["id", "created", "type", "durable", "data"],
  15838. "additionalProperties": false
  15839. },
  15840. "session.text.started": {
  15841. "type": "object",
  15842. "properties": {
  15843. "id": {
  15844. "type": "string",
  15845. "allOf": [
  15846. {
  15847. "pattern": "^evt_"
  15848. }
  15849. ]
  15850. },
  15851. "created": {
  15852. "type": "number"
  15853. },
  15854. "metadata": {
  15855. "type": "object"
  15856. },
  15857. "type": {
  15858. "type": "string",
  15859. "enum": ["session.text.started"]
  15860. },
  15861. "durable": {
  15862. "type": "object",
  15863. "properties": {
  15864. "aggregateID": {
  15865. "type": "string"
  15866. },
  15867. "seq": {
  15868. "type": "integer",
  15869. "allOf": [
  15870. {
  15871. "minimum": 0
  15872. }
  15873. ]
  15874. },
  15875. "version": {
  15876. "type": "number",
  15877. "enum": [1]
  15878. }
  15879. },
  15880. "required": ["aggregateID", "seq", "version"],
  15881. "additionalProperties": false
  15882. },
  15883. "location": {
  15884. "$ref": "#/components/schemas/Location.Ref"
  15885. },
  15886. "data": {
  15887. "type": "object",
  15888. "properties": {
  15889. "sessionID": {
  15890. "type": "string",
  15891. "allOf": [
  15892. {
  15893. "pattern": "^ses"
  15894. }
  15895. ]
  15896. },
  15897. "assistantMessageID": {
  15898. "type": "string",
  15899. "allOf": [
  15900. {
  15901. "pattern": "^msg_"
  15902. }
  15903. ]
  15904. },
  15905. "ordinal": {
  15906. "type": "integer",
  15907. "allOf": [
  15908. {
  15909. "minimum": 0
  15910. }
  15911. ]
  15912. }
  15913. },
  15914. "required": ["sessionID", "assistantMessageID", "ordinal"],
  15915. "additionalProperties": false
  15916. }
  15917. },
  15918. "required": ["id", "created", "type", "durable", "data"],
  15919. "additionalProperties": false
  15920. },
  15921. "Session.Message.ProviderState4": {
  15922. "type": "object"
  15923. },
  15924. "session.text.ended": {
  15925. "type": "object",
  15926. "properties": {
  15927. "id": {
  15928. "type": "string",
  15929. "allOf": [
  15930. {
  15931. "pattern": "^evt_"
  15932. }
  15933. ]
  15934. },
  15935. "created": {
  15936. "type": "number"
  15937. },
  15938. "metadata": {
  15939. "type": "object"
  15940. },
  15941. "type": {
  15942. "type": "string",
  15943. "enum": ["session.text.ended"]
  15944. },
  15945. "durable": {
  15946. "type": "object",
  15947. "properties": {
  15948. "aggregateID": {
  15949. "type": "string"
  15950. },
  15951. "seq": {
  15952. "type": "integer",
  15953. "allOf": [
  15954. {
  15955. "minimum": 0
  15956. }
  15957. ]
  15958. },
  15959. "version": {
  15960. "type": "number",
  15961. "enum": [1]
  15962. }
  15963. },
  15964. "required": ["aggregateID", "seq", "version"],
  15965. "additionalProperties": false
  15966. },
  15967. "location": {
  15968. "$ref": "#/components/schemas/Location.Ref"
  15969. },
  15970. "data": {
  15971. "type": "object",
  15972. "properties": {
  15973. "sessionID": {
  15974. "type": "string",
  15975. "allOf": [
  15976. {
  15977. "pattern": "^ses"
  15978. }
  15979. ]
  15980. },
  15981. "assistantMessageID": {
  15982. "type": "string",
  15983. "allOf": [
  15984. {
  15985. "pattern": "^msg_"
  15986. }
  15987. ]
  15988. },
  15989. "ordinal": {
  15990. "type": "integer",
  15991. "allOf": [
  15992. {
  15993. "minimum": 0
  15994. }
  15995. ]
  15996. },
  15997. "text": {
  15998. "type": "string"
  15999. },
  16000. "state": {
  16001. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16002. }
  16003. },
  16004. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16005. "additionalProperties": false
  16006. }
  16007. },
  16008. "required": ["id", "created", "type", "durable", "data"],
  16009. "additionalProperties": false
  16010. },
  16011. "Session.Message.ProviderState5": {
  16012. "type": "object"
  16013. },
  16014. "session.reasoning.started": {
  16015. "type": "object",
  16016. "properties": {
  16017. "id": {
  16018. "type": "string",
  16019. "allOf": [
  16020. {
  16021. "pattern": "^evt_"
  16022. }
  16023. ]
  16024. },
  16025. "created": {
  16026. "type": "number"
  16027. },
  16028. "metadata": {
  16029. "type": "object"
  16030. },
  16031. "type": {
  16032. "type": "string",
  16033. "enum": ["session.reasoning.started"]
  16034. },
  16035. "durable": {
  16036. "type": "object",
  16037. "properties": {
  16038. "aggregateID": {
  16039. "type": "string"
  16040. },
  16041. "seq": {
  16042. "type": "integer",
  16043. "allOf": [
  16044. {
  16045. "minimum": 0
  16046. }
  16047. ]
  16048. },
  16049. "version": {
  16050. "type": "number",
  16051. "enum": [1]
  16052. }
  16053. },
  16054. "required": ["aggregateID", "seq", "version"],
  16055. "additionalProperties": false
  16056. },
  16057. "location": {
  16058. "$ref": "#/components/schemas/Location.Ref"
  16059. },
  16060. "data": {
  16061. "type": "object",
  16062. "properties": {
  16063. "sessionID": {
  16064. "type": "string",
  16065. "allOf": [
  16066. {
  16067. "pattern": "^ses"
  16068. }
  16069. ]
  16070. },
  16071. "assistantMessageID": {
  16072. "type": "string",
  16073. "allOf": [
  16074. {
  16075. "pattern": "^msg_"
  16076. }
  16077. ]
  16078. },
  16079. "ordinal": {
  16080. "type": "integer",
  16081. "allOf": [
  16082. {
  16083. "minimum": 0
  16084. }
  16085. ]
  16086. },
  16087. "state": {
  16088. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16089. }
  16090. },
  16091. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16092. "additionalProperties": false
  16093. }
  16094. },
  16095. "required": ["id", "created", "type", "durable", "data"],
  16096. "additionalProperties": false
  16097. },
  16098. "Session.Message.ProviderState6": {
  16099. "type": "object"
  16100. },
  16101. "session.reasoning.ended": {
  16102. "type": "object",
  16103. "properties": {
  16104. "id": {
  16105. "type": "string",
  16106. "allOf": [
  16107. {
  16108. "pattern": "^evt_"
  16109. }
  16110. ]
  16111. },
  16112. "created": {
  16113. "type": "number"
  16114. },
  16115. "metadata": {
  16116. "type": "object"
  16117. },
  16118. "type": {
  16119. "type": "string",
  16120. "enum": ["session.reasoning.ended"]
  16121. },
  16122. "durable": {
  16123. "type": "object",
  16124. "properties": {
  16125. "aggregateID": {
  16126. "type": "string"
  16127. },
  16128. "seq": {
  16129. "type": "integer",
  16130. "allOf": [
  16131. {
  16132. "minimum": 0
  16133. }
  16134. ]
  16135. },
  16136. "version": {
  16137. "type": "number",
  16138. "enum": [1]
  16139. }
  16140. },
  16141. "required": ["aggregateID", "seq", "version"],
  16142. "additionalProperties": false
  16143. },
  16144. "location": {
  16145. "$ref": "#/components/schemas/Location.Ref"
  16146. },
  16147. "data": {
  16148. "type": "object",
  16149. "properties": {
  16150. "sessionID": {
  16151. "type": "string",
  16152. "allOf": [
  16153. {
  16154. "pattern": "^ses"
  16155. }
  16156. ]
  16157. },
  16158. "assistantMessageID": {
  16159. "type": "string",
  16160. "allOf": [
  16161. {
  16162. "pattern": "^msg_"
  16163. }
  16164. ]
  16165. },
  16166. "ordinal": {
  16167. "type": "integer",
  16168. "allOf": [
  16169. {
  16170. "minimum": 0
  16171. }
  16172. ]
  16173. },
  16174. "text": {
  16175. "type": "string"
  16176. },
  16177. "state": {
  16178. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16179. }
  16180. },
  16181. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16182. "additionalProperties": false
  16183. }
  16184. },
  16185. "required": ["id", "created", "type", "durable", "data"],
  16186. "additionalProperties": false
  16187. },
  16188. "session.tool.input.started": {
  16189. "type": "object",
  16190. "properties": {
  16191. "id": {
  16192. "type": "string",
  16193. "allOf": [
  16194. {
  16195. "pattern": "^evt_"
  16196. }
  16197. ]
  16198. },
  16199. "created": {
  16200. "type": "number"
  16201. },
  16202. "metadata": {
  16203. "type": "object"
  16204. },
  16205. "type": {
  16206. "type": "string",
  16207. "enum": ["session.tool.input.started"]
  16208. },
  16209. "durable": {
  16210. "type": "object",
  16211. "properties": {
  16212. "aggregateID": {
  16213. "type": "string"
  16214. },
  16215. "seq": {
  16216. "type": "integer",
  16217. "allOf": [
  16218. {
  16219. "minimum": 0
  16220. }
  16221. ]
  16222. },
  16223. "version": {
  16224. "type": "number",
  16225. "enum": [1]
  16226. }
  16227. },
  16228. "required": ["aggregateID", "seq", "version"],
  16229. "additionalProperties": false
  16230. },
  16231. "location": {
  16232. "$ref": "#/components/schemas/Location.Ref"
  16233. },
  16234. "data": {
  16235. "type": "object",
  16236. "properties": {
  16237. "sessionID": {
  16238. "type": "string",
  16239. "allOf": [
  16240. {
  16241. "pattern": "^ses"
  16242. }
  16243. ]
  16244. },
  16245. "assistantMessageID": {
  16246. "type": "string",
  16247. "allOf": [
  16248. {
  16249. "pattern": "^msg_"
  16250. }
  16251. ]
  16252. },
  16253. "id": {
  16254. "type": "string"
  16255. },
  16256. "name": {
  16257. "type": "string"
  16258. }
  16259. },
  16260. "required": ["sessionID", "assistantMessageID", "id", "name"],
  16261. "additionalProperties": false
  16262. }
  16263. },
  16264. "required": ["id", "created", "type", "durable", "data"],
  16265. "additionalProperties": false
  16266. },
  16267. "session.tool.input.ended": {
  16268. "type": "object",
  16269. "properties": {
  16270. "id": {
  16271. "type": "string",
  16272. "allOf": [
  16273. {
  16274. "pattern": "^evt_"
  16275. }
  16276. ]
  16277. },
  16278. "created": {
  16279. "type": "number"
  16280. },
  16281. "metadata": {
  16282. "type": "object"
  16283. },
  16284. "type": {
  16285. "type": "string",
  16286. "enum": ["session.tool.input.ended"]
  16287. },
  16288. "durable": {
  16289. "type": "object",
  16290. "properties": {
  16291. "aggregateID": {
  16292. "type": "string"
  16293. },
  16294. "seq": {
  16295. "type": "integer",
  16296. "allOf": [
  16297. {
  16298. "minimum": 0
  16299. }
  16300. ]
  16301. },
  16302. "version": {
  16303. "type": "number",
  16304. "enum": [1]
  16305. }
  16306. },
  16307. "required": ["aggregateID", "seq", "version"],
  16308. "additionalProperties": false
  16309. },
  16310. "location": {
  16311. "$ref": "#/components/schemas/Location.Ref"
  16312. },
  16313. "data": {
  16314. "type": "object",
  16315. "properties": {
  16316. "sessionID": {
  16317. "type": "string",
  16318. "allOf": [
  16319. {
  16320. "pattern": "^ses"
  16321. }
  16322. ]
  16323. },
  16324. "assistantMessageID": {
  16325. "type": "string",
  16326. "allOf": [
  16327. {
  16328. "pattern": "^msg_"
  16329. }
  16330. ]
  16331. },
  16332. "id": {
  16333. "type": "string"
  16334. },
  16335. "text": {
  16336. "type": "string"
  16337. }
  16338. },
  16339. "required": ["sessionID", "assistantMessageID", "id", "text"],
  16340. "additionalProperties": false
  16341. }
  16342. },
  16343. "required": ["id", "created", "type", "durable", "data"],
  16344. "additionalProperties": false
  16345. },
  16346. "Session.Message.ProviderState7": {
  16347. "type": "object"
  16348. },
  16349. "session.tool.called": {
  16350. "type": "object",
  16351. "properties": {
  16352. "id": {
  16353. "type": "string",
  16354. "allOf": [
  16355. {
  16356. "pattern": "^evt_"
  16357. }
  16358. ]
  16359. },
  16360. "created": {
  16361. "type": "number"
  16362. },
  16363. "metadata": {
  16364. "type": "object"
  16365. },
  16366. "type": {
  16367. "type": "string",
  16368. "enum": ["session.tool.called"]
  16369. },
  16370. "durable": {
  16371. "type": "object",
  16372. "properties": {
  16373. "aggregateID": {
  16374. "type": "string"
  16375. },
  16376. "seq": {
  16377. "type": "integer",
  16378. "allOf": [
  16379. {
  16380. "minimum": 0
  16381. }
  16382. ]
  16383. },
  16384. "version": {
  16385. "type": "number",
  16386. "enum": [1]
  16387. }
  16388. },
  16389. "required": ["aggregateID", "seq", "version"],
  16390. "additionalProperties": false
  16391. },
  16392. "location": {
  16393. "$ref": "#/components/schemas/Location.Ref"
  16394. },
  16395. "data": {
  16396. "type": "object",
  16397. "properties": {
  16398. "sessionID": {
  16399. "type": "string",
  16400. "allOf": [
  16401. {
  16402. "pattern": "^ses"
  16403. }
  16404. ]
  16405. },
  16406. "assistantMessageID": {
  16407. "type": "string",
  16408. "allOf": [
  16409. {
  16410. "pattern": "^msg_"
  16411. }
  16412. ]
  16413. },
  16414. "id": {
  16415. "type": "string"
  16416. },
  16417. "input": {
  16418. "type": "object"
  16419. },
  16420. "executed": {
  16421. "type": "boolean"
  16422. },
  16423. "state": {
  16424. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  16425. }
  16426. },
  16427. "required": ["sessionID", "assistantMessageID", "id", "input", "executed"],
  16428. "additionalProperties": false
  16429. }
  16430. },
  16431. "required": ["id", "created", "type", "durable", "data"],
  16432. "additionalProperties": false
  16433. },
  16434. "Tool.FileContent1": {
  16435. "type": "object",
  16436. "properties": {
  16437. "type": {
  16438. "type": "string",
  16439. "enum": ["file"]
  16440. },
  16441. "uri": {
  16442. "type": "string"
  16443. },
  16444. "mime": {
  16445. "type": "string"
  16446. },
  16447. "name": {
  16448. "anyOf": [
  16449. {
  16450. "type": "string"
  16451. },
  16452. {
  16453. "type": "null"
  16454. }
  16455. ]
  16456. }
  16457. },
  16458. "required": ["type", "uri", "mime"],
  16459. "additionalProperties": false
  16460. },
  16461. "Tool.Content1": {
  16462. "anyOf": [
  16463. {
  16464. "$ref": "#/components/schemas/Tool.TextContent"
  16465. },
  16466. {
  16467. "$ref": "#/components/schemas/Tool.FileContent1"
  16468. }
  16469. ]
  16470. },
  16471. "Session.Message.ProviderState8": {
  16472. "type": "object"
  16473. },
  16474. "session.tool.success": {
  16475. "type": "object",
  16476. "properties": {
  16477. "id": {
  16478. "type": "string",
  16479. "allOf": [
  16480. {
  16481. "pattern": "^evt_"
  16482. }
  16483. ]
  16484. },
  16485. "created": {
  16486. "type": "number"
  16487. },
  16488. "metadata": {
  16489. "type": "object"
  16490. },
  16491. "type": {
  16492. "type": "string",
  16493. "enum": ["session.tool.success"]
  16494. },
  16495. "durable": {
  16496. "type": "object",
  16497. "properties": {
  16498. "aggregateID": {
  16499. "type": "string"
  16500. },
  16501. "seq": {
  16502. "type": "integer",
  16503. "allOf": [
  16504. {
  16505. "minimum": 0
  16506. }
  16507. ]
  16508. },
  16509. "version": {
  16510. "type": "number",
  16511. "enum": [2]
  16512. }
  16513. },
  16514. "required": ["aggregateID", "seq", "version"],
  16515. "additionalProperties": false
  16516. },
  16517. "location": {
  16518. "$ref": "#/components/schemas/Location.Ref"
  16519. },
  16520. "data": {
  16521. "type": "object",
  16522. "properties": {
  16523. "sessionID": {
  16524. "type": "string",
  16525. "allOf": [
  16526. {
  16527. "pattern": "^ses"
  16528. }
  16529. ]
  16530. },
  16531. "assistantMessageID": {
  16532. "type": "string",
  16533. "allOf": [
  16534. {
  16535. "pattern": "^msg_"
  16536. }
  16537. ]
  16538. },
  16539. "id": {
  16540. "type": "string"
  16541. },
  16542. "content": {
  16543. "type": "array",
  16544. "prefixItems": [
  16545. {
  16546. "$ref": "#/components/schemas/Tool.Content1"
  16547. }
  16548. ],
  16549. "minItems": 1,
  16550. "items": {
  16551. "$ref": "#/components/schemas/Tool.Content1"
  16552. }
  16553. },
  16554. "metadata": {
  16555. "type": "object"
  16556. },
  16557. "executed": {
  16558. "type": "boolean"
  16559. },
  16560. "resultState": {
  16561. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  16562. }
  16563. },
  16564. "required": ["sessionID", "assistantMessageID", "id", "content", "executed"],
  16565. "additionalProperties": false
  16566. }
  16567. },
  16568. "required": ["id", "created", "type", "durable", "data"],
  16569. "additionalProperties": false
  16570. },
  16571. "Session.Message.ProviderState9": {
  16572. "type": "object"
  16573. },
  16574. "session.tool.failed": {
  16575. "type": "object",
  16576. "properties": {
  16577. "id": {
  16578. "type": "string",
  16579. "allOf": [
  16580. {
  16581. "pattern": "^evt_"
  16582. }
  16583. ]
  16584. },
  16585. "created": {
  16586. "type": "number"
  16587. },
  16588. "metadata": {
  16589. "type": "object"
  16590. },
  16591. "type": {
  16592. "type": "string",
  16593. "enum": ["session.tool.failed"]
  16594. },
  16595. "durable": {
  16596. "type": "object",
  16597. "properties": {
  16598. "aggregateID": {
  16599. "type": "string"
  16600. },
  16601. "seq": {
  16602. "type": "integer",
  16603. "allOf": [
  16604. {
  16605. "minimum": 0
  16606. }
  16607. ]
  16608. },
  16609. "version": {
  16610. "type": "number",
  16611. "enum": [2]
  16612. }
  16613. },
  16614. "required": ["aggregateID", "seq", "version"],
  16615. "additionalProperties": false
  16616. },
  16617. "location": {
  16618. "$ref": "#/components/schemas/Location.Ref"
  16619. },
  16620. "data": {
  16621. "type": "object",
  16622. "properties": {
  16623. "sessionID": {
  16624. "type": "string",
  16625. "allOf": [
  16626. {
  16627. "pattern": "^ses"
  16628. }
  16629. ]
  16630. },
  16631. "assistantMessageID": {
  16632. "type": "string",
  16633. "allOf": [
  16634. {
  16635. "pattern": "^msg_"
  16636. }
  16637. ]
  16638. },
  16639. "id": {
  16640. "type": "string"
  16641. },
  16642. "error": {
  16643. "$ref": "#/components/schemas/Session.StructuredError"
  16644. },
  16645. "content": {
  16646. "type": "array",
  16647. "prefixItems": [
  16648. {
  16649. "$ref": "#/components/schemas/Tool.Content1"
  16650. }
  16651. ],
  16652. "minItems": 1,
  16653. "items": {
  16654. "$ref": "#/components/schemas/Tool.Content1"
  16655. }
  16656. },
  16657. "metadata": {
  16658. "type": "object"
  16659. },
  16660. "executed": {
  16661. "type": "boolean"
  16662. },
  16663. "resultState": {
  16664. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  16665. }
  16666. },
  16667. "required": ["sessionID", "assistantMessageID", "id", "error", "executed"],
  16668. "additionalProperties": false
  16669. }
  16670. },
  16671. "required": ["id", "created", "type", "durable", "data"],
  16672. "additionalProperties": false
  16673. },
  16674. "session.retry.scheduled": {
  16675. "type": "object",
  16676. "properties": {
  16677. "id": {
  16678. "type": "string",
  16679. "allOf": [
  16680. {
  16681. "pattern": "^evt_"
  16682. }
  16683. ]
  16684. },
  16685. "created": {
  16686. "type": "number"
  16687. },
  16688. "metadata": {
  16689. "type": "object"
  16690. },
  16691. "type": {
  16692. "type": "string",
  16693. "enum": ["session.retry.scheduled"]
  16694. },
  16695. "durable": {
  16696. "type": "object",
  16697. "properties": {
  16698. "aggregateID": {
  16699. "type": "string"
  16700. },
  16701. "seq": {
  16702. "type": "integer",
  16703. "allOf": [
  16704. {
  16705. "minimum": 0
  16706. }
  16707. ]
  16708. },
  16709. "version": {
  16710. "type": "number",
  16711. "enum": [1]
  16712. }
  16713. },
  16714. "required": ["aggregateID", "seq", "version"],
  16715. "additionalProperties": false
  16716. },
  16717. "location": {
  16718. "$ref": "#/components/schemas/Location.Ref"
  16719. },
  16720. "data": {
  16721. "type": "object",
  16722. "properties": {
  16723. "sessionID": {
  16724. "type": "string",
  16725. "allOf": [
  16726. {
  16727. "pattern": "^ses"
  16728. }
  16729. ]
  16730. },
  16731. "assistantMessageID": {
  16732. "type": "string",
  16733. "allOf": [
  16734. {
  16735. "pattern": "^msg_"
  16736. }
  16737. ]
  16738. },
  16739. "attempt": {
  16740. "type": "integer",
  16741. "allOf": [
  16742. {
  16743. "exclusiveMinimum": 0
  16744. }
  16745. ]
  16746. },
  16747. "at": {
  16748. "type": "integer",
  16749. "allOf": [
  16750. {
  16751. "minimum": 0
  16752. }
  16753. ]
  16754. },
  16755. "error": {
  16756. "$ref": "#/components/schemas/Session.StructuredError"
  16757. }
  16758. },
  16759. "required": ["sessionID", "assistantMessageID", "attempt", "at", "error"],
  16760. "additionalProperties": false
  16761. }
  16762. },
  16763. "required": ["id", "created", "type", "durable", "data"],
  16764. "additionalProperties": false
  16765. },
  16766. "session.compaction.started": {
  16767. "type": "object",
  16768. "properties": {
  16769. "id": {
  16770. "type": "string",
  16771. "allOf": [
  16772. {
  16773. "pattern": "^evt_"
  16774. }
  16775. ]
  16776. },
  16777. "created": {
  16778. "type": "number"
  16779. },
  16780. "metadata": {
  16781. "type": "object"
  16782. },
  16783. "type": {
  16784. "type": "string",
  16785. "enum": ["session.compaction.started"]
  16786. },
  16787. "durable": {
  16788. "type": "object",
  16789. "properties": {
  16790. "aggregateID": {
  16791. "type": "string"
  16792. },
  16793. "seq": {
  16794. "type": "integer",
  16795. "allOf": [
  16796. {
  16797. "minimum": 0
  16798. }
  16799. ]
  16800. },
  16801. "version": {
  16802. "type": "number",
  16803. "enum": [1]
  16804. }
  16805. },
  16806. "required": ["aggregateID", "seq", "version"],
  16807. "additionalProperties": false
  16808. },
  16809. "location": {
  16810. "$ref": "#/components/schemas/Location.Ref"
  16811. },
  16812. "data": {
  16813. "type": "object",
  16814. "properties": {
  16815. "sessionID": {
  16816. "type": "string",
  16817. "allOf": [
  16818. {
  16819. "pattern": "^ses"
  16820. }
  16821. ]
  16822. },
  16823. "reason": {
  16824. "type": "string",
  16825. "enum": ["auto", "manual"]
  16826. },
  16827. "recent": {
  16828. "type": "string"
  16829. },
  16830. "inputID": {
  16831. "type": "string",
  16832. "allOf": [
  16833. {
  16834. "pattern": "^msg_"
  16835. }
  16836. ]
  16837. }
  16838. },
  16839. "required": ["sessionID", "reason", "recent"],
  16840. "additionalProperties": false
  16841. }
  16842. },
  16843. "required": ["id", "created", "type", "durable", "data"],
  16844. "additionalProperties": false
  16845. },
  16846. "session.compaction.ended": {
  16847. "type": "object",
  16848. "properties": {
  16849. "id": {
  16850. "type": "string",
  16851. "allOf": [
  16852. {
  16853. "pattern": "^evt_"
  16854. }
  16855. ]
  16856. },
  16857. "created": {
  16858. "type": "number"
  16859. },
  16860. "metadata": {
  16861. "type": "object"
  16862. },
  16863. "type": {
  16864. "type": "string",
  16865. "enum": ["session.compaction.ended"]
  16866. },
  16867. "durable": {
  16868. "type": "object",
  16869. "properties": {
  16870. "aggregateID": {
  16871. "type": "string"
  16872. },
  16873. "seq": {
  16874. "type": "integer",
  16875. "allOf": [
  16876. {
  16877. "minimum": 0
  16878. }
  16879. ]
  16880. },
  16881. "version": {
  16882. "type": "number",
  16883. "enum": [1]
  16884. }
  16885. },
  16886. "required": ["aggregateID", "seq", "version"],
  16887. "additionalProperties": false
  16888. },
  16889. "location": {
  16890. "$ref": "#/components/schemas/Location.Ref"
  16891. },
  16892. "data": {
  16893. "type": "object",
  16894. "properties": {
  16895. "sessionID": {
  16896. "type": "string",
  16897. "allOf": [
  16898. {
  16899. "pattern": "^ses"
  16900. }
  16901. ]
  16902. },
  16903. "reason": {
  16904. "type": "string",
  16905. "enum": ["auto", "manual"]
  16906. },
  16907. "text": {
  16908. "type": "string"
  16909. },
  16910. "recent": {
  16911. "type": "string"
  16912. }
  16913. },
  16914. "required": ["sessionID", "reason", "text", "recent"],
  16915. "additionalProperties": false
  16916. }
  16917. },
  16918. "required": ["id", "created", "type", "durable", "data"],
  16919. "additionalProperties": false
  16920. },
  16921. "session.compaction.failed": {
  16922. "type": "object",
  16923. "properties": {
  16924. "id": {
  16925. "type": "string",
  16926. "allOf": [
  16927. {
  16928. "pattern": "^evt_"
  16929. }
  16930. ]
  16931. },
  16932. "created": {
  16933. "type": "number"
  16934. },
  16935. "metadata": {
  16936. "type": "object"
  16937. },
  16938. "type": {
  16939. "type": "string",
  16940. "enum": ["session.compaction.failed"]
  16941. },
  16942. "durable": {
  16943. "type": "object",
  16944. "properties": {
  16945. "aggregateID": {
  16946. "type": "string"
  16947. },
  16948. "seq": {
  16949. "type": "integer",
  16950. "allOf": [
  16951. {
  16952. "minimum": 0
  16953. }
  16954. ]
  16955. },
  16956. "version": {
  16957. "type": "number",
  16958. "enum": [1]
  16959. }
  16960. },
  16961. "required": ["aggregateID", "seq", "version"],
  16962. "additionalProperties": false
  16963. },
  16964. "location": {
  16965. "$ref": "#/components/schemas/Location.Ref"
  16966. },
  16967. "data": {
  16968. "type": "object",
  16969. "properties": {
  16970. "sessionID": {
  16971. "type": "string",
  16972. "allOf": [
  16973. {
  16974. "pattern": "^ses"
  16975. }
  16976. ]
  16977. },
  16978. "reason": {
  16979. "type": "string",
  16980. "enum": ["auto", "manual"]
  16981. },
  16982. "error": {
  16983. "$ref": "#/components/schemas/Session.StructuredError"
  16984. },
  16985. "inputID": {
  16986. "type": "string",
  16987. "allOf": [
  16988. {
  16989. "pattern": "^msg_"
  16990. }
  16991. ]
  16992. }
  16993. },
  16994. "required": ["sessionID", "reason", "error"],
  16995. "additionalProperties": false
  16996. }
  16997. },
  16998. "required": ["id", "created", "type", "durable", "data"],
  16999. "additionalProperties": false
  17000. },
  17001. "session.revert.staged": {
  17002. "type": "object",
  17003. "properties": {
  17004. "id": {
  17005. "type": "string",
  17006. "allOf": [
  17007. {
  17008. "pattern": "^evt_"
  17009. }
  17010. ]
  17011. },
  17012. "created": {
  17013. "type": "number"
  17014. },
  17015. "metadata": {
  17016. "type": "object"
  17017. },
  17018. "type": {
  17019. "type": "string",
  17020. "enum": ["session.revert.staged"]
  17021. },
  17022. "durable": {
  17023. "type": "object",
  17024. "properties": {
  17025. "aggregateID": {
  17026. "type": "string"
  17027. },
  17028. "seq": {
  17029. "type": "integer",
  17030. "allOf": [
  17031. {
  17032. "minimum": 0
  17033. }
  17034. ]
  17035. },
  17036. "version": {
  17037. "type": "number",
  17038. "enum": [1]
  17039. }
  17040. },
  17041. "required": ["aggregateID", "seq", "version"],
  17042. "additionalProperties": false
  17043. },
  17044. "location": {
  17045. "$ref": "#/components/schemas/Location.Ref"
  17046. },
  17047. "data": {
  17048. "type": "object",
  17049. "properties": {
  17050. "sessionID": {
  17051. "type": "string",
  17052. "allOf": [
  17053. {
  17054. "pattern": "^ses"
  17055. }
  17056. ]
  17057. },
  17058. "revert": {
  17059. "$ref": "#/components/schemas/Session.Revert"
  17060. }
  17061. },
  17062. "required": ["sessionID", "revert"],
  17063. "additionalProperties": false
  17064. }
  17065. },
  17066. "required": ["id", "created", "type", "durable", "data"],
  17067. "additionalProperties": false
  17068. },
  17069. "session.revert.cleared": {
  17070. "type": "object",
  17071. "properties": {
  17072. "id": {
  17073. "type": "string",
  17074. "allOf": [
  17075. {
  17076. "pattern": "^evt_"
  17077. }
  17078. ]
  17079. },
  17080. "created": {
  17081. "type": "number"
  17082. },
  17083. "metadata": {
  17084. "type": "object"
  17085. },
  17086. "type": {
  17087. "type": "string",
  17088. "enum": ["session.revert.cleared"]
  17089. },
  17090. "durable": {
  17091. "type": "object",
  17092. "properties": {
  17093. "aggregateID": {
  17094. "type": "string"
  17095. },
  17096. "seq": {
  17097. "type": "integer",
  17098. "allOf": [
  17099. {
  17100. "minimum": 0
  17101. }
  17102. ]
  17103. },
  17104. "version": {
  17105. "type": "number",
  17106. "enum": [1]
  17107. }
  17108. },
  17109. "required": ["aggregateID", "seq", "version"],
  17110. "additionalProperties": false
  17111. },
  17112. "location": {
  17113. "$ref": "#/components/schemas/Location.Ref"
  17114. },
  17115. "data": {
  17116. "type": "object",
  17117. "properties": {
  17118. "sessionID": {
  17119. "type": "string",
  17120. "allOf": [
  17121. {
  17122. "pattern": "^ses"
  17123. }
  17124. ]
  17125. }
  17126. },
  17127. "required": ["sessionID"],
  17128. "additionalProperties": false
  17129. }
  17130. },
  17131. "required": ["id", "created", "type", "durable", "data"],
  17132. "additionalProperties": false
  17133. },
  17134. "session.revert.committed": {
  17135. "type": "object",
  17136. "properties": {
  17137. "id": {
  17138. "type": "string",
  17139. "allOf": [
  17140. {
  17141. "pattern": "^evt_"
  17142. }
  17143. ]
  17144. },
  17145. "created": {
  17146. "type": "number"
  17147. },
  17148. "metadata": {
  17149. "type": "object"
  17150. },
  17151. "type": {
  17152. "type": "string",
  17153. "enum": ["session.revert.committed"]
  17154. },
  17155. "durable": {
  17156. "type": "object",
  17157. "properties": {
  17158. "aggregateID": {
  17159. "type": "string"
  17160. },
  17161. "seq": {
  17162. "type": "integer",
  17163. "allOf": [
  17164. {
  17165. "minimum": 0
  17166. }
  17167. ]
  17168. },
  17169. "version": {
  17170. "type": "number",
  17171. "enum": [1]
  17172. }
  17173. },
  17174. "required": ["aggregateID", "seq", "version"],
  17175. "additionalProperties": false
  17176. },
  17177. "location": {
  17178. "$ref": "#/components/schemas/Location.Ref"
  17179. },
  17180. "data": {
  17181. "type": "object",
  17182. "properties": {
  17183. "sessionID": {
  17184. "type": "string",
  17185. "allOf": [
  17186. {
  17187. "pattern": "^ses"
  17188. }
  17189. ]
  17190. },
  17191. "to": {
  17192. "type": "string",
  17193. "allOf": [
  17194. {
  17195. "pattern": "^msg_"
  17196. }
  17197. ]
  17198. }
  17199. },
  17200. "required": ["sessionID", "to"],
  17201. "additionalProperties": false
  17202. }
  17203. },
  17204. "required": ["id", "created", "type", "durable", "data"],
  17205. "additionalProperties": false
  17206. },
  17207. "session.usage.recorded": {
  17208. "type": "object",
  17209. "properties": {
  17210. "id": {
  17211. "type": "string",
  17212. "allOf": [
  17213. {
  17214. "pattern": "^evt_"
  17215. }
  17216. ]
  17217. },
  17218. "created": {
  17219. "type": "number"
  17220. },
  17221. "metadata": {
  17222. "type": "object"
  17223. },
  17224. "type": {
  17225. "type": "string",
  17226. "enum": ["session.usage.recorded"]
  17227. },
  17228. "durable": {
  17229. "type": "object",
  17230. "properties": {
  17231. "aggregateID": {
  17232. "type": "string"
  17233. },
  17234. "seq": {
  17235. "type": "integer",
  17236. "allOf": [
  17237. {
  17238. "minimum": 0
  17239. }
  17240. ]
  17241. },
  17242. "version": {
  17243. "type": "number",
  17244. "enum": [1]
  17245. }
  17246. },
  17247. "required": ["aggregateID", "seq", "version"],
  17248. "additionalProperties": false
  17249. },
  17250. "location": {
  17251. "$ref": "#/components/schemas/Location.Ref"
  17252. },
  17253. "data": {
  17254. "type": "object",
  17255. "properties": {
  17256. "sessionID": {
  17257. "type": "string",
  17258. "allOf": [
  17259. {
  17260. "pattern": "^ses"
  17261. }
  17262. ]
  17263. },
  17264. "source": {
  17265. "type": "string",
  17266. "enum": ["title", "compaction"]
  17267. },
  17268. "cost": {
  17269. "$ref": "#/components/schemas/Money.USD"
  17270. },
  17271. "tokens": {
  17272. "$ref": "#/components/schemas/TokenUsage.Info"
  17273. }
  17274. },
  17275. "required": ["sessionID", "source", "cost", "tokens"],
  17276. "additionalProperties": false
  17277. }
  17278. },
  17279. "required": ["id", "created", "type", "durable", "data"],
  17280. "additionalProperties": false
  17281. },
  17282. "Session.Event.Durable": {
  17283. "oneOf": [
  17284. {
  17285. "$ref": "#/components/schemas/session.created"
  17286. },
  17287. {
  17288. "$ref": "#/components/schemas/session.agent.selected"
  17289. },
  17290. {
  17291. "$ref": "#/components/schemas/session.model.selected"
  17292. },
  17293. {
  17294. "$ref": "#/components/schemas/session.moved"
  17295. },
  17296. {
  17297. "$ref": "#/components/schemas/session.renamed"
  17298. },
  17299. {
  17300. "$ref": "#/components/schemas/session.deleted"
  17301. },
  17302. {
  17303. "$ref": "#/components/schemas/session.forked"
  17304. },
  17305. {
  17306. "$ref": "#/components/schemas/session.inbox.delivered"
  17307. },
  17308. {
  17309. "$ref": "#/components/schemas/session.inbox.enqueued"
  17310. },
  17311. {
  17312. "$ref": "#/components/schemas/session.inbox.cancelled"
  17313. },
  17314. {
  17315. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  17316. },
  17317. {
  17318. "$ref": "#/components/schemas/session.execution.started"
  17319. },
  17320. {
  17321. "$ref": "#/components/schemas/session.execution.succeeded"
  17322. },
  17323. {
  17324. "$ref": "#/components/schemas/session.execution.failed"
  17325. },
  17326. {
  17327. "$ref": "#/components/schemas/session.execution.interrupted"
  17328. },
  17329. {
  17330. "$ref": "#/components/schemas/session.instructions.updated"
  17331. },
  17332. {
  17333. "$ref": "#/components/schemas/session.synthetic"
  17334. },
  17335. {
  17336. "$ref": "#/components/schemas/session.skill.activated"
  17337. },
  17338. {
  17339. "$ref": "#/components/schemas/session.shell.started"
  17340. },
  17341. {
  17342. "$ref": "#/components/schemas/session.shell.ended"
  17343. },
  17344. {
  17345. "$ref": "#/components/schemas/session.step.started"
  17346. },
  17347. {
  17348. "$ref": "#/components/schemas/session.step.ended"
  17349. },
  17350. {
  17351. "$ref": "#/components/schemas/session.step.failed"
  17352. },
  17353. {
  17354. "$ref": "#/components/schemas/session.text.started"
  17355. },
  17356. {
  17357. "$ref": "#/components/schemas/session.text.ended"
  17358. },
  17359. {
  17360. "$ref": "#/components/schemas/session.reasoning.started"
  17361. },
  17362. {
  17363. "$ref": "#/components/schemas/session.reasoning.ended"
  17364. },
  17365. {
  17366. "$ref": "#/components/schemas/session.tool.input.started"
  17367. },
  17368. {
  17369. "$ref": "#/components/schemas/session.tool.input.ended"
  17370. },
  17371. {
  17372. "$ref": "#/components/schemas/session.tool.called"
  17373. },
  17374. {
  17375. "$ref": "#/components/schemas/session.tool.success"
  17376. },
  17377. {
  17378. "$ref": "#/components/schemas/session.tool.failed"
  17379. },
  17380. {
  17381. "$ref": "#/components/schemas/session.retry.scheduled"
  17382. },
  17383. {
  17384. "$ref": "#/components/schemas/session.compaction.started"
  17385. },
  17386. {
  17387. "$ref": "#/components/schemas/session.compaction.ended"
  17388. },
  17389. {
  17390. "$ref": "#/components/schemas/session.compaction.failed"
  17391. },
  17392. {
  17393. "$ref": "#/components/schemas/session.revert.staged"
  17394. },
  17395. {
  17396. "$ref": "#/components/schemas/session.revert.cleared"
  17397. },
  17398. {
  17399. "$ref": "#/components/schemas/session.revert.committed"
  17400. },
  17401. {
  17402. "$ref": "#/components/schemas/session.usage.recorded"
  17403. }
  17404. ]
  17405. },
  17406. "EventLog.Synced": {
  17407. "type": "object",
  17408. "properties": {
  17409. "type": {
  17410. "type": "string",
  17411. "enum": ["log.synced"]
  17412. },
  17413. "aggregateID": {
  17414. "type": "string"
  17415. },
  17416. "seq": {
  17417. "type": "integer",
  17418. "allOf": [
  17419. {
  17420. "minimum": 0
  17421. }
  17422. ]
  17423. }
  17424. },
  17425. "required": ["type", "aggregateID"],
  17426. "additionalProperties": false,
  17427. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  17428. },
  17429. "SessionLogItem": {
  17430. "anyOf": [
  17431. {
  17432. "$ref": "#/components/schemas/Session.Event.Durable"
  17433. },
  17434. {
  17435. "$ref": "#/components/schemas/EventLog.Synced"
  17436. }
  17437. ]
  17438. },
  17439. "SessionLogItemJsonString": {
  17440. "type": "string",
  17441. "contentSchema": {
  17442. "$ref": "#/components/schemas/SessionLogItem"
  17443. },
  17444. "contentMediaType": "application/json"
  17445. },
  17446. "SessionMessagesResponse": {
  17447. "type": "object",
  17448. "properties": {
  17449. "data": {
  17450. "type": "array",
  17451. "items": {
  17452. "$ref": "#/components/schemas/Session.Message.Info"
  17453. }
  17454. },
  17455. "cursor": {
  17456. "type": "object",
  17457. "properties": {
  17458. "previous": {
  17459. "anyOf": [
  17460. {
  17461. "type": "string"
  17462. },
  17463. {
  17464. "type": "null"
  17465. }
  17466. ]
  17467. },
  17468. "next": {
  17469. "anyOf": [
  17470. {
  17471. "type": "string"
  17472. },
  17473. {
  17474. "type": "null"
  17475. }
  17476. ]
  17477. }
  17478. },
  17479. "additionalProperties": false
  17480. }
  17481. },
  17482. "required": ["data", "cursor"],
  17483. "additionalProperties": false
  17484. },
  17485. "Model.ReasoningField": {
  17486. "anyOf": [
  17487. {
  17488. "type": "string",
  17489. "enum": ["reasoning", "reasoning_content", "reasoning_text"]
  17490. },
  17491. {
  17492. "type": "string"
  17493. }
  17494. ]
  17495. },
  17496. "Model.MaxTokensField": {
  17497. "type": "string",
  17498. "enum": ["max_completion_tokens", "max_tokens"]
  17499. },
  17500. "Model.Compatibility": {
  17501. "type": "object",
  17502. "properties": {
  17503. "reasoningField": {
  17504. "$ref": "#/components/schemas/Model.ReasoningField"
  17505. },
  17506. "maxTokensField": {
  17507. "$ref": "#/components/schemas/Model.MaxTokensField"
  17508. },
  17509. "requireFinishReason": {
  17510. "type": "boolean"
  17511. }
  17512. },
  17513. "additionalProperties": false
  17514. },
  17515. "Model.Capabilities": {
  17516. "type": "object",
  17517. "properties": {
  17518. "tools": {
  17519. "type": "boolean"
  17520. },
  17521. "input": {
  17522. "type": "array",
  17523. "items": {
  17524. "type": "string"
  17525. }
  17526. },
  17527. "output": {
  17528. "type": "array",
  17529. "items": {
  17530. "type": "string"
  17531. }
  17532. }
  17533. },
  17534. "required": ["tools", "input", "output"],
  17535. "additionalProperties": false
  17536. },
  17537. "Model.Variant": {
  17538. "type": "object",
  17539. "properties": {
  17540. "id": {
  17541. "type": "string"
  17542. },
  17543. "settings": {
  17544. "type": "object"
  17545. },
  17546. "headers": {
  17547. "type": "object",
  17548. "additionalProperties": {
  17549. "type": "string"
  17550. }
  17551. },
  17552. "body": {
  17553. "type": "object"
  17554. }
  17555. },
  17556. "required": ["id"],
  17557. "additionalProperties": false
  17558. },
  17559. "Money.USDPerMillionTokens": {
  17560. "type": "number"
  17561. },
  17562. "Model.Cost": {
  17563. "type": "object",
  17564. "properties": {
  17565. "tier": {
  17566. "type": "object",
  17567. "properties": {
  17568. "type": {
  17569. "type": "string",
  17570. "enum": ["context"]
  17571. },
  17572. "size": {
  17573. "type": "integer"
  17574. }
  17575. },
  17576. "required": ["type", "size"],
  17577. "additionalProperties": false
  17578. },
  17579. "input": {
  17580. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17581. },
  17582. "output": {
  17583. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17584. },
  17585. "cache": {
  17586. "type": "object",
  17587. "properties": {
  17588. "read": {
  17589. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17590. },
  17591. "write": {
  17592. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17593. }
  17594. },
  17595. "required": ["read", "write"],
  17596. "additionalProperties": false
  17597. }
  17598. },
  17599. "required": ["input", "output", "cache"],
  17600. "additionalProperties": false
  17601. },
  17602. "Model.Info": {
  17603. "type": "object",
  17604. "properties": {
  17605. "id": {
  17606. "type": "string"
  17607. },
  17608. "modelID": {
  17609. "type": "string"
  17610. },
  17611. "providerID": {
  17612. "type": "string"
  17613. },
  17614. "family": {
  17615. "type": "string"
  17616. },
  17617. "name": {
  17618. "type": "string"
  17619. },
  17620. "compatibility": {
  17621. "$ref": "#/components/schemas/Model.Compatibility"
  17622. },
  17623. "package": {
  17624. "type": "string"
  17625. },
  17626. "settings": {
  17627. "type": "object"
  17628. },
  17629. "headers": {
  17630. "type": "object",
  17631. "additionalProperties": {
  17632. "type": "string"
  17633. }
  17634. },
  17635. "body": {
  17636. "type": "object"
  17637. },
  17638. "capabilities": {
  17639. "$ref": "#/components/schemas/Model.Capabilities"
  17640. },
  17641. "variants": {
  17642. "type": "array",
  17643. "items": {
  17644. "$ref": "#/components/schemas/Model.Variant"
  17645. }
  17646. },
  17647. "time": {
  17648. "type": "object",
  17649. "properties": {
  17650. "released": {
  17651. "type": "number"
  17652. }
  17653. },
  17654. "required": ["released"],
  17655. "additionalProperties": false
  17656. },
  17657. "cost": {
  17658. "type": "array",
  17659. "items": {
  17660. "$ref": "#/components/schemas/Model.Cost"
  17661. }
  17662. },
  17663. "status": {
  17664. "type": "string",
  17665. "enum": ["alpha", "beta", "deprecated", "active"]
  17666. },
  17667. "enabled": {
  17668. "type": "boolean"
  17669. },
  17670. "limit": {
  17671. "type": "object",
  17672. "properties": {
  17673. "context": {
  17674. "type": "integer"
  17675. },
  17676. "input": {
  17677. "type": "integer"
  17678. },
  17679. "output": {
  17680. "type": "integer"
  17681. }
  17682. },
  17683. "required": ["context", "output"],
  17684. "additionalProperties": false
  17685. }
  17686. },
  17687. "required": [
  17688. "id",
  17689. "modelID",
  17690. "providerID",
  17691. "name",
  17692. "capabilities",
  17693. "variants",
  17694. "time",
  17695. "cost",
  17696. "status",
  17697. "enabled",
  17698. "limit"
  17699. ],
  17700. "additionalProperties": false
  17701. },
  17702. "GenerateTextResponse": {
  17703. "type": "object",
  17704. "properties": {
  17705. "data": {
  17706. "type": "object",
  17707. "properties": {
  17708. "text": {
  17709. "type": "string"
  17710. }
  17711. },
  17712. "required": ["text"],
  17713. "additionalProperties": false
  17714. }
  17715. },
  17716. "required": ["data"],
  17717. "additionalProperties": false
  17718. },
  17719. "Provider.Info": {
  17720. "type": "object",
  17721. "properties": {
  17722. "id": {
  17723. "type": "string"
  17724. },
  17725. "integrationID": {
  17726. "type": "string"
  17727. },
  17728. "name": {
  17729. "type": "string"
  17730. },
  17731. "disabled": {
  17732. "type": "boolean"
  17733. },
  17734. "package": {
  17735. "type": "string"
  17736. },
  17737. "settings": {
  17738. "type": "object"
  17739. },
  17740. "headers": {
  17741. "type": "object",
  17742. "additionalProperties": {
  17743. "type": "string"
  17744. }
  17745. },
  17746. "body": {
  17747. "type": "object"
  17748. }
  17749. },
  17750. "required": ["id", "name", "package"],
  17751. "additionalProperties": false
  17752. },
  17753. "ProviderNotFoundError": {
  17754. "type": "object",
  17755. "properties": {
  17756. "_tag": {
  17757. "type": "string",
  17758. "enum": ["ProviderNotFoundError"]
  17759. },
  17760. "providerID": {
  17761. "type": "string"
  17762. },
  17763. "message": {
  17764. "type": "string"
  17765. }
  17766. },
  17767. "required": ["_tag", "providerID", "message"],
  17768. "additionalProperties": false
  17769. },
  17770. "Form.When": {
  17771. "type": "object",
  17772. "properties": {
  17773. "key": {
  17774. "type": "string"
  17775. },
  17776. "op": {
  17777. "type": "string",
  17778. "enum": ["eq", "neq"]
  17779. },
  17780. "value": {
  17781. "anyOf": [
  17782. {
  17783. "type": "string"
  17784. },
  17785. {
  17786. "anyOf": [
  17787. {
  17788. "anyOf": [
  17789. {
  17790. "type": "number"
  17791. },
  17792. {
  17793. "type": "string",
  17794. "enum": ["NaN"]
  17795. },
  17796. {
  17797. "type": "string",
  17798. "enum": ["Infinity"]
  17799. },
  17800. {
  17801. "type": "string",
  17802. "enum": ["-Infinity"]
  17803. }
  17804. ]
  17805. },
  17806. {
  17807. "type": "string",
  17808. "enum": ["Infinity", "-Infinity", "NaN"]
  17809. }
  17810. ]
  17811. },
  17812. {
  17813. "type": "boolean"
  17814. }
  17815. ]
  17816. }
  17817. },
  17818. "required": ["key", "op", "value"],
  17819. "additionalProperties": false
  17820. },
  17821. "Form.Option": {
  17822. "type": "object",
  17823. "properties": {
  17824. "value": {
  17825. "type": "string"
  17826. },
  17827. "label": {
  17828. "type": "string"
  17829. },
  17830. "description": {
  17831. "type": "string"
  17832. }
  17833. },
  17834. "required": ["value", "label"],
  17835. "additionalProperties": false
  17836. },
  17837. "Form.StringField": {
  17838. "type": "object",
  17839. "properties": {
  17840. "key": {
  17841. "type": "string"
  17842. },
  17843. "title": {
  17844. "type": "string"
  17845. },
  17846. "description": {
  17847. "type": "string"
  17848. },
  17849. "required": {
  17850. "type": "boolean"
  17851. },
  17852. "when": {
  17853. "type": "array",
  17854. "items": {
  17855. "$ref": "#/components/schemas/Form.When"
  17856. }
  17857. },
  17858. "type": {
  17859. "type": "string",
  17860. "enum": ["string"]
  17861. },
  17862. "format": {
  17863. "type": "string",
  17864. "enum": ["email", "uri", "date", "date-time"]
  17865. },
  17866. "minLength": {
  17867. "type": "integer",
  17868. "allOf": [
  17869. {
  17870. "minimum": 0
  17871. }
  17872. ]
  17873. },
  17874. "maxLength": {
  17875. "type": "integer",
  17876. "allOf": [
  17877. {
  17878. "minimum": 0
  17879. }
  17880. ]
  17881. },
  17882. "pattern": {
  17883. "type": "string"
  17884. },
  17885. "placeholder": {
  17886. "type": "string"
  17887. },
  17888. "default": {
  17889. "type": "string"
  17890. },
  17891. "options": {
  17892. "type": "array",
  17893. "items": {
  17894. "$ref": "#/components/schemas/Form.Option"
  17895. }
  17896. },
  17897. "custom": {
  17898. "type": "boolean"
  17899. }
  17900. },
  17901. "required": ["key", "type"],
  17902. "additionalProperties": false
  17903. },
  17904. "Form.NumberField": {
  17905. "type": "object",
  17906. "properties": {
  17907. "key": {
  17908. "type": "string"
  17909. },
  17910. "title": {
  17911. "type": "string"
  17912. },
  17913. "description": {
  17914. "type": "string"
  17915. },
  17916. "required": {
  17917. "type": "boolean"
  17918. },
  17919. "when": {
  17920. "type": "array",
  17921. "items": {
  17922. "$ref": "#/components/schemas/Form.When"
  17923. }
  17924. },
  17925. "type": {
  17926. "type": "string",
  17927. "enum": ["number"]
  17928. },
  17929. "minimum": {
  17930. "anyOf": [
  17931. {
  17932. "anyOf": [
  17933. {
  17934. "type": "number"
  17935. },
  17936. {
  17937. "type": "string",
  17938. "enum": ["NaN"]
  17939. },
  17940. {
  17941. "type": "string",
  17942. "enum": ["Infinity"]
  17943. },
  17944. {
  17945. "type": "string",
  17946. "enum": ["-Infinity"]
  17947. }
  17948. ]
  17949. },
  17950. {
  17951. "type": "string",
  17952. "enum": ["Infinity", "-Infinity", "NaN"]
  17953. }
  17954. ]
  17955. },
  17956. "maximum": {
  17957. "anyOf": [
  17958. {
  17959. "anyOf": [
  17960. {
  17961. "type": "number"
  17962. },
  17963. {
  17964. "type": "string",
  17965. "enum": ["NaN"]
  17966. },
  17967. {
  17968. "type": "string",
  17969. "enum": ["Infinity"]
  17970. },
  17971. {
  17972. "type": "string",
  17973. "enum": ["-Infinity"]
  17974. }
  17975. ]
  17976. },
  17977. {
  17978. "type": "string",
  17979. "enum": ["Infinity", "-Infinity", "NaN"]
  17980. }
  17981. ]
  17982. },
  17983. "default": {
  17984. "anyOf": [
  17985. {
  17986. "anyOf": [
  17987. {
  17988. "type": "number"
  17989. },
  17990. {
  17991. "type": "string",
  17992. "enum": ["NaN"]
  17993. },
  17994. {
  17995. "type": "string",
  17996. "enum": ["Infinity"]
  17997. },
  17998. {
  17999. "type": "string",
  18000. "enum": ["-Infinity"]
  18001. }
  18002. ]
  18003. },
  18004. {
  18005. "type": "string",
  18006. "enum": ["Infinity", "-Infinity", "NaN"]
  18007. }
  18008. ]
  18009. }
  18010. },
  18011. "required": ["key", "type"],
  18012. "additionalProperties": false
  18013. },
  18014. "Form.IntegerField": {
  18015. "type": "object",
  18016. "properties": {
  18017. "key": {
  18018. "type": "string"
  18019. },
  18020. "title": {
  18021. "type": "string"
  18022. },
  18023. "description": {
  18024. "type": "string"
  18025. },
  18026. "required": {
  18027. "type": "boolean"
  18028. },
  18029. "when": {
  18030. "type": "array",
  18031. "items": {
  18032. "$ref": "#/components/schemas/Form.When"
  18033. }
  18034. },
  18035. "type": {
  18036. "type": "string",
  18037. "enum": ["integer"]
  18038. },
  18039. "minimum": {
  18040. "anyOf": [
  18041. {
  18042. "anyOf": [
  18043. {
  18044. "type": "number"
  18045. },
  18046. {
  18047. "type": "string",
  18048. "enum": ["NaN"]
  18049. },
  18050. {
  18051. "type": "string",
  18052. "enum": ["Infinity"]
  18053. },
  18054. {
  18055. "type": "string",
  18056. "enum": ["-Infinity"]
  18057. }
  18058. ]
  18059. },
  18060. {
  18061. "type": "string",
  18062. "enum": ["Infinity", "-Infinity", "NaN"]
  18063. }
  18064. ]
  18065. },
  18066. "maximum": {
  18067. "anyOf": [
  18068. {
  18069. "anyOf": [
  18070. {
  18071. "type": "number"
  18072. },
  18073. {
  18074. "type": "string",
  18075. "enum": ["NaN"]
  18076. },
  18077. {
  18078. "type": "string",
  18079. "enum": ["Infinity"]
  18080. },
  18081. {
  18082. "type": "string",
  18083. "enum": ["-Infinity"]
  18084. }
  18085. ]
  18086. },
  18087. {
  18088. "type": "string",
  18089. "enum": ["Infinity", "-Infinity", "NaN"]
  18090. }
  18091. ]
  18092. },
  18093. "default": {
  18094. "anyOf": [
  18095. {
  18096. "anyOf": [
  18097. {
  18098. "type": "number"
  18099. },
  18100. {
  18101. "type": "string",
  18102. "enum": ["NaN"]
  18103. },
  18104. {
  18105. "type": "string",
  18106. "enum": ["Infinity"]
  18107. },
  18108. {
  18109. "type": "string",
  18110. "enum": ["-Infinity"]
  18111. }
  18112. ]
  18113. },
  18114. {
  18115. "type": "string",
  18116. "enum": ["Infinity", "-Infinity", "NaN"]
  18117. }
  18118. ]
  18119. }
  18120. },
  18121. "required": ["key", "type"],
  18122. "additionalProperties": false
  18123. },
  18124. "Form.BooleanField": {
  18125. "type": "object",
  18126. "properties": {
  18127. "key": {
  18128. "type": "string"
  18129. },
  18130. "title": {
  18131. "type": "string"
  18132. },
  18133. "description": {
  18134. "type": "string"
  18135. },
  18136. "required": {
  18137. "type": "boolean"
  18138. },
  18139. "when": {
  18140. "type": "array",
  18141. "items": {
  18142. "$ref": "#/components/schemas/Form.When"
  18143. }
  18144. },
  18145. "type": {
  18146. "type": "string",
  18147. "enum": ["boolean"]
  18148. },
  18149. "default": {
  18150. "type": "boolean"
  18151. }
  18152. },
  18153. "required": ["key", "type"],
  18154. "additionalProperties": false
  18155. },
  18156. "Form.MultiselectField": {
  18157. "type": "object",
  18158. "properties": {
  18159. "key": {
  18160. "type": "string"
  18161. },
  18162. "title": {
  18163. "type": "string"
  18164. },
  18165. "description": {
  18166. "type": "string"
  18167. },
  18168. "required": {
  18169. "type": "boolean"
  18170. },
  18171. "when": {
  18172. "type": "array",
  18173. "items": {
  18174. "$ref": "#/components/schemas/Form.When"
  18175. }
  18176. },
  18177. "type": {
  18178. "type": "string",
  18179. "enum": ["multiselect"]
  18180. },
  18181. "options": {
  18182. "type": "array",
  18183. "items": {
  18184. "$ref": "#/components/schemas/Form.Option"
  18185. }
  18186. },
  18187. "minItems": {
  18188. "type": "integer",
  18189. "allOf": [
  18190. {
  18191. "minimum": 0
  18192. }
  18193. ]
  18194. },
  18195. "maxItems": {
  18196. "type": "integer",
  18197. "allOf": [
  18198. {
  18199. "minimum": 0
  18200. }
  18201. ]
  18202. },
  18203. "custom": {
  18204. "type": "boolean"
  18205. },
  18206. "default": {
  18207. "type": "array",
  18208. "items": {
  18209. "type": "string"
  18210. }
  18211. }
  18212. },
  18213. "required": ["key", "type", "options"],
  18214. "additionalProperties": false
  18215. },
  18216. "Form.ExternalField": {
  18217. "type": "object",
  18218. "properties": {
  18219. "key": {
  18220. "type": "string"
  18221. },
  18222. "type": {
  18223. "type": "string",
  18224. "enum": ["external"]
  18225. },
  18226. "url": {
  18227. "type": "string"
  18228. },
  18229. "title": {
  18230. "type": "string"
  18231. },
  18232. "description": {
  18233. "type": "string"
  18234. }
  18235. },
  18236. "required": ["key", "type", "url"],
  18237. "additionalProperties": false
  18238. },
  18239. "Form.Field": {
  18240. "anyOf": [
  18241. {
  18242. "$ref": "#/components/schemas/Form.StringField"
  18243. },
  18244. {
  18245. "$ref": "#/components/schemas/Form.NumberField"
  18246. },
  18247. {
  18248. "$ref": "#/components/schemas/Form.IntegerField"
  18249. },
  18250. {
  18251. "$ref": "#/components/schemas/Form.BooleanField"
  18252. },
  18253. {
  18254. "$ref": "#/components/schemas/Form.MultiselectField"
  18255. },
  18256. {
  18257. "$ref": "#/components/schemas/Form.ExternalField"
  18258. }
  18259. ]
  18260. },
  18261. "Form.Fields": {
  18262. "type": "array",
  18263. "prefixItems": [
  18264. {
  18265. "$ref": "#/components/schemas/Form.Field"
  18266. }
  18267. ],
  18268. "minItems": 1,
  18269. "items": {
  18270. "$ref": "#/components/schemas/Form.Field"
  18271. }
  18272. },
  18273. "Integration.OAuthMethod": {
  18274. "type": "object",
  18275. "properties": {
  18276. "id": {
  18277. "type": "string"
  18278. },
  18279. "type": {
  18280. "type": "string",
  18281. "enum": ["oauth"]
  18282. },
  18283. "label": {
  18284. "type": "string"
  18285. },
  18286. "form": {
  18287. "$ref": "#/components/schemas/Form.Fields"
  18288. }
  18289. },
  18290. "required": ["id", "type", "label"],
  18291. "additionalProperties": false
  18292. },
  18293. "Integration.CommandMethod": {
  18294. "type": "object",
  18295. "properties": {
  18296. "id": {
  18297. "type": "string"
  18298. },
  18299. "type": {
  18300. "type": "string",
  18301. "enum": ["command"]
  18302. },
  18303. "label": {
  18304. "type": "string"
  18305. },
  18306. "command": {
  18307. "type": "array",
  18308. "items": {
  18309. "type": "string"
  18310. }
  18311. }
  18312. },
  18313. "required": ["id", "type", "label", "command"],
  18314. "additionalProperties": false
  18315. },
  18316. "Integration.KeyMethod": {
  18317. "type": "object",
  18318. "properties": {
  18319. "type": {
  18320. "type": "string",
  18321. "enum": ["key"]
  18322. },
  18323. "label": {
  18324. "type": "string"
  18325. },
  18326. "form": {
  18327. "$ref": "#/components/schemas/Form.Fields"
  18328. }
  18329. },
  18330. "required": ["type"],
  18331. "additionalProperties": false
  18332. },
  18333. "Integration.EnvMethod": {
  18334. "type": "object",
  18335. "properties": {
  18336. "type": {
  18337. "type": "string",
  18338. "enum": ["env"]
  18339. },
  18340. "names": {
  18341. "type": "array",
  18342. "items": {
  18343. "type": "string"
  18344. }
  18345. }
  18346. },
  18347. "required": ["type", "names"],
  18348. "additionalProperties": false
  18349. },
  18350. "Integration.Method": {
  18351. "anyOf": [
  18352. {
  18353. "$ref": "#/components/schemas/Integration.OAuthMethod"
  18354. },
  18355. {
  18356. "$ref": "#/components/schemas/Integration.CommandMethod"
  18357. },
  18358. {
  18359. "$ref": "#/components/schemas/Integration.KeyMethod"
  18360. },
  18361. {
  18362. "$ref": "#/components/schemas/Integration.EnvMethod"
  18363. }
  18364. ]
  18365. },
  18366. "Connection.CredentialInfo": {
  18367. "type": "object",
  18368. "properties": {
  18369. "type": {
  18370. "type": "string",
  18371. "enum": ["credential"]
  18372. },
  18373. "id": {
  18374. "type": "string"
  18375. },
  18376. "label": {
  18377. "type": "string"
  18378. }
  18379. },
  18380. "required": ["type", "id", "label"],
  18381. "additionalProperties": false
  18382. },
  18383. "Connection.EnvInfo": {
  18384. "type": "object",
  18385. "properties": {
  18386. "type": {
  18387. "type": "string",
  18388. "enum": ["env"]
  18389. },
  18390. "name": {
  18391. "type": "string"
  18392. }
  18393. },
  18394. "required": ["type", "name"],
  18395. "additionalProperties": false
  18396. },
  18397. "Connection.Info": {
  18398. "anyOf": [
  18399. {
  18400. "$ref": "#/components/schemas/Connection.CredentialInfo"
  18401. },
  18402. {
  18403. "$ref": "#/components/schemas/Connection.EnvInfo"
  18404. }
  18405. ]
  18406. },
  18407. "Integration.Info": {
  18408. "type": "object",
  18409. "properties": {
  18410. "id": {
  18411. "type": "string"
  18412. },
  18413. "name": {
  18414. "type": "string"
  18415. },
  18416. "methods": {
  18417. "type": "array",
  18418. "items": {
  18419. "$ref": "#/components/schemas/Integration.Method"
  18420. }
  18421. },
  18422. "connections": {
  18423. "type": "array",
  18424. "items": {
  18425. "$ref": "#/components/schemas/Connection.Info"
  18426. }
  18427. }
  18428. },
  18429. "required": ["id", "name", "methods", "connections"],
  18430. "additionalProperties": false
  18431. },
  18432. "Form.Value": {
  18433. "anyOf": [
  18434. {
  18435. "type": "string"
  18436. },
  18437. {
  18438. "anyOf": [
  18439. {
  18440. "anyOf": [
  18441. {
  18442. "type": "number"
  18443. },
  18444. {
  18445. "type": "string",
  18446. "enum": ["NaN"]
  18447. },
  18448. {
  18449. "type": "string",
  18450. "enum": ["Infinity"]
  18451. },
  18452. {
  18453. "type": "string",
  18454. "enum": ["-Infinity"]
  18455. }
  18456. ]
  18457. },
  18458. {
  18459. "type": "string",
  18460. "enum": ["Infinity", "-Infinity", "NaN"]
  18461. }
  18462. ]
  18463. },
  18464. {
  18465. "type": "boolean"
  18466. },
  18467. {
  18468. "type": "array",
  18469. "items": {
  18470. "type": "string"
  18471. }
  18472. }
  18473. ]
  18474. },
  18475. "Form.Answer": {
  18476. "type": "object",
  18477. "additionalProperties": {
  18478. "$ref": "#/components/schemas/Form.Value"
  18479. }
  18480. },
  18481. "Integration.Attempt": {
  18482. "type": "object",
  18483. "properties": {
  18484. "attemptID": {
  18485. "type": "string"
  18486. },
  18487. "url": {
  18488. "type": "string"
  18489. },
  18490. "instructions": {
  18491. "type": "string"
  18492. },
  18493. "mode": {
  18494. "type": "string",
  18495. "enum": ["auto", "code"]
  18496. },
  18497. "time": {
  18498. "type": "object",
  18499. "properties": {
  18500. "created": {
  18501. "anyOf": [
  18502. {
  18503. "anyOf": [
  18504. {
  18505. "type": "number"
  18506. },
  18507. {
  18508. "type": "string",
  18509. "enum": ["NaN"]
  18510. },
  18511. {
  18512. "type": "string",
  18513. "enum": ["Infinity"]
  18514. },
  18515. {
  18516. "type": "string",
  18517. "enum": ["-Infinity"]
  18518. }
  18519. ]
  18520. },
  18521. {
  18522. "type": "string",
  18523. "enum": ["Infinity", "-Infinity", "NaN"]
  18524. }
  18525. ]
  18526. },
  18527. "expires": {
  18528. "anyOf": [
  18529. {
  18530. "anyOf": [
  18531. {
  18532. "type": "number"
  18533. },
  18534. {
  18535. "type": "string",
  18536. "enum": ["NaN"]
  18537. },
  18538. {
  18539. "type": "string",
  18540. "enum": ["Infinity"]
  18541. },
  18542. {
  18543. "type": "string",
  18544. "enum": ["-Infinity"]
  18545. }
  18546. ]
  18547. },
  18548. {
  18549. "type": "string",
  18550. "enum": ["Infinity", "-Infinity", "NaN"]
  18551. }
  18552. ]
  18553. }
  18554. },
  18555. "required": ["created", "expires"],
  18556. "additionalProperties": false
  18557. }
  18558. },
  18559. "required": ["attemptID", "url", "instructions", "mode", "time"],
  18560. "additionalProperties": false
  18561. },
  18562. "Integration.AttemptStatus": {
  18563. "anyOf": [
  18564. {
  18565. "type": "object",
  18566. "properties": {
  18567. "status": {
  18568. "type": "string",
  18569. "enum": ["pending"]
  18570. },
  18571. "time": {
  18572. "type": "object",
  18573. "properties": {
  18574. "created": {
  18575. "anyOf": [
  18576. {
  18577. "anyOf": [
  18578. {
  18579. "type": "number"
  18580. },
  18581. {
  18582. "type": "string",
  18583. "enum": ["NaN"]
  18584. },
  18585. {
  18586. "type": "string",
  18587. "enum": ["Infinity"]
  18588. },
  18589. {
  18590. "type": "string",
  18591. "enum": ["-Infinity"]
  18592. }
  18593. ]
  18594. },
  18595. {
  18596. "type": "string",
  18597. "enum": ["Infinity", "-Infinity", "NaN"]
  18598. }
  18599. ]
  18600. },
  18601. "expires": {
  18602. "anyOf": [
  18603. {
  18604. "anyOf": [
  18605. {
  18606. "type": "number"
  18607. },
  18608. {
  18609. "type": "string",
  18610. "enum": ["NaN"]
  18611. },
  18612. {
  18613. "type": "string",
  18614. "enum": ["Infinity"]
  18615. },
  18616. {
  18617. "type": "string",
  18618. "enum": ["-Infinity"]
  18619. }
  18620. ]
  18621. },
  18622. {
  18623. "type": "string",
  18624. "enum": ["Infinity", "-Infinity", "NaN"]
  18625. }
  18626. ]
  18627. }
  18628. },
  18629. "required": ["created", "expires"],
  18630. "additionalProperties": false
  18631. }
  18632. },
  18633. "required": ["status", "time"],
  18634. "additionalProperties": false
  18635. },
  18636. {
  18637. "type": "object",
  18638. "properties": {
  18639. "status": {
  18640. "type": "string",
  18641. "enum": ["complete"]
  18642. },
  18643. "time": {
  18644. "type": "object",
  18645. "properties": {
  18646. "created": {
  18647. "anyOf": [
  18648. {
  18649. "anyOf": [
  18650. {
  18651. "type": "number"
  18652. },
  18653. {
  18654. "type": "string",
  18655. "enum": ["NaN"]
  18656. },
  18657. {
  18658. "type": "string",
  18659. "enum": ["Infinity"]
  18660. },
  18661. {
  18662. "type": "string",
  18663. "enum": ["-Infinity"]
  18664. }
  18665. ]
  18666. },
  18667. {
  18668. "type": "string",
  18669. "enum": ["Infinity", "-Infinity", "NaN"]
  18670. }
  18671. ]
  18672. },
  18673. "expires": {
  18674. "anyOf": [
  18675. {
  18676. "anyOf": [
  18677. {
  18678. "type": "number"
  18679. },
  18680. {
  18681. "type": "string",
  18682. "enum": ["NaN"]
  18683. },
  18684. {
  18685. "type": "string",
  18686. "enum": ["Infinity"]
  18687. },
  18688. {
  18689. "type": "string",
  18690. "enum": ["-Infinity"]
  18691. }
  18692. ]
  18693. },
  18694. {
  18695. "type": "string",
  18696. "enum": ["Infinity", "-Infinity", "NaN"]
  18697. }
  18698. ]
  18699. }
  18700. },
  18701. "required": ["created", "expires"],
  18702. "additionalProperties": false
  18703. }
  18704. },
  18705. "required": ["status", "time"],
  18706. "additionalProperties": false
  18707. },
  18708. {
  18709. "type": "object",
  18710. "properties": {
  18711. "status": {
  18712. "type": "string",
  18713. "enum": ["failed"]
  18714. },
  18715. "message": {
  18716. "type": "string"
  18717. },
  18718. "time": {
  18719. "type": "object",
  18720. "properties": {
  18721. "created": {
  18722. "anyOf": [
  18723. {
  18724. "anyOf": [
  18725. {
  18726. "type": "number"
  18727. },
  18728. {
  18729. "type": "string",
  18730. "enum": ["NaN"]
  18731. },
  18732. {
  18733. "type": "string",
  18734. "enum": ["Infinity"]
  18735. },
  18736. {
  18737. "type": "string",
  18738. "enum": ["-Infinity"]
  18739. }
  18740. ]
  18741. },
  18742. {
  18743. "type": "string",
  18744. "enum": ["Infinity", "-Infinity", "NaN"]
  18745. }
  18746. ]
  18747. },
  18748. "expires": {
  18749. "anyOf": [
  18750. {
  18751. "anyOf": [
  18752. {
  18753. "type": "number"
  18754. },
  18755. {
  18756. "type": "string",
  18757. "enum": ["NaN"]
  18758. },
  18759. {
  18760. "type": "string",
  18761. "enum": ["Infinity"]
  18762. },
  18763. {
  18764. "type": "string",
  18765. "enum": ["-Infinity"]
  18766. }
  18767. ]
  18768. },
  18769. {
  18770. "type": "string",
  18771. "enum": ["Infinity", "-Infinity", "NaN"]
  18772. }
  18773. ]
  18774. }
  18775. },
  18776. "required": ["created", "expires"],
  18777. "additionalProperties": false
  18778. }
  18779. },
  18780. "required": ["status", "message", "time"],
  18781. "additionalProperties": false
  18782. },
  18783. {
  18784. "type": "object",
  18785. "properties": {
  18786. "status": {
  18787. "type": "string",
  18788. "enum": ["expired"]
  18789. },
  18790. "time": {
  18791. "type": "object",
  18792. "properties": {
  18793. "created": {
  18794. "anyOf": [
  18795. {
  18796. "anyOf": [
  18797. {
  18798. "type": "number"
  18799. },
  18800. {
  18801. "type": "string",
  18802. "enum": ["NaN"]
  18803. },
  18804. {
  18805. "type": "string",
  18806. "enum": ["Infinity"]
  18807. },
  18808. {
  18809. "type": "string",
  18810. "enum": ["-Infinity"]
  18811. }
  18812. ]
  18813. },
  18814. {
  18815. "type": "string",
  18816. "enum": ["Infinity", "-Infinity", "NaN"]
  18817. }
  18818. ]
  18819. },
  18820. "expires": {
  18821. "anyOf": [
  18822. {
  18823. "anyOf": [
  18824. {
  18825. "type": "number"
  18826. },
  18827. {
  18828. "type": "string",
  18829. "enum": ["NaN"]
  18830. },
  18831. {
  18832. "type": "string",
  18833. "enum": ["Infinity"]
  18834. },
  18835. {
  18836. "type": "string",
  18837. "enum": ["-Infinity"]
  18838. }
  18839. ]
  18840. },
  18841. {
  18842. "type": "string",
  18843. "enum": ["Infinity", "-Infinity", "NaN"]
  18844. }
  18845. ]
  18846. }
  18847. },
  18848. "required": ["created", "expires"],
  18849. "additionalProperties": false
  18850. }
  18851. },
  18852. "required": ["status", "time"],
  18853. "additionalProperties": false
  18854. }
  18855. ]
  18856. },
  18857. "Integration.CommandAttempt": {
  18858. "type": "object",
  18859. "properties": {
  18860. "attemptID": {
  18861. "type": "string"
  18862. },
  18863. "time": {
  18864. "type": "object",
  18865. "properties": {
  18866. "created": {
  18867. "anyOf": [
  18868. {
  18869. "anyOf": [
  18870. {
  18871. "type": "number"
  18872. },
  18873. {
  18874. "type": "string",
  18875. "enum": ["NaN"]
  18876. },
  18877. {
  18878. "type": "string",
  18879. "enum": ["Infinity"]
  18880. },
  18881. {
  18882. "type": "string",
  18883. "enum": ["-Infinity"]
  18884. }
  18885. ]
  18886. },
  18887. {
  18888. "type": "string",
  18889. "enum": ["Infinity", "-Infinity", "NaN"]
  18890. }
  18891. ]
  18892. },
  18893. "expires": {
  18894. "anyOf": [
  18895. {
  18896. "anyOf": [
  18897. {
  18898. "type": "number"
  18899. },
  18900. {
  18901. "type": "string",
  18902. "enum": ["NaN"]
  18903. },
  18904. {
  18905. "type": "string",
  18906. "enum": ["Infinity"]
  18907. },
  18908. {
  18909. "type": "string",
  18910. "enum": ["-Infinity"]
  18911. }
  18912. ]
  18913. },
  18914. {
  18915. "type": "string",
  18916. "enum": ["Infinity", "-Infinity", "NaN"]
  18917. }
  18918. ]
  18919. }
  18920. },
  18921. "required": ["created", "expires"],
  18922. "additionalProperties": false
  18923. }
  18924. },
  18925. "required": ["attemptID", "time"],
  18926. "additionalProperties": false
  18927. },
  18928. "Integration.CommandAttemptStatus": {
  18929. "anyOf": [
  18930. {
  18931. "type": "object",
  18932. "properties": {
  18933. "status": {
  18934. "type": "string",
  18935. "enum": ["pending"]
  18936. },
  18937. "message": {
  18938. "type": "string"
  18939. },
  18940. "time": {
  18941. "type": "object",
  18942. "properties": {
  18943. "created": {
  18944. "anyOf": [
  18945. {
  18946. "anyOf": [
  18947. {
  18948. "type": "number"
  18949. },
  18950. {
  18951. "type": "string",
  18952. "enum": ["NaN"]
  18953. },
  18954. {
  18955. "type": "string",
  18956. "enum": ["Infinity"]
  18957. },
  18958. {
  18959. "type": "string",
  18960. "enum": ["-Infinity"]
  18961. }
  18962. ]
  18963. },
  18964. {
  18965. "type": "string",
  18966. "enum": ["Infinity", "-Infinity", "NaN"]
  18967. }
  18968. ]
  18969. },
  18970. "expires": {
  18971. "anyOf": [
  18972. {
  18973. "anyOf": [
  18974. {
  18975. "type": "number"
  18976. },
  18977. {
  18978. "type": "string",
  18979. "enum": ["NaN"]
  18980. },
  18981. {
  18982. "type": "string",
  18983. "enum": ["Infinity"]
  18984. },
  18985. {
  18986. "type": "string",
  18987. "enum": ["-Infinity"]
  18988. }
  18989. ]
  18990. },
  18991. {
  18992. "type": "string",
  18993. "enum": ["Infinity", "-Infinity", "NaN"]
  18994. }
  18995. ]
  18996. }
  18997. },
  18998. "required": ["created", "expires"],
  18999. "additionalProperties": false
  19000. }
  19001. },
  19002. "required": ["status", "time"],
  19003. "additionalProperties": false
  19004. },
  19005. {
  19006. "type": "object",
  19007. "properties": {
  19008. "status": {
  19009. "type": "string",
  19010. "enum": ["complete"]
  19011. },
  19012. "time": {
  19013. "type": "object",
  19014. "properties": {
  19015. "created": {
  19016. "anyOf": [
  19017. {
  19018. "anyOf": [
  19019. {
  19020. "type": "number"
  19021. },
  19022. {
  19023. "type": "string",
  19024. "enum": ["NaN"]
  19025. },
  19026. {
  19027. "type": "string",
  19028. "enum": ["Infinity"]
  19029. },
  19030. {
  19031. "type": "string",
  19032. "enum": ["-Infinity"]
  19033. }
  19034. ]
  19035. },
  19036. {
  19037. "type": "string",
  19038. "enum": ["Infinity", "-Infinity", "NaN"]
  19039. }
  19040. ]
  19041. },
  19042. "expires": {
  19043. "anyOf": [
  19044. {
  19045. "anyOf": [
  19046. {
  19047. "type": "number"
  19048. },
  19049. {
  19050. "type": "string",
  19051. "enum": ["NaN"]
  19052. },
  19053. {
  19054. "type": "string",
  19055. "enum": ["Infinity"]
  19056. },
  19057. {
  19058. "type": "string",
  19059. "enum": ["-Infinity"]
  19060. }
  19061. ]
  19062. },
  19063. {
  19064. "type": "string",
  19065. "enum": ["Infinity", "-Infinity", "NaN"]
  19066. }
  19067. ]
  19068. }
  19069. },
  19070. "required": ["created", "expires"],
  19071. "additionalProperties": false
  19072. }
  19073. },
  19074. "required": ["status", "time"],
  19075. "additionalProperties": false
  19076. },
  19077. {
  19078. "type": "object",
  19079. "properties": {
  19080. "status": {
  19081. "type": "string",
  19082. "enum": ["failed"]
  19083. },
  19084. "message": {
  19085. "type": "string"
  19086. },
  19087. "time": {
  19088. "type": "object",
  19089. "properties": {
  19090. "created": {
  19091. "anyOf": [
  19092. {
  19093. "anyOf": [
  19094. {
  19095. "type": "number"
  19096. },
  19097. {
  19098. "type": "string",
  19099. "enum": ["NaN"]
  19100. },
  19101. {
  19102. "type": "string",
  19103. "enum": ["Infinity"]
  19104. },
  19105. {
  19106. "type": "string",
  19107. "enum": ["-Infinity"]
  19108. }
  19109. ]
  19110. },
  19111. {
  19112. "type": "string",
  19113. "enum": ["Infinity", "-Infinity", "NaN"]
  19114. }
  19115. ]
  19116. },
  19117. "expires": {
  19118. "anyOf": [
  19119. {
  19120. "anyOf": [
  19121. {
  19122. "type": "number"
  19123. },
  19124. {
  19125. "type": "string",
  19126. "enum": ["NaN"]
  19127. },
  19128. {
  19129. "type": "string",
  19130. "enum": ["Infinity"]
  19131. },
  19132. {
  19133. "type": "string",
  19134. "enum": ["-Infinity"]
  19135. }
  19136. ]
  19137. },
  19138. {
  19139. "type": "string",
  19140. "enum": ["Infinity", "-Infinity", "NaN"]
  19141. }
  19142. ]
  19143. }
  19144. },
  19145. "required": ["created", "expires"],
  19146. "additionalProperties": false
  19147. }
  19148. },
  19149. "required": ["status", "message", "time"],
  19150. "additionalProperties": false
  19151. },
  19152. {
  19153. "type": "object",
  19154. "properties": {
  19155. "status": {
  19156. "type": "string",
  19157. "enum": ["expired"]
  19158. },
  19159. "time": {
  19160. "type": "object",
  19161. "properties": {
  19162. "created": {
  19163. "anyOf": [
  19164. {
  19165. "anyOf": [
  19166. {
  19167. "type": "number"
  19168. },
  19169. {
  19170. "type": "string",
  19171. "enum": ["NaN"]
  19172. },
  19173. {
  19174. "type": "string",
  19175. "enum": ["Infinity"]
  19176. },
  19177. {
  19178. "type": "string",
  19179. "enum": ["-Infinity"]
  19180. }
  19181. ]
  19182. },
  19183. {
  19184. "type": "string",
  19185. "enum": ["Infinity", "-Infinity", "NaN"]
  19186. }
  19187. ]
  19188. },
  19189. "expires": {
  19190. "anyOf": [
  19191. {
  19192. "anyOf": [
  19193. {
  19194. "type": "number"
  19195. },
  19196. {
  19197. "type": "string",
  19198. "enum": ["NaN"]
  19199. },
  19200. {
  19201. "type": "string",
  19202. "enum": ["Infinity"]
  19203. },
  19204. {
  19205. "type": "string",
  19206. "enum": ["-Infinity"]
  19207. }
  19208. ]
  19209. },
  19210. {
  19211. "type": "string",
  19212. "enum": ["Infinity", "-Infinity", "NaN"]
  19213. }
  19214. ]
  19215. }
  19216. },
  19217. "required": ["created", "expires"],
  19218. "additionalProperties": false
  19219. }
  19220. },
  19221. "required": ["status", "time"],
  19222. "additionalProperties": false
  19223. }
  19224. ]
  19225. },
  19226. "Mcp.Status.Connected": {
  19227. "type": "object",
  19228. "properties": {
  19229. "status": {
  19230. "type": "string",
  19231. "enum": ["connected"]
  19232. }
  19233. },
  19234. "required": ["status"],
  19235. "additionalProperties": false
  19236. },
  19237. "Mcp.Status.Pending": {
  19238. "type": "object",
  19239. "properties": {
  19240. "status": {
  19241. "type": "string",
  19242. "enum": ["pending"]
  19243. }
  19244. },
  19245. "required": ["status"],
  19246. "additionalProperties": false
  19247. },
  19248. "Mcp.Status.Disabled": {
  19249. "type": "object",
  19250. "properties": {
  19251. "status": {
  19252. "type": "string",
  19253. "enum": ["disabled"]
  19254. }
  19255. },
  19256. "required": ["status"],
  19257. "additionalProperties": false
  19258. },
  19259. "Mcp.Status.Failed": {
  19260. "type": "object",
  19261. "properties": {
  19262. "status": {
  19263. "type": "string",
  19264. "enum": ["failed"]
  19265. },
  19266. "error": {
  19267. "type": "string"
  19268. }
  19269. },
  19270. "required": ["status", "error"],
  19271. "additionalProperties": false
  19272. },
  19273. "Mcp.Status.NeedsAuth": {
  19274. "type": "object",
  19275. "properties": {
  19276. "status": {
  19277. "type": "string",
  19278. "enum": ["needs_auth"]
  19279. }
  19280. },
  19281. "required": ["status"],
  19282. "additionalProperties": false
  19283. },
  19284. "Mcp.Server": {
  19285. "type": "object",
  19286. "properties": {
  19287. "name": {
  19288. "type": "string"
  19289. },
  19290. "status": {
  19291. "anyOf": [
  19292. {
  19293. "$ref": "#/components/schemas/Mcp.Status.Connected"
  19294. },
  19295. {
  19296. "$ref": "#/components/schemas/Mcp.Status.Pending"
  19297. },
  19298. {
  19299. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  19300. },
  19301. {
  19302. "$ref": "#/components/schemas/Mcp.Status.Failed"
  19303. },
  19304. {
  19305. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  19306. }
  19307. ]
  19308. },
  19309. "integrationID": {
  19310. "type": "string"
  19311. }
  19312. },
  19313. "required": ["name", "status"],
  19314. "additionalProperties": false
  19315. },
  19316. "Mcp.LocalConfig": {
  19317. "type": "object",
  19318. "properties": {
  19319. "type": {
  19320. "type": "string",
  19321. "enum": ["local"]
  19322. },
  19323. "command": {
  19324. "type": "array",
  19325. "items": {
  19326. "type": "string"
  19327. }
  19328. },
  19329. "cwd": {
  19330. "type": "string"
  19331. },
  19332. "environment": {
  19333. "type": "object",
  19334. "additionalProperties": {
  19335. "type": "string"
  19336. }
  19337. },
  19338. "disabled": {
  19339. "type": "boolean"
  19340. },
  19341. "codemode": {
  19342. "type": "boolean"
  19343. },
  19344. "timeout": {
  19345. "type": "object",
  19346. "properties": {
  19347. "startup": {
  19348. "type": "integer",
  19349. "allOf": [
  19350. {
  19351. "exclusiveMinimum": 0
  19352. }
  19353. ]
  19354. },
  19355. "catalog": {
  19356. "type": "integer",
  19357. "allOf": [
  19358. {
  19359. "exclusiveMinimum": 0
  19360. }
  19361. ]
  19362. },
  19363. "execution": {
  19364. "type": "integer",
  19365. "allOf": [
  19366. {
  19367. "exclusiveMinimum": 0
  19368. }
  19369. ]
  19370. }
  19371. },
  19372. "additionalProperties": false
  19373. }
  19374. },
  19375. "required": ["type", "command"],
  19376. "additionalProperties": false
  19377. },
  19378. "Mcp.OAuthConfig": {
  19379. "type": "object",
  19380. "properties": {
  19381. "client_id": {
  19382. "type": "string"
  19383. },
  19384. "client_secret": {
  19385. "type": "string"
  19386. },
  19387. "scope": {
  19388. "type": "string"
  19389. },
  19390. "callback_port": {
  19391. "type": "integer",
  19392. "allOf": [
  19393. {
  19394. "minimum": 1,
  19395. "maximum": 65535
  19396. }
  19397. ]
  19398. },
  19399. "redirect_uri": {
  19400. "type": "string"
  19401. }
  19402. },
  19403. "additionalProperties": false
  19404. },
  19405. "Mcp.RemoteConfig": {
  19406. "type": "object",
  19407. "properties": {
  19408. "type": {
  19409. "type": "string",
  19410. "enum": ["remote"]
  19411. },
  19412. "url": {
  19413. "type": "string"
  19414. },
  19415. "headers": {
  19416. "type": "object",
  19417. "additionalProperties": {
  19418. "type": "string"
  19419. }
  19420. },
  19421. "oauth": {
  19422. "anyOf": [
  19423. {
  19424. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  19425. },
  19426. {
  19427. "type": "boolean",
  19428. "enum": [false]
  19429. }
  19430. ]
  19431. },
  19432. "disabled": {
  19433. "type": "boolean"
  19434. },
  19435. "codemode": {
  19436. "type": "boolean"
  19437. },
  19438. "timeout": {
  19439. "type": "object",
  19440. "properties": {
  19441. "startup": {
  19442. "type": "integer",
  19443. "allOf": [
  19444. {
  19445. "exclusiveMinimum": 0
  19446. }
  19447. ]
  19448. },
  19449. "catalog": {
  19450. "type": "integer",
  19451. "allOf": [
  19452. {
  19453. "exclusiveMinimum": 0
  19454. }
  19455. ]
  19456. },
  19457. "execution": {
  19458. "type": "integer",
  19459. "allOf": [
  19460. {
  19461. "exclusiveMinimum": 0
  19462. }
  19463. ]
  19464. }
  19465. },
  19466. "additionalProperties": false
  19467. }
  19468. },
  19469. "required": ["type", "url"],
  19470. "additionalProperties": false
  19471. },
  19472. "McpServerNotFoundError": {
  19473. "type": "object",
  19474. "properties": {
  19475. "_tag": {
  19476. "type": "string",
  19477. "enum": ["McpServerNotFoundError"]
  19478. },
  19479. "server": {
  19480. "type": "string"
  19481. },
  19482. "message": {
  19483. "type": "string"
  19484. }
  19485. },
  19486. "required": ["_tag", "server", "message"],
  19487. "additionalProperties": false
  19488. },
  19489. "Mcp.Resource": {
  19490. "type": "object",
  19491. "properties": {
  19492. "server": {
  19493. "type": "string"
  19494. },
  19495. "name": {
  19496. "type": "string"
  19497. },
  19498. "uri": {
  19499. "type": "string"
  19500. },
  19501. "description": {
  19502. "type": "string"
  19503. },
  19504. "mimeType": {
  19505. "type": "string"
  19506. }
  19507. },
  19508. "required": ["server", "name", "uri"],
  19509. "additionalProperties": false
  19510. },
  19511. "Mcp.ResourceTemplate": {
  19512. "type": "object",
  19513. "properties": {
  19514. "server": {
  19515. "type": "string"
  19516. },
  19517. "name": {
  19518. "type": "string"
  19519. },
  19520. "uriTemplate": {
  19521. "type": "string"
  19522. },
  19523. "description": {
  19524. "type": "string"
  19525. },
  19526. "mimeType": {
  19527. "type": "string"
  19528. }
  19529. },
  19530. "required": ["server", "name", "uriTemplate"],
  19531. "additionalProperties": false
  19532. },
  19533. "Mcp.ResourceCatalog": {
  19534. "type": "object",
  19535. "properties": {
  19536. "resources": {
  19537. "type": "array",
  19538. "items": {
  19539. "$ref": "#/components/schemas/Mcp.Resource"
  19540. }
  19541. },
  19542. "templates": {
  19543. "type": "array",
  19544. "items": {
  19545. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  19546. }
  19547. }
  19548. },
  19549. "required": ["resources", "templates"],
  19550. "additionalProperties": false
  19551. },
  19552. "Project.Vcs": {
  19553. "type": "string",
  19554. "enum": ["git", "hg"]
  19555. },
  19556. "Project.Icon": {
  19557. "type": "object",
  19558. "properties": {
  19559. "url": {
  19560. "type": "string"
  19561. },
  19562. "override": {
  19563. "type": "string"
  19564. },
  19565. "color": {
  19566. "type": "string"
  19567. }
  19568. },
  19569. "additionalProperties": false
  19570. },
  19571. "Project.Commands": {
  19572. "type": "object",
  19573. "properties": {
  19574. "start": {
  19575. "type": "string",
  19576. "description": "Startup script to run when creating a new workspace (worktree)"
  19577. }
  19578. },
  19579. "additionalProperties": false
  19580. },
  19581. "Project.Time": {
  19582. "type": "object",
  19583. "properties": {
  19584. "created": {
  19585. "type": "integer",
  19586. "allOf": [
  19587. {
  19588. "minimum": 0
  19589. }
  19590. ]
  19591. },
  19592. "updated": {
  19593. "type": "integer",
  19594. "allOf": [
  19595. {
  19596. "minimum": 0
  19597. }
  19598. ]
  19599. },
  19600. "initialized": {
  19601. "type": "integer",
  19602. "allOf": [
  19603. {
  19604. "minimum": 0
  19605. }
  19606. ]
  19607. }
  19608. },
  19609. "required": ["created", "updated"],
  19610. "additionalProperties": false
  19611. },
  19612. "Project": {
  19613. "type": "object",
  19614. "properties": {
  19615. "id": {
  19616. "type": "string"
  19617. },
  19618. "canonical": {
  19619. "type": "string"
  19620. },
  19621. "vcs": {
  19622. "$ref": "#/components/schemas/Project.Vcs"
  19623. },
  19624. "name": {
  19625. "type": "string"
  19626. },
  19627. "icon": {
  19628. "$ref": "#/components/schemas/Project.Icon"
  19629. },
  19630. "commands": {
  19631. "$ref": "#/components/schemas/Project.Commands"
  19632. },
  19633. "time": {
  19634. "$ref": "#/components/schemas/Project.Time"
  19635. },
  19636. "sandboxes": {
  19637. "type": "array",
  19638. "items": {
  19639. "type": "string"
  19640. }
  19641. }
  19642. },
  19643. "required": ["id", "canonical", "time", "sandboxes"],
  19644. "additionalProperties": false
  19645. },
  19646. "Project.Current": {
  19647. "type": "object",
  19648. "properties": {
  19649. "id": {
  19650. "type": "string"
  19651. },
  19652. "directory": {
  19653. "type": "string"
  19654. },
  19655. "canonical": {
  19656. "type": "string"
  19657. }
  19658. },
  19659. "required": ["id", "directory", "canonical"],
  19660. "additionalProperties": false
  19661. },
  19662. "Form.Metadata": {
  19663. "type": "object"
  19664. },
  19665. "Form.Info": {
  19666. "type": "object",
  19667. "properties": {
  19668. "id": {
  19669. "type": "string",
  19670. "allOf": [
  19671. {
  19672. "pattern": "^frm_"
  19673. }
  19674. ]
  19675. },
  19676. "sessionID": {
  19677. "type": "string"
  19678. },
  19679. "title": {
  19680. "type": "string"
  19681. },
  19682. "metadata": {
  19683. "$ref": "#/components/schemas/Form.Metadata"
  19684. },
  19685. "fields": {
  19686. "$ref": "#/components/schemas/Form.Fields"
  19687. }
  19688. },
  19689. "required": ["id", "sessionID", "title", "fields"],
  19690. "additionalProperties": false
  19691. },
  19692. "Form.CreatePayload": {
  19693. "type": "object",
  19694. "properties": {
  19695. "id": {
  19696. "anyOf": [
  19697. {
  19698. "type": "string",
  19699. "allOf": [
  19700. {
  19701. "pattern": "^frm_"
  19702. }
  19703. ]
  19704. },
  19705. {
  19706. "type": "null"
  19707. }
  19708. ]
  19709. },
  19710. "title": {
  19711. "type": "string"
  19712. },
  19713. "metadata": {
  19714. "$ref": "#/components/schemas/Form.Metadata"
  19715. },
  19716. "fields": {
  19717. "$ref": "#/components/schemas/Form.Fields"
  19718. }
  19719. },
  19720. "required": ["title", "fields"],
  19721. "additionalProperties": false
  19722. },
  19723. "FormNotFoundError": {
  19724. "type": "object",
  19725. "properties": {
  19726. "_tag": {
  19727. "type": "string",
  19728. "enum": ["FormNotFoundError"]
  19729. },
  19730. "id": {
  19731. "type": "string"
  19732. },
  19733. "message": {
  19734. "type": "string"
  19735. }
  19736. },
  19737. "required": ["_tag", "id", "message"],
  19738. "additionalProperties": false
  19739. },
  19740. "Form.State": {
  19741. "anyOf": [
  19742. {
  19743. "type": "object",
  19744. "properties": {
  19745. "status": {
  19746. "type": "string",
  19747. "enum": ["pending"]
  19748. }
  19749. },
  19750. "required": ["status"],
  19751. "additionalProperties": false
  19752. },
  19753. {
  19754. "type": "object",
  19755. "properties": {
  19756. "status": {
  19757. "type": "string",
  19758. "enum": ["answered"]
  19759. },
  19760. "answer": {
  19761. "$ref": "#/components/schemas/Form.Answer"
  19762. }
  19763. },
  19764. "required": ["status", "answer"],
  19765. "additionalProperties": false
  19766. },
  19767. {
  19768. "type": "object",
  19769. "properties": {
  19770. "status": {
  19771. "type": "string",
  19772. "enum": ["cancelled"]
  19773. }
  19774. },
  19775. "required": ["status"],
  19776. "additionalProperties": false
  19777. }
  19778. ]
  19779. },
  19780. "Form.Reply": {
  19781. "type": "object",
  19782. "properties": {
  19783. "answer": {
  19784. "$ref": "#/components/schemas/Form.Answer"
  19785. }
  19786. },
  19787. "required": ["answer"],
  19788. "additionalProperties": false
  19789. },
  19790. "FormAlreadySettledError": {
  19791. "type": "object",
  19792. "properties": {
  19793. "_tag": {
  19794. "type": "string",
  19795. "enum": ["FormAlreadySettledError"]
  19796. },
  19797. "id": {
  19798. "type": "string"
  19799. },
  19800. "message": {
  19801. "type": "string"
  19802. }
  19803. },
  19804. "required": ["_tag", "id", "message"],
  19805. "additionalProperties": false
  19806. },
  19807. "FormInvalidAnswerError": {
  19808. "type": "object",
  19809. "properties": {
  19810. "_tag": {
  19811. "type": "string",
  19812. "enum": ["FormInvalidAnswerError"]
  19813. },
  19814. "id": {
  19815. "type": "string"
  19816. },
  19817. "message": {
  19818. "type": "string"
  19819. }
  19820. },
  19821. "required": ["_tag", "id", "message"],
  19822. "additionalProperties": false
  19823. },
  19824. "Permission.Source": {
  19825. "anyOf": [
  19826. {
  19827. "type": "object",
  19828. "properties": {
  19829. "type": {
  19830. "type": "string",
  19831. "enum": ["tool"]
  19832. },
  19833. "messageID": {
  19834. "type": "string"
  19835. },
  19836. "id": {
  19837. "type": "string"
  19838. }
  19839. },
  19840. "required": ["type", "messageID", "id"],
  19841. "additionalProperties": false
  19842. }
  19843. ]
  19844. },
  19845. "Permission.Request": {
  19846. "type": "object",
  19847. "properties": {
  19848. "id": {
  19849. "type": "string",
  19850. "allOf": [
  19851. {
  19852. "pattern": "^per"
  19853. }
  19854. ]
  19855. },
  19856. "sessionID": {
  19857. "type": "string",
  19858. "allOf": [
  19859. {
  19860. "pattern": "^ses"
  19861. }
  19862. ]
  19863. },
  19864. "action": {
  19865. "type": "string"
  19866. },
  19867. "resources": {
  19868. "type": "array",
  19869. "items": {
  19870. "type": "string"
  19871. }
  19872. },
  19873. "save": {
  19874. "type": "array",
  19875. "items": {
  19876. "type": "string"
  19877. }
  19878. },
  19879. "metadata": {
  19880. "type": "object"
  19881. },
  19882. "source": {
  19883. "$ref": "#/components/schemas/Permission.Source"
  19884. }
  19885. },
  19886. "required": ["id", "sessionID", "action", "resources"],
  19887. "additionalProperties": false
  19888. },
  19889. "PermissionSaved.Info": {
  19890. "type": "object",
  19891. "properties": {
  19892. "id": {
  19893. "type": "string"
  19894. },
  19895. "projectID": {
  19896. "type": "string"
  19897. },
  19898. "action": {
  19899. "type": "string"
  19900. },
  19901. "resource": {
  19902. "type": "string"
  19903. }
  19904. },
  19905. "required": ["id", "projectID", "action", "resource"],
  19906. "additionalProperties": false
  19907. },
  19908. "PermissionNotFoundError": {
  19909. "type": "object",
  19910. "properties": {
  19911. "_tag": {
  19912. "type": "string",
  19913. "enum": ["PermissionNotFoundError"]
  19914. },
  19915. "requestID": {
  19916. "type": "string"
  19917. },
  19918. "message": {
  19919. "type": "string"
  19920. }
  19921. },
  19922. "required": ["_tag", "requestID", "message"],
  19923. "additionalProperties": false
  19924. },
  19925. "Permission.Reply": {
  19926. "type": "string",
  19927. "enum": ["once", "always", "reject"]
  19928. },
  19929. "FileSystem.Entry": {
  19930. "type": "object",
  19931. "properties": {
  19932. "path": {
  19933. "type": "string"
  19934. },
  19935. "type": {
  19936. "type": "string",
  19937. "enum": ["file", "directory"]
  19938. }
  19939. },
  19940. "required": ["path", "type"],
  19941. "additionalProperties": false
  19942. },
  19943. "Command.Info": {
  19944. "type": "object",
  19945. "properties": {
  19946. "name": {
  19947. "type": "string"
  19948. },
  19949. "template": {
  19950. "type": "string"
  19951. },
  19952. "description": {
  19953. "type": "string"
  19954. },
  19955. "agent": {
  19956. "type": "string"
  19957. },
  19958. "model": {
  19959. "$ref": "#/components/schemas/Model.Ref"
  19960. },
  19961. "subtask": {
  19962. "type": "boolean"
  19963. }
  19964. },
  19965. "required": ["name", "template"],
  19966. "additionalProperties": false
  19967. },
  19968. "Skill.Info": {
  19969. "type": "object",
  19970. "properties": {
  19971. "id": {
  19972. "type": "string"
  19973. },
  19974. "name": {
  19975. "type": "string"
  19976. },
  19977. "description": {
  19978. "type": "string"
  19979. },
  19980. "slash": {
  19981. "type": "boolean"
  19982. },
  19983. "autoinvoke": {
  19984. "type": "boolean"
  19985. },
  19986. "location": {
  19987. "type": "string"
  19988. },
  19989. "content": {
  19990. "type": "string"
  19991. }
  19992. },
  19993. "required": ["id", "name", "location", "content"],
  19994. "additionalProperties": false
  19995. },
  19996. "models-dev.refreshed": {
  19997. "type": "object",
  19998. "properties": {
  19999. "id": {
  20000. "type": "string",
  20001. "allOf": [
  20002. {
  20003. "pattern": "^evt_"
  20004. }
  20005. ]
  20006. },
  20007. "created": {
  20008. "type": "number"
  20009. },
  20010. "metadata": {
  20011. "type": "object"
  20012. },
  20013. "type": {
  20014. "type": "string",
  20015. "enum": ["models-dev.refreshed"]
  20016. },
  20017. "location": {
  20018. "$ref": "#/components/schemas/Location.Ref"
  20019. },
  20020. "data": {
  20021. "anyOf": [
  20022. {
  20023. "type": "object"
  20024. },
  20025. {
  20026. "type": "array"
  20027. }
  20028. ]
  20029. }
  20030. },
  20031. "required": ["id", "created", "type", "data"],
  20032. "additionalProperties": false
  20033. },
  20034. "integration.updated": {
  20035. "type": "object",
  20036. "properties": {
  20037. "id": {
  20038. "type": "string",
  20039. "allOf": [
  20040. {
  20041. "pattern": "^evt_"
  20042. }
  20043. ]
  20044. },
  20045. "created": {
  20046. "type": "number"
  20047. },
  20048. "metadata": {
  20049. "type": "object"
  20050. },
  20051. "type": {
  20052. "type": "string",
  20053. "enum": ["integration.updated"]
  20054. },
  20055. "location": {
  20056. "$ref": "#/components/schemas/Location.Ref"
  20057. },
  20058. "data": {
  20059. "anyOf": [
  20060. {
  20061. "type": "object"
  20062. },
  20063. {
  20064. "type": "array"
  20065. }
  20066. ]
  20067. }
  20068. },
  20069. "required": ["id", "created", "type", "data"],
  20070. "additionalProperties": false
  20071. },
  20072. "integration.connection.updated": {
  20073. "type": "object",
  20074. "properties": {
  20075. "id": {
  20076. "type": "string",
  20077. "allOf": [
  20078. {
  20079. "pattern": "^evt_"
  20080. }
  20081. ]
  20082. },
  20083. "created": {
  20084. "type": "number"
  20085. },
  20086. "metadata": {
  20087. "type": "object"
  20088. },
  20089. "type": {
  20090. "type": "string",
  20091. "enum": ["integration.connection.updated"]
  20092. },
  20093. "location": {
  20094. "$ref": "#/components/schemas/Location.Ref"
  20095. },
  20096. "data": {
  20097. "type": "object",
  20098. "properties": {
  20099. "integrationID": {
  20100. "type": "string"
  20101. }
  20102. },
  20103. "required": ["integrationID"],
  20104. "additionalProperties": false
  20105. }
  20106. },
  20107. "required": ["id", "created", "type", "data"],
  20108. "additionalProperties": false
  20109. },
  20110. "catalog.updated": {
  20111. "type": "object",
  20112. "properties": {
  20113. "id": {
  20114. "type": "string",
  20115. "allOf": [
  20116. {
  20117. "pattern": "^evt_"
  20118. }
  20119. ]
  20120. },
  20121. "created": {
  20122. "type": "number"
  20123. },
  20124. "metadata": {
  20125. "type": "object"
  20126. },
  20127. "type": {
  20128. "type": "string",
  20129. "enum": ["catalog.updated"]
  20130. },
  20131. "location": {
  20132. "$ref": "#/components/schemas/Location.Ref"
  20133. },
  20134. "data": {
  20135. "anyOf": [
  20136. {
  20137. "type": "object"
  20138. },
  20139. {
  20140. "type": "array"
  20141. }
  20142. ]
  20143. }
  20144. },
  20145. "required": ["id", "created", "type", "data"],
  20146. "additionalProperties": false
  20147. },
  20148. "agent.updated": {
  20149. "type": "object",
  20150. "properties": {
  20151. "id": {
  20152. "type": "string",
  20153. "allOf": [
  20154. {
  20155. "pattern": "^evt_"
  20156. }
  20157. ]
  20158. },
  20159. "created": {
  20160. "type": "number"
  20161. },
  20162. "metadata": {
  20163. "type": "object"
  20164. },
  20165. "type": {
  20166. "type": "string",
  20167. "enum": ["agent.updated"]
  20168. },
  20169. "location": {
  20170. "$ref": "#/components/schemas/Location.Ref"
  20171. },
  20172. "data": {
  20173. "anyOf": [
  20174. {
  20175. "type": "object"
  20176. },
  20177. {
  20178. "type": "array"
  20179. }
  20180. ]
  20181. }
  20182. },
  20183. "required": ["id", "created", "type", "data"],
  20184. "additionalProperties": false
  20185. },
  20186. "session.usage.updated": {
  20187. "type": "object",
  20188. "properties": {
  20189. "id": {
  20190. "type": "string",
  20191. "allOf": [
  20192. {
  20193. "pattern": "^evt_"
  20194. }
  20195. ]
  20196. },
  20197. "created": {
  20198. "type": "number"
  20199. },
  20200. "metadata": {
  20201. "type": "object"
  20202. },
  20203. "type": {
  20204. "type": "string",
  20205. "enum": ["session.usage.updated"]
  20206. },
  20207. "location": {
  20208. "$ref": "#/components/schemas/Location.Ref"
  20209. },
  20210. "data": {
  20211. "type": "object",
  20212. "properties": {
  20213. "sessionID": {
  20214. "type": "string",
  20215. "allOf": [
  20216. {
  20217. "pattern": "^ses"
  20218. }
  20219. ]
  20220. },
  20221. "cost": {
  20222. "$ref": "#/components/schemas/Money.USD"
  20223. },
  20224. "tokens": {
  20225. "$ref": "#/components/schemas/TokenUsage.Info"
  20226. }
  20227. },
  20228. "required": ["sessionID", "cost", "tokens"],
  20229. "additionalProperties": false
  20230. }
  20231. },
  20232. "required": ["id", "created", "type", "data"],
  20233. "additionalProperties": false
  20234. },
  20235. "session.text.delta": {
  20236. "type": "object",
  20237. "properties": {
  20238. "id": {
  20239. "type": "string",
  20240. "allOf": [
  20241. {
  20242. "pattern": "^evt_"
  20243. }
  20244. ]
  20245. },
  20246. "created": {
  20247. "type": "number"
  20248. },
  20249. "metadata": {
  20250. "type": "object"
  20251. },
  20252. "type": {
  20253. "type": "string",
  20254. "enum": ["session.text.delta"]
  20255. },
  20256. "location": {
  20257. "$ref": "#/components/schemas/Location.Ref"
  20258. },
  20259. "data": {
  20260. "type": "object",
  20261. "properties": {
  20262. "sessionID": {
  20263. "type": "string",
  20264. "allOf": [
  20265. {
  20266. "pattern": "^ses"
  20267. }
  20268. ]
  20269. },
  20270. "assistantMessageID": {
  20271. "type": "string",
  20272. "allOf": [
  20273. {
  20274. "pattern": "^msg_"
  20275. }
  20276. ]
  20277. },
  20278. "ordinal": {
  20279. "type": "integer",
  20280. "allOf": [
  20281. {
  20282. "minimum": 0
  20283. }
  20284. ]
  20285. },
  20286. "delta": {
  20287. "type": "string"
  20288. }
  20289. },
  20290. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20291. "additionalProperties": false
  20292. }
  20293. },
  20294. "required": ["id", "created", "type", "data"],
  20295. "additionalProperties": false
  20296. },
  20297. "session.reasoning.delta": {
  20298. "type": "object",
  20299. "properties": {
  20300. "id": {
  20301. "type": "string",
  20302. "allOf": [
  20303. {
  20304. "pattern": "^evt_"
  20305. }
  20306. ]
  20307. },
  20308. "created": {
  20309. "type": "number"
  20310. },
  20311. "metadata": {
  20312. "type": "object"
  20313. },
  20314. "type": {
  20315. "type": "string",
  20316. "enum": ["session.reasoning.delta"]
  20317. },
  20318. "location": {
  20319. "$ref": "#/components/schemas/Location.Ref"
  20320. },
  20321. "data": {
  20322. "type": "object",
  20323. "properties": {
  20324. "sessionID": {
  20325. "type": "string",
  20326. "allOf": [
  20327. {
  20328. "pattern": "^ses"
  20329. }
  20330. ]
  20331. },
  20332. "assistantMessageID": {
  20333. "type": "string",
  20334. "allOf": [
  20335. {
  20336. "pattern": "^msg_"
  20337. }
  20338. ]
  20339. },
  20340. "ordinal": {
  20341. "type": "integer",
  20342. "allOf": [
  20343. {
  20344. "minimum": 0
  20345. }
  20346. ]
  20347. },
  20348. "delta": {
  20349. "type": "string"
  20350. }
  20351. },
  20352. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20353. "additionalProperties": false
  20354. }
  20355. },
  20356. "required": ["id", "created", "type", "data"],
  20357. "additionalProperties": false
  20358. },
  20359. "session.tool.input.delta": {
  20360. "type": "object",
  20361. "properties": {
  20362. "id": {
  20363. "type": "string",
  20364. "allOf": [
  20365. {
  20366. "pattern": "^evt_"
  20367. }
  20368. ]
  20369. },
  20370. "created": {
  20371. "type": "number"
  20372. },
  20373. "metadata": {
  20374. "type": "object"
  20375. },
  20376. "type": {
  20377. "type": "string",
  20378. "enum": ["session.tool.input.delta"]
  20379. },
  20380. "location": {
  20381. "$ref": "#/components/schemas/Location.Ref"
  20382. },
  20383. "data": {
  20384. "type": "object",
  20385. "properties": {
  20386. "sessionID": {
  20387. "type": "string",
  20388. "allOf": [
  20389. {
  20390. "pattern": "^ses"
  20391. }
  20392. ]
  20393. },
  20394. "assistantMessageID": {
  20395. "type": "string",
  20396. "allOf": [
  20397. {
  20398. "pattern": "^msg_"
  20399. }
  20400. ]
  20401. },
  20402. "id": {
  20403. "type": "string"
  20404. },
  20405. "delta": {
  20406. "type": "string"
  20407. }
  20408. },
  20409. "required": ["sessionID", "assistantMessageID", "id", "delta"],
  20410. "additionalProperties": false
  20411. }
  20412. },
  20413. "required": ["id", "created", "type", "data"],
  20414. "additionalProperties": false
  20415. },
  20416. "session.tool.progress": {
  20417. "type": "object",
  20418. "properties": {
  20419. "id": {
  20420. "type": "string",
  20421. "allOf": [
  20422. {
  20423. "pattern": "^evt_"
  20424. }
  20425. ]
  20426. },
  20427. "created": {
  20428. "type": "number"
  20429. },
  20430. "metadata": {
  20431. "type": "object"
  20432. },
  20433. "type": {
  20434. "type": "string",
  20435. "enum": ["session.tool.progress"]
  20436. },
  20437. "location": {
  20438. "$ref": "#/components/schemas/Location.Ref"
  20439. },
  20440. "data": {
  20441. "type": "object",
  20442. "properties": {
  20443. "sessionID": {
  20444. "type": "string",
  20445. "allOf": [
  20446. {
  20447. "pattern": "^ses"
  20448. }
  20449. ]
  20450. },
  20451. "assistantMessageID": {
  20452. "type": "string",
  20453. "allOf": [
  20454. {
  20455. "pattern": "^msg_"
  20456. }
  20457. ]
  20458. },
  20459. "id": {
  20460. "type": "string"
  20461. },
  20462. "metadata": {
  20463. "type": "object"
  20464. }
  20465. },
  20466. "required": ["sessionID", "assistantMessageID", "id", "metadata"],
  20467. "additionalProperties": false
  20468. }
  20469. },
  20470. "required": ["id", "created", "type", "data"],
  20471. "additionalProperties": false
  20472. },
  20473. "session.compaction.delta": {
  20474. "type": "object",
  20475. "properties": {
  20476. "id": {
  20477. "type": "string",
  20478. "allOf": [
  20479. {
  20480. "pattern": "^evt_"
  20481. }
  20482. ]
  20483. },
  20484. "created": {
  20485. "type": "number"
  20486. },
  20487. "metadata": {
  20488. "type": "object"
  20489. },
  20490. "type": {
  20491. "type": "string",
  20492. "enum": ["session.compaction.delta"]
  20493. },
  20494. "location": {
  20495. "$ref": "#/components/schemas/Location.Ref"
  20496. },
  20497. "data": {
  20498. "type": "object",
  20499. "properties": {
  20500. "sessionID": {
  20501. "type": "string",
  20502. "allOf": [
  20503. {
  20504. "pattern": "^ses"
  20505. }
  20506. ]
  20507. },
  20508. "text": {
  20509. "type": "string"
  20510. }
  20511. },
  20512. "required": ["sessionID", "text"],
  20513. "additionalProperties": false
  20514. }
  20515. },
  20516. "required": ["id", "created", "type", "data"],
  20517. "additionalProperties": false
  20518. },
  20519. "filesystem.changed": {
  20520. "type": "object",
  20521. "properties": {
  20522. "id": {
  20523. "type": "string",
  20524. "allOf": [
  20525. {
  20526. "pattern": "^evt_"
  20527. }
  20528. ]
  20529. },
  20530. "created": {
  20531. "type": "number"
  20532. },
  20533. "metadata": {
  20534. "type": "object"
  20535. },
  20536. "type": {
  20537. "type": "string",
  20538. "enum": ["filesystem.changed"]
  20539. },
  20540. "location": {
  20541. "$ref": "#/components/schemas/Location.Ref"
  20542. },
  20543. "data": {
  20544. "type": "object",
  20545. "properties": {
  20546. "file": {
  20547. "type": "string"
  20548. },
  20549. "event": {
  20550. "type": "string",
  20551. "enum": ["add", "change", "unlink"]
  20552. }
  20553. },
  20554. "required": ["file", "event"],
  20555. "additionalProperties": false
  20556. }
  20557. },
  20558. "required": ["id", "created", "type", "data"],
  20559. "additionalProperties": false
  20560. },
  20561. "reference.updated": {
  20562. "type": "object",
  20563. "properties": {
  20564. "id": {
  20565. "type": "string",
  20566. "allOf": [
  20567. {
  20568. "pattern": "^evt_"
  20569. }
  20570. ]
  20571. },
  20572. "created": {
  20573. "type": "number"
  20574. },
  20575. "metadata": {
  20576. "type": "object"
  20577. },
  20578. "type": {
  20579. "type": "string",
  20580. "enum": ["reference.updated"]
  20581. },
  20582. "location": {
  20583. "$ref": "#/components/schemas/Location.Ref"
  20584. },
  20585. "data": {
  20586. "anyOf": [
  20587. {
  20588. "type": "object"
  20589. },
  20590. {
  20591. "type": "array"
  20592. }
  20593. ]
  20594. }
  20595. },
  20596. "required": ["id", "created", "type", "data"],
  20597. "additionalProperties": false
  20598. },
  20599. "permission.asked": {
  20600. "type": "object",
  20601. "properties": {
  20602. "id": {
  20603. "type": "string",
  20604. "allOf": [
  20605. {
  20606. "pattern": "^evt_"
  20607. }
  20608. ]
  20609. },
  20610. "created": {
  20611. "type": "number"
  20612. },
  20613. "metadata": {
  20614. "type": "object"
  20615. },
  20616. "type": {
  20617. "type": "string",
  20618. "enum": ["permission.asked"]
  20619. },
  20620. "location": {
  20621. "$ref": "#/components/schemas/Location.Ref"
  20622. },
  20623. "data": {
  20624. "type": "object",
  20625. "properties": {
  20626. "id": {
  20627. "type": "string",
  20628. "allOf": [
  20629. {
  20630. "pattern": "^per"
  20631. }
  20632. ]
  20633. },
  20634. "sessionID": {
  20635. "type": "string",
  20636. "allOf": [
  20637. {
  20638. "pattern": "^ses"
  20639. }
  20640. ]
  20641. },
  20642. "action": {
  20643. "type": "string"
  20644. },
  20645. "resources": {
  20646. "type": "array",
  20647. "items": {
  20648. "type": "string"
  20649. }
  20650. },
  20651. "save": {
  20652. "type": "array",
  20653. "items": {
  20654. "type": "string"
  20655. }
  20656. },
  20657. "metadata": {
  20658. "type": "object"
  20659. },
  20660. "source": {
  20661. "$ref": "#/components/schemas/Permission.Source"
  20662. }
  20663. },
  20664. "required": ["id", "sessionID", "action", "resources"],
  20665. "additionalProperties": false
  20666. }
  20667. },
  20668. "required": ["id", "created", "type", "data"],
  20669. "additionalProperties": false
  20670. },
  20671. "permission.replied": {
  20672. "type": "object",
  20673. "properties": {
  20674. "id": {
  20675. "type": "string",
  20676. "allOf": [
  20677. {
  20678. "pattern": "^evt_"
  20679. }
  20680. ]
  20681. },
  20682. "created": {
  20683. "type": "number"
  20684. },
  20685. "metadata": {
  20686. "type": "object"
  20687. },
  20688. "type": {
  20689. "type": "string",
  20690. "enum": ["permission.replied"]
  20691. },
  20692. "location": {
  20693. "$ref": "#/components/schemas/Location.Ref"
  20694. },
  20695. "data": {
  20696. "type": "object",
  20697. "properties": {
  20698. "sessionID": {
  20699. "type": "string",
  20700. "allOf": [
  20701. {
  20702. "pattern": "^ses"
  20703. }
  20704. ]
  20705. },
  20706. "requestID": {
  20707. "type": "string",
  20708. "allOf": [
  20709. {
  20710. "pattern": "^per"
  20711. }
  20712. ]
  20713. },
  20714. "reply": {
  20715. "$ref": "#/components/schemas/Permission.Reply"
  20716. }
  20717. },
  20718. "required": ["sessionID", "requestID", "reply"],
  20719. "additionalProperties": false
  20720. }
  20721. },
  20722. "required": ["id", "created", "type", "data"],
  20723. "additionalProperties": false
  20724. },
  20725. "plugin.added": {
  20726. "type": "object",
  20727. "properties": {
  20728. "id": {
  20729. "type": "string",
  20730. "allOf": [
  20731. {
  20732. "pattern": "^evt_"
  20733. }
  20734. ]
  20735. },
  20736. "created": {
  20737. "type": "number"
  20738. },
  20739. "metadata": {
  20740. "type": "object"
  20741. },
  20742. "type": {
  20743. "type": "string",
  20744. "enum": ["plugin.added"]
  20745. },
  20746. "location": {
  20747. "$ref": "#/components/schemas/Location.Ref"
  20748. },
  20749. "data": {
  20750. "type": "object",
  20751. "properties": {
  20752. "id": {
  20753. "type": "string"
  20754. }
  20755. },
  20756. "required": ["id"],
  20757. "additionalProperties": false
  20758. }
  20759. },
  20760. "required": ["id", "created", "type", "data"],
  20761. "additionalProperties": false
  20762. },
  20763. "plugin.updated": {
  20764. "type": "object",
  20765. "properties": {
  20766. "id": {
  20767. "type": "string",
  20768. "allOf": [
  20769. {
  20770. "pattern": "^evt_"
  20771. }
  20772. ]
  20773. },
  20774. "created": {
  20775. "type": "number"
  20776. },
  20777. "metadata": {
  20778. "type": "object"
  20779. },
  20780. "type": {
  20781. "type": "string",
  20782. "enum": ["plugin.updated"]
  20783. },
  20784. "location": {
  20785. "$ref": "#/components/schemas/Location.Ref"
  20786. },
  20787. "data": {
  20788. "anyOf": [
  20789. {
  20790. "type": "object"
  20791. },
  20792. {
  20793. "type": "array"
  20794. }
  20795. ]
  20796. }
  20797. },
  20798. "required": ["id", "created", "type", "data"],
  20799. "additionalProperties": false
  20800. },
  20801. "worktree.updated": {
  20802. "type": "object",
  20803. "properties": {
  20804. "id": {
  20805. "type": "string",
  20806. "allOf": [
  20807. {
  20808. "pattern": "^evt_"
  20809. }
  20810. ]
  20811. },
  20812. "created": {
  20813. "type": "number"
  20814. },
  20815. "metadata": {
  20816. "type": "object"
  20817. },
  20818. "type": {
  20819. "type": "string",
  20820. "enum": ["worktree.updated"]
  20821. },
  20822. "location": {
  20823. "$ref": "#/components/schemas/Location.Ref"
  20824. },
  20825. "data": {
  20826. "type": "object",
  20827. "properties": {
  20828. "projectID": {
  20829. "type": "string"
  20830. }
  20831. },
  20832. "required": ["projectID"],
  20833. "additionalProperties": false
  20834. }
  20835. },
  20836. "required": ["id", "created", "type", "data"],
  20837. "additionalProperties": false
  20838. },
  20839. "worktree.resolved": {
  20840. "type": "object",
  20841. "properties": {
  20842. "id": {
  20843. "type": "string",
  20844. "allOf": [
  20845. {
  20846. "pattern": "^evt_"
  20847. }
  20848. ]
  20849. },
  20850. "created": {
  20851. "type": "number"
  20852. },
  20853. "metadata": {
  20854. "type": "object"
  20855. },
  20856. "type": {
  20857. "type": "string",
  20858. "enum": ["worktree.resolved"]
  20859. },
  20860. "durable": {
  20861. "type": "object",
  20862. "properties": {
  20863. "aggregateID": {
  20864. "type": "string"
  20865. },
  20866. "seq": {
  20867. "type": "integer",
  20868. "allOf": [
  20869. {
  20870. "minimum": 0
  20871. }
  20872. ]
  20873. },
  20874. "version": {
  20875. "type": "number",
  20876. "enum": [1]
  20877. }
  20878. },
  20879. "required": ["aggregateID", "seq", "version"],
  20880. "additionalProperties": false
  20881. },
  20882. "location": {
  20883. "$ref": "#/components/schemas/Location.Ref"
  20884. },
  20885. "data": {
  20886. "type": "object",
  20887. "properties": {
  20888. "projectID": {
  20889. "type": "string"
  20890. },
  20891. "directory": {
  20892. "type": "string"
  20893. },
  20894. "previous": {
  20895. "type": "string"
  20896. }
  20897. },
  20898. "required": ["projectID", "directory", "previous"],
  20899. "additionalProperties": false
  20900. }
  20901. },
  20902. "required": ["id", "created", "type", "durable", "data"],
  20903. "additionalProperties": false
  20904. },
  20905. "command.updated": {
  20906. "type": "object",
  20907. "properties": {
  20908. "id": {
  20909. "type": "string",
  20910. "allOf": [
  20911. {
  20912. "pattern": "^evt_"
  20913. }
  20914. ]
  20915. },
  20916. "created": {
  20917. "type": "number"
  20918. },
  20919. "metadata": {
  20920. "type": "object"
  20921. },
  20922. "type": {
  20923. "type": "string",
  20924. "enum": ["command.updated"]
  20925. },
  20926. "location": {
  20927. "$ref": "#/components/schemas/Location.Ref"
  20928. },
  20929. "data": {
  20930. "anyOf": [
  20931. {
  20932. "type": "object"
  20933. },
  20934. {
  20935. "type": "array"
  20936. }
  20937. ]
  20938. }
  20939. },
  20940. "required": ["id", "created", "type", "data"],
  20941. "additionalProperties": false
  20942. },
  20943. "config.updated": {
  20944. "type": "object",
  20945. "properties": {
  20946. "id": {
  20947. "type": "string",
  20948. "allOf": [
  20949. {
  20950. "pattern": "^evt_"
  20951. }
  20952. ]
  20953. },
  20954. "created": {
  20955. "type": "number"
  20956. },
  20957. "metadata": {
  20958. "type": "object"
  20959. },
  20960. "type": {
  20961. "type": "string",
  20962. "enum": ["config.updated"]
  20963. },
  20964. "location": {
  20965. "$ref": "#/components/schemas/Location.Ref"
  20966. },
  20967. "data": {
  20968. "anyOf": [
  20969. {
  20970. "type": "object"
  20971. },
  20972. {
  20973. "type": "array"
  20974. }
  20975. ]
  20976. }
  20977. },
  20978. "required": ["id", "created", "type", "data"],
  20979. "additionalProperties": false
  20980. },
  20981. "skill.updated": {
  20982. "type": "object",
  20983. "properties": {
  20984. "id": {
  20985. "type": "string",
  20986. "allOf": [
  20987. {
  20988. "pattern": "^evt_"
  20989. }
  20990. ]
  20991. },
  20992. "created": {
  20993. "type": "number"
  20994. },
  20995. "metadata": {
  20996. "type": "object"
  20997. },
  20998. "type": {
  20999. "type": "string",
  21000. "enum": ["skill.updated"]
  21001. },
  21002. "location": {
  21003. "$ref": "#/components/schemas/Location.Ref"
  21004. },
  21005. "data": {
  21006. "anyOf": [
  21007. {
  21008. "type": "object"
  21009. },
  21010. {
  21011. "type": "array"
  21012. }
  21013. ]
  21014. }
  21015. },
  21016. "required": ["id", "created", "type", "data"],
  21017. "additionalProperties": false
  21018. },
  21019. "Pty": {
  21020. "type": "object",
  21021. "properties": {
  21022. "id": {
  21023. "type": "string",
  21024. "allOf": [
  21025. {
  21026. "pattern": "^pty"
  21027. }
  21028. ]
  21029. },
  21030. "title": {
  21031. "type": "string"
  21032. },
  21033. "command": {
  21034. "type": "string"
  21035. },
  21036. "args": {
  21037. "type": "array",
  21038. "items": {
  21039. "type": "string"
  21040. }
  21041. },
  21042. "cwd": {
  21043. "type": "string"
  21044. },
  21045. "status": {
  21046. "type": "string",
  21047. "enum": ["running", "exited"]
  21048. },
  21049. "pid": {
  21050. "type": "integer",
  21051. "allOf": [
  21052. {
  21053. "minimum": 0
  21054. }
  21055. ]
  21056. },
  21057. "exitCode": {
  21058. "type": "integer",
  21059. "allOf": [
  21060. {
  21061. "minimum": 0
  21062. }
  21063. ]
  21064. }
  21065. },
  21066. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  21067. "additionalProperties": false
  21068. },
  21069. "pty.created": {
  21070. "type": "object",
  21071. "properties": {
  21072. "id": {
  21073. "type": "string",
  21074. "allOf": [
  21075. {
  21076. "pattern": "^evt_"
  21077. }
  21078. ]
  21079. },
  21080. "created": {
  21081. "type": "number"
  21082. },
  21083. "metadata": {
  21084. "type": "object"
  21085. },
  21086. "type": {
  21087. "type": "string",
  21088. "enum": ["pty.created"]
  21089. },
  21090. "location": {
  21091. "$ref": "#/components/schemas/Location.Ref"
  21092. },
  21093. "data": {
  21094. "type": "object",
  21095. "properties": {
  21096. "info": {
  21097. "$ref": "#/components/schemas/Pty"
  21098. }
  21099. },
  21100. "required": ["info"],
  21101. "additionalProperties": false
  21102. }
  21103. },
  21104. "required": ["id", "created", "type", "data"],
  21105. "additionalProperties": false
  21106. },
  21107. "pty.updated": {
  21108. "type": "object",
  21109. "properties": {
  21110. "id": {
  21111. "type": "string",
  21112. "allOf": [
  21113. {
  21114. "pattern": "^evt_"
  21115. }
  21116. ]
  21117. },
  21118. "created": {
  21119. "type": "number"
  21120. },
  21121. "metadata": {
  21122. "type": "object"
  21123. },
  21124. "type": {
  21125. "type": "string",
  21126. "enum": ["pty.updated"]
  21127. },
  21128. "location": {
  21129. "$ref": "#/components/schemas/Location.Ref"
  21130. },
  21131. "data": {
  21132. "type": "object",
  21133. "properties": {
  21134. "info": {
  21135. "$ref": "#/components/schemas/Pty"
  21136. }
  21137. },
  21138. "required": ["info"],
  21139. "additionalProperties": false
  21140. }
  21141. },
  21142. "required": ["id", "created", "type", "data"],
  21143. "additionalProperties": false
  21144. },
  21145. "pty.exited": {
  21146. "type": "object",
  21147. "properties": {
  21148. "id": {
  21149. "type": "string",
  21150. "allOf": [
  21151. {
  21152. "pattern": "^evt_"
  21153. }
  21154. ]
  21155. },
  21156. "created": {
  21157. "type": "number"
  21158. },
  21159. "metadata": {
  21160. "type": "object"
  21161. },
  21162. "type": {
  21163. "type": "string",
  21164. "enum": ["pty.exited"]
  21165. },
  21166. "location": {
  21167. "$ref": "#/components/schemas/Location.Ref"
  21168. },
  21169. "data": {
  21170. "type": "object",
  21171. "properties": {
  21172. "id": {
  21173. "type": "string",
  21174. "allOf": [
  21175. {
  21176. "pattern": "^pty"
  21177. }
  21178. ]
  21179. },
  21180. "exitCode": {
  21181. "type": "integer",
  21182. "allOf": [
  21183. {
  21184. "minimum": 0
  21185. }
  21186. ]
  21187. }
  21188. },
  21189. "required": ["id", "exitCode"],
  21190. "additionalProperties": false
  21191. }
  21192. },
  21193. "required": ["id", "created", "type", "data"],
  21194. "additionalProperties": false
  21195. },
  21196. "pty.deleted": {
  21197. "type": "object",
  21198. "properties": {
  21199. "id": {
  21200. "type": "string",
  21201. "allOf": [
  21202. {
  21203. "pattern": "^evt_"
  21204. }
  21205. ]
  21206. },
  21207. "created": {
  21208. "type": "number"
  21209. },
  21210. "metadata": {
  21211. "type": "object"
  21212. },
  21213. "type": {
  21214. "type": "string",
  21215. "enum": ["pty.deleted"]
  21216. },
  21217. "location": {
  21218. "$ref": "#/components/schemas/Location.Ref"
  21219. },
  21220. "data": {
  21221. "type": "object",
  21222. "properties": {
  21223. "id": {
  21224. "type": "string",
  21225. "allOf": [
  21226. {
  21227. "pattern": "^pty"
  21228. }
  21229. ]
  21230. }
  21231. },
  21232. "required": ["id"],
  21233. "additionalProperties": false
  21234. }
  21235. },
  21236. "required": ["id", "created", "type", "data"],
  21237. "additionalProperties": false
  21238. },
  21239. "shell.created": {
  21240. "type": "object",
  21241. "properties": {
  21242. "id": {
  21243. "type": "string",
  21244. "allOf": [
  21245. {
  21246. "pattern": "^evt_"
  21247. }
  21248. ]
  21249. },
  21250. "created": {
  21251. "type": "number"
  21252. },
  21253. "metadata": {
  21254. "type": "object"
  21255. },
  21256. "type": {
  21257. "type": "string",
  21258. "enum": ["shell.created"]
  21259. },
  21260. "location": {
  21261. "$ref": "#/components/schemas/Location.Ref"
  21262. },
  21263. "data": {
  21264. "type": "object",
  21265. "properties": {
  21266. "info": {
  21267. "$ref": "#/components/schemas/Shell.Info"
  21268. }
  21269. },
  21270. "required": ["info"],
  21271. "additionalProperties": false
  21272. }
  21273. },
  21274. "required": ["id", "created", "type", "data"],
  21275. "additionalProperties": false
  21276. },
  21277. "shell.exited": {
  21278. "type": "object",
  21279. "properties": {
  21280. "id": {
  21281. "type": "string",
  21282. "allOf": [
  21283. {
  21284. "pattern": "^evt_"
  21285. }
  21286. ]
  21287. },
  21288. "created": {
  21289. "type": "number"
  21290. },
  21291. "metadata": {
  21292. "type": "object"
  21293. },
  21294. "type": {
  21295. "type": "string",
  21296. "enum": ["shell.exited"]
  21297. },
  21298. "location": {
  21299. "$ref": "#/components/schemas/Location.Ref"
  21300. },
  21301. "data": {
  21302. "type": "object",
  21303. "properties": {
  21304. "id": {
  21305. "type": "string",
  21306. "allOf": [
  21307. {
  21308. "pattern": "^sh_"
  21309. }
  21310. ]
  21311. },
  21312. "exit": {
  21313. "type": "number"
  21314. },
  21315. "status": {
  21316. "type": "string",
  21317. "enum": ["running", "exited", "timeout", "killed"]
  21318. }
  21319. },
  21320. "required": ["id", "status"],
  21321. "additionalProperties": false
  21322. }
  21323. },
  21324. "required": ["id", "created", "type", "data"],
  21325. "additionalProperties": false
  21326. },
  21327. "shell.deleted": {
  21328. "type": "object",
  21329. "properties": {
  21330. "id": {
  21331. "type": "string",
  21332. "allOf": [
  21333. {
  21334. "pattern": "^evt_"
  21335. }
  21336. ]
  21337. },
  21338. "created": {
  21339. "type": "number"
  21340. },
  21341. "metadata": {
  21342. "type": "object"
  21343. },
  21344. "type": {
  21345. "type": "string",
  21346. "enum": ["shell.deleted"]
  21347. },
  21348. "location": {
  21349. "$ref": "#/components/schemas/Location.Ref"
  21350. },
  21351. "data": {
  21352. "type": "object",
  21353. "properties": {
  21354. "id": {
  21355. "type": "string",
  21356. "allOf": [
  21357. {
  21358. "pattern": "^sh_"
  21359. }
  21360. ]
  21361. }
  21362. },
  21363. "required": ["id"],
  21364. "additionalProperties": false
  21365. }
  21366. },
  21367. "required": ["id", "created", "type", "data"],
  21368. "additionalProperties": false
  21369. },
  21370. "Form.Metadata1": {
  21371. "type": "object"
  21372. },
  21373. "Form.When1": {
  21374. "type": "object",
  21375. "properties": {
  21376. "key": {
  21377. "type": "string"
  21378. },
  21379. "op": {
  21380. "type": "string",
  21381. "enum": ["eq", "neq"]
  21382. },
  21383. "value": {
  21384. "anyOf": [
  21385. {
  21386. "type": "string"
  21387. },
  21388. {
  21389. "anyOf": [
  21390. {
  21391. "type": "number"
  21392. },
  21393. {
  21394. "type": "string",
  21395. "enum": ["NaN"]
  21396. },
  21397. {
  21398. "type": "string",
  21399. "enum": ["Infinity"]
  21400. },
  21401. {
  21402. "type": "string",
  21403. "enum": ["-Infinity"]
  21404. }
  21405. ]
  21406. },
  21407. {
  21408. "type": "boolean"
  21409. }
  21410. ]
  21411. }
  21412. },
  21413. "required": ["key", "op", "value"],
  21414. "additionalProperties": false
  21415. },
  21416. "Form.StringField1": {
  21417. "type": "object",
  21418. "properties": {
  21419. "key": {
  21420. "type": "string"
  21421. },
  21422. "title": {
  21423. "type": "string"
  21424. },
  21425. "description": {
  21426. "type": "string"
  21427. },
  21428. "required": {
  21429. "type": "boolean"
  21430. },
  21431. "when": {
  21432. "type": "array",
  21433. "items": {
  21434. "$ref": "#/components/schemas/Form.When1"
  21435. }
  21436. },
  21437. "type": {
  21438. "type": "string",
  21439. "enum": ["string"]
  21440. },
  21441. "format": {
  21442. "type": "string",
  21443. "enum": ["email", "uri", "date", "date-time"]
  21444. },
  21445. "minLength": {
  21446. "type": "integer",
  21447. "allOf": [
  21448. {
  21449. "minimum": 0
  21450. }
  21451. ]
  21452. },
  21453. "maxLength": {
  21454. "type": "integer",
  21455. "allOf": [
  21456. {
  21457. "minimum": 0
  21458. }
  21459. ]
  21460. },
  21461. "pattern": {
  21462. "type": "string"
  21463. },
  21464. "placeholder": {
  21465. "type": "string"
  21466. },
  21467. "default": {
  21468. "type": "string"
  21469. },
  21470. "options": {
  21471. "type": "array",
  21472. "items": {
  21473. "$ref": "#/components/schemas/Form.Option"
  21474. }
  21475. },
  21476. "custom": {
  21477. "type": "boolean"
  21478. }
  21479. },
  21480. "required": ["key", "type"],
  21481. "additionalProperties": false
  21482. },
  21483. "Form.NumberField1": {
  21484. "type": "object",
  21485. "properties": {
  21486. "key": {
  21487. "type": "string"
  21488. },
  21489. "title": {
  21490. "type": "string"
  21491. },
  21492. "description": {
  21493. "type": "string"
  21494. },
  21495. "required": {
  21496. "type": "boolean"
  21497. },
  21498. "when": {
  21499. "type": "array",
  21500. "items": {
  21501. "$ref": "#/components/schemas/Form.When1"
  21502. }
  21503. },
  21504. "type": {
  21505. "type": "string",
  21506. "enum": ["number"]
  21507. },
  21508. "minimum": {
  21509. "anyOf": [
  21510. {
  21511. "type": "number"
  21512. },
  21513. {
  21514. "type": "string",
  21515. "enum": ["NaN"]
  21516. },
  21517. {
  21518. "type": "string",
  21519. "enum": ["Infinity"]
  21520. },
  21521. {
  21522. "type": "string",
  21523. "enum": ["-Infinity"]
  21524. }
  21525. ]
  21526. },
  21527. "maximum": {
  21528. "anyOf": [
  21529. {
  21530. "type": "number"
  21531. },
  21532. {
  21533. "type": "string",
  21534. "enum": ["NaN"]
  21535. },
  21536. {
  21537. "type": "string",
  21538. "enum": ["Infinity"]
  21539. },
  21540. {
  21541. "type": "string",
  21542. "enum": ["-Infinity"]
  21543. }
  21544. ]
  21545. },
  21546. "default": {
  21547. "anyOf": [
  21548. {
  21549. "type": "number"
  21550. },
  21551. {
  21552. "type": "string",
  21553. "enum": ["NaN"]
  21554. },
  21555. {
  21556. "type": "string",
  21557. "enum": ["Infinity"]
  21558. },
  21559. {
  21560. "type": "string",
  21561. "enum": ["-Infinity"]
  21562. }
  21563. ]
  21564. }
  21565. },
  21566. "required": ["key", "type"],
  21567. "additionalProperties": false
  21568. },
  21569. "Form.IntegerField1": {
  21570. "type": "object",
  21571. "properties": {
  21572. "key": {
  21573. "type": "string"
  21574. },
  21575. "title": {
  21576. "type": "string"
  21577. },
  21578. "description": {
  21579. "type": "string"
  21580. },
  21581. "required": {
  21582. "type": "boolean"
  21583. },
  21584. "when": {
  21585. "type": "array",
  21586. "items": {
  21587. "$ref": "#/components/schemas/Form.When1"
  21588. }
  21589. },
  21590. "type": {
  21591. "type": "string",
  21592. "enum": ["integer"]
  21593. },
  21594. "minimum": {
  21595. "anyOf": [
  21596. {
  21597. "type": "number"
  21598. },
  21599. {
  21600. "type": "string",
  21601. "enum": ["NaN"]
  21602. },
  21603. {
  21604. "type": "string",
  21605. "enum": ["Infinity"]
  21606. },
  21607. {
  21608. "type": "string",
  21609. "enum": ["-Infinity"]
  21610. }
  21611. ]
  21612. },
  21613. "maximum": {
  21614. "anyOf": [
  21615. {
  21616. "type": "number"
  21617. },
  21618. {
  21619. "type": "string",
  21620. "enum": ["NaN"]
  21621. },
  21622. {
  21623. "type": "string",
  21624. "enum": ["Infinity"]
  21625. },
  21626. {
  21627. "type": "string",
  21628. "enum": ["-Infinity"]
  21629. }
  21630. ]
  21631. },
  21632. "default": {
  21633. "anyOf": [
  21634. {
  21635. "type": "number"
  21636. },
  21637. {
  21638. "type": "string",
  21639. "enum": ["NaN"]
  21640. },
  21641. {
  21642. "type": "string",
  21643. "enum": ["Infinity"]
  21644. },
  21645. {
  21646. "type": "string",
  21647. "enum": ["-Infinity"]
  21648. }
  21649. ]
  21650. }
  21651. },
  21652. "required": ["key", "type"],
  21653. "additionalProperties": false
  21654. },
  21655. "Form.BooleanField1": {
  21656. "type": "object",
  21657. "properties": {
  21658. "key": {
  21659. "type": "string"
  21660. },
  21661. "title": {
  21662. "type": "string"
  21663. },
  21664. "description": {
  21665. "type": "string"
  21666. },
  21667. "required": {
  21668. "type": "boolean"
  21669. },
  21670. "when": {
  21671. "type": "array",
  21672. "items": {
  21673. "$ref": "#/components/schemas/Form.When1"
  21674. }
  21675. },
  21676. "type": {
  21677. "type": "string",
  21678. "enum": ["boolean"]
  21679. },
  21680. "default": {
  21681. "type": "boolean"
  21682. }
  21683. },
  21684. "required": ["key", "type"],
  21685. "additionalProperties": false
  21686. },
  21687. "Form.MultiselectField1": {
  21688. "type": "object",
  21689. "properties": {
  21690. "key": {
  21691. "type": "string"
  21692. },
  21693. "title": {
  21694. "type": "string"
  21695. },
  21696. "description": {
  21697. "type": "string"
  21698. },
  21699. "required": {
  21700. "type": "boolean"
  21701. },
  21702. "when": {
  21703. "type": "array",
  21704. "items": {
  21705. "$ref": "#/components/schemas/Form.When1"
  21706. }
  21707. },
  21708. "type": {
  21709. "type": "string",
  21710. "enum": ["multiselect"]
  21711. },
  21712. "options": {
  21713. "type": "array",
  21714. "items": {
  21715. "$ref": "#/components/schemas/Form.Option"
  21716. }
  21717. },
  21718. "minItems": {
  21719. "type": "integer",
  21720. "allOf": [
  21721. {
  21722. "minimum": 0
  21723. }
  21724. ]
  21725. },
  21726. "maxItems": {
  21727. "type": "integer",
  21728. "allOf": [
  21729. {
  21730. "minimum": 0
  21731. }
  21732. ]
  21733. },
  21734. "custom": {
  21735. "type": "boolean"
  21736. },
  21737. "default": {
  21738. "type": "array",
  21739. "items": {
  21740. "type": "string"
  21741. }
  21742. }
  21743. },
  21744. "required": ["key", "type", "options"],
  21745. "additionalProperties": false
  21746. },
  21747. "Form.Field1": {
  21748. "anyOf": [
  21749. {
  21750. "$ref": "#/components/schemas/Form.StringField1"
  21751. },
  21752. {
  21753. "$ref": "#/components/schemas/Form.NumberField1"
  21754. },
  21755. {
  21756. "$ref": "#/components/schemas/Form.IntegerField1"
  21757. },
  21758. {
  21759. "$ref": "#/components/schemas/Form.BooleanField1"
  21760. },
  21761. {
  21762. "$ref": "#/components/schemas/Form.MultiselectField1"
  21763. },
  21764. {
  21765. "$ref": "#/components/schemas/Form.ExternalField"
  21766. }
  21767. ]
  21768. },
  21769. "Form.Fields3": {
  21770. "type": "array",
  21771. "prefixItems": [
  21772. {
  21773. "$ref": "#/components/schemas/Form.Field1"
  21774. }
  21775. ],
  21776. "minItems": 1,
  21777. "items": {
  21778. "$ref": "#/components/schemas/Form.Field1"
  21779. }
  21780. },
  21781. "Form.Info1": {
  21782. "type": "object",
  21783. "properties": {
  21784. "id": {
  21785. "type": "string",
  21786. "allOf": [
  21787. {
  21788. "pattern": "^frm_"
  21789. }
  21790. ]
  21791. },
  21792. "sessionID": {
  21793. "type": "string"
  21794. },
  21795. "title": {
  21796. "type": "string"
  21797. },
  21798. "metadata": {
  21799. "$ref": "#/components/schemas/Form.Metadata1"
  21800. },
  21801. "fields": {
  21802. "$ref": "#/components/schemas/Form.Fields3"
  21803. }
  21804. },
  21805. "required": ["id", "sessionID", "title", "fields"],
  21806. "additionalProperties": false
  21807. },
  21808. "form.created": {
  21809. "type": "object",
  21810. "properties": {
  21811. "id": {
  21812. "type": "string",
  21813. "allOf": [
  21814. {
  21815. "pattern": "^evt_"
  21816. }
  21817. ]
  21818. },
  21819. "created": {
  21820. "type": "number"
  21821. },
  21822. "metadata": {
  21823. "type": "object"
  21824. },
  21825. "type": {
  21826. "type": "string",
  21827. "enum": ["form.created"]
  21828. },
  21829. "location": {
  21830. "$ref": "#/components/schemas/Location.Ref"
  21831. },
  21832. "data": {
  21833. "type": "object",
  21834. "properties": {
  21835. "form": {
  21836. "$ref": "#/components/schemas/Form.Info1"
  21837. }
  21838. },
  21839. "required": ["form"],
  21840. "additionalProperties": false
  21841. }
  21842. },
  21843. "required": ["id", "created", "type", "data"],
  21844. "additionalProperties": false
  21845. },
  21846. "Form.Value1": {
  21847. "anyOf": [
  21848. {
  21849. "type": "string"
  21850. },
  21851. {
  21852. "anyOf": [
  21853. {
  21854. "type": "number"
  21855. },
  21856. {
  21857. "type": "string",
  21858. "enum": ["NaN"]
  21859. },
  21860. {
  21861. "type": "string",
  21862. "enum": ["Infinity"]
  21863. },
  21864. {
  21865. "type": "string",
  21866. "enum": ["-Infinity"]
  21867. }
  21868. ]
  21869. },
  21870. {
  21871. "type": "boolean"
  21872. },
  21873. {
  21874. "type": "array",
  21875. "items": {
  21876. "type": "string"
  21877. }
  21878. }
  21879. ]
  21880. },
  21881. "Form.Answer1": {
  21882. "type": "object",
  21883. "additionalProperties": {
  21884. "$ref": "#/components/schemas/Form.Value1"
  21885. }
  21886. },
  21887. "form.replied": {
  21888. "type": "object",
  21889. "properties": {
  21890. "id": {
  21891. "type": "string",
  21892. "allOf": [
  21893. {
  21894. "pattern": "^evt_"
  21895. }
  21896. ]
  21897. },
  21898. "created": {
  21899. "type": "number"
  21900. },
  21901. "metadata": {
  21902. "type": "object"
  21903. },
  21904. "type": {
  21905. "type": "string",
  21906. "enum": ["form.replied"]
  21907. },
  21908. "location": {
  21909. "$ref": "#/components/schemas/Location.Ref"
  21910. },
  21911. "data": {
  21912. "type": "object",
  21913. "properties": {
  21914. "id": {
  21915. "type": "string",
  21916. "allOf": [
  21917. {
  21918. "pattern": "^frm_"
  21919. }
  21920. ]
  21921. },
  21922. "sessionID": {
  21923. "type": "string"
  21924. },
  21925. "answer": {
  21926. "$ref": "#/components/schemas/Form.Answer1"
  21927. }
  21928. },
  21929. "required": ["id", "sessionID", "answer"],
  21930. "additionalProperties": false
  21931. }
  21932. },
  21933. "required": ["id", "created", "type", "data"],
  21934. "additionalProperties": false
  21935. },
  21936. "form.cancelled": {
  21937. "type": "object",
  21938. "properties": {
  21939. "id": {
  21940. "type": "string",
  21941. "allOf": [
  21942. {
  21943. "pattern": "^evt_"
  21944. }
  21945. ]
  21946. },
  21947. "created": {
  21948. "type": "number"
  21949. },
  21950. "metadata": {
  21951. "type": "object"
  21952. },
  21953. "type": {
  21954. "type": "string",
  21955. "enum": ["form.cancelled"]
  21956. },
  21957. "location": {
  21958. "$ref": "#/components/schemas/Location.Ref"
  21959. },
  21960. "data": {
  21961. "type": "object",
  21962. "properties": {
  21963. "id": {
  21964. "type": "string",
  21965. "allOf": [
  21966. {
  21967. "pattern": "^frm_"
  21968. }
  21969. ]
  21970. },
  21971. "sessionID": {
  21972. "type": "string"
  21973. }
  21974. },
  21975. "required": ["id", "sessionID"],
  21976. "additionalProperties": false
  21977. }
  21978. },
  21979. "required": ["id", "created", "type", "data"],
  21980. "additionalProperties": false
  21981. },
  21982. "websearch.updated": {
  21983. "type": "object",
  21984. "properties": {
  21985. "id": {
  21986. "type": "string",
  21987. "allOf": [
  21988. {
  21989. "pattern": "^evt_"
  21990. }
  21991. ]
  21992. },
  21993. "created": {
  21994. "type": "number"
  21995. },
  21996. "metadata": {
  21997. "type": "object"
  21998. },
  21999. "type": {
  22000. "type": "string",
  22001. "enum": ["websearch.updated"]
  22002. },
  22003. "location": {
  22004. "$ref": "#/components/schemas/Location.Ref"
  22005. },
  22006. "data": {
  22007. "anyOf": [
  22008. {
  22009. "type": "object"
  22010. },
  22011. {
  22012. "type": "array"
  22013. }
  22014. ]
  22015. }
  22016. },
  22017. "required": ["id", "created", "type", "data"],
  22018. "additionalProperties": false
  22019. },
  22020. "SessionStatus": {
  22021. "anyOf": [
  22022. {
  22023. "type": "object",
  22024. "properties": {
  22025. "type": {
  22026. "type": "string",
  22027. "enum": ["idle"]
  22028. }
  22029. },
  22030. "required": ["type"],
  22031. "additionalProperties": false
  22032. },
  22033. {
  22034. "type": "object",
  22035. "properties": {
  22036. "type": {
  22037. "type": "string",
  22038. "enum": ["retry"]
  22039. },
  22040. "attempt": {
  22041. "type": "integer",
  22042. "allOf": [
  22043. {
  22044. "minimum": 0
  22045. }
  22046. ]
  22047. },
  22048. "message": {
  22049. "type": "string"
  22050. },
  22051. "action": {
  22052. "type": "object",
  22053. "properties": {
  22054. "reason": {
  22055. "type": "string"
  22056. },
  22057. "provider": {
  22058. "type": "string"
  22059. },
  22060. "title": {
  22061. "type": "string"
  22062. },
  22063. "message": {
  22064. "type": "string"
  22065. },
  22066. "label": {
  22067. "type": "string"
  22068. },
  22069. "link": {
  22070. "type": "string"
  22071. }
  22072. },
  22073. "required": ["reason", "provider", "title", "message", "label"],
  22074. "additionalProperties": false
  22075. },
  22076. "next": {
  22077. "type": "integer",
  22078. "allOf": [
  22079. {
  22080. "minimum": 0
  22081. }
  22082. ]
  22083. }
  22084. },
  22085. "required": ["type", "attempt", "message", "next"],
  22086. "additionalProperties": false
  22087. },
  22088. {
  22089. "type": "object",
  22090. "properties": {
  22091. "type": {
  22092. "type": "string",
  22093. "enum": ["busy"]
  22094. }
  22095. },
  22096. "required": ["type"],
  22097. "additionalProperties": false
  22098. }
  22099. ]
  22100. },
  22101. "session.status": {
  22102. "type": "object",
  22103. "properties": {
  22104. "id": {
  22105. "type": "string",
  22106. "allOf": [
  22107. {
  22108. "pattern": "^evt_"
  22109. }
  22110. ]
  22111. },
  22112. "created": {
  22113. "type": "number"
  22114. },
  22115. "metadata": {
  22116. "type": "object"
  22117. },
  22118. "type": {
  22119. "type": "string",
  22120. "enum": ["session.status"]
  22121. },
  22122. "location": {
  22123. "$ref": "#/components/schemas/Location.Ref"
  22124. },
  22125. "data": {
  22126. "type": "object",
  22127. "properties": {
  22128. "sessionID": {
  22129. "type": "string",
  22130. "allOf": [
  22131. {
  22132. "pattern": "^ses"
  22133. }
  22134. ]
  22135. },
  22136. "status": {
  22137. "$ref": "#/components/schemas/SessionStatus"
  22138. }
  22139. },
  22140. "required": ["sessionID", "status"],
  22141. "additionalProperties": false
  22142. }
  22143. },
  22144. "required": ["id", "created", "type", "data"],
  22145. "additionalProperties": false
  22146. },
  22147. "session.idle": {
  22148. "type": "object",
  22149. "properties": {
  22150. "id": {
  22151. "type": "string",
  22152. "allOf": [
  22153. {
  22154. "pattern": "^evt_"
  22155. }
  22156. ]
  22157. },
  22158. "created": {
  22159. "type": "number"
  22160. },
  22161. "metadata": {
  22162. "type": "object"
  22163. },
  22164. "type": {
  22165. "type": "string",
  22166. "enum": ["session.idle"]
  22167. },
  22168. "location": {
  22169. "$ref": "#/components/schemas/Location.Ref"
  22170. },
  22171. "data": {
  22172. "type": "object",
  22173. "properties": {
  22174. "sessionID": {
  22175. "type": "string",
  22176. "allOf": [
  22177. {
  22178. "pattern": "^ses"
  22179. }
  22180. ]
  22181. }
  22182. },
  22183. "required": ["sessionID"],
  22184. "additionalProperties": false
  22185. }
  22186. },
  22187. "required": ["id", "created", "type", "data"],
  22188. "additionalProperties": false
  22189. },
  22190. "tui.prompt.append": {
  22191. "type": "object",
  22192. "properties": {
  22193. "id": {
  22194. "type": "string",
  22195. "allOf": [
  22196. {
  22197. "pattern": "^evt_"
  22198. }
  22199. ]
  22200. },
  22201. "created": {
  22202. "type": "number"
  22203. },
  22204. "metadata": {
  22205. "type": "object"
  22206. },
  22207. "type": {
  22208. "type": "string",
  22209. "enum": ["tui.prompt.append"]
  22210. },
  22211. "location": {
  22212. "$ref": "#/components/schemas/Location.Ref"
  22213. },
  22214. "data": {
  22215. "type": "object",
  22216. "properties": {
  22217. "text": {
  22218. "type": "string"
  22219. }
  22220. },
  22221. "required": ["text"],
  22222. "additionalProperties": false
  22223. }
  22224. },
  22225. "required": ["id", "created", "type", "data"],
  22226. "additionalProperties": false
  22227. },
  22228. "tui.command.execute": {
  22229. "type": "object",
  22230. "properties": {
  22231. "id": {
  22232. "type": "string",
  22233. "allOf": [
  22234. {
  22235. "pattern": "^evt_"
  22236. }
  22237. ]
  22238. },
  22239. "created": {
  22240. "type": "number"
  22241. },
  22242. "metadata": {
  22243. "type": "object"
  22244. },
  22245. "type": {
  22246. "type": "string",
  22247. "enum": ["tui.command.execute"]
  22248. },
  22249. "location": {
  22250. "$ref": "#/components/schemas/Location.Ref"
  22251. },
  22252. "data": {
  22253. "type": "object",
  22254. "properties": {
  22255. "command": {
  22256. "anyOf": [
  22257. {
  22258. "type": "string",
  22259. "enum": [
  22260. "session.list",
  22261. "session.new",
  22262. "session.share",
  22263. "session.interrupt",
  22264. "session.background",
  22265. "session.compact",
  22266. "session.page.up",
  22267. "session.page.down",
  22268. "session.line.up",
  22269. "session.line.down",
  22270. "session.half.page.up",
  22271. "session.half.page.down",
  22272. "session.first",
  22273. "session.last",
  22274. "prompt.clear",
  22275. "prompt.submit",
  22276. "agent.cycle"
  22277. ]
  22278. },
  22279. {
  22280. "type": "string"
  22281. }
  22282. ]
  22283. }
  22284. },
  22285. "required": ["command"],
  22286. "additionalProperties": false
  22287. }
  22288. },
  22289. "required": ["id", "created", "type", "data"],
  22290. "additionalProperties": false
  22291. },
  22292. "tui.toast.show": {
  22293. "type": "object",
  22294. "properties": {
  22295. "id": {
  22296. "type": "string",
  22297. "allOf": [
  22298. {
  22299. "pattern": "^evt_"
  22300. }
  22301. ]
  22302. },
  22303. "created": {
  22304. "type": "number"
  22305. },
  22306. "metadata": {
  22307. "type": "object"
  22308. },
  22309. "type": {
  22310. "type": "string",
  22311. "enum": ["tui.toast.show"]
  22312. },
  22313. "location": {
  22314. "$ref": "#/components/schemas/Location.Ref"
  22315. },
  22316. "data": {
  22317. "type": "object",
  22318. "properties": {
  22319. "title": {
  22320. "type": "string"
  22321. },
  22322. "message": {
  22323. "type": "string"
  22324. },
  22325. "variant": {
  22326. "type": "string",
  22327. "enum": ["info", "success", "warning", "error"]
  22328. },
  22329. "duration": {
  22330. "anyOf": [
  22331. {
  22332. "type": "integer",
  22333. "allOf": [
  22334. {
  22335. "exclusiveMinimum": 0
  22336. }
  22337. ]
  22338. },
  22339. {
  22340. "type": "null"
  22341. }
  22342. ]
  22343. }
  22344. },
  22345. "required": ["message", "variant"],
  22346. "additionalProperties": false
  22347. }
  22348. },
  22349. "required": ["id", "created", "type", "data"],
  22350. "additionalProperties": false
  22351. },
  22352. "tui.session.select": {
  22353. "type": "object",
  22354. "properties": {
  22355. "id": {
  22356. "type": "string",
  22357. "allOf": [
  22358. {
  22359. "pattern": "^evt_"
  22360. }
  22361. ]
  22362. },
  22363. "created": {
  22364. "type": "number"
  22365. },
  22366. "metadata": {
  22367. "type": "object"
  22368. },
  22369. "type": {
  22370. "type": "string",
  22371. "enum": ["tui.session.select"]
  22372. },
  22373. "location": {
  22374. "$ref": "#/components/schemas/Location.Ref"
  22375. },
  22376. "data": {
  22377. "type": "object",
  22378. "properties": {
  22379. "sessionID": {
  22380. "type": "string",
  22381. "allOf": [
  22382. {
  22383. "pattern": "^ses",
  22384. "description": "Session ID to navigate to"
  22385. }
  22386. ]
  22387. }
  22388. },
  22389. "required": ["sessionID"],
  22390. "additionalProperties": false
  22391. }
  22392. },
  22393. "required": ["id", "created", "type", "data"],
  22394. "additionalProperties": false
  22395. },
  22396. "installation.updated": {
  22397. "type": "object",
  22398. "properties": {
  22399. "id": {
  22400. "type": "string",
  22401. "allOf": [
  22402. {
  22403. "pattern": "^evt_"
  22404. }
  22405. ]
  22406. },
  22407. "created": {
  22408. "type": "number"
  22409. },
  22410. "metadata": {
  22411. "type": "object"
  22412. },
  22413. "type": {
  22414. "type": "string",
  22415. "enum": ["installation.updated"]
  22416. },
  22417. "location": {
  22418. "$ref": "#/components/schemas/Location.Ref"
  22419. },
  22420. "data": {
  22421. "type": "object",
  22422. "properties": {
  22423. "version": {
  22424. "type": "string"
  22425. }
  22426. },
  22427. "required": ["version"],
  22428. "additionalProperties": false
  22429. }
  22430. },
  22431. "required": ["id", "created", "type", "data"],
  22432. "additionalProperties": false
  22433. },
  22434. "installation.update-available": {
  22435. "type": "object",
  22436. "properties": {
  22437. "id": {
  22438. "type": "string",
  22439. "allOf": [
  22440. {
  22441. "pattern": "^evt_"
  22442. }
  22443. ]
  22444. },
  22445. "created": {
  22446. "type": "number"
  22447. },
  22448. "metadata": {
  22449. "type": "object"
  22450. },
  22451. "type": {
  22452. "type": "string",
  22453. "enum": ["installation.update-available"]
  22454. },
  22455. "location": {
  22456. "$ref": "#/components/schemas/Location.Ref"
  22457. },
  22458. "data": {
  22459. "type": "object",
  22460. "properties": {
  22461. "version": {
  22462. "type": "string"
  22463. }
  22464. },
  22465. "required": ["version"],
  22466. "additionalProperties": false
  22467. }
  22468. },
  22469. "required": ["id", "created", "type", "data"],
  22470. "additionalProperties": false
  22471. },
  22472. "vcs.branch.updated": {
  22473. "type": "object",
  22474. "properties": {
  22475. "id": {
  22476. "type": "string",
  22477. "allOf": [
  22478. {
  22479. "pattern": "^evt_"
  22480. }
  22481. ]
  22482. },
  22483. "created": {
  22484. "type": "number"
  22485. },
  22486. "metadata": {
  22487. "type": "object"
  22488. },
  22489. "type": {
  22490. "type": "string",
  22491. "enum": ["vcs.branch.updated"]
  22492. },
  22493. "location": {
  22494. "$ref": "#/components/schemas/Location.Ref"
  22495. },
  22496. "data": {
  22497. "type": "object",
  22498. "properties": {
  22499. "branch": {
  22500. "type": "string"
  22501. }
  22502. },
  22503. "additionalProperties": false
  22504. }
  22505. },
  22506. "required": ["id", "created", "type", "data"],
  22507. "additionalProperties": false
  22508. },
  22509. "mcp.status.changed": {
  22510. "type": "object",
  22511. "properties": {
  22512. "id": {
  22513. "type": "string",
  22514. "allOf": [
  22515. {
  22516. "pattern": "^evt_"
  22517. }
  22518. ]
  22519. },
  22520. "created": {
  22521. "type": "number"
  22522. },
  22523. "metadata": {
  22524. "type": "object"
  22525. },
  22526. "type": {
  22527. "type": "string",
  22528. "enum": ["mcp.status.changed"]
  22529. },
  22530. "location": {
  22531. "$ref": "#/components/schemas/Location.Ref"
  22532. },
  22533. "data": {
  22534. "type": "object",
  22535. "properties": {
  22536. "server": {
  22537. "type": "string"
  22538. }
  22539. },
  22540. "required": ["server"],
  22541. "additionalProperties": false
  22542. }
  22543. },
  22544. "required": ["id", "created", "type", "data"],
  22545. "additionalProperties": false
  22546. },
  22547. "mcp.resources.changed": {
  22548. "type": "object",
  22549. "properties": {
  22550. "id": {
  22551. "type": "string",
  22552. "allOf": [
  22553. {
  22554. "pattern": "^evt_"
  22555. }
  22556. ]
  22557. },
  22558. "created": {
  22559. "type": "number"
  22560. },
  22561. "metadata": {
  22562. "type": "object"
  22563. },
  22564. "type": {
  22565. "type": "string",
  22566. "enum": ["mcp.resources.changed"]
  22567. },
  22568. "location": {
  22569. "$ref": "#/components/schemas/Location.Ref"
  22570. },
  22571. "data": {
  22572. "type": "object",
  22573. "properties": {
  22574. "server": {
  22575. "type": "string"
  22576. }
  22577. },
  22578. "required": ["server"],
  22579. "additionalProperties": false
  22580. }
  22581. },
  22582. "required": ["id", "created", "type", "data"],
  22583. "additionalProperties": false
  22584. },
  22585. "V2Event.server.connected": {
  22586. "type": "object",
  22587. "properties": {
  22588. "id": {
  22589. "type": "string",
  22590. "allOf": [
  22591. {
  22592. "pattern": "^evt_"
  22593. }
  22594. ]
  22595. },
  22596. "metadata": {
  22597. "anyOf": [
  22598. {
  22599. "type": "object"
  22600. },
  22601. {
  22602. "type": "null"
  22603. }
  22604. ]
  22605. },
  22606. "location": {
  22607. "anyOf": [
  22608. {
  22609. "$ref": "#/components/schemas/Location.Ref"
  22610. },
  22611. {
  22612. "type": "null"
  22613. }
  22614. ]
  22615. },
  22616. "type": {
  22617. "type": "string",
  22618. "enum": ["server.connected"]
  22619. },
  22620. "data": {
  22621. "anyOf": [
  22622. {
  22623. "type": "object"
  22624. },
  22625. {
  22626. "type": "array"
  22627. }
  22628. ]
  22629. }
  22630. },
  22631. "required": ["id", "type", "data"],
  22632. "additionalProperties": false
  22633. },
  22634. "V2Event": {
  22635. "anyOf": [
  22636. {
  22637. "$ref": "#/components/schemas/models-dev.refreshed"
  22638. },
  22639. {
  22640. "$ref": "#/components/schemas/integration.updated"
  22641. },
  22642. {
  22643. "$ref": "#/components/schemas/integration.connection.updated"
  22644. },
  22645. {
  22646. "$ref": "#/components/schemas/catalog.updated"
  22647. },
  22648. {
  22649. "$ref": "#/components/schemas/agent.updated"
  22650. },
  22651. {
  22652. "$ref": "#/components/schemas/session.created"
  22653. },
  22654. {
  22655. "$ref": "#/components/schemas/session.agent.selected"
  22656. },
  22657. {
  22658. "$ref": "#/components/schemas/session.model.selected"
  22659. },
  22660. {
  22661. "$ref": "#/components/schemas/session.moved"
  22662. },
  22663. {
  22664. "$ref": "#/components/schemas/session.renamed"
  22665. },
  22666. {
  22667. "$ref": "#/components/schemas/session.usage.updated"
  22668. },
  22669. {
  22670. "$ref": "#/components/schemas/session.deleted"
  22671. },
  22672. {
  22673. "$ref": "#/components/schemas/session.forked"
  22674. },
  22675. {
  22676. "$ref": "#/components/schemas/session.inbox.delivered"
  22677. },
  22678. {
  22679. "$ref": "#/components/schemas/session.inbox.enqueued"
  22680. },
  22681. {
  22682. "$ref": "#/components/schemas/session.inbox.cancelled"
  22683. },
  22684. {
  22685. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  22686. },
  22687. {
  22688. "$ref": "#/components/schemas/session.execution.started"
  22689. },
  22690. {
  22691. "$ref": "#/components/schemas/session.execution.succeeded"
  22692. },
  22693. {
  22694. "$ref": "#/components/schemas/session.execution.failed"
  22695. },
  22696. {
  22697. "$ref": "#/components/schemas/session.execution.interrupted"
  22698. },
  22699. {
  22700. "$ref": "#/components/schemas/session.instructions.updated"
  22701. },
  22702. {
  22703. "$ref": "#/components/schemas/session.synthetic"
  22704. },
  22705. {
  22706. "$ref": "#/components/schemas/session.skill.activated"
  22707. },
  22708. {
  22709. "$ref": "#/components/schemas/session.shell.started"
  22710. },
  22711. {
  22712. "$ref": "#/components/schemas/session.shell.ended"
  22713. },
  22714. {
  22715. "$ref": "#/components/schemas/session.step.started"
  22716. },
  22717. {
  22718. "$ref": "#/components/schemas/session.step.ended"
  22719. },
  22720. {
  22721. "$ref": "#/components/schemas/session.step.failed"
  22722. },
  22723. {
  22724. "$ref": "#/components/schemas/session.text.started"
  22725. },
  22726. {
  22727. "$ref": "#/components/schemas/session.text.delta"
  22728. },
  22729. {
  22730. "$ref": "#/components/schemas/session.text.ended"
  22731. },
  22732. {
  22733. "$ref": "#/components/schemas/session.reasoning.started"
  22734. },
  22735. {
  22736. "$ref": "#/components/schemas/session.reasoning.delta"
  22737. },
  22738. {
  22739. "$ref": "#/components/schemas/session.reasoning.ended"
  22740. },
  22741. {
  22742. "$ref": "#/components/schemas/session.tool.input.started"
  22743. },
  22744. {
  22745. "$ref": "#/components/schemas/session.tool.input.delta"
  22746. },
  22747. {
  22748. "$ref": "#/components/schemas/session.tool.input.ended"
  22749. },
  22750. {
  22751. "$ref": "#/components/schemas/session.tool.called"
  22752. },
  22753. {
  22754. "$ref": "#/components/schemas/session.tool.progress"
  22755. },
  22756. {
  22757. "$ref": "#/components/schemas/session.tool.success"
  22758. },
  22759. {
  22760. "$ref": "#/components/schemas/session.tool.failed"
  22761. },
  22762. {
  22763. "$ref": "#/components/schemas/session.retry.scheduled"
  22764. },
  22765. {
  22766. "$ref": "#/components/schemas/session.compaction.started"
  22767. },
  22768. {
  22769. "$ref": "#/components/schemas/session.compaction.delta"
  22770. },
  22771. {
  22772. "$ref": "#/components/schemas/session.compaction.ended"
  22773. },
  22774. {
  22775. "$ref": "#/components/schemas/session.compaction.failed"
  22776. },
  22777. {
  22778. "$ref": "#/components/schemas/session.revert.staged"
  22779. },
  22780. {
  22781. "$ref": "#/components/schemas/session.revert.cleared"
  22782. },
  22783. {
  22784. "$ref": "#/components/schemas/session.revert.committed"
  22785. },
  22786. {
  22787. "$ref": "#/components/schemas/filesystem.changed"
  22788. },
  22789. {
  22790. "$ref": "#/components/schemas/reference.updated"
  22791. },
  22792. {
  22793. "$ref": "#/components/schemas/permission.asked"
  22794. },
  22795. {
  22796. "$ref": "#/components/schemas/permission.replied"
  22797. },
  22798. {
  22799. "$ref": "#/components/schemas/plugin.added"
  22800. },
  22801. {
  22802. "$ref": "#/components/schemas/plugin.updated"
  22803. },
  22804. {
  22805. "$ref": "#/components/schemas/worktree.updated"
  22806. },
  22807. {
  22808. "$ref": "#/components/schemas/worktree.resolved"
  22809. },
  22810. {
  22811. "$ref": "#/components/schemas/command.updated"
  22812. },
  22813. {
  22814. "$ref": "#/components/schemas/config.updated"
  22815. },
  22816. {
  22817. "$ref": "#/components/schemas/skill.updated"
  22818. },
  22819. {
  22820. "$ref": "#/components/schemas/pty.created"
  22821. },
  22822. {
  22823. "$ref": "#/components/schemas/pty.updated"
  22824. },
  22825. {
  22826. "$ref": "#/components/schemas/pty.exited"
  22827. },
  22828. {
  22829. "$ref": "#/components/schemas/pty.deleted"
  22830. },
  22831. {
  22832. "$ref": "#/components/schemas/shell.created"
  22833. },
  22834. {
  22835. "$ref": "#/components/schemas/shell.exited"
  22836. },
  22837. {
  22838. "$ref": "#/components/schemas/shell.deleted"
  22839. },
  22840. {
  22841. "$ref": "#/components/schemas/form.created"
  22842. },
  22843. {
  22844. "$ref": "#/components/schemas/form.replied"
  22845. },
  22846. {
  22847. "$ref": "#/components/schemas/form.cancelled"
  22848. },
  22849. {
  22850. "$ref": "#/components/schemas/websearch.updated"
  22851. },
  22852. {
  22853. "$ref": "#/components/schemas/session.status"
  22854. },
  22855. {
  22856. "$ref": "#/components/schemas/session.idle"
  22857. },
  22858. {
  22859. "$ref": "#/components/schemas/tui.prompt.append"
  22860. },
  22861. {
  22862. "$ref": "#/components/schemas/tui.command.execute"
  22863. },
  22864. {
  22865. "$ref": "#/components/schemas/tui.toast.show"
  22866. },
  22867. {
  22868. "$ref": "#/components/schemas/tui.session.select"
  22869. },
  22870. {
  22871. "$ref": "#/components/schemas/installation.updated"
  22872. },
  22873. {
  22874. "$ref": "#/components/schemas/installation.update-available"
  22875. },
  22876. {
  22877. "$ref": "#/components/schemas/vcs.branch.updated"
  22878. },
  22879. {
  22880. "$ref": "#/components/schemas/mcp.status.changed"
  22881. },
  22882. {
  22883. "$ref": "#/components/schemas/mcp.resources.changed"
  22884. },
  22885. {
  22886. "$ref": "#/components/schemas/V2Event.server.connected"
  22887. }
  22888. ]
  22889. },
  22890. "V2EventJsonString": {
  22891. "type": "string",
  22892. "contentSchema": {
  22893. "$ref": "#/components/schemas/V2Event"
  22894. },
  22895. "contentMediaType": "application/json"
  22896. },
  22897. "PtyNotFoundError": {
  22898. "type": "object",
  22899. "properties": {
  22900. "_tag": {
  22901. "type": "string",
  22902. "enum": ["PtyNotFoundError"]
  22903. },
  22904. "ptyID": {
  22905. "type": "string"
  22906. },
  22907. "message": {
  22908. "type": "string"
  22909. }
  22910. },
  22911. "required": ["_tag", "ptyID", "message"],
  22912. "additionalProperties": false
  22913. },
  22914. "PtyTicket.ConnectToken": {
  22915. "type": "object",
  22916. "properties": {
  22917. "ticket": {
  22918. "type": "string"
  22919. },
  22920. "expires_in": {
  22921. "type": "integer",
  22922. "allOf": [
  22923. {
  22924. "exclusiveMinimum": 0
  22925. }
  22926. ]
  22927. }
  22928. },
  22929. "required": ["ticket", "expires_in"],
  22930. "additionalProperties": false
  22931. },
  22932. "ForbiddenError": {
  22933. "type": "object",
  22934. "properties": {
  22935. "_tag": {
  22936. "type": "string",
  22937. "enum": ["ForbiddenError"]
  22938. },
  22939. "message": {
  22940. "type": "string"
  22941. }
  22942. },
  22943. "required": ["_tag", "message"],
  22944. "additionalProperties": false
  22945. },
  22946. "Shell.Info1": {
  22947. "type": "object",
  22948. "properties": {
  22949. "id": {
  22950. "type": "string",
  22951. "allOf": [
  22952. {
  22953. "pattern": "^sh_"
  22954. }
  22955. ]
  22956. },
  22957. "status": {
  22958. "type": "string",
  22959. "enum": ["running", "exited", "timeout", "killed"]
  22960. },
  22961. "command": {
  22962. "type": "string"
  22963. },
  22964. "cwd": {
  22965. "type": "string"
  22966. },
  22967. "shell": {
  22968. "type": "string"
  22969. },
  22970. "file": {
  22971. "type": "string"
  22972. },
  22973. "pid": {
  22974. "type": "integer",
  22975. "allOf": [
  22976. {
  22977. "minimum": 0
  22978. }
  22979. ]
  22980. },
  22981. "exit": {
  22982. "type": "number"
  22983. },
  22984. "metadata": {
  22985. "type": "object"
  22986. },
  22987. "time": {
  22988. "type": "object",
  22989. "properties": {
  22990. "started": {
  22991. "type": "number"
  22992. },
  22993. "completed": {
  22994. "type": "number"
  22995. }
  22996. },
  22997. "required": ["started"],
  22998. "additionalProperties": false
  22999. }
  23000. },
  23001. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23002. "additionalProperties": false
  23003. },
  23004. "ShellNotFoundError": {
  23005. "type": "object",
  23006. "properties": {
  23007. "_tag": {
  23008. "type": "string",
  23009. "enum": ["ShellNotFoundError"]
  23010. },
  23011. "id": {
  23012. "type": "string"
  23013. },
  23014. "message": {
  23015. "type": "string"
  23016. }
  23017. },
  23018. "required": ["_tag", "id", "message"],
  23019. "additionalProperties": false
  23020. },
  23021. "Reference.LocalSource": {
  23022. "type": "object",
  23023. "properties": {
  23024. "type": {
  23025. "type": "string",
  23026. "enum": ["local"]
  23027. },
  23028. "path": {
  23029. "type": "string"
  23030. },
  23031. "description": {
  23032. "type": "string"
  23033. },
  23034. "hidden": {
  23035. "type": "boolean"
  23036. }
  23037. },
  23038. "required": ["type", "path"],
  23039. "additionalProperties": false
  23040. },
  23041. "Reference.GitSource": {
  23042. "type": "object",
  23043. "properties": {
  23044. "type": {
  23045. "type": "string",
  23046. "enum": ["git"]
  23047. },
  23048. "repository": {
  23049. "type": "string"
  23050. },
  23051. "branch": {
  23052. "type": "string"
  23053. },
  23054. "description": {
  23055. "type": "string"
  23056. },
  23057. "hidden": {
  23058. "type": "boolean"
  23059. }
  23060. },
  23061. "required": ["type", "repository"],
  23062. "additionalProperties": false
  23063. },
  23064. "Reference.Source": {
  23065. "anyOf": [
  23066. {
  23067. "$ref": "#/components/schemas/Reference.LocalSource"
  23068. },
  23069. {
  23070. "$ref": "#/components/schemas/Reference.GitSource"
  23071. }
  23072. ]
  23073. },
  23074. "Reference.Info": {
  23075. "type": "object",
  23076. "properties": {
  23077. "name": {
  23078. "type": "string"
  23079. },
  23080. "path": {
  23081. "type": "string"
  23082. },
  23083. "description": {
  23084. "type": "string"
  23085. },
  23086. "hidden": {
  23087. "type": "boolean"
  23088. },
  23089. "source": {
  23090. "$ref": "#/components/schemas/Reference.Source"
  23091. }
  23092. },
  23093. "required": ["name", "path", "source"],
  23094. "additionalProperties": false
  23095. },
  23096. "Worktree.Directory": {
  23097. "type": "object",
  23098. "properties": {
  23099. "directory": {
  23100. "type": "string"
  23101. },
  23102. "strategy": {
  23103. "type": "string"
  23104. }
  23105. },
  23106. "required": ["directory"],
  23107. "additionalProperties": false
  23108. },
  23109. "Worktree.List": {
  23110. "type": "array",
  23111. "items": {
  23112. "$ref": "#/components/schemas/Worktree.Directory"
  23113. }
  23114. },
  23115. "Worktree.Info": {
  23116. "type": "object",
  23117. "properties": {
  23118. "directory": {
  23119. "type": "string"
  23120. }
  23121. },
  23122. "required": ["directory"],
  23123. "additionalProperties": false
  23124. },
  23125. "WorktreeError": {
  23126. "type": "object",
  23127. "properties": {
  23128. "name": {
  23129. "type": "string",
  23130. "enum": ["WorktreeError"]
  23131. },
  23132. "data": {
  23133. "type": "object",
  23134. "properties": {
  23135. "message": {
  23136. "type": "string"
  23137. },
  23138. "forceRequired": {
  23139. "anyOf": [
  23140. {
  23141. "type": "boolean"
  23142. },
  23143. {
  23144. "type": "null"
  23145. }
  23146. ]
  23147. }
  23148. },
  23149. "required": ["message"],
  23150. "additionalProperties": false
  23151. }
  23152. },
  23153. "required": ["name", "data"],
  23154. "additionalProperties": false
  23155. },
  23156. "Vcs.Branch": {
  23157. "type": "object",
  23158. "properties": {
  23159. "current": {
  23160. "type": "string"
  23161. },
  23162. "default": {
  23163. "type": "string"
  23164. }
  23165. },
  23166. "additionalProperties": false
  23167. },
  23168. "Vcs.Info": {
  23169. "type": "object",
  23170. "properties": {
  23171. "branch": {
  23172. "$ref": "#/components/schemas/Vcs.Branch"
  23173. }
  23174. },
  23175. "required": ["branch"],
  23176. "additionalProperties": false
  23177. },
  23178. "Vcs.FileStatus": {
  23179. "type": "object",
  23180. "properties": {
  23181. "file": {
  23182. "type": "string"
  23183. },
  23184. "additions": {
  23185. "type": "integer",
  23186. "allOf": [
  23187. {
  23188. "minimum": 0
  23189. }
  23190. ]
  23191. },
  23192. "deletions": {
  23193. "type": "integer",
  23194. "allOf": [
  23195. {
  23196. "minimum": 0
  23197. }
  23198. ]
  23199. },
  23200. "status": {
  23201. "type": "string",
  23202. "enum": ["added", "deleted", "modified"]
  23203. }
  23204. },
  23205. "required": ["file", "additions", "deletions", "status"],
  23206. "additionalProperties": false
  23207. },
  23208. "Vcs.Mode": {
  23209. "type": "string",
  23210. "enum": ["working", "branch"]
  23211. },
  23212. "WebSearch.Provider": {
  23213. "type": "object",
  23214. "properties": {
  23215. "id": {
  23216. "type": "string"
  23217. },
  23218. "name": {
  23219. "type": "string"
  23220. }
  23221. },
  23222. "required": ["id", "name"],
  23223. "additionalProperties": false
  23224. },
  23225. "WebSearch.Result": {
  23226. "type": "object",
  23227. "properties": {
  23228. "url": {
  23229. "type": "string"
  23230. },
  23231. "title": {
  23232. "type": "string"
  23233. },
  23234. "content": {
  23235. "type": "string"
  23236. },
  23237. "time": {
  23238. "type": "object",
  23239. "properties": {
  23240. "published": {
  23241. "type": "number"
  23242. }
  23243. },
  23244. "additionalProperties": false
  23245. }
  23246. },
  23247. "required": ["url", "time"],
  23248. "additionalProperties": false
  23249. },
  23250. "WebSearch.Response": {
  23251. "type": "object",
  23252. "properties": {
  23253. "providerID": {
  23254. "type": "string"
  23255. },
  23256. "results": {
  23257. "type": "array",
  23258. "items": {
  23259. "$ref": "#/components/schemas/WebSearch.Result"
  23260. }
  23261. }
  23262. },
  23263. "required": ["providerID", "results"],
  23264. "additionalProperties": false
  23265. },
  23266. "Config.Agent": {
  23267. "type": "object",
  23268. "properties": {
  23269. "model": {
  23270. "anyOf": [
  23271. {
  23272. "type": "string",
  23273. "allOf": [
  23274. {
  23275. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23276. }
  23277. ]
  23278. },
  23279. {
  23280. "type": "object",
  23281. "properties": {
  23282. "providerID": {
  23283. "type": "string",
  23284. "allOf": [
  23285. {
  23286. "pattern": "^[^/#]+$"
  23287. }
  23288. ]
  23289. },
  23290. "model": {
  23291. "type": "string",
  23292. "allOf": [
  23293. {
  23294. "pattern": "^[^#]+$"
  23295. }
  23296. ]
  23297. },
  23298. "variant": {
  23299. "type": "string",
  23300. "allOf": [
  23301. {
  23302. "pattern": "^[^#]+$"
  23303. }
  23304. ]
  23305. }
  23306. },
  23307. "required": ["providerID", "model"],
  23308. "additionalProperties": false
  23309. }
  23310. ]
  23311. },
  23312. "request": {
  23313. "type": "object",
  23314. "properties": {
  23315. "headers": {
  23316. "type": "object",
  23317. "additionalProperties": {
  23318. "type": "string"
  23319. }
  23320. },
  23321. "body": {
  23322. "type": "object"
  23323. }
  23324. },
  23325. "additionalProperties": false
  23326. },
  23327. "system": {
  23328. "type": "string"
  23329. },
  23330. "description": {
  23331. "type": "string"
  23332. },
  23333. "mode": {
  23334. "type": "string",
  23335. "enum": ["subagent", "primary", "all"]
  23336. },
  23337. "hidden": {
  23338. "type": "boolean"
  23339. },
  23340. "color": {
  23341. "type": "string",
  23342. "allOf": [
  23343. {
  23344. "pattern": "^#[0-9a-fA-F]{6}$"
  23345. }
  23346. ]
  23347. },
  23348. "steps": {
  23349. "type": "integer",
  23350. "allOf": [
  23351. {
  23352. "exclusiveMinimum": 0
  23353. }
  23354. ]
  23355. },
  23356. "disabled": {
  23357. "type": "boolean"
  23358. },
  23359. "permissions": {
  23360. "$ref": "#/components/schemas/Permission.Ruleset"
  23361. }
  23362. },
  23363. "additionalProperties": false
  23364. },
  23365. "Config.Formatter.Entry": {
  23366. "type": "object",
  23367. "properties": {
  23368. "disabled": {
  23369. "type": "boolean"
  23370. },
  23371. "command": {
  23372. "type": "array",
  23373. "items": {
  23374. "type": "string"
  23375. }
  23376. },
  23377. "environment": {
  23378. "type": "object",
  23379. "additionalProperties": {
  23380. "type": "string"
  23381. }
  23382. },
  23383. "extensions": {
  23384. "type": "array",
  23385. "items": {
  23386. "type": "string"
  23387. }
  23388. }
  23389. },
  23390. "additionalProperties": false
  23391. },
  23392. "Config.LSP.Server": {
  23393. "type": "object",
  23394. "properties": {
  23395. "command": {
  23396. "type": "array",
  23397. "items": {
  23398. "type": "string"
  23399. }
  23400. },
  23401. "extensions": {
  23402. "type": "array",
  23403. "items": {
  23404. "type": "string"
  23405. }
  23406. },
  23407. "disabled": {
  23408. "type": "boolean"
  23409. },
  23410. "env": {
  23411. "type": "object",
  23412. "additionalProperties": {
  23413. "type": "string"
  23414. }
  23415. },
  23416. "initialization": {
  23417. "type": "object"
  23418. }
  23419. },
  23420. "required": ["command"],
  23421. "additionalProperties": false
  23422. },
  23423. "Config.Command": {
  23424. "type": "object",
  23425. "properties": {
  23426. "template": {
  23427. "type": "string"
  23428. },
  23429. "description": {
  23430. "type": "string"
  23431. },
  23432. "agent": {
  23433. "type": "string"
  23434. },
  23435. "model": {
  23436. "anyOf": [
  23437. {
  23438. "type": "string",
  23439. "allOf": [
  23440. {
  23441. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23442. }
  23443. ]
  23444. },
  23445. {
  23446. "type": "object",
  23447. "properties": {
  23448. "providerID": {
  23449. "type": "string",
  23450. "allOf": [
  23451. {
  23452. "pattern": "^[^/#]+$"
  23453. }
  23454. ]
  23455. },
  23456. "model": {
  23457. "type": "string",
  23458. "allOf": [
  23459. {
  23460. "pattern": "^[^#]+$"
  23461. }
  23462. ]
  23463. },
  23464. "variant": {
  23465. "type": "string",
  23466. "allOf": [
  23467. {
  23468. "pattern": "^[^#]+$"
  23469. }
  23470. ]
  23471. }
  23472. },
  23473. "required": ["providerID", "model"],
  23474. "additionalProperties": false
  23475. }
  23476. ]
  23477. },
  23478. "subtask": {
  23479. "type": "boolean"
  23480. }
  23481. },
  23482. "required": ["template"],
  23483. "additionalProperties": false
  23484. },
  23485. "Config.Reference.Git": {
  23486. "type": "object",
  23487. "properties": {
  23488. "repository": {
  23489. "type": "string"
  23490. },
  23491. "branch": {
  23492. "type": "string"
  23493. },
  23494. "description": {
  23495. "type": "string"
  23496. },
  23497. "hidden": {
  23498. "type": "boolean"
  23499. }
  23500. },
  23501. "required": ["repository"],
  23502. "additionalProperties": false
  23503. },
  23504. "Config.Reference.Local": {
  23505. "type": "object",
  23506. "properties": {
  23507. "path": {
  23508. "type": "string"
  23509. },
  23510. "description": {
  23511. "type": "string"
  23512. },
  23513. "hidden": {
  23514. "type": "boolean"
  23515. }
  23516. },
  23517. "required": ["path"],
  23518. "additionalProperties": false
  23519. },
  23520. "ConfigWebSearch.Info": {
  23521. "type": "object",
  23522. "properties": {
  23523. "provider": {
  23524. "anyOf": [
  23525. {
  23526. "type": "string",
  23527. "enum": ["random"]
  23528. },
  23529. {
  23530. "type": "string"
  23531. }
  23532. ]
  23533. }
  23534. },
  23535. "required": ["provider"],
  23536. "additionalProperties": false
  23537. },
  23538. "Config.Plugin.Entry": {
  23539. "type": "object",
  23540. "properties": {
  23541. "package": {
  23542. "type": "string"
  23543. },
  23544. "options": {
  23545. "type": "object"
  23546. }
  23547. },
  23548. "required": ["package"],
  23549. "additionalProperties": false
  23550. },
  23551. "Config.Warming": {
  23552. "type": "object",
  23553. "properties": {
  23554. "prompt": {
  23555. "type": "string"
  23556. },
  23557. "interval": {
  23558. "type": "string"
  23559. },
  23560. "duration": {
  23561. "type": "string"
  23562. }
  23563. },
  23564. "additionalProperties": false
  23565. },
  23566. "Config.Model.Cost": {
  23567. "type": "object",
  23568. "properties": {
  23569. "tier": {
  23570. "type": "object",
  23571. "properties": {
  23572. "type": {
  23573. "type": "string",
  23574. "enum": ["context"]
  23575. },
  23576. "size": {
  23577. "type": "integer"
  23578. }
  23579. },
  23580. "required": ["type", "size"],
  23581. "additionalProperties": false
  23582. },
  23583. "input": {
  23584. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23585. },
  23586. "output": {
  23587. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23588. },
  23589. "cache": {
  23590. "type": "object",
  23591. "properties": {
  23592. "read": {
  23593. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23594. },
  23595. "write": {
  23596. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23597. }
  23598. },
  23599. "additionalProperties": false
  23600. }
  23601. },
  23602. "required": ["input", "output"],
  23603. "additionalProperties": false
  23604. },
  23605. "Config.Model": {
  23606. "type": "object",
  23607. "properties": {
  23608. "modelID": {
  23609. "type": "string"
  23610. },
  23611. "family": {
  23612. "type": "string"
  23613. },
  23614. "name": {
  23615. "type": "string"
  23616. },
  23617. "compatibility": {
  23618. "$ref": "#/components/schemas/Model.Compatibility"
  23619. },
  23620. "package": {
  23621. "type": "string"
  23622. },
  23623. "settings": {
  23624. "type": "object"
  23625. },
  23626. "headers": {
  23627. "type": "object",
  23628. "additionalProperties": {
  23629. "type": "string"
  23630. }
  23631. },
  23632. "body": {
  23633. "type": "object"
  23634. },
  23635. "capabilities": {
  23636. "$ref": "#/components/schemas/Model.Capabilities"
  23637. },
  23638. "variants": {
  23639. "type": "array",
  23640. "items": {
  23641. "type": "object",
  23642. "properties": {
  23643. "id": {
  23644. "type": "string"
  23645. },
  23646. "settings": {
  23647. "type": "object"
  23648. },
  23649. "headers": {
  23650. "type": "object",
  23651. "additionalProperties": {
  23652. "type": "string"
  23653. }
  23654. },
  23655. "body": {
  23656. "type": "object"
  23657. }
  23658. },
  23659. "required": ["id"],
  23660. "additionalProperties": false
  23661. }
  23662. },
  23663. "cost": {
  23664. "anyOf": [
  23665. {
  23666. "$ref": "#/components/schemas/Config.Model.Cost"
  23667. },
  23668. {
  23669. "type": "array",
  23670. "items": {
  23671. "$ref": "#/components/schemas/Config.Model.Cost"
  23672. }
  23673. }
  23674. ]
  23675. },
  23676. "disabled": {
  23677. "type": "boolean"
  23678. },
  23679. "limit": {
  23680. "type": "object",
  23681. "properties": {
  23682. "context": {
  23683. "type": "integer"
  23684. },
  23685. "input": {
  23686. "type": "integer"
  23687. },
  23688. "output": {
  23689. "type": "integer"
  23690. }
  23691. },
  23692. "additionalProperties": false
  23693. }
  23694. },
  23695. "additionalProperties": false
  23696. },
  23697. "Config.Provider": {
  23698. "type": "object",
  23699. "properties": {
  23700. "name": {
  23701. "type": "string"
  23702. },
  23703. "env": {
  23704. "type": "array",
  23705. "items": {
  23706. "type": "string"
  23707. }
  23708. },
  23709. "package": {
  23710. "type": "string"
  23711. },
  23712. "settings": {
  23713. "type": "object"
  23714. },
  23715. "headers": {
  23716. "type": "object",
  23717. "additionalProperties": {
  23718. "type": "string"
  23719. }
  23720. },
  23721. "body": {
  23722. "type": "object"
  23723. },
  23724. "models": {
  23725. "type": "object",
  23726. "additionalProperties": {
  23727. "$ref": "#/components/schemas/Config.Model"
  23728. }
  23729. }
  23730. },
  23731. "additionalProperties": false
  23732. },
  23733. "Config.Info": {
  23734. "type": "object",
  23735. "properties": {
  23736. "$schema": {
  23737. "type": "string"
  23738. },
  23739. "shell": {
  23740. "type": "string"
  23741. },
  23742. "model": {
  23743. "anyOf": [
  23744. {
  23745. "type": "string",
  23746. "allOf": [
  23747. {
  23748. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23749. }
  23750. ]
  23751. },
  23752. {
  23753. "type": "object",
  23754. "properties": {
  23755. "providerID": {
  23756. "type": "string",
  23757. "allOf": [
  23758. {
  23759. "pattern": "^[^/#]+$"
  23760. }
  23761. ]
  23762. },
  23763. "model": {
  23764. "type": "string",
  23765. "allOf": [
  23766. {
  23767. "pattern": "^[^#]+$"
  23768. }
  23769. ]
  23770. },
  23771. "variant": {
  23772. "type": "string",
  23773. "allOf": [
  23774. {
  23775. "pattern": "^[^#]+$"
  23776. }
  23777. ]
  23778. }
  23779. },
  23780. "required": ["providerID", "model"],
  23781. "additionalProperties": false
  23782. }
  23783. ]
  23784. },
  23785. "default_agent": {
  23786. "type": "string"
  23787. },
  23788. "autoupdate": {
  23789. "anyOf": [
  23790. {
  23791. "type": "boolean"
  23792. },
  23793. {
  23794. "type": "string",
  23795. "enum": ["notify"]
  23796. }
  23797. ]
  23798. },
  23799. "share": {
  23800. "type": "string",
  23801. "enum": ["manual", "auto", "disabled"]
  23802. },
  23803. "enterprise": {
  23804. "type": "object",
  23805. "properties": {
  23806. "url": {
  23807. "type": "string"
  23808. }
  23809. },
  23810. "additionalProperties": false
  23811. },
  23812. "username": {
  23813. "type": "string"
  23814. },
  23815. "permissions": {
  23816. "$ref": "#/components/schemas/Permission.Ruleset"
  23817. },
  23818. "agents": {
  23819. "type": "object",
  23820. "additionalProperties": {
  23821. "$ref": "#/components/schemas/Config.Agent"
  23822. }
  23823. },
  23824. "snapshots": {
  23825. "type": "boolean"
  23826. },
  23827. "watcher": {
  23828. "type": "object",
  23829. "properties": {
  23830. "ignore": {
  23831. "type": "array",
  23832. "items": {
  23833. "type": "string"
  23834. }
  23835. }
  23836. },
  23837. "additionalProperties": false
  23838. },
  23839. "formatter": {
  23840. "anyOf": [
  23841. {
  23842. "type": "boolean"
  23843. },
  23844. {
  23845. "type": "object",
  23846. "additionalProperties": {
  23847. "$ref": "#/components/schemas/Config.Formatter.Entry"
  23848. }
  23849. }
  23850. ]
  23851. },
  23852. "lsp": {
  23853. "anyOf": [
  23854. {
  23855. "type": "boolean"
  23856. },
  23857. {
  23858. "type": "object",
  23859. "additionalProperties": {
  23860. "anyOf": [
  23861. {
  23862. "type": "object",
  23863. "properties": {
  23864. "disabled": {
  23865. "type": "boolean",
  23866. "enum": [true]
  23867. }
  23868. },
  23869. "required": ["disabled"],
  23870. "additionalProperties": false
  23871. },
  23872. {
  23873. "$ref": "#/components/schemas/Config.LSP.Server"
  23874. }
  23875. ]
  23876. }
  23877. }
  23878. ]
  23879. },
  23880. "media": {
  23881. "type": "object",
  23882. "properties": {
  23883. "image": {
  23884. "type": "object",
  23885. "properties": {
  23886. "auto_resize": {
  23887. "type": "boolean"
  23888. },
  23889. "max_width": {
  23890. "type": "integer",
  23891. "allOf": [
  23892. {
  23893. "exclusiveMinimum": 0
  23894. }
  23895. ]
  23896. },
  23897. "max_height": {
  23898. "type": "integer",
  23899. "allOf": [
  23900. {
  23901. "exclusiveMinimum": 0
  23902. }
  23903. ]
  23904. },
  23905. "max_base64_bytes": {
  23906. "type": "integer",
  23907. "allOf": [
  23908. {
  23909. "exclusiveMinimum": 0
  23910. }
  23911. ]
  23912. }
  23913. },
  23914. "additionalProperties": false
  23915. }
  23916. },
  23917. "additionalProperties": false
  23918. },
  23919. "tool_output": {
  23920. "type": "object",
  23921. "properties": {
  23922. "max_lines": {
  23923. "type": "integer",
  23924. "allOf": [
  23925. {
  23926. "exclusiveMinimum": 0
  23927. }
  23928. ]
  23929. },
  23930. "max_bytes": {
  23931. "type": "integer",
  23932. "allOf": [
  23933. {
  23934. "exclusiveMinimum": 0
  23935. }
  23936. ]
  23937. }
  23938. },
  23939. "additionalProperties": false
  23940. },
  23941. "mcp": {
  23942. "type": "object",
  23943. "properties": {
  23944. "timeout": {
  23945. "type": "object",
  23946. "properties": {
  23947. "startup": {
  23948. "type": "integer",
  23949. "allOf": [
  23950. {
  23951. "exclusiveMinimum": 0
  23952. }
  23953. ]
  23954. },
  23955. "catalog": {
  23956. "type": "integer",
  23957. "allOf": [
  23958. {
  23959. "exclusiveMinimum": 0
  23960. }
  23961. ]
  23962. },
  23963. "execution": {
  23964. "type": "integer",
  23965. "allOf": [
  23966. {
  23967. "exclusiveMinimum": 0
  23968. }
  23969. ]
  23970. }
  23971. },
  23972. "additionalProperties": false
  23973. },
  23974. "servers": {
  23975. "type": "object",
  23976. "additionalProperties": {
  23977. "anyOf": [
  23978. {
  23979. "$ref": "#/components/schemas/Mcp.LocalConfig"
  23980. },
  23981. {
  23982. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  23983. }
  23984. ]
  23985. }
  23986. }
  23987. },
  23988. "additionalProperties": false
  23989. },
  23990. "compaction": {
  23991. "type": "object",
  23992. "properties": {
  23993. "auto": {
  23994. "type": "boolean"
  23995. },
  23996. "keep": {
  23997. "type": "object",
  23998. "properties": {
  23999. "tokens": {
  24000. "type": "integer",
  24001. "allOf": [
  24002. {
  24003. "minimum": 0
  24004. }
  24005. ]
  24006. }
  24007. },
  24008. "additionalProperties": false
  24009. },
  24010. "buffer": {
  24011. "type": "integer",
  24012. "allOf": [
  24013. {
  24014. "minimum": 0
  24015. }
  24016. ]
  24017. }
  24018. },
  24019. "additionalProperties": false
  24020. },
  24021. "skills": {
  24022. "type": "array",
  24023. "items": {
  24024. "type": "string"
  24025. }
  24026. },
  24027. "commands": {
  24028. "type": "object",
  24029. "additionalProperties": {
  24030. "$ref": "#/components/schemas/Config.Command"
  24031. }
  24032. },
  24033. "instructions": {
  24034. "type": "array",
  24035. "items": {
  24036. "type": "string"
  24037. }
  24038. },
  24039. "references": {
  24040. "type": "object",
  24041. "additionalProperties": {
  24042. "anyOf": [
  24043. {
  24044. "type": "string"
  24045. },
  24046. {
  24047. "$ref": "#/components/schemas/Config.Reference.Git"
  24048. },
  24049. {
  24050. "$ref": "#/components/schemas/Config.Reference.Local"
  24051. }
  24052. ]
  24053. }
  24054. },
  24055. "websearch": {
  24056. "anyOf": [
  24057. {
  24058. "type": "boolean",
  24059. "enum": [false]
  24060. },
  24061. {
  24062. "$ref": "#/components/schemas/ConfigWebSearch.Info"
  24063. }
  24064. ]
  24065. },
  24066. "plugins": {
  24067. "type": "array",
  24068. "items": {
  24069. "anyOf": [
  24070. {
  24071. "type": "string"
  24072. },
  24073. {
  24074. "$ref": "#/components/schemas/Config.Plugin.Entry"
  24075. }
  24076. ]
  24077. }
  24078. },
  24079. "warming": {
  24080. "anyOf": [
  24081. {
  24082. "type": "boolean"
  24083. },
  24084. {
  24085. "$ref": "#/components/schemas/Config.Warming"
  24086. }
  24087. ]
  24088. },
  24089. "providers": {
  24090. "type": "object",
  24091. "additionalProperties": {
  24092. "$ref": "#/components/schemas/Config.Provider"
  24093. }
  24094. },
  24095. "experimental": {
  24096. "type": "object",
  24097. "properties": {
  24098. "portable_shell_scanner": {
  24099. "type": "boolean"
  24100. },
  24101. "subagent_depth": {
  24102. "type": "integer",
  24103. "allOf": [
  24104. {
  24105. "minimum": 0
  24106. }
  24107. ]
  24108. },
  24109. "policies": {
  24110. "type": "array",
  24111. "items": {
  24112. "type": "object",
  24113. "properties": {
  24114. "action": {
  24115. "type": "string",
  24116. "enum": ["provider.use"]
  24117. },
  24118. "resource": {
  24119. "type": "string"
  24120. },
  24121. "effect": {
  24122. "type": "string",
  24123. "enum": ["allow", "deny"]
  24124. }
  24125. },
  24126. "required": ["action", "resource", "effect"],
  24127. "additionalProperties": false
  24128. }
  24129. }
  24130. },
  24131. "additionalProperties": false
  24132. }
  24133. },
  24134. "additionalProperties": false
  24135. },
  24136. "Config.Document": {
  24137. "type": "object",
  24138. "properties": {
  24139. "type": {
  24140. "type": "string",
  24141. "enum": ["document"]
  24142. },
  24143. "path": {
  24144. "type": "string"
  24145. },
  24146. "info": {
  24147. "$ref": "#/components/schemas/Config.Info"
  24148. }
  24149. },
  24150. "required": ["type", "info"],
  24151. "additionalProperties": false
  24152. },
  24153. "Config.Directory": {
  24154. "type": "object",
  24155. "properties": {
  24156. "type": {
  24157. "type": "string",
  24158. "enum": ["directory"]
  24159. },
  24160. "path": {
  24161. "type": "string"
  24162. }
  24163. },
  24164. "required": ["type", "path"],
  24165. "additionalProperties": false
  24166. },
  24167. "Config.AgentsDirectory": {
  24168. "type": "object",
  24169. "properties": {
  24170. "type": {
  24171. "type": "string",
  24172. "enum": ["agents"]
  24173. },
  24174. "path": {
  24175. "type": "string"
  24176. }
  24177. },
  24178. "required": ["type", "path"],
  24179. "additionalProperties": false
  24180. },
  24181. "Config.ClaudeDirectory": {
  24182. "type": "object",
  24183. "properties": {
  24184. "type": {
  24185. "type": "string",
  24186. "enum": ["claude"]
  24187. },
  24188. "path": {
  24189. "type": "string"
  24190. }
  24191. },
  24192. "required": ["type", "path"],
  24193. "additionalProperties": false
  24194. },
  24195. "Config.Entry": {
  24196. "anyOf": [
  24197. {
  24198. "$ref": "#/components/schemas/Config.Document"
  24199. },
  24200. {
  24201. "$ref": "#/components/schemas/Config.Directory"
  24202. },
  24203. {
  24204. "$ref": "#/components/schemas/Config.AgentsDirectory"
  24205. },
  24206. {
  24207. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  24208. }
  24209. ]
  24210. }
  24211. },
  24212. "securitySchemes": {}
  24213. },
  24214. "security": [],
  24215. "tags": [
  24216. {
  24217. "name": "health"
  24218. },
  24219. {
  24220. "name": "server"
  24221. },
  24222. {
  24223. "name": "location"
  24224. },
  24225. {
  24226. "name": "agent"
  24227. },
  24228. {
  24229. "name": "plugin",
  24230. "description": "Experimental plugin routes."
  24231. },
  24232. {
  24233. "name": "session",
  24234. "description": "Experimental session routes."
  24235. },
  24236. {
  24237. "name": "session",
  24238. "description": "Experimental message routes."
  24239. },
  24240. {
  24241. "name": "model",
  24242. "description": "Experimental model routes."
  24243. },
  24244. {
  24245. "name": "generate",
  24246. "description": "Experimental one-shot generation routes."
  24247. },
  24248. {
  24249. "name": "provider",
  24250. "description": "Experimental provider routes."
  24251. },
  24252. {
  24253. "name": "integration",
  24254. "description": "Integration discovery and authentication routes."
  24255. },
  24256. {
  24257. "name": "mcp",
  24258. "description": "MCP server and resource routes."
  24259. },
  24260. {
  24261. "name": "credential"
  24262. },
  24263. {
  24264. "name": "project",
  24265. "description": "Project routes."
  24266. },
  24267. {
  24268. "name": "form",
  24269. "description": "Session form routes."
  24270. },
  24271. {
  24272. "name": "permission",
  24273. "description": "Experimental permission routes."
  24274. },
  24275. {
  24276. "name": "filesystem",
  24277. "description": "Experimental location-scoped filesystem routes."
  24278. },
  24279. {
  24280. "name": "command",
  24281. "description": "Experimental command routes."
  24282. },
  24283. {
  24284. "name": "skill",
  24285. "description": "Experimental skill routes."
  24286. },
  24287. {
  24288. "name": "event",
  24289. "description": "Experimental event stream routes."
  24290. },
  24291. {
  24292. "name": "pty",
  24293. "description": "Experimental location-scoped PTY routes."
  24294. },
  24295. {
  24296. "name": "shell",
  24297. "description": "Experimental location-scoped shell command routes."
  24298. },
  24299. {
  24300. "name": "reference",
  24301. "description": "Location-scoped project references."
  24302. },
  24303. {
  24304. "name": "worktree",
  24305. "description": "Project worktree management routes."
  24306. },
  24307. {
  24308. "name": "vcs",
  24309. "description": "Location-scoped version control routes."
  24310. },
  24311. {
  24312. "name": "debug"
  24313. },
  24314. {
  24315. "name": "migration"
  24316. },
  24317. {
  24318. "name": "websearch",
  24319. "description": "Location-scoped web search routes."
  24320. },
  24321. {
  24322. "name": "config",
  24323. "description": "Location-scoped configuration routes."
  24324. }
  24325. ]
  24326. }