openapi.json 644 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327
  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 pending steering input while queued work remains parked.",
  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. "activation": {
  17732. "type": "string",
  17733. "enum": ["auto", "enabled", "disabled"]
  17734. },
  17735. "package": {
  17736. "type": "string"
  17737. },
  17738. "settings": {
  17739. "type": "object"
  17740. },
  17741. "headers": {
  17742. "type": "object",
  17743. "additionalProperties": {
  17744. "type": "string"
  17745. }
  17746. },
  17747. "body": {
  17748. "type": "object"
  17749. }
  17750. },
  17751. "required": ["id", "name", "activation", "package"],
  17752. "additionalProperties": false
  17753. },
  17754. "ProviderNotFoundError": {
  17755. "type": "object",
  17756. "properties": {
  17757. "_tag": {
  17758. "type": "string",
  17759. "enum": ["ProviderNotFoundError"]
  17760. },
  17761. "providerID": {
  17762. "type": "string"
  17763. },
  17764. "message": {
  17765. "type": "string"
  17766. }
  17767. },
  17768. "required": ["_tag", "providerID", "message"],
  17769. "additionalProperties": false
  17770. },
  17771. "Form.When": {
  17772. "type": "object",
  17773. "properties": {
  17774. "key": {
  17775. "type": "string"
  17776. },
  17777. "op": {
  17778. "type": "string",
  17779. "enum": ["eq", "neq"]
  17780. },
  17781. "value": {
  17782. "anyOf": [
  17783. {
  17784. "type": "string"
  17785. },
  17786. {
  17787. "anyOf": [
  17788. {
  17789. "anyOf": [
  17790. {
  17791. "type": "number"
  17792. },
  17793. {
  17794. "type": "string",
  17795. "enum": ["NaN"]
  17796. },
  17797. {
  17798. "type": "string",
  17799. "enum": ["Infinity"]
  17800. },
  17801. {
  17802. "type": "string",
  17803. "enum": ["-Infinity"]
  17804. }
  17805. ]
  17806. },
  17807. {
  17808. "type": "string",
  17809. "enum": ["Infinity", "-Infinity", "NaN"]
  17810. }
  17811. ]
  17812. },
  17813. {
  17814. "type": "boolean"
  17815. }
  17816. ]
  17817. }
  17818. },
  17819. "required": ["key", "op", "value"],
  17820. "additionalProperties": false
  17821. },
  17822. "Form.Option": {
  17823. "type": "object",
  17824. "properties": {
  17825. "value": {
  17826. "type": "string"
  17827. },
  17828. "label": {
  17829. "type": "string"
  17830. },
  17831. "description": {
  17832. "type": "string"
  17833. }
  17834. },
  17835. "required": ["value", "label"],
  17836. "additionalProperties": false
  17837. },
  17838. "Form.StringField": {
  17839. "type": "object",
  17840. "properties": {
  17841. "key": {
  17842. "type": "string"
  17843. },
  17844. "title": {
  17845. "type": "string"
  17846. },
  17847. "description": {
  17848. "type": "string"
  17849. },
  17850. "required": {
  17851. "type": "boolean"
  17852. },
  17853. "when": {
  17854. "type": "array",
  17855. "items": {
  17856. "$ref": "#/components/schemas/Form.When"
  17857. }
  17858. },
  17859. "type": {
  17860. "type": "string",
  17861. "enum": ["string"]
  17862. },
  17863. "format": {
  17864. "type": "string",
  17865. "enum": ["email", "uri", "date", "date-time"]
  17866. },
  17867. "minLength": {
  17868. "type": "integer",
  17869. "allOf": [
  17870. {
  17871. "minimum": 0
  17872. }
  17873. ]
  17874. },
  17875. "maxLength": {
  17876. "type": "integer",
  17877. "allOf": [
  17878. {
  17879. "minimum": 0
  17880. }
  17881. ]
  17882. },
  17883. "pattern": {
  17884. "type": "string"
  17885. },
  17886. "placeholder": {
  17887. "type": "string"
  17888. },
  17889. "default": {
  17890. "type": "string"
  17891. },
  17892. "options": {
  17893. "type": "array",
  17894. "items": {
  17895. "$ref": "#/components/schemas/Form.Option"
  17896. }
  17897. },
  17898. "custom": {
  17899. "type": "boolean"
  17900. }
  17901. },
  17902. "required": ["key", "type"],
  17903. "additionalProperties": false
  17904. },
  17905. "Form.NumberField": {
  17906. "type": "object",
  17907. "properties": {
  17908. "key": {
  17909. "type": "string"
  17910. },
  17911. "title": {
  17912. "type": "string"
  17913. },
  17914. "description": {
  17915. "type": "string"
  17916. },
  17917. "required": {
  17918. "type": "boolean"
  17919. },
  17920. "when": {
  17921. "type": "array",
  17922. "items": {
  17923. "$ref": "#/components/schemas/Form.When"
  17924. }
  17925. },
  17926. "type": {
  17927. "type": "string",
  17928. "enum": ["number"]
  17929. },
  17930. "minimum": {
  17931. "anyOf": [
  17932. {
  17933. "anyOf": [
  17934. {
  17935. "type": "number"
  17936. },
  17937. {
  17938. "type": "string",
  17939. "enum": ["NaN"]
  17940. },
  17941. {
  17942. "type": "string",
  17943. "enum": ["Infinity"]
  17944. },
  17945. {
  17946. "type": "string",
  17947. "enum": ["-Infinity"]
  17948. }
  17949. ]
  17950. },
  17951. {
  17952. "type": "string",
  17953. "enum": ["Infinity", "-Infinity", "NaN"]
  17954. }
  17955. ]
  17956. },
  17957. "maximum": {
  17958. "anyOf": [
  17959. {
  17960. "anyOf": [
  17961. {
  17962. "type": "number"
  17963. },
  17964. {
  17965. "type": "string",
  17966. "enum": ["NaN"]
  17967. },
  17968. {
  17969. "type": "string",
  17970. "enum": ["Infinity"]
  17971. },
  17972. {
  17973. "type": "string",
  17974. "enum": ["-Infinity"]
  17975. }
  17976. ]
  17977. },
  17978. {
  17979. "type": "string",
  17980. "enum": ["Infinity", "-Infinity", "NaN"]
  17981. }
  17982. ]
  17983. },
  17984. "default": {
  17985. "anyOf": [
  17986. {
  17987. "anyOf": [
  17988. {
  17989. "type": "number"
  17990. },
  17991. {
  17992. "type": "string",
  17993. "enum": ["NaN"]
  17994. },
  17995. {
  17996. "type": "string",
  17997. "enum": ["Infinity"]
  17998. },
  17999. {
  18000. "type": "string",
  18001. "enum": ["-Infinity"]
  18002. }
  18003. ]
  18004. },
  18005. {
  18006. "type": "string",
  18007. "enum": ["Infinity", "-Infinity", "NaN"]
  18008. }
  18009. ]
  18010. }
  18011. },
  18012. "required": ["key", "type"],
  18013. "additionalProperties": false
  18014. },
  18015. "Form.IntegerField": {
  18016. "type": "object",
  18017. "properties": {
  18018. "key": {
  18019. "type": "string"
  18020. },
  18021. "title": {
  18022. "type": "string"
  18023. },
  18024. "description": {
  18025. "type": "string"
  18026. },
  18027. "required": {
  18028. "type": "boolean"
  18029. },
  18030. "when": {
  18031. "type": "array",
  18032. "items": {
  18033. "$ref": "#/components/schemas/Form.When"
  18034. }
  18035. },
  18036. "type": {
  18037. "type": "string",
  18038. "enum": ["integer"]
  18039. },
  18040. "minimum": {
  18041. "anyOf": [
  18042. {
  18043. "anyOf": [
  18044. {
  18045. "type": "number"
  18046. },
  18047. {
  18048. "type": "string",
  18049. "enum": ["NaN"]
  18050. },
  18051. {
  18052. "type": "string",
  18053. "enum": ["Infinity"]
  18054. },
  18055. {
  18056. "type": "string",
  18057. "enum": ["-Infinity"]
  18058. }
  18059. ]
  18060. },
  18061. {
  18062. "type": "string",
  18063. "enum": ["Infinity", "-Infinity", "NaN"]
  18064. }
  18065. ]
  18066. },
  18067. "maximum": {
  18068. "anyOf": [
  18069. {
  18070. "anyOf": [
  18071. {
  18072. "type": "number"
  18073. },
  18074. {
  18075. "type": "string",
  18076. "enum": ["NaN"]
  18077. },
  18078. {
  18079. "type": "string",
  18080. "enum": ["Infinity"]
  18081. },
  18082. {
  18083. "type": "string",
  18084. "enum": ["-Infinity"]
  18085. }
  18086. ]
  18087. },
  18088. {
  18089. "type": "string",
  18090. "enum": ["Infinity", "-Infinity", "NaN"]
  18091. }
  18092. ]
  18093. },
  18094. "default": {
  18095. "anyOf": [
  18096. {
  18097. "anyOf": [
  18098. {
  18099. "type": "number"
  18100. },
  18101. {
  18102. "type": "string",
  18103. "enum": ["NaN"]
  18104. },
  18105. {
  18106. "type": "string",
  18107. "enum": ["Infinity"]
  18108. },
  18109. {
  18110. "type": "string",
  18111. "enum": ["-Infinity"]
  18112. }
  18113. ]
  18114. },
  18115. {
  18116. "type": "string",
  18117. "enum": ["Infinity", "-Infinity", "NaN"]
  18118. }
  18119. ]
  18120. }
  18121. },
  18122. "required": ["key", "type"],
  18123. "additionalProperties": false
  18124. },
  18125. "Form.BooleanField": {
  18126. "type": "object",
  18127. "properties": {
  18128. "key": {
  18129. "type": "string"
  18130. },
  18131. "title": {
  18132. "type": "string"
  18133. },
  18134. "description": {
  18135. "type": "string"
  18136. },
  18137. "required": {
  18138. "type": "boolean"
  18139. },
  18140. "when": {
  18141. "type": "array",
  18142. "items": {
  18143. "$ref": "#/components/schemas/Form.When"
  18144. }
  18145. },
  18146. "type": {
  18147. "type": "string",
  18148. "enum": ["boolean"]
  18149. },
  18150. "default": {
  18151. "type": "boolean"
  18152. }
  18153. },
  18154. "required": ["key", "type"],
  18155. "additionalProperties": false
  18156. },
  18157. "Form.MultiselectField": {
  18158. "type": "object",
  18159. "properties": {
  18160. "key": {
  18161. "type": "string"
  18162. },
  18163. "title": {
  18164. "type": "string"
  18165. },
  18166. "description": {
  18167. "type": "string"
  18168. },
  18169. "required": {
  18170. "type": "boolean"
  18171. },
  18172. "when": {
  18173. "type": "array",
  18174. "items": {
  18175. "$ref": "#/components/schemas/Form.When"
  18176. }
  18177. },
  18178. "type": {
  18179. "type": "string",
  18180. "enum": ["multiselect"]
  18181. },
  18182. "options": {
  18183. "type": "array",
  18184. "items": {
  18185. "$ref": "#/components/schemas/Form.Option"
  18186. }
  18187. },
  18188. "minItems": {
  18189. "type": "integer",
  18190. "allOf": [
  18191. {
  18192. "minimum": 0
  18193. }
  18194. ]
  18195. },
  18196. "maxItems": {
  18197. "type": "integer",
  18198. "allOf": [
  18199. {
  18200. "minimum": 0
  18201. }
  18202. ]
  18203. },
  18204. "custom": {
  18205. "type": "boolean"
  18206. },
  18207. "default": {
  18208. "type": "array",
  18209. "items": {
  18210. "type": "string"
  18211. }
  18212. }
  18213. },
  18214. "required": ["key", "type", "options"],
  18215. "additionalProperties": false
  18216. },
  18217. "Form.ExternalField": {
  18218. "type": "object",
  18219. "properties": {
  18220. "key": {
  18221. "type": "string"
  18222. },
  18223. "type": {
  18224. "type": "string",
  18225. "enum": ["external"]
  18226. },
  18227. "url": {
  18228. "type": "string"
  18229. },
  18230. "title": {
  18231. "type": "string"
  18232. },
  18233. "description": {
  18234. "type": "string"
  18235. }
  18236. },
  18237. "required": ["key", "type", "url"],
  18238. "additionalProperties": false
  18239. },
  18240. "Form.Field": {
  18241. "anyOf": [
  18242. {
  18243. "$ref": "#/components/schemas/Form.StringField"
  18244. },
  18245. {
  18246. "$ref": "#/components/schemas/Form.NumberField"
  18247. },
  18248. {
  18249. "$ref": "#/components/schemas/Form.IntegerField"
  18250. },
  18251. {
  18252. "$ref": "#/components/schemas/Form.BooleanField"
  18253. },
  18254. {
  18255. "$ref": "#/components/schemas/Form.MultiselectField"
  18256. },
  18257. {
  18258. "$ref": "#/components/schemas/Form.ExternalField"
  18259. }
  18260. ]
  18261. },
  18262. "Form.Fields": {
  18263. "type": "array",
  18264. "prefixItems": [
  18265. {
  18266. "$ref": "#/components/schemas/Form.Field"
  18267. }
  18268. ],
  18269. "minItems": 1,
  18270. "items": {
  18271. "$ref": "#/components/schemas/Form.Field"
  18272. }
  18273. },
  18274. "Integration.OAuthMethod": {
  18275. "type": "object",
  18276. "properties": {
  18277. "id": {
  18278. "type": "string"
  18279. },
  18280. "type": {
  18281. "type": "string",
  18282. "enum": ["oauth"]
  18283. },
  18284. "label": {
  18285. "type": "string"
  18286. },
  18287. "form": {
  18288. "$ref": "#/components/schemas/Form.Fields"
  18289. }
  18290. },
  18291. "required": ["id", "type", "label"],
  18292. "additionalProperties": false
  18293. },
  18294. "Integration.CommandMethod": {
  18295. "type": "object",
  18296. "properties": {
  18297. "id": {
  18298. "type": "string"
  18299. },
  18300. "type": {
  18301. "type": "string",
  18302. "enum": ["command"]
  18303. },
  18304. "label": {
  18305. "type": "string"
  18306. },
  18307. "command": {
  18308. "type": "array",
  18309. "items": {
  18310. "type": "string"
  18311. }
  18312. }
  18313. },
  18314. "required": ["id", "type", "label", "command"],
  18315. "additionalProperties": false
  18316. },
  18317. "Integration.KeyMethod": {
  18318. "type": "object",
  18319. "properties": {
  18320. "type": {
  18321. "type": "string",
  18322. "enum": ["key"]
  18323. },
  18324. "label": {
  18325. "type": "string"
  18326. },
  18327. "form": {
  18328. "$ref": "#/components/schemas/Form.Fields"
  18329. }
  18330. },
  18331. "required": ["type"],
  18332. "additionalProperties": false
  18333. },
  18334. "Integration.EnvMethod": {
  18335. "type": "object",
  18336. "properties": {
  18337. "type": {
  18338. "type": "string",
  18339. "enum": ["env"]
  18340. },
  18341. "names": {
  18342. "type": "array",
  18343. "items": {
  18344. "type": "string"
  18345. }
  18346. }
  18347. },
  18348. "required": ["type", "names"],
  18349. "additionalProperties": false
  18350. },
  18351. "Integration.Method": {
  18352. "anyOf": [
  18353. {
  18354. "$ref": "#/components/schemas/Integration.OAuthMethod"
  18355. },
  18356. {
  18357. "$ref": "#/components/schemas/Integration.CommandMethod"
  18358. },
  18359. {
  18360. "$ref": "#/components/schemas/Integration.KeyMethod"
  18361. },
  18362. {
  18363. "$ref": "#/components/schemas/Integration.EnvMethod"
  18364. }
  18365. ]
  18366. },
  18367. "Connection.CredentialInfo": {
  18368. "type": "object",
  18369. "properties": {
  18370. "type": {
  18371. "type": "string",
  18372. "enum": ["credential"]
  18373. },
  18374. "id": {
  18375. "type": "string"
  18376. },
  18377. "label": {
  18378. "type": "string"
  18379. }
  18380. },
  18381. "required": ["type", "id", "label"],
  18382. "additionalProperties": false
  18383. },
  18384. "Connection.EnvInfo": {
  18385. "type": "object",
  18386. "properties": {
  18387. "type": {
  18388. "type": "string",
  18389. "enum": ["env"]
  18390. },
  18391. "name": {
  18392. "type": "string"
  18393. }
  18394. },
  18395. "required": ["type", "name"],
  18396. "additionalProperties": false
  18397. },
  18398. "Connection.Info": {
  18399. "anyOf": [
  18400. {
  18401. "$ref": "#/components/schemas/Connection.CredentialInfo"
  18402. },
  18403. {
  18404. "$ref": "#/components/schemas/Connection.EnvInfo"
  18405. }
  18406. ]
  18407. },
  18408. "Integration.Info": {
  18409. "type": "object",
  18410. "properties": {
  18411. "id": {
  18412. "type": "string"
  18413. },
  18414. "name": {
  18415. "type": "string"
  18416. },
  18417. "methods": {
  18418. "type": "array",
  18419. "items": {
  18420. "$ref": "#/components/schemas/Integration.Method"
  18421. }
  18422. },
  18423. "connections": {
  18424. "type": "array",
  18425. "items": {
  18426. "$ref": "#/components/schemas/Connection.Info"
  18427. }
  18428. }
  18429. },
  18430. "required": ["id", "name", "methods", "connections"],
  18431. "additionalProperties": false
  18432. },
  18433. "Form.Value": {
  18434. "anyOf": [
  18435. {
  18436. "type": "string"
  18437. },
  18438. {
  18439. "anyOf": [
  18440. {
  18441. "anyOf": [
  18442. {
  18443. "type": "number"
  18444. },
  18445. {
  18446. "type": "string",
  18447. "enum": ["NaN"]
  18448. },
  18449. {
  18450. "type": "string",
  18451. "enum": ["Infinity"]
  18452. },
  18453. {
  18454. "type": "string",
  18455. "enum": ["-Infinity"]
  18456. }
  18457. ]
  18458. },
  18459. {
  18460. "type": "string",
  18461. "enum": ["Infinity", "-Infinity", "NaN"]
  18462. }
  18463. ]
  18464. },
  18465. {
  18466. "type": "boolean"
  18467. },
  18468. {
  18469. "type": "array",
  18470. "items": {
  18471. "type": "string"
  18472. }
  18473. }
  18474. ]
  18475. },
  18476. "Form.Answer": {
  18477. "type": "object",
  18478. "additionalProperties": {
  18479. "$ref": "#/components/schemas/Form.Value"
  18480. }
  18481. },
  18482. "Integration.Attempt": {
  18483. "type": "object",
  18484. "properties": {
  18485. "attemptID": {
  18486. "type": "string"
  18487. },
  18488. "url": {
  18489. "type": "string"
  18490. },
  18491. "instructions": {
  18492. "type": "string"
  18493. },
  18494. "mode": {
  18495. "type": "string",
  18496. "enum": ["auto", "code"]
  18497. },
  18498. "time": {
  18499. "type": "object",
  18500. "properties": {
  18501. "created": {
  18502. "anyOf": [
  18503. {
  18504. "anyOf": [
  18505. {
  18506. "type": "number"
  18507. },
  18508. {
  18509. "type": "string",
  18510. "enum": ["NaN"]
  18511. },
  18512. {
  18513. "type": "string",
  18514. "enum": ["Infinity"]
  18515. },
  18516. {
  18517. "type": "string",
  18518. "enum": ["-Infinity"]
  18519. }
  18520. ]
  18521. },
  18522. {
  18523. "type": "string",
  18524. "enum": ["Infinity", "-Infinity", "NaN"]
  18525. }
  18526. ]
  18527. },
  18528. "expires": {
  18529. "anyOf": [
  18530. {
  18531. "anyOf": [
  18532. {
  18533. "type": "number"
  18534. },
  18535. {
  18536. "type": "string",
  18537. "enum": ["NaN"]
  18538. },
  18539. {
  18540. "type": "string",
  18541. "enum": ["Infinity"]
  18542. },
  18543. {
  18544. "type": "string",
  18545. "enum": ["-Infinity"]
  18546. }
  18547. ]
  18548. },
  18549. {
  18550. "type": "string",
  18551. "enum": ["Infinity", "-Infinity", "NaN"]
  18552. }
  18553. ]
  18554. }
  18555. },
  18556. "required": ["created", "expires"],
  18557. "additionalProperties": false
  18558. }
  18559. },
  18560. "required": ["attemptID", "url", "instructions", "mode", "time"],
  18561. "additionalProperties": false
  18562. },
  18563. "Integration.AttemptStatus": {
  18564. "anyOf": [
  18565. {
  18566. "type": "object",
  18567. "properties": {
  18568. "status": {
  18569. "type": "string",
  18570. "enum": ["pending"]
  18571. },
  18572. "time": {
  18573. "type": "object",
  18574. "properties": {
  18575. "created": {
  18576. "anyOf": [
  18577. {
  18578. "anyOf": [
  18579. {
  18580. "type": "number"
  18581. },
  18582. {
  18583. "type": "string",
  18584. "enum": ["NaN"]
  18585. },
  18586. {
  18587. "type": "string",
  18588. "enum": ["Infinity"]
  18589. },
  18590. {
  18591. "type": "string",
  18592. "enum": ["-Infinity"]
  18593. }
  18594. ]
  18595. },
  18596. {
  18597. "type": "string",
  18598. "enum": ["Infinity", "-Infinity", "NaN"]
  18599. }
  18600. ]
  18601. },
  18602. "expires": {
  18603. "anyOf": [
  18604. {
  18605. "anyOf": [
  18606. {
  18607. "type": "number"
  18608. },
  18609. {
  18610. "type": "string",
  18611. "enum": ["NaN"]
  18612. },
  18613. {
  18614. "type": "string",
  18615. "enum": ["Infinity"]
  18616. },
  18617. {
  18618. "type": "string",
  18619. "enum": ["-Infinity"]
  18620. }
  18621. ]
  18622. },
  18623. {
  18624. "type": "string",
  18625. "enum": ["Infinity", "-Infinity", "NaN"]
  18626. }
  18627. ]
  18628. }
  18629. },
  18630. "required": ["created", "expires"],
  18631. "additionalProperties": false
  18632. }
  18633. },
  18634. "required": ["status", "time"],
  18635. "additionalProperties": false
  18636. },
  18637. {
  18638. "type": "object",
  18639. "properties": {
  18640. "status": {
  18641. "type": "string",
  18642. "enum": ["complete"]
  18643. },
  18644. "time": {
  18645. "type": "object",
  18646. "properties": {
  18647. "created": {
  18648. "anyOf": [
  18649. {
  18650. "anyOf": [
  18651. {
  18652. "type": "number"
  18653. },
  18654. {
  18655. "type": "string",
  18656. "enum": ["NaN"]
  18657. },
  18658. {
  18659. "type": "string",
  18660. "enum": ["Infinity"]
  18661. },
  18662. {
  18663. "type": "string",
  18664. "enum": ["-Infinity"]
  18665. }
  18666. ]
  18667. },
  18668. {
  18669. "type": "string",
  18670. "enum": ["Infinity", "-Infinity", "NaN"]
  18671. }
  18672. ]
  18673. },
  18674. "expires": {
  18675. "anyOf": [
  18676. {
  18677. "anyOf": [
  18678. {
  18679. "type": "number"
  18680. },
  18681. {
  18682. "type": "string",
  18683. "enum": ["NaN"]
  18684. },
  18685. {
  18686. "type": "string",
  18687. "enum": ["Infinity"]
  18688. },
  18689. {
  18690. "type": "string",
  18691. "enum": ["-Infinity"]
  18692. }
  18693. ]
  18694. },
  18695. {
  18696. "type": "string",
  18697. "enum": ["Infinity", "-Infinity", "NaN"]
  18698. }
  18699. ]
  18700. }
  18701. },
  18702. "required": ["created", "expires"],
  18703. "additionalProperties": false
  18704. }
  18705. },
  18706. "required": ["status", "time"],
  18707. "additionalProperties": false
  18708. },
  18709. {
  18710. "type": "object",
  18711. "properties": {
  18712. "status": {
  18713. "type": "string",
  18714. "enum": ["failed"]
  18715. },
  18716. "message": {
  18717. "type": "string"
  18718. },
  18719. "time": {
  18720. "type": "object",
  18721. "properties": {
  18722. "created": {
  18723. "anyOf": [
  18724. {
  18725. "anyOf": [
  18726. {
  18727. "type": "number"
  18728. },
  18729. {
  18730. "type": "string",
  18731. "enum": ["NaN"]
  18732. },
  18733. {
  18734. "type": "string",
  18735. "enum": ["Infinity"]
  18736. },
  18737. {
  18738. "type": "string",
  18739. "enum": ["-Infinity"]
  18740. }
  18741. ]
  18742. },
  18743. {
  18744. "type": "string",
  18745. "enum": ["Infinity", "-Infinity", "NaN"]
  18746. }
  18747. ]
  18748. },
  18749. "expires": {
  18750. "anyOf": [
  18751. {
  18752. "anyOf": [
  18753. {
  18754. "type": "number"
  18755. },
  18756. {
  18757. "type": "string",
  18758. "enum": ["NaN"]
  18759. },
  18760. {
  18761. "type": "string",
  18762. "enum": ["Infinity"]
  18763. },
  18764. {
  18765. "type": "string",
  18766. "enum": ["-Infinity"]
  18767. }
  18768. ]
  18769. },
  18770. {
  18771. "type": "string",
  18772. "enum": ["Infinity", "-Infinity", "NaN"]
  18773. }
  18774. ]
  18775. }
  18776. },
  18777. "required": ["created", "expires"],
  18778. "additionalProperties": false
  18779. }
  18780. },
  18781. "required": ["status", "message", "time"],
  18782. "additionalProperties": false
  18783. },
  18784. {
  18785. "type": "object",
  18786. "properties": {
  18787. "status": {
  18788. "type": "string",
  18789. "enum": ["expired"]
  18790. },
  18791. "time": {
  18792. "type": "object",
  18793. "properties": {
  18794. "created": {
  18795. "anyOf": [
  18796. {
  18797. "anyOf": [
  18798. {
  18799. "type": "number"
  18800. },
  18801. {
  18802. "type": "string",
  18803. "enum": ["NaN"]
  18804. },
  18805. {
  18806. "type": "string",
  18807. "enum": ["Infinity"]
  18808. },
  18809. {
  18810. "type": "string",
  18811. "enum": ["-Infinity"]
  18812. }
  18813. ]
  18814. },
  18815. {
  18816. "type": "string",
  18817. "enum": ["Infinity", "-Infinity", "NaN"]
  18818. }
  18819. ]
  18820. },
  18821. "expires": {
  18822. "anyOf": [
  18823. {
  18824. "anyOf": [
  18825. {
  18826. "type": "number"
  18827. },
  18828. {
  18829. "type": "string",
  18830. "enum": ["NaN"]
  18831. },
  18832. {
  18833. "type": "string",
  18834. "enum": ["Infinity"]
  18835. },
  18836. {
  18837. "type": "string",
  18838. "enum": ["-Infinity"]
  18839. }
  18840. ]
  18841. },
  18842. {
  18843. "type": "string",
  18844. "enum": ["Infinity", "-Infinity", "NaN"]
  18845. }
  18846. ]
  18847. }
  18848. },
  18849. "required": ["created", "expires"],
  18850. "additionalProperties": false
  18851. }
  18852. },
  18853. "required": ["status", "time"],
  18854. "additionalProperties": false
  18855. }
  18856. ]
  18857. },
  18858. "Integration.CommandAttempt": {
  18859. "type": "object",
  18860. "properties": {
  18861. "attemptID": {
  18862. "type": "string"
  18863. },
  18864. "time": {
  18865. "type": "object",
  18866. "properties": {
  18867. "created": {
  18868. "anyOf": [
  18869. {
  18870. "anyOf": [
  18871. {
  18872. "type": "number"
  18873. },
  18874. {
  18875. "type": "string",
  18876. "enum": ["NaN"]
  18877. },
  18878. {
  18879. "type": "string",
  18880. "enum": ["Infinity"]
  18881. },
  18882. {
  18883. "type": "string",
  18884. "enum": ["-Infinity"]
  18885. }
  18886. ]
  18887. },
  18888. {
  18889. "type": "string",
  18890. "enum": ["Infinity", "-Infinity", "NaN"]
  18891. }
  18892. ]
  18893. },
  18894. "expires": {
  18895. "anyOf": [
  18896. {
  18897. "anyOf": [
  18898. {
  18899. "type": "number"
  18900. },
  18901. {
  18902. "type": "string",
  18903. "enum": ["NaN"]
  18904. },
  18905. {
  18906. "type": "string",
  18907. "enum": ["Infinity"]
  18908. },
  18909. {
  18910. "type": "string",
  18911. "enum": ["-Infinity"]
  18912. }
  18913. ]
  18914. },
  18915. {
  18916. "type": "string",
  18917. "enum": ["Infinity", "-Infinity", "NaN"]
  18918. }
  18919. ]
  18920. }
  18921. },
  18922. "required": ["created", "expires"],
  18923. "additionalProperties": false
  18924. }
  18925. },
  18926. "required": ["attemptID", "time"],
  18927. "additionalProperties": false
  18928. },
  18929. "Integration.CommandAttemptStatus": {
  18930. "anyOf": [
  18931. {
  18932. "type": "object",
  18933. "properties": {
  18934. "status": {
  18935. "type": "string",
  18936. "enum": ["pending"]
  18937. },
  18938. "message": {
  18939. "type": "string"
  18940. },
  18941. "time": {
  18942. "type": "object",
  18943. "properties": {
  18944. "created": {
  18945. "anyOf": [
  18946. {
  18947. "anyOf": [
  18948. {
  18949. "type": "number"
  18950. },
  18951. {
  18952. "type": "string",
  18953. "enum": ["NaN"]
  18954. },
  18955. {
  18956. "type": "string",
  18957. "enum": ["Infinity"]
  18958. },
  18959. {
  18960. "type": "string",
  18961. "enum": ["-Infinity"]
  18962. }
  18963. ]
  18964. },
  18965. {
  18966. "type": "string",
  18967. "enum": ["Infinity", "-Infinity", "NaN"]
  18968. }
  18969. ]
  18970. },
  18971. "expires": {
  18972. "anyOf": [
  18973. {
  18974. "anyOf": [
  18975. {
  18976. "type": "number"
  18977. },
  18978. {
  18979. "type": "string",
  18980. "enum": ["NaN"]
  18981. },
  18982. {
  18983. "type": "string",
  18984. "enum": ["Infinity"]
  18985. },
  18986. {
  18987. "type": "string",
  18988. "enum": ["-Infinity"]
  18989. }
  18990. ]
  18991. },
  18992. {
  18993. "type": "string",
  18994. "enum": ["Infinity", "-Infinity", "NaN"]
  18995. }
  18996. ]
  18997. }
  18998. },
  18999. "required": ["created", "expires"],
  19000. "additionalProperties": false
  19001. }
  19002. },
  19003. "required": ["status", "time"],
  19004. "additionalProperties": false
  19005. },
  19006. {
  19007. "type": "object",
  19008. "properties": {
  19009. "status": {
  19010. "type": "string",
  19011. "enum": ["complete"]
  19012. },
  19013. "time": {
  19014. "type": "object",
  19015. "properties": {
  19016. "created": {
  19017. "anyOf": [
  19018. {
  19019. "anyOf": [
  19020. {
  19021. "type": "number"
  19022. },
  19023. {
  19024. "type": "string",
  19025. "enum": ["NaN"]
  19026. },
  19027. {
  19028. "type": "string",
  19029. "enum": ["Infinity"]
  19030. },
  19031. {
  19032. "type": "string",
  19033. "enum": ["-Infinity"]
  19034. }
  19035. ]
  19036. },
  19037. {
  19038. "type": "string",
  19039. "enum": ["Infinity", "-Infinity", "NaN"]
  19040. }
  19041. ]
  19042. },
  19043. "expires": {
  19044. "anyOf": [
  19045. {
  19046. "anyOf": [
  19047. {
  19048. "type": "number"
  19049. },
  19050. {
  19051. "type": "string",
  19052. "enum": ["NaN"]
  19053. },
  19054. {
  19055. "type": "string",
  19056. "enum": ["Infinity"]
  19057. },
  19058. {
  19059. "type": "string",
  19060. "enum": ["-Infinity"]
  19061. }
  19062. ]
  19063. },
  19064. {
  19065. "type": "string",
  19066. "enum": ["Infinity", "-Infinity", "NaN"]
  19067. }
  19068. ]
  19069. }
  19070. },
  19071. "required": ["created", "expires"],
  19072. "additionalProperties": false
  19073. }
  19074. },
  19075. "required": ["status", "time"],
  19076. "additionalProperties": false
  19077. },
  19078. {
  19079. "type": "object",
  19080. "properties": {
  19081. "status": {
  19082. "type": "string",
  19083. "enum": ["failed"]
  19084. },
  19085. "message": {
  19086. "type": "string"
  19087. },
  19088. "time": {
  19089. "type": "object",
  19090. "properties": {
  19091. "created": {
  19092. "anyOf": [
  19093. {
  19094. "anyOf": [
  19095. {
  19096. "type": "number"
  19097. },
  19098. {
  19099. "type": "string",
  19100. "enum": ["NaN"]
  19101. },
  19102. {
  19103. "type": "string",
  19104. "enum": ["Infinity"]
  19105. },
  19106. {
  19107. "type": "string",
  19108. "enum": ["-Infinity"]
  19109. }
  19110. ]
  19111. },
  19112. {
  19113. "type": "string",
  19114. "enum": ["Infinity", "-Infinity", "NaN"]
  19115. }
  19116. ]
  19117. },
  19118. "expires": {
  19119. "anyOf": [
  19120. {
  19121. "anyOf": [
  19122. {
  19123. "type": "number"
  19124. },
  19125. {
  19126. "type": "string",
  19127. "enum": ["NaN"]
  19128. },
  19129. {
  19130. "type": "string",
  19131. "enum": ["Infinity"]
  19132. },
  19133. {
  19134. "type": "string",
  19135. "enum": ["-Infinity"]
  19136. }
  19137. ]
  19138. },
  19139. {
  19140. "type": "string",
  19141. "enum": ["Infinity", "-Infinity", "NaN"]
  19142. }
  19143. ]
  19144. }
  19145. },
  19146. "required": ["created", "expires"],
  19147. "additionalProperties": false
  19148. }
  19149. },
  19150. "required": ["status", "message", "time"],
  19151. "additionalProperties": false
  19152. },
  19153. {
  19154. "type": "object",
  19155. "properties": {
  19156. "status": {
  19157. "type": "string",
  19158. "enum": ["expired"]
  19159. },
  19160. "time": {
  19161. "type": "object",
  19162. "properties": {
  19163. "created": {
  19164. "anyOf": [
  19165. {
  19166. "anyOf": [
  19167. {
  19168. "type": "number"
  19169. },
  19170. {
  19171. "type": "string",
  19172. "enum": ["NaN"]
  19173. },
  19174. {
  19175. "type": "string",
  19176. "enum": ["Infinity"]
  19177. },
  19178. {
  19179. "type": "string",
  19180. "enum": ["-Infinity"]
  19181. }
  19182. ]
  19183. },
  19184. {
  19185. "type": "string",
  19186. "enum": ["Infinity", "-Infinity", "NaN"]
  19187. }
  19188. ]
  19189. },
  19190. "expires": {
  19191. "anyOf": [
  19192. {
  19193. "anyOf": [
  19194. {
  19195. "type": "number"
  19196. },
  19197. {
  19198. "type": "string",
  19199. "enum": ["NaN"]
  19200. },
  19201. {
  19202. "type": "string",
  19203. "enum": ["Infinity"]
  19204. },
  19205. {
  19206. "type": "string",
  19207. "enum": ["-Infinity"]
  19208. }
  19209. ]
  19210. },
  19211. {
  19212. "type": "string",
  19213. "enum": ["Infinity", "-Infinity", "NaN"]
  19214. }
  19215. ]
  19216. }
  19217. },
  19218. "required": ["created", "expires"],
  19219. "additionalProperties": false
  19220. }
  19221. },
  19222. "required": ["status", "time"],
  19223. "additionalProperties": false
  19224. }
  19225. ]
  19226. },
  19227. "Mcp.Status.Connected": {
  19228. "type": "object",
  19229. "properties": {
  19230. "status": {
  19231. "type": "string",
  19232. "enum": ["connected"]
  19233. }
  19234. },
  19235. "required": ["status"],
  19236. "additionalProperties": false
  19237. },
  19238. "Mcp.Status.Pending": {
  19239. "type": "object",
  19240. "properties": {
  19241. "status": {
  19242. "type": "string",
  19243. "enum": ["pending"]
  19244. }
  19245. },
  19246. "required": ["status"],
  19247. "additionalProperties": false
  19248. },
  19249. "Mcp.Status.Disabled": {
  19250. "type": "object",
  19251. "properties": {
  19252. "status": {
  19253. "type": "string",
  19254. "enum": ["disabled"]
  19255. }
  19256. },
  19257. "required": ["status"],
  19258. "additionalProperties": false
  19259. },
  19260. "Mcp.Status.Failed": {
  19261. "type": "object",
  19262. "properties": {
  19263. "status": {
  19264. "type": "string",
  19265. "enum": ["failed"]
  19266. },
  19267. "error": {
  19268. "type": "string"
  19269. }
  19270. },
  19271. "required": ["status", "error"],
  19272. "additionalProperties": false
  19273. },
  19274. "Mcp.Status.NeedsAuth": {
  19275. "type": "object",
  19276. "properties": {
  19277. "status": {
  19278. "type": "string",
  19279. "enum": ["needs_auth"]
  19280. }
  19281. },
  19282. "required": ["status"],
  19283. "additionalProperties": false
  19284. },
  19285. "Mcp.Server": {
  19286. "type": "object",
  19287. "properties": {
  19288. "name": {
  19289. "type": "string"
  19290. },
  19291. "status": {
  19292. "anyOf": [
  19293. {
  19294. "$ref": "#/components/schemas/Mcp.Status.Connected"
  19295. },
  19296. {
  19297. "$ref": "#/components/schemas/Mcp.Status.Pending"
  19298. },
  19299. {
  19300. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  19301. },
  19302. {
  19303. "$ref": "#/components/schemas/Mcp.Status.Failed"
  19304. },
  19305. {
  19306. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  19307. }
  19308. ]
  19309. },
  19310. "integrationID": {
  19311. "type": "string"
  19312. }
  19313. },
  19314. "required": ["name", "status"],
  19315. "additionalProperties": false
  19316. },
  19317. "Mcp.LocalConfig": {
  19318. "type": "object",
  19319. "properties": {
  19320. "type": {
  19321. "type": "string",
  19322. "enum": ["local"]
  19323. },
  19324. "command": {
  19325. "type": "array",
  19326. "items": {
  19327. "type": "string"
  19328. }
  19329. },
  19330. "cwd": {
  19331. "type": "string"
  19332. },
  19333. "environment": {
  19334. "type": "object",
  19335. "additionalProperties": {
  19336. "type": "string"
  19337. }
  19338. },
  19339. "disabled": {
  19340. "type": "boolean"
  19341. },
  19342. "codemode": {
  19343. "type": "boolean"
  19344. },
  19345. "timeout": {
  19346. "type": "object",
  19347. "properties": {
  19348. "startup": {
  19349. "type": "integer",
  19350. "allOf": [
  19351. {
  19352. "exclusiveMinimum": 0
  19353. }
  19354. ]
  19355. },
  19356. "catalog": {
  19357. "type": "integer",
  19358. "allOf": [
  19359. {
  19360. "exclusiveMinimum": 0
  19361. }
  19362. ]
  19363. },
  19364. "execution": {
  19365. "type": "integer",
  19366. "allOf": [
  19367. {
  19368. "exclusiveMinimum": 0
  19369. }
  19370. ]
  19371. }
  19372. },
  19373. "additionalProperties": false
  19374. }
  19375. },
  19376. "required": ["type", "command"],
  19377. "additionalProperties": false
  19378. },
  19379. "Mcp.OAuthConfig": {
  19380. "type": "object",
  19381. "properties": {
  19382. "client_id": {
  19383. "type": "string"
  19384. },
  19385. "client_secret": {
  19386. "type": "string"
  19387. },
  19388. "scope": {
  19389. "type": "string"
  19390. },
  19391. "callback_port": {
  19392. "type": "integer",
  19393. "allOf": [
  19394. {
  19395. "minimum": 1,
  19396. "maximum": 65535
  19397. }
  19398. ]
  19399. },
  19400. "redirect_uri": {
  19401. "type": "string"
  19402. }
  19403. },
  19404. "additionalProperties": false
  19405. },
  19406. "Mcp.RemoteConfig": {
  19407. "type": "object",
  19408. "properties": {
  19409. "type": {
  19410. "type": "string",
  19411. "enum": ["remote"]
  19412. },
  19413. "url": {
  19414. "type": "string"
  19415. },
  19416. "headers": {
  19417. "type": "object",
  19418. "additionalProperties": {
  19419. "type": "string"
  19420. }
  19421. },
  19422. "oauth": {
  19423. "anyOf": [
  19424. {
  19425. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  19426. },
  19427. {
  19428. "type": "boolean",
  19429. "enum": [false]
  19430. }
  19431. ]
  19432. },
  19433. "disabled": {
  19434. "type": "boolean"
  19435. },
  19436. "codemode": {
  19437. "type": "boolean"
  19438. },
  19439. "timeout": {
  19440. "type": "object",
  19441. "properties": {
  19442. "startup": {
  19443. "type": "integer",
  19444. "allOf": [
  19445. {
  19446. "exclusiveMinimum": 0
  19447. }
  19448. ]
  19449. },
  19450. "catalog": {
  19451. "type": "integer",
  19452. "allOf": [
  19453. {
  19454. "exclusiveMinimum": 0
  19455. }
  19456. ]
  19457. },
  19458. "execution": {
  19459. "type": "integer",
  19460. "allOf": [
  19461. {
  19462. "exclusiveMinimum": 0
  19463. }
  19464. ]
  19465. }
  19466. },
  19467. "additionalProperties": false
  19468. }
  19469. },
  19470. "required": ["type", "url"],
  19471. "additionalProperties": false
  19472. },
  19473. "McpServerNotFoundError": {
  19474. "type": "object",
  19475. "properties": {
  19476. "_tag": {
  19477. "type": "string",
  19478. "enum": ["McpServerNotFoundError"]
  19479. },
  19480. "server": {
  19481. "type": "string"
  19482. },
  19483. "message": {
  19484. "type": "string"
  19485. }
  19486. },
  19487. "required": ["_tag", "server", "message"],
  19488. "additionalProperties": false
  19489. },
  19490. "Mcp.Resource": {
  19491. "type": "object",
  19492. "properties": {
  19493. "server": {
  19494. "type": "string"
  19495. },
  19496. "name": {
  19497. "type": "string"
  19498. },
  19499. "uri": {
  19500. "type": "string"
  19501. },
  19502. "description": {
  19503. "type": "string"
  19504. },
  19505. "mimeType": {
  19506. "type": "string"
  19507. }
  19508. },
  19509. "required": ["server", "name", "uri"],
  19510. "additionalProperties": false
  19511. },
  19512. "Mcp.ResourceTemplate": {
  19513. "type": "object",
  19514. "properties": {
  19515. "server": {
  19516. "type": "string"
  19517. },
  19518. "name": {
  19519. "type": "string"
  19520. },
  19521. "uriTemplate": {
  19522. "type": "string"
  19523. },
  19524. "description": {
  19525. "type": "string"
  19526. },
  19527. "mimeType": {
  19528. "type": "string"
  19529. }
  19530. },
  19531. "required": ["server", "name", "uriTemplate"],
  19532. "additionalProperties": false
  19533. },
  19534. "Mcp.ResourceCatalog": {
  19535. "type": "object",
  19536. "properties": {
  19537. "resources": {
  19538. "type": "array",
  19539. "items": {
  19540. "$ref": "#/components/schemas/Mcp.Resource"
  19541. }
  19542. },
  19543. "templates": {
  19544. "type": "array",
  19545. "items": {
  19546. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  19547. }
  19548. }
  19549. },
  19550. "required": ["resources", "templates"],
  19551. "additionalProperties": false
  19552. },
  19553. "Project.Vcs": {
  19554. "type": "string",
  19555. "enum": ["git", "hg"]
  19556. },
  19557. "Project.Icon": {
  19558. "type": "object",
  19559. "properties": {
  19560. "url": {
  19561. "type": "string"
  19562. },
  19563. "override": {
  19564. "type": "string"
  19565. },
  19566. "color": {
  19567. "type": "string"
  19568. }
  19569. },
  19570. "additionalProperties": false
  19571. },
  19572. "Project.Commands": {
  19573. "type": "object",
  19574. "properties": {
  19575. "start": {
  19576. "type": "string",
  19577. "description": "Startup script to run when creating a new workspace (worktree)"
  19578. }
  19579. },
  19580. "additionalProperties": false
  19581. },
  19582. "Project.Time": {
  19583. "type": "object",
  19584. "properties": {
  19585. "created": {
  19586. "type": "integer",
  19587. "allOf": [
  19588. {
  19589. "minimum": 0
  19590. }
  19591. ]
  19592. },
  19593. "updated": {
  19594. "type": "integer",
  19595. "allOf": [
  19596. {
  19597. "minimum": 0
  19598. }
  19599. ]
  19600. },
  19601. "initialized": {
  19602. "type": "integer",
  19603. "allOf": [
  19604. {
  19605. "minimum": 0
  19606. }
  19607. ]
  19608. }
  19609. },
  19610. "required": ["created", "updated"],
  19611. "additionalProperties": false
  19612. },
  19613. "Project": {
  19614. "type": "object",
  19615. "properties": {
  19616. "id": {
  19617. "type": "string"
  19618. },
  19619. "canonical": {
  19620. "type": "string"
  19621. },
  19622. "vcs": {
  19623. "$ref": "#/components/schemas/Project.Vcs"
  19624. },
  19625. "name": {
  19626. "type": "string"
  19627. },
  19628. "icon": {
  19629. "$ref": "#/components/schemas/Project.Icon"
  19630. },
  19631. "commands": {
  19632. "$ref": "#/components/schemas/Project.Commands"
  19633. },
  19634. "time": {
  19635. "$ref": "#/components/schemas/Project.Time"
  19636. },
  19637. "sandboxes": {
  19638. "type": "array",
  19639. "items": {
  19640. "type": "string"
  19641. }
  19642. }
  19643. },
  19644. "required": ["id", "canonical", "time", "sandboxes"],
  19645. "additionalProperties": false
  19646. },
  19647. "Project.Current": {
  19648. "type": "object",
  19649. "properties": {
  19650. "id": {
  19651. "type": "string"
  19652. },
  19653. "directory": {
  19654. "type": "string"
  19655. },
  19656. "canonical": {
  19657. "type": "string"
  19658. }
  19659. },
  19660. "required": ["id", "directory", "canonical"],
  19661. "additionalProperties": false
  19662. },
  19663. "Form.Metadata": {
  19664. "type": "object"
  19665. },
  19666. "Form.Info": {
  19667. "type": "object",
  19668. "properties": {
  19669. "id": {
  19670. "type": "string",
  19671. "allOf": [
  19672. {
  19673. "pattern": "^frm_"
  19674. }
  19675. ]
  19676. },
  19677. "sessionID": {
  19678. "type": "string"
  19679. },
  19680. "title": {
  19681. "type": "string"
  19682. },
  19683. "metadata": {
  19684. "$ref": "#/components/schemas/Form.Metadata"
  19685. },
  19686. "fields": {
  19687. "$ref": "#/components/schemas/Form.Fields"
  19688. }
  19689. },
  19690. "required": ["id", "sessionID", "title", "fields"],
  19691. "additionalProperties": false
  19692. },
  19693. "Form.CreatePayload": {
  19694. "type": "object",
  19695. "properties": {
  19696. "id": {
  19697. "anyOf": [
  19698. {
  19699. "type": "string",
  19700. "allOf": [
  19701. {
  19702. "pattern": "^frm_"
  19703. }
  19704. ]
  19705. },
  19706. {
  19707. "type": "null"
  19708. }
  19709. ]
  19710. },
  19711. "title": {
  19712. "type": "string"
  19713. },
  19714. "metadata": {
  19715. "$ref": "#/components/schemas/Form.Metadata"
  19716. },
  19717. "fields": {
  19718. "$ref": "#/components/schemas/Form.Fields"
  19719. }
  19720. },
  19721. "required": ["title", "fields"],
  19722. "additionalProperties": false
  19723. },
  19724. "FormNotFoundError": {
  19725. "type": "object",
  19726. "properties": {
  19727. "_tag": {
  19728. "type": "string",
  19729. "enum": ["FormNotFoundError"]
  19730. },
  19731. "id": {
  19732. "type": "string"
  19733. },
  19734. "message": {
  19735. "type": "string"
  19736. }
  19737. },
  19738. "required": ["_tag", "id", "message"],
  19739. "additionalProperties": false
  19740. },
  19741. "Form.State": {
  19742. "anyOf": [
  19743. {
  19744. "type": "object",
  19745. "properties": {
  19746. "status": {
  19747. "type": "string",
  19748. "enum": ["pending"]
  19749. }
  19750. },
  19751. "required": ["status"],
  19752. "additionalProperties": false
  19753. },
  19754. {
  19755. "type": "object",
  19756. "properties": {
  19757. "status": {
  19758. "type": "string",
  19759. "enum": ["answered"]
  19760. },
  19761. "answer": {
  19762. "$ref": "#/components/schemas/Form.Answer"
  19763. }
  19764. },
  19765. "required": ["status", "answer"],
  19766. "additionalProperties": false
  19767. },
  19768. {
  19769. "type": "object",
  19770. "properties": {
  19771. "status": {
  19772. "type": "string",
  19773. "enum": ["cancelled"]
  19774. }
  19775. },
  19776. "required": ["status"],
  19777. "additionalProperties": false
  19778. }
  19779. ]
  19780. },
  19781. "Form.Reply": {
  19782. "type": "object",
  19783. "properties": {
  19784. "answer": {
  19785. "$ref": "#/components/schemas/Form.Answer"
  19786. }
  19787. },
  19788. "required": ["answer"],
  19789. "additionalProperties": false
  19790. },
  19791. "FormAlreadySettledError": {
  19792. "type": "object",
  19793. "properties": {
  19794. "_tag": {
  19795. "type": "string",
  19796. "enum": ["FormAlreadySettledError"]
  19797. },
  19798. "id": {
  19799. "type": "string"
  19800. },
  19801. "message": {
  19802. "type": "string"
  19803. }
  19804. },
  19805. "required": ["_tag", "id", "message"],
  19806. "additionalProperties": false
  19807. },
  19808. "FormInvalidAnswerError": {
  19809. "type": "object",
  19810. "properties": {
  19811. "_tag": {
  19812. "type": "string",
  19813. "enum": ["FormInvalidAnswerError"]
  19814. },
  19815. "id": {
  19816. "type": "string"
  19817. },
  19818. "message": {
  19819. "type": "string"
  19820. }
  19821. },
  19822. "required": ["_tag", "id", "message"],
  19823. "additionalProperties": false
  19824. },
  19825. "Permission.Source": {
  19826. "anyOf": [
  19827. {
  19828. "type": "object",
  19829. "properties": {
  19830. "type": {
  19831. "type": "string",
  19832. "enum": ["tool"]
  19833. },
  19834. "messageID": {
  19835. "type": "string"
  19836. },
  19837. "id": {
  19838. "type": "string"
  19839. }
  19840. },
  19841. "required": ["type", "messageID", "id"],
  19842. "additionalProperties": false
  19843. }
  19844. ]
  19845. },
  19846. "Permission.Request": {
  19847. "type": "object",
  19848. "properties": {
  19849. "id": {
  19850. "type": "string",
  19851. "allOf": [
  19852. {
  19853. "pattern": "^per"
  19854. }
  19855. ]
  19856. },
  19857. "sessionID": {
  19858. "type": "string",
  19859. "allOf": [
  19860. {
  19861. "pattern": "^ses"
  19862. }
  19863. ]
  19864. },
  19865. "action": {
  19866. "type": "string"
  19867. },
  19868. "resources": {
  19869. "type": "array",
  19870. "items": {
  19871. "type": "string"
  19872. }
  19873. },
  19874. "save": {
  19875. "type": "array",
  19876. "items": {
  19877. "type": "string"
  19878. }
  19879. },
  19880. "metadata": {
  19881. "type": "object"
  19882. },
  19883. "source": {
  19884. "$ref": "#/components/schemas/Permission.Source"
  19885. }
  19886. },
  19887. "required": ["id", "sessionID", "action", "resources"],
  19888. "additionalProperties": false
  19889. },
  19890. "PermissionSaved.Info": {
  19891. "type": "object",
  19892. "properties": {
  19893. "id": {
  19894. "type": "string"
  19895. },
  19896. "projectID": {
  19897. "type": "string"
  19898. },
  19899. "action": {
  19900. "type": "string"
  19901. },
  19902. "resource": {
  19903. "type": "string"
  19904. }
  19905. },
  19906. "required": ["id", "projectID", "action", "resource"],
  19907. "additionalProperties": false
  19908. },
  19909. "PermissionNotFoundError": {
  19910. "type": "object",
  19911. "properties": {
  19912. "_tag": {
  19913. "type": "string",
  19914. "enum": ["PermissionNotFoundError"]
  19915. },
  19916. "requestID": {
  19917. "type": "string"
  19918. },
  19919. "message": {
  19920. "type": "string"
  19921. }
  19922. },
  19923. "required": ["_tag", "requestID", "message"],
  19924. "additionalProperties": false
  19925. },
  19926. "Permission.Reply": {
  19927. "type": "string",
  19928. "enum": ["once", "always", "reject"]
  19929. },
  19930. "FileSystem.Entry": {
  19931. "type": "object",
  19932. "properties": {
  19933. "path": {
  19934. "type": "string"
  19935. },
  19936. "type": {
  19937. "type": "string",
  19938. "enum": ["file", "directory"]
  19939. }
  19940. },
  19941. "required": ["path", "type"],
  19942. "additionalProperties": false
  19943. },
  19944. "Command.Info": {
  19945. "type": "object",
  19946. "properties": {
  19947. "name": {
  19948. "type": "string"
  19949. },
  19950. "template": {
  19951. "type": "string"
  19952. },
  19953. "description": {
  19954. "type": "string"
  19955. },
  19956. "agent": {
  19957. "type": "string"
  19958. },
  19959. "model": {
  19960. "$ref": "#/components/schemas/Model.Ref"
  19961. },
  19962. "subtask": {
  19963. "type": "boolean"
  19964. }
  19965. },
  19966. "required": ["name", "template"],
  19967. "additionalProperties": false
  19968. },
  19969. "Skill.Info": {
  19970. "type": "object",
  19971. "properties": {
  19972. "id": {
  19973. "type": "string"
  19974. },
  19975. "name": {
  19976. "type": "string"
  19977. },
  19978. "description": {
  19979. "type": "string"
  19980. },
  19981. "slash": {
  19982. "type": "boolean"
  19983. },
  19984. "autoinvoke": {
  19985. "type": "boolean"
  19986. },
  19987. "location": {
  19988. "type": "string"
  19989. },
  19990. "content": {
  19991. "type": "string"
  19992. }
  19993. },
  19994. "required": ["id", "name", "location", "content"],
  19995. "additionalProperties": false
  19996. },
  19997. "models-dev.refreshed": {
  19998. "type": "object",
  19999. "properties": {
  20000. "id": {
  20001. "type": "string",
  20002. "allOf": [
  20003. {
  20004. "pattern": "^evt_"
  20005. }
  20006. ]
  20007. },
  20008. "created": {
  20009. "type": "number"
  20010. },
  20011. "metadata": {
  20012. "type": "object"
  20013. },
  20014. "type": {
  20015. "type": "string",
  20016. "enum": ["models-dev.refreshed"]
  20017. },
  20018. "location": {
  20019. "$ref": "#/components/schemas/Location.Ref"
  20020. },
  20021. "data": {
  20022. "anyOf": [
  20023. {
  20024. "type": "object"
  20025. },
  20026. {
  20027. "type": "array"
  20028. }
  20029. ]
  20030. }
  20031. },
  20032. "required": ["id", "created", "type", "data"],
  20033. "additionalProperties": false
  20034. },
  20035. "integration.updated": {
  20036. "type": "object",
  20037. "properties": {
  20038. "id": {
  20039. "type": "string",
  20040. "allOf": [
  20041. {
  20042. "pattern": "^evt_"
  20043. }
  20044. ]
  20045. },
  20046. "created": {
  20047. "type": "number"
  20048. },
  20049. "metadata": {
  20050. "type": "object"
  20051. },
  20052. "type": {
  20053. "type": "string",
  20054. "enum": ["integration.updated"]
  20055. },
  20056. "location": {
  20057. "$ref": "#/components/schemas/Location.Ref"
  20058. },
  20059. "data": {
  20060. "anyOf": [
  20061. {
  20062. "type": "object"
  20063. },
  20064. {
  20065. "type": "array"
  20066. }
  20067. ]
  20068. }
  20069. },
  20070. "required": ["id", "created", "type", "data"],
  20071. "additionalProperties": false
  20072. },
  20073. "integration.connection.updated": {
  20074. "type": "object",
  20075. "properties": {
  20076. "id": {
  20077. "type": "string",
  20078. "allOf": [
  20079. {
  20080. "pattern": "^evt_"
  20081. }
  20082. ]
  20083. },
  20084. "created": {
  20085. "type": "number"
  20086. },
  20087. "metadata": {
  20088. "type": "object"
  20089. },
  20090. "type": {
  20091. "type": "string",
  20092. "enum": ["integration.connection.updated"]
  20093. },
  20094. "location": {
  20095. "$ref": "#/components/schemas/Location.Ref"
  20096. },
  20097. "data": {
  20098. "type": "object",
  20099. "properties": {
  20100. "integrationID": {
  20101. "type": "string"
  20102. }
  20103. },
  20104. "required": ["integrationID"],
  20105. "additionalProperties": false
  20106. }
  20107. },
  20108. "required": ["id", "created", "type", "data"],
  20109. "additionalProperties": false
  20110. },
  20111. "catalog.updated": {
  20112. "type": "object",
  20113. "properties": {
  20114. "id": {
  20115. "type": "string",
  20116. "allOf": [
  20117. {
  20118. "pattern": "^evt_"
  20119. }
  20120. ]
  20121. },
  20122. "created": {
  20123. "type": "number"
  20124. },
  20125. "metadata": {
  20126. "type": "object"
  20127. },
  20128. "type": {
  20129. "type": "string",
  20130. "enum": ["catalog.updated"]
  20131. },
  20132. "location": {
  20133. "$ref": "#/components/schemas/Location.Ref"
  20134. },
  20135. "data": {
  20136. "anyOf": [
  20137. {
  20138. "type": "object"
  20139. },
  20140. {
  20141. "type": "array"
  20142. }
  20143. ]
  20144. }
  20145. },
  20146. "required": ["id", "created", "type", "data"],
  20147. "additionalProperties": false
  20148. },
  20149. "agent.updated": {
  20150. "type": "object",
  20151. "properties": {
  20152. "id": {
  20153. "type": "string",
  20154. "allOf": [
  20155. {
  20156. "pattern": "^evt_"
  20157. }
  20158. ]
  20159. },
  20160. "created": {
  20161. "type": "number"
  20162. },
  20163. "metadata": {
  20164. "type": "object"
  20165. },
  20166. "type": {
  20167. "type": "string",
  20168. "enum": ["agent.updated"]
  20169. },
  20170. "location": {
  20171. "$ref": "#/components/schemas/Location.Ref"
  20172. },
  20173. "data": {
  20174. "anyOf": [
  20175. {
  20176. "type": "object"
  20177. },
  20178. {
  20179. "type": "array"
  20180. }
  20181. ]
  20182. }
  20183. },
  20184. "required": ["id", "created", "type", "data"],
  20185. "additionalProperties": false
  20186. },
  20187. "session.usage.updated": {
  20188. "type": "object",
  20189. "properties": {
  20190. "id": {
  20191. "type": "string",
  20192. "allOf": [
  20193. {
  20194. "pattern": "^evt_"
  20195. }
  20196. ]
  20197. },
  20198. "created": {
  20199. "type": "number"
  20200. },
  20201. "metadata": {
  20202. "type": "object"
  20203. },
  20204. "type": {
  20205. "type": "string",
  20206. "enum": ["session.usage.updated"]
  20207. },
  20208. "location": {
  20209. "$ref": "#/components/schemas/Location.Ref"
  20210. },
  20211. "data": {
  20212. "type": "object",
  20213. "properties": {
  20214. "sessionID": {
  20215. "type": "string",
  20216. "allOf": [
  20217. {
  20218. "pattern": "^ses"
  20219. }
  20220. ]
  20221. },
  20222. "cost": {
  20223. "$ref": "#/components/schemas/Money.USD"
  20224. },
  20225. "tokens": {
  20226. "$ref": "#/components/schemas/TokenUsage.Info"
  20227. }
  20228. },
  20229. "required": ["sessionID", "cost", "tokens"],
  20230. "additionalProperties": false
  20231. }
  20232. },
  20233. "required": ["id", "created", "type", "data"],
  20234. "additionalProperties": false
  20235. },
  20236. "session.text.delta": {
  20237. "type": "object",
  20238. "properties": {
  20239. "id": {
  20240. "type": "string",
  20241. "allOf": [
  20242. {
  20243. "pattern": "^evt_"
  20244. }
  20245. ]
  20246. },
  20247. "created": {
  20248. "type": "number"
  20249. },
  20250. "metadata": {
  20251. "type": "object"
  20252. },
  20253. "type": {
  20254. "type": "string",
  20255. "enum": ["session.text.delta"]
  20256. },
  20257. "location": {
  20258. "$ref": "#/components/schemas/Location.Ref"
  20259. },
  20260. "data": {
  20261. "type": "object",
  20262. "properties": {
  20263. "sessionID": {
  20264. "type": "string",
  20265. "allOf": [
  20266. {
  20267. "pattern": "^ses"
  20268. }
  20269. ]
  20270. },
  20271. "assistantMessageID": {
  20272. "type": "string",
  20273. "allOf": [
  20274. {
  20275. "pattern": "^msg_"
  20276. }
  20277. ]
  20278. },
  20279. "ordinal": {
  20280. "type": "integer",
  20281. "allOf": [
  20282. {
  20283. "minimum": 0
  20284. }
  20285. ]
  20286. },
  20287. "delta": {
  20288. "type": "string"
  20289. }
  20290. },
  20291. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20292. "additionalProperties": false
  20293. }
  20294. },
  20295. "required": ["id", "created", "type", "data"],
  20296. "additionalProperties": false
  20297. },
  20298. "session.reasoning.delta": {
  20299. "type": "object",
  20300. "properties": {
  20301. "id": {
  20302. "type": "string",
  20303. "allOf": [
  20304. {
  20305. "pattern": "^evt_"
  20306. }
  20307. ]
  20308. },
  20309. "created": {
  20310. "type": "number"
  20311. },
  20312. "metadata": {
  20313. "type": "object"
  20314. },
  20315. "type": {
  20316. "type": "string",
  20317. "enum": ["session.reasoning.delta"]
  20318. },
  20319. "location": {
  20320. "$ref": "#/components/schemas/Location.Ref"
  20321. },
  20322. "data": {
  20323. "type": "object",
  20324. "properties": {
  20325. "sessionID": {
  20326. "type": "string",
  20327. "allOf": [
  20328. {
  20329. "pattern": "^ses"
  20330. }
  20331. ]
  20332. },
  20333. "assistantMessageID": {
  20334. "type": "string",
  20335. "allOf": [
  20336. {
  20337. "pattern": "^msg_"
  20338. }
  20339. ]
  20340. },
  20341. "ordinal": {
  20342. "type": "integer",
  20343. "allOf": [
  20344. {
  20345. "minimum": 0
  20346. }
  20347. ]
  20348. },
  20349. "delta": {
  20350. "type": "string"
  20351. }
  20352. },
  20353. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20354. "additionalProperties": false
  20355. }
  20356. },
  20357. "required": ["id", "created", "type", "data"],
  20358. "additionalProperties": false
  20359. },
  20360. "session.tool.input.delta": {
  20361. "type": "object",
  20362. "properties": {
  20363. "id": {
  20364. "type": "string",
  20365. "allOf": [
  20366. {
  20367. "pattern": "^evt_"
  20368. }
  20369. ]
  20370. },
  20371. "created": {
  20372. "type": "number"
  20373. },
  20374. "metadata": {
  20375. "type": "object"
  20376. },
  20377. "type": {
  20378. "type": "string",
  20379. "enum": ["session.tool.input.delta"]
  20380. },
  20381. "location": {
  20382. "$ref": "#/components/schemas/Location.Ref"
  20383. },
  20384. "data": {
  20385. "type": "object",
  20386. "properties": {
  20387. "sessionID": {
  20388. "type": "string",
  20389. "allOf": [
  20390. {
  20391. "pattern": "^ses"
  20392. }
  20393. ]
  20394. },
  20395. "assistantMessageID": {
  20396. "type": "string",
  20397. "allOf": [
  20398. {
  20399. "pattern": "^msg_"
  20400. }
  20401. ]
  20402. },
  20403. "id": {
  20404. "type": "string"
  20405. },
  20406. "delta": {
  20407. "type": "string"
  20408. }
  20409. },
  20410. "required": ["sessionID", "assistantMessageID", "id", "delta"],
  20411. "additionalProperties": false
  20412. }
  20413. },
  20414. "required": ["id", "created", "type", "data"],
  20415. "additionalProperties": false
  20416. },
  20417. "session.tool.progress": {
  20418. "type": "object",
  20419. "properties": {
  20420. "id": {
  20421. "type": "string",
  20422. "allOf": [
  20423. {
  20424. "pattern": "^evt_"
  20425. }
  20426. ]
  20427. },
  20428. "created": {
  20429. "type": "number"
  20430. },
  20431. "metadata": {
  20432. "type": "object"
  20433. },
  20434. "type": {
  20435. "type": "string",
  20436. "enum": ["session.tool.progress"]
  20437. },
  20438. "location": {
  20439. "$ref": "#/components/schemas/Location.Ref"
  20440. },
  20441. "data": {
  20442. "type": "object",
  20443. "properties": {
  20444. "sessionID": {
  20445. "type": "string",
  20446. "allOf": [
  20447. {
  20448. "pattern": "^ses"
  20449. }
  20450. ]
  20451. },
  20452. "assistantMessageID": {
  20453. "type": "string",
  20454. "allOf": [
  20455. {
  20456. "pattern": "^msg_"
  20457. }
  20458. ]
  20459. },
  20460. "id": {
  20461. "type": "string"
  20462. },
  20463. "metadata": {
  20464. "type": "object"
  20465. }
  20466. },
  20467. "required": ["sessionID", "assistantMessageID", "id", "metadata"],
  20468. "additionalProperties": false
  20469. }
  20470. },
  20471. "required": ["id", "created", "type", "data"],
  20472. "additionalProperties": false
  20473. },
  20474. "session.compaction.delta": {
  20475. "type": "object",
  20476. "properties": {
  20477. "id": {
  20478. "type": "string",
  20479. "allOf": [
  20480. {
  20481. "pattern": "^evt_"
  20482. }
  20483. ]
  20484. },
  20485. "created": {
  20486. "type": "number"
  20487. },
  20488. "metadata": {
  20489. "type": "object"
  20490. },
  20491. "type": {
  20492. "type": "string",
  20493. "enum": ["session.compaction.delta"]
  20494. },
  20495. "location": {
  20496. "$ref": "#/components/schemas/Location.Ref"
  20497. },
  20498. "data": {
  20499. "type": "object",
  20500. "properties": {
  20501. "sessionID": {
  20502. "type": "string",
  20503. "allOf": [
  20504. {
  20505. "pattern": "^ses"
  20506. }
  20507. ]
  20508. },
  20509. "text": {
  20510. "type": "string"
  20511. }
  20512. },
  20513. "required": ["sessionID", "text"],
  20514. "additionalProperties": false
  20515. }
  20516. },
  20517. "required": ["id", "created", "type", "data"],
  20518. "additionalProperties": false
  20519. },
  20520. "filesystem.changed": {
  20521. "type": "object",
  20522. "properties": {
  20523. "id": {
  20524. "type": "string",
  20525. "allOf": [
  20526. {
  20527. "pattern": "^evt_"
  20528. }
  20529. ]
  20530. },
  20531. "created": {
  20532. "type": "number"
  20533. },
  20534. "metadata": {
  20535. "type": "object"
  20536. },
  20537. "type": {
  20538. "type": "string",
  20539. "enum": ["filesystem.changed"]
  20540. },
  20541. "location": {
  20542. "$ref": "#/components/schemas/Location.Ref"
  20543. },
  20544. "data": {
  20545. "type": "object",
  20546. "properties": {
  20547. "file": {
  20548. "type": "string"
  20549. },
  20550. "event": {
  20551. "type": "string",
  20552. "enum": ["add", "change", "unlink"]
  20553. }
  20554. },
  20555. "required": ["file", "event"],
  20556. "additionalProperties": false
  20557. }
  20558. },
  20559. "required": ["id", "created", "type", "data"],
  20560. "additionalProperties": false
  20561. },
  20562. "reference.updated": {
  20563. "type": "object",
  20564. "properties": {
  20565. "id": {
  20566. "type": "string",
  20567. "allOf": [
  20568. {
  20569. "pattern": "^evt_"
  20570. }
  20571. ]
  20572. },
  20573. "created": {
  20574. "type": "number"
  20575. },
  20576. "metadata": {
  20577. "type": "object"
  20578. },
  20579. "type": {
  20580. "type": "string",
  20581. "enum": ["reference.updated"]
  20582. },
  20583. "location": {
  20584. "$ref": "#/components/schemas/Location.Ref"
  20585. },
  20586. "data": {
  20587. "anyOf": [
  20588. {
  20589. "type": "object"
  20590. },
  20591. {
  20592. "type": "array"
  20593. }
  20594. ]
  20595. }
  20596. },
  20597. "required": ["id", "created", "type", "data"],
  20598. "additionalProperties": false
  20599. },
  20600. "permission.asked": {
  20601. "type": "object",
  20602. "properties": {
  20603. "id": {
  20604. "type": "string",
  20605. "allOf": [
  20606. {
  20607. "pattern": "^evt_"
  20608. }
  20609. ]
  20610. },
  20611. "created": {
  20612. "type": "number"
  20613. },
  20614. "metadata": {
  20615. "type": "object"
  20616. },
  20617. "type": {
  20618. "type": "string",
  20619. "enum": ["permission.asked"]
  20620. },
  20621. "location": {
  20622. "$ref": "#/components/schemas/Location.Ref"
  20623. },
  20624. "data": {
  20625. "type": "object",
  20626. "properties": {
  20627. "id": {
  20628. "type": "string",
  20629. "allOf": [
  20630. {
  20631. "pattern": "^per"
  20632. }
  20633. ]
  20634. },
  20635. "sessionID": {
  20636. "type": "string",
  20637. "allOf": [
  20638. {
  20639. "pattern": "^ses"
  20640. }
  20641. ]
  20642. },
  20643. "action": {
  20644. "type": "string"
  20645. },
  20646. "resources": {
  20647. "type": "array",
  20648. "items": {
  20649. "type": "string"
  20650. }
  20651. },
  20652. "save": {
  20653. "type": "array",
  20654. "items": {
  20655. "type": "string"
  20656. }
  20657. },
  20658. "metadata": {
  20659. "type": "object"
  20660. },
  20661. "source": {
  20662. "$ref": "#/components/schemas/Permission.Source"
  20663. }
  20664. },
  20665. "required": ["id", "sessionID", "action", "resources"],
  20666. "additionalProperties": false
  20667. }
  20668. },
  20669. "required": ["id", "created", "type", "data"],
  20670. "additionalProperties": false
  20671. },
  20672. "permission.replied": {
  20673. "type": "object",
  20674. "properties": {
  20675. "id": {
  20676. "type": "string",
  20677. "allOf": [
  20678. {
  20679. "pattern": "^evt_"
  20680. }
  20681. ]
  20682. },
  20683. "created": {
  20684. "type": "number"
  20685. },
  20686. "metadata": {
  20687. "type": "object"
  20688. },
  20689. "type": {
  20690. "type": "string",
  20691. "enum": ["permission.replied"]
  20692. },
  20693. "location": {
  20694. "$ref": "#/components/schemas/Location.Ref"
  20695. },
  20696. "data": {
  20697. "type": "object",
  20698. "properties": {
  20699. "sessionID": {
  20700. "type": "string",
  20701. "allOf": [
  20702. {
  20703. "pattern": "^ses"
  20704. }
  20705. ]
  20706. },
  20707. "requestID": {
  20708. "type": "string",
  20709. "allOf": [
  20710. {
  20711. "pattern": "^per"
  20712. }
  20713. ]
  20714. },
  20715. "reply": {
  20716. "$ref": "#/components/schemas/Permission.Reply"
  20717. }
  20718. },
  20719. "required": ["sessionID", "requestID", "reply"],
  20720. "additionalProperties": false
  20721. }
  20722. },
  20723. "required": ["id", "created", "type", "data"],
  20724. "additionalProperties": false
  20725. },
  20726. "plugin.added": {
  20727. "type": "object",
  20728. "properties": {
  20729. "id": {
  20730. "type": "string",
  20731. "allOf": [
  20732. {
  20733. "pattern": "^evt_"
  20734. }
  20735. ]
  20736. },
  20737. "created": {
  20738. "type": "number"
  20739. },
  20740. "metadata": {
  20741. "type": "object"
  20742. },
  20743. "type": {
  20744. "type": "string",
  20745. "enum": ["plugin.added"]
  20746. },
  20747. "location": {
  20748. "$ref": "#/components/schemas/Location.Ref"
  20749. },
  20750. "data": {
  20751. "type": "object",
  20752. "properties": {
  20753. "id": {
  20754. "type": "string"
  20755. }
  20756. },
  20757. "required": ["id"],
  20758. "additionalProperties": false
  20759. }
  20760. },
  20761. "required": ["id", "created", "type", "data"],
  20762. "additionalProperties": false
  20763. },
  20764. "plugin.updated": {
  20765. "type": "object",
  20766. "properties": {
  20767. "id": {
  20768. "type": "string",
  20769. "allOf": [
  20770. {
  20771. "pattern": "^evt_"
  20772. }
  20773. ]
  20774. },
  20775. "created": {
  20776. "type": "number"
  20777. },
  20778. "metadata": {
  20779. "type": "object"
  20780. },
  20781. "type": {
  20782. "type": "string",
  20783. "enum": ["plugin.updated"]
  20784. },
  20785. "location": {
  20786. "$ref": "#/components/schemas/Location.Ref"
  20787. },
  20788. "data": {
  20789. "anyOf": [
  20790. {
  20791. "type": "object"
  20792. },
  20793. {
  20794. "type": "array"
  20795. }
  20796. ]
  20797. }
  20798. },
  20799. "required": ["id", "created", "type", "data"],
  20800. "additionalProperties": false
  20801. },
  20802. "worktree.updated": {
  20803. "type": "object",
  20804. "properties": {
  20805. "id": {
  20806. "type": "string",
  20807. "allOf": [
  20808. {
  20809. "pattern": "^evt_"
  20810. }
  20811. ]
  20812. },
  20813. "created": {
  20814. "type": "number"
  20815. },
  20816. "metadata": {
  20817. "type": "object"
  20818. },
  20819. "type": {
  20820. "type": "string",
  20821. "enum": ["worktree.updated"]
  20822. },
  20823. "location": {
  20824. "$ref": "#/components/schemas/Location.Ref"
  20825. },
  20826. "data": {
  20827. "type": "object",
  20828. "properties": {
  20829. "projectID": {
  20830. "type": "string"
  20831. }
  20832. },
  20833. "required": ["projectID"],
  20834. "additionalProperties": false
  20835. }
  20836. },
  20837. "required": ["id", "created", "type", "data"],
  20838. "additionalProperties": false
  20839. },
  20840. "worktree.resolved": {
  20841. "type": "object",
  20842. "properties": {
  20843. "id": {
  20844. "type": "string",
  20845. "allOf": [
  20846. {
  20847. "pattern": "^evt_"
  20848. }
  20849. ]
  20850. },
  20851. "created": {
  20852. "type": "number"
  20853. },
  20854. "metadata": {
  20855. "type": "object"
  20856. },
  20857. "type": {
  20858. "type": "string",
  20859. "enum": ["worktree.resolved"]
  20860. },
  20861. "durable": {
  20862. "type": "object",
  20863. "properties": {
  20864. "aggregateID": {
  20865. "type": "string"
  20866. },
  20867. "seq": {
  20868. "type": "integer",
  20869. "allOf": [
  20870. {
  20871. "minimum": 0
  20872. }
  20873. ]
  20874. },
  20875. "version": {
  20876. "type": "number",
  20877. "enum": [1]
  20878. }
  20879. },
  20880. "required": ["aggregateID", "seq", "version"],
  20881. "additionalProperties": false
  20882. },
  20883. "location": {
  20884. "$ref": "#/components/schemas/Location.Ref"
  20885. },
  20886. "data": {
  20887. "type": "object",
  20888. "properties": {
  20889. "projectID": {
  20890. "type": "string"
  20891. },
  20892. "directory": {
  20893. "type": "string"
  20894. },
  20895. "previous": {
  20896. "type": "string"
  20897. }
  20898. },
  20899. "required": ["projectID", "directory", "previous"],
  20900. "additionalProperties": false
  20901. }
  20902. },
  20903. "required": ["id", "created", "type", "durable", "data"],
  20904. "additionalProperties": false
  20905. },
  20906. "command.updated": {
  20907. "type": "object",
  20908. "properties": {
  20909. "id": {
  20910. "type": "string",
  20911. "allOf": [
  20912. {
  20913. "pattern": "^evt_"
  20914. }
  20915. ]
  20916. },
  20917. "created": {
  20918. "type": "number"
  20919. },
  20920. "metadata": {
  20921. "type": "object"
  20922. },
  20923. "type": {
  20924. "type": "string",
  20925. "enum": ["command.updated"]
  20926. },
  20927. "location": {
  20928. "$ref": "#/components/schemas/Location.Ref"
  20929. },
  20930. "data": {
  20931. "anyOf": [
  20932. {
  20933. "type": "object"
  20934. },
  20935. {
  20936. "type": "array"
  20937. }
  20938. ]
  20939. }
  20940. },
  20941. "required": ["id", "created", "type", "data"],
  20942. "additionalProperties": false
  20943. },
  20944. "config.updated": {
  20945. "type": "object",
  20946. "properties": {
  20947. "id": {
  20948. "type": "string",
  20949. "allOf": [
  20950. {
  20951. "pattern": "^evt_"
  20952. }
  20953. ]
  20954. },
  20955. "created": {
  20956. "type": "number"
  20957. },
  20958. "metadata": {
  20959. "type": "object"
  20960. },
  20961. "type": {
  20962. "type": "string",
  20963. "enum": ["config.updated"]
  20964. },
  20965. "location": {
  20966. "$ref": "#/components/schemas/Location.Ref"
  20967. },
  20968. "data": {
  20969. "anyOf": [
  20970. {
  20971. "type": "object"
  20972. },
  20973. {
  20974. "type": "array"
  20975. }
  20976. ]
  20977. }
  20978. },
  20979. "required": ["id", "created", "type", "data"],
  20980. "additionalProperties": false
  20981. },
  20982. "skill.updated": {
  20983. "type": "object",
  20984. "properties": {
  20985. "id": {
  20986. "type": "string",
  20987. "allOf": [
  20988. {
  20989. "pattern": "^evt_"
  20990. }
  20991. ]
  20992. },
  20993. "created": {
  20994. "type": "number"
  20995. },
  20996. "metadata": {
  20997. "type": "object"
  20998. },
  20999. "type": {
  21000. "type": "string",
  21001. "enum": ["skill.updated"]
  21002. },
  21003. "location": {
  21004. "$ref": "#/components/schemas/Location.Ref"
  21005. },
  21006. "data": {
  21007. "anyOf": [
  21008. {
  21009. "type": "object"
  21010. },
  21011. {
  21012. "type": "array"
  21013. }
  21014. ]
  21015. }
  21016. },
  21017. "required": ["id", "created", "type", "data"],
  21018. "additionalProperties": false
  21019. },
  21020. "Pty": {
  21021. "type": "object",
  21022. "properties": {
  21023. "id": {
  21024. "type": "string",
  21025. "allOf": [
  21026. {
  21027. "pattern": "^pty"
  21028. }
  21029. ]
  21030. },
  21031. "title": {
  21032. "type": "string"
  21033. },
  21034. "command": {
  21035. "type": "string"
  21036. },
  21037. "args": {
  21038. "type": "array",
  21039. "items": {
  21040. "type": "string"
  21041. }
  21042. },
  21043. "cwd": {
  21044. "type": "string"
  21045. },
  21046. "status": {
  21047. "type": "string",
  21048. "enum": ["running", "exited"]
  21049. },
  21050. "pid": {
  21051. "type": "integer",
  21052. "allOf": [
  21053. {
  21054. "minimum": 0
  21055. }
  21056. ]
  21057. },
  21058. "exitCode": {
  21059. "type": "integer",
  21060. "allOf": [
  21061. {
  21062. "minimum": 0
  21063. }
  21064. ]
  21065. }
  21066. },
  21067. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  21068. "additionalProperties": false
  21069. },
  21070. "pty.created": {
  21071. "type": "object",
  21072. "properties": {
  21073. "id": {
  21074. "type": "string",
  21075. "allOf": [
  21076. {
  21077. "pattern": "^evt_"
  21078. }
  21079. ]
  21080. },
  21081. "created": {
  21082. "type": "number"
  21083. },
  21084. "metadata": {
  21085. "type": "object"
  21086. },
  21087. "type": {
  21088. "type": "string",
  21089. "enum": ["pty.created"]
  21090. },
  21091. "location": {
  21092. "$ref": "#/components/schemas/Location.Ref"
  21093. },
  21094. "data": {
  21095. "type": "object",
  21096. "properties": {
  21097. "info": {
  21098. "$ref": "#/components/schemas/Pty"
  21099. }
  21100. },
  21101. "required": ["info"],
  21102. "additionalProperties": false
  21103. }
  21104. },
  21105. "required": ["id", "created", "type", "data"],
  21106. "additionalProperties": false
  21107. },
  21108. "pty.updated": {
  21109. "type": "object",
  21110. "properties": {
  21111. "id": {
  21112. "type": "string",
  21113. "allOf": [
  21114. {
  21115. "pattern": "^evt_"
  21116. }
  21117. ]
  21118. },
  21119. "created": {
  21120. "type": "number"
  21121. },
  21122. "metadata": {
  21123. "type": "object"
  21124. },
  21125. "type": {
  21126. "type": "string",
  21127. "enum": ["pty.updated"]
  21128. },
  21129. "location": {
  21130. "$ref": "#/components/schemas/Location.Ref"
  21131. },
  21132. "data": {
  21133. "type": "object",
  21134. "properties": {
  21135. "info": {
  21136. "$ref": "#/components/schemas/Pty"
  21137. }
  21138. },
  21139. "required": ["info"],
  21140. "additionalProperties": false
  21141. }
  21142. },
  21143. "required": ["id", "created", "type", "data"],
  21144. "additionalProperties": false
  21145. },
  21146. "pty.exited": {
  21147. "type": "object",
  21148. "properties": {
  21149. "id": {
  21150. "type": "string",
  21151. "allOf": [
  21152. {
  21153. "pattern": "^evt_"
  21154. }
  21155. ]
  21156. },
  21157. "created": {
  21158. "type": "number"
  21159. },
  21160. "metadata": {
  21161. "type": "object"
  21162. },
  21163. "type": {
  21164. "type": "string",
  21165. "enum": ["pty.exited"]
  21166. },
  21167. "location": {
  21168. "$ref": "#/components/schemas/Location.Ref"
  21169. },
  21170. "data": {
  21171. "type": "object",
  21172. "properties": {
  21173. "id": {
  21174. "type": "string",
  21175. "allOf": [
  21176. {
  21177. "pattern": "^pty"
  21178. }
  21179. ]
  21180. },
  21181. "exitCode": {
  21182. "type": "integer",
  21183. "allOf": [
  21184. {
  21185. "minimum": 0
  21186. }
  21187. ]
  21188. }
  21189. },
  21190. "required": ["id", "exitCode"],
  21191. "additionalProperties": false
  21192. }
  21193. },
  21194. "required": ["id", "created", "type", "data"],
  21195. "additionalProperties": false
  21196. },
  21197. "pty.deleted": {
  21198. "type": "object",
  21199. "properties": {
  21200. "id": {
  21201. "type": "string",
  21202. "allOf": [
  21203. {
  21204. "pattern": "^evt_"
  21205. }
  21206. ]
  21207. },
  21208. "created": {
  21209. "type": "number"
  21210. },
  21211. "metadata": {
  21212. "type": "object"
  21213. },
  21214. "type": {
  21215. "type": "string",
  21216. "enum": ["pty.deleted"]
  21217. },
  21218. "location": {
  21219. "$ref": "#/components/schemas/Location.Ref"
  21220. },
  21221. "data": {
  21222. "type": "object",
  21223. "properties": {
  21224. "id": {
  21225. "type": "string",
  21226. "allOf": [
  21227. {
  21228. "pattern": "^pty"
  21229. }
  21230. ]
  21231. }
  21232. },
  21233. "required": ["id"],
  21234. "additionalProperties": false
  21235. }
  21236. },
  21237. "required": ["id", "created", "type", "data"],
  21238. "additionalProperties": false
  21239. },
  21240. "shell.created": {
  21241. "type": "object",
  21242. "properties": {
  21243. "id": {
  21244. "type": "string",
  21245. "allOf": [
  21246. {
  21247. "pattern": "^evt_"
  21248. }
  21249. ]
  21250. },
  21251. "created": {
  21252. "type": "number"
  21253. },
  21254. "metadata": {
  21255. "type": "object"
  21256. },
  21257. "type": {
  21258. "type": "string",
  21259. "enum": ["shell.created"]
  21260. },
  21261. "location": {
  21262. "$ref": "#/components/schemas/Location.Ref"
  21263. },
  21264. "data": {
  21265. "type": "object",
  21266. "properties": {
  21267. "info": {
  21268. "$ref": "#/components/schemas/Shell.Info"
  21269. }
  21270. },
  21271. "required": ["info"],
  21272. "additionalProperties": false
  21273. }
  21274. },
  21275. "required": ["id", "created", "type", "data"],
  21276. "additionalProperties": false
  21277. },
  21278. "shell.exited": {
  21279. "type": "object",
  21280. "properties": {
  21281. "id": {
  21282. "type": "string",
  21283. "allOf": [
  21284. {
  21285. "pattern": "^evt_"
  21286. }
  21287. ]
  21288. },
  21289. "created": {
  21290. "type": "number"
  21291. },
  21292. "metadata": {
  21293. "type": "object"
  21294. },
  21295. "type": {
  21296. "type": "string",
  21297. "enum": ["shell.exited"]
  21298. },
  21299. "location": {
  21300. "$ref": "#/components/schemas/Location.Ref"
  21301. },
  21302. "data": {
  21303. "type": "object",
  21304. "properties": {
  21305. "id": {
  21306. "type": "string",
  21307. "allOf": [
  21308. {
  21309. "pattern": "^sh_"
  21310. }
  21311. ]
  21312. },
  21313. "exit": {
  21314. "type": "number"
  21315. },
  21316. "status": {
  21317. "type": "string",
  21318. "enum": ["running", "exited", "timeout", "killed"]
  21319. }
  21320. },
  21321. "required": ["id", "status"],
  21322. "additionalProperties": false
  21323. }
  21324. },
  21325. "required": ["id", "created", "type", "data"],
  21326. "additionalProperties": false
  21327. },
  21328. "shell.deleted": {
  21329. "type": "object",
  21330. "properties": {
  21331. "id": {
  21332. "type": "string",
  21333. "allOf": [
  21334. {
  21335. "pattern": "^evt_"
  21336. }
  21337. ]
  21338. },
  21339. "created": {
  21340. "type": "number"
  21341. },
  21342. "metadata": {
  21343. "type": "object"
  21344. },
  21345. "type": {
  21346. "type": "string",
  21347. "enum": ["shell.deleted"]
  21348. },
  21349. "location": {
  21350. "$ref": "#/components/schemas/Location.Ref"
  21351. },
  21352. "data": {
  21353. "type": "object",
  21354. "properties": {
  21355. "id": {
  21356. "type": "string",
  21357. "allOf": [
  21358. {
  21359. "pattern": "^sh_"
  21360. }
  21361. ]
  21362. }
  21363. },
  21364. "required": ["id"],
  21365. "additionalProperties": false
  21366. }
  21367. },
  21368. "required": ["id", "created", "type", "data"],
  21369. "additionalProperties": false
  21370. },
  21371. "Form.Metadata1": {
  21372. "type": "object"
  21373. },
  21374. "Form.When1": {
  21375. "type": "object",
  21376. "properties": {
  21377. "key": {
  21378. "type": "string"
  21379. },
  21380. "op": {
  21381. "type": "string",
  21382. "enum": ["eq", "neq"]
  21383. },
  21384. "value": {
  21385. "anyOf": [
  21386. {
  21387. "type": "string"
  21388. },
  21389. {
  21390. "anyOf": [
  21391. {
  21392. "type": "number"
  21393. },
  21394. {
  21395. "type": "string",
  21396. "enum": ["NaN"]
  21397. },
  21398. {
  21399. "type": "string",
  21400. "enum": ["Infinity"]
  21401. },
  21402. {
  21403. "type": "string",
  21404. "enum": ["-Infinity"]
  21405. }
  21406. ]
  21407. },
  21408. {
  21409. "type": "boolean"
  21410. }
  21411. ]
  21412. }
  21413. },
  21414. "required": ["key", "op", "value"],
  21415. "additionalProperties": false
  21416. },
  21417. "Form.StringField1": {
  21418. "type": "object",
  21419. "properties": {
  21420. "key": {
  21421. "type": "string"
  21422. },
  21423. "title": {
  21424. "type": "string"
  21425. },
  21426. "description": {
  21427. "type": "string"
  21428. },
  21429. "required": {
  21430. "type": "boolean"
  21431. },
  21432. "when": {
  21433. "type": "array",
  21434. "items": {
  21435. "$ref": "#/components/schemas/Form.When1"
  21436. }
  21437. },
  21438. "type": {
  21439. "type": "string",
  21440. "enum": ["string"]
  21441. },
  21442. "format": {
  21443. "type": "string",
  21444. "enum": ["email", "uri", "date", "date-time"]
  21445. },
  21446. "minLength": {
  21447. "type": "integer",
  21448. "allOf": [
  21449. {
  21450. "minimum": 0
  21451. }
  21452. ]
  21453. },
  21454. "maxLength": {
  21455. "type": "integer",
  21456. "allOf": [
  21457. {
  21458. "minimum": 0
  21459. }
  21460. ]
  21461. },
  21462. "pattern": {
  21463. "type": "string"
  21464. },
  21465. "placeholder": {
  21466. "type": "string"
  21467. },
  21468. "default": {
  21469. "type": "string"
  21470. },
  21471. "options": {
  21472. "type": "array",
  21473. "items": {
  21474. "$ref": "#/components/schemas/Form.Option"
  21475. }
  21476. },
  21477. "custom": {
  21478. "type": "boolean"
  21479. }
  21480. },
  21481. "required": ["key", "type"],
  21482. "additionalProperties": false
  21483. },
  21484. "Form.NumberField1": {
  21485. "type": "object",
  21486. "properties": {
  21487. "key": {
  21488. "type": "string"
  21489. },
  21490. "title": {
  21491. "type": "string"
  21492. },
  21493. "description": {
  21494. "type": "string"
  21495. },
  21496. "required": {
  21497. "type": "boolean"
  21498. },
  21499. "when": {
  21500. "type": "array",
  21501. "items": {
  21502. "$ref": "#/components/schemas/Form.When1"
  21503. }
  21504. },
  21505. "type": {
  21506. "type": "string",
  21507. "enum": ["number"]
  21508. },
  21509. "minimum": {
  21510. "anyOf": [
  21511. {
  21512. "type": "number"
  21513. },
  21514. {
  21515. "type": "string",
  21516. "enum": ["NaN"]
  21517. },
  21518. {
  21519. "type": "string",
  21520. "enum": ["Infinity"]
  21521. },
  21522. {
  21523. "type": "string",
  21524. "enum": ["-Infinity"]
  21525. }
  21526. ]
  21527. },
  21528. "maximum": {
  21529. "anyOf": [
  21530. {
  21531. "type": "number"
  21532. },
  21533. {
  21534. "type": "string",
  21535. "enum": ["NaN"]
  21536. },
  21537. {
  21538. "type": "string",
  21539. "enum": ["Infinity"]
  21540. },
  21541. {
  21542. "type": "string",
  21543. "enum": ["-Infinity"]
  21544. }
  21545. ]
  21546. },
  21547. "default": {
  21548. "anyOf": [
  21549. {
  21550. "type": "number"
  21551. },
  21552. {
  21553. "type": "string",
  21554. "enum": ["NaN"]
  21555. },
  21556. {
  21557. "type": "string",
  21558. "enum": ["Infinity"]
  21559. },
  21560. {
  21561. "type": "string",
  21562. "enum": ["-Infinity"]
  21563. }
  21564. ]
  21565. }
  21566. },
  21567. "required": ["key", "type"],
  21568. "additionalProperties": false
  21569. },
  21570. "Form.IntegerField1": {
  21571. "type": "object",
  21572. "properties": {
  21573. "key": {
  21574. "type": "string"
  21575. },
  21576. "title": {
  21577. "type": "string"
  21578. },
  21579. "description": {
  21580. "type": "string"
  21581. },
  21582. "required": {
  21583. "type": "boolean"
  21584. },
  21585. "when": {
  21586. "type": "array",
  21587. "items": {
  21588. "$ref": "#/components/schemas/Form.When1"
  21589. }
  21590. },
  21591. "type": {
  21592. "type": "string",
  21593. "enum": ["integer"]
  21594. },
  21595. "minimum": {
  21596. "anyOf": [
  21597. {
  21598. "type": "number"
  21599. },
  21600. {
  21601. "type": "string",
  21602. "enum": ["NaN"]
  21603. },
  21604. {
  21605. "type": "string",
  21606. "enum": ["Infinity"]
  21607. },
  21608. {
  21609. "type": "string",
  21610. "enum": ["-Infinity"]
  21611. }
  21612. ]
  21613. },
  21614. "maximum": {
  21615. "anyOf": [
  21616. {
  21617. "type": "number"
  21618. },
  21619. {
  21620. "type": "string",
  21621. "enum": ["NaN"]
  21622. },
  21623. {
  21624. "type": "string",
  21625. "enum": ["Infinity"]
  21626. },
  21627. {
  21628. "type": "string",
  21629. "enum": ["-Infinity"]
  21630. }
  21631. ]
  21632. },
  21633. "default": {
  21634. "anyOf": [
  21635. {
  21636. "type": "number"
  21637. },
  21638. {
  21639. "type": "string",
  21640. "enum": ["NaN"]
  21641. },
  21642. {
  21643. "type": "string",
  21644. "enum": ["Infinity"]
  21645. },
  21646. {
  21647. "type": "string",
  21648. "enum": ["-Infinity"]
  21649. }
  21650. ]
  21651. }
  21652. },
  21653. "required": ["key", "type"],
  21654. "additionalProperties": false
  21655. },
  21656. "Form.BooleanField1": {
  21657. "type": "object",
  21658. "properties": {
  21659. "key": {
  21660. "type": "string"
  21661. },
  21662. "title": {
  21663. "type": "string"
  21664. },
  21665. "description": {
  21666. "type": "string"
  21667. },
  21668. "required": {
  21669. "type": "boolean"
  21670. },
  21671. "when": {
  21672. "type": "array",
  21673. "items": {
  21674. "$ref": "#/components/schemas/Form.When1"
  21675. }
  21676. },
  21677. "type": {
  21678. "type": "string",
  21679. "enum": ["boolean"]
  21680. },
  21681. "default": {
  21682. "type": "boolean"
  21683. }
  21684. },
  21685. "required": ["key", "type"],
  21686. "additionalProperties": false
  21687. },
  21688. "Form.MultiselectField1": {
  21689. "type": "object",
  21690. "properties": {
  21691. "key": {
  21692. "type": "string"
  21693. },
  21694. "title": {
  21695. "type": "string"
  21696. },
  21697. "description": {
  21698. "type": "string"
  21699. },
  21700. "required": {
  21701. "type": "boolean"
  21702. },
  21703. "when": {
  21704. "type": "array",
  21705. "items": {
  21706. "$ref": "#/components/schemas/Form.When1"
  21707. }
  21708. },
  21709. "type": {
  21710. "type": "string",
  21711. "enum": ["multiselect"]
  21712. },
  21713. "options": {
  21714. "type": "array",
  21715. "items": {
  21716. "$ref": "#/components/schemas/Form.Option"
  21717. }
  21718. },
  21719. "minItems": {
  21720. "type": "integer",
  21721. "allOf": [
  21722. {
  21723. "minimum": 0
  21724. }
  21725. ]
  21726. },
  21727. "maxItems": {
  21728. "type": "integer",
  21729. "allOf": [
  21730. {
  21731. "minimum": 0
  21732. }
  21733. ]
  21734. },
  21735. "custom": {
  21736. "type": "boolean"
  21737. },
  21738. "default": {
  21739. "type": "array",
  21740. "items": {
  21741. "type": "string"
  21742. }
  21743. }
  21744. },
  21745. "required": ["key", "type", "options"],
  21746. "additionalProperties": false
  21747. },
  21748. "Form.Field1": {
  21749. "anyOf": [
  21750. {
  21751. "$ref": "#/components/schemas/Form.StringField1"
  21752. },
  21753. {
  21754. "$ref": "#/components/schemas/Form.NumberField1"
  21755. },
  21756. {
  21757. "$ref": "#/components/schemas/Form.IntegerField1"
  21758. },
  21759. {
  21760. "$ref": "#/components/schemas/Form.BooleanField1"
  21761. },
  21762. {
  21763. "$ref": "#/components/schemas/Form.MultiselectField1"
  21764. },
  21765. {
  21766. "$ref": "#/components/schemas/Form.ExternalField"
  21767. }
  21768. ]
  21769. },
  21770. "Form.Fields3": {
  21771. "type": "array",
  21772. "prefixItems": [
  21773. {
  21774. "$ref": "#/components/schemas/Form.Field1"
  21775. }
  21776. ],
  21777. "minItems": 1,
  21778. "items": {
  21779. "$ref": "#/components/schemas/Form.Field1"
  21780. }
  21781. },
  21782. "Form.Info1": {
  21783. "type": "object",
  21784. "properties": {
  21785. "id": {
  21786. "type": "string",
  21787. "allOf": [
  21788. {
  21789. "pattern": "^frm_"
  21790. }
  21791. ]
  21792. },
  21793. "sessionID": {
  21794. "type": "string"
  21795. },
  21796. "title": {
  21797. "type": "string"
  21798. },
  21799. "metadata": {
  21800. "$ref": "#/components/schemas/Form.Metadata1"
  21801. },
  21802. "fields": {
  21803. "$ref": "#/components/schemas/Form.Fields3"
  21804. }
  21805. },
  21806. "required": ["id", "sessionID", "title", "fields"],
  21807. "additionalProperties": false
  21808. },
  21809. "form.created": {
  21810. "type": "object",
  21811. "properties": {
  21812. "id": {
  21813. "type": "string",
  21814. "allOf": [
  21815. {
  21816. "pattern": "^evt_"
  21817. }
  21818. ]
  21819. },
  21820. "created": {
  21821. "type": "number"
  21822. },
  21823. "metadata": {
  21824. "type": "object"
  21825. },
  21826. "type": {
  21827. "type": "string",
  21828. "enum": ["form.created"]
  21829. },
  21830. "location": {
  21831. "$ref": "#/components/schemas/Location.Ref"
  21832. },
  21833. "data": {
  21834. "type": "object",
  21835. "properties": {
  21836. "form": {
  21837. "$ref": "#/components/schemas/Form.Info1"
  21838. }
  21839. },
  21840. "required": ["form"],
  21841. "additionalProperties": false
  21842. }
  21843. },
  21844. "required": ["id", "created", "type", "data"],
  21845. "additionalProperties": false
  21846. },
  21847. "Form.Value1": {
  21848. "anyOf": [
  21849. {
  21850. "type": "string"
  21851. },
  21852. {
  21853. "anyOf": [
  21854. {
  21855. "type": "number"
  21856. },
  21857. {
  21858. "type": "string",
  21859. "enum": ["NaN"]
  21860. },
  21861. {
  21862. "type": "string",
  21863. "enum": ["Infinity"]
  21864. },
  21865. {
  21866. "type": "string",
  21867. "enum": ["-Infinity"]
  21868. }
  21869. ]
  21870. },
  21871. {
  21872. "type": "boolean"
  21873. },
  21874. {
  21875. "type": "array",
  21876. "items": {
  21877. "type": "string"
  21878. }
  21879. }
  21880. ]
  21881. },
  21882. "Form.Answer1": {
  21883. "type": "object",
  21884. "additionalProperties": {
  21885. "$ref": "#/components/schemas/Form.Value1"
  21886. }
  21887. },
  21888. "form.replied": {
  21889. "type": "object",
  21890. "properties": {
  21891. "id": {
  21892. "type": "string",
  21893. "allOf": [
  21894. {
  21895. "pattern": "^evt_"
  21896. }
  21897. ]
  21898. },
  21899. "created": {
  21900. "type": "number"
  21901. },
  21902. "metadata": {
  21903. "type": "object"
  21904. },
  21905. "type": {
  21906. "type": "string",
  21907. "enum": ["form.replied"]
  21908. },
  21909. "location": {
  21910. "$ref": "#/components/schemas/Location.Ref"
  21911. },
  21912. "data": {
  21913. "type": "object",
  21914. "properties": {
  21915. "id": {
  21916. "type": "string",
  21917. "allOf": [
  21918. {
  21919. "pattern": "^frm_"
  21920. }
  21921. ]
  21922. },
  21923. "sessionID": {
  21924. "type": "string"
  21925. },
  21926. "answer": {
  21927. "$ref": "#/components/schemas/Form.Answer1"
  21928. }
  21929. },
  21930. "required": ["id", "sessionID", "answer"],
  21931. "additionalProperties": false
  21932. }
  21933. },
  21934. "required": ["id", "created", "type", "data"],
  21935. "additionalProperties": false
  21936. },
  21937. "form.cancelled": {
  21938. "type": "object",
  21939. "properties": {
  21940. "id": {
  21941. "type": "string",
  21942. "allOf": [
  21943. {
  21944. "pattern": "^evt_"
  21945. }
  21946. ]
  21947. },
  21948. "created": {
  21949. "type": "number"
  21950. },
  21951. "metadata": {
  21952. "type": "object"
  21953. },
  21954. "type": {
  21955. "type": "string",
  21956. "enum": ["form.cancelled"]
  21957. },
  21958. "location": {
  21959. "$ref": "#/components/schemas/Location.Ref"
  21960. },
  21961. "data": {
  21962. "type": "object",
  21963. "properties": {
  21964. "id": {
  21965. "type": "string",
  21966. "allOf": [
  21967. {
  21968. "pattern": "^frm_"
  21969. }
  21970. ]
  21971. },
  21972. "sessionID": {
  21973. "type": "string"
  21974. }
  21975. },
  21976. "required": ["id", "sessionID"],
  21977. "additionalProperties": false
  21978. }
  21979. },
  21980. "required": ["id", "created", "type", "data"],
  21981. "additionalProperties": false
  21982. },
  21983. "websearch.updated": {
  21984. "type": "object",
  21985. "properties": {
  21986. "id": {
  21987. "type": "string",
  21988. "allOf": [
  21989. {
  21990. "pattern": "^evt_"
  21991. }
  21992. ]
  21993. },
  21994. "created": {
  21995. "type": "number"
  21996. },
  21997. "metadata": {
  21998. "type": "object"
  21999. },
  22000. "type": {
  22001. "type": "string",
  22002. "enum": ["websearch.updated"]
  22003. },
  22004. "location": {
  22005. "$ref": "#/components/schemas/Location.Ref"
  22006. },
  22007. "data": {
  22008. "anyOf": [
  22009. {
  22010. "type": "object"
  22011. },
  22012. {
  22013. "type": "array"
  22014. }
  22015. ]
  22016. }
  22017. },
  22018. "required": ["id", "created", "type", "data"],
  22019. "additionalProperties": false
  22020. },
  22021. "SessionStatus": {
  22022. "anyOf": [
  22023. {
  22024. "type": "object",
  22025. "properties": {
  22026. "type": {
  22027. "type": "string",
  22028. "enum": ["idle"]
  22029. }
  22030. },
  22031. "required": ["type"],
  22032. "additionalProperties": false
  22033. },
  22034. {
  22035. "type": "object",
  22036. "properties": {
  22037. "type": {
  22038. "type": "string",
  22039. "enum": ["retry"]
  22040. },
  22041. "attempt": {
  22042. "type": "integer",
  22043. "allOf": [
  22044. {
  22045. "minimum": 0
  22046. }
  22047. ]
  22048. },
  22049. "message": {
  22050. "type": "string"
  22051. },
  22052. "action": {
  22053. "type": "object",
  22054. "properties": {
  22055. "reason": {
  22056. "type": "string"
  22057. },
  22058. "provider": {
  22059. "type": "string"
  22060. },
  22061. "title": {
  22062. "type": "string"
  22063. },
  22064. "message": {
  22065. "type": "string"
  22066. },
  22067. "label": {
  22068. "type": "string"
  22069. },
  22070. "link": {
  22071. "type": "string"
  22072. }
  22073. },
  22074. "required": ["reason", "provider", "title", "message", "label"],
  22075. "additionalProperties": false
  22076. },
  22077. "next": {
  22078. "type": "integer",
  22079. "allOf": [
  22080. {
  22081. "minimum": 0
  22082. }
  22083. ]
  22084. }
  22085. },
  22086. "required": ["type", "attempt", "message", "next"],
  22087. "additionalProperties": false
  22088. },
  22089. {
  22090. "type": "object",
  22091. "properties": {
  22092. "type": {
  22093. "type": "string",
  22094. "enum": ["busy"]
  22095. }
  22096. },
  22097. "required": ["type"],
  22098. "additionalProperties": false
  22099. }
  22100. ]
  22101. },
  22102. "session.status": {
  22103. "type": "object",
  22104. "properties": {
  22105. "id": {
  22106. "type": "string",
  22107. "allOf": [
  22108. {
  22109. "pattern": "^evt_"
  22110. }
  22111. ]
  22112. },
  22113. "created": {
  22114. "type": "number"
  22115. },
  22116. "metadata": {
  22117. "type": "object"
  22118. },
  22119. "type": {
  22120. "type": "string",
  22121. "enum": ["session.status"]
  22122. },
  22123. "location": {
  22124. "$ref": "#/components/schemas/Location.Ref"
  22125. },
  22126. "data": {
  22127. "type": "object",
  22128. "properties": {
  22129. "sessionID": {
  22130. "type": "string",
  22131. "allOf": [
  22132. {
  22133. "pattern": "^ses"
  22134. }
  22135. ]
  22136. },
  22137. "status": {
  22138. "$ref": "#/components/schemas/SessionStatus"
  22139. }
  22140. },
  22141. "required": ["sessionID", "status"],
  22142. "additionalProperties": false
  22143. }
  22144. },
  22145. "required": ["id", "created", "type", "data"],
  22146. "additionalProperties": false
  22147. },
  22148. "session.idle": {
  22149. "type": "object",
  22150. "properties": {
  22151. "id": {
  22152. "type": "string",
  22153. "allOf": [
  22154. {
  22155. "pattern": "^evt_"
  22156. }
  22157. ]
  22158. },
  22159. "created": {
  22160. "type": "number"
  22161. },
  22162. "metadata": {
  22163. "type": "object"
  22164. },
  22165. "type": {
  22166. "type": "string",
  22167. "enum": ["session.idle"]
  22168. },
  22169. "location": {
  22170. "$ref": "#/components/schemas/Location.Ref"
  22171. },
  22172. "data": {
  22173. "type": "object",
  22174. "properties": {
  22175. "sessionID": {
  22176. "type": "string",
  22177. "allOf": [
  22178. {
  22179. "pattern": "^ses"
  22180. }
  22181. ]
  22182. }
  22183. },
  22184. "required": ["sessionID"],
  22185. "additionalProperties": false
  22186. }
  22187. },
  22188. "required": ["id", "created", "type", "data"],
  22189. "additionalProperties": false
  22190. },
  22191. "tui.prompt.append": {
  22192. "type": "object",
  22193. "properties": {
  22194. "id": {
  22195. "type": "string",
  22196. "allOf": [
  22197. {
  22198. "pattern": "^evt_"
  22199. }
  22200. ]
  22201. },
  22202. "created": {
  22203. "type": "number"
  22204. },
  22205. "metadata": {
  22206. "type": "object"
  22207. },
  22208. "type": {
  22209. "type": "string",
  22210. "enum": ["tui.prompt.append"]
  22211. },
  22212. "location": {
  22213. "$ref": "#/components/schemas/Location.Ref"
  22214. },
  22215. "data": {
  22216. "type": "object",
  22217. "properties": {
  22218. "text": {
  22219. "type": "string"
  22220. }
  22221. },
  22222. "required": ["text"],
  22223. "additionalProperties": false
  22224. }
  22225. },
  22226. "required": ["id", "created", "type", "data"],
  22227. "additionalProperties": false
  22228. },
  22229. "tui.command.execute": {
  22230. "type": "object",
  22231. "properties": {
  22232. "id": {
  22233. "type": "string",
  22234. "allOf": [
  22235. {
  22236. "pattern": "^evt_"
  22237. }
  22238. ]
  22239. },
  22240. "created": {
  22241. "type": "number"
  22242. },
  22243. "metadata": {
  22244. "type": "object"
  22245. },
  22246. "type": {
  22247. "type": "string",
  22248. "enum": ["tui.command.execute"]
  22249. },
  22250. "location": {
  22251. "$ref": "#/components/schemas/Location.Ref"
  22252. },
  22253. "data": {
  22254. "type": "object",
  22255. "properties": {
  22256. "command": {
  22257. "anyOf": [
  22258. {
  22259. "type": "string",
  22260. "enum": [
  22261. "session.list",
  22262. "session.new",
  22263. "session.share",
  22264. "session.interrupt",
  22265. "session.background",
  22266. "session.compact",
  22267. "session.page.up",
  22268. "session.page.down",
  22269. "session.line.up",
  22270. "session.line.down",
  22271. "session.half.page.up",
  22272. "session.half.page.down",
  22273. "session.first",
  22274. "session.last",
  22275. "prompt.clear",
  22276. "prompt.submit",
  22277. "agent.cycle"
  22278. ]
  22279. },
  22280. {
  22281. "type": "string"
  22282. }
  22283. ]
  22284. }
  22285. },
  22286. "required": ["command"],
  22287. "additionalProperties": false
  22288. }
  22289. },
  22290. "required": ["id", "created", "type", "data"],
  22291. "additionalProperties": false
  22292. },
  22293. "tui.toast.show": {
  22294. "type": "object",
  22295. "properties": {
  22296. "id": {
  22297. "type": "string",
  22298. "allOf": [
  22299. {
  22300. "pattern": "^evt_"
  22301. }
  22302. ]
  22303. },
  22304. "created": {
  22305. "type": "number"
  22306. },
  22307. "metadata": {
  22308. "type": "object"
  22309. },
  22310. "type": {
  22311. "type": "string",
  22312. "enum": ["tui.toast.show"]
  22313. },
  22314. "location": {
  22315. "$ref": "#/components/schemas/Location.Ref"
  22316. },
  22317. "data": {
  22318. "type": "object",
  22319. "properties": {
  22320. "title": {
  22321. "type": "string"
  22322. },
  22323. "message": {
  22324. "type": "string"
  22325. },
  22326. "variant": {
  22327. "type": "string",
  22328. "enum": ["info", "success", "warning", "error"]
  22329. },
  22330. "duration": {
  22331. "anyOf": [
  22332. {
  22333. "type": "integer",
  22334. "allOf": [
  22335. {
  22336. "exclusiveMinimum": 0
  22337. }
  22338. ]
  22339. },
  22340. {
  22341. "type": "null"
  22342. }
  22343. ]
  22344. }
  22345. },
  22346. "required": ["message", "variant"],
  22347. "additionalProperties": false
  22348. }
  22349. },
  22350. "required": ["id", "created", "type", "data"],
  22351. "additionalProperties": false
  22352. },
  22353. "tui.session.select": {
  22354. "type": "object",
  22355. "properties": {
  22356. "id": {
  22357. "type": "string",
  22358. "allOf": [
  22359. {
  22360. "pattern": "^evt_"
  22361. }
  22362. ]
  22363. },
  22364. "created": {
  22365. "type": "number"
  22366. },
  22367. "metadata": {
  22368. "type": "object"
  22369. },
  22370. "type": {
  22371. "type": "string",
  22372. "enum": ["tui.session.select"]
  22373. },
  22374. "location": {
  22375. "$ref": "#/components/schemas/Location.Ref"
  22376. },
  22377. "data": {
  22378. "type": "object",
  22379. "properties": {
  22380. "sessionID": {
  22381. "type": "string",
  22382. "allOf": [
  22383. {
  22384. "pattern": "^ses",
  22385. "description": "Session ID to navigate to"
  22386. }
  22387. ]
  22388. }
  22389. },
  22390. "required": ["sessionID"],
  22391. "additionalProperties": false
  22392. }
  22393. },
  22394. "required": ["id", "created", "type", "data"],
  22395. "additionalProperties": false
  22396. },
  22397. "installation.updated": {
  22398. "type": "object",
  22399. "properties": {
  22400. "id": {
  22401. "type": "string",
  22402. "allOf": [
  22403. {
  22404. "pattern": "^evt_"
  22405. }
  22406. ]
  22407. },
  22408. "created": {
  22409. "type": "number"
  22410. },
  22411. "metadata": {
  22412. "type": "object"
  22413. },
  22414. "type": {
  22415. "type": "string",
  22416. "enum": ["installation.updated"]
  22417. },
  22418. "location": {
  22419. "$ref": "#/components/schemas/Location.Ref"
  22420. },
  22421. "data": {
  22422. "type": "object",
  22423. "properties": {
  22424. "version": {
  22425. "type": "string"
  22426. }
  22427. },
  22428. "required": ["version"],
  22429. "additionalProperties": false
  22430. }
  22431. },
  22432. "required": ["id", "created", "type", "data"],
  22433. "additionalProperties": false
  22434. },
  22435. "installation.update-available": {
  22436. "type": "object",
  22437. "properties": {
  22438. "id": {
  22439. "type": "string",
  22440. "allOf": [
  22441. {
  22442. "pattern": "^evt_"
  22443. }
  22444. ]
  22445. },
  22446. "created": {
  22447. "type": "number"
  22448. },
  22449. "metadata": {
  22450. "type": "object"
  22451. },
  22452. "type": {
  22453. "type": "string",
  22454. "enum": ["installation.update-available"]
  22455. },
  22456. "location": {
  22457. "$ref": "#/components/schemas/Location.Ref"
  22458. },
  22459. "data": {
  22460. "type": "object",
  22461. "properties": {
  22462. "version": {
  22463. "type": "string"
  22464. }
  22465. },
  22466. "required": ["version"],
  22467. "additionalProperties": false
  22468. }
  22469. },
  22470. "required": ["id", "created", "type", "data"],
  22471. "additionalProperties": false
  22472. },
  22473. "vcs.branch.updated": {
  22474. "type": "object",
  22475. "properties": {
  22476. "id": {
  22477. "type": "string",
  22478. "allOf": [
  22479. {
  22480. "pattern": "^evt_"
  22481. }
  22482. ]
  22483. },
  22484. "created": {
  22485. "type": "number"
  22486. },
  22487. "metadata": {
  22488. "type": "object"
  22489. },
  22490. "type": {
  22491. "type": "string",
  22492. "enum": ["vcs.branch.updated"]
  22493. },
  22494. "location": {
  22495. "$ref": "#/components/schemas/Location.Ref"
  22496. },
  22497. "data": {
  22498. "type": "object",
  22499. "properties": {
  22500. "branch": {
  22501. "type": "string"
  22502. }
  22503. },
  22504. "additionalProperties": false
  22505. }
  22506. },
  22507. "required": ["id", "created", "type", "data"],
  22508. "additionalProperties": false
  22509. },
  22510. "mcp.status.changed": {
  22511. "type": "object",
  22512. "properties": {
  22513. "id": {
  22514. "type": "string",
  22515. "allOf": [
  22516. {
  22517. "pattern": "^evt_"
  22518. }
  22519. ]
  22520. },
  22521. "created": {
  22522. "type": "number"
  22523. },
  22524. "metadata": {
  22525. "type": "object"
  22526. },
  22527. "type": {
  22528. "type": "string",
  22529. "enum": ["mcp.status.changed"]
  22530. },
  22531. "location": {
  22532. "$ref": "#/components/schemas/Location.Ref"
  22533. },
  22534. "data": {
  22535. "type": "object",
  22536. "properties": {
  22537. "server": {
  22538. "type": "string"
  22539. }
  22540. },
  22541. "required": ["server"],
  22542. "additionalProperties": false
  22543. }
  22544. },
  22545. "required": ["id", "created", "type", "data"],
  22546. "additionalProperties": false
  22547. },
  22548. "mcp.resources.changed": {
  22549. "type": "object",
  22550. "properties": {
  22551. "id": {
  22552. "type": "string",
  22553. "allOf": [
  22554. {
  22555. "pattern": "^evt_"
  22556. }
  22557. ]
  22558. },
  22559. "created": {
  22560. "type": "number"
  22561. },
  22562. "metadata": {
  22563. "type": "object"
  22564. },
  22565. "type": {
  22566. "type": "string",
  22567. "enum": ["mcp.resources.changed"]
  22568. },
  22569. "location": {
  22570. "$ref": "#/components/schemas/Location.Ref"
  22571. },
  22572. "data": {
  22573. "type": "object",
  22574. "properties": {
  22575. "server": {
  22576. "type": "string"
  22577. }
  22578. },
  22579. "required": ["server"],
  22580. "additionalProperties": false
  22581. }
  22582. },
  22583. "required": ["id", "created", "type", "data"],
  22584. "additionalProperties": false
  22585. },
  22586. "V2Event.server.connected": {
  22587. "type": "object",
  22588. "properties": {
  22589. "id": {
  22590. "type": "string",
  22591. "allOf": [
  22592. {
  22593. "pattern": "^evt_"
  22594. }
  22595. ]
  22596. },
  22597. "metadata": {
  22598. "anyOf": [
  22599. {
  22600. "type": "object"
  22601. },
  22602. {
  22603. "type": "null"
  22604. }
  22605. ]
  22606. },
  22607. "location": {
  22608. "anyOf": [
  22609. {
  22610. "$ref": "#/components/schemas/Location.Ref"
  22611. },
  22612. {
  22613. "type": "null"
  22614. }
  22615. ]
  22616. },
  22617. "type": {
  22618. "type": "string",
  22619. "enum": ["server.connected"]
  22620. },
  22621. "data": {
  22622. "anyOf": [
  22623. {
  22624. "type": "object"
  22625. },
  22626. {
  22627. "type": "array"
  22628. }
  22629. ]
  22630. }
  22631. },
  22632. "required": ["id", "type", "data"],
  22633. "additionalProperties": false
  22634. },
  22635. "V2Event": {
  22636. "anyOf": [
  22637. {
  22638. "$ref": "#/components/schemas/models-dev.refreshed"
  22639. },
  22640. {
  22641. "$ref": "#/components/schemas/integration.updated"
  22642. },
  22643. {
  22644. "$ref": "#/components/schemas/integration.connection.updated"
  22645. },
  22646. {
  22647. "$ref": "#/components/schemas/catalog.updated"
  22648. },
  22649. {
  22650. "$ref": "#/components/schemas/agent.updated"
  22651. },
  22652. {
  22653. "$ref": "#/components/schemas/session.created"
  22654. },
  22655. {
  22656. "$ref": "#/components/schemas/session.agent.selected"
  22657. },
  22658. {
  22659. "$ref": "#/components/schemas/session.model.selected"
  22660. },
  22661. {
  22662. "$ref": "#/components/schemas/session.moved"
  22663. },
  22664. {
  22665. "$ref": "#/components/schemas/session.renamed"
  22666. },
  22667. {
  22668. "$ref": "#/components/schemas/session.usage.updated"
  22669. },
  22670. {
  22671. "$ref": "#/components/schemas/session.deleted"
  22672. },
  22673. {
  22674. "$ref": "#/components/schemas/session.forked"
  22675. },
  22676. {
  22677. "$ref": "#/components/schemas/session.inbox.delivered"
  22678. },
  22679. {
  22680. "$ref": "#/components/schemas/session.inbox.enqueued"
  22681. },
  22682. {
  22683. "$ref": "#/components/schemas/session.inbox.cancelled"
  22684. },
  22685. {
  22686. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  22687. },
  22688. {
  22689. "$ref": "#/components/schemas/session.execution.started"
  22690. },
  22691. {
  22692. "$ref": "#/components/schemas/session.execution.succeeded"
  22693. },
  22694. {
  22695. "$ref": "#/components/schemas/session.execution.failed"
  22696. },
  22697. {
  22698. "$ref": "#/components/schemas/session.execution.interrupted"
  22699. },
  22700. {
  22701. "$ref": "#/components/schemas/session.instructions.updated"
  22702. },
  22703. {
  22704. "$ref": "#/components/schemas/session.synthetic"
  22705. },
  22706. {
  22707. "$ref": "#/components/schemas/session.skill.activated"
  22708. },
  22709. {
  22710. "$ref": "#/components/schemas/session.shell.started"
  22711. },
  22712. {
  22713. "$ref": "#/components/schemas/session.shell.ended"
  22714. },
  22715. {
  22716. "$ref": "#/components/schemas/session.step.started"
  22717. },
  22718. {
  22719. "$ref": "#/components/schemas/session.step.ended"
  22720. },
  22721. {
  22722. "$ref": "#/components/schemas/session.step.failed"
  22723. },
  22724. {
  22725. "$ref": "#/components/schemas/session.text.started"
  22726. },
  22727. {
  22728. "$ref": "#/components/schemas/session.text.delta"
  22729. },
  22730. {
  22731. "$ref": "#/components/schemas/session.text.ended"
  22732. },
  22733. {
  22734. "$ref": "#/components/schemas/session.reasoning.started"
  22735. },
  22736. {
  22737. "$ref": "#/components/schemas/session.reasoning.delta"
  22738. },
  22739. {
  22740. "$ref": "#/components/schemas/session.reasoning.ended"
  22741. },
  22742. {
  22743. "$ref": "#/components/schemas/session.tool.input.started"
  22744. },
  22745. {
  22746. "$ref": "#/components/schemas/session.tool.input.delta"
  22747. },
  22748. {
  22749. "$ref": "#/components/schemas/session.tool.input.ended"
  22750. },
  22751. {
  22752. "$ref": "#/components/schemas/session.tool.called"
  22753. },
  22754. {
  22755. "$ref": "#/components/schemas/session.tool.progress"
  22756. },
  22757. {
  22758. "$ref": "#/components/schemas/session.tool.success"
  22759. },
  22760. {
  22761. "$ref": "#/components/schemas/session.tool.failed"
  22762. },
  22763. {
  22764. "$ref": "#/components/schemas/session.retry.scheduled"
  22765. },
  22766. {
  22767. "$ref": "#/components/schemas/session.compaction.started"
  22768. },
  22769. {
  22770. "$ref": "#/components/schemas/session.compaction.delta"
  22771. },
  22772. {
  22773. "$ref": "#/components/schemas/session.compaction.ended"
  22774. },
  22775. {
  22776. "$ref": "#/components/schemas/session.compaction.failed"
  22777. },
  22778. {
  22779. "$ref": "#/components/schemas/session.revert.staged"
  22780. },
  22781. {
  22782. "$ref": "#/components/schemas/session.revert.cleared"
  22783. },
  22784. {
  22785. "$ref": "#/components/schemas/session.revert.committed"
  22786. },
  22787. {
  22788. "$ref": "#/components/schemas/filesystem.changed"
  22789. },
  22790. {
  22791. "$ref": "#/components/schemas/reference.updated"
  22792. },
  22793. {
  22794. "$ref": "#/components/schemas/permission.asked"
  22795. },
  22796. {
  22797. "$ref": "#/components/schemas/permission.replied"
  22798. },
  22799. {
  22800. "$ref": "#/components/schemas/plugin.added"
  22801. },
  22802. {
  22803. "$ref": "#/components/schemas/plugin.updated"
  22804. },
  22805. {
  22806. "$ref": "#/components/schemas/worktree.updated"
  22807. },
  22808. {
  22809. "$ref": "#/components/schemas/worktree.resolved"
  22810. },
  22811. {
  22812. "$ref": "#/components/schemas/command.updated"
  22813. },
  22814. {
  22815. "$ref": "#/components/schemas/config.updated"
  22816. },
  22817. {
  22818. "$ref": "#/components/schemas/skill.updated"
  22819. },
  22820. {
  22821. "$ref": "#/components/schemas/pty.created"
  22822. },
  22823. {
  22824. "$ref": "#/components/schemas/pty.updated"
  22825. },
  22826. {
  22827. "$ref": "#/components/schemas/pty.exited"
  22828. },
  22829. {
  22830. "$ref": "#/components/schemas/pty.deleted"
  22831. },
  22832. {
  22833. "$ref": "#/components/schemas/shell.created"
  22834. },
  22835. {
  22836. "$ref": "#/components/schemas/shell.exited"
  22837. },
  22838. {
  22839. "$ref": "#/components/schemas/shell.deleted"
  22840. },
  22841. {
  22842. "$ref": "#/components/schemas/form.created"
  22843. },
  22844. {
  22845. "$ref": "#/components/schemas/form.replied"
  22846. },
  22847. {
  22848. "$ref": "#/components/schemas/form.cancelled"
  22849. },
  22850. {
  22851. "$ref": "#/components/schemas/websearch.updated"
  22852. },
  22853. {
  22854. "$ref": "#/components/schemas/session.status"
  22855. },
  22856. {
  22857. "$ref": "#/components/schemas/session.idle"
  22858. },
  22859. {
  22860. "$ref": "#/components/schemas/tui.prompt.append"
  22861. },
  22862. {
  22863. "$ref": "#/components/schemas/tui.command.execute"
  22864. },
  22865. {
  22866. "$ref": "#/components/schemas/tui.toast.show"
  22867. },
  22868. {
  22869. "$ref": "#/components/schemas/tui.session.select"
  22870. },
  22871. {
  22872. "$ref": "#/components/schemas/installation.updated"
  22873. },
  22874. {
  22875. "$ref": "#/components/schemas/installation.update-available"
  22876. },
  22877. {
  22878. "$ref": "#/components/schemas/vcs.branch.updated"
  22879. },
  22880. {
  22881. "$ref": "#/components/schemas/mcp.status.changed"
  22882. },
  22883. {
  22884. "$ref": "#/components/schemas/mcp.resources.changed"
  22885. },
  22886. {
  22887. "$ref": "#/components/schemas/V2Event.server.connected"
  22888. }
  22889. ]
  22890. },
  22891. "V2EventJsonString": {
  22892. "type": "string",
  22893. "contentSchema": {
  22894. "$ref": "#/components/schemas/V2Event"
  22895. },
  22896. "contentMediaType": "application/json"
  22897. },
  22898. "PtyNotFoundError": {
  22899. "type": "object",
  22900. "properties": {
  22901. "_tag": {
  22902. "type": "string",
  22903. "enum": ["PtyNotFoundError"]
  22904. },
  22905. "ptyID": {
  22906. "type": "string"
  22907. },
  22908. "message": {
  22909. "type": "string"
  22910. }
  22911. },
  22912. "required": ["_tag", "ptyID", "message"],
  22913. "additionalProperties": false
  22914. },
  22915. "PtyTicket.ConnectToken": {
  22916. "type": "object",
  22917. "properties": {
  22918. "ticket": {
  22919. "type": "string"
  22920. },
  22921. "expires_in": {
  22922. "type": "integer",
  22923. "allOf": [
  22924. {
  22925. "exclusiveMinimum": 0
  22926. }
  22927. ]
  22928. }
  22929. },
  22930. "required": ["ticket", "expires_in"],
  22931. "additionalProperties": false
  22932. },
  22933. "ForbiddenError": {
  22934. "type": "object",
  22935. "properties": {
  22936. "_tag": {
  22937. "type": "string",
  22938. "enum": ["ForbiddenError"]
  22939. },
  22940. "message": {
  22941. "type": "string"
  22942. }
  22943. },
  22944. "required": ["_tag", "message"],
  22945. "additionalProperties": false
  22946. },
  22947. "Shell.Info1": {
  22948. "type": "object",
  22949. "properties": {
  22950. "id": {
  22951. "type": "string",
  22952. "allOf": [
  22953. {
  22954. "pattern": "^sh_"
  22955. }
  22956. ]
  22957. },
  22958. "status": {
  22959. "type": "string",
  22960. "enum": ["running", "exited", "timeout", "killed"]
  22961. },
  22962. "command": {
  22963. "type": "string"
  22964. },
  22965. "cwd": {
  22966. "type": "string"
  22967. },
  22968. "shell": {
  22969. "type": "string"
  22970. },
  22971. "file": {
  22972. "type": "string"
  22973. },
  22974. "pid": {
  22975. "type": "integer",
  22976. "allOf": [
  22977. {
  22978. "minimum": 0
  22979. }
  22980. ]
  22981. },
  22982. "exit": {
  22983. "type": "number"
  22984. },
  22985. "metadata": {
  22986. "type": "object"
  22987. },
  22988. "time": {
  22989. "type": "object",
  22990. "properties": {
  22991. "started": {
  22992. "type": "number"
  22993. },
  22994. "completed": {
  22995. "type": "number"
  22996. }
  22997. },
  22998. "required": ["started"],
  22999. "additionalProperties": false
  23000. }
  23001. },
  23002. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23003. "additionalProperties": false
  23004. },
  23005. "ShellNotFoundError": {
  23006. "type": "object",
  23007. "properties": {
  23008. "_tag": {
  23009. "type": "string",
  23010. "enum": ["ShellNotFoundError"]
  23011. },
  23012. "id": {
  23013. "type": "string"
  23014. },
  23015. "message": {
  23016. "type": "string"
  23017. }
  23018. },
  23019. "required": ["_tag", "id", "message"],
  23020. "additionalProperties": false
  23021. },
  23022. "Reference.LocalSource": {
  23023. "type": "object",
  23024. "properties": {
  23025. "type": {
  23026. "type": "string",
  23027. "enum": ["local"]
  23028. },
  23029. "path": {
  23030. "type": "string"
  23031. },
  23032. "description": {
  23033. "type": "string"
  23034. },
  23035. "hidden": {
  23036. "type": "boolean"
  23037. }
  23038. },
  23039. "required": ["type", "path"],
  23040. "additionalProperties": false
  23041. },
  23042. "Reference.GitSource": {
  23043. "type": "object",
  23044. "properties": {
  23045. "type": {
  23046. "type": "string",
  23047. "enum": ["git"]
  23048. },
  23049. "repository": {
  23050. "type": "string"
  23051. },
  23052. "branch": {
  23053. "type": "string"
  23054. },
  23055. "description": {
  23056. "type": "string"
  23057. },
  23058. "hidden": {
  23059. "type": "boolean"
  23060. }
  23061. },
  23062. "required": ["type", "repository"],
  23063. "additionalProperties": false
  23064. },
  23065. "Reference.Source": {
  23066. "anyOf": [
  23067. {
  23068. "$ref": "#/components/schemas/Reference.LocalSource"
  23069. },
  23070. {
  23071. "$ref": "#/components/schemas/Reference.GitSource"
  23072. }
  23073. ]
  23074. },
  23075. "Reference.Info": {
  23076. "type": "object",
  23077. "properties": {
  23078. "name": {
  23079. "type": "string"
  23080. },
  23081. "path": {
  23082. "type": "string"
  23083. },
  23084. "description": {
  23085. "type": "string"
  23086. },
  23087. "hidden": {
  23088. "type": "boolean"
  23089. },
  23090. "source": {
  23091. "$ref": "#/components/schemas/Reference.Source"
  23092. }
  23093. },
  23094. "required": ["name", "path", "source"],
  23095. "additionalProperties": false
  23096. },
  23097. "Worktree.Directory": {
  23098. "type": "object",
  23099. "properties": {
  23100. "directory": {
  23101. "type": "string"
  23102. },
  23103. "strategy": {
  23104. "type": "string"
  23105. }
  23106. },
  23107. "required": ["directory"],
  23108. "additionalProperties": false
  23109. },
  23110. "Worktree.List": {
  23111. "type": "array",
  23112. "items": {
  23113. "$ref": "#/components/schemas/Worktree.Directory"
  23114. }
  23115. },
  23116. "Worktree.Info": {
  23117. "type": "object",
  23118. "properties": {
  23119. "directory": {
  23120. "type": "string"
  23121. }
  23122. },
  23123. "required": ["directory"],
  23124. "additionalProperties": false
  23125. },
  23126. "WorktreeError": {
  23127. "type": "object",
  23128. "properties": {
  23129. "name": {
  23130. "type": "string",
  23131. "enum": ["WorktreeError"]
  23132. },
  23133. "data": {
  23134. "type": "object",
  23135. "properties": {
  23136. "message": {
  23137. "type": "string"
  23138. },
  23139. "forceRequired": {
  23140. "anyOf": [
  23141. {
  23142. "type": "boolean"
  23143. },
  23144. {
  23145. "type": "null"
  23146. }
  23147. ]
  23148. }
  23149. },
  23150. "required": ["message"],
  23151. "additionalProperties": false
  23152. }
  23153. },
  23154. "required": ["name", "data"],
  23155. "additionalProperties": false
  23156. },
  23157. "Vcs.Branch": {
  23158. "type": "object",
  23159. "properties": {
  23160. "current": {
  23161. "type": "string"
  23162. },
  23163. "default": {
  23164. "type": "string"
  23165. }
  23166. },
  23167. "additionalProperties": false
  23168. },
  23169. "Vcs.Info": {
  23170. "type": "object",
  23171. "properties": {
  23172. "branch": {
  23173. "$ref": "#/components/schemas/Vcs.Branch"
  23174. }
  23175. },
  23176. "required": ["branch"],
  23177. "additionalProperties": false
  23178. },
  23179. "Vcs.FileStatus": {
  23180. "type": "object",
  23181. "properties": {
  23182. "file": {
  23183. "type": "string"
  23184. },
  23185. "additions": {
  23186. "type": "integer",
  23187. "allOf": [
  23188. {
  23189. "minimum": 0
  23190. }
  23191. ]
  23192. },
  23193. "deletions": {
  23194. "type": "integer",
  23195. "allOf": [
  23196. {
  23197. "minimum": 0
  23198. }
  23199. ]
  23200. },
  23201. "status": {
  23202. "type": "string",
  23203. "enum": ["added", "deleted", "modified"]
  23204. }
  23205. },
  23206. "required": ["file", "additions", "deletions", "status"],
  23207. "additionalProperties": false
  23208. },
  23209. "Vcs.Mode": {
  23210. "type": "string",
  23211. "enum": ["working", "branch"]
  23212. },
  23213. "WebSearch.Provider": {
  23214. "type": "object",
  23215. "properties": {
  23216. "id": {
  23217. "type": "string"
  23218. },
  23219. "name": {
  23220. "type": "string"
  23221. }
  23222. },
  23223. "required": ["id", "name"],
  23224. "additionalProperties": false
  23225. },
  23226. "WebSearch.Result": {
  23227. "type": "object",
  23228. "properties": {
  23229. "url": {
  23230. "type": "string"
  23231. },
  23232. "title": {
  23233. "type": "string"
  23234. },
  23235. "content": {
  23236. "type": "string"
  23237. },
  23238. "time": {
  23239. "type": "object",
  23240. "properties": {
  23241. "published": {
  23242. "type": "number"
  23243. }
  23244. },
  23245. "additionalProperties": false
  23246. }
  23247. },
  23248. "required": ["url", "time"],
  23249. "additionalProperties": false
  23250. },
  23251. "WebSearch.Response": {
  23252. "type": "object",
  23253. "properties": {
  23254. "providerID": {
  23255. "type": "string"
  23256. },
  23257. "results": {
  23258. "type": "array",
  23259. "items": {
  23260. "$ref": "#/components/schemas/WebSearch.Result"
  23261. }
  23262. }
  23263. },
  23264. "required": ["providerID", "results"],
  23265. "additionalProperties": false
  23266. },
  23267. "Config.Agent": {
  23268. "type": "object",
  23269. "properties": {
  23270. "model": {
  23271. "anyOf": [
  23272. {
  23273. "type": "string",
  23274. "allOf": [
  23275. {
  23276. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23277. }
  23278. ]
  23279. },
  23280. {
  23281. "type": "object",
  23282. "properties": {
  23283. "providerID": {
  23284. "type": "string",
  23285. "allOf": [
  23286. {
  23287. "pattern": "^[^/#]+$"
  23288. }
  23289. ]
  23290. },
  23291. "model": {
  23292. "type": "string",
  23293. "allOf": [
  23294. {
  23295. "pattern": "^[^#]+$"
  23296. }
  23297. ]
  23298. },
  23299. "variant": {
  23300. "type": "string",
  23301. "allOf": [
  23302. {
  23303. "pattern": "^[^#]+$"
  23304. }
  23305. ]
  23306. }
  23307. },
  23308. "required": ["providerID", "model"],
  23309. "additionalProperties": false
  23310. }
  23311. ]
  23312. },
  23313. "request": {
  23314. "type": "object",
  23315. "properties": {
  23316. "headers": {
  23317. "type": "object",
  23318. "additionalProperties": {
  23319. "type": "string"
  23320. }
  23321. },
  23322. "body": {
  23323. "type": "object"
  23324. }
  23325. },
  23326. "additionalProperties": false
  23327. },
  23328. "system": {
  23329. "type": "string"
  23330. },
  23331. "description": {
  23332. "type": "string"
  23333. },
  23334. "mode": {
  23335. "type": "string",
  23336. "enum": ["subagent", "primary", "all"]
  23337. },
  23338. "hidden": {
  23339. "type": "boolean"
  23340. },
  23341. "color": {
  23342. "type": "string",
  23343. "allOf": [
  23344. {
  23345. "pattern": "^#[0-9a-fA-F]{6}$"
  23346. }
  23347. ]
  23348. },
  23349. "steps": {
  23350. "type": "integer",
  23351. "allOf": [
  23352. {
  23353. "exclusiveMinimum": 0
  23354. }
  23355. ]
  23356. },
  23357. "disabled": {
  23358. "type": "boolean"
  23359. },
  23360. "permissions": {
  23361. "$ref": "#/components/schemas/Permission.Ruleset"
  23362. }
  23363. },
  23364. "additionalProperties": false
  23365. },
  23366. "Config.Formatter.Entry": {
  23367. "type": "object",
  23368. "properties": {
  23369. "disabled": {
  23370. "type": "boolean"
  23371. },
  23372. "command": {
  23373. "type": "array",
  23374. "items": {
  23375. "type": "string"
  23376. }
  23377. },
  23378. "environment": {
  23379. "type": "object",
  23380. "additionalProperties": {
  23381. "type": "string"
  23382. }
  23383. },
  23384. "extensions": {
  23385. "type": "array",
  23386. "items": {
  23387. "type": "string"
  23388. }
  23389. }
  23390. },
  23391. "additionalProperties": false
  23392. },
  23393. "Config.LSP.Server": {
  23394. "type": "object",
  23395. "properties": {
  23396. "command": {
  23397. "type": "array",
  23398. "items": {
  23399. "type": "string"
  23400. }
  23401. },
  23402. "extensions": {
  23403. "type": "array",
  23404. "items": {
  23405. "type": "string"
  23406. }
  23407. },
  23408. "disabled": {
  23409. "type": "boolean"
  23410. },
  23411. "env": {
  23412. "type": "object",
  23413. "additionalProperties": {
  23414. "type": "string"
  23415. }
  23416. },
  23417. "initialization": {
  23418. "type": "object"
  23419. }
  23420. },
  23421. "required": ["command"],
  23422. "additionalProperties": false
  23423. },
  23424. "Config.Command": {
  23425. "type": "object",
  23426. "properties": {
  23427. "template": {
  23428. "type": "string"
  23429. },
  23430. "description": {
  23431. "type": "string"
  23432. },
  23433. "agent": {
  23434. "type": "string"
  23435. },
  23436. "model": {
  23437. "anyOf": [
  23438. {
  23439. "type": "string",
  23440. "allOf": [
  23441. {
  23442. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23443. }
  23444. ]
  23445. },
  23446. {
  23447. "type": "object",
  23448. "properties": {
  23449. "providerID": {
  23450. "type": "string",
  23451. "allOf": [
  23452. {
  23453. "pattern": "^[^/#]+$"
  23454. }
  23455. ]
  23456. },
  23457. "model": {
  23458. "type": "string",
  23459. "allOf": [
  23460. {
  23461. "pattern": "^[^#]+$"
  23462. }
  23463. ]
  23464. },
  23465. "variant": {
  23466. "type": "string",
  23467. "allOf": [
  23468. {
  23469. "pattern": "^[^#]+$"
  23470. }
  23471. ]
  23472. }
  23473. },
  23474. "required": ["providerID", "model"],
  23475. "additionalProperties": false
  23476. }
  23477. ]
  23478. },
  23479. "subtask": {
  23480. "type": "boolean"
  23481. }
  23482. },
  23483. "required": ["template"],
  23484. "additionalProperties": false
  23485. },
  23486. "Config.Reference.Git": {
  23487. "type": "object",
  23488. "properties": {
  23489. "repository": {
  23490. "type": "string"
  23491. },
  23492. "branch": {
  23493. "type": "string"
  23494. },
  23495. "description": {
  23496. "type": "string"
  23497. },
  23498. "hidden": {
  23499. "type": "boolean"
  23500. }
  23501. },
  23502. "required": ["repository"],
  23503. "additionalProperties": false
  23504. },
  23505. "Config.Reference.Local": {
  23506. "type": "object",
  23507. "properties": {
  23508. "path": {
  23509. "type": "string"
  23510. },
  23511. "description": {
  23512. "type": "string"
  23513. },
  23514. "hidden": {
  23515. "type": "boolean"
  23516. }
  23517. },
  23518. "required": ["path"],
  23519. "additionalProperties": false
  23520. },
  23521. "ConfigWebSearch.Info": {
  23522. "type": "object",
  23523. "properties": {
  23524. "provider": {
  23525. "anyOf": [
  23526. {
  23527. "type": "string",
  23528. "enum": ["random"]
  23529. },
  23530. {
  23531. "type": "string"
  23532. }
  23533. ]
  23534. }
  23535. },
  23536. "required": ["provider"],
  23537. "additionalProperties": false
  23538. },
  23539. "Config.Plugin.Entry": {
  23540. "type": "object",
  23541. "properties": {
  23542. "package": {
  23543. "type": "string"
  23544. },
  23545. "options": {
  23546. "type": "object"
  23547. }
  23548. },
  23549. "required": ["package"],
  23550. "additionalProperties": false
  23551. },
  23552. "Config.Warming": {
  23553. "type": "object",
  23554. "properties": {
  23555. "prompt": {
  23556. "type": "string"
  23557. },
  23558. "interval": {
  23559. "type": "string"
  23560. },
  23561. "duration": {
  23562. "type": "string"
  23563. }
  23564. },
  23565. "additionalProperties": false
  23566. },
  23567. "Config.Model.Cost": {
  23568. "type": "object",
  23569. "properties": {
  23570. "tier": {
  23571. "type": "object",
  23572. "properties": {
  23573. "type": {
  23574. "type": "string",
  23575. "enum": ["context"]
  23576. },
  23577. "size": {
  23578. "type": "integer"
  23579. }
  23580. },
  23581. "required": ["type", "size"],
  23582. "additionalProperties": false
  23583. },
  23584. "input": {
  23585. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23586. },
  23587. "output": {
  23588. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23589. },
  23590. "cache": {
  23591. "type": "object",
  23592. "properties": {
  23593. "read": {
  23594. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23595. },
  23596. "write": {
  23597. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23598. }
  23599. },
  23600. "additionalProperties": false
  23601. }
  23602. },
  23603. "required": ["input", "output"],
  23604. "additionalProperties": false
  23605. },
  23606. "Config.Model": {
  23607. "type": "object",
  23608. "properties": {
  23609. "modelID": {
  23610. "type": "string"
  23611. },
  23612. "family": {
  23613. "type": "string"
  23614. },
  23615. "name": {
  23616. "type": "string"
  23617. },
  23618. "compatibility": {
  23619. "$ref": "#/components/schemas/Model.Compatibility"
  23620. },
  23621. "package": {
  23622. "type": "string"
  23623. },
  23624. "settings": {
  23625. "type": "object"
  23626. },
  23627. "headers": {
  23628. "type": "object",
  23629. "additionalProperties": {
  23630. "type": "string"
  23631. }
  23632. },
  23633. "body": {
  23634. "type": "object"
  23635. },
  23636. "capabilities": {
  23637. "$ref": "#/components/schemas/Model.Capabilities"
  23638. },
  23639. "variants": {
  23640. "type": "array",
  23641. "items": {
  23642. "type": "object",
  23643. "properties": {
  23644. "id": {
  23645. "type": "string"
  23646. },
  23647. "settings": {
  23648. "type": "object"
  23649. },
  23650. "headers": {
  23651. "type": "object",
  23652. "additionalProperties": {
  23653. "type": "string"
  23654. }
  23655. },
  23656. "body": {
  23657. "type": "object"
  23658. }
  23659. },
  23660. "required": ["id"],
  23661. "additionalProperties": false
  23662. }
  23663. },
  23664. "cost": {
  23665. "anyOf": [
  23666. {
  23667. "$ref": "#/components/schemas/Config.Model.Cost"
  23668. },
  23669. {
  23670. "type": "array",
  23671. "items": {
  23672. "$ref": "#/components/schemas/Config.Model.Cost"
  23673. }
  23674. }
  23675. ]
  23676. },
  23677. "disabled": {
  23678. "type": "boolean"
  23679. },
  23680. "limit": {
  23681. "type": "object",
  23682. "properties": {
  23683. "context": {
  23684. "type": "integer"
  23685. },
  23686. "input": {
  23687. "type": "integer"
  23688. },
  23689. "output": {
  23690. "type": "integer"
  23691. }
  23692. },
  23693. "additionalProperties": false
  23694. }
  23695. },
  23696. "additionalProperties": false
  23697. },
  23698. "Config.Provider": {
  23699. "type": "object",
  23700. "properties": {
  23701. "name": {
  23702. "type": "string"
  23703. },
  23704. "env": {
  23705. "type": "array",
  23706. "items": {
  23707. "type": "string"
  23708. }
  23709. },
  23710. "package": {
  23711. "type": "string"
  23712. },
  23713. "settings": {
  23714. "type": "object"
  23715. },
  23716. "headers": {
  23717. "type": "object",
  23718. "additionalProperties": {
  23719. "type": "string"
  23720. }
  23721. },
  23722. "body": {
  23723. "type": "object"
  23724. },
  23725. "models": {
  23726. "type": "object",
  23727. "additionalProperties": {
  23728. "$ref": "#/components/schemas/Config.Model"
  23729. }
  23730. }
  23731. },
  23732. "additionalProperties": false
  23733. },
  23734. "Config.Info": {
  23735. "type": "object",
  23736. "properties": {
  23737. "$schema": {
  23738. "type": "string"
  23739. },
  23740. "shell": {
  23741. "type": "string"
  23742. },
  23743. "model": {
  23744. "anyOf": [
  23745. {
  23746. "type": "string",
  23747. "allOf": [
  23748. {
  23749. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23750. }
  23751. ]
  23752. },
  23753. {
  23754. "type": "object",
  23755. "properties": {
  23756. "providerID": {
  23757. "type": "string",
  23758. "allOf": [
  23759. {
  23760. "pattern": "^[^/#]+$"
  23761. }
  23762. ]
  23763. },
  23764. "model": {
  23765. "type": "string",
  23766. "allOf": [
  23767. {
  23768. "pattern": "^[^#]+$"
  23769. }
  23770. ]
  23771. },
  23772. "variant": {
  23773. "type": "string",
  23774. "allOf": [
  23775. {
  23776. "pattern": "^[^#]+$"
  23777. }
  23778. ]
  23779. }
  23780. },
  23781. "required": ["providerID", "model"],
  23782. "additionalProperties": false
  23783. }
  23784. ]
  23785. },
  23786. "default_agent": {
  23787. "type": "string"
  23788. },
  23789. "autoupdate": {
  23790. "anyOf": [
  23791. {
  23792. "type": "boolean"
  23793. },
  23794. {
  23795. "type": "string",
  23796. "enum": ["notify"]
  23797. }
  23798. ]
  23799. },
  23800. "share": {
  23801. "type": "string",
  23802. "enum": ["manual", "auto", "disabled"]
  23803. },
  23804. "enterprise": {
  23805. "type": "object",
  23806. "properties": {
  23807. "url": {
  23808. "type": "string"
  23809. }
  23810. },
  23811. "additionalProperties": false
  23812. },
  23813. "username": {
  23814. "type": "string"
  23815. },
  23816. "permissions": {
  23817. "$ref": "#/components/schemas/Permission.Ruleset"
  23818. },
  23819. "agents": {
  23820. "type": "object",
  23821. "additionalProperties": {
  23822. "$ref": "#/components/schemas/Config.Agent"
  23823. }
  23824. },
  23825. "snapshots": {
  23826. "type": "boolean"
  23827. },
  23828. "watcher": {
  23829. "type": "object",
  23830. "properties": {
  23831. "ignore": {
  23832. "type": "array",
  23833. "items": {
  23834. "type": "string"
  23835. }
  23836. }
  23837. },
  23838. "additionalProperties": false
  23839. },
  23840. "formatter": {
  23841. "anyOf": [
  23842. {
  23843. "type": "boolean"
  23844. },
  23845. {
  23846. "type": "object",
  23847. "additionalProperties": {
  23848. "$ref": "#/components/schemas/Config.Formatter.Entry"
  23849. }
  23850. }
  23851. ]
  23852. },
  23853. "lsp": {
  23854. "anyOf": [
  23855. {
  23856. "type": "boolean"
  23857. },
  23858. {
  23859. "type": "object",
  23860. "additionalProperties": {
  23861. "anyOf": [
  23862. {
  23863. "type": "object",
  23864. "properties": {
  23865. "disabled": {
  23866. "type": "boolean",
  23867. "enum": [true]
  23868. }
  23869. },
  23870. "required": ["disabled"],
  23871. "additionalProperties": false
  23872. },
  23873. {
  23874. "$ref": "#/components/schemas/Config.LSP.Server"
  23875. }
  23876. ]
  23877. }
  23878. }
  23879. ]
  23880. },
  23881. "media": {
  23882. "type": "object",
  23883. "properties": {
  23884. "image": {
  23885. "type": "object",
  23886. "properties": {
  23887. "auto_resize": {
  23888. "type": "boolean"
  23889. },
  23890. "max_width": {
  23891. "type": "integer",
  23892. "allOf": [
  23893. {
  23894. "exclusiveMinimum": 0
  23895. }
  23896. ]
  23897. },
  23898. "max_height": {
  23899. "type": "integer",
  23900. "allOf": [
  23901. {
  23902. "exclusiveMinimum": 0
  23903. }
  23904. ]
  23905. },
  23906. "max_base64_bytes": {
  23907. "type": "integer",
  23908. "allOf": [
  23909. {
  23910. "exclusiveMinimum": 0
  23911. }
  23912. ]
  23913. }
  23914. },
  23915. "additionalProperties": false
  23916. }
  23917. },
  23918. "additionalProperties": false
  23919. },
  23920. "tool_output": {
  23921. "type": "object",
  23922. "properties": {
  23923. "max_lines": {
  23924. "type": "integer",
  23925. "allOf": [
  23926. {
  23927. "exclusiveMinimum": 0
  23928. }
  23929. ]
  23930. },
  23931. "max_bytes": {
  23932. "type": "integer",
  23933. "allOf": [
  23934. {
  23935. "exclusiveMinimum": 0
  23936. }
  23937. ]
  23938. }
  23939. },
  23940. "additionalProperties": false
  23941. },
  23942. "mcp": {
  23943. "type": "object",
  23944. "properties": {
  23945. "timeout": {
  23946. "type": "object",
  23947. "properties": {
  23948. "startup": {
  23949. "type": "integer",
  23950. "allOf": [
  23951. {
  23952. "exclusiveMinimum": 0
  23953. }
  23954. ]
  23955. },
  23956. "catalog": {
  23957. "type": "integer",
  23958. "allOf": [
  23959. {
  23960. "exclusiveMinimum": 0
  23961. }
  23962. ]
  23963. },
  23964. "execution": {
  23965. "type": "integer",
  23966. "allOf": [
  23967. {
  23968. "exclusiveMinimum": 0
  23969. }
  23970. ]
  23971. }
  23972. },
  23973. "additionalProperties": false
  23974. },
  23975. "servers": {
  23976. "type": "object",
  23977. "additionalProperties": {
  23978. "anyOf": [
  23979. {
  23980. "$ref": "#/components/schemas/Mcp.LocalConfig"
  23981. },
  23982. {
  23983. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  23984. }
  23985. ]
  23986. }
  23987. }
  23988. },
  23989. "additionalProperties": false
  23990. },
  23991. "compaction": {
  23992. "type": "object",
  23993. "properties": {
  23994. "auto": {
  23995. "type": "boolean"
  23996. },
  23997. "keep": {
  23998. "type": "object",
  23999. "properties": {
  24000. "tokens": {
  24001. "type": "integer",
  24002. "allOf": [
  24003. {
  24004. "minimum": 0
  24005. }
  24006. ]
  24007. }
  24008. },
  24009. "additionalProperties": false
  24010. },
  24011. "buffer": {
  24012. "type": "integer",
  24013. "allOf": [
  24014. {
  24015. "minimum": 0
  24016. }
  24017. ]
  24018. }
  24019. },
  24020. "additionalProperties": false
  24021. },
  24022. "skills": {
  24023. "type": "array",
  24024. "items": {
  24025. "type": "string"
  24026. }
  24027. },
  24028. "commands": {
  24029. "type": "object",
  24030. "additionalProperties": {
  24031. "$ref": "#/components/schemas/Config.Command"
  24032. }
  24033. },
  24034. "instructions": {
  24035. "type": "array",
  24036. "items": {
  24037. "type": "string"
  24038. }
  24039. },
  24040. "references": {
  24041. "type": "object",
  24042. "additionalProperties": {
  24043. "anyOf": [
  24044. {
  24045. "type": "string"
  24046. },
  24047. {
  24048. "$ref": "#/components/schemas/Config.Reference.Git"
  24049. },
  24050. {
  24051. "$ref": "#/components/schemas/Config.Reference.Local"
  24052. }
  24053. ]
  24054. }
  24055. },
  24056. "websearch": {
  24057. "anyOf": [
  24058. {
  24059. "type": "boolean",
  24060. "enum": [false]
  24061. },
  24062. {
  24063. "$ref": "#/components/schemas/ConfigWebSearch.Info"
  24064. }
  24065. ]
  24066. },
  24067. "plugins": {
  24068. "type": "array",
  24069. "items": {
  24070. "anyOf": [
  24071. {
  24072. "type": "string"
  24073. },
  24074. {
  24075. "$ref": "#/components/schemas/Config.Plugin.Entry"
  24076. }
  24077. ]
  24078. }
  24079. },
  24080. "warming": {
  24081. "anyOf": [
  24082. {
  24083. "type": "boolean"
  24084. },
  24085. {
  24086. "$ref": "#/components/schemas/Config.Warming"
  24087. }
  24088. ]
  24089. },
  24090. "providers": {
  24091. "type": "object",
  24092. "additionalProperties": {
  24093. "$ref": "#/components/schemas/Config.Provider"
  24094. }
  24095. },
  24096. "experimental": {
  24097. "type": "object",
  24098. "properties": {
  24099. "portable_shell_scanner": {
  24100. "type": "boolean"
  24101. },
  24102. "subagent_depth": {
  24103. "type": "integer",
  24104. "allOf": [
  24105. {
  24106. "minimum": 0
  24107. }
  24108. ]
  24109. },
  24110. "policies": {
  24111. "type": "array",
  24112. "items": {
  24113. "type": "object",
  24114. "properties": {
  24115. "action": {
  24116. "type": "string",
  24117. "enum": ["provider.use"]
  24118. },
  24119. "resource": {
  24120. "type": "string"
  24121. },
  24122. "effect": {
  24123. "type": "string",
  24124. "enum": ["allow", "deny"]
  24125. }
  24126. },
  24127. "required": ["action", "resource", "effect"],
  24128. "additionalProperties": false
  24129. }
  24130. }
  24131. },
  24132. "additionalProperties": false
  24133. }
  24134. },
  24135. "additionalProperties": false
  24136. },
  24137. "Config.Document": {
  24138. "type": "object",
  24139. "properties": {
  24140. "type": {
  24141. "type": "string",
  24142. "enum": ["document"]
  24143. },
  24144. "path": {
  24145. "type": "string"
  24146. },
  24147. "info": {
  24148. "$ref": "#/components/schemas/Config.Info"
  24149. }
  24150. },
  24151. "required": ["type", "info"],
  24152. "additionalProperties": false
  24153. },
  24154. "Config.Directory": {
  24155. "type": "object",
  24156. "properties": {
  24157. "type": {
  24158. "type": "string",
  24159. "enum": ["directory"]
  24160. },
  24161. "path": {
  24162. "type": "string"
  24163. }
  24164. },
  24165. "required": ["type", "path"],
  24166. "additionalProperties": false
  24167. },
  24168. "Config.AgentsDirectory": {
  24169. "type": "object",
  24170. "properties": {
  24171. "type": {
  24172. "type": "string",
  24173. "enum": ["agents"]
  24174. },
  24175. "path": {
  24176. "type": "string"
  24177. }
  24178. },
  24179. "required": ["type", "path"],
  24180. "additionalProperties": false
  24181. },
  24182. "Config.ClaudeDirectory": {
  24183. "type": "object",
  24184. "properties": {
  24185. "type": {
  24186. "type": "string",
  24187. "enum": ["claude"]
  24188. },
  24189. "path": {
  24190. "type": "string"
  24191. }
  24192. },
  24193. "required": ["type", "path"],
  24194. "additionalProperties": false
  24195. },
  24196. "Config.Entry": {
  24197. "anyOf": [
  24198. {
  24199. "$ref": "#/components/schemas/Config.Document"
  24200. },
  24201. {
  24202. "$ref": "#/components/schemas/Config.Directory"
  24203. },
  24204. {
  24205. "$ref": "#/components/schemas/Config.AgentsDirectory"
  24206. },
  24207. {
  24208. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  24209. }
  24210. ]
  24211. }
  24212. },
  24213. "securitySchemes": {}
  24214. },
  24215. "security": [],
  24216. "tags": [
  24217. {
  24218. "name": "health"
  24219. },
  24220. {
  24221. "name": "server"
  24222. },
  24223. {
  24224. "name": "location"
  24225. },
  24226. {
  24227. "name": "agent"
  24228. },
  24229. {
  24230. "name": "plugin",
  24231. "description": "Experimental plugin routes."
  24232. },
  24233. {
  24234. "name": "session",
  24235. "description": "Experimental session routes."
  24236. },
  24237. {
  24238. "name": "session",
  24239. "description": "Experimental message routes."
  24240. },
  24241. {
  24242. "name": "model",
  24243. "description": "Experimental model routes."
  24244. },
  24245. {
  24246. "name": "generate",
  24247. "description": "Experimental one-shot generation routes."
  24248. },
  24249. {
  24250. "name": "provider",
  24251. "description": "Experimental provider routes."
  24252. },
  24253. {
  24254. "name": "integration",
  24255. "description": "Integration discovery and authentication routes."
  24256. },
  24257. {
  24258. "name": "mcp",
  24259. "description": "MCP server and resource routes."
  24260. },
  24261. {
  24262. "name": "credential"
  24263. },
  24264. {
  24265. "name": "project",
  24266. "description": "Project routes."
  24267. },
  24268. {
  24269. "name": "form",
  24270. "description": "Session form routes."
  24271. },
  24272. {
  24273. "name": "permission",
  24274. "description": "Experimental permission routes."
  24275. },
  24276. {
  24277. "name": "filesystem",
  24278. "description": "Experimental location-scoped filesystem routes."
  24279. },
  24280. {
  24281. "name": "command",
  24282. "description": "Experimental command routes."
  24283. },
  24284. {
  24285. "name": "skill",
  24286. "description": "Experimental skill routes."
  24287. },
  24288. {
  24289. "name": "event",
  24290. "description": "Experimental event stream routes."
  24291. },
  24292. {
  24293. "name": "pty",
  24294. "description": "Experimental location-scoped PTY routes."
  24295. },
  24296. {
  24297. "name": "shell",
  24298. "description": "Experimental location-scoped shell command routes."
  24299. },
  24300. {
  24301. "name": "reference",
  24302. "description": "Location-scoped project references."
  24303. },
  24304. {
  24305. "name": "worktree",
  24306. "description": "Project worktree management routes."
  24307. },
  24308. {
  24309. "name": "vcs",
  24310. "description": "Location-scoped version control routes."
  24311. },
  24312. {
  24313. "name": "debug"
  24314. },
  24315. {
  24316. "name": "migration"
  24317. },
  24318. {
  24319. "name": "websearch",
  24320. "description": "Location-scoped web search routes."
  24321. },
  24322. {
  24323. "name": "config",
  24324. "description": "Location-scoped configuration routes."
  24325. }
  24326. ]
  24327. }